/[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.6 - (hide annotations) (download)
Thu Oct 21 19:22:58 1999 UTC (20 years ago) by fabian
Branch: MAIN
Changes since 1.5: +243 -182 lines
resync with 1.3 tree, 939863113-940380771

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23