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

Contents of /eggdrop1.6/Makefile.in

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


Revision 1.42 - (show annotations) (download)
Fri Jul 4 03:17:25 2008 UTC (10 years, 10 months ago) by tothwolf
Branch: MAIN
Changes since 1.41: +7 -4 lines
Require autoconf 2.60 now.

Added AC_PRESERVE_HELP_ORDER macro to configure.ac

Added new autoconf macros to aclocal.m4 and configure.ac: EGG_DEBUG_ENABLE EGG_DEBUG_DEFAULTS EGG_DEBUG_OPTIONS EGG_DEBUG_CFLAGS EGG_ENABLE_DEBUG_CONTEXT

Added new configure options: --enable-debug --enable-debug-mem --enable-debug-assert --enable-debug-context

Replaced ENABLE_STRIP define with DEBUG

DEBUG_CONTEXT is now defined in config.h instead of eggdrop.h

Refactored DEBUG and DEBUG_CONTEXT conditional code in main.c.

Don't default set unlimited core file size for non-debug builds.

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23