/[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.23 - (show annotations) (download)
Sun Jul 23 20:47:12 2000 UTC (19 years, 4 months ago) by fabian
Branch: MAIN
CVS Tags: eggdrop105040
Changes since 1.22: +2 -2 lines
1.4 resync, autoconf_shell_fix 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.22 2000/07/09 14:10:49 fabian Exp $
6
7 SHELL = @SHELL@
8 top_srcdir = @top_srcdir@
9 srcdir = @srcdir@
10 VPATH = @srcdir@
11
12 @SET_MAKE@
13 prefix = @prefix@
14 DEST = @DEST@
15 EGGEXEC = @EGGEXEC@
16 EGGVERSION = @EGGVERSION@
17
18 # things you can put here:
19 # -Wall if you're using gcc and it supports it
20 # (configure usually detects this anyway now)
21 #
22 # -DDEBUG_ASSERT to enable assert debugging
23 # -DDEBUG_MEM to be able to debug memory allocation (.debug)
24 # These can both be set by using 'make debug'
25 # or 'make sdebug'
26 CFLGS =
27
28 # configure SHOULD set these...you may need to tweak them to get modules
29 # to compile .. if you do...let the devel-team know the working settings
30 # btw to turn STRIP off, do 'STRIP = touch' not 'STRIP ='
31
32 # defaults
33 CC = @CC@
34 LD = @CC@
35 STRIP = @STRIP@
36 RANLIB = @RANLIB@
37
38 # make eggmod
39 MOD_CC = @MOD_CC@
40 MOD_LD = @MOD_LD@
41 MOD_STRIP = @MOD_STRIP@
42
43 # make modules
44 SHLIB_CC = @SHLIB_CC@
45 SHLIB_LD = @SHLIB_LD@
46 SHLIB_STRIP = @SHLIB_STRIP@
47 MOD_EXT = @MOD_EXT@
48
49 # programs make install uses
50 LN_S = @LN_S@
51 INSTALL = @INSTALL@
52 INSTALL_PROGRAM = @INSTALL_PROGRAM@
53 INSTALL_DATA = @INSTALL_DATA@
54 INSTALL_SCRIPT = @INSTALL_SCRIPT@
55
56 # STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP #
57 # - - - - - - - - do not edit anything below this line. - - - - - - - - #
58 # - - - - - - - - - it's all done by configure now. - - - - - - - - - #
59 # STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP #
60
61 # stuff for Tcl
62 XREQS = @TCL_REQS@
63 XLIBS = @TCL_LIBS@ @LIBS@
64 TCLLIB = @TCLLIB@
65 TCLLIBFN = @TCLLIBFN@
66
67 DEBCFLAGS = -DDEBUG_ASSERT -DDEBUG_MEM
68
69 modconf = $(top_srcdir)/misc/modconfig --top_srcdir=$(top_srcdir)
70
71 post_config = echo "" && \
72 echo "You can now compile the bot, using \"make\"." && \
73 echo ""
74
75 post_iconfig = $(modconf) update-depends && \
76 $(modconf) Makefile && \
77 (cd src/mod && $(MAKE_CONFIG) config) && \
78 $(modconf) Makefile
79
80 egg_install_msg = echo "" && \
81 echo "Now run \"make install\" to install your bot." && \
82 echo ""
83
84 MAKE_MODEGG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(MOD_CC)' 'LD=$(MOD_LD)' \
85 'STRIP=$(MOD_STRIP)' 'RANLIB=$(RANLIB)' 'CFLGS=$(CFLGS)' \
86 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
87 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=' 'MODOBJS='
88
89 MAKE_MODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
90 'STRIP=$(SHLIB_STRIP)' 'CFLGS=$(CFLGS)' 'XLIBS=$(XLIBS)' 'MOD_EXT=$(MOD_EXT)'
91
92 MAKE_STATIC = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
93 'STRIP=$(STRIP)' 'RANLIB=$(RANLIB)' 'CFLGS=$(CFLGS) -DSTATIC' \
94 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
95 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=(static version)' \
96 'MODOBJS=mod/*.o'
97
98 MAKE_DEBEGG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(MOD_CC)' 'LD=$(MOD_LD) -g' \
99 'STRIP=touch' 'RANLIB=$(RANLIB)' 'CFLGS=-g3 $(DEBCFLAGS) $(CFLGS)' \
100 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
101 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=(debug version)' 'MODOBJS='
102
103 MAKE_DEBMODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
104 'XLIBS=$(XLIBS)' 'STRIP=touch' 'CFLGS=-g3 $(DEBCFLAGS) $(CFLGS)' \
105 'MOD_EXT=$(MOD_EXT)'
106
107 MAKE_SDEBUG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD) -g' \
108 'STRIP=touch' 'RANLIB=$(RANLIB)' 'CFLGS=-g3 $(DEBCFLAGS) -DSTATIC $(CFLGS)' \
109 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' \
110 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=(static and debug version)' 'MODOBJS=mod/*.o'
111
112 MAKE_DEPEND = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
113 'STRIP=$(STRIP)' 'CFLGS=$(CFLGS)'
114
115 MAKE_CONFIG = $(MAKE) 'MAKE=$(MAKE)'
116
117 MAKE_INSTALL = $(MAKE) 'MAKE=$(MAKE)' 'DEST=$(DEST)'
118
119 all: @DEFAULT_MAKE@
120
121 eggclean:
122 @rm -f $(EGGEXEC) *.$(MOD_EXT) *.stamp core DEBUG *~
123 @cd doc && $(MAKE) clean
124 @cd scripts && $(MAKE) clean
125 @cd src && $(MAKE) clean
126 @cd src/md5 && $(MAKE) clean
127 @cd src/compat && $(MAKE) clean
128
129 clean: eggclean
130 @cd src/mod && $(MAKE) clean
131
132 distclean: eggclean clean-modconfig
133 @cd src/mod && $(MAKE) distclean
134 @rm -f Makefile doc/Makefile scripts/Makefile src/Makefile src/md5/Makefile src/compat/Makefile src/mod/Makefile
135 @rm -f config.cache config.log config.status config.h lush.h
136
137 distrib: distclean
138 @rm -f `find . \( -name '*~' -o -name '*#' -o -name '*.orig' \
139 -o -name '*.rej' -o -name '*.bak' \) -print`
140 @rm -rf `find . \( -name 'CVS' \) -print`
141 @(echo "all:"; \
142 echo " @echo \"\""; \
143 echo " @echo \"Before you can compile your bot you have to configure it.\""; \
144 echo " @echo \"So please start the configure script now:\""; \
145 echo " @echo \"\""; \
146 echo " @echo \" % ./configure\""; \
147 echo " @echo \"\""; ) > Makefile
148
149 depend:
150 @cat /dev/null > lush.h
151 @cd src && $(MAKE_DEPEND) depend
152 @cd src/md5 && $(MAKE_DEPEND) depend
153 @cd src/mod && $(MAKE_DEPEND) depend
154 @cd src/compat && $(MAKE_DEPEND) depend
155
156 eggautoconf:
157 @$(modconf) eggautoconf
158
159 config:
160 @$(modconf) modules-still-exist
161 @$(modconf) detect-modules
162 @$(modconf) update-depends
163 @$(modconf) Makefile
164 @cd src/mod && $(MAKE_CONFIG) config
165 @$(modconf) Makefile
166 @$(post_config)
167
168 new-iconfig:
169 @$(modconf) modules-still-exist
170 @$(modconf) update-depends
171 @$(modconf) -n configure
172 @$(post_iconfig)
173 @$(post_config)
174
175 iconfig:
176 @$(modconf) modules-still-exist
177 @$(modconf) detect-modules
178 @$(modconf) update-depends
179 @$(modconf) configure
180 @$(post_iconfig)
181 @$(post_config)
182
183 clean-modconfig:
184 @rm -f .modules .known_modules
185
186 conftest:
187 @if test ! -f .modules; then \
188 echo ""; \
189 echo "You have NOT configured the modules yet. This has to be done"; \
190 echo "before you can start compiling."; \
191 echo ""; \
192 echo " Run \"make config\" or \"make iconfig\" now."; \
193 echo ""; \
194 exit 1; \
195 fi
196
197 reconfig: clean-modconfig config
198
199 eggdrop: modegg modules
200
201 modegg: modtest
202 @rm -f src/mod/mod.xlibs
203 @cd src && $(MAKE_MODEGG) $(EGGEXEC)
204 @echo ""
205 @./$(EGGEXEC) -v
206 @ls -l $(EGGEXEC)
207
208 modules: modtest
209 @cd src/mod && $(MAKE_MODULES) modules
210 @echo ""
211 @echo "modules made:"
212 @ls -l *.$(MOD_EXT)
213 @$(egg_install_msg)
214
215 static: eggtest
216 @echo ""
217 @echo "Making module objects for static linking..."
218 @echo ""
219 @rm -f src/mod/mod.xlibs
220 @cd src/mod && $(MAKE_STATIC) static
221 @echo ""
222 @echo "Making core eggdrop for static linking..."
223 @echo ""
224 @cd src && $(MAKE_STATIC) $(EGGEXEC)
225 @echo ""
226 @./$(EGGEXEC) -v
227 @ls -l $(EGGEXEC)
228 @$(egg_install_msg)
229
230 debug: debegg debmodules
231
232 debegg: modtest
233 @cd src && $(MAKE_DEBEGG) $(EGGEXEC)
234 @echo ""
235 @./$(EGGEXEC) -v
236 @ls -l $(EGGEXEC)
237
238 debmodules: modtest
239 @cd src/mod && $(MAKE_DEBMODULES) modules
240 @echo ""
241 @echo "modules made:"
242 @ls -l *.$(MOD_EXT)
243 @$(egg_install_msg)
244
245 sdebug: eggtest
246 @echo ""
247 @echo "Making module objects for static linking..."
248 @echo ""
249 @rm -f src/mod/mod.xlibs
250 @cd src/mod && $(MAKE_SDEBUG) static
251 @echo ""
252 @echo "Making core eggdrop for static linking..."
253 @echo ""
254 @cd src && $(MAKE_SDEBUG) $(EGGEXEC)
255 @echo ""
256 @./$(EGGEXEC) -v
257 @ls -l $(EGGEXEC)
258 @$(egg_install_msg)
259
260 eggtest: conftest
261 @if test -f EGGMOD.stamp; then \
262 echo "You're trying to do a STATIC build of eggdrop when you've";\
263 echo "already run 'make' for a module build.";\
264 echo "You must first type \"make clean\" before you can build";\
265 echo "a static version.";\
266 exit 1;\
267 fi
268 @echo "stamp" >EGGDROP.stamp
269
270 modtest: conftest
271 @if [ -f EGGDROP.stamp ]; then \
272 echo "You're trying to do a MODULE build of eggdrop when you've";\
273 echo "already run 'make' for a static build.";\
274 echo "You must first type \"make clean\" before you can build";\
275 echo "a module version.";\
276 exit 1;\
277 fi
278 @echo "stamp" >EGGMOD.stamp
279
280 install: ainstall
281
282 dinstall: eggdrop ainstall
283
284 sinstall: static ainstall
285
286 ainstall: install-start install-bin install-modules install-data \
287 install-help install-language install-filesys install-doc \
288 install-scripts install-end
289
290 install-start:
291 @if test ! -f $(EGGEXEC); then \
292 echo ""; \
293 echo "You haven't compiled eggdrop yet."; \
294 echo "To compile eggdrop use:"; \
295 echo " make <target>"; \
296 echo ""; \
297 echo " valid targets: eggdrop static debug sdebug"; \
298 echo ""; \
299 exit 1; \
300 fi
301 @if test "x$(DEST)" = "x"; then \
302 echo "You must specify a destination directory with DEST="; \
303 exit 1; \
304 fi
305 @echo ""
306 @./$(EGGEXEC) -v
307 @echo
308 @echo "Installing in directory: '$(DEST)'."
309 @echo
310 @if test ! -d $(DEST); then \
311 echo "Creating directory: $(DEST)."; \
312 $(top_srcdir)/misc/mkinstalldirs $(DEST); \
313 fi
314
315 install-bin:
316 @if test -f $(DEST)/o$(EGGEXEC); then \
317 rm -f $(DEST)/o$(EGGEXEC); \
318 fi
319 @if test -h $(DEST)/$(EGGEXEC); then \
320 echo "Removing symlink to archival eggdrop binary."; \
321 rm -f $(DEST)/$(EGGEXEC); \
322 fi
323 @if test -f $(DEST)/$(EGGEXEC); then \
324 echo "Renamed the old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
325 mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
326 fi
327 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
328 @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(EGGVERSION)
329 @(cd $(DEST) && $(LN_S) $(EGGEXEC)-$(EGGVERSION) $(EGGEXEC))
330
331 install-modules:
332 @if test -h $(DEST)/modules; then \
333 echo "Removing symlink to archival modules directory."; \
334 rm -f $(DEST)/modules; \
335 fi
336 @if test -d $(DEST)/modules; then \
337 echo "Moving old modules into 'modules.old' directory."; \
338 rm -rf $(DEST)/modules.old; \
339 mv -f $(DEST)/modules $(DEST)/modules.old; \
340 fi
341 @if test ! "x`echo *.$(MOD_EXT)`" = "x*.$(MOD_EXT)"; then \
342 if test ! -d $(DEST)/modules-$(EGGVERSION); then \
343 echo "Creating modules-$(EGGVERSION) directory and symlink."; \
344 $(top_srcdir)/misc/mkinstalldirs $(DEST)/modules-$(EGGVERSION); \
345 fi; \
346 (cd $(DEST) && $(LN_S) modules-$(EGGVERSION) modules); \
347 echo "Copying new modules."; \
348 for i in *.$(MOD_EXT); do \
349 $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(EGGVERSION)/; \
350 done; \
351 fi
352
353 install-data:
354 @$(INSTALL_DATA) $(srcdir)/eggdrop.advanced.conf $(DEST)
355 @$(INSTALL_DATA) $(srcdir)/eggdrop.complete.conf $(DEST)
356 @$(INSTALL_DATA) $(srcdir)/eggdrop.simple.conf $(DEST)
357 @if test ! -d $(DEST)/logs; then \
358 echo "Creating 'logs' subdirectory."; \
359 $(top_srcdir)/misc/mkinstalldirs $(DEST)/logs; \
360 $(INSTALL_DATA) $(srcdir)/logs/CONTENTS $(DEST)/logs/; \
361 fi;
362 @if test ! -d $(DEST)/text; then \
363 echo "Creating 'text' subdirectory."; \
364 $(top_srcdir)/misc/mkinstalldirs $(DEST)/text; \
365 fi;
366 @if test ! -f $(DEST)/text/motd; then \
367 $(INSTALL_DATA) $(srcdir)/text/motd $(DEST)/text/; \
368 fi
369 @if test ! -f $(DEST)/text/banner; then \
370 $(INSTALL_DATA) $(srcdir)/text/banner $(DEST)/text/; \
371 fi
372
373 install-help:
374 @echo "Copying help files."
375 @if test ! "x`echo $(srcdir)/help/*.help`" = "x$(srcdir)/help/*.help"; then \
376 if test ! -d $(DEST)/help; then \
377 echo "Creating 'help' subdirectory."; \
378 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help; \
379 fi; \
380 for i in $(srcdir)/help/*.help; do \
381 $(INSTALL_DATA) $$i $(DEST)/help/; \
382 done; \
383 fi
384 @if test ! "x`echo $(srcdir)/help/msg/*.help`" = "x$(srcdir)/help/msg/*.help"; then \
385 if test ! -d $(DEST)/help/msg; then \
386 echo "Creating 'help/msg' subdirectory."; \
387 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help/msg; \
388 fi; \
389 for i in $(srcdir)/help/msg/*.help; do \
390 $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
391 done; \
392 fi
393 @if test ! "x`echo $(srcdir)/help/set/*.help`" = "x$(srcdir)/help/set/*.help"; then \
394 if test ! -d $(DEST)/help/set; then \
395 echo "Creating 'help/set' subdirectory."; \
396 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help/set; \
397 fi; \
398 for i in $(srcdir)/help/set/*.help; do \
399 $(INSTALL_DATA) $$i $(DEST)/help/set/; \
400 done; \
401 fi
402 @cd src/mod/ && $(MAKE_INSTALL) install-help
403
404 install-language:
405 @echo "Copying language files."
406 @if test ! "x`echo $(srcdir)/language/*.lang`" = "x$(srcdir)/language/*.lang"; then \
407 if test ! -d $(DEST)/language; then \
408 echo "Creating 'language' subdirectory."; \
409 $(top_srcdir)/misc/mkinstalldirs $(DEST)/language; \
410 fi; \
411 for i in $(srcdir)/language/*.lang; do \
412 $(INSTALL_DATA) $$i $(DEST)/language/; \
413 done; \
414 fi
415 @cd src/mod && $(MAKE_INSTALL) install-language
416
417 install-filesys:
418 @if test ! -d $(DEST)/filesys; then \
419 echo "Creating a skeletal filesys subdirectory."; \
420 $(top_srcdir)/misc/mkinstalldirs $(DEST)/filesys; \
421 $(top_srcdir)/misc/mkinstalldirs $(DEST)/filesys/incoming; \
422 fi
423
424 install-doc:
425 @$(INSTALL_DATA) $(srcdir)/README $(DEST)
426 @cd doc/ && $(MAKE_INSTALL) install
427
428 install-scripts:
429 @cd scripts/ && $(MAKE_INSTALL) install
430
431 install-end:
432 @echo
433 @echo "Installation completed."
434 @echo ""
435 @echo "You MUST ensure that you edit/verify your configuration file."
436 @echo "Use one of the three configuration files (eggdrop.simple.conf, eggdrop.advanced.conf and eggdrop.complete.conf) distributed with your bot."
437 @echo ""
438 @echo "Remember to change directory to $(DEST) before you proceed."
439 @echo ""
440
441 #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23