/[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.21 - (hide annotations) (download)
Sun Oct 17 00:13:06 1999 UTC (20 years, 3 months ago) by guppy
Branch: MAIN
Changes since 1.20: +15 -9 lines
Tothwolf's latest patches, more-make-fixes and va-fixes.diff

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23