1 src = $(wildcard src/*.c)
6 sdr = $(wildcard sdr/*.glsl)
7 spirv = $(sdr:.glsl=.spv)
9 warn = -pedantic -Wall -Wno-unused-variable
11 CFLAGS = $(warn) -g -MMD
12 LDFLAGS = -lvulkan -lX11 -lX11-xcb
14 $(bin): $(obj) $(spirv)
15 $(CC) -o $@ $(obj) $(LDFLAGS)
18 glslangValidator -o $@ -S vert -V $<
21 glslangValidator -o $@ -S frag -V $<
27 rm -f $(bin) $(obj) $(spirv)