/[cvs]/eggdrop1.4/Makefile.in
ViewVC logotype

Contents of /eggdrop1.4/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.30 - (show annotations) (download)
Mon Dec 13 18:20:08 1999 UTC (19 years, 10 months ago) by guppy
Branch: MAIN
Changes since 1.29: +5 -2 lines
bytesfix, yay, supers needs to test this

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23