aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 6bfef8f48d0ec0a8ec7062af5e1465d1c92ac89b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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

all : 0tDNS receive_respond

clean :
	-rm -r build 0tDNS receive_respond

.PHONY : clean