/[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.7 - (show annotations) (download)
Thu Feb 15 22:13:36 2001 UTC (17 years, 10 months ago) by tothwolf
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +9 -6 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.6 2001/02/15 18:51:16 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 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/*.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/*.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 MAKE_CLEAN = $(MAKE) 'MAKE=$(MAKE)' 'EGGEXEC=$(EGGEXEC)' \
120 'MOD_EXT=$(MOD_EXT)'
121
122 all: @DEFAULT_MAKE@
123
124 clean:
125 @rm -f *.stamp core DEBUG *~
126 @cd doc && $(MAKE_CLEAN) clean
127 @cd scripts && $(MAKE_CLEAN) clean
128 @cd src && $(MAKE_CLEAN) clean
129 @cd src/compat && $(MAKE_CLEAN) clean
130 @cd src/mod && $(MAKE_CLEAN) clean
131
132 distclean: clean clean-modconfig
133 @cd src/mod && $(MAKE) distclean
134 @rm -f Makefile doc/Makefile scripts/Makefile src/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/mod && $(MAKE_DEPEND) depend
153 @cd src/compat && $(MAKE_DEPEND) depend
154
155 eggautoconf:
156 @$(modconf) eggautoconf
157
158 config:
159 @$(modconf) modules-still-exist
160 @$(modconf) detect-modules
161 @$(modconf) update-depends
162 @$(modconf) Makefile
163 @cd src/mod && $(MAKE_CONFIG) config
164 @$(modconf) Makefile
165 @$(post_config)
166
167 new-iconfig:
168 @$(modconf) modules-still-exist
169 @$(modconf) update-depends
170 @$(modconf) -n configure
171 @$(post_iconfig)
172 @$(post_config)
173
174 iconfig:
175 @$(modconf) modules-still-exist
176 @$(modconf) detect-modules
177 @$(modconf) update-depends
178 @$(modconf) configure
179 @$(post_iconfig)
180 @$(post_config)
181
182 clean-modconfig:
183 @rm -f .modules .known_modules
184
185 conftest:
186 @if test ! -f .modules; then \
187 $(MAKE) config; \
188 fi
189
190 reconfig: clean-modconfig config
191
192 eggdrop: modegg modules
193
194 modegg: modtest
195 @rm -f src/mod/mod.xlibs
196 @cd src && $(MAKE_MODEGG) $(EGGEXEC)
197
198 modules: modtest
199 @cd src/mod && $(MAKE_MODULES) modules
200 @$(egg_install_msg)
201
202 static: eggtest
203 @echo ""
204 @echo "Making module objects for static linking..."
205 @echo ""
206 @rm -f src/mod/mod.xlibs
207 @cd src/mod && $(MAKE_STATIC) static
208 @echo ""
209 @echo "Making core eggdrop for static linking..."
210 @echo ""
211 @cd src && $(MAKE_STATIC) $(EGGEXEC)
212 @$(egg_install_msg)
213
214 debug: debegg debmodules
215
216 debegg: modtest
217 @cd src && $(MAKE_DEBEGG) $(EGGEXEC)
218
219 debmodules: modtest
220 @cd src/mod && $(MAKE_DEBMODULES) modules
221 @$(egg_install_msg)
222
223 sdebug: eggtest
224 @echo ""
225 @echo "Making module objects for static linking..."
226 @echo ""
227 @rm -f src/mod/mod.xlibs
228 @cd src/mod && $(MAKE_SDEBUG) static
229 @echo ""
230 @echo "Making core eggdrop for static linking..."
231 @echo ""
232 @cd src && $(MAKE_SDEBUG) $(EGGEXEC)
233 @$(egg_install_msg)
234
235 eggtest: conftest
236 @if test -f EGGMOD.stamp; then \
237 echo "You're trying to do a STATIC build of eggdrop when you've";\
238 echo "already run 'make' for a module build.";\
239 echo "You must first type \"make clean\" before you can build";\
240 echo "a static version.";\
241 exit 1;\
242 fi
243 @echo "stamp" >EGGDROP.stamp
244
245 modtest: conftest
246 @if [ -f EGGDROP.stamp ]; then \
247 echo "You're trying to do a MODULE build of eggdrop when you've";\
248 echo "already run 'make' for a static build.";\
249 echo "You must first type \"make clean\" before you can build";\
250 echo "a module version.";\
251 exit 1;\
252 fi
253 @echo "stamp" >EGGMOD.stamp
254
255 install: ainstall
256
257 dinstall: eggdrop ainstall
258
259 sinstall: static ainstall
260
261 ainstall: install-start install-bin install-modules install-data \
262 install-help install-language install-filesys install-doc \
263 install-scripts install-end
264
265 install-start:
266 @if test ! -f $(EGGEXEC); then \
267 echo ""; \
268 echo "You haven't compiled eggdrop yet."; \
269 echo "To compile eggdrop use:"; \
270 echo " make <target>"; \
271 echo ""; \
272 echo " valid targets: eggdrop static debug sdebug"; \
273 echo ""; \
274 exit 1; \
275 fi
276 @if test "x$(DEST)" = "x"; then \
277 echo "You must specify a destination directory with DEST="; \
278 exit 1; \
279 fi
280 @echo ""
281 @echo "Installing in directory: '$(DEST)'."
282 @echo ""
283 @if test ! -d $(DEST); then \
284 echo "Creating directory: $(DEST)."; \
285 $(top_srcdir)/misc/mkinstalldirs $(DEST); \
286 fi
287
288 install-bin:
289 @if test -f $(DEST)/o$(EGGEXEC); then \
290 rm -f $(DEST)/o$(EGGEXEC); \
291 fi
292 @if test -h $(DEST)/$(EGGEXEC); then \
293 echo "Removing symlink to archival eggdrop binary."; \
294 rm -f $(DEST)/$(EGGEXEC); \
295 fi
296 @if test -f $(DEST)/$(EGGEXEC); then \
297 echo "Renamed the old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
298 mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
299 fi
300 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
301 @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(EGGVERSION)
302 @(cd $(DEST) && $(LN_S) $(EGGEXEC)-$(EGGVERSION) $(EGGEXEC))
303
304 install-modules:
305 @if test -h $(DEST)/modules; then \
306 echo "Removing symlink to archival modules directory."; \
307 rm -f $(DEST)/modules; \
308 fi
309 @if test -d $(DEST)/modules; then \
310 echo "Moving old modules into 'modules.old' directory."; \
311 rm -rf $(DEST)/modules.old; \
312 mv -f $(DEST)/modules $(DEST)/modules.old; \
313 fi
314 @if test ! "x`echo *.$(MOD_EXT)`" = "x*.$(MOD_EXT)"; then \
315 if test ! -d $(DEST)/modules-$(EGGVERSION); then \
316 echo "Creating modules-$(EGGVERSION) directory and symlink."; \
317 $(top_srcdir)/misc/mkinstalldirs $(DEST)/modules-$(EGGVERSION); \
318 fi; \
319 (cd $(DEST) && $(LN_S) modules-$(EGGVERSION) modules); \
320 echo "Copying new modules."; \
321 for i in *.$(MOD_EXT); do \
322 $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(EGGVERSION)/; \
323 done; \
324 fi
325
326 install-data:
327 @$(INSTALL_DATA) $(srcdir)/eggdrop.advanced.conf $(DEST)
328 @$(INSTALL_DATA) $(srcdir)/eggdrop.complete.conf $(DEST)
329 @$(INSTALL_DATA) $(srcdir)/eggdrop.simple.conf $(DEST)
330 @if test ! -d $(DEST)/logs; then \
331 echo "Creating 'logs' subdirectory."; \
332 $(top_srcdir)/misc/mkinstalldirs $(DEST)/logs; \
333 $(INSTALL_DATA) $(srcdir)/logs/CONTENTS $(DEST)/logs/; \
334 fi;
335 @if test ! -d $(DEST)/text; then \
336 echo "Creating 'text' subdirectory."; \
337 $(top_srcdir)/misc/mkinstalldirs $(DEST)/text; \
338 fi;
339 @if test ! -f $(DEST)/text/motd; then \
340 $(INSTALL_DATA) $(srcdir)/text/motd $(DEST)/text/; \
341 fi
342 @if test ! -f $(DEST)/text/banner; then \
343 $(INSTALL_DATA) $(srcdir)/text/banner $(DEST)/text/; \
344 fi
345
346 install-help:
347 @echo "Copying help files."
348 @if test ! "x`echo $(srcdir)/help/*.help`" = "x$(srcdir)/help/*.help"; then \
349 if test ! -d $(DEST)/help; then \
350 echo "Creating 'help' subdirectory."; \
351 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help; \
352 fi; \
353 for i in $(srcdir)/help/*.help; do \
354 $(INSTALL_DATA) $$i $(DEST)/help/; \
355 done; \
356 fi
357 @if test ! "x`echo $(srcdir)/help/msg/*.help`" = "x$(srcdir)/help/msg/*.help"; then \
358 if test ! -d $(DEST)/help/msg; then \
359 echo "Creating 'help/msg' subdirectory."; \
360 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help/msg; \
361 fi; \
362 for i in $(srcdir)/help/msg/*.help; do \
363 $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
364 done; \
365 fi
366 @if test ! "x`echo $(srcdir)/help/set/*.help`" = "x$(srcdir)/help/set/*.help"; then \
367 if test ! -d $(DEST)/help/set; then \
368 echo "Creating 'help/set' subdirectory."; \
369 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help/set; \
370 fi; \
371 for i in $(srcdir)/help/set/*.help; do \
372 $(INSTALL_DATA) $$i $(DEST)/help/set/; \
373 done; \
374 fi
375 @cd src/mod/ && $(MAKE_INSTALL) install-help
376
377 install-language:
378 @echo "Copying language files."
379 @if test ! "x`echo $(srcdir)/language/*.lang`" = "x$(srcdir)/language/*.lang"; then \
380 if test ! -d $(DEST)/language; then \
381 echo "Creating 'language' subdirectory."; \
382 $(top_srcdir)/misc/mkinstalldirs $(DEST)/language; \
383 fi; \
384 for i in $(srcdir)/language/*.lang; do \
385 $(INSTALL_DATA) $$i $(DEST)/language/; \
386 done; \
387 fi
388 @cd src/mod && $(MAKE_INSTALL) install-language
389
390 install-filesys:
391 @if test ! -d $(DEST)/filesys; then \
392 echo "Creating a skeletal filesys subdirectory."; \
393 $(top_srcdir)/misc/mkinstalldirs $(DEST)/filesys; \
394 $(top_srcdir)/misc/mkinstalldirs $(DEST)/filesys/incoming; \
395 fi
396
397 install-doc:
398 @$(INSTALL_DATA) $(srcdir)/README $(DEST)
399 @cd doc/ && $(MAKE_INSTALL) install
400
401 install-scripts:
402 @cd scripts/ && $(MAKE_INSTALL) install
403
404 install-end:
405 @echo ""
406 @echo "Installation completed."
407 @echo ""
408 @echo "You MUST ensure that you edit/verify your configuration file."
409 @echo "Use one of the three configuration files (eggdrop.simple.conf, eggdrop.advanced.conf and eggdrop.complete.conf) distributed with your bot."
410 @echo ""
411 @echo "Remember to change directory to $(DEST) before you proceed."
412 @echo ""
413
414 #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23