/[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.41 - (show annotations) (download)
Fri Jul 4 01:52:55 2008 UTC (11 years, 3 months ago) by tothwolf
Branch: MAIN
Changes since 1.40: +33 -31 lines
Refactored root Makefile.in variables.

Removed unnecessary '-g' flag from LD variables (-g is ignored).

Renamed DEBCFLAGS to DEBCFLGS

Moved -g3 compiler flag to DEBCFLGS variable.

Removed double quoting "`command`" in autoconf macro tests.

Changed autoconf macro 'test ! foo = bar' tests to 'test foo !=  bar'. Both are portable but '!=' is now more common in autoconf macros and is easier to read.

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23