aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-04-30 21:38:43 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-04-30 21:38:43 +0200
commit32b001afd591eca6ea723f138bb6a66128110270 (patch)
treebc77f83e410425f1e387f0f1b5d4cb66c491e6ff
parent53fe2b31383a3c77cd472c91b8c022b8240b6897 (diff)
download0tdns-32b001afd591eca6ea723f138bb6a66128110270.tar.gz
0tdns-32b001afd591eca6ea723f138bb6a66128110270.zip
also build receive executable
-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 $@