/[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.23 - (hide annotations) (download)
Sun Oct 17 20:29:16 1999 UTC (20 years, 3 months ago) by guppy
Branch: MAIN
Changes since 1.22: +1 -1 lines
oops, missing a ;

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23