/[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.21 - (show annotations) (download)
Sun Oct 17 00:13:06 1999 UTC (20 years, 2 months ago) by guppy
Branch: MAIN
Changes since 1.20: +15 -9 lines
Tothwolf's latest patches, more-make-fixes and va-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 # st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GGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
80 'XREQ=$(XREQ)' 'XLIBS=@TCL_LIBS@ @LIBS@'
81
82 MAKE_DEBMODULES = $(MAKE) 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
83 'STRIP=touch' 'CFLAGS=-g3 $(CFLAGS) -DEBUG_MEM' 'CPPFLAGS=$(CPPFLAGS)'
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 ""; \
198 echo "You haven't compiled eggdrop yet."; \
199 echo "To compile eggdrop use:"; \
200 echo " make <target>"; \
201 echo ""; \
202 echo " valid targets: eggdrop static debug sdebug"; \
203 echo ""; \
204 exit 1; \
205 fi
206 @if test "x$(DEST)" = "x"; then \
207 echo "You must specify a destination directory with DEST="; \
208 exit 1; \
209 fi
210 @echo ""
211 @./$(EGGEXEC) -v
212 @echo
213 @echo "Installing in directory: '$(DEST)'."
214 @echo
215 @if test ! -d $(DEST); then \
216 echo "Creating directory: $(DEST)."; \
217 $(INSTALL) -d $(DEST); \
218 fi
219
220 install-bin:
221 @if test -f $(DEST)/$(EGGEXEC); then \
222 rm -f $(DEST)/o$(EGGEXEC); \
223 fi
224 @if test -h $(DEST)/$(EGGEXEC); then \
225 echo "Removing symlink to archival eggdrop binary."; \
226 rm -f $(DEST)/$(EGGEXEC); \
227 fi
228 @if test -f $(DEST)/$(EGGEXEC); then \
229 echo "Renamed the old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
230 mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
231 fi
232 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
233 @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(EGGVERSION)
234 @(cd $(DEST) && $(LN_S) $(EGGEXEC)-$(EGGVERSION) $(EGGEXEC))
235
236 install-modules:
237 @if test -h $(DEST)/modules; then \
238 echo "Removing symlink to archival modules directory."; \
239 rm -f $(DEST)/modules; \
240 fi
241 @if test -d $(DEST)/modules; then \
242 echo "Moving old modules into 'modules.old' directory."; \
243 rm -rf $(DEST)/modules.old; \
244 mv -f $(DEST)/modules $(DEST)/modules.old; \
245 fi
246 @if test ! "x`echo *.so`" = "x*.so"; then \
247 if test ! -d $(DEST)/modules-$(EGGVERSION); then \
248 echo "Creating modules-$(EGGVERSION) directory and symlink."; \
249 $(INSTALL) -d $(DEST)/modules-$(EGGVERSION); \
250 fi; \
251 (cd $(DEST) && $(LN_S) modules-$(EGGVERSION) modules); \
252 echo "Copying new modules."; \
253 for i in *.so; do \
254 $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(EGGVERSION)/; \
255 done; \
256 fi
257
258 install-data:
259 @$(INSTALL_DATA) eggdrop.conf.dist $(DEST)
260 @if test ! -f $(DEST)/motd; then \
261 $(INSTALL_DATA) motd $(DEST); \
262 fi
263 @if test ! -f $(DEST)/telnet-banner; then \
264 $(INSTALL_DATA) telnet-banner $(DEST); \
265 fi
266
267 install-help:
268 @echo "Copying help files."
269 @if test ! "x`echo help/*.help`" = "xhelp/*.help"; then \
270 if test ! -d $(DEST)/help; then \
271 echo "Creating 'help' subdirectory."; \
272 $(INSTALL) -d $(DEST)/help; \
273 fi; \
274 for i in help/*.help; do \
275 $(INSTALL_DATA) $$i $(DEST)/help/; \
276 done; \
277 fi
278 @if test ! "x`echo help/msg/*.help`" = "xhelp/msg/*.help"; then \
279 if test ! -d $(DEST)/help/msg; then \
280 echo "Creating 'help/msg' subdirectory."; \
281 $(INSTALL) -d $(DEST)/help/msg; \
282 fi; \
283 for i in help/msg/*.help; do \
284 $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
285 done; \
286 fi
287 @if test ! "x`echo help/set/*.help`" = "xhelp/set/*.help"; then \
288 if test ! -d $(DEST)/help/set; then \
289 echo "Creating 'help/set' subdirectory."; \
290 $(INSTALL) -d $(DEST)/help/set; \
291 fi; \
292 for i in help/set/*.help; do \
293 $(INSTALL_DATA) $$i $(DEST)/help/set/; \
294 done; \
295 fi
296 @cd src/mod/; $(MAKE_INSTALL) install-help
297
298 install-language:
299 @echo "Copying language files."
300 @if test ! "x`echo language/*.lang`" = "xlanguage/*.lang"; then \
301 if test ! -d $(DEST)/language; then \
302 echo "Creating 'language' subdirectory."; \
303 $(INSTALL) -d $(DEST)/language; \
304 fi; \
305 for i in language/*.lang; do \
306 $(INSTALL_DATA) $$i $(DEST)/language/; \
307 done; \
308 fi
309 @cd src/mod/; $(MAKE_INSTALL) install-language
310
311 install-filesys:
312 @if test ! -d $(DEST)/filesys; then \
313 echo "Creating a skeletal filesys subdirectory."; \
314 $(INSTALL) -d $(DEST)/filesys; \
315 $(INSTALL) -d $(DEST)/filesys/incoming; \
316 fi
317
318 install-doc:
319 @$(INSTALL_DATA) README $(DEST)
320 @cd doc/; $(MAKE_INSTALL) install
321
322 install-scripts:
323 @cd scripts/; $(MAKE_INSTALL) install
324
325 install-end:
326 @echo
327 @echo "Installation completed."
328 @echo ""
329 @echo "You MUST ensure that you edit/verify your configuration file."
330 @echo "'eggdrop.conf.dist' lists current options."
331 @echo ""
332 @echo "Remember to change directory to $(DEST) before you proceed."
333 @echo ""
334
335 #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23