summaryrefslogtreecommitdiff
path: root/tools/dnssec/Makefile
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2016-03-30 21:35:31 +0200
committerLinus Nordberg <linus@nordu.net>2016-04-07 16:06:12 +0200
commit781201c780419377005f358b20017ba9d6edc288 (patch)
treead2c29207e77873a5e15c8d54c3bd3ecf502af97 /tools/dnssec/Makefile
parent5cf67186d026fa5bf44ee296efe81052c4b9e487 (diff)
Add validatechain.c and move some code to common.c.
dns-net2wire.c is nothing but an ugly hack on top of getdns_query.c making it save answer, validation_chain and trust anchors to three separate files. Used for testing purposes. validatechain takes the above mentioned three files as input and performs DNSSEC validation.
Diffstat (limited to 'tools/dnssec/Makefile')
-rw-r--r--tools/dnssec/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/dnssec/Makefile b/tools/dnssec/Makefile
index 7009220..7c3f2fb 100644
--- a/tools/dnssec/Makefile
+++ b/tools/dnssec/Makefile
@@ -1,12 +1,14 @@
CFLAGS = -Wall -g -std=c99
CFLAGS_PEDANTIC = -pedantic -Werror -Wextra
-all: dns-net2wire dns-wire2text
+all: dns-net2wire dns-wire2text net2wire validatechain
-dns-net2wire: dns-net2wire.c
- $(CC) $(CFLAGS) -o $@ -lgetdns -lgetdns_ext_event -levent $<
-dns-wire2text: dns-wire2text.c
- $(CC) $(CFLAGS) $(CFLAGS_PEDANTIC) -o $@ -lgetdns -lgetdns_ext_event -levent $<
+dns-net2wire: dns-net2wire.c common.c
+ $(CC) $(CFLAGS) -o $@ -lgetdns -lgetdns_ext_event -levent $^
+dns-wire2text: dns-wire2text.c common.c
+ $(CC) $(CFLAGS) $(CFLAGS_PEDANTIC) -o $@ -lgetdns -lgetdns_ext_event -levent $^
+validatechain: validatechain.c common.c
+ $(CC) $(CFLAGS) -o $@ -lgetdns -lgetdns_ext_event -levent $^
-net2wire: net2wire.c
- $(CC) $(CFLAGS) -I ~/usr/include -L ~/usr/lib -o $@ -lgetdns -lgetdns_ext_event -levent $<
+net2wire: net2wire.c common.c
+ $(CC) $(CFLAGS) -I ~/usr/include -L ~/usr/lib -o $@ -lgetdns -lgetdns_ext_event -levent $^