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

Contents of /eggdrop1.6/Makefile.in

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


Revision 1.14 - (show annotations) (download)
Tue Feb 29 19:57:27 2000 UTC (19 years, 4 months ago) by fabian
Branch: MAIN
Changes since 1.13: +37 -10 lines
configure_makefile_fix2 patch

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.13 2000/02/25 21:51:29 fabian Exp $
6
7 SHELL = /bin/sh
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 modconf = $(top_srcdir)/aux/modconfig --top_srcdir=$(top_srcdir)
68
69 MAKE_MODEGG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(MOD_CC)' 'LD=$(MOD_LD)' \
70 'STRIP=$(MOD_STRIP)' 'RANLIB=$(RANLIB)' 'CFLAGS=$(CFLAGS)' \
71 'CPPFLAGS=$(CPPFLAGS)' 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' \
72 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' \
73 'EGGBUILD=' 'MODOBJS='
74
75 MAKE_MODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
76 'STRIP=$(SHLIB_STRIP)' 'CFLAGS=$(CFLAGS)' 'CPPFLAGS=$(CPPFLAGS)'
77
78 MAKE_STATIC = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
79 'STRIP=$(STRIP)' 'RANLIB=$(RANLIB)' 'CFLAGS=$(CFLAGS) -DSTATIC' \
80 'CPPFLAGS=$(CPPFLAGS)' 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' \
81 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' \
82 'EGGBUILD=(static version)' 'MODOBJS=mod/*.o'
83
84 MAKE_DEBEGG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(MOD_CC)' 'LD=$(MOD_LD) -g' \
85 'STRIP=touch' 'RANLIB=$(RANLIB)' 'CFLAGS=-g3 $(DEBCFLAGS)' \
86 'CPPFLAGS=$(CPPFLAGS)' 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' \
87 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' \
88 'EGGBUILD=(debug version)' 'MODOBJS='
89
90 MAKE_DEBMODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
91 'STRIP=touch' 'CFLAGS=-g3 $(DEBCFLAGS)' 'CPPFLAGS=$(CPPFLAGS)'
92
93 MAKE_SDEBUG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD) -g' \
94 'STRIP=touch' 'RANLIB=$(RANLIB)' 'CFLAGS=-g3 $(DEBCFLAGS) -DSTATIC' \
95 'CPPFLAGS=$(CPPFLAGS)' 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' \
96 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' \
97 'EGGBUILD=(static and debug version)' 'MODOBJS=mod/*.o'
98
99 MAKE_DEPEND = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
100 'STRIP=$(STRIP)' 'CFLAGS=$(CFLAGS)' 'CPPFLAGS=$(CPPFLAGS)'
101
102 MAKE_CONFIG = $(MAKE) 'MAKE=$(MAKE)'
103
104 MAKE_INSTALL = $(MAKE) 'MAKE=$(MAKE)' 'DEST=$(DEST)'
105
106 all: @DEFAULT_MAKE@
107
108 eggclean:
109 @rm -f $(EGGEXEC) *.so *.stamp core DEBUG *~
110 @cd doc && $(MAKE) clean
111 @cd scripts && $(MAKE) clean
112 @cd src && $(MAKE) clean
113 @cd src/md5 && $(MAKE) clean
114
115 clean: eggclean
116 @cd src/mod && $(MAKE) clean
117
118 distclean: eggclean clean-modconfig
119 @cd src/mod && $(MAKE) distclean
120 @rm -f Makefile doc/Makefile scripts/Makefile src/Makefile src/md5/Makefile src/mod/Makefile
121 @rm -f config.cache config.log config.status config.h lush.h
122
123 distrib: distclean
124 @rm -f `find . \( -name '*~' -o -name '*#' -o -name '*.orig' \
125 -o -name '*.rej' -o -name '*.bak' \) -print`
126 @rm -rf `find . \( -name 'CVS' \) -print`
127 @(echo "all:"; \
128 echo " @echo \"\""; \
129 echo " @echo \"Before you can compile your bot you have to configure it.\""; \
130 echo " @echo \"So please start the configure script now:\""; \
131 echo " @echo \"\""; \
132 echo " @echo \" % ./configure\""; \
133 echo " @echo \"\""; ) > Makefile
134
135 depend:
136 @cat /dev/null > lush.h
137 @cd src && $(MAKE_DEPEND) depend
138 @cd src/md5 && $(MAKE_DEPEND) depend
139 @cd src/mod && $(MAKE_DEPEND) depend
140
141 config:
142 @$(modconf) detect-modules
143 @$(modconf) update-depends
144 @$(modconf) Makefile
145 @cd src/mod && $(MAKE_CONFIG) config
146 @$(modconf) Makefile
147 @echo ""; echo "You can now compile the bot, using \"make\"."; echo "";
148
149 iconfig:
150 @$(modconf) detect-modules
151 @$(modconf) update-depends
152 @$(modconf) configure
153 @$(modconf) update-depends
154 @$(modconf) Makefile
155 @cd src/mod && $(MAKE_CONFIG) config
156 @$(modconf) Makefile
157 @echo ""; echo "You can now compile the bot, using \"make\"."; echo "";
158
159 clean-modconfig:
160 @rm -f .modules
161
162 conftest:
163 @if [ ! -f .modules ]; then \
164 echo ""; \
165 echo "You have NOT configured the modules yet. This has to be done"; \
166 echo "before you can start compiling."; \
167 echo ""; \
168 echo " Run \"make config\" or \"make iconfig\" now."; \
169 echo ""; \
170 exit 1; \
171 fi
172
173 reconfig: clean-modconfig config
174
175 eggdrop: modegg modules
176
177 modegg: modtest
178 @rm -f src/mod/mod.xlibs
179 @cd src && $(MAKE_MODEGG) $(EGGEXEC)
180 @echo ""
181 @./$(EGGEXEC) -v
182 @ls -l $(EGGEXEC)
183
184 modules: modtest
185 @cd src/mod && $(MAKE_MODULES) modules
186 @echo ""
187 @echo "modules made:"
188 @ls -l *.so
189
190 static: eggtest
191 @echo ""
192 @echo "Making module objects for static linking..."
193 @echo ""
194 @rm -f src/mod/mod.xlibs
195 @cd src/mod && $(MAKE_STATIC) static
196 @echo ""
197 @echo "Making core eggdrop for static linking..."
198 @echo ""
199 @cd src && $(MAKE_STATIC) $(EGGEXEC)
200 @echo ""
201 @./$(EGGEXEC) -v
202 @ls -l $(EGGEXEC)
203
204 debug: debegg debmodules
205
206 debegg: modtest
207 @cd src && $(MAKE_DEBEGG) $(EGGEXEC)
208 @echo ""
209 @./$(EGGEXEC) -v
210 @ls -l $(EGGEXEC)
211
212 debmodules: modtest
213 @cd src/mod && $(MAKE_DEBMODULES) modules
214 @echo ""
215 @echo "modules made:"
216 @ls -l *.so
217
218 sdebug: eggtest
219 @echo ""
220 @echo "Making module objects for static linking..."
221 @echo ""
222 @rm -f src/mod/mod.xlibs
223 @cd src/mod && $(MAKE_SDEBUG) static
224 @echo ""
225 @echo "Making core eggdrop for static linking..."
226 @echo ""
227 @cd src && $(MAKE_SDEBUG) $(EGGEXEC)
228 @echo ""
229 @./$(EGGEXEC) -v
230 @ls -l $(EGGEXEC)
231
232 eggtest: conftest
233 @if [ -f EGGMOD.stamp ]; then \
234 echo "You're trying to do a STATIC build of eggdrop when you've";\
235 echo "already run 'make' for a module build.";\
236 echo "You must first type \"make clean\" before you can build";\
237 echo "a static version.";\
238 exit 1;\
239 fi
240 @echo "stamp" >EGGDROP.stamp
241
242 modtest: conftest
243 @if [ -f EGGDROP.stamp ]; then \
244 echo "You're trying to do a MODULE build of eggdrop when you've";\
245 echo "already run 'make' for a static build.";\
246 echo "You must first type \"make clean\" before you can build";\
247 echo "a module version.";\
248 exit 1;\
249 fi
250 @echo "stamp" >EGGMOD.stamp
251
252 install: ainstall
253
254 dinstall: eggdrop ainstall
255
256 sinstall: static ainstall
257
258 ainstall: install-start install-bin install-modules install-data \
259 install-help install-language install-filesys install-doc \
260 install-scripts install-end
261
262 install-start:
263 @if test ! -f $(EGGEXEC); then \
264 echo ""; \
265 echo "You haven't compiled eggdrop yet."; \
266 echo "To compile eggdrop use:"; \
267 echo " make <target>"; \
268 echo ""; \
269 echo " valid targets: eggdrop static debug sdebug"; \
270 echo ""; \
271 exit 1; \
272 fi
273 @if test "x$(DEST)" = "x"; then \
274 echo "You must specify a destination directory with DEST="; \
275 exit 1; \
276 fi
277 @echo ""
278 @./$(EGGEXEC) -v
279 @echo
280 @echo "Installing in directory: '$(DEST)'."
281 @echo
282 @if test ! -d $(DEST); then \
283 echo "Creating directory: $(DEST)."; \
284 $(top_srcdir)/mkinstalldirs $(DEST); \
285 fi
286
287 install-bin:
288 @if test -f $(DEST)/$(EGGEXEC); then \
289 rm -f $(DEST)/o$(EGGEXEC); \
290 fi
291 @if test -h $(DEST)/$(EGGEXEC); then \
292 echo "Removing symlink to archival eggdrop binary."; \
293 rm -f $(DEST)/$(EGGEXEC); \
294 fi
295 @if test -f $(DEST)/$(EGGEXEC); then \
296 echo "Renamed the old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
297 mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
298 fi
299 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
300 @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(EGGVERSION)
301 @(cd $(DEST) && $(LN_S) $(EGGEXEC)-$(EGGVERSION) $(EGGEXEC))
302
303 install-modules:
304 @if test -h $(DEST)/modules; then \
305 echo "Removing symlink to archival modules directory."; \
306 rm -f $(DEST)/modules; \
307 fi
308 @if test -d $(DEST)/modules; then \
309 echo "Moving old modules into 'modules.old' directory."; \
310 rm -rf $(DEST)/modules.old; \
311 mv -f $(DEST)/modules $(DEST)/modules.old; \
312 fi
313 @if test ! "x`echo *.so`" = "x*.so"; then \
314 if test ! -d $(DEST)/modules-$(EGGVERSION); then \
315 echo "Creating modules-$(EGGVERSION) directory and symlink."; \
316 $(top_srcdir)/mkinstalldirs $(DEST)/modules-$(EGGVERSION); \
317 fi; \
318 (cd $(DEST) && $(LN_S) modules-$(EGGVERSION) modules); \
319 echo "Copying new modules."; \
320 for i in *.so; do \
321 $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(EGGVERSION)/; \
322 done; \
323 fi
324
325 install-data:
326 @$(INSTALL_DATA) eggdrop.conf.dist $(DEST)
327 @if test ! -d $(DEST)/logs; then \
328 echo "Creating 'logs' subdirectory."; \
329 $(top_srcdir)/mkinstalldirs $(DEST)/logs; \
330 $(INSTALL_DATA) logs/CONTENTS $(DEST)/logs/; \
331 fi;
332 @if test ! -d $(DEST)/text; then \
333 echo "Creating 'text' subdirectory."; \
334 $(top_srcdir)/mkinstalldirs $(DEST)/text; \
335 fi;
336 @if test ! -f $(DEST)/text/motd; then \
337 $(INSTALL_DATA) text/motd $(DEST)/text/; \
338 fi
339 @if test ! -f $(DEST)/text/banner; then \
340 $(INSTALL_DATA) text/banner $(DEST)/text/; \
341 fi
342
343 install-help:
344 @echo "Copying help files."
345 @if test ! "x`echo help/*.help`" = "xhelp/*.help"; then \
346 if test ! -d $(DEST)/help; then \
347 echo "Creating 'help' subdirectory."; \
348 $(top_srcdir)/mkinstalldirs $(DEST)/help; \
349 fi; \
350 for i in help/*.help; do \
351 $(INSTALL_DATA) $$i $(DEST)/help/; \
352 done; \
353 fi
354 @if test ! "x`echo help/msg/*.help`" = "xhelp/msg/*.help"; then \
355 if test ! -d $(DEST)/help/msg; then \
356 echo "Creating 'help/msg' subdirectory."; \
357 $(top_srcdir)/mkinstalldirs $(DEST)/help/msg; \
358 fi; \
359 for i in help/msg/*.help; do \
360 $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
361 done; \
362 fi
363 @if test ! "x`echo help/set/*.help`" = "xhelp/set/*.help"; then \
364 if test ! -d $(DEST)/help/set; then \
365 echo "Creating 'help/set' subdirectory."; \
366 $(top_srcdir)/mkinstalldirs $(DEST)/help/set; \
367 fi; \
368 for i in help/set/*.help; do \
369 $(INSTALL_DATA) $$i $(DEST)/help/set/; \
370 done; \
371 fi
372 @cd src/mod/ && $(MAKE_INSTALL) install-help
373
374 install-language:
375 @echo "Copying language files."
376 @if test ! "x`echo language/*.lang`" = "xlanguage/*.lang"; then \
377 if test ! -d $(DEST)/language; then \
378 echo "Creating 'language' subdirectory."; \
379 $(top_srcdir)/mkinstalldirs $(DEST)/language; \
380 fi; \
381 for i in language/*.lang; do \
382 $(INSTALL_DATA) $$i $(DEST)/language/; \
383 done; \
384 fi
385 @cd src/mod && $(MAKE_INSTALL) install-language
386
387 install-filesys:
388 @if test ! -d $(DEST)/filesys; then \
389 echo "Creating a skeletal filesys subdirectory."; \
390 $(top_srcdir)/mkinstalldirs $(DEST)/filesys; \
391 $(top_srcdir)/mkinstalldirs $(DEST)/filesys/incoming; \
392 fi
393
394 install-doc:
395 @$(INSTALL_DATA) README $(DEST)
396 @cd doc/ && $(MAKE_INSTALL) install
397
398 install-scripts:
399 @cd scripts/ && $(MAKE_INSTALL) install
400
401 install-end:
402 @echo
403 @echo "Installation completed."
404 @echo ""
405 @echo "You MUST ensure that you edit/verify your configuration file."
406 @echo "'eggdrop.conf.dist' lists current options."
407 @echo ""
408 @echo "Remember to change directory to $(DEST) before you proceed."
409 @echo ""
410
411 #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23