/[cvs]/eggdrop-alpha/Makefile.in
ViewVC logotype

Contents of /eggdrop-alpha/Makefile.in

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


Revision 1.4 - (show annotations) (download)
Wed Jan 24 03:16:20 2001 UTC (20 years, 3 months ago) by tothwolf
Branch: MAIN
Changes since 1.3: +6 -8 lines
*** empty log message ***

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.3 2001/01/22 07:40:11 tothwolf 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 egg_test_run = EGG_LANGDIR=$(top_srcdir)/language ./$(EGGEXEC) -v
72
73 post_config = echo "" && \
74 echo "You can now compile the bot, using \"make\"." && \
75 echo ""
76
77 post_iconfig = $(modconf) update-depends && \
78 $(modconf) Makefile && \
79 (cd src/mod && $(MAKE_CONFIG) config) && \
80 $(modconf) Makefile
81
82 egg_install_msg = echo "" && \
83 echo "Now run \"make install\" to install your bot." && \
84 echo ""
85
86 MAKE_MODEGG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(MOD_CC)' 'LD=$(MOD_LD)' \
87 'STRIP=$(MOD_STRIP)' 'RANLIB=$(RANLIB)' 'CFLGS=$(CFLGS)' \
88 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
89 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=' 'MODOBJS='
90
91 MAKE_MODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
92 'STRIP=$(SHLIB_STRIP)' 'CFLGS=$(CFLGS)' 'XLIBS=$(XLIBS)' 'MOD_EXT=$(MOD_EXT)'
93
94 MAKE_STATIC = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
95 'STRIP=$(STRIP)' 'RANLIB=$(RANLIB)' 'CFLGS=$(CFLGS) -DSTATIC' \
96 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
97 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=(static version)' \
98 'MODOBJS=mod/*.mod/*.o'
99
100 MAKE_DEBEGG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(MOD_CC)' 'LD=$(MOD_LD) -g' \
101 'STRIP=touch' 'RANLIB=$(RANLIB)' 'CFLGS=-g3 $(DEBCFLAGS) $(CFLGS)' \
102 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
103 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=(debug version)' 'MODOBJS='
104
105 MAKE_DEBMODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
106 'XLIBS=$(XLIBS)' 'STRIP=touch' 'CFLGS=-g3 $(DEBCFLAGS) $(CFLGS)' \
107 'MOD_EXT=$(MOD_EXT)'
108
109 MAKE_SDEBUG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD) -g' \
110 'STRIP=touch' 'RANLIB=$(RANLIB)' 'CFLGS=-g3 $(DEBCFLAGS) -DSTATIC $(CFLGS)' \
111 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' \
112 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=(static and debug version)' 'MODOBJS=mod/*.mod/*.o'
113
114 MAKE_DEPEND = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
115 'STRIP=$(STRIP)' 'CFLGS=$(CFLGS)'
116
117 MAKE_CONFIG = $(MAKE) 'MAKE=$(MAKE)'
118
119 MAKE_INSTALL = $(MAKE) 'MAKE=$(MAKE)' 'DEST=$(DEST)'
120
121 all: @DEFAULT_MAKE@
122
123 clean:
124 @rm -f *.stamp core DEBUG *~
125 @cd doc && $(MAKE) clean
126 @cd scripts && $(MAKE) clean
127 @cd src && $(MAKE) clean
128 @cd src/md5 && $(MAKE) clean
129 @cd src/compat && $(MAKE) clean
130 @cd src/mod && $(MAKE) clean
131
132 distclean: clean 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 $(MAKE) config; \
189 fi
190
191 reconfig: clean-modconfig config
192
193 eggdrop: modegg modules
194
195 modegg: modtest
196 @rm -f src/mod/mod.xlibs
197 @cd src && $(MAKE_MODEGG) $(EGGEXEC)
198 @echo ""
199 @$(egg_test_run)
200 @ls -l $(EGGEXEC)
201
202 modules: modtest
203 @cd src/mod && $(MAKE_MODULES) modules
204 @echo ""
205 @echo "modules made:"
206 @ls -l *.$(MOD_EXT)
207 @$(egg_install_msg)
208
209 static: eggtest
210 @echo ""
211 @echo "Making module objects for static linking..."
212 @echo ""
213 @rm -f src/mod/mod.xlibs
214 @cd src/mod && $(MAKE_STATIC) static
215 @echo ""
216 @echo "Making core eggdrop for static linking..."
217 @echo ""
218 @cd src && $(MAKE_STATIC) $(EGGEXEC)
219 @echo ""
220 @$(egg_test_run)
221 @ls -l $(EGGEXEC)
222 @$(egg_install_msg)
223
224 debug: debegg debmodules
225
226 debegg: modtest
227 @cd src && $(MAKE_DEBEGG) $(EGGEXEC)
228 @echo ""
229 @$(egg_test_run)
230 @ls -l $(EGGEXEC)
231
232 debmodules: modtest
233 @cd src/mod && $(MAKE_DEBMODULES) modules
234 @echo ""
235 @echo "modules made:"
236 @ls -l *.$(MOD_EXT)
237 @$(egg_install_msg)
238
239 sdebug: eggtest
240 @echo ""
241 @echo "Making module objects for static linking..."
242 @echo ""
243 @rm -f src/mod/mod.xlibs
244 @cd src/mod && $(MAKE_SDEBUG) static
245 @echo ""
246 @echo "Making core eggdrop for static linking..."
247 @echo ""
248 @cd src && $(MAKE_SDEBUG) $(EGGEXEC)
249 @echo ""
250 @$(egg_test_run)
251 @ls -l $(EGGEXEC)
252 @$(egg_install_msg)
253
254 eggtest: conftest
255 @if test -f EGGMOD.stamp; then \
256 echo "You're trying to do a STATIC build of eggdrop when you've";\
257 echo "already run 'make' for a module build.";\
258 echo "You must first type \"make clean\" before you can build";\
259 echo "a static version.";\
260 exit 1;\
261 fi
262 @echo "stamp" >EGGDROP.stamp
263
264 modtest: conftest
265 @if [ -f EGGDROP.stamp ]; then \
266 echo "You're trying to do a MODULE build of eggdrop when you've";\
267 echo "already run 'make' for a static build.";\
268 echo "You must first type \"make clean\" before you can build";\
269 echo "a module version.";\
270 exit 1;\
271 fi
272 @echo "stamp" >EGGMOD.stamp
273
274 install: ainstall
275
276 dinstall: eggdrop ainstall
277
278 sinstall: static ainstall
279
280 ainstall: install-start install-bin install-modules install-data \
281 install-help install-language install-filesys install-doc \
282 install-scripts install-end
283
284 install-start:
285 @if test ! -f $(EGGEXEC); then \
286 echo ""; \
287 echo "You haven't compiled eggdrop yet."; \
288 echo "To compile eggdrop use:"; \
289 echo " make <target>"; \
290 echo ""; \
291 echo " valid targets: eggdrop static debug sdebug"; \
292 echo ""; \
293 exit 1; \
294 fi
295 @if test "x$(DEST)" = "x"; then \
296 echo "You must specify a destination directory with DEST="; \
297 exit 1; \
298 fi
299 @echo ""
300 @$(egg_test_run)
301 @echo
302 @echo "Installing in directory: '$(DEST)'."
303 @echo
304 @if test ! -d $(DEST); then \
305 echo "Creating directory: $(DEST)."; \
306 $(top_srcdir)/misc/mkinstalldirs $(DEST); \
307 fi
308
309 install-bin:
310 @if test -f $(DEST)/o$(EGGEXEC); then \
311 rm -f $(DEST)/o$(EGGEXEC); \
312 fi
313 @if test -h $(DEST)/$(EGGEXEC); then \
314 echo "Removing symlink to archival eggdrop binary."; \
315 rm -f $(DEST)/$(EGGEXEC); \
316 fi
317 @if test -f $(DEST)/$(EGGEXEC); then \
318 echo "Renamed the old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
319 mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
320 fi
321 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
322 @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(EGGVERSION)
323 @(cd $(DEST) && $(LN_S) $(EGGEXEC)-$(EGGVERSION) $(EGGEXEC))
324
325 install-modules:
326 @if test -h $(DEST)/modules; then \
327 echo "Removing symlink to archival modules directory."; \
328 rm -f $(DEST)/modules; \
329 fi
330 @if test -d $(DEST)/modules; then \
331 echo "Moving old modules into 'modules.old' directory."; \
332 rm -rf $(DEST)/modules.old; \
333 mv -f $(DEST)/modules $(DEST)/modules.old; \
334 fi
335 @if test ! "x`echo *.$(MOD_EXT)`" = "x*.$(MOD_EXT)"; then \
336 if test ! -d $(DEST)/modules-$(EGGVERSION); then \
337 echo "Creating modules-$(EGGVERSION) directory and symlink."; \
338 $(top_srcdir)/misc/mkinstalldirs $(DEST)/modules-$(EGGVERSION); \
339 fi; \
340 (cd $(DEST) && $(LN_S) modules-$(EGGVERSION) modules); \
341 echo "Copying new modules."; \
342 for i in *.$(MOD_EXT); do \
343 $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(EGGVERSION)/; \
344 done; \
345 fi
346
347 install-data:
348 @$(INSTALL_DATA) $(srcdir)/eggdrop.advanced.conf $(DEST)
349 @$(INSTALL_DATA) $(srcdir)/eggdrop.complete.conf $(DEST)
350 @$(INSTALL_DATA) $(srcdir)/eggdrop.simple.conf $(DEST)
351 @if test ! -d $(DEST)/logs; then \
352 echo "Creating 'logs' subdirectory."; \
353 $(top_srcdir)/misc/mkinstalldirs $(DEST)/logs; \
354 $(INSTALL_DATA) $(srcdir)/logs/CONTENTS $(DEST)/logs/; \
355 fi;
356 @if test ! -d $(DEST)/text; then \
357 echo "Creating 'text' subdirectory."; \
358 $(top_srcdir)/misc/mkinstalldirs $(DEST)/text; \
359 fi;
360 @if test ! -f $(DEST)/text/motd; then \
361 $(INSTALL_DATA) $(srcdir)/text/motd $(DEST)/text/; \
362 fi
363 @if test ! -f $(DEST)/text/banner; then \
364 $(INSTALL_DATA) $(srcdir)/text/banner $(DEST)/text/; \
365 fi
366
367 install-help:
368 @echo "Copying help files."
369 @if test ! "x`echo $(srcdir)/help/*.help`" = "x$(srcdir)/help/*.help"; then \
370 if test ! -d $(DEST)/help; then \
371 echo "Creating 'help' subdirectory."; \
372 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help; \
373 fi; \
374 for i in $(srcdir)/help/*.help; do \
375 $(INSTALL_DATA) $$i $(DEST)/help/; \
376 done; \
377 fi
378 @if test ! "x`echo $(srcdir)/help/msg/*.help`" = "x$(srcdir)/help/msg/*.help"; then \
379 if test ! -d $(DEST)/help/msg; then \
380 echo "Creating 'help/msg' subdirectory."; \
381 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help/msg; \
382 fi; \
383 for i in $(srcdir)/help/msg/*.help; do \
384 $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
385 done; \
386 fi
387 @if test ! "x`echo $(srcdir)/help/set/*.help`" = "x$(srcdir)/help/set/*.help"; then \
388 if test ! -d $(DEST)/help/set; then \
389 echo "Creating 'help/set' subdirectory."; \
390 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help/set; \
391 fi; \
392 for i in $(srcdir)/help/set/*.help; do \
393 $(INSTALL_DATA) $$i $(DEST)/help/set/; \
394 done; \
395 fi
396 @cd src/mod/ && $(MAKE_INSTALL) install-help
397
398 install-language:
399 @echo "Copying language files."
400 @if test ! "x`echo $(srcdir)/language/*.lang`" = "x$(srcdir)/language/*.lang"; then \
401 if test ! -d $(DEST)/language; then \
402 echo "Creating 'language' subdirectory."; \
403 $(top_srcdir)/misc/mkinstalldirs $(DEST)/language; \
404 fi; \
405 for i in $(srcdir)/language/*.lang; do \
406 $(INSTALL_DATA) $$i $(DEST)/language/; \
407 done; \
408 fi
409 @cd src/mod && $(MAKE_INSTALL) install-language
410
411 install-filesys:
412 @if test ! -d $(DEST)/filesys; then \
413 echo "Creating a skeletal filesys subdirectory."; \
414 $(top_srcdir)/misc/mkinstalldirs $(DEST)/filesys; \
415 $(top_srcdir)/misc/mkinstalldirs $(DEST)/filesys/incoming; \
416 fi
417
418 install-doc:
419 @$(INSTALL_DATA) $(srcdir)/README $(DEST)
420 @cd doc/ && $(MAKE_INSTALL) install
421
422 install-scripts:
423 @cd scripts/ && $(MAKE_INSTALL) install
424
425 install-end:
426 @echo
427 @echo "Installation completed."
428 @echo ""
429 @echo "You MUST ensure that you edit/verify your configuration file."
430 @echo "Use one of the three configuration files (eggdrop.simple.conf, eggdrop.advanced.conf and eggdrop.complete.conf) distributed with your bot."
431 @echo ""
432 @echo "Remember to change directory to $(DEST) before you proceed."
433 @echo ""
434
435 #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23