blob: d1fc651c4626610eebb1b347a38b8912ee61cc22 (
plain)
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
|
--- maradns-1.4.03.orig/Makefile 2006-01-02 17:59:33.000000000 +0100
+++ maradns-1.4.03/Makefile 2010-02-06 00:19:48.471836901 +0100
@@ -1,15 +1,82 @@
-# This is a wrapper that runs "./configure ; make"
-all:
- ./compile.sh
+VERSION=1.4.03
+COMPILED="Linux system at Sat Feb 6 00:19:48 CET 2010"
+COMPILED_DEBUG="Linux system at Sat Feb 6 00:19:48 CET 2010 (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/rng-api-fst.o rng/rng-alg-fst.o
+OBJECTS=$(JOBJS) $(MHOBJS) $(SOBJECTS) $(DOBJECTS) $(POBJECTS) $(DOBJECTS) $(ROBJECTS)
+EXECS=server/maradns
-debug:
- ./configure ; make debug
+# 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"
+V="VERSION=$(VERSION)"
+Q="DEFINES=-DSELECT_PROBLEM"
+
+# Debug
+
+FLAGS = -O2 -Wall -DSELECT_PROBLEM
+M="CC=$(CC) $(FLAGS)"
+D="CC=$(CC) $(FLAGS) -DDEBUG -DTHREADS"
+#FLAGS = -g
+
+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) $(V) COMPILED=\"$(COMPILED)\" ; \
+ cd ../tools ; make $(M) ; \
+ cd ../tcp ; make $(M) $(V) ; cat ../00README.FIRST
+
+debug:
+ cd libs ; make $(D) DEBUG="-DDEBUG -DTHREADS" ; \
+ cd ../dns ; make $(D) ; cd ../rng ; make $(D) ; \
+ cd ../parse ; make $(D) ; cd ../qual ; make $(D) ; \
+ cd ../server ; \
+ make $(D) $(Q) $(V) COMPILED=\"$(COMPILED_DEBUG)\" ; \
+ cd ../tools ; make $(D) ; \
+ cd ../tcp ; make $(D) $(V) ; cat ../00README.FIRST
clean:
- ./configure ; make 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
-uninstall:
- ./configure ; make uninstall
+strip:
+ cd server; strip maradns ; cd ../tcp ; \
+ strip zoneserver getzone fetchzone ; \
+ cd ../tools ; strip askmara
install:
- echo Please compile MaraDNS first
+ VERSION=$(VERSION) ./build/install.sh
+
+uninstall:
+ VERSION=$(VERSION) ./build/uninstall.sh
+
|