/[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.25 - (show annotations) (download)
Tue Oct 26 08:08:37 1999 UTC (20 years, 1 month ago) by arthur2
Branch: MAIN
Changes since 1.24: +10 -9 lines
putlog-misc

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23