/[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.26 - (show annotations) (download)
Wed Oct 27 07:50:35 1999 UTC (19 years, 10 months ago) by arthur2
Branch: MAIN
Changes since 1.25: +29 -24 lines
putlog-misc-part2.diff

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23