/[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.12 - (show annotations) (download)
Tue Dec 21 17:35:01 1999 UTC (19 years, 6 months ago) by fabian
Branch: MAIN
CVS Tags: eggdrop105020
Changes since 1.11: +1 -0 lines
Tothwolf's id-header

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23