/[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.30 - (hide annotations) (download)
Mon Dec 13 18:20:08 1999 UTC (19 years, 10 months ago) by guppy
Branch: MAIN
Changes since 1.29: +5 -2 lines
bytesfix, yay, supers needs to test this

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23