/[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.27 - (hide annotations) (download)
Mon Nov 1 17:00:59 1999 UTC (20 years, 2 months ago) by guppy
Branch: MAIN
Changes since 1.26: +17 -20 lines
blah last patches I hope

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23