/[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.24 - (hide annotations) (download)
Mon Oct 18 19:59:49 1999 UTC (20 years, 3 months ago) by guppy
Branch: MAIN
Changes since 1.23: +11 -10 lines
dang coredumps

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23