/[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.37 - (show annotations) (download)
Tue Jun 15 07:20:54 2004 UTC (15 years, 5 months ago) by wcc
Branch: MAIN
Changes since 1.36: +2 -5 lines
* Removed 'eggautoconf' crao; moved to autoconf 2.59 for modules. This
  should fix some of the module-configure/make config bugs. Couple more
  commits coming in a sec. Test me (although already tested pretty well).
  Needs to at least be tested on Cygwin, and I don't have access to
  Cygwin ATM.

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23