/[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.40 - (show annotations) (download)
Sat Aug 28 06:43:21 2004 UTC (15 years, 1 month ago) by wcc
Branch: MAIN
Changes since 1.39: +2 -3 lines
* 'make depend' works again. Use 'misc/makedepend' to update Makefile
  dependencies (Backport 1.7).
* Small fix to misc/addpatch by TaKeDa (Backport 1.7).

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23