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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23