/[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.1 - (hide annotations) (download)
Mon Sep 13 14:18:32 1999 UTC (19 years, 9 months ago) by segfault
Branch: MAIN
Initial stuff (.29 cvs)

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23