/[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.17 - (show annotations) (download)
Fri Oct 15 11:35:25 1999 UTC (20 years, 1 month ago) by arthur2
Branch: MAIN
Changes since 1.16: +212 -165 lines
too-many-fixes.diff too-many-changes+1.diff too-many-fixes+2-part1.diff too-many-fixes+2-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
8 prefix = @prefix@
9 DEST = @DEST@
10 EGGEXEC = @EGGEXEC@
11
12 NEWVERSION = `grep 'char egg_version' src/main.c | @AWK@ '{gsub(/(\"|\;)/, "", $$4); print $$4}'`
13
14 # things you can put here:
15 # -Wall if you're using gcc and it supports it (configure
16 # usually detects this anyway now)
17 # -DEBUG_MEM to be able to debug memory allocation (.debug)
18 # this can now be set by using 'make debugmem'
19 CFLGS =
20
21 # configure SHOULD set these...you may need to tweak them to get modules
22 # to compile .. if you do...let the devel-team know the working settings
23 # btw to turn STRIP off, do 'STRIP = touch' not 'STRIP ='
24
25 # defaults
26 CC = @CC@
27 LD = @CC@
28 STRIP = @STRIP@
29 RANLIB = @RANLIB@
30
31 # make eggmod
32 MOD_CC = @MOD_CC@
33 MOD_LD = @MOD_LD@
34 MOD_STRIP = @MOD_STRIP@
35
36 # make modules
37 SHLIB_CC = @SHLIB_CC@
38 SHLIB_LD = @SHLIB_LD@
39 SHLIB_STRIP = @SHLIB_STRIP@
40
41 # programs make install uses
42 LN_S = @LN_S@
43 INSTALL = @INSTALL@
44 INSTALL_PROGRAM = @INSTALL_PROGRAM@
45 INSTALL_DATA = @INSTALL_DATA@
46 INSTALL_SCRIPT = @INSTALL_SCRIPT@
47
48 # STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP #
49 # - - - - - - - - do not edit anything below this line. - - - - - - - - #
50 # - - - - - - - - - it's all done by configure now. - - - - - - - - - #
51 # STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP #
52
53 # stuff for Tcl
54 XREQ = @TCL_REQS@
55 TCLLIB = @TCLLIB@
56
57 CFLAGS = @CFLAGS@ -I.. @DEFS@ $(CFLGS)
58 @SET_MAKE@
59
60 MAKE_STATIC = $(MAKE) 'CC=$(CC)' 'LD=$(LD)' 'STRIP=$(STRIP)' \
61 'RANLIB=$(RANLIB)' 'CFLAGS=$(CFLAGS) -DSTATIC' \
62 'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
63 'XREQ=$(XREQ)' 'XLIBS=@TCL_LIBS@ @LIBS@'
64
65 MAKE_MODEGG = $(MAKE) 'CC=$(MOD_CC)' 'LD=$(MOD_LD)' 'STRIP=$(MOD_STRIP)' \
66 'RANLIB=$(RANLIB)' 'CFLAGS=$(CFLAGS)' \
67 'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
68 'XREQ=$(XREQ)' 'XLIBS=@TCL_LIBS@ @LIBS@'
69
70 MAKE_MODULES = $(MAKE) 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
71 'STRIP=$(SHLIB_STRIP)' 'CFLAGS=$(CFLAGS)'
72
73 MAKE_SDEBUG = $(MAKE) 'CC=$(CC)' 'LD=$(LD)' 'STRIP=touch' \
74 'RANLIB=$(RANLIB)' 'CFLAGS=-g3 $(CFLAGS) -DSTATIC -DEBUG_MEM' \
75 'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
76 'XREQ=$(XREQ)' 'XLIBS=@TCL_LIBS@ @LIBS@'
77
78 MAKE_MEMEGG = $(MAKE) 'CC=$(MOD_CC)' 'LD=$(MOD_LD)' 'STRIP=touch' \
79 'RANLIB=$(RANLIB)' 'CFLAGS=-g3 $(CFLAGS) -DEBUG_MEM' \
80 'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
81 'XREQ=$(XREQ)' 'XLIBS=@TCL_LIBS@ @LIBS@'
82
83 MAKE_DEBMODULES = $(MAKE) 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
84 'STRIP=touch' 'CFLAGS=-g3 $(CFLAGS) -DEBUG_MEM'
85
86 MAKE_INSTALL = $(MAKE) 'DEST=$(DEST)' 'INSTALL=$(INSTALL)' \
87 'INSTALL_PROGRAM=$(INSTALL_PROGRAM)' 'INSTALL_DATA=$(INSTALL_DATA)' \
88 'INSTALL_SCRIPT=$(INSTALL_SCRIPT)'
89
90 all: @DEFAULT_MAKE@
91
92 clean:
93 @rm -f $(EGGEXEC) *.so *.stamp core DEBUG *~
94 @cd src; $(MAKE) clean
95 @cd src/md5; $(MAKE) clean
96 @cd src/mod; $(MAKE) clean
97
98 distclean: clean
99 @rm -f Makefile config.cache config.log config.status config.h lush.h
100
101 distrib: distclean Makefile.in
102 @rm -f `find . \( -name '*~' -o -name '*#' -o -name '*.orig' \
103 -o -name '*.rej' -o -name '*.bak' \) -print`
104 @rm -rf `find . \( -name "CVS" \) -print`
105 @(echo "all:"; \
106 echo " @echo \"\""; \
107 echo " @echo \"Before you can compile your bot you have to configure it.\""; \
108 echo " @echo \"So please start the configure script now:\""; \
109 echo " @echo \"\""; \
110 echo " @echo \" % ./configure\""; \
111 echo " @echo \"\""; ) > Makefile
112
113 eggdrop: modegg modules
114
115 modegg: modtest
116 @cd src; $(MAKE_MODEGG) modegg
117 @echo ""
118 @./$(EGGEXEC) -v
119 @ls -l $(EGGEXEC)
120
121 modules: modtest
122 @cd src/mod; $(MAKE_MODULES) modules
123 @echo ""
124 @echo "modules made:"
125 @ls -l *.so
126
127 static: eggtest
128 @echo ""
129 @echo "Making module objects for static linking..."
130 @echo ""
131 @cd src/mod; $(MAKE_STATIC) static
132 @echo ""
133 @echo "Making core eggdrop for static linking..."
134 @echo ""
135 @cd src; $(MAKE_STATIC) static
136 @./$(EGGEXEC) -v
137 @ls -l $(EGGEXEC)
138
139 debugmem: memegg debmodules
140
141 memegg: modtest
142 @cd src; $(MAKE_MEMEGG) memegg
143 @echo ""
144 @./$(EGGEXEC) -v
145 @ls -l $(EGGEXEC)
146
147 debmodules: modtest
148 @cd src/mod; $(MAKE_DEBMODULES) modules
149 @echo ""
150 @echo "modules made:"
151 @ls -l *.so
152
153 sdebug: eggtest
154 @echo ""
155 @echo "Making module objects for static linking..."
156 @echo ""
157 @cd src/mod; $(MAKE_SDEBUG) static
158 @echo ""
159 @echo "Making core eggdrop for static linking..."
160 @echo ""
161 @cd src; $(MAKE_SDEBUG) sdebug
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: @DEFAULT_MAKE@ ainstall
186
187 dinstall: eggdrop ainstall
188
189 sinstall: static ainstall
190
191 ainstall: install-start install-bin install-modules install-data \
192 install-language install-help install-filesys install-doc \
193 install-scripts install-end
194
195 install-start:
196 @if test "x$(DEST)" = "x"; then \
197 echo "You must specify a destination directory with DEST="; \
198 exit 1; \
199 fi
200 @if test ! -f $(EGGEXEC); then \
201 echo "You haven't compiled eggdrop yet."; \
202 exit 1; \
203 fi
204 @./$(EGGEXEC) -v
205 @echo
206 @echo "Installing in directory: '$(DEST)'."
207 @echo
208 @if test ! -d $(DEST); then \
209 echo "Creating directory: $(DEST)."; \
210 $(INSTALL) -d $(DEST); \
211 fi
212
213 install-bin:
214 @if test -f $(DEST)/$(EGGEXEC); then \
215 rm -f $(DEST)/o$(EGGEXEC); \
216 fi
217 @if test -h $(DEST)/$(EGGEXEC); then \
218 echo "Removing symlink to archival eggdrop binary."; \
219 rm -f $(DEST)/$(EGGEXEC); \
220 fi
221 @if test -f $(DEST)/$(EGGEXEC); then \
222 echo "Renamed the old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
223 mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
224 fi
225 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
226 @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(NEWVERSION)
227 @$(LN_S) $(EGGEXEC)-$(NEWVERSION) $(DEST)/$(EGGEXEC)
228
229 install-modules:
230 @if test -h $(DEST)/modules; then \
231 echo "Removing symlink to archival modules directory."; \
232 rm -f $(DEST)/modules; \
233 fi
234 @if test -d $(DEST)/modules; then \
235 echo "Moving old modules into 'modules.old' directory."; \
236 rm -rf $(DEST)/modules.old; \
237 mv -f $(DEST)/modules $(DEST)/modules.old; \
238 fi
239 @if test ! "x`echo *.so`" = "x*.so"; then \
240 if test ! -d $(DEST)/modules-$(NEWVERSION); then \
241 echo "Creating modules-$(NEWVERSION) directory and symlink."; \
242 $(INSTALL) -d $(DEST)/modules-$(NEWVERSION); \
243 fi; \
244 $(LN_S) modules-$(NEWVERSION) $(DEST)/modules; \
245 echo "Copying new modules."; \
246 for i in *.so; do \
247 $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(NEWVERSION)/; \
248 done; \
249 fi
250
251 install-data:
252 @$(INSTALL_DATA) README $(DEST)
253 @$(INSTALL_DATA) eggdrop.conf.dist $(DEST)
254 @if test ! -f $(DEST)/motd; then \
255 $(INSTALL_DATA) motd $(DEST); \
256 fi
257 @if test ! -f $(DEST)/telnet-banner; then \
258 $(INSTALL_DATA) telnet-banner $(DEST); \
259 fi
260
261 install-language:
262 @if test ! "x`echo language/*.lang`" = "xlanguage/*.lang"; then \
263 if test ! -d $(DEST)/language; then \
264 echo "Creating 'language' subdirectory."; \
265 $(INSTALL) -d $(DEST)/language; \
266 fi; \
267 for i in language/*.lang; do \
268 $(INSTALL_DATA) $$i $(DEST)/language/; \
269 done; \
270 fi
271 @cd src/mod/; $(MAKE_INSTALL) install-language
272
273 install-help:
274 @if test ! "x`echo help/*.help`" = "xhelp/*.help"; then \
275 if test ! -d $(DEST)/help; then \
276 echo "Creating 'help' subdirectory."; \
277 $(INSTALL) -d $(DEST)/help; \
278 fi; \
279 for i in help/*.help; do \
280 $(INSTALL_DATA) $$i $(DEST)/help/; \
281 done; \
282 fi
283 @if test ! "x`echo help/msg/*.help`" = "xhelp/msg/*.help"; then \
284 if test ! -d $(DEST)/help/msg; then \
285 echo "Creating 'help/msg' subdirectory."; \
286 $(INSTALL) -d $(DEST)/help/msg; \
287 fi; \
288 for i in help/msg/*.help; do \
289 $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
290 done; \
291 fi
292 @if test ! "x`echo help/set/*.help`" = "xhelp/set/*.help"; then \
293 if test ! -d $(DEST)/help/set; then \
294 echo "Creating 'help/set' subdirectory."; \
295 $(INSTALL) -d $(DEST)/help/set; \
296 fi; \
297 for i in help/set/*.help; do \
298 $(INSTALL_DATA) $$i $(DEST)/help/set/; \
299 done; \
300 fi
301 @cd src/mod/; $(MAKE_INSTALL) install-help
302
303 install-filesys:
304 @if test ! -d $(DEST)/filesys; then \
305 echo "Creating a skeletal filesys subdirectory."; \
306 $(INSTALL) -d $(DEST)/filesys; \
307 $(INSTALL) -d $(DEST)/filesys/incoming; \
308 fi
309
310 install-doc:
311 @cd doc/; $(MAKE_INSTALL) install
312
313 install-scripts:
314 @cd scripts/; $(MAKE_INSTALL) install
315
316 install-end:
317 @echo
318 @echo "Installation completed."
319 @echo "You MUST ensure that you edit/verify your configuration file."
320 @echo "'eggdrop.conf.dist' lists current options."
321 @echo "Remember to change directory to $(DEST) before you proceed."
322
323 #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23