/[cvs]/eggdrop1.9/Makefile.in
ViewVC logotype

Contents of /eggdrop1.9/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.35 - (show annotations) (download)
Wed Oct 10 01:20:08 2001 UTC (17 years, 11 months ago) by ite
Branch: MAIN
CVS Tags: HEAD
Changes since 1.34: +1 -1 lines
FILE REMOVED
* Refactored the tree (especially src/modules.c) to use the libltdl
  wrapper. Modules are configured to be lt_dlopened or dl_preopened (if
  the system doesn't support shared libraries).
* Should compile modules on more SunOs environments and on Beos too.
* Libtoolized the package: modules and internal libraries build system
  more protable than ever.
* Wiped out old makefiles in favour of automake and Makefile.am's
  files.
* Misc cleanups.
* Updated bootstrap script
* Moved doc/AUTHORS to ./AUTHORS
* Updated config.guess and config.sub
* Changed misc/ to ./ temporairly
* Got rid of misc/modconfig, and more in general of the old module
  configuration stuff, in favor of an incoming ./configure parametrized
  choice.
* Moved configure macros from aclocal.m4 to acinclude.m4 since aclocal.m4
  is now generated by aclocal on bootstrap.
* Removed no more necessary macros like EGG_EXEEXT because of
  libltdl+automake power ;P
* Removed EGG_CHECK_LIBSAFE_SSCANF macro that wasn't necessary anymore
  after gettext support.
* Added preliminary EGG_DEBUG_OPTIONS macro.
* Heavily stripped EGG_CHECK_OS macro and got rid of some system
  specific defines that were dead because of libltdl.
* Updated .cvsignore files.
* Improved make dist target.
* make static is gone in favor of ./configure --disable-shared.
* make debug is gone in favor of future ./configure --with-debug
  options.
* Others targets are gone in favor of more GNU standard targets.
* Updated po/eggdrop.pot.
# Egglib is now compiled and linked in the core.
* Moved compress.mod's specific configure macros to the top configure script.
* Switched to gettext 0.10.40 and pre-gettextized the devel tree.

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23