/[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.43 - (show annotations) (download)
Sun Mar 14 18:21:59 2010 UTC (8 years, 9 months ago) by pseudo
Branch: MAIN
CVS Tags: HEAD
Changes since 1.42: +2 -1 lines
Added a configure option to set the handlen
Added a configure option to enable dns debugging and made it default for make debug.
Removed obsolete check for broken sscanf from configure.

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23