add mock of our logging facility
[0tDNS.git] / Makefile
blob11152b90603cf23dbb1d05b2e39d537020d76574
1 CC ?= gcc
2 CFLAGS = -std=c99 -Wall -Werror -I include
4 0tDNS : build/0tDNS.o
5 $(CC) $^ -lunbound -o $@
7 build/0tDNS.o : src/0tDNS.c | build
8 gcc $(CFLAGS) $^ -c -o $@
10 receive_respond : build/receive_respond.o
11 $(CC) $^ -lldns -o $@
13 build/receive_respond.o : src/receive_respond.c | build
14 gcc $(CFLAGS) $^ -c -o $@
16 build :
17 mkdir build
19 all : 0tDNS receive_respond
21 clean :
22 -rm -r build 0tDNS receive_respond
24 .PHONY : clean