/[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.19 - (show annotations) (download)
Fri Oct 15 22:22:29 1999 UTC (19 years, 11 months ago) by guppy
Branch: MAIN
Changes since 1.18: +18 -17 lines
tothwolf's patches to fix a few things

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23