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

Annotation of /eggdrop1.6/Makefile.in

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


Revision 1.17 - (hide annotations) (download)
Wed Mar 22 00:42:56 2000 UTC (19 years, 3 months ago) by fabian
Branch: MAIN
Changes since 1.16: +36 -36 lines
configure_makefile_fix3 patch

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23