forked from tobez/validns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
114 lines (83 loc) · 3.92 KB
/
Makefile
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
OPTIMIZE=-O2 -g
CFLAGS=-Wall -Werror
INCPATH=-I/usr/local/include -I/opt/local/include
validns: main.o carp.o mempool.o textparse.o base64.o base32hex.o \
rr.o soa.o a.o cname.o mx.o ns.o \
rrsig.o nsec.o dnskey.o txt.o aaaa.o \
naptr.o srv.o nsec3param.o nsec3.o ds.o \
hinfo.o loc.o nsec3checks.o
cc $(CFLAGS) $(OPTIMIZE) -o validns \
main.o carp.o mempool.o textparse.o base64.o base32hex.o \
rr.o soa.o a.o cname.o mx.o ns.o \
rrsig.o nsec.o dnskey.o txt.o aaaa.o \
naptr.o srv.o nsec3param.o nsec3.o ds.o \
hinfo.o loc.o nsec3checks.o \
-L/usr/local/lib -L/opt/local/lib -lJudy -lcrypto
clean:
-rm validns main.o carp.o mempool.o textparse.o
-rm rr.o soa.o a.o cname.o mx.o ns.o
-rm rrsig.o nsec.o dnskey.o txt.o aaaa.o
-rm naptr.o srv.o nsec3param.o nsec3.o ds.o
-rm hinfo.o loc.o nsec3checks.o
-rm validns.core core
@echo ':-)'
main.o: main.c common.h carp.h mempool.h textparse.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o main.o main.c $(INCPATH)
carp.o: carp.c carp.h common.h
cc $(CFLAGS) $(OPTIMIZE) -c -o carp.o carp.c $(INCPATH)
mempool.o: mempool.c mempool.h carp.h
cc $(CFLAGS) $(OPTIMIZE) -c -o mempool.o mempool.c $(INCPATH)
textparse.o: textparse.c common.h carp.h mempool.h textparse.h base64.h
cc $(CFLAGS) $(OPTIMIZE) -c -o textparse.o textparse.c $(INCPATH)
base64.o: base64.c base64.h
cc $(CFLAGS) $(OPTIMIZE) -c -o base64.o base64.c $(INCPATH)
base32hex.o: base32hex.c base32hex.h
cc $(CFLAGS) $(OPTIMIZE) -c -o base32hex.o base32hex.c $(INCPATH)
rr.o: rr.c common.h mempool.h carp.h textparse.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o rr.o rr.c $(INCPATH)
soa.o: soa.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o soa.o soa.c $(INCPATH)
a.o: a.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o a.o a.c $(INCPATH)
cname.o: cname.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o cname.o cname.c $(INCPATH)
mx.o: mx.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o mx.o mx.c $(INCPATH)
ns.o: ns.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o ns.o ns.c $(INCPATH)
rrsig.o: rrsig.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o rrsig.o rrsig.c $(INCPATH)
nsec.o: nsec.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o nsec.o nsec.c $(INCPATH)
dnskey.o: dnskey.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o dnskey.o dnskey.c $(INCPATH)
txt.o: txt.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o txt.o txt.c $(INCPATH)
aaaa.o: aaaa.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o aaaa.o aaaa.c $(INCPATH)
naptr.o: naptr.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o naptr.o naptr.c $(INCPATH)
srv.o: srv.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o srv.o srv.c $(INCPATH)
nsec3param.o: nsec3param.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o nsec3param.o nsec3param.c $(INCPATH)
nsec3.o: nsec3.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o nsec3.o nsec3.c $(INCPATH)
ds.o: ds.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o ds.o ds.c $(INCPATH)
hinfo.o: hinfo.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o hinfo.o hinfo.c $(INCPATH)
loc.o: loc.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o loc.o loc.c $(INCPATH)
nsec3checks.o: nsec3checks.c common.h textparse.h mempool.h carp.h rr.h
cc $(CFLAGS) $(OPTIMIZE) -c -o nsec3checks.o nsec3checks.c $(INCPATH)
test: validns
perl -MTest::Harness -e 'runtests("t/test.pl")'
test-details: validns
perl t/test.pl
test64:
cc -Wall -O2 -o base64-test base64.c -DTEST_PROGRAM
./base64-test
test32hex:
cc -Wall -O2 -o base32hex-test base32hex.c -DTEST_PROGRAM
./base32hex-test