/[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.38 - (show annotations) (download)
Thu Jun 17 05:43:28 2004 UTC (15 years, 4 months ago) by wcc
Branch: MAIN
Changes since 1.37: +23 -21 lines
* Some more build-process stuff.

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23