From 32b001afd591eca6ea723f138bb6a66128110270 Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Thu, 30 Apr 2020 21:38:43 +0200 Subject: also build receive executable --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 $@ -- cgit v1.2.3