/[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.18 - (show annotations) (download)
Fri Oct 15 16:38:39 1999 UTC (19 years, 11 months ago) by arthur2
Branch: MAIN
Changes since 1.17: +7 -1 lines
fix-stuff.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 @echo ""
137 @./$(EGGEXEC) -v
138 @ls -l $(EGGEXEC)
139
140 debugmem: memegg debmodules
141
142 memegg: modtest
143 @cd src; $(MAKE_MEMEGG) memegg
144 @echo ""
145 @./$(EGGEXEC) -v
146 @ls -l $(EGGEXEC)
147
148 debmodules: modtest
149 @cd src/mod; $(MAKE_DEBMODULES) modules
150 @echo ""
151 @echo "modules made:"
152 @ls -l *.so
153
154 sdebug: eggtest
155 @echo ""
156 @echo "Making module objects for static linking..."
157 @echo ""
158 @cd src/mod; $(MAKE_SDEBUG) static
159 @echo ""
160 @echo "Making core eggdrop for static linking..."
161 @echo ""
162 @cd src; $(MAKE_SDEBUG) sdebug
163 @echo ""
164 @./$(EGGEXEC) -v
165 @ls -l $(EGGEXEC)
166
167 eggtest:
168 @if [ -f EGGMOD.stamp ]; then \
169 echo "You're trying to do a STATIC build of eggdrop when you've";\
170 echo "already run 'make' for a module build.";\
171 echo "You must first type \"make clean\" before you can build";\
172 echo "a static version.";\
173 exit 1;\
174 fi
175 @echo "stamp" >EGGDROP.stamp
176
177 modtest:
178 @if [ -f EGGDROP.stamp ]; then \
179 echo "You're trying to do a MODULE build of eggdrop when you've";\
180 echo "already run 'make' for a static build.";\
181 echo "You must first type \"make clean\" before you can build";\
182 echo "a module version.";\
183 exit 1;\
184 fi
185 @echo "stamp" >EGGMOD.stamp
186
187 install: @DEFAULT_MAKE@ ainstall
188
189 dinstall: eggdrop ainstall
190
191 sinstall: static ainstall
192
193 ainstall: install-start install-bin install-modules install-data \
194 install-language install-help install-filesys install-doc \
195 install-scripts install-end
196
197 install-start:
198 @if test "x$(DEST)" = "x"; then \
199 echo "You must specify a destination directory with DEST="; \
200 exit 1; \
201 fi
202 @if test ! -f $(EGGEXEC); then \
203 echo "You haven't compiled eggdrop yet."; \
204 exit 1; \
205 fi
206 @echo ""
207 @./$(EGGEXEC) -v
208 @echo
209 @echo "Installing in directory: '$(DEST)'."
210 @echo
211 @if test ! -d $(DEST); then \
212 echo "Creating directory: $(DEST)."; \
213 $(INSTALL) -d $(DEST); \
214 fi
215
216 install-bin:
217 @if test -f $(DEST)/$(EGGEXEC); then \
218 rm -f $(DEST)/o$(EGGEXEC); \
219 fi
220 @if test -h $(DEST)/$(EGGEXEC); then \
221 echo "Removing symlink to archival eggdrop binary."; \
222 rm -f $(DEST)/$(EGGEXEC); \
223 fi
224 @if test -f $(DEST)/$(EGGEXEC); then \
225 echo "Renamed the old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
226 mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
227 fi
228 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
229 @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(NEWVERSION)
230 @$(LN_S) $(EGGEXEC)-$(NEWVERSION) $(DEST)/$(EGGEXEC)
231
232 install-modules:
233 @if test -h $(DEST)/modules; then \
234 echo "Removing symlink to archival modules directory."; \
235 rm -f $(DEST)/modules; \
236 fi
237 @if test -d $(DEST)/modules; then \
238 echo "Moving old modules into 'modules.old' directory."; \
239 rm -rf $(DEST)/modules.old; \
240 mv -f $(DEST)/modules $(DEST)/modules.old; \
241 fi
242 @if test ! "x`echo *.so`" = "x*.so"; then \
243 if test ! -d $(DEST)/modules-$(NEWVERSION); then \
244 echo "Creating modules-$(NEWVERSION) directory and symlink."; \
245 $(INSTALL) -d $(DEST)/modules-$(NEWVERSION); \
246 fi; \
247 $(LN_S) modules-$(NEWVERSION) $(DEST)/modules; \
248 echo "Copying new modules."; \
249 for i in *.so; do \
250 $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(NEWVERSION)/; \
251 done; \
252 fi
253
254 install-data:
255 @$(INSTALL_DATA) README $(DEST)
256 @$(INSTALL_DATA) eggdrop.conf.dist $(DEST)
257 @if test ! -f $(DEST)/motd; then \
258 $(INSTALL_DATA) motd $(DEST); \
259 fi
260 @if test ! -f $(DEST)/telnet-banner; then \
261 $(INSTALL_DATA) telnet-banner $(DEST); \
262 fi
263
264 install-language:
265 @if test ! "x`echo language/*.lang`" = "xlanguage/*.lang"; then \
266 if test ! -d $(DEST)/language; then \
267 echo "Creating 'language' subdirectory."; \
268 $(INSTALL) -d $(DEST)/language; \
269 fi; \
270 for i in language/*.lang; do \
271 $(INSTALL_DATA) $$i $(DEST)/language/; \
272 done; \
273 fi
274 @cd src/mod/; $(MAKE_INSTALL) install-language
275
276 install-help:
277 @if test ! "x`echo help/*.help`" = "xhelp/*.help"; then \
278 if test ! -d $(DEST)/help; then \
279 echo "Creating 'help' subdirectory."; \
280 $(INSTALL) -d $(DEST)/help; \
281 fi; \
282 for i in help/*.help; do \
283 $(INSTALL_DATA) $$i $(DEST)/help/; \
284 done; \
285 fi
286 @if test ! "x`echo help/msg/*.help`" = "xhelp/msg/*.help"; then \
287 if test ! -d $(DEST)/help/msg; then \
288 echo "Creating 'help/msg' subdirectory."; \
289 $(INSTALL) -d $(DEST)/help/msg; \
290 fi; \
291 for i in help/msg/*.help; do \
292 $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
293 done; \
294 fi
295 @if test ! "x`echo help/set/*.help`" = "xhelp/set/*.help"; then \
296 if test ! -d $(DEST)/help/set; then \
297 echo "Creating 'help/set' subdirectory."; \
298 $(INSTALL) -d $(DEST)/help/set; \
299 fi; \
300 for i in help/set/*.help; do \
301 $(INSTALL_DATA) $$i $(DEST)/help/set/; \
302 done; \
303 fi
304 @cd src/mod/; $(MAKE_INSTALL) install-help
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