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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23