/[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.10 - (hide annotations) (download)
Mon Oct 4 21:25:43 1999 UTC (20 years, 3 months ago) by guppy
Branch: MAIN
Changes since 1.9: +26 -23 lines
ques5.tcl ... yay

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     @cd src/mod; ${MAKE} clean 'MAKE=${MAKE}'
66    
67 segfault 1.1 clean: cleanmods
68 guppy 1.10 @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 segfault 1.1
72 guppy 1.10 distclean: clean
73     @rm -f Makefile config.cache config.log config.status config.h lush.h
74     @rm -f `find . \( -name '*~' -o -name '*#' -o -name '*.orig' \
75     -o -name '*.rej' -o -name '*.bak' \) -print`
76 segfault 1.1
77 guppy 1.10 distrib: distclean Makefile.in
78     @rm -rf `find . \( -name "CVS" \) -print`
79 segfault 1.1 @echo "all:" >Makefile
80 poptix 1.2 @echo " @./configure; make" >>Makefile
81 segfault 1.1
82     eggdrop: modegg modules
83    
84     debugmem: memegg debmodules
85    
86     eggdrop.h:
87     @echo You do not have the eggdrop source!
88     @exit 1
89    
90 guppy 1.10 OBJS = botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o \
91     dccutil.o flags.o language.o main.o mem.o misc.o \
92     modules.o net.o rfc1459.o tcl.o tcldcc.o tclhash.o \
93     tclmisc.o tcluser.o userent.o userrec.o users.o md5/md5c.o
94 segfault 1.1
95     GMAKE_STATIC = ${MAKE} 'CC=${CC}' 'LD=${LD}' 'OBJS=${OBJS}'\
96     'STRIP=${MOD_STRIP}' 'CFLAGS=${CFLAGS} -DSTATIC' 'XLIBS=@TCL_LIBS@ @LIBS@'
97    
98     GMAKE_SHLIB = ${MAKE} 'CC=${SHLIB_CC}' 'LD=${SHLIB_LD}' \
99     'STRIP=${SHLIB_STRIP}' 'CFLAGS=${CFLAGS}'
100    
101     GMAKE_MOD = ${MAKE} 'CC=${MOD_CC}' 'LD=${MOD_LD}' 'OBJS=${OBJS}'\
102     'CFLAGS=${CFLAGS}' 'XREQ=${XREQ}' \
103     'TCLLIB=${TCLLIB}' 'STRIP=${MOD_STRIP}' 'RANLIB=@RANLIB@' \
104     'XLIBS=@TCL_LIBS@ @LIBS@'
105    
106 guppy 1.9 DMAKE_MEM = ${MAKE} 'CC=${MOD_CC}' 'LD=${MOD_LD}' \
107     'OBJS=${OBJS}' 'CFLAGS=-g3 ${CFLAGS} -DEBUG_MEM' 'XREQ=${XREQ}' \
108 segfault 1.1 'TCLLIB=${TCLLIB}' 'STRIP=touch' 'RANLIB=@RANLIB@' \
109     'XLIBS=@TCL_LIBS@ @LIBS@'
110    
111 segfault 1.4 DMAKE_SHLIB = ${MAKE} 'CC=${SHLIB_CC}' 'LD=${SHLIB_LD}' \
112 guppy 1.9 'STRIP=touch' 'CFLAGS=-g3 ${CFLAGS} -DEBUG_MEM'
113 segfault 1.1
114     static: eggtest
115     @echo ""
116     @echo "Making module objects for static linking..."
117     @echo ""
118     @rm -f src/main.o
119 guppy 1.10 @cd src/mod; ${GMAKE_STATIC} static
120 segfault 1.1 @echo ""
121     @echo "Making core eggdrop for static linking..."
122     @echo ""
123 guppy 1.10 @cd src; ${GMAKE_STATIC} static
124 segfault 1.1
125     modegg: modtest
126 guppy 1.10 @cd src; ${GMAKE_MOD} eggdrop
127 segfault 1.1 @echo
128     @./eggdrop -v
129     @ls -la eggdrop
130    
131     modules: modtest
132 guppy 1.10 @cd src/mod; ${GMAKE_SHLIB} modules
133 segfault 1.1 @echo
134     @echo "modules made:"
135     @ls -la *.so
136    
137     debmodules: modtest
138 guppy 1.10 @cd src/mod; ${DMAKE_SHLIB} modules
139 segfault 1.1 @echo
140     @echo "modules made:"
141     @ls -la *.so
142    
143     memegg: modtest
144 guppy 1.10 @cd src; ${DMAKE_MEM} eggdrop
145 segfault 1.1 @echo
146     @./eggdrop -v
147     @ls -la eggdrop
148    
149     eggtest:
150     @if [ -f EGGMOD.stamp ]; then \
151     echo You\'re trying to do a STATIC build of eggdrop when you\'ve;\
152     echo already run \'make\' for a module build.;\
153     echo You must first type \"make clean\" before you can build;\
154     echo a static version.;\
155     exit 1;\
156     fi
157     @date >EGGDROP.stamp
158    
159     modtest:
160     @if [ -f EGGDROP.stamp ]; then \
161     echo You\'re trying to do a MODULE build of eggdrop when you\'ve;\
162     echo already run \'make\' for a static build.;\
163     echo You must first type \"make clean\" before you can build;\
164     echo a module version.;\
165     exit 1;\
166     fi
167     @date >EGGMOD.stamp
168    
169     install: @DEFAULT_MAKE@ ainstall
170    
171     dinstall: eggdrop ainstall
172    
173     sinstall: static ainstall
174    
175     ainstall:
176     @if test X$(DEST) = X; then \
177     echo "You must specify a destination directory with DEST="; \
178     exit 1; \
179     fi
180     @if test ! -x eggdrop; then \
181     echo "You haven't compiled eggdrop yet."; \
182     exit 1; \
183     fi
184     @./eggdrop -v
185     @echo
186     @echo Installing in directory: $(DEST).
187     @echo
188     @if test ! -d $(DEST); then \
189     echo Creating directory: $(DEST).; \
190     mkdir $(DEST); \
191     fi
192     @$(CP1) README $(DEST)/
193     @$(CP1) eggdrop.conf.dist $(DEST)/
194     @if test ! -d $(DEST)/language; then \
195     echo Creating language subdirectory.; \
196     mkdir $(DEST)/language; \
197     fi
198     @$(CP2) language/* src/mod/*.mod/*.lang $(DEST)/language/
199     @if test -r $(DEST)/eggdrop; then \
200     rm -f $(DEST)/oeggdrop; \
201     fi
202     @if test ! -r $(DEST)/motd; then \
203 guppy 1.10 $(CP1) motd $(DEST)/; \
204     fi
205 guppy 1.8 @if test ! -r $(DEST)/telnet-banner; then \
206     $(CP1) telnet-banner $(DEST)/; \
207     fi
208 segfault 1.1 @if test -h $(DEST)/modules; then \
209     echo Removing symlink to archival modules directory.; \
210     rm -f $(DEST)/modules; \
211     fi
212     @if test -d $(DEST)/modules/; then \
213     echo Moving old modules into \'modules.old\' directory.; \
214     rm -rf $(DEST)/modules.old; \
215     mv -f $(DEST)/modules $(DEST)/modules.old; \
216     fi
217     @if test ! -d $(DEST)/modules\-${NEWVERSION}/; then \
218     echo Creating modules\-${NEWVERSION} directory and symlink.; \
219     mkdir $(DEST)/modules\-${NEWVERSION}; \
220     fi
221     @$(LN_S) modules\-${NEWVERSION} $(DEST)/modules
222     @if test -r assoc.so; then \
223     echo Copying new modules.; \
224     $(CP3) *.so $(DEST)/modules/; \
225     fi
226     @if test -h $(DEST)/eggdrop; then \
227     echo Removing symlink to archival eggdrop binary.; \
228     rm -f $(DEST)/eggdrop; \
229     fi
230     @if test -r $(DEST)/eggdrop; then \
231     echo Renamed the old \'eggdrop\' executable to \'oeggdrop\'.; \
232     mv -f $(DEST)/eggdrop $(DEST)/oeggdrop; \
233     fi
234     @echo Copying new \'eggdrop\' executable and creating symlink.
235     @$(CP1) eggdrop $(DEST)/eggdrop\-${NEWVERSION}
236     @$(LN_S) eggdrop\-${NEWVERSION} $(DEST)/eggdrop
237     @if test ! -d $(DEST)/doc; then \
238     echo Creating \'doc\' subdirectory.; \
239     mkdir $(DEST)/doc; \
240     fi
241     @echo Copying \'doc\' files.
242     @$(CP2) doc/* $(DEST)/doc/
243     @if test ! -d $(DEST)/help; then \
244     echo Creating \'help\' subdirectory.; \
245     mkdir $(DEST)/help; \
246     fi
247     @$(CP2) help/* $(DEST)/help/
248     @if test ! -d $(DEST)/filesys; then \
249     echo Creating a skeletal \'filesys\' subdirectory.; \
250     mkdir $(DEST)/filesys; \
251     mkdir $(DEST)/filesys/incoming; \
252     fi
253     @if test ! -d $(DEST)/scripts; then \
254     echo Creating a \'scripts\' subdirectory.; \
255     mkdir $(DEST)/scripts; \
256     echo Copying scripts.; \
257     $(CP2) scripts/* $(DEST)/scripts; \
258     fi
259     @echo
260 guppy 1.10 @${MAKE} REALDEST=`cd $(DEST); pwd` install2
261 segfault 1.1 @echo
262     @echo Installation completed.
263     @echo You MUST ensure that you edit/verify your configuration file.
264     @echo \'eggdrop.conf.dist\' lists current options.
265     @echo Remember to change directory to $(DEST) before you proceed.
266    
267     install2:
268     @echo Installing mods -- DEST = $(REALDEST)
269 guppy 1.10 @cd src/mod; ${MAKE} REALDEST=$(REALDEST) install CP1='${CP1}'; cd ../..
270 segfault 1.1
271     #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23