/[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.16 - (show annotations) (download)
Mon Mar 6 18:54:07 2000 UTC (19 years, 4 months ago) by fabian
Branch: MAIN
Changes since 1.15: +25 -10 lines
configure_fix2,3 patches

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23