join querying and responding in one program
[0tDNS.git] / Makefile
blobccd3186116ee0df6368c085312799b3744b6d4d5
1 CC ?= gcc
2 CFLAGS = -std=c99 -Wall -Werror -I include
4 0tDNS : build/0tDNS.o build/receive_respond.o
5 $(CC) $^ -lunbound -lldns -o $@
7 build/%.o : src/%.c | build
8 gcc $(CFLAGS) $^ -c -o $@
10 ask_localhost : build/ask_localhost.o
11 $(CC) $^ -lunbound -o $@
13 build :
14 mkdir build
16 all : 0tDNS receive_respond
18 clean :
19 -rm -r build 0tDNS ask_localhost
21 .PHONY : clean