/[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.19 - (hide annotations) (download)
Fri Oct 15 22:22:29 1999 UTC (21 years, 4 months ago) by guppy
Branch: MAIN
Changes since 1.18: +18 -17 lines
tothwolf's patches to fix a few things

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23