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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23