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

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

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

receive : build/receive.o
	$(CC) $^ -lldns -o $@

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

build :
	mkdir build

clean :
	-rm -r build 0tDNS receive

.PHONY : clean