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

Annotation of /eggdrop1.4/Makefile.in

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


Revision 1.31 - (hide annotations) (download)
Wed Dec 15 02:32:56 1999 UTC (20 years, 1 month ago) by guppy
Branch: MAIN
CVS Tags: eggdrop104020RC1, eggdrop104030RC2, eggdrop10403RC1, eggdrop10402RC1, eggdrop10404, eggdrop10403, eggdrop10402
Changes since 1.30: +1 -0 lines
id-header patch, finally, we have id tags for each file

1 segfault 1.1 #
2     # This is the Makefile for EGGDROP (the irc bot)
3     # You should never need to edit this.
4     #
5 guppy 1.31 # $Id$
6 segfault 1.1
7 arthur2 1.17 SHELL = /bin/sh
8 arthur2 1.26 top_srcdir = @top_srcdir@
9 arthur2 1.17
10 arthur2 1.26 @SET_MAKE@
11 segfault 1.1 prefix = @prefix@
12 guppy 1.15 DEST = @DEST@
13 arthur2 1.17 EGGEXEC = @EGGEXEC@
14 guppy 1.20 EGGVERSION = @EGGVERSION@
15 segfault 1.1
16     # things you can put here:
17 guppy 1.27 # -Wall if you're using gcc and it supports it
18     # (configure usually detects this anyway now)
19 guppy 1.30 #
20     # -DDEBUG_ASSERT to enable assert debugging
21 guppy 1.29 # -DDEBUG_MEM to be able to debug memory allocation (.debug)
22 guppy 1.30 # These can both be set by using 'make debug'
23     # or 'make sdebug'
24 guppy 1.14 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 guppy 1.15 # btw to turn STRIP off, do 'STRIP = touch' not 'STRIP ='
29 segfault 1.1
30 arthur2 1.17 # defaults
31 guppy 1.15 CC = @CC@
32     LD = @CC@
33 arthur2 1.17 STRIP = @STRIP@
34     RANLIB = @RANLIB@
35 segfault 1.1
36 arthur2 1.17 # make eggmod
37     MOD_CC = @MOD_CC@
38     MOD_LD = @MOD_LD@
39     MOD_STRIP = @MOD_STRIP@
40 segfault 1.1
41 arthur2 1.17 # make modules
42 segfault 1.1 SHLIB_CC = @SHLIB_CC@
43 guppy 1.15 SHLIB_LD = @SHLIB_LD@
44 segfault 1.1 SHLIB_STRIP = @SHLIB_STRIP@
45    
46 arthur2 1.17 # programs make install uses
47 guppy 1.15 LN_S = @LN_S@
48 arthur2 1.17 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 arthur2 1.25 XREQS = @TCL_REQS@
60     XLIBS = @TCL_LIBS@ @LIBS@
61 segfault 1.1 TCLLIB = @TCLLIB@
62 guppy 1.24 TCLLIBFN = @TCLLIBFN@
63 arthur2 1.17
64     CFLAGS = @CFLAGS@ -I.. @DEFS@ $(CFLGS)
65 guppy 1.30 DEBCFLAGS = @CFLAGS@ -I.. @DEFS@ -DDEBUG_ASSERT -DDEBUG_MEM $(CFLGS)
66 arthur2 1.17
67 guppy 1.28 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 arthur2 1.17
73 guppy 1.28 MAKE_MODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
74 guppy 1.21 'STRIP=$(SHLIB_STRIP)' 'CFLAGS=$(CFLAGS)' 'CPPFLAGS=$(CPPFLAGS)'
75 arthur2 1.17
76 guppy 1.28 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     'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' \
80     '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 arthur2 1.17
88 guppy 1.28 MAKE_DEBMODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
89 guppy 1.27 'STRIP=touch' 'CFLAGS=-g3 $(DEBCFLAGS)' 'CPPFLAGS=$(CPPFLAGS)'
90 arthur2 1.17
91 guppy 1.28 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     'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' \
95     'EGGBUILD=(static and debug version)' 'MODOBJS=mod/*.o'
96 arthur2 1.26
97 guppy 1.28 MAKE_DEPEND = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
98     'STRIP=$(STRIP)' 'CFLAGS=$(CFLAGS)' 'CPPFLAGS=$(CPPFLAGS)'
99    
100     MAKE_INSTALL = $(MAKE) 'MAKE=$(MAKE)' 'DEST=$(DEST)'
101 arthur2 1.17
102     all: @DEFAULT_MAKE@
103    
104     clean:
105     @rm -f $(EGGEXEC) *.so *.stamp core DEBUG *~
106 guppy 1.22 @cd doc; $(MAKE) clean
107 guppy 1.23 @cd scripts; $(MAKE) clean
108 arthur2 1.17 @cd src; $(MAKE) clean
109     @cd src/md5; $(MAKE) clean
110     @cd src/mod; $(MAKE) clean
111 segfault 1.1
112 guppy 1.12 distclean: clean
113 guppy 1.20 @rm -f Makefile doc/Makefile scripts/Makefile src/Makefile src/md5/Makefile src/mod/Makefile
114 guppy 1.19 @rm -f config.cache config.log config.status config.h lush.h
115 arthur2 1.17
116 guppy 1.22 distrib: distclean
117 guppy 1.12 @rm -f `find . \( -name '*~' -o -name '*#' -o -name '*.orig' \
118     -o -name '*.rej' -o -name '*.bak' \) -print`
119 arthur2 1.25 @rm -rf `find . \( -name 'CVS' \) -print`
120 guppy 1.12 @(echo "all:"; \
121 arthur2 1.18 echo " @echo \"\""; \
122 guppy 1.12 echo " @echo \"Before you can compile your bot you have to configure it.\""; \
123     echo " @echo \"So please start the configure script now:\""; \
124     echo " @echo \"\""; \
125     echo " @echo \" % ./configure\""; \
126     echo " @echo \"\""; ) > Makefile
127 guppy 1.28
128     depend:
129     @cat /dev/null > lush.h
130     @cd src; $(MAKE_DEPEND) depend
131     @cd src/md5; $(MAKE_DEPEND) depend
132     @cd src/mod; $(MAKE_DEPEND) depend
133 segfault 1.1
134     eggdrop: modegg modules
135    
136 arthur2 1.17 modegg: modtest
137 arthur2 1.26 @cd src; $(MAKE_MODEGG) $(EGGEXEC)
138 arthur2 1.17 @echo ""
139     @./$(EGGEXEC) -v
140     @ls -l $(EGGEXEC)
141 segfault 1.1
142 arthur2 1.17 modules: modtest
143     @cd src/mod; $(MAKE_MODULES) modules
144     @echo ""
145     @echo "modules made:"
146     @ls -l *.so
147 segfault 1.1
148     static: eggtest
149     @echo ""
150     @echo "Making module objects for static linking..."
151     @echo ""
152 arthur2 1.17 @cd src/mod; $(MAKE_STATIC) static
153 segfault 1.1 @echo ""
154     @echo "Making core eggdrop for static linking..."
155     @echo ""
156 arthur2 1.26 @cd src; $(MAKE_STATIC) $(EGGEXEC)
157 arthur2 1.18 @echo ""
158 arthur2 1.17 @./$(EGGEXEC) -v
159     @ls -l $(EGGEXEC)
160    
161 arthur2 1.25 debug: debegg debmodules
162 segfault 1.1
163 arthur2 1.25 debegg: modtest
164 arthur2 1.26 @cd src; $(MAKE_DEBEGG) $(EGGEXEC)
165 arthur2 1.17 @echo ""
166     @./$(EGGEXEC) -v
167     @ls -l $(EGGEXEC)
168 segfault 1.1
169 arthur2 1.17 debmodules: modtest
170     @cd src/mod; $(MAKE_DEBMODULES) modules
171     @echo ""
172 segfault 1.1 @echo "modules made:"
173 arthur2 1.17 @ls -l *.so
174 segfault 1.1
175 arthur2 1.17 sdebug: eggtest
176     @echo ""
177     @echo "Making module objects for static linking..."
178     @echo ""
179     @cd src/mod; $(MAKE_SDEBUG) static
180     @echo ""
181     @echo "Making core eggdrop for static linking..."
182     @echo ""
183 arthur2 1.26 @cd src; $(MAKE_SDEBUG) $(EGGEXEC)
184 arthur2 1.18 @echo ""
185 arthur2 1.17 @./$(EGGEXEC) -v
186     @ls -l $(EGGEXEC)
187 segfault 1.1
188     eggtest:
189     @if [ -f EGGMOD.stamp ]; then \
190 arthur2 1.17 echo "You're trying to do a STATIC build of eggdrop when you've";\
191     echo "already run 'make' for a module build.";\
192     echo "You must first type \"make clean\" before you can build";\
193     echo "a static version.";\
194 segfault 1.1 exit 1;\
195     fi
196 arthur2 1.17 @echo "stamp" >EGGDROP.stamp
197 segfault 1.1
198     modtest:
199     @if [ -f EGGDROP.stamp ]; then \
200 arthur2 1.17 echo "You're trying to do a MODULE build of eggdrop when you've";\
201     echo "already run 'make' for a static build.";\
202     echo "You must first type \"make clean\" before you can build";\
203     echo "a module version.";\
204 segfault 1.1 exit 1;\
205     fi
206 arthur2 1.17 @echo "stamp" >EGGMOD.stamp
207 segfault 1.1
208 guppy 1.20 install: ainstall
209 segfault 1.1
210     dinstall: eggdrop ainstall
211    
212     sinstall: static ainstall
213    
214 arthur2 1.17 ainstall: install-start install-bin install-modules install-data \
215 guppy 1.21 install-help install-language install-filesys install-doc \
216     install-scripts install-end
217 arthur2 1.17
218     install-start:
219 guppy 1.20 @if test ! -f $(EGGEXEC); then \
220 guppy 1.21 echo ""; \
221 guppy 1.20 echo "You haven't compiled eggdrop yet."; \
222 guppy 1.21 echo "To compile eggdrop use:"; \
223     echo " make <target>"; \
224     echo ""; \
225     echo " valid targets: eggdrop static debug sdebug"; \
226     echo ""; \
227 guppy 1.20 exit 1; \
228     fi
229 arthur2 1.17 @if test "x$(DEST)" = "x"; then \
230 segfault 1.1 echo "You must specify a destination directory with DEST="; \
231     exit 1; \
232     fi
233 arthur2 1.18 @echo ""
234 arthur2 1.17 @./$(EGGEXEC) -v
235 segfault 1.1 @echo
236 arthur2 1.17 @echo "Installing in directory: '$(DEST)'."
237 segfault 1.1 @echo
238     @if test ! -d $(DEST); then \
239 arthur2 1.17 echo "Creating directory: $(DEST)."; \
240 arthur2 1.26 $(top_srcdir)/mkinstalldirs $(DEST); \
241 segfault 1.1 fi
242 arthur2 1.17
243     install-bin:
244     @if test -f $(DEST)/$(EGGEXEC); then \
245     rm -f $(DEST)/o$(EGGEXEC); \
246 segfault 1.1 fi
247 arthur2 1.17 @if test -h $(DEST)/$(EGGEXEC); then \
248     echo "Removing symlink to archival eggdrop binary."; \
249     rm -f $(DEST)/$(EGGEXEC); \
250 guppy 1.12 fi
251 arthur2 1.17 @if test -f $(DEST)/$(EGGEXEC); then \
252     echo "Renamed the old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
253     mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
254 guppy 1.8 fi
255 arthur2 1.17 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
256 guppy 1.20 @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(EGGVERSION)
257     @(cd $(DEST) && $(LN_S) $(EGGEXEC)-$(EGGVERSION) $(EGGEXEC))
258 arthur2 1.17
259     install-modules:
260 segfault 1.1 @if test -h $(DEST)/modules; then \
261 arthur2 1.17 echo "Removing symlink to archival modules directory."; \
262 segfault 1.1 rm -f $(DEST)/modules; \
263     fi
264 arthur2 1.17 @if test -d $(DEST)/modules; then \
265     echo "Moving old modules into 'modules.old' directory."; \
266 segfault 1.1 rm -rf $(DEST)/modules.old; \
267     mv -f $(DEST)/modules $(DEST)/modules.old; \
268     fi
269 arthur2 1.17 @if test ! "x`echo *.so`" = "x*.so"; then \
270 guppy 1.20 if test ! -d $(DEST)/modules-$(EGGVERSION); then \
271     echo "Creating modules-$(EGGVERSION) directory and symlink."; \
272 arthur2 1.26 $(top_srcdir)/mkinstalldirs $(DEST)/modules-$(EGGVERSION); \
273 arthur2 1.17 fi; \
274 guppy 1.20 (cd $(DEST) && $(LN_S) modules-$(EGGVERSION) modules); \
275 arthur2 1.17 echo "Copying new modules."; \
276     for i in *.so; do \
277 guppy 1.20 $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(EGGVERSION)/; \
278 arthur2 1.17 done; \
279 segfault 1.1 fi
280 arthur2 1.17
281     install-data:
282     @$(INSTALL_DATA) eggdrop.conf.dist $(DEST)
283     @if test ! -f $(DEST)/motd; then \
284     $(INSTALL_DATA) motd $(DEST); \
285     fi
286     @if test ! -f $(DEST)/telnet-banner; then \
287     $(INSTALL_DATA) telnet-banner $(DEST); \
288     fi
289    
290     install-help:
291 guppy 1.19 @echo "Copying help files."
292 arthur2 1.17 @if test ! "x`echo help/*.help`" = "xhelp/*.help"; then \
293     if test ! -d $(DEST)/help; then \
294     echo "Creating 'help' subdirectory."; \
295 arthur2 1.26 $(top_srcdir)/mkinstalldirs $(DEST)/help; \
296 arthur2 1.17 fi; \
297     for i in help/*.help; do \
298     $(INSTALL_DATA) $$i $(DEST)/help/; \
299     done; \
300     fi
301     @if test ! "x`echo help/msg/*.help`" = "xhelp/msg/*.help"; then \
302     if test ! -d $(DEST)/help/msg; then \
303     echo "Creating 'help/msg' subdirectory."; \
304 arthur2 1.26 $(top_srcdir)/mkinstalldirs $(DEST)/help/msg; \
305 arthur2 1.17 fi; \
306     for i in help/msg/*.help; do \
307     $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
308     done; \
309     fi
310     @if test ! "x`echo help/set/*.help`" = "xhelp/set/*.help"; then \
311     if test ! -d $(DEST)/help/set; then \
312     echo "Creating 'help/set' subdirectory."; \
313 arthur2 1.26 $(top_srcdir)/mkinstalldirs $(DEST)/help/set; \
314 arthur2 1.17 fi; \
315     for i in help/set/*.help; do \
316     $(INSTALL_DATA) $$i $(DEST)/help/set/; \
317     done; \
318     fi
319     @cd src/mod/; $(MAKE_INSTALL) install-help
320 guppy 1.19
321     install-language:
322     @echo "Copying language files."
323     @if test ! "x`echo language/*.lang`" = "xlanguage/*.lang"; then \
324     if test ! -d $(DEST)/language; then \
325     echo "Creating 'language' subdirectory."; \
326 arthur2 1.26 $(top_srcdir)/mkinstalldirs $(DEST)/language; \
327 guppy 1.19 fi; \
328     for i in language/*.lang; do \
329     $(INSTALL_DATA) $$i $(DEST)/language/; \
330     done; \
331     fi
332     @cd src/mod/; $(MAKE_INSTALL) install-language
333 arthur2 1.17
334     install-filesys:
335 segfault 1.1 @if test ! -d $(DEST)/filesys; then \
336 arthur2 1.17 echo "Creating a skeletal filesys subdirectory."; \
337 arthur2 1.26 $(top_srcdir)/mkinstalldirs $(DEST)/filesys; \
338     $(top_srcdir)/mkinstalldirs $(DEST)/filesys/incoming; \
339 segfault 1.1 fi
340 arthur2 1.17
341     install-doc:
342 guppy 1.21 @$(INSTALL_DATA) README $(DEST)
343 arthur2 1.17 @cd doc/; $(MAKE_INSTALL) install
344    
345     install-scripts:
346     @cd scripts/; $(MAKE_INSTALL) install
347    
348     install-end:
349 segfault 1.1 @echo
350 arthur2 1.17 @echo "Installation completed."
351 arthur2 1.18 @echo ""
352 arthur2 1.17 @echo "You MUST ensure that you edit/verify your configuration file."
353     @echo "'eggdrop.conf.dist' lists current options."
354 arthur2 1.18 @echo ""
355 arthur2 1.17 @echo "Remember to change directory to $(DEST) before you proceed."
356 arthur2 1.18 @echo ""
357 segfault 1.1
358     #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23