aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-05-07 21:37:02 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-05-07 21:37:02 +0200
commit79447dfd0de73e9159576d5f493404f586eff80b (patch)
tree6240f44ec2892192970db0d32f07573a42775736 /Makefile
parent09ba032e5e3956a904a51cb540bb177b00bf9ce7 (diff)
download0tdns-79447dfd0de73e9159576d5f493404f586eff80b.tar.gz
0tdns-79447dfd0de73e9159576d5f493404f586eff80b.zip
add ask_localhost helper program
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 11152b9..30a9d27 100644
--- a/Makefile
+++ b/Makefile
@@ -13,12 +13,18 @@ receive_respond : build/receive_respond.o
build/receive_respond.o : src/receive_respond.c | build
gcc $(CFLAGS) $^ -c -o $@
+ask_localhost : build/ask_localhost.o
+ $(CC) $^ -lunbound -o $@
+
+build/ask_localhost.o : src/ask_localhost.c | build
+ gcc $(CFLAGS) $^ -c -o $@
+
build :
mkdir build
all : 0tDNS receive_respond
clean :
- -rm -r build 0tDNS receive_respond
+ -rm -r build 0tDNS receive_respond ask_localhost
.PHONY : clean