aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: cfe224cacefe9597811afd07255cb1e311f2b16c (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_respond : build/receive_respond.o
	$(CC) $^ -lldns -o $@

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

build :
	mkdir build

clean :
	-rm -r build 0tDNS receive_respond

.PHONY : clean