add postgres database creation script
[0tDNS.git] / Makefile
blob89c14f8189cd3c56ce22f61a91aad22c97babb4b
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_resolver : build/ask_resolver.o
11 $(CC) $^ -lunbound -o $@
13 build :
14 mkdir build
16 all : 0tDNS receive_respond
18 clean :
19 -rm -r build 0tDNS ask_resolver
21 .PHONY : clean