/[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.28 - (show annotations) (download)
Thu Nov 4 20:20:52 1999 UTC (20 years, 1 month ago) by guppy
Branch: MAIN
Changes since 1.27: +33 -20 lines
blah

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23