/[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.11 - (hide annotations) (download)
Tue Dec 14 22:39:43 1999 UTC (19 years, 6 months ago) by fabian
Branch: MAIN
Changes since 1.10: +5 -2 lines
toth's patch-assert

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23