/[cvs]/eggdrop1.6/Makefile
ViewVC logotype

Contents of /eggdrop1.6/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Mon Oct 11 16:20:30 1999 UTC (20 years, 1 month ago) by fabian
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +0 -0 lines
FILE REMOVED
This shouldn't have happened... *grrr*

1 # Generated automatically from Makefile.in by configure.
2 #
3 # This is the Makefile for EGGDROP (the irc bot)
4 # You should never need to edit this.
5 #
6
7 prefix = /home/_fabian/egg1.4cvs
8 DEST = ${prefix}
9 NEWVERSION = `grep 'char egg_version' src/main.c | mawk '{gsub(/(\"|\;)/, "", $$4); print $$4}'`
10
11 SHELL = /bin/sh
12
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 # this can now be set by using 'make debugmem'
18 CFLGS =
19
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 # btw to turn STRIP off, do 'STRIP = touch' not 'STRIP ='
23
24 CC = gcc
25 LD = gcc
26
27 #making eggmod
28 MOD_CC = gcc
29 MOD_LD = gcc
30 MOD_STRIP = strip
31 DLFLAGS =
32
33 #making modules
34 SHLIB_CC = gcc
35 SHLIB_LD = gcc -shared -nostartfiles
36 SHLIB_STRIP = strip
37
38 # configure SHOULD set these properly if not, modify them appropriately
39 # these are the cp commands that make install uses
40 CP1 = cp -f
41 CP2 = cp -rf
42 CP3 = cp -pf
43
44 # With any luck this won't burst into flames or cause sterility
45 LN_S = ln -s
46
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
53 # stuff for Tcl
54 XREQ = /usr/lib/libtcl8.2.so
55 TCLLIB = /usr/lib
56 CFLAGS = -c -g -O2 -Wall -I.. -DHAVE_CONFIG_H ${CFLGS}
57
58
59 all: debugmem
60
61 help:
62 @echo "To make eggdrop :"
63 @echo " % make "
64
65 cleanmods:
66 @cd src/mod; ${MAKE} clean 'MAKE=${MAKE}'
67
68 clean: cleanmods
69 @rm -f eggdrop egg core DEBUG *.o *.a *.so *.stamp
70 @cd src; rm -f eggdrop egg core DEBUG *.o *.a
71 @cd src/md5; ${MAKE} clean
72
73 distclean: clean
74 @rm -f Makefile config.cache config.log config.status config.h lush.h
75 @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
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 OBJS = botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o \
97 dccutil.o dns.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
101 GMAKE_STATIC = ${MAKE} 'CC=${CC}' 'LD=${LD}' 'OBJS=${OBJS}' \
102 'STRIP=${MOD_STRIP}' 'CFLAGS=${CFLAGS} -DSTATIC' 'XLIBS=-L/usr/lib -ltcl8.2 -lm -ldl -lnsl ' \
103 'RESLIB=-lresolv'
104
105 GMAKE_SHLIB = ${MAKE} 'CC=${SHLIB_CC}' 'LD=${SHLIB_LD}' \
106 'STRIP=${SHLIB_STRIP}' 'CFLAGS=${CFLAGS}' 'RESLIB=-lresolv'
107
108 GMAKE_MOD = ${MAKE} 'CC=${MOD_CC}' 'LD=${MOD_LD}' 'OBJS=${OBJS}'\
109 'CFLAGS=${CFLAGS}' 'XREQ=${XREQ}' \
110 'TCLLIB=${TCLLIB}' 'STRIP=${MOD_STRIP}' 'RANLIB=ranlib' \
111 'XLIBS=-L/usr/lib -ltcl8.2 -lm -ldl -lnsl '
112
113 DMAKE_MEM = ${MAKE} 'CC=${MOD_CC}' 'LD=${MOD_LD}' \
114 'OBJS=${OBJS}' 'CFLAGS=-g3 ${CFLAGS} -DEBUG_MEM' 'XREQ=${XREQ}' \
115 'TCLLIB=${TCLLIB}' 'STRIP=touch' 'RANLIB=ranlib' \
116 'XLIBS=-L/usr/lib -ltcl8.2 -lm -ldl -lnsl '
117
118 DMAKE_SHLIB = ${MAKE} 'CC=${SHLIB_CC}' 'LD=${SHLIB_LD}' \
119 'STRIP=touch' 'CFLAGS=-g3 ${CFLAGS} -DEBUG_MEM' 'RESLIB=-lresolv'
120
121 static: eggtest
122 @echo ""
123 @echo "Making module objects for static linking..."
124 @echo ""
125 @rm -f src/main.o
126 @cd src/mod; ${GMAKE_STATIC} static
127 @echo ""
128 @echo "Making core eggdrop for static linking..."
129 @echo ""
130 @cd src; ${GMAKE_STATIC} static
131
132 modegg: modtest
133 @cd src; ${GMAKE_MOD} eggdrop
134 @echo
135 @./eggdrop -v
136 @ls -la eggdrop
137
138 modules: modtest
139 @cd src/mod; ${GMAKE_SHLIB} modules
140 @echo
141 @echo "modules made:"
142 @ls -la *.so
143
144 debmodules: modtest
145 @cd src/mod; ${DMAKE_SHLIB} modules
146 @echo
147 @echo "modules made:"
148 @ls -la *.so
149
150 memegg: modtest
151 @cd src; ${DMAKE_MEM} eggdrop
152 @echo
153 @./eggdrop -v
154 @ls -la eggdrop
155
156 eggtest:
157 @if [ -f EGGMOD.stamp ]; then \
158 echo You\'re trying to do a STATIC build of eggdrop when you\'ve;\
159 echo already run \'make\' for a module build.;\
160 echo You must first type \"make clean\" before you can build;\
161 echo a static version.;\
162 exit 1;\
163 fi
164 @date >EGGDROP.stamp
165
166 modtest:
167 @if [ -f EGGDROP.stamp ]; then \
168 echo You\'re trying to do a MODULE build of eggdrop when you\'ve;\
169 echo already run \'make\' for a static build.;\
170 echo You must first type \"make clean\" before you can build;\
171 echo a module version.;\
172 exit 1;\
173 fi
174 @date >EGGMOD.stamp
175
176 install: debugmem ainstall
177
178 dinstall: eggdrop ainstall
179
180 sinstall: static ainstall
181
182 ainstall:
183 @if test X$(DEST) = X; then \
184 echo "You must specify a destination directory with DEST="; \
185 exit 1; \
186 fi
187 @if test ! -f eggdrop; then \
188 echo "You haven't compiled eggdrop yet."; \
189 exit 1; \
190 fi
191 @./eggdrop -v
192 @echo
193 @echo Installing in directory: $(DEST).
194 @echo
195 @if test ! -d $(DEST); then \
196 echo Creating directory: $(DEST).; \
197 mkdir $(DEST); \
198 fi
199 @$(CP1) README $(DEST)/
200 @$(CP1) eggdrop.conf.dist $(DEST)/
201 @if test ! -d $(DEST)/language; then \
202 echo Creating language subdirectory.; \
203 mkdir $(DEST)/language; \
204 fi
205 @$(CP2) language/* src/mod/*.mod/*.lang $(DEST)/language/
206 @if test -f $(DEST)/eggdrop; then \
207 rm -f $(DEST)/oeggdrop; \
208 fi
209 @if test ! -f $(DEST)/motd; then \
210 $(CP1) motd $(DEST)/; \
211 fi
212 @if test ! -f $(DEST)/telnet-banner; then \
213 $(CP1) telnet-banner $(DEST)/; \
214 fi
215 @if test -h $(DEST)/modules; then \
216 echo Removing symlink to archival modules directory.; \
217 rm -f $(DEST)/modules; \
218 fi
219 @if test -d $(DEST)/modules/; then \
220 echo Moving old modules into \'modules.old\' directory.; \
221 rm -rf $(DEST)/modules.old; \
222 mv -f $(DEST)/modules $(DEST)/modules.old; \
223 fi
224 @if test ! -d $(DEST)/modules\-${NEWVERSION}/; then \
225 echo Creating modules\-${NEWVERSION} directory and symlink.; \
226 mkdir $(DEST)/modules\-${NEWVERSION}; \
227 fi
228 @$(LN_S) modules\-${NEWVERSION} $(DEST)/modules
229 @if test -f assoc.so; then \
230 echo Copying new modules.; \
231 $(CP3) *.so $(DEST)/modules/; \
232 fi
233 @if test -h $(DEST)/eggdrop; then \
234 echo Removing symlink to archival eggdrop binary.; \
235 rm -f $(DEST)/eggdrop; \
236 fi
237 @if test -f $(DEST)/eggdrop; then \
238 echo Renamed the old \'eggdrop\' executable to \'oeggdrop\'.; \
239 mv -f $(DEST)/eggdrop $(DEST)/oeggdrop; \
240 fi
241 @echo Copying new \'eggdrop\' executable and creating symlink.
242 @$(CP1) eggdrop $(DEST)/eggdrop\-${NEWVERSION}
243 @$(LN_S) eggdrop\-${NEWVERSION} $(DEST)/eggdrop
244 @if test ! -d $(DEST)/doc; then \
245 echo Creating \'doc\' subdirectory.; \
246 mkdir $(DEST)/doc; \
247 fi
248 @echo Copying \'doc\' files.
249 @$(CP2) doc/* $(DEST)/doc/
250 @if test ! -d $(DEST)/help; then \
251 echo Creating \'help\' subdirectory.; \
252 mkdir $(DEST)/help; \
253 fi
254 @$(CP2) help/* $(DEST)/help/
255 @if test ! -d $(DEST)/filesys; then \
256 echo Creating a skeletal \'filesys\' subdirectory.; \
257 mkdir $(DEST)/filesys; \
258 mkdir $(DEST)/filesys/incoming; \
259 fi
260 @if test ! -d $(DEST)/scripts; then \
261 echo Creating a \'scripts\' subdirectory.; \
262 mkdir $(DEST)/scripts; \
263 echo Copying scripts.; \
264 $(CP2) scripts/* $(DEST)/scripts; \
265 fi
266 @echo
267 @${MAKE} REALDEST=`cd $(DEST); pwd` install2
268 @echo
269 @echo Installation completed.
270 @echo You MUST ensure that you edit/verify your configuration file.
271 @echo \'eggdrop.conf.dist\' lists current options.
272 @echo Remember to change directory to $(DEST) before you proceed.
273
274 install2:
275 @echo Installing mods -- DEST = $(REALDEST)
276 @cd src/mod; ${MAKE} REALDEST=$(REALDEST) install CP1='${CP1}'; cd ../..
277
278 #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23