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

Annotation of /eggdrop1.6/Makefile.in

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


Revision 1.8 - (hide annotations) (download)
Wed Nov 10 21:34:59 1999 UTC (19 years, 6 months ago) by fabian
Branch: MAIN
Changes since 1.7: +55 -40 lines
Resync with 1.4

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23