aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 89c14f8189cd3c56ce22f61a91aad22c97babb4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CC ?= gcc
CFLAGS = -std=c99 -Wall -Werror -I include

0tDNS : build/0tDNS.o build/receive_respond.o
	$(CC) $^ -lunbound -lldns -o $@

build/%.o : src/%.c | build
	gcc $(CFLAGS) $^ -c -o $@

ask_resolver : build/ask_resolver.o
	$(CC) $^ -lunbound -o $@

build :
	mkdir build

all : 0tDNS receive_respond

clean :
	-rm -r build 0tDNS ask_resolver

.PHONY : clean