/[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.7 - (hide annotations) (download)
Tue Oct 26 21:38:35 1999 UTC (19 years, 11 months ago) by fabian
Branch: MAIN
Changes since 1.6: +10 -9 lines
resync 940380771-940924890

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23