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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23