/[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.20 - (hide annotations) (download)
Sat Oct 16 16:49:34 1999 UTC (20 years, 3 months ago) by guppy
Branch: MAIN
Changes since 1.19: +14 -15 lines
more-misc-fixes and misc-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     'RANLIB=$(RANLIB)' 'CFLAGS=$(CFLAGS) -DSTATIC' \
61     '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     'RANLIB=$(RANLIB)' 'CFLAGS=$(CFLAGS)' \
66     'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
67     'XREQ=$(XREQ)' 'XLIBS=@TCL_LIBS@ @LIBS@'
68    
69     MAKE_MODULES = $(MAKE) 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
70     'STRIP=$(SHLIB_STRIP)' 'CFLAGS=$(CFLAGS)'
71    
72     MAKE_SDEBUG = $(MAKE) 'CC=$(CC)' 'LD=$(LD)' 'STRIP=touch' \
73     'RANLIB=$(RANLIB)' 'CFLAGS=-g3 $(CFLAGS) -DSTATIC -DEBUG_MEM' \
74     'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
75     '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     'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
80     'XREQ=$(XREQ)' 'XLIBS=@TCL_LIBS@ @LIBS@'
81    
82     MAKE_DEBMODULES = $(MAKE) 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
83     'STRIP=touch' 'CFLAGS=-g3 $(CFLAGS) -DEBUG_MEM'
84    
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.19 install-help install-language install-filesys install-doc \
193 arthur2 1.17 install-scripts install-end
194    
195     install-start:
196 guppy 1.20 @if test ! -f $(EGGEXEC); then \
197     echo "You haven't compiled eggdrop yet."; \
198     exit 1; \
199     fi
200 arthur2 1.17 @if test "x$(DEST)" = "x"; then \
201 segfault 1.1 echo "You must specify a destination directory with DEST="; \
202     exit 1; \
203     fi
204 arthur2 1.18 @echo ""
205 arthur2 1.17 @./$(EGGEXEC) -v
206 segfault 1.1 @echo
207 arthur2 1.17 @echo "Installing in directory: '$(DEST)'."
208 segfault 1.1 @echo
209     @if test ! -d $(DEST); then \
210 arthur2 1.17 echo "Creating directory: $(DEST)."; \
211     $(INSTALL) -d $(DEST); \
212 segfault 1.1 fi
213 arthur2 1.17
214     install-bin:
215     @if test -f $(DEST)/$(EGGEXEC); then \
216     rm -f $(DEST)/o$(EGGEXEC); \
217 segfault 1.1 fi
218 arthur2 1.17 @if test -h $(DEST)/$(EGGEXEC); then \
219     echo "Removing symlink to archival eggdrop binary."; \
220     rm -f $(DEST)/$(EGGEXEC); \
221 guppy 1.12 fi
222 arthur2 1.17 @if test -f $(DEST)/$(EGGEXEC); then \
223     echo "Renamed the old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
224     mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
225 guppy 1.8 fi
226 arthur2 1.17 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
227 guppy 1.20 @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(EGGVERSION)
228     @(cd $(DEST) && $(LN_S) $(EGGEXEC)-$(EGGVERSION) $(EGGEXEC))
229 arthur2 1.17
230     install-modules:
231 segfault 1.1 @if test -h $(DEST)/modules; then \
232 arthur2 1.17 echo "Removing symlink to archival modules directory."; \
233 segfault 1.1 rm -f $(DEST)/modules; \
234     fi
235 arthur2 1.17 @if test -d $(DEST)/modules; then \
236     echo "Moving old modules into 'modules.old' directory."; \
237 segfault 1.1 rm -rf $(DEST)/modules.old; \
238     mv -f $(DEST)/modules $(DEST)/modules.old; \
239     fi
240 arthur2 1.17 @if test ! "x`echo *.so`" = "x*.so"; then \
241 guppy 1.20 if test ! -d $(DEST)/modules-$(EGGVERSION); then \
242     echo "Creating modules-$(EGGVERSION) directory and symlink."; \
243     $(INSTALL) -d $(DEST)/modules-$(EGGVERSION); \
244 arthur2 1.17 fi; \
245 guppy 1.20 (cd $(DEST) && $(LN_S) modules-$(EGGVERSION) modules); \
246 arthur2 1.17 echo "Copying new modules."; \
247     for i in *.so; do \
248 guppy 1.20 $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(EGGVERSION)/; \
249 arthur2 1.17 done; \
250 segfault 1.1 fi
251 arthur2 1.17
252     install-data:
253     @$(INSTALL_DATA) README $(DEST)
254     @$(INSTALL_DATA) eggdrop.conf.dist $(DEST)
255     @if test ! -f $(DEST)/motd; then \
256     $(INSTALL_DATA) motd $(DEST); \
257     fi
258     @if test ! -f $(DEST)/telnet-banner; then \
259     $(INSTALL_DATA) telnet-banner $(DEST); \
260     fi
261    
262     install-help:
263 guppy 1.19 @echo "Copying help files."
264 arthur2 1.17 @if test ! "x`echo help/*.help`" = "xhelp/*.help"; then \
265     if test ! -d $(DEST)/help; then \
266     echo "Creating 'help' subdirectory."; \
267     $(INSTALL) -d $(DEST)/help; \
268     fi; \
269     for i in help/*.help; do \
270     $(INSTALL_DATA) $$i $(DEST)/help/; \
271     done; \
272     fi
273     @if test ! "x`echo help/msg/*.help`" = "xhelp/msg/*.help"; then \
274     if test ! -d $(DEST)/help/msg; then \
275     echo "Creating 'help/msg' subdirectory."; \
276     $(INSTALL) -d $(DEST)/help/msg; \
277     fi; \
278     for i in help/msg/*.help; do \
279     $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
280     done; \
281     fi
282     @if test ! "x`echo help/set/*.help`" = "xhelp/set/*.help"; then \
283     if test ! -d $(DEST)/help/set; then \
284     echo "Creating 'help/set' subdirectory."; \
285     $(INSTALL) -d $(DEST)/help/set; \
286     fi; \
287     for i in help/set/*.help; do \
288     $(INSTALL_DATA) $$i $(DEST)/help/set/; \
289     done; \
290     fi
291     @cd src/mod/; $(MAKE_INSTALL) install-help
292 guppy 1.19
293     install-language:
294     @echo "Copying language files."
295     @if test ! "x`echo language/*.lang`" = "xlanguage/*.lang"; then \
296     if test ! -d $(DEST)/language; then \
297     echo "Creating 'language' subdirectory."; \
298     $(INSTALL) -d $(DEST)/language; \
299     fi; \
300     for i in language/*.lang; do \
301     $(INSTALL_DATA) $$i $(DEST)/language/; \
302     done; \
303     fi
304     @cd src/mod/; $(MAKE_INSTALL) install-language
305 arthur2 1.17
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