/[cvs]/eggdrop-alpha/Makefile.in
ViewVC logotype

Contents of /eggdrop-alpha/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download)
Thu Feb 15 18:51:16 2001 UTC (19 years, 3 months ago) by tothwolf
Branch: MAIN
Changes since 1.5: +3 -25 lines
*** empty log message ***

1 #
2 # This is the Makefile for EGGDROP (the irc bot)
3 # You should never need to edit this.
4 #
5 # $Id: Makefile.in,v 1.5 2001/01/26 10:38:56 tothwolf Exp $
6
7 SHELL = @SHELL@
8 top_srcdir = @top_srcdir@
9 srcdir = @srcdir@
10 VPATH = @srcdir@
11
12 @SET_MAKE@
13 prefix = @prefix@
14 DEST = @DEST@
15 EGGEXEC = @EGGEXEC@
16 EGGVERSION = @EGGVERSION@
17
18 # things you can put here:
19 # -Wall if you're using gcc and it supports it
20 # (configure usually detects this anyway now)
21 #
22 # -DDEBUG_ASSERT to enable assert debugging
23 # -DDEBUG_MEM to be able to debug memory allocation (.debug)
24 # These can both be set by using 'make debug'
25 # or 'make sdebug'
26 CFLGS =
27
28 # configure SHOULD set these...you may need to tweak them to get modules
29 # to compile .. if you do...let the devel-team know the working settings
30 # btw to turn STRIP off, do 'STRIP = touch' not 'STRIP ='
31
32 # defaults
33 CC = @CC@
34 LD = @CC@
35 STRIP = @STRIP@
36 RANLIB = @RANLIB@
37
38 # make eggmod
39 MOD_CC = @MOD_CC@
40 MOD_LD = @MOD_LD@
41 MOD_STRIP = @MOD_STRIP@
42
43 # make modules
44 SHLIB_CC = @SHLIB_CC@
45 SHLIB_LD = @SHLIB_LD@
46 SHLIB_STRIP = @SHLIB_STRIP@
47 MOD_EXT = @MOD_EXT@
48
49 # programs make install uses
50 LN_S = @LN_S@
51 INSTALL = @INSTALL@
52 INSTALL_PROGRAM = @INSTALL_PROGRAM@
53 INSTALL_DATA = @INSTALL_DATA@
54 INSTALL_SCRIPT = @INSTALL_SCRIPT@
55
56 # STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP #
57 # - - - - - - - - do not edit anything below this line. - - - - - - - - #
58 # - - - - - - - - - it's all done by configure now. - - - - - - - - - #
59 # STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP #
60
61 # stuff for Tcl
62 XREQS = @TCL_REQS@
63 XLIBS = @TCL_LIBS@ @LIBS@
64 TCLLIB = @TCLLIB@
65 TCLLIBFN = @TCLLIBFN@
66
67 DEBCFLAGS = -DDEBUG_ASSERT -DDEBUG_MEM
68
69 modconf = $(top_srcdir)/misc/modconfig --top_srcdir=$(top_srcdir)
70
71 post_config = echo "" && \
72 echo "You can now compile the bot, using \"make\"." && \
73 echo ""
74
75 post_iconfig = $(modconf) update-depends && \
76 $(modconf) Makefile && \
77 (cd src/mod && $(MAKE_CONFIG) config) && \
78 $(modconf) Makefile
79
80 egg_install_msg = echo "" && \
81 echo "Now run \"make install\" to install your bot." && \
82 echo ""
83
84 MAKE_MODEGG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(MOD_CC)' 'LD=$(MOD_LD)' \
85 'STRIP=$(MOD_STRIP)' 'RANLIB=$(RANLIB)' 'CFLGS=$(CFLGS)' \
86 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
87 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=' 'MODOBJS='
88
89 MAKE_MODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
90 'STRIP=$(SHLIB_STRIP)' 'CFLGS=$(CFLGS)' 'XLIBS=$(XLIBS)' 'MOD_EXT=$(MOD_EXT)'
91
92 MAKE_STATIC = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
93 'STRIP=$(STRIP)' 'RANLIB=$(RANLIB)' 'CFLGS=$(CFLGS) -DSTATIC' \
94 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
95 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=(static version)' \
96 'MODOBJS=mod/*.mod/*.o'
97
98 MAKE_DEBEGG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(MOD_CC)' 'LD=$(MOD_LD) -g' \
99 'STRIP=touch' 'RANLIB=$(RANLIB)' 'CFLGS=-g3 $(DEBCFLAGS) $(CFLGS)' \
100 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
101 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=(debug version)' 'MODOBJS='
102
103 MAKE_DEBMODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
104 'XLIBS=$(XLIBS)' 'STRIP=touch' 'CFLGS=-g3 $(DEBCFLAGS) $(CFLGS)' \
105 'MOD_EXT=$(MOD_EXT)'
106
107 MAKE_SDEBUG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD) -g' \
108 'STRIP=touch' 'RANLIB=$(RANLIB)' 'CFLGS=-g3 $(DEBCFLAGS) -DSTATIC $(CFLGS)' \
109 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' \
110 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=(static and debug version)' 'MODOBJS=mod/*.mod/*.o'
111
112 MAKE_DEPEND = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
113 'STRIP=$(STRIP)' 'CFLGS=$(CFLGS)'
114
115 MAKE_CONFIG = $(MAKE) 'MAKE=$(MAKE)'
116
117 MAKE_INSTALL = $(MAKE) 'MAKE=$(MAKE)' 'DEST=$(DEST)'
118
119 all: @DEFAULT_MAKE@
120
121 clean:
122 @rm -f *.stamp core DEBUG *~
123 @cd doc && $(MAKE) clean
124 @cd scripts && $(MAKE) clean
125 @cd src && $(MAKE) clean
126 @cd src/compat && $(MAKE) clean
127 @cd src/mod && $(MAKE) clean
128
129 distclean: clean clean-modconfig
130 @cd src/mod && $(MAKE) distclean
131 @rm -f Makefile doc/Makefile scripts/Makefile src/Makefile src/compat/Makefile src/mod/Makefile
132 @rm -f config.cache config.log config.status config.h lush.h
133
134 distrib: distclean
135 @rm -f `find . \( -name '*~' -o -name '*#' -o -name '*.orig' \
136 -o -name '*.rej' -o -name '*.bak' \) -print`
137 @rm -rf `find . \( -name 'CVS' \) -print`
138 @(echo "all:"; \
139 echo " @echo \"\""; \
140 echo " @echo \"Before you can compile your bot you have to configure it.\""; \
141 echo " @echo \"So please start the configure script now:\""; \
142 echo " @echo \"\""; \
143 echo " @echo \" % ./configure\""; \
144 echo " @echo \"\""; ) > Makefile
145
146 depend:
147 @cat /dev/null > lush.h
148 @cd src && $(MAKE_DEPEND) depend
149 @cd src/mod && $(MAKE_DEPEND) depend
150 @cd src/compat && $(MAKE_DEPEND) depend
151
152 eggautoconf:
153 @$(modconf) eggautoconf
154
155 config:
156 @$(modconf) modules-still-exist
157 @$(modconf) detect-modules
158 @$(modconf) update-depends
159 @$(modconf) Makefile
160 @cd src/mod && $(MAKE_CONFIG) config
161 @$(modconf) Makefile
162 @$(post_config)
163
164 new-iconfig:
165 @$(modconf) modules-still-exist
166 @$(modconf) update-depends
167 @$(modconf) -n configure
168 @$(post_iconfig)
169 @$(post_config)
170
171 iconfig:
172 @$(modconf) modules-still-exist
173 @$(modconf) detect-modules
174 @$(modconf) update-depends
175 @$(modconf) configure
176 @$(post_iconfig)
177 @$(post_config)
178
179 clean-modconfig:
180 @rm -f .modules .known_modules
181
182 conftest:
183 @if test ! -f .modules; then \
184 $(MAKE) config; \
185 fi
186
187 reconfig: clean-modconfig config
188
189 eggdrop: modegg modules
190
191 modegg: modtest
192 @rm -f src/mod/mod.xlibs
193 @cd src && $(MAKE_MODEGG) $(EGGEXEC)
194
195 modules: modtest
196 @cd src/mod && $(MAKE_MODULES) modules
197 @$(egg_install_msg)
198
199 static: eggtest
200 @echo ""
201 @echo "Making module objects for static linking..."
202 @echo ""
203 @rm -f src/mod/mod.xlibs
204 @cd src/mod && $(MAKE_STATIC) static
205 @echo ""
206 @echo "Making core eggdrop for static linking..."
207 @echo ""
208 @cd src && $(MAKE_STATIC) $(EGGEXEC)
209 @$(egg_install_msg)
210
211 debug: debegg debmodules
212
213 debegg: modtest
214 @cd src && $(MAKE_DEBEGG) $(EGGEXEC)
215
216 debmodules: modtest
217 @cd src/mod && $(MAKE_DEBMODULES) modules
218 @$(egg_install_msg)
219
220 sdebug: eggtest
221 @echo ""
222 @echo "Making module objects for static linking..."
223 @echo ""
224 @rm -f src/mod/mod.xlibs
225 @cd src/mod && $(MAKE_SDEBUG) static
226 @echo ""
227 @echo "Making core eggdrop for static linking..."
228 @echo ""
229 @cd src && $(MAKE_SDEBUG) $(EGGEXEC)
230 @$(egg_install_msg)
231
232 eggtest: conftest
233 @if test -f EGGMOD.stamp; then \
234 echo "You're trying to do a STATIC build of eggdrop when you've";\
235 echo "already run 'make' for a module build.";\
236 echo "You must first type \"make clean\" before you can build";\
237 echo "a static version.";\
238 exit 1;\
239 fi
240 @echo "stamp" >EGGDROP.stamp
241
242 modtest: conftest
243 @if [ -f EGGDROP.stamp ]; then \
244 echo "You're trying to do a MODULE build of eggdrop when you've";\
245 echo "already run 'make' for a static build.";\
246 echo "You must first type \"make clean\" before you can build";\
247 echo "a module version.";\
248 exit 1;\
249 fi
250 @echo "stamp" >EGGMOD.stamp
251
252 install: ainstall
253
254 dinstall: eggdrop ainstall
255
256 sinstall: static ainstall
257
258 ainstall: install-start install-bin install-modules install-data \
259 install-help install-language install-filesys install-doc \
260 install-scripts install-end
261
262 install-start:
263 @if test ! -f $(EGGEXEC); then \
264 echo ""; \
265 echo "You haven't compiled eggdrop yet."; \
266 echo "To compile eggdrop use:"; \
267 echo " make <target>"; \
268 echo ""; \
269 echo " valid targets: eggdrop static debug sdebug"; \
270 echo ""; \
271 exit 1; \
272 fi
273 @if test "x$(DEST)" = "x"; then \
274 echo "You must specify a destination directory with DEST="; \
275 exit 1; \
276 fi
277 @echo ""
278 @echo "Installing in directory: '$(DEST)'."
279 @echo ""
280 @if test ! -d $(DEST); then \
281 echo "Creating directory: $(DEST)."; \
282 $(top_srcdir)/misc/mkinstalldirs $(DEST); \
283 fi
284
285 install-bin:
286 @if test -f $(DEST)/o$(EGGEXEC); then \
287 rm -f $(DEST)/o$(EGGEXEC); \
288 fi
289 @if test -h $(DEST)/$(EGGEXEC); then \
290 echo "Removing symlink to archival eggdrop binary."; \
291 rm -f $(DEST)/$(EGGEXEC); \
292 fi
293 @if test -f $(DEST)/$(EGGEXEC); then \
294 echo "Renamed the old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
295 mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
296 fi
297 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
298 @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(EGGVERSION)
299 @(cd $(DEST) && $(LN_S) $(EGGEXEC)-$(EGGVERSION) $(EGGEXEC))
300
301 install-modules:
302 @if test -h $(DEST)/modules; then \
303 echo "Removing symlink to archival modules directory."; \
304 rm -f $(DEST)/modules; \
305 fi
306 @if test -d $(DEST)/modules; then \
307 echo "Moving old modules into 'modules.old' directory."; \
308 rm -rf $(DEST)/modules.old; \
309 mv -f $(DEST)/modules $(DEST)/modules.old; \
310 fi
311 @if test ! "x`echo *.$(MOD_EXT)`" = "x*.$(MOD_EXT)"; then \
312 if test ! -d $(DEST)/modules-$(EGGVERSION); then \
313 echo "Creating modules-$(EGGVERSION) directory and symlink."; \
314 $(top_srcdir)/misc/mkinstalldirs $(DEST)/modules-$(EGGVERSION); \
315 fi; \
316 (cd $(DEST) && $(LN_S) modules-$(EGGVERSION) modules); \
317 echo "Copying new modules."; \
318 for i in *.$(MOD_EXT); do \
319 $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(EGGVERSION)/; \
320 done; \
321 fi
322
323 install-data:
324 @$(INSTALL_DATA) $(srcdir)/eggdrop.advanced.conf $(DEST)
325 @$(INSTALL_DATA) $(srcdir)/eggdrop.complete.conf $(DEST)
326 @$(INSTALL_DATA) $(srcdir)/eggdrop.simple.conf $(DEST)
327 @if test ! -d $(DEST)/logs; then \
328 echo "Creating 'logs' subdirectory."; \
329 $(top_srcdir)/misc/mkinstalldirs $(DEST)/logs; \
330 $(INSTALL_DATA) $(srcdir)/logs/CONTENTS $(DEST)/logs/; \
331 fi;
332 @if test ! -d $(DEST)/text; then \
333 echo "Creating 'text' subdirectory."; \
334 $(top_srcdir)/misc/mkinstalldirs $(DEST)/text; \
335 fi;
336 @if test ! -f $(DEST)/text/motd; then \
337 $(INSTALL_DATA) $(srcdir)/text/motd $(DEST)/text/; \
338 fi
339 @if test ! -f $(DEST)/text/banner; then \
340 $(INSTALL_DATA) $(srcdir)/text/banner $(DEST)/text/; \
341 fi
342
343 install-help:
344 @echo "Copying help files."
345 @if test ! "x`echo $(srcdir)/help/*.help`" = "x$(srcdir)/help/*.help"; then \
346 if test ! -d $(DEST)/help; then \
347 echo "Creating 'help' subdirectory."; \
348 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help; \
349 fi; \
350 for i in $(srcdir)/help/*.help; do \
351 $(INSTALL_DATA) $$i $(DEST)/help/; \
352 done; \
353 fi
354 @if test ! "x`echo $(srcdir)/help/msg/*.help`" = "x$(srcdir)/help/msg/*.help"; then \
355 if test ! -d $(DEST)/help/msg; then \
356 echo "Creating 'help/msg' subdirectory."; \
357 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help/msg; \
358 fi; \
359 for i in $(srcdir)/help/msg/*.help; do \
360 $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
361 done; \
362 fi
363 @if test ! "x`echo $(srcdir)/help/set/*.help`" = "x$(srcdir)/help/set/*.help"; then \
364 if test ! -d $(DEST)/help/set; then \
365 echo "Creating 'help/set' subdirectory."; \
366 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help/set; \
367 fi; \
368 for i in $(srcdir)/help/set/*.help; do \
369 $(INSTALL_DATA) $$i $(DEST)/help/set/; \
370 done; \
371 fi
372 @cd src/mod/ && $(MAKE_INSTALL) install-help
373
374 install-language:
375 @echo "Copying language files."
376 @if test ! "x`echo $(srcdir)/language/*.lang`" = "x$(srcdir)/language/*.lang"; then \
377 if test ! -d $(DEST)/language; then \
378 echo "Creating 'language' subdirectory."; \
379 $(top_srcdir)/misc/mkinstalldirs $(DEST)/language; \
380 fi; \
381 for i in $(srcdir)/language/*.lang; do \
382 $(INSTALL_DATA) $$i $(DEST)/language/; \
383 done; \
384 fi
385 @cd src/mod && $(MAKE_INSTALL) install-language
386
387 install-filesys:
388 @if test ! -d $(DEST)/filesys; then \
389 echo "Creating a skeletal filesys subdirectory."; \
390 $(top_srcdir)/misc/mkinstalldirs $(DEST)/filesys; \
391 $(top_srcdir)/misc/mkinstalldirs $(DEST)/filesys/incoming; \
392 fi
393
394 install-doc:
395 @$(INSTALL_DATA) $(srcdir)/README $(DEST)
396 @cd doc/ && $(MAKE_INSTALL) install
397
398 install-scripts:
399 @cd scripts/ && $(MAKE_INSTALL) install
400
401 install-end:
402 @echo ""
403 @echo "Installation completed."
404 @echo ""
405 @echo "You MUST ensure that you edit/verify your configuration file."
406 @echo "Use one of the three configuration files (eggdrop.simple.conf, eggdrop.advanced.conf and eggdrop.complete.conf) distributed with your bot."
407 @echo ""
408 @echo "Remember to change directory to $(DEST) before you proceed."
409 @echo ""
410
411 #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23