aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 58b591a..02d9a1b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,14 @@
CC ?= gcc
-CFLAGS = -std=c90 -Wall -Werror
-LDFLAGS = -lunbound
+CFLAGS = -std=c99 -Wall -Werror
0tDNS : build/0tDNS.o
- $(CC) $^ $(LDFLAGS) -o $@
+ $(CC) $^ -lunbound -o $@
build/0tDNS.o : src/0tDNS.c
gcc $(CFLAGS) $^ -c -o $@
+
+receive : build/receive.o
+ $(CC) $^ -lldns -o $@
+
+build/receive.o : src/receive.c
+ gcc $(CFLAGS) $^ -c -o $@