aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 05513693b036867f986ea66153db2e489ac5bb38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CFLAGS= -g -Wall -std=c11 -Ivendor/ -I.
LIBS= 

all: bin/hyde

bin:
	mkdir -p bin/

bin/hyde: hyde.c hashmap.c vendor/mpc.c | bin
	$(CC) $(CFLAGS) $^ -o $@

bin/test_hashmap: hashmap.c tests/test_hashmap.c | bin
	$(CC) $(CFLAGS) $^ -o $@

.PHONY: check
check: bin/test_hashmap
	for test in $^; do $$test || exit 1; done