/[cvs]/eggdrop1.4/Makefile.in
ViewVC logotype

Contents of /eggdrop1.4/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.32 - (show annotations) (download)
Mon Jul 17 21:03:07 2000 UTC (18 years, 4 months ago) by guppy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.31: +2 -2 lines
autoconf_shell_fix

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23