/[cvs]/eggdrop1.7/Makefile.in
ViewVC logotype

Contents of /eggdrop1.7/Makefile.in

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


Revision 1.4 - (show annotations) (download)
Tue Aug 31 22:56:11 2004 UTC (14 years, 4 months ago) by wcc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +6 -1 lines
* Moved is_file() to misc_file.c where it belongs.
* Moved help functions to help.[ch].
* Simplified loops in scan_help_file().
* Finished moving logging functions to logfile.[ch].
* Moved more logfile code into logfile.[ch].

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.3 2004/08/28 00:15:41 wcc 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; however you may need to tweak them to
29 # get modules to compile. If you do, PLEASE let the development team know,
30 # so we can incorporate needed changes into the next release. You can
31 # contact us at eggdev@eggheads.org, as always.
32
33 # Compiler
34 CC = @CC@
35 MOD_CC = @MOD_CC@
36 SHLIB_CC = @SHLIB_CC@
37
38 # Linker
39 LD = @CC@
40 MOD_LD = @MOD_LD@
41 SHLIB_LD = @SHLIB_LD@
42
43 # Stripping
44 # To turn STRIP off, use 'STRIP = touch' not 'STRIP ='.
45 STRIP = @STRIP@
46 MOD_STRIP = @MOD_STRIP@
47 SHLIB_STRIP = @SHLIB_STRIP@
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 # Misc
57 RANLIB = @RANLIB@
58 MOD_EXT = @MOD_EXT@
59 XREQS = @TCL_REQS@
60 TCLLIB = @TCLLIB@
61 TCLLIBFN = @TCLLIBFN@
62
63 # Extra libraries
64 # XLIBS will be linked with everything; MODULE_XLIBS will only be linked with
65 # the actual module objects.
66 XLIBS = @TCL_LIBS@ @LIBS@
67 MODULE_XLIBS = @MODULE_XLIBS@
68
69 # Shouldn't need to touch anything below here.
70 DEBCFLAGS = -DDEBUG_ASSERT -DDEBUG_MEM
71
72
73 egg_test_run = EGG_LANGDIR=$(top_srcdir)/language ./$(EGGEXEC) -v
74
75 modconf = $(top_srcdir)/misc/modconfig --top_srcdir=$(top_srcdir)
76
77 MAKE_MODEGG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(MOD_CC)' 'LD=$(MOD_LD)' \
78 'STRIP=$(MOD_STRIP)' 'RANLIB=$(RANLIB)' 'CFLGS=$(CFLGS)' \
79 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
80 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=standard build' 'MODOBJS='
81
82 MAKE_MODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
83 'STRIP=$(SHLIB_STRIP)' 'CFLGS=$(CFLGS)' 'XLIBS=$(XLIBS)' 'MOD_EXT=$(MOD_EXT)' \
84 'MODULE_XLIBS=$(MODULE_XLIBS)'
85
86 MAKE_STATIC = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
87 'STRIP=$(STRIP)' 'RANLIB=$(RANLIB)' 'CFLGS=$(CFLGS) -DSTATIC' \
88 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
89 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=static version' \
90 'MODOBJS=mod/*.o'
91
92 MAKE_DEBEGG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(MOD_CC)' 'LD=$(MOD_LD) -g' \
93 'STRIP=touch' 'RANLIB=$(RANLIB)' 'CFLGS=-g3 $(DEBCFLAGS) $(CFLGS)' \
94 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
95 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=debug version' 'MODOBJS='
96
97 MAKE_DEBMODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
98 'XLIBS=$(XLIBS)' 'STRIP=touch' 'CFLGS=-g3 $(DEBCFLAGS) $(CFLGS)' \
99 'MOD_EXT=$(MOD_EXT)' 'MODULE_XLIBS=$(MODULE_XLIBS)'
100
101 MAKE_SDEBUG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD) -g' \
102 'STRIP=touch' 'RANLIB=$(RANLIB)' 'CFLGS=-g3 $(DEBCFLAGS) -DSTATIC $(CFLGS)' \
103 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' \
104 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=static debug version' 'MODOBJS=mod/*.o'
105
106 MAKE_DEPEND = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)'
107
108 MAKE_CONFIG = $(MAKE) 'MAKE=$(MAKE)'
109
110 MAKE_INSTALL = $(MAKE) 'MAKE=$(MAKE)' 'DEST=$(DEST)'
111
112 all: @DEFAULT_MAKE@
113
114 eggclean:
115 @rm -f $(EGGEXEC) *.$(MOD_EXT) *.stamp core DEBUG *~
116 @cd doc && $(MAKE) clean
117 @cd scripts && $(MAKE) clean
118 @cd src && $(MAKE) clean
119 @cd src/md5 && $(MAKE) clean
120 @cd src/compat && $(MAKE) clean
121
122 clean: eggclean
123 @cd src/mod && $(MAKE) clean
124
125 distclean: eggclean clean-modconfig
126 @cd src/mod && $(MAKE) distclean
127 @rm -f Makefile doc/Makefile scripts/Makefile src/Makefile src/md5/Makefile src/compat/Makefile src/mod/Makefile
128 @rm -f config.cache config.log config.status config.h lush.h
129 @rm -rf autom4te.cache
130
131 ultraclean: distclean
132 @find "." -name ".#*" -print | xargs rm -f
133 @find "." -name "*.rej" -print | xargs rm -f
134 @find "." -name "*.orig" -print | xargs rm -f
135
136 distrib:
137 misc/releaseprep
138
139 depend:
140 @cat /dev/null > lush.h
141 @cd src && $(MAKE_DEPEND) depend
142 @cd src/md5 && $(MAKE_DEPEND) depend
143 @cd src/mod && $(MAKE_DEPEND) depend
144 @cd src/compat && $(MAKE_DEPEND) depend
145
146 config:
147 @$(modconf) modules-still-exist
148 @$(modconf) detect-modules
149 @$(modconf) update-depends
150 @$(modconf) Makefile
151 @cd src/mod && $(MAKE_CONFIG) config
152 @$(modconf) Makefile
153 @echo ""
154 @echo "You can now compile the bot, using \"make\"."
155 @echo ""
156
157 new-iconfig:
158 @$(modconf) modules-still-exist
159 @$(modconf) update-depends
160 @$(modconf) -n configure
161 @$(modconf) update-depends
162 @$(modconf) Makefile
163 @(cd src/mod && $(MAKE_CONFIG) config)
164 @$(modconf) Makefile
165 @echo ""
166 @echo "You can now compile the bot, using \"make\"."
167 @echo ""
168
169 iconfig:
170 @$(modconf) modules-still-exist
171 @$(modconf) detect-modules
172 @$(modconf) update-depends
173 @$(modconf) configure
174 @$(modconf) update-depends
175 @$(modconf) Makefile
176 @(cd src/mod && $(MAKE_CONFIG) config)
177 @$(modconf) Makefile
178 @echo ""
179 @echo "You can now compile the bot, using \"make\"."
180 @echo ""
181
182 clean-modconfig:
183 @rm -f .modules .known_modules
184
185 conftest:
186 @if test ! -f .modules; then \
187 echo ""; \
188 echo "You have NOT configured modules yet. This has to be done before you"; \
189 echo "can start compiling."; \
190 echo ""; \
191 echo " Run \"make config\" or \"make iconfig\" now."; \
192 echo ""; \
193 exit 1; \
194 fi
195
196 reconfig: clean-modconfig config
197
198 runts:
199 @echo ""
200 @echo "This may take a while. Go get some runts."
201 @echo "-----------------------------------------"
202 @echo ""
203
204 eggdrop: runts modegg modules
205
206 modegg: modtest
207 @rm -f src/mod/mod.xlibs
208 @cd src && $(MAKE_MODEGG) $(EGGEXEC)
209
210 modules: modtest
211 @cd src/mod && $(MAKE_MODULES) modules
212 @echo ""
213 @echo "Test run of ./eggdrop -v:"
214 @$(egg_test_run)
215 @echo ""
216 @echo "Eggdrop successfully compiled:"
217 @ls -l $(EGGEXEC)
218 @echo ""
219 @echo "Modules successfully compiled:"
220 @ls -l *.$(MOD_EXT)
221 @echo ""
222 @echo "Now run \"make install\" to install your bot."
223 @echo ""
224
225 static: eggtest runts
226 @echo "Building module objects for static linking."
227 @echo ""
228 @rm -f src/mod/mod.xlibs
229 @cd src/mod && $(MAKE_STATIC) static
230 @echo ""
231 @echo "Building core Eggdrop for static linking."
232 @echo ""
233 @cd src && $(MAKE_STATIC) $(EGGEXEC)
234 @echo ""
235 @echo "Test run of ./eggdrop -v:"
236 @$(egg_test_run)
237 @echo ""
238 @echo "Eggdrop successfully compiled:"
239 @ls -l $(EGGEXEC)
240 @echo ""
241 @echo "Now run \"make install\" to install your bot."
242 @echo ""
243
244 debug: runts debegg debmodules
245
246 debegg: modtest
247 @cd src && $(MAKE_DEBEGG) $(EGGEXEC)
248
249 debmodules: modtest
250 @cd src/mod && $(MAKE_DEBMODULES) modules
251 @echo ""
252 @echo "Test run of ./eggdrop -v:"
253 @$(egg_test_run)
254 @echo ""
255 @echo "Eggdrop successfully compiled:"
256 @ls -l $(EGGEXEC)
257 @echo ""
258 @echo "Modules successfully compiled:"
259 @ls -l *.$(MOD_EXT)
260 @echo ""
261 @echo "Now run \"make install\" to install your bot."
262 @echo ""
263
264 sdebug: eggtest runts
265 @echo ""
266 @echo "Making module objects for static linking."
267 @echo ""
268 @rm -f src/mod/mod.xlibs
269 @cd src/mod && $(MAKE_SDEBUG) static
270 @echo ""
271 @echo "Making eggdrop core for static linking."
272 @echo ""
273 @cd src && $(MAKE_SDEBUG) $(EGGEXEC)
274 @echo ""
275 @echo "Test run of ./eggdrop -v:"
276 @$(egg_test_run)
277 @echo ""
278 @echo "Eggdrop successfully compiled:"
279 @ls -l $(EGGEXEC)
280 @echo ""
281 @echo "Now run \"make install\" to install your bot."
282 @echo ""
283
284 eggtest: conftest
285 @if test -f EGGMOD.stamp; then \
286 echo "You're trying to do a STATIC build of eggdrop when you've";\
287 echo "already run 'make' for a module build.";\
288 echo "You must first type \"make clean\" before you can build";\
289 echo "a static version.";\
290 exit 1;\
291 fi
292 @echo "stamp" >EGGDROP.stamp
293
294 modtest: conftest
295 @if [ -f EGGDROP.stamp ]; then \
296 echo "You're trying to do a MODULE build of eggdrop when you've";\
297 echo "already run 'make' for a static build.";\
298 echo "You must first type \"make clean\" before you can build";\
299 echo "a module version.";\
300 exit 1;\
301 fi
302 @echo "stamp" >EGGMOD.stamp
303
304 install: ainstall
305
306 dinstall: eggdrop ainstall
307
308 sinstall: static ainstall
309
310 ainstall: install-start install-bin install-modules install-data \
311 install-help install-language install-filesys install-doc \
312 install-scripts install-end
313
314 install-start:
315 @if test ! -f $(EGGEXEC); then \
316 echo ""; \
317 echo "You haven't compiled Eggdrop yet."; \
318 echo "To compile Eggdrop, use:"; \
319 echo ""; \
320 echo " make [target]"; \
321 echo ""; \
322 echo "Valid targets: 'eggdrop', 'static', 'debug', 'sdebug'."; \
323 echo "Default target: '@DEFAULT_MAKE@'."; \
324 echo ""; \
325 exit 1; \
326 fi
327 @if test "x$(DEST)" = "x"; then \
328 echo "You must specify a destination directory."; \
329 echo "Example:"; \
330 echo ""; \
331 echo " make install DEST=\"/home/wcc/mybot\""; \
332 echo ""; \
333 exit 1; \
334 fi
335 @echo ""
336 @$(egg_test_run)
337 @echo ""
338 @echo "Installing in directory: '$(DEST)'."
339 @echo ""
340 @if test ! -d $(DEST); then \
341 echo "Creating directory '$(DEST)'."; \
342 $(top_srcdir)/misc/mkinstalldirs $(DEST) >/dev/null; \
343 fi
344
345 install-bin:
346 @if test -f $(DEST)/o$(EGGEXEC); then \
347 rm -f $(DEST)/o$(EGGEXEC); \
348 fi
349 @if test -h $(DEST)/$(EGGEXEC); then \
350 echo "Removing symlink to archival eggdrop binary."; \
351 rm -f $(DEST)/$(EGGEXEC); \
352 fi
353 @if test -f $(DEST)/$(EGGEXEC); then \
354 echo "Renaming old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
355 mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
356 fi
357 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
358 @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(EGGVERSION)
359 @(cd $(DEST) && $(LN_S) $(EGGEXEC)-$(EGGVERSION) $(EGGEXEC))
360
361 install-modules:
362 @if test -h $(DEST)/modules; then \
363 echo "Removing symlink to archival modules subdirectory."; \
364 rm -f $(DEST)/modules; \
365 fi
366 @if test -d $(DEST)/modules; then \
367 echo "Moving old modules into 'modules.old' subdirectory."; \
368 rm -rf $(DEST)/modules.old; \
369 mv -f $(DEST)/modules $(DEST)/modules.old; \
370 fi
371 @if test ! "x`echo *.$(MOD_EXT)`" = "x*.$(MOD_EXT)"; then \
372 if test ! -d $(DEST)/modules-$(EGGVERSION); then \
373 echo "Creating 'modules-$(EGGVERSION)' subdirectory and symlink."; \
374 $(top_srcdir)/misc/mkinstalldirs $(DEST)/modules-$(EGGVERSION) >/dev/null; \
375 fi; \
376 (cd $(DEST) && $(LN_S) modules-$(EGGVERSION) modules); \
377 echo "Copying new modules."; \
378 for i in *.$(MOD_EXT); do \
379 $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(EGGVERSION)/; \
380 done; \
381 fi
382
383 install-data:
384 @if test ! -f $(DEST)/eggdrop.conf; then \
385 $(INSTALL_DATA) $(srcdir)/eggdrop.conf $(DEST)/; \
386 fi
387 @if test ! -d $(DEST)/logs; then \
388 echo "Creating 'logs' subdirectory."; \
389 $(top_srcdir)/misc/mkinstalldirs $(DEST)/logs >/dev/null; \
390 $(INSTALL_DATA) $(srcdir)/logs/CONTENTS $(DEST)/logs/; \
391 fi;
392 @if test ! -d $(DEST)/text; then \
393 echo "Creating 'text' subdirectory."; \
394 $(top_srcdir)/misc/mkinstalldirs $(DEST)/text >/dev/null; \
395 fi;
396 @if test ! -f $(DEST)/text/motd; then \
397 $(INSTALL_DATA) $(srcdir)/text/motd $(DEST)/text/; \
398 fi
399 @if test ! -f $(DEST)/text/banner; then \
400 $(INSTALL_DATA) $(srcdir)/text/banner $(DEST)/text/; \
401 fi
402
403 install-help:
404 @echo "Copying help files."
405 @if test ! "x`echo $(srcdir)/help/*.help`" = "x$(srcdir)/help/*.help"; then \
406 if test ! -d $(DEST)/help; then \
407 echo "Creating 'help' subdirectory."; \
408 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help >/dev/null; \
409 fi; \
410 for i in $(srcdir)/help/*.help; do \
411 $(INSTALL_DATA) $$i $(DEST)/help/; \
412 done; \
413 fi
414 @if test ! "x`echo $(srcdir)/help/msg/*.help`" = "x$(srcdir)/help/msg/*.help"; then \
415 if test ! -d $(DEST)/help/msg; then \
416 echo "Creating 'help/msg' subdirectory."; \
417 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help/msg >/dev/null; \
418 fi; \
419 for i in $(srcdir)/help/msg/*.help; do \
420 $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
421 done; \
422 fi
423 @if test ! "x`echo $(srcdir)/help/set/*.help`" = "x$(srcdir)/help/set/*.help"; then \
424 if test ! -d $(DEST)/help/set; then \
425 echo "Creating 'help/set' subdirectory."; \
426 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help/set >/dev/null; \
427 fi; \
428 for i in $(srcdir)/help/set/*.help; do \
429 $(INSTALL_DATA) $$i $(DEST)/help/set/; \
430 done; \
431 fi
432 @cd src/mod/ && $(MAKE_INSTALL) install-help
433
434 install-language:
435 @echo "Copying language files."
436 @if test ! "x`echo $(srcdir)/language/*.lang`" = "x$(srcdir)/language/*.lang"; then \
437 if test ! -d $(DEST)/language; then \
438 echo "Creating 'language' subdirectory."; \
439 $(top_srcdir)/misc/mkinstalldirs $(DEST)/language >/dev/null; \
440 fi; \
441 for i in $(srcdir)/language/*.lang; do \
442 $(INSTALL_DATA) $$i $(DEST)/language/; \
443 done; \
444 fi
445 @cd src/mod && $(MAKE_INSTALL) install-language
446
447 install-filesys:
448 @if test ! -d $(DEST)/filesys; then \
449 echo "Creating skeletal filesystem subdirectories."; \
450 $(top_srcdir)/misc/mkinstalldirs $(DEST)/filesys >/dev/null; \
451 $(top_srcdir)/misc/mkinstalldirs $(DEST)/filesys/incoming >/dev/null; \
452 fi
453
454 install-doc:
455 @$(INSTALL_DATA) $(srcdir)/README $(DEST)
456 @cd doc/ && $(MAKE_INSTALL) install
457
458 install-scripts:
459 @cd scripts/ && $(MAKE_INSTALL) install
460
461 install-end:
462 @echo
463 @echo "Installation completed."
464 @echo ""
465 @echo "You MUST ensure that you edit/verify your configuration file."
466 @echo "An example configuration file, eggdrop.conf, is distributed with Eggdrop."
467 @echo ""
468 @echo "Remember to change directory to $(DEST) before you proceed."
469 @echo ""

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23