vulkan_test2
view Makefile @ 16:236f923a00a3
more validation crap
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 26 Jun 2018 08:42:12 +0300 |
parents | c31c4115d44a |
children |
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 bin = test
5 sdr = $(wildcard sdr/*.glsl)
6 spv = $(sdr:.glsl=.spv)
8 CFLAGS = -pedantic -Wall -g
9 LDFLAGS = -lvulkan -lX11
11 $(bin): $(obj) $(spv)
12 $(CC) -o $@ $(obj) $(LDFLAGS)
14 sdr/vertex.spv: sdr/vertex.glsl
15 glslangValidator -o $@ -S vert -V $<
17 sdr/pixel.spv: sdr/pixel.glsl
18 glslangValidator -o $@ -S frag -V $<
21 .PHONY: clean
22 clean:
23 rm -f $(obj) $(bin)