From 9cd1d0d6bea1336f57b6411d1c09abe892156623 Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Sun, 15 Mar 2020 21:30:17 +0100 Subject: add readme --- Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b5fca94..79fd0e6 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,13 @@ -override CFLAGS+= -g -Wall -std=c11 -I. -LIBS= +CFLAGS= -g -Wall -std=c99 -I. +LDLIBS= TESTFLAGS= $(CFLAGS) -Isrc/ +ifdef debug + CFLAGS+=-DDEBUG +endif -all: bin/hyde - +all: check bin:; mkdir -p bin/ -bin/hyde: src/hyde.c src/hashmap.c src/template.c src/vector.c vendor/mpc.c | bin - $(CC) $(CFLAGS) $^ -o $@ - bin/test_hashmap: src/hashmap.c tests/test_hashmap.c | bin $(CC) $(TESTFLAGS) $^ -o $@ -- cgit v1.2.3