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