/[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.25 - (hide annotations) (download)
Tue Oct 26 08:08:37 1999 UTC (21 years, 4 months ago) by arthur2
Branch: MAIN
Changes since 1.24: +10 -9 lines
putlog-misc

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    
8 segfault 1.1 prefix = @prefix@
9 guppy 1.15 DEST = @DEST@
10 arthur2 1.17 EGGEXEC = @EGGEXEC@
11 guppy 1.20 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 guppy 1.24 # this can now be set by using 'make debug'
18 guppy 1.14 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 guppy 1.15 # btw to turn STRIP off, do 'STRIP = touch' not 'STRIP ='
23 segfault 1.1
24 arthur2 1.17 # defaults
25 guppy 1.15 CC = @CC@
26     LD = @CC@
27 arthur2 1.17 STRIP = @STRIP@
28     RANLIB = @RANLIB@
29 segfault 1.1
30 arthur2 1.17 # make eggmod
31     MOD_CC = @MOD_CC@
32     MOD_LD = @MOD_LD@
33     MOD_STRIP = @MOD_STRIP@
34 segfault 1.1
35 arthur2 1.17 # make modules
36 segfault 1.1 SHLIB_CC = @SHLIB_CC@
37 guppy 1.15 SHLIB_LD = @SHLIB_LD@
38 segfault 1.1 SHLIB_STRIP = @SHLIB_STRIP@
39    
40 arthur2 1.17 # programs make install uses
41 guppy 1.15 LN_S = @LN_S@
42 arthur2 1.17 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 arthur2 1.25 XREQS = @TCL_REQS@
54     XLIBS = @TCL_LIBS@ @LIBS@
55 segfault 1.1 TCLLIB = @TCLLIB@
56 guppy 1.24 TCLLIBFN = @TCLLIBFN@
57 arthur2 1.17
58     CFLAGS = @CFLAGS@ -I.. @DEFS@ $(CFLGS)
59 segfault 1.1 @SET_MAKE@
60    
61 arthur2 1.17 MAKE_STATIC = $(MAKE) 'CC=$(CC)' 'LD=$(LD)' 'STRIP=$(STRIP)' \
62 guppy 1.24 'RANLIB=$(RANLIB)' 'CFLAGS=$(CFLAGS) -DSTATIC' \
63     'CPPFLAGS=$(CPPFLAGS)' 'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
64 arthur2 1.25 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)'
65 arthur2 1.17
66     MAKE_MODEGG = $(MAKE) 'CC=$(MOD_CC)' 'LD=$(MOD_LD)' 'STRIP=$(MOD_STRIP)' \
67 guppy 1.24 'RANLIB=$(RANLIB)' 'CFLAGS=$(CFLAGS)' \
68     'CPPFLAGS=$(CPPFLAGS)' 'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
69 arthur2 1.25 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)'
70 arthur2 1.17
71     MAKE_MODULES = $(MAKE) 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
72 guppy 1.21 'STRIP=$(SHLIB_STRIP)' 'CFLAGS=$(CFLAGS)' 'CPPFLAGS=$(CPPFLAGS)'
73 arthur2 1.17
74     MAKE_SDEBUG = $(MAKE) 'CC=$(CC)' 'LD=$(LD)' 'STRIP=touch' \
75     'RANLIB=$(RANLIB)' 'CFLAGS=-g3 $(CFLAGS) -DSTATIC -DEBUG_MEM' \
76 guppy 1.21 'CPPFLAGS=$(CPPFLAGS)' 'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
77 arthur2 1.25 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)'
78 arthur2 1.17
79     MAKE_MEMEGG = $(MAKE) 'CC=$(MOD_CC)' 'LD=$(MOD_LD)' 'STRIP=touch' \
80     'RANLIB=$(RANLIB)' 'CFLAGS=-g3 $(CFLAGS) -DEBUG_MEM' \
81 guppy 1.21 'CPPFLAGS=$(CPPFLAGS)' 'EGGEXEC=$(EGGEXEC)' 'TCLLIB=$(TCLLIB)' \
82 arthur2 1.25 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)'
83 arthur2 1.17
84     MAKE_DEBMODULES = $(MAKE) 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
85 guppy 1.21 'STRIP=touch' 'CFLAGS=-g3 $(CFLAGS) -DEBUG_MEM' 'CPPFLAGS=$(CPPFLAGS)'
86 arthur2 1.17
87 guppy 1.19 MAKE_INSTALL = $(MAKE) 'DEST=$(DEST)'
88 arthur2 1.17
89     all: @DEFAULT_MAKE@
90    
91     clean:
92     @rm -f $(EGGEXEC) *.so *.stamp core DEBUG *~
93 guppy 1.22 @cd doc; $(MAKE) clean
94 guppy 1.23 @cd scripts; $(MAKE) clean
95 arthur2 1.17 @cd src; $(MAKE) clean
96     @cd src/md5; $(MAKE) clean
97     @cd src/mod; $(MAKE) clean
98 segfault 1.1
99 guppy 1.12 distclean: clean
100 guppy 1.20 @rm -f Makefile doc/Makefile scripts/Makefile src/Makefile src/md5/Makefile src/mod/Makefile
101 guppy 1.19 @rm -f config.cache config.log config.status config.h lush.h
102 arthur2 1.17
103 guppy 1.22 distrib: distclean
104 guppy 1.12 @rm -f `find . \( -name '*~' -o -name '*#' -o -name '*.orig' \
105     -o -name '*.rej' -o -name '*.bak' \) -print`
106 arthur2 1.25 @rm -rf `find . \( -name 'CVS' \) -print`
107 guppy 1.12 @(echo "all:"; \
108 arthur2 1.18 echo " @echo \"\""; \
109 guppy 1.12 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 arthur2 1.17 modegg: modtest
118     @cd src; $(MAKE_MODEGG) modegg
119     @echo ""
120     @./$(EGGEXEC) -v
121     @ls -l $(EGGEXEC)
122 segfault 1.1
123 arthur2 1.17 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 arthur2 1.17 @cd src/mod; $(MAKE_STATIC) static
134 segfault 1.1 @echo ""
135     @echo "Making core eggdrop for static linking..."
136     @echo ""
137 arthur2 1.17 @cd src; $(MAKE_STATIC) static
138 arthur2 1.18 @echo ""
139 arthur2 1.17 @./$(EGGEXEC) -v
140     @ls -l $(EGGEXEC)
141    
142 arthur2 1.25 debug: debegg debmodules
143 segfault 1.1
144 arthur2 1.25 debegg: modtest
145     @cd src; $(MAKE_MEMEGG) debegg
146 arthur2 1.17 @echo ""
147     @./$(EGGEXEC) -v
148     @ls -l $(EGGEXEC)
149 segfault 1.1
150 arthur2 1.17 debmodules: modtest
151     @cd src/mod; $(MAKE_DEBMODULES) modules
152     @echo ""
153 segfault 1.1 @echo "modules made:"
154 arthur2 1.17 @ls -l *.so
155 segfault 1.1
156 arthur2 1.17 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 arthur2 1.18 @echo ""
166 arthur2 1.17 @./$(EGGEXEC) -v
167     @ls -l $(EGGEXEC)
168 segfault 1.1
169     eggtest:
170     @if [ -f EGGMOD.stamp ]; then \
171 arthur2 1.17 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 arthur2 1.17 @echo "stamp" >EGGDROP.stamp
178 segfault 1.1
179     modtest:
180     @if [ -f EGGDROP.stamp ]; then \
181 arthur2 1.17 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 arthur2 1.17 @echo "stamp" >EGGMOD.stamp
188 segfault 1.1
189 guppy 1.20 install: ainstall
190 segfault 1.1
191     dinstall: eggdrop ainstall
192    
193     sinstall: static ainstall
194    
195 arthur2 1.17 ainstall: install-start install-bin install-modules install-data \
196 guppy 1.21 install-help install-language install-filesys install-doc \
197     install-scripts install-end
198 arthur2 1.17
199     install-start:
200 guppy 1.20 @if test ! -f $(EGGEXEC); then \
201 guppy 1.21 echo ""; \
202 guppy 1.20 echo "You haven't compiled eggdrop yet."; \
203 guppy 1.21 echo "To compile eggdrop use:"; \
204     echo " make <target>"; \
205     echo ""; \
206     echo " valid targets: eggdrop static debug sdebug"; \
207     echo ""; \
208 guppy 1.20 exit 1; \
209     fi
210 arthur2 1.17 @if test "x$(DEST)" = "x"; then \
211 segfault 1.1 echo "You must specify a destination directory with DEST="; \
212     exit 1; \
213     fi
214 arthur2 1.18 @echo ""
215 arthur2 1.17 @./$(EGGEXEC) -v
216 segfault 1.1 @echo
217 arthur2 1.17 @echo "Installing in directory: '$(DEST)'."
218 segfault 1.1 @echo
219     @if test ! -d $(DEST); then \
220 arthur2 1.17 echo "Creating directory: $(DEST)."; \
221     $(INSTALL) -d $(DEST); \
222 segfault 1.1 fi
223 arthur2 1.17
224     install-bin:
225     @if test -f $(DEST)/$(EGGEXEC); then \
226     rm -f $(DEST)/o$(EGGEXEC); \
227 segfault 1.1 fi
228 arthur2 1.17 @if test -h $(DEST)/$(EGGEXEC); then \
229     echo "Removing symlink to archival eggdrop binary."; \
230     rm -f $(DEST)/$(EGGEXEC); \
231 guppy 1.12 fi
232 arthur2 1.17 @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 guppy 1.8 fi
236 arthur2 1.17 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
237 guppy 1.20 @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(EGGVERSION)
238     @(cd $(DEST) && $(LN_S) $(EGGEXEC)-$(EGGVERSION) $(EGGEXEC))
239 arthur2 1.17
240     install-modules:
241 segfault 1.1 @if test -h $(DEST)/modules; then \
242 arthur2 1.17 echo "Removing symlink to archival modules directory."; \
243 segfault 1.1 rm -f $(DEST)/modules; \
244     fi
245 arthur2 1.17 @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 arthur2 1.17 @if test ! "x`echo *.so`" = "x*.so"; then \
251 guppy 1.20 if test ! -d $(DEST)/modules-$(EGGVERSION); then \
252     echo "Creating modules-$(EGGVERSION) directory and symlink."; \
253     $(INSTALL) -d $(DEST)/modules-$(EGGVERSION); \
254 arthur2 1.17 fi; \
255 guppy 1.20 (cd $(DEST) && $(LN_S) modules-$(EGGVERSION) modules); \
256 arthur2 1.17 echo "Copying new modules."; \
257     for i in *.so; do \
258 guppy 1.20 $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(EGGVERSION)/; \
259 arthur2 1.17 done; \
260 segfault 1.1 fi
261 arthur2 1.17
262     install-data:
263     @$(INSTALL_DATA) eggdrop.conf.dist $(DEST)
264     @if test ! -f $(DEST)/motd; then \
265     $(INSTALL_DATA) motd $(DEST); \
266     fi
267     @if test ! -f $(DEST)/telnet-banner; then \
268     $(INSTALL_DATA) telnet-banner $(DEST); \
269     fi
270    
271     install-help:
272 guppy 1.19 @echo "Copying help files."
273 arthur2 1.17 @if test ! "x`echo help/*.help`" = "xhelp/*.help"; then \
274     if test ! -d $(DEST)/help; then \
275     echo "Creating 'help' subdirectory."; \
276     $(INSTALL) -d $(DEST)/help; \
277     fi; \
278     for i in help/*.help; do \
279     $(INSTALL_DATA) $$i $(DEST)/help/; \
280     done; \
281     fi
282     @if test ! "x`echo help/msg/*.help`" = "xhelp/msg/*.help"; then \
283     if test ! -d $(DEST)/help/msg; then \
284     echo "Creating 'help/msg' subdirectory."; \
285     $(INSTALL) -d $(DEST)/help/msg; \
286     fi; \
287     for i in help/msg/*.help; do \
288     $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
289     done; \
290     fi
291     @if test ! "x`echo help/set/*.help`" = "xhelp/set/*.help"; then \
292     if test ! -d $(DEST)/help/set; then \
293     echo "Creating 'help/set' subdirectory."; \
294     $(INSTALL) -d $(DEST)/help/set; \
295     fi; \
296     for i in help/set/*.help; do \
297     $(INSTALL_DATA) $$i $(DEST)/help/set/; \
298     done; \
299     fi
300     @cd src/mod/; $(MAKE_INSTALL) install-help
301 guppy 1.19
302     install-language:
303     @echo "Copying language files."
304     @if test ! "x`echo language/*.lang`" = "xlanguage/*.lang"; then \
305     if test ! -d $(DEST)/language; then \
306     echo "Creating 'language' subdirectory."; \
307     $(INSTALL) -d $(DEST)/language; \
308     fi; \
309     for i in language/*.lang; do \
310     $(INSTALL_DATA) $$i $(DEST)/language/; \
311     done; \
312     fi
313     @cd src/mod/; $(MAKE_INSTALL) install-language
314 arthur2 1.17
315     install-filesys:
316 segfault 1.1 @if test ! -d $(DEST)/filesys; then \
317 arthur2 1.17 echo "Creating a skeletal filesys subdirectory."; \
318     $(INSTALL) -d $(DEST)/filesys; \
319     $(INSTALL) -d $(DEST)/filesys/incoming; \
320 segfault 1.1 fi
321 arthur2 1.17
322     install-doc:
323 guppy 1.21 @$(INSTALL_DATA) README $(DEST)
324 arthur2 1.17 @cd doc/; $(MAKE_INSTALL) install
325    
326     install-scripts:
327     @cd scripts/; $(MAKE_INSTALL) install
328    
329     install-end:
330 segfault 1.1 @echo
331 arthur2 1.17 @echo "Installation completed."
332 arthur2 1.18 @echo ""
333 arthur2 1.17 @echo "You MUST ensure that you edit/verify your configuration file."
334     @echo "'eggdrop.conf.dist' lists current options."
335 arthur2 1.18 @echo ""
336 arthur2 1.17 @echo "Remember to change directory to $(DEST) before you proceed."
337 arthur2 1.18 @echo ""
338 segfault 1.1
339     #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23