/[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.13 - (hide annotations) (download)
Fri Feb 25 21:51:29 2000 UTC (19 years, 7 months ago) by fabian
Branch: MAIN
Changes since 1.12: +43 -28 lines
configure_module 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.13 # $Id: Makefile.in,v 1.12 1999/12/21 17:35:01 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.8 MAKE_MODEGG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(MOD_CC)' 'LD=$(MOD_LD)' \
68     'STRIP=$(MOD_STRIP)' 'RANLIB=$(RANLIB)' 'CFLAGS=$(CFLAGS)' \
69     'CPPFLAGS=$(CPPFLAGS)' 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' \
70     'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' \
71     'EGGBUILD=' 'MODOBJS='
72 fabian 1.6
73 fabian 1.8 MAKE_MODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
74 fabian 1.6 'STRIP=$(SHLIB_STRIP)' 'CFLAGS=$(CFLAGS)' 'CPPFLAGS=$(CPPFLAGS)'
75    
76 fabian 1.8 MAKE_STATIC = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
77     'STRIP=$(STRIP)' 'RANLIB=$(RANLIB)' 'CFLAGS=$(CFLAGS) -DSTATIC' \
78     'CPPFLAGS=$(CPPFLAGS)' 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' \
79 fabian 1.13 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' \
80 fabian 1.8 'EGGBUILD=(static version)' 'MODOBJS=mod/*.o'
81    
82     MAKE_DEBEGG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(MOD_CC)' 'LD=$(MOD_LD) -g' \
83     'STRIP=touch' 'RANLIB=$(RANLIB)' 'CFLAGS=-g3 $(DEBCFLAGS)' \
84     'CPPFLAGS=$(CPPFLAGS)' 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' \
85     'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' \
86     'EGGBUILD=(debug version)' 'MODOBJS='
87    
88     MAKE_DEBMODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
89     'STRIP=touch' 'CFLAGS=-g3 $(DEBCFLAGS)' 'CPPFLAGS=$(CPPFLAGS)'
90    
91     MAKE_SDEBUG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD) -g' \
92     'STRIP=touch' 'RANLIB=$(RANLIB)' 'CFLAGS=-g3 $(DEBCFLAGS) -DSTATIC' \
93     'CPPFLAGS=$(CPPFLAGS)' 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' \
94 fabian 1.13 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' \
95 fabian 1.8 'EGGBUILD=(static and debug version)' 'MODOBJS=mod/*.o'
96 fabian 1.6
97 fabian 1.8 MAKE_DEPEND = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
98     'STRIP=$(STRIP)' 'CFLAGS=$(CFLAGS)' 'CPPFLAGS=$(CPPFLAGS)'
99 fabian 1.6
100 fabian 1.13 MAKE_CONFIG = $(MAKE) 'MAKE=$(MAKE)'
101    
102 fabian 1.8 MAKE_INSTALL = $(MAKE) 'MAKE=$(MAKE)' 'DEST=$(DEST)'
103 fabian 1.6
104     all: @DEFAULT_MAKE@
105    
106 fabian 1.13 eggclean:
107 fabian 1.6 @rm -f $(EGGEXEC) *.so *.stamp core DEBUG *~
108 fabian 1.13 @cd doc && $(MAKE) clean
109     @cd scripts && $(MAKE) clean
110     @cd src && $(MAKE) clean
111     @cd src/md5 && $(MAKE) clean
112    
113     clean: eggclean
114     @cd src/mod && $(MAKE) clean
115 segfault 1.1
116 fabian 1.13 distclean: eggclean
117     @cd src/mod && $(MAKE) distclean
118 fabian 1.6 @rm -f Makefile doc/Makefile scripts/Makefile src/Makefile src/md5/Makefile src/mod/Makefile
119 fabian 1.13 @rm -f config.cache config.log config.status config.h lush.h .modules .modnames
120 fabian 1.6
121     distrib: distclean
122 fabian 1.2 @rm -f `find . \( -name '*~' -o -name '*#' -o -name '*.orig' \
123     -o -name '*.rej' -o -name '*.bak' \) -print`
124 fabian 1.7 @rm -rf `find . \( -name 'CVS' \) -print`
125 fabian 1.2 @(echo "all:"; \
126 fabian 1.6 echo " @echo \"\""; \
127 fabian 1.2 echo " @echo \"Before you can compile your bot you have to configure it.\""; \
128     echo " @echo \"So please start the configure script now:\""; \
129     echo " @echo \"\""; \
130     echo " @echo \" % ./configure\""; \
131     echo " @echo \"\""; ) > Makefile
132 segfault 1.1
133 fabian 1.8 depend:
134     @cat /dev/null > lush.h
135 fabian 1.13 @cd src && $(MAKE_DEPEND) depend
136     @cd src/md5 && $(MAKE_DEPEND) depend
137     @cd src/mod && $(MAKE_DEPEND) depend
138    
139     config:
140     @cd src/mod && $(MAKE_CONFIG) config
141     @src/mod/modtool --root-dir=. -q makefile
142    
143     reconfig:
144     @src/mod/modtool --root-dir=. config
145     @src/mod/modtool --root-dir=. update-depends
146     @$(MAKE) config
147 fabian 1.8
148 segfault 1.1 eggdrop: modegg modules
149    
150 fabian 1.6 modegg: modtest
151 fabian 1.13 @rm -f src/mod/mod.xlibs
152     @cd src && $(MAKE_MODEGG) $(EGGEXEC)
153 fabian 1.6 @echo ""
154     @./$(EGGEXEC) -v
155     @ls -l $(EGGEXEC)
156 segfault 1.1
157 fabian 1.6 modules: modtest
158 fabian 1.13 @cd src/mod && $(MAKE_MODULES) modules
159 fabian 1.6 @echo ""
160     @echo "modules made:"
161     @ls -l *.so
162 segfault 1.1
163     static: eggtest
164     @echo ""
165     @echo "Making module objects for static linking..."
166     @echo ""
167 fabian 1.13 @rm -f src/mod/mod.xlibs
168     @cd src/mod && $(MAKE_STATIC) static
169 segfault 1.1 @echo ""
170     @echo "Making core eggdrop for static linking..."
171     @echo ""
172 fabian 1.13 @cd src && $(MAKE_STATIC) $(EGGEXEC)
173 fabian 1.6 @echo ""
174     @./$(EGGEXEC) -v
175     @ls -l $(EGGEXEC)
176 segfault 1.1
177 fabian 1.7 debug: debegg debmodules
178 fabian 1.6
179 fabian 1.7 debegg: modtest
180 fabian 1.13 @cd src && $(MAKE_DEBEGG) $(EGGEXEC)
181 fabian 1.6 @echo ""
182     @./$(EGGEXEC) -v
183     @ls -l $(EGGEXEC)
184 segfault 1.1
185 fabian 1.6 debmodules: modtest
186 fabian 1.13 @cd src/mod && $(MAKE_DEBMODULES) modules
187 fabian 1.6 @echo ""
188 segfault 1.1 @echo "modules made:"
189 fabian 1.6 @ls -l *.so
190 segfault 1.1
191 fabian 1.6 sdebug: eggtest
192     @echo ""
193     @echo "Making module objects for static linking..."
194     @echo ""
195 fabian 1.13 @rm -f src/mod/mod.xlibs
196     @cd src/mod && $(MAKE_SDEBUG) static
197 fabian 1.6 @echo ""
198     @echo "Making core eggdrop for static linking..."
199     @echo ""
200 fabian 1.13 @cd src && $(MAKE_SDEBUG) $(EGGEXEC)
201 fabian 1.6 @echo ""
202     @./$(EGGEXEC) -v
203     @ls -l $(EGGEXEC)
204 segfault 1.1
205     eggtest:
206     @if [ -f EGGMOD.stamp ]; then \
207 fabian 1.6 echo "You're trying to do a STATIC build of eggdrop when you've";\
208     echo "already run 'make' for a module build.";\
209     echo "You must first type \"make clean\" before you can build";\
210     echo "a static version.";\
211 segfault 1.1 exit 1;\
212     fi
213 fabian 1.6 @echo "stamp" >EGGDROP.stamp
214 segfault 1.1
215     modtest:
216     @if [ -f EGGDROP.stamp ]; then \
217 fabian 1.6 echo "You're trying to do a MODULE build of eggdrop when you've";\
218     echo "already run 'make' for a static build.";\
219     echo "You must first type \"make clean\" before you can build";\
220     echo "a module version.";\
221 segfault 1.1 exit 1;\
222     fi
223 fabian 1.6 @echo "stamp" >EGGMOD.stamp
224 segfault 1.1
225 fabian 1.6 install: ainstall
226 segfault 1.1
227     dinstall: eggdrop ainstall
228    
229     sinstall: static ainstall
230    
231 fabian 1.6 ainstall: install-start install-bin install-modules install-data \
232     install-help install-language install-filesys install-doc \
233     install-scripts install-end
234    
235     install-start:
236     @if test ! -f $(EGGEXEC); then \
237     echo ""; \
238     echo "You haven't compiled eggdrop yet."; \
239     echo "To compile eggdrop use:"; \
240     echo " make <target>"; \
241     echo ""; \
242     echo " valid targets: eggdrop static debug sdebug"; \
243     echo ""; \
244 segfault 1.1 exit 1; \
245     fi
246 fabian 1.6 @if test "x$(DEST)" = "x"; then \
247     echo "You must specify a destination directory with DEST="; \
248 segfault 1.1 exit 1; \
249     fi
250 fabian 1.6 @echo ""
251     @./$(EGGEXEC) -v
252 segfault 1.1 @echo
253 fabian 1.6 @echo "Installing in directory: '$(DEST)'."
254 segfault 1.1 @echo
255     @if test ! -d $(DEST); then \
256 fabian 1.6 echo "Creating directory: $(DEST)."; \
257 fabian 1.8 $(top_srcdir)/mkinstalldirs $(DEST); \
258 segfault 1.1 fi
259 fabian 1.6
260     install-bin:
261     @if test -f $(DEST)/$(EGGEXEC); then \
262     rm -f $(DEST)/o$(EGGEXEC); \
263 segfault 1.1 fi
264 fabian 1.6 @if test -h $(DEST)/$(EGGEXEC); then \
265     echo "Removing symlink to archival eggdrop binary."; \
266     rm -f $(DEST)/$(EGGEXEC); \
267 fabian 1.2 fi
268 fabian 1.6 @if test -f $(DEST)/$(EGGEXEC); then \
269     echo "Renamed the old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
270     mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
271 segfault 1.1 fi
272 fabian 1.6 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
273     @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(EGGVERSION)
274     @(cd $(DEST) && $(LN_S) $(EGGEXEC)-$(EGGVERSION) $(EGGEXEC))
275    
276     install-modules:
277 segfault 1.1 @if test -h $(DEST)/modules; then \
278 fabian 1.6 echo "Removing symlink to archival modules directory."; \
279 segfault 1.1 rm -f $(DEST)/modules; \
280     fi
281 fabian 1.6 @if test -d $(DEST)/modules; then \
282     echo "Moving old modules into 'modules.old' directory."; \
283 segfault 1.1 rm -rf $(DEST)/modules.old; \
284     mv -f $(DEST)/modules $(DEST)/modules.old; \
285     fi
286 fabian 1.6 @if test ! "x`echo *.so`" = "x*.so"; then \
287     if test ! -d $(DEST)/modules-$(EGGVERSION); then \
288     echo "Creating modules-$(EGGVERSION) directory and symlink."; \
289 fabian 1.8 $(top_srcdir)/mkinstalldirs $(DEST)/modules-$(EGGVERSION); \
290 fabian 1.6 fi; \
291     (cd $(DEST) && $(LN_S) modules-$(EGGVERSION) modules); \
292     echo "Copying new modules."; \
293     for i in *.so; do \
294     $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(EGGVERSION)/; \
295     done; \
296     fi
297    
298     install-data:
299     @$(INSTALL_DATA) eggdrop.conf.dist $(DEST)
300     @if test ! -d $(DEST)/logs; then \
301     echo "Creating 'logs' subdirectory."; \
302 fabian 1.8 $(top_srcdir)/mkinstalldirs $(DEST)/logs; \
303 fabian 1.6 $(INSTALL_DATA) logs/CONTENTS $(DEST)/logs/; \
304     fi;
305     @if test ! -d $(DEST)/text; then \
306     echo "Creating 'text' subdirectory."; \
307 fabian 1.8 $(top_srcdir)/mkinstalldirs $(DEST)/text; \
308 fabian 1.6 fi;
309     @if test ! -f $(DEST)/text/motd; then \
310     $(INSTALL_DATA) text/motd $(DEST)/text/; \
311     fi
312     @if test ! -f $(DEST)/text/banner; then \
313     $(INSTALL_DATA) text/banner $(DEST)/text/; \
314     fi
315    
316     install-help:
317     @echo "Copying help files."
318     @if test ! "x`echo help/*.help`" = "xhelp/*.help"; then \
319     if test ! -d $(DEST)/help; then \
320     echo "Creating 'help' subdirectory."; \
321 fabian 1.8 $(top_srcdir)/mkinstalldirs $(DEST)/help; \
322 fabian 1.6 fi; \
323     for i in help/*.help; do \
324     $(INSTALL_DATA) $$i $(DEST)/help/; \
325     done; \
326     fi
327     @if test ! "x`echo help/msg/*.help`" = "xhelp/msg/*.help"; then \
328     if test ! -d $(DEST)/help/msg; then \
329     echo "Creating 'help/msg' subdirectory."; \
330 fabian 1.8 $(top_srcdir)/mkinstalldirs $(DEST)/help/msg; \
331 fabian 1.6 fi; \
332     for i in help/msg/*.help; do \
333     $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
334     done; \
335     fi
336     @if test ! "x`echo help/set/*.help`" = "xhelp/set/*.help"; then \
337     if test ! -d $(DEST)/help/set; then \
338     echo "Creating 'help/set' subdirectory."; \
339 fabian 1.8 $(top_srcdir)/mkinstalldirs $(DEST)/help/set; \
340 fabian 1.6 fi; \
341     for i in help/set/*.help; do \
342     $(INSTALL_DATA) $$i $(DEST)/help/set/; \
343     done; \
344     fi
345 fabian 1.13 @cd src/mod/ && $(MAKE_INSTALL) install-help
346 fabian 1.6
347     install-language:
348     @echo "Copying language files."
349     @if test ! "x`echo language/*.lang`" = "xlanguage/*.lang"; then \
350     if test ! -d $(DEST)/language; then \
351     echo "Creating 'language' subdirectory."; \
352 fabian 1.8 $(top_srcdir)/mkinstalldirs $(DEST)/language; \
353 fabian 1.6 fi; \
354     for i in language/*.lang; do \
355     $(INSTALL_DATA) $$i $(DEST)/language/; \
356     done; \
357 segfault 1.1 fi
358 fabian 1.13 @cd src/mod && $(MAKE_INSTALL) install-language
359 fabian 1.6
360     install-filesys:
361 segfault 1.1 @if test ! -d $(DEST)/filesys; then \
362 fabian 1.6 echo "Creating a skeletal filesys subdirectory."; \
363 fabian 1.8 $(top_srcdir)/mkinstalldirs $(DEST)/filesys; \
364     $(top_srcdir)/mkinstalldirs $(DEST)/filesys/incoming; \
365 segfault 1.1 fi
366 fabian 1.6
367     install-doc:
368     @$(INSTALL_DATA) README $(DEST)
369 fabian 1.13 @cd doc/ && $(MAKE_INSTALL) install
370 fabian 1.6
371     install-scripts:
372 fabian 1.13 @cd scripts/ && $(MAKE_INSTALL) install
373 fabian 1.6
374     install-end:
375 segfault 1.1 @echo
376 fabian 1.6 @echo "Installation completed."
377     @echo ""
378     @echo "You MUST ensure that you edit/verify your configuration file."
379     @echo "'eggdrop.conf.dist' lists current options."
380     @echo ""
381     @echo "Remember to change directory to $(DEST) before you proceed."
382     @echo ""
383 segfault 1.1
384     #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23