/[cvs]/eggdrop1.4/Makefile.in
ViewVC logotype

Annotation of /eggdrop1.4/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.26 - (hide annotations) (download)
Wed Oct 27 07:50:35 1999 UTC (20 years, 3 months ago) by arthur2
Branch: MAIN
Changes since 1.25: +29 -24 lines
putlog-misc-part2.diff

1 segfault 1.1 #
2     # This is the Makefile for EGGDROP (the irc bot)
3     # You should never need to edit this.
4     #
5    
6 arthur2 1.17 SHELL = /bin/sh
7 arthur2 1.26 top_srcdir = @top_srcdir@
8 arthur2 1.17
9 arthur2 1.26 @SET_MAKE@
10 segfault 1.1 prefix = @prefix@
11 guppy 1.15 DEST = @DEST@
12 arthur2 1.17 EGGEXEC = @EGGEXEC@
13 guppy 1.20 EGGVERSION = @EGGVERSION@
14 segfault 1.1
15     # things you can put here:
16     # -Wall if you're using gcc and it supports it (configure
17     # usually detects this anyway now)
18     # -DEBUG_MEM to be able to debug memory allocation (.debug)
19 guppy 1.24 # this can now be set by using 'make debug'
20 guppy 1.14 CFLGS =
21 segfault 1.1
22     # configure SHOULD set these...you may need to tweak them to get modules
23     # to compile .. if you do...let the devel-team know the working settings
24 guppy 1.15 # btw to turn STRIP off, do 'STRIP = touch' not 'STRIP ='
25 segfault 1.1
26 arthur2 1.17 # defaults
27 guppy 1.15 CC = @CC@
28     LD = @CC@
29 arthur2 1.17 STRIP = @STRIP@
30     RANLIB = @RANLIB@
31 segfault 1.1
32 arthur2 1.17 # make eggmod
33     MOD_CC = @MOD_CC@
34     MOD_LD = @MOD_LD@
35     MOD_STRIP = @MOD_STRIP@
36 segfault 1.1
37 arthur2 1.17 # make modules
38 segfault 1.1 SHLIB_CC = @SHLIB_CC@
39 guppy 1.15 SHLIB_LD = @SHLIB_LD@
40 segfault 1.1 SHLIB_STRIP = @SHLIB_STRIP@
41    
42 arthur2 1.17 # programs make install uses
43 guppy 1.15 LN_S = @LN_S@
44 arthur2 1.17 INSTALL = @INSTALL@
45     INSTALL_PROGRAM = @INSTALL_PROGRAM@
46     INSTALL_DATA = @INSTALL_DATA@
47     INSTALL_SCRIPT = @INSTALL_SCRIPT@
48 segfault 1.1
49     # STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP #
50     # - - - - - - - - do not edit anything below this line. - - - - - - - - #
51     # - - - - - - - - - it's all done by configure now. - - - - - - - - - #
52     # STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP #
53    
54     # stuff for Tcl
55 arthur2 1.25 XREQS = @TCL_REQS@
56     XLIBS = @TCL_LIBS@ @LIBS@
57 segfault 1.1 TCLLIB = @TCLLIB@
58 guppy 1.24 TCLLIBFN = @TCLLIBFN@
59 arthur2 1.17
60     CFLAGS = @CFLAGS@ -I.. @DEFS@ $(CFLGS)
61    
62     MAKE_MODEGG = $(MAKE) 'CC=$(MOD_CC)' 'LD=$(MOD_LD)' 'STRIP=$(MOD_STRIP)' \
63 guppy 1.24 'RANLIB=$(RANLIB)' 'CFLAGS=$(CFLAGS)' \
64     'CPPFLAGS=$(CPPFLAGS)' 'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
65 arthur2 1.26 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' \
66     'EGGBUILD=' 'MODOBJS='
67 arthur2 1.17
68     MAKE_MODULES = $(MAKE) 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
69 guppy 1.21 'STRIP=$(SHLIB_STRIP)' 'CFLAGS=$(CFLAGS)' 'CPPFLAGS=$(CPPFLAGS)'
70 arthur2 1.17
71 arthur2 1.26 MAKE_STATIC = $(MAKE) 'CC=$(CC)' 'LD=$(LD)' 'STRIP=$(STRIP)' \
72     'RANLIB=$(RANLIB)' 'CFLAGS=$(CFLAGS) -DSTATIC' \
73 guppy 1.21 'CPPFLAGS=$(CPPFLAGS)' 'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
74 arthur2 1.26 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' \
75     'EGGBUILD=(static version)' 'MODOBJS=mod/*.o'
76 arthur2 1.17
77 arthur2 1.26 MAKE_DEBEGG = $(MAKE) 'CC=$(MOD_CC)' 'LD=$(MOD_LD) -g' 'STRIP=touch' \
78 arthur2 1.17 'RANLIB=$(RANLIB)' 'CFLAGS=-g3 $(CFLAGS) -DEBUG_MEM' \
79 guppy 1.21 'CPPFLAGS=$(CPPFLAGS)' 'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
80 arthur2 1.26 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' \
81     'EGGBUILD=(debug version)' 'MODOBJS='
82 arthur2 1.17
83     MAKE_DEBMODULES = $(MAKE) 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
84 guppy 1.21 'STRIP=touch' 'CFLAGS=-g3 $(CFLAGS) -DEBUG_MEM' 'CPPFLAGS=$(CPPFLAGS)'
85 arthur2 1.17
86 arthur2 1.26 MAKE_SDEBUG = $(MAKE) 'CC=$(CC)' 'LD=$(LD) -g' 'STRIP=touch' \
87     'RANLIB=$(RANLIB)' 'CFLAGS=-g3 $(CFLAGS) -DSTATIC -DEBUG_MEM' \
88     'CPPFLAGS=$(CPPFLAGS)' 'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
89     'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' \
90     'EGGBUILD=(static and debug version)' 'MODOBJS=mod/*.o'
91    
92 guppy 1.19 MAKE_INSTALL = $(MAKE) 'DEST=$(DEST)'
93 arthur2 1.17
94     all: @DEFAULT_MAKE@
95    
96     clean:
97     @rm -f $(EGGEXEC) *.so *.stamp core DEBUG *~
98 guppy 1.22 @cd doc; $(MAKE) clean
99 guppy 1.23 @cd scripts; $(MAKE) clean
100 arthur2 1.17 @cd src; $(MAKE) clean
101     @cd src/md5; $(MAKE) clean
102     @cd src/mod; $(MAKE) clean
103 segfault 1.1
104 guppy 1.12 distclean: clean
105 guppy 1.20 @rm -f Makefile doc/Makefile scripts/Makefile src/Makefile src/md5/Makefile src/mod/Makefile
106 guppy 1.19 @rm -f config.cache config.log config.status config.h lush.h
107 arthur2 1.17
108 guppy 1.22 distrib: distclean
109 guppy 1.12 @rm -f `find . \( -name '*~' -o -name '*#' -o -name '*.orig' \
110     -o -name '*.rej' -o -name '*.bak' \) -print`
111 arthur2 1.25 @rm -rf `find . \( -name 'CVS' \) -print`
112 guppy 1.12 @(echo "all:"; \
113 arthur2 1.18 echo " @echo \"\""; \
114 guppy 1.12 echo " @echo \"Before you can compile your bot you have to configure it.\""; \
115     echo " @echo \"So please start the configure script now:\""; \
116     echo " @echo \"\""; \
117     echo " @echo \" % ./configure\""; \
118     echo " @echo \"\""; ) > Makefile
119 segfault 1.1
120     eggdrop: modegg modules
121    
122 arthur2 1.17 modegg: modtest
123 arthur2 1.26 @cd src; $(MAKE_MODEGG) $(EGGEXEC)
124 arthur2 1.17 @echo ""
125     @./$(EGGEXEC) -v
126     @ls -l $(EGGEXEC)
127 segfault 1.1
128 arthur2 1.17 modules: modtest
129     @cd src/mod; $(MAKE_MODULES) modules
130     @echo ""
131     @echo "modules made:"
132     @ls -l *.so
133 segfault 1.1
134     static: eggtest
135     @echo ""
136     @echo "Making module objects for static linking..."
137     @echo ""
138 arthur2 1.17 @cd src/mod; $(MAKE_STATIC) static
139 segfault 1.1 @echo ""
140     @echo "Making core eggdrop for static linking..."
141     @echo ""
142 arthur2 1.26 @cd src; $(MAKE_STATIC) $(EGGEXEC)
143 arthur2 1.18 @echo ""
144 arthur2 1.17 @./$(EGGEXEC) -v
145     @ls -l $(EGGEXEC)
146    
147 arthur2 1.25 debug: debegg debmodules
148 segfault 1.1
149 arthur2 1.25 debegg: modtest
150 arthur2 1.26 @cd src; $(MAKE_DEBEGG) $(EGGEXEC)
151 arthur2 1.17 @echo ""
152     @./$(EGGEXEC) -v
153     @ls -l $(EGGEXEC)
154 segfault 1.1
155 arthur2 1.17 debmodules: modtest
156     @cd src/mod; $(MAKE_DEBMODULES) modules
157     @echo ""
158 segfault 1.1 @echo "modules made:"
159 arthur2 1.17 @ls -l *.so
160 segfault 1.1
161 arthur2 1.17 sdebug: eggtest
162     @echo ""
163     @echo "Making module objects for static linking..."
164     @echo ""
165     @cd src/mod; $(MAKE_SDEBUG) static
166     @echo ""
167     @echo "Making core eggdrop for static linking..."
168     @echo ""
169 arthur2 1.26 @cd src; $(MAKE_SDEBUG) $(EGGEXEC)
170 arthur2 1.18 @echo ""
171 arthur2 1.17 @./$(EGGEXEC) -v
172     @ls -l $(EGGEXEC)
173 segfault 1.1
174     eggtest:
175     @if [ -f EGGMOD.stamp ]; then \
176 arthur2 1.17 echo "You're trying to do a STATIC build of eggdrop when you've";\
177     echo "already run 'make' for a module build.";\
178     echo "You must first type \"make clean\" before you can build";\
179     echo "a static version.";\
180 segfault 1.1 exit 1;\
181     fi
182 arthur2 1.17 @echo "stamp" >EGGDROP.stamp
183 segfault 1.1
184     modtest:
185     @if [ -f EGGDROP.stamp ]; then \
186 arthur2 1.17 echo "You're trying to do a MODULE build of eggdrop when you've";\
187     echo "already run 'make' for a static build.";\
188     echo "You must first type \"make clean\" before you can build";\
189     echo "a module version.";\
190 segfault 1.1 exit 1;\
191     fi
192 arthur2 1.17 @echo "stamp" >EGGMOD.stamp
193 segfault 1.1
194 guppy 1.20 install: ainstall
195 segfault 1.1
196     dinstall: eggdrop ainstall
197    
198     sinstall: static ainstall
199    
200 arthur2 1.17 ainstall: install-start install-bin install-modules install-data \
201 guppy 1.21 install-help install-language install-filesys install-doc \
202     install-scripts install-end
203 arthur2 1.17
204     install-start:
205 guppy 1.20 @if test ! -f $(EGGEXEC); then \
206 guppy 1.21 echo ""; \
207 guppy 1.20 echo "You haven't compiled eggdrop yet."; \
208 guppy 1.21 echo "To compile eggdrop use:"; \
209     echo " make <target>"; \
210     echo ""; \
211     echo " valid targets: eggdrop static debug sdebug"; \
212     echo ""; \
213 guppy 1.20 exit 1; \
214     fi
215 arthur2 1.17 @if test "x$(DEST)" = "x"; then \
216 segfault 1.1 echo "You must specify a destination directory with DEST="; \
217     exit 1; \
218     fi
219 arthur2 1.18 @echo ""
220 arthur2 1.17 @./$(EGGEXEC) -v
221 segfault 1.1 @echo
222 arthur2 1.17 @echo "Installing in directory: '$(DEST)'."
223 segfault 1.1 @echo
224     @if test ! -d $(DEST); then \
225 arthur2 1.17 echo "Creating directory: $(DEST)."; \
226 arthur2 1.26 $(top_srcdir)/mkinstalldirs $(DEST); \
227 segfault 1.1 fi
228 arthur2 1.17
229     install-bin:
230     @if test -f $(DEST)/$(EGGEXEC); then \
231     rm -f $(DEST)/o$(EGGEXEC); \
232 segfault 1.1 fi
233 arthur2 1.17 @if test -h $(DEST)/$(EGGEXEC); then \
234     echo "Removing symlink to archival eggdrop binary."; \
235     rm -f $(DEST)/$(EGGEXEC); \
236 guppy 1.12 fi
237 arthur2 1.17 @if test -f $(DEST)/$(EGGEXEC); then \
238     echo "Renamed the old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
239     mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
240 guppy 1.8 fi
241 arthur2 1.17 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
242 guppy 1.20 @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(EGGVERSION)
243     @(cd $(DEST) && $(LN_S) $(EGGEXEC)-$(EGGVERSION) $(EGGEXEC))
244 arthur2 1.17
245     install-modules:
246 segfault 1.1 @if test -h $(DEST)/modules; then \
247 arthur2 1.17 echo "Removing symlink to archival modules directory."; \
248 segfault 1.1 rm -f $(DEST)/modules; \
249     fi
250 arthur2 1.17 @if test -d $(DEST)/modules; then \
251     echo "Moving old modules into 'modules.old' directory."; \
252 segfault 1.1 rm -rf $(DEST)/modules.old; \
253     mv -f $(DEST)/modules $(DEST)/modules.old; \
254     fi
255 arthur2 1.17 @if test ! "x`echo *.so`" = "x*.so"; then \
256 guppy 1.20 if test ! -d $(DEST)/modules-$(EGGVERSION); then \
257     echo "Creating modules-$(EGGVERSION) directory and symlink."; \
258 arthur2 1.26 $(top_srcdir)/mkinstalldirs $(DEST)/modules-$(EGGVERSION); \
259 arthur2 1.17 fi; \
260 guppy 1.20 (cd $(DEST) && $(LN_S) modules-$(EGGVERSION) modules); \
261 arthur2 1.17 echo "Copying new modules."; \
262     for i in *.so; do \
263 guppy 1.20 $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(EGGVERSION)/; \
264 arthur2 1.17 done; \
265 segfault 1.1 fi
266 arthur2 1.17
267     install-data:
268     @$(INSTALL_DATA) eggdrop.conf.dist $(DEST)
269     @if test ! -f $(DEST)/motd; then \
270     $(INSTALL_DATA) motd $(DEST); \
271     fi
272     @if test ! -f $(DEST)/telnet-banner; then \
273     $(INSTALL_DATA) telnet-banner $(DEST); \
274     fi
275    
276     install-help:
277 guppy 1.19 @echo "Copying help files."
278 arthur2 1.17 @if test ! "x`echo help/*.help`" = "xhelp/*.help"; then \
279     if test ! -d $(DEST)/help; then \
280     echo "Creating 'help' subdirectory."; \
281 arthur2 1.26 $(top_srcdir)/mkinstalldirs $(DEST)/help; \
282 arthur2 1.17 fi; \
283     for i in help/*.help; do \
284     $(INSTALL_DATA) $$i $(DEST)/help/; \
285     done; \
286     fi
287     @if test ! "x`echo help/msg/*.help`" = "xhelp/msg/*.help"; then \
288     if test ! -d $(DEST)/help/msg; then \
289     echo "Creating 'help/msg' subdirectory."; \
290 arthur2 1.26 $(top_srcdir)/mkinstalldirs $(DEST)/help/msg; \
291 arthur2 1.17 fi; \
292     for i in help/msg/*.help; do \
293     $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
294     done; \
295     fi
296     @if test ! "x`echo help/set/*.help`" = "xhelp/set/*.help"; then \
297     if test ! -d $(DEST)/help/set; then \
298     echo "Creating 'help/set' subdirectory."; \
299 arthur2 1.26 $(top_srcdir)/mkinstalldirs $(DEST)/help/set; \
300 arthur2 1.17 fi; \
301     for i in help/set/*.help; do \
302     $(INSTALL_DATA) $$i $(DEST)/help/set/; \
303     done; \
304     fi
305     @cd src/mod/; $(MAKE_INSTALL) install-help
306 guppy 1.19
307     install-language:
308     @echo "Copying language files."
309     @if test ! "x`echo language/*.lang`" = "xlanguage/*.lang"; then \
310     if test ! -d $(DEST)/language; then \
311     echo "Creating 'language' subdirectory."; \
312 arthur2 1.26 $(top_srcdir)/mkinstalldirs $(DEST)/language; \
313 guppy 1.19 fi; \
314     for i in language/*.lang; do \
315     $(INSTALL_DATA) $$i $(DEST)/language/; \
316     done; \
317     fi
318     @cd src/mod/; $(MAKE_INSTALL) install-language
319 arthur2 1.17
320     install-filesys:
321 segfault 1.1 @if test ! -d $(DEST)/filesys; then \
322 arthur2 1.17 echo "Creating a skeletal filesys subdirectory."; \
323 arthur2 1.26 $(top_srcdir)/mkinstalldirs $(DEST)/filesys; \
324     $(top_srcdir)/mkinstalldirs $(DEST)/filesys/incoming; \
325 segfault 1.1 fi
326 arthur2 1.17
327     install-doc:
328 guppy 1.21 @$(INSTALL_DATA) README $(DEST)
329 arthur2 1.17 @cd doc/; $(MAKE_INSTALL) install
330    
331     install-scripts:
332     @cd scripts/; $(MAKE_INSTALL) install
333    
334     install-end:
335 segfault 1.1 @echo
336 arthur2 1.17 @echo "Installation completed."
337 arthur2 1.18 @echo ""
338 arthur2 1.17 @echo "You MUST ensure that you edit/verify your configuration file."
339     @echo "'eggdrop.conf.dist' lists current options."
340 arthur2 1.18 @echo ""
341 arthur2 1.17 @echo "Remember to change directory to $(DEST) before you proceed."
342 arthur2 1.18 @echo ""
343 segfault 1.1
344     #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23