/[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.12 - (hide annotations) (download)
Tue Dec 21 17:35:01 1999 UTC (19 years, 5 months ago) by fabian
Branch: MAIN
CVS Tags: eggdrop105020
Changes since 1.11: +1 -0 lines
Tothwolf's id-header

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23