initial commit
[gph-gfx] / Makefile
1 src = $(wildcard src/*.c) test.c
2 obj = $(src:.c=.o)
3 dep = $(obj:.o=.d)
4 bin = test
5
6 CFLAGS = -pedantic -Wall -g -MMD -Isrc
7 LDFLAGS = -lvulkan -lm
8
9 $(bin): $(obj)
10         $(CC) -o $@ $(obj) $(LDFLAGS)
11
12 -include $(dep)
13
14 .PHONY: clean
15 clean:
16         rm -f $(obj) $(bin)
17
18
19 .PHONY: cleandep
20 cleandep:
21         rm -f $(dep)