/[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.27 - (show annotations) (download)
Mon Nov 1 17:00:59 1999 UTC (19 years, 10 months ago) by guppy
Branch: MAIN
Changes since 1.26: +17 -20 lines
blah last patches I hope

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23