summaryrefslogtreecommitdiff
path: root/Makefile
blob: d7a272c0c5d001755818b4bd8ad0ebbe4913bffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CFLAGS = -O2 -g
LDFLAGS != pkg-config --libs vulkan sdl2

vulkan: main.c vert.spv frag.spv
	gcc $(CFLAGS) -o vk main.c $(LDFLAGS)

%.spv: shader.%
	glslc $^ -o $@

.PHONY: test clean

test: vulkan
	./vk

clean:
	rm -f vk *.spv