/[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.13 - (hide annotations) (download)
Thu Oct 7 17:34:03 1999 UTC (20 years, 3 months ago) by arthur2
Branch: MAIN
Changes since 1.12: +1 -0 lines
configure_tcl-more-changes.diff

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     prefix = @prefix@
7     DEST=@DEST@
8     NEWVERSION=`grep 'char egg_version' src/main.c | awk '{print $4}' | sed s/\"//g | sed s/\;// | sed s/.\*=\ //`
9    
10     SHELL=/bin/sh
11    
12     # things you can put here:
13     # -Wall if you're using gcc and it supports it (configure
14     # usually detects this anyway now)
15     # -DEBUG_MEM to be able to debug memory allocation (.debug)
16     # this can now be set by using 'make debugmem'
17     CFLGS = -DRFC_COMPLIANT
18    
19     # configure SHOULD set these...you may need to tweak them to get modules
20     # to compile .. if you do...let the devel-team know the working settings
21     # btw to turn STRIP off, do STRIP=touch not STRIP=
22    
23     CC=@CC@
24     LD=@CC@
25    
26     #making eggmod
27     MOD_CC = @BEL_MOD_CC@
28     MOD_LD = @BEL_MOD_LD@
29     MOD_STRIP = @BEL_MOD_STRIP@
30     DLFLAGS= @DLFLAGS@
31    
32     #making modules
33     SHLIB_CC = @SHLIB_CC@
34     SHLIB_LD = @SHLIB_LD@
35     SHLIB_STRIP = @SHLIB_STRIP@
36    
37     # configure SHOULD set these properly if not, modify them appropriately
38     # these are the cp commands that make install uses
39     CP1 = @CP1@
40     CP2 = @CP2@
41     CP3 = @CP3@
42    
43     # With any luck this won't burst into flames or cause sterility
44     LN_S = ln -s
45    
46     # STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP #
47     # - - - - - - - - do not edit anything below this line. - - - - - - - - #
48     # - - - - - - - - - it's all done by configure now. - - - - - - - - - #
49     # STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP #
50    
51    
52     # stuff for Tcl
53     XREQ = @TCL_REQS@
54     TCLLIB = @TCLLIB@
55     CFLAGS = -c @CFLAGS@ -I.. @DEFS@ ${CFLGS}
56     @SET_MAKE@
57    
58     all: @DEFAULT_MAKE@
59    
60     help:
61     @echo "To make eggdrop :"
62     @echo " % make "
63    
64 guppy 1.10 cleanmods:
65 guppy 1.12 @cd src/mod; ${MAKE} clean 'MAKE=${MAKE}'
66 guppy 1.10
67 guppy 1.12 clean: cleanmods
68     @rm -f eggdrop egg core DEBUG *.o *.a *.so *.stamp
69     @cd src; rm -f eggdrop egg core DEBUG *.o *.a
70     @cd src/md5; ${MAKE} clean
71    
72     distclean: clean
73 guppy 1.10 @rm -f Makefile config.cache config.log config.status config.h lush.h
74 arthur2 1.13 @rm -f basename.tmp dirname.tmp
75 guppy 1.12 @rm -f `find . \( -name '*~' -o -name '*#' -o -name '*.orig' \
76     -o -name '*.rej' -o -name '*.bak' \) -print`
77    
78     distrib: distclean Makefile.in
79     @rm -rf `find . \( -name "CVS" \) -print`
80     @(echo "all:"; \
81     echo " @echo \"\""; \
82     echo " @echo \"Before you can compile your bot you have to configure it.\""; \
83     echo " @echo \"So please start the configure script now:\""; \
84     echo " @echo \"\""; \
85     echo " @echo \" % ./configure\""; \
86     echo " @echo \"\""; ) > Makefile
87 segfault 1.1
88     eggdrop: modegg modules
89    
90     debugmem: memegg debmodules
91    
92     eggdrop.h:
93     @echo You do not have the eggdrop source!
94     @exit 1
95    
96 guppy 1.12 OBJS = botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o \
97     dccutil.o flags.o language.o main.o mem.o misc.o \
98     modules.o net.o rfc1459.o tcl.o tcldcc.o tclhash.o \
99     tclmisc.o tcluser.o userent.o userrec.o users.o md5/md5c.o
100 segfault 1.1
101     GMAKE_STATIC = ${MAKE} 'CC=${CC}' 'LD=${LD}' 'OBJS=${OBJS}'\
102     'STRIP=${MOD_STRIP}' 'CFLAGS=${CFLAGS} -DSTATIC' 'XLIBS=@TCL_LIBS@ @LIBS@'
103    
104     GMAKE_SHLIB = ${MAKE} 'CC=${SHLIB_CC}' 'LD=${SHLIB_LD}' \
105     'STRIP=${SHLIB_STRIP}' 'CFLAGS=${CFLAGS}'
106    
107     GMAKE_MOD = ${MAKE} 'CC=${MOD_CC}' 'LD=${MOD_LD}' 'OBJS=${OBJS}'\
108     'CFLAGS=${CFLAGS}' 'XREQ=${XREQ}' \
109     'TCLLIB=${TCLLIB}' 'STRIP=${MOD_STRIP}' 'RANLIB=@RANLIB@' \
110     'XLIBS=@TCL_LIBS@ @LIBS@'
111    
112 guppy 1.9 DMAKE_MEM = ${MAKE} 'CC=${MOD_CC}' 'LD=${MOD_LD}' \
113     'OBJS=${OBJS}' 'CFLAGS=-g3 ${CFLAGS} -DEBUG_MEM' 'XREQ=${XREQ}' \
114 segfault 1.1 'TCLLIB=${TCLLIB}' 'STRIP=touch' 'RANLIB=@RANLIB@' \
115     'XLIBS=@TCL_LIBS@ @LIBS@'
116    
117 segfault 1.4 DMAKE_SHLIB = ${MAKE} 'CC=${SHLIB_CC}' 'LD=${SHLIB_LD}' \
118 guppy 1.9 'STRIP=touch' 'CFLAGS=-g3 ${CFLAGS} -DEBUG_MEM'
119 segfault 1.1
120     static: eggtest
121     @echo ""
122     @echo "Making module objects for static linking..."
123     @echo ""
124     @rm -f src/main.o
125 guppy 1.12 @cd src/mod; ${GMAKE_STATIC} static
126 segfault 1.1 @echo ""
127     @echo "Making core eggdrop for static linking..."
128     @echo ""
129 guppy 1.12 @cd src; ${GMAKE_STATIC} static
130 segfault 1.1
131     modegg: modtest
132 guppy 1.12 @cd src; ${GMAKE_MOD} eggdrop
133 segfault 1.1 @echo
134     @./eggdrop -v
135     @ls -la eggdrop
136    
137     modules: modtest
138 guppy 1.12 @cd src/mod; ${GMAKE_SHLIB} modules
139 segfault 1.1 @echo
140     @echo "modules made:"
141     @ls -la *.so
142    
143     debmodules: modtest
144 guppy 1.12 @cd src/mod; ${DMAKE_SHLIB} modules
145 segfault 1.1 @echo
146     @echo "modules made:"
147     @ls -la *.so
148    
149     memegg: modtest
150 guppy 1.12 @cd src; ${DMAKE_MEM} eggdrop
151 segfault 1.1 @echo
152     @./eggdrop -v
153     @ls -la eggdrop
154    
155     eggtest:
156     @if [ -f EGGMOD.stamp ]; then \
157     echo You\'re trying to do a STATIC build of eggdrop when you\'ve;\
158     echo already run \'make\' for a module build.;\
159     echo You must first type \"make clean\" before you can build;\
160     echo a static version.;\
161     exit 1;\
162     fi
163     @date >EGGDROP.stamp
164    
165     modtest:
166     @if [ -f EGGDROP.stamp ]; then \
167     echo You\'re trying to do a MODULE build of eggdrop when you\'ve;\
168     echo already run \'make\' for a static build.;\
169     echo You must first type \"make clean\" before you can build;\
170     echo a module version.;\
171     exit 1;\
172     fi
173     @date >EGGMOD.stamp
174    
175     install: @DEFAULT_MAKE@ ainstall
176    
177     dinstall: eggdrop ainstall
178    
179     sinstall: static ainstall
180    
181     ainstall:
182     @if test X$(DEST) = X; then \
183     echo "You must specify a destination directory with DEST="; \
184     exit 1; \
185     fi
186     @if test ! -x eggdrop; then \
187     echo "You haven't compiled eggdrop yet."; \
188     exit 1; \
189     fi
190     @./eggdrop -v
191     @echo
192     @echo Installing in directory: $(DEST).
193     @echo
194     @if test ! -d $(DEST); then \
195     echo Creating directory: $(DEST).; \
196     mkdir $(DEST); \
197     fi
198     @$(CP1) README $(DEST)/
199     @$(CP1) eggdrop.conf.dist $(DEST)/
200     @if test ! -d $(DEST)/language; then \
201     echo Creating language subdirectory.; \
202     mkdir $(DEST)/language; \
203     fi
204     @$(CP2) language/* src/mod/*.mod/*.lang $(DEST)/language/
205     @if test -r $(DEST)/eggdrop; then \
206     rm -f $(DEST)/oeggdrop; \
207     fi
208     @if test ! -r $(DEST)/motd; then \
209 guppy 1.12 $(CP1) motd $(DEST)/; \
210     fi
211 guppy 1.8 @if test ! -r $(DEST)/telnet-banner; then \
212     $(CP1) telnet-banner $(DEST)/; \
213     fi
214 segfault 1.1 @if test -h $(DEST)/modules; then \
215     echo Removing symlink to archival modules directory.; \
216     rm -f $(DEST)/modules; \
217     fi
218     @if test -d $(DEST)/modules/; then \
219     echo Moving old modules into \'modules.old\' directory.; \
220     rm -rf $(DEST)/modules.old; \
221     mv -f $(DEST)/modules $(DEST)/modules.old; \
222     fi
223     @if test ! -d $(DEST)/modules\-${NEWVERSION}/; then \
224     echo Creating modules\-${NEWVERSION} directory and symlink.; \
225     mkdir $(DEST)/modules\-${NEWVERSION}; \
226     fi
227     @$(LN_S) modules\-${NEWVERSION} $(DEST)/modules
228     @if test -r assoc.so; then \
229     echo Copying new modules.; \
230     $(CP3) *.so $(DEST)/modules/; \
231     fi
232     @if test -h $(DEST)/eggdrop; then \
233     echo Removing symlink to archival eggdrop binary.; \
234     rm -f $(DEST)/eggdrop; \
235     fi
236     @if test -r $(DEST)/eggdrop; then \
237     echo Renamed the old \'eggdrop\' executable to \'oeggdrop\'.; \
238     mv -f $(DEST)/eggdrop $(DEST)/oeggdrop; \
239     fi
240     @echo Copying new \'eggdrop\' executable and creating symlink.
241     @$(CP1) eggdrop $(DEST)/eggdrop\-${NEWVERSION}
242     @$(LN_S) eggdrop\-${NEWVERSION} $(DEST)/eggdrop
243     @if test ! -d $(DEST)/doc; then \
244     echo Creating \'doc\' subdirectory.; \
245     mkdir $(DEST)/doc; \
246     fi
247     @echo Copying \'doc\' files.
248     @$(CP2) doc/* $(DEST)/doc/
249     @if test ! -d $(DEST)/help; then \
250     echo Creating \'help\' subdirectory.; \
251     mkdir $(DEST)/help; \
252     fi
253     @$(CP2) help/* $(DEST)/help/
254     @if test ! -d $(DEST)/filesys; then \
255     echo Creating a skeletal \'filesys\' subdirectory.; \
256     mkdir $(DEST)/filesys; \
257     mkdir $(DEST)/filesys/incoming; \
258     fi
259     @if test ! -d $(DEST)/scripts; then \
260     echo Creating a \'scripts\' subdirectory.; \
261     mkdir $(DEST)/scripts; \
262     echo Copying scripts.; \
263     $(CP2) scripts/* $(DEST)/scripts; \
264     fi
265     @echo
266 guppy 1.12 @${MAKE} REALDEST=`cd $(DEST); pwd` install2
267 segfault 1.1 @echo
268     @echo Installation completed.
269     @echo You MUST ensure that you edit/verify your configuration file.
270     @echo \'eggdrop.conf.dist\' lists current options.
271     @echo Remember to change directory to $(DEST) before you proceed.
272    
273     install2:
274     @echo Installing mods -- DEST = $(REALDEST)
275 guppy 1.12 @cd src/mod; ${MAKE} REALDEST=$(REALDEST) install CP1='${CP1}'; cd ../..
276 segfault 1.1
277     #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23