72 lines
2.3 KiB
Text
Executable file
72 lines
2.3 KiB
Text
Executable file
# This is a Makefile to make the Windows binaries with debug symbols
|
|
|
|
VERSION=git-unknown
|
|
COMPILED="MINGW32_NT-6.1 system at Sat Feb 8 22:45:44 PST 2014"
|
|
COMPILED_DEBUG="MINGW32_NT-6.1 system at Sat Feb 8 22:45:44 PST 2014 (Debug)"
|
|
# Server objects
|
|
SOBJECTS=server/MaraBigHash.o
|
|
# js_string library (buffer overflow resistant string library) objects
|
|
JOBJS=libs/JsStr.o libs/JsStrOS.o libs/JsStrCP.o
|
|
# MaraHash (assosciative array) library objects
|
|
MHOBJS=libs/MaraHash.o
|
|
# Parser objects
|
|
POBJECTS=parse/ParseMaraRc.o parse/ParseCsv1.o ../parse/ParseIpAcl.o
|
|
# DNS query processing library objects
|
|
DOBJECTS=dns/Queries.o dns/Compress.o dns/bobbit.o
|
|
# Secure random number generator objects
|
|
ROBJECTS=rng/rngapifst.o rng/rngalgfst.o
|
|
OBJECTS=$(JOBJS) $(MHOBJS) $(SOBJECTS) $(DOBJECTS) $(POBJECTS) $(DOBJECTS) $(ROBJECTS)
|
|
EXECS=server/maradns
|
|
|
|
# Uncomment the following three lines to get this to compile on Solaris
|
|
# LDFLAGS=-lxnet
|
|
# CC=gcc $(LDFLAGS) -DSELECT_PROBLEM
|
|
# M="CC=$(CC)"
|
|
# These are currently unused, but will be needed again if we use flock() again
|
|
# CFLAGS=-I/usr/ucbinclude
|
|
# L="CC=$(CC) $(CFLAGS)"
|
|
# LDFLAGS=-L/usr/ucblib -lucb -lxnet
|
|
# end the Solaris section
|
|
# Non-Solaris version of "M"
|
|
M="VERSION=$(VERSION)"
|
|
#Q="DEFINES=-DSELECT_PROBLEM"
|
|
|
|
# FreeBSD needs some special flags to compile MaraDNS
|
|
CC="gcc -g -DMINGW32 -DNO_FLOCK -pipe"
|
|
M=CC=$(CC)
|
|
V="VERSION=$(VERSION)"
|
|
|
|
# Debug
|
|
D=$(M) DEBUG=-DDEBUG
|
|
|
|
all:
|
|
cd libs ; make $(M) ; cd ../dns ; make $(M) ; \
|
|
cd ../rng ; make $(M) ; cd ../parse ; make $(M) ; \
|
|
cd ../qual ; make $(M) ; cd ../server ; \
|
|
make $(M) $(Q) COMPILED=\"$(COMPILED)\" $(V) ; \
|
|
cd ../tools ; make $(M) ; \
|
|
cd ../deadwood-*/src/ ; make FLAGS=-g -f Makefile.mingw342 ; \
|
|
cat ../../00README.FIRST
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) core $(EXECS) ; \
|
|
cp build/Makefile.w Makefile ; cd dns ; make clean ; \
|
|
cd ../libs ; make clean ; cd ../parse ; make clean ; \
|
|
cd ../qual ; make clean ; \
|
|
cd ../server ; make clean ; \
|
|
cp Makefile.recursive Makefile ; \
|
|
cd ../test ; make clean ; \
|
|
cd ../tools ; make clean ; \
|
|
cd misc ; make clean ; \
|
|
cd ../../utf8 ; make clean ; \
|
|
cd ../tcp ; make clean ; \
|
|
cd ../rng ; make clean ; \
|
|
cd ../sqa ; make clean ; \
|
|
# ; cd .. ; find . -type d | grep .deps | xargs rm -fr ; find . -name '*.o' | xargs rm
|
|
|
|
install:
|
|
VERSION=$(VERSION) ./build/install.sh
|
|
|
|
uninstall:
|
|
VERSION=$(VERSION) ./build/uninstall.sh
|
|
|