/[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.28 - (hide annotations) (download)
Thu Nov 4 20:20:52 1999 UTC (20 years, 2 months ago) by guppy
Branch: MAIN
Changes since 1.27: +33 -20 lines
blah

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23