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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23