/[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.11 - (show annotations) (download)
Tue Dec 14 22:39:43 1999 UTC (19 years, 5 months ago) by fabian
Branch: MAIN
Changes since 1.10: +5 -2 lines
toth's patch-assert

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23