/[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.18 - (hide annotations) (download)
Fri Oct 15 16:38:39 1999 UTC (20 years, 3 months ago) by arthur2
Branch: MAIN
Changes since 1.17: +7 -1 lines
fix-stuff.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    
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     MAKE_INSTALL = $(MAKE) 'DEST=$(DEST)' 'INSTALL=$(INSTALL)' \
87     'INSTALL_PROGRAM=$(INSTALL_PROGRAM)' 'INSTALL_DATA=$(INSTALL_DATA)' \
88     'INSTALL_SCRIPT=$(INSTALL_SCRIPT)'
89    
90     all: @DEFAULT_MAKE@
91    
92     clean:
93     @rm -f $(EGGEXEC) *.so *.stamp core DEBUG *~
94     @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.10 @rm -f Makefile config.cache config.log config.status config.h lush.h
100 arthur2 1.17
101     distrib: distclean Makefile.in
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     install: @DEFAULT_MAKE@ ainstall
188    
189     dinstall: eggdrop ainstall
190    
191     sinstall: static ainstall
192    
193 arthur2 1.17 ainstall: install-start install-bin install-modules install-data \
194     install-language install-help install-filesys install-doc \
195     install-scripts install-end
196    
197     install-start:
198     @if test "x$(DEST)" = "x"; then \
199 segfault 1.1 echo "You must specify a destination directory with DEST="; \
200     exit 1; \
201     fi
202 arthur2 1.17 @if test ! -f $(EGGEXEC); then \
203 segfault 1.1 echo "You haven't compiled eggdrop yet."; \
204     exit 1; \
205     fi
206 arthur2 1.18 @echo ""
207 arthur2 1.17 @./$(EGGEXEC) -v
208 segfault 1.1 @echo
209 arthur2 1.17 @echo "Installing in directory: '$(DEST)'."
210 segfault 1.1 @echo
211     @if test ! -d $(DEST); then \
212 arthur2 1.17 echo "Creating directory: $(DEST)."; \
213     $(INSTALL) -d $(DEST); \
214 segfault 1.1 fi
215 arthur2 1.17
216     install-bin:
217     @if test -f $(DEST)/$(EGGEXEC); then \
218     rm -f $(DEST)/o$(EGGEXEC); \
219 segfault 1.1 fi
220 arthur2 1.17 @if test -h $(DEST)/$(EGGEXEC); then \
221     echo "Removing symlink to archival eggdrop binary."; \
222     rm -f $(DEST)/$(EGGEXEC); \
223 guppy 1.12 fi
224 arthur2 1.17 @if test -f $(DEST)/$(EGGEXEC); then \
225     echo "Renamed the old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
226     mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
227 guppy 1.8 fi
228 arthur2 1.17 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
229     @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(NEWVERSION)
230     @$(LN_S) $(EGGEXEC)-$(NEWVERSION) $(DEST)/$(EGGEXEC)
231    
232     install-modules:
233 segfault 1.1 @if test -h $(DEST)/modules; then \
234 arthur2 1.17 echo "Removing symlink to archival modules directory."; \
235 segfault 1.1 rm -f $(DEST)/modules; \
236     fi
237 arthur2 1.17 @if test -d $(DEST)/modules; then \
238     echo "Moving old modules into 'modules.old' directory."; \
239 segfault 1.1 rm -rf $(DEST)/modules.old; \
240     mv -f $(DEST)/modules $(DEST)/modules.old; \
241     fi
242 arthur2 1.17 @if test ! "x`echo *.so`" = "x*.so"; then \
243     if test ! -d $(DEST)/modules-$(NEWVERSION); then \
244     echo "Creating modules-$(NEWVERSION) directory and symlink."; \
245     $(INSTALL) -d $(DEST)/modules-$(NEWVERSION); \
246     fi; \
247     $(LN_S) modules-$(NEWVERSION) $(DEST)/modules; \
248     echo "Copying new modules."; \
249     for i in *.so; do \
250     $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(NEWVERSION)/; \
251     done; \
252 segfault 1.1 fi
253 arthur2 1.17
254     install-data:
255     @$(INSTALL_DATA) README $(DEST)
256     @$(INSTALL_DATA) eggdrop.conf.dist $(DEST)
257     @if test ! -f $(DEST)/motd; then \
258     $(INSTALL_DATA) motd $(DEST); \
259     fi
260     @if test ! -f $(DEST)/telnet-banner; then \
261     $(INSTALL_DATA) telnet-banner $(DEST); \
262     fi
263    
264     install-language:
265     @if test ! "x`echo language/*.lang`" = "xlanguage/*.lang"; then \
266     if test ! -d $(DEST)/language; then \
267     echo "Creating 'language' subdirectory."; \
268     $(INSTALL) -d $(DEST)/language; \
269     fi; \
270     for i in language/*.lang; do \
271     $(INSTALL_DATA) $$i $(DEST)/language/; \
272     done; \
273     fi
274     @cd src/mod/; $(MAKE_INSTALL) install-language
275    
276     install-help:
277     @if test ! "x`echo help/*.help`" = "xhelp/*.help"; then \
278     if test ! -d $(DEST)/help; then \
279     echo "Creating 'help' subdirectory."; \
280     $(INSTALL) -d $(DEST)/help; \
281     fi; \
282     for i in help/*.help; do \
283     $(INSTALL_DATA) $$i $(DEST)/help/; \
284     done; \
285     fi
286     @if test ! "x`echo help/msg/*.help`" = "xhelp/msg/*.help"; then \
287     if test ! -d $(DEST)/help/msg; then \
288     echo "Creating 'help/msg' subdirectory."; \
289     $(INSTALL) -d $(DEST)/help/msg; \
290     fi; \
291     for i in help/msg/*.help; do \
292     $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
293     done; \
294     fi
295     @if test ! "x`echo help/set/*.help`" = "xhelp/set/*.help"; then \
296     if test ! -d $(DEST)/help/set; then \
297     echo "Creating 'help/set' subdirectory."; \
298     $(INSTALL) -d $(DEST)/help/set; \
299     fi; \
300     for i in help/set/*.help; do \
301     $(INSTALL_DATA) $$i $(DEST)/help/set/; \
302     done; \
303     fi
304     @cd src/mod/; $(MAKE_INSTALL) install-help
305    
306     install-filesys:
307 segfault 1.1 @if test ! -d $(DEST)/filesys; then \
308 arthur2 1.17 echo "Creating a skeletal filesys subdirectory."; \
309     $(INSTALL) -d $(DEST)/filesys; \
310     $(INSTALL) -d $(DEST)/filesys/incoming; \
311 segfault 1.1 fi
312 arthur2 1.17
313     install-doc:
314     @cd doc/; $(MAKE_INSTALL) install
315    
316     install-scripts:
317     @cd scripts/; $(MAKE_INSTALL) install
318    
319     install-end:
320 segfault 1.1 @echo
321 arthur2 1.17 @echo "Installation completed."
322 arthur2 1.18 @echo ""
323 arthur2 1.17 @echo "You MUST ensure that you edit/verify your configuration file."
324     @echo "'eggdrop.conf.dist' lists current options."
325 arthur2 1.18 @echo ""
326 arthur2 1.17 @echo "Remember to change directory to $(DEST) before you proceed."
327 arthur2 1.18 @echo ""
328 segfault 1.1
329     #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23