summaryrefslogtreecommitdiff
path: root/tests/Makefile
blob: 19881a279fe7333152fbacd4d674dddfcbab7ffa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CASES := $(wildcard test_*.c)
CASES_OBJ := $(CASES:.c=.o)

.PHONY: run

run: test

test: test.o $(CASES_OBJ) test.h
	@echo Case sources: $(CASES)
	@echo Objects: $(CASES_OBJ)
	$(CC) -o $@ $^

test%.o: test%.c
	$(CC) -I../src -c -o $@ $<

clean:
	rm *.o test