2016-02-16 20:24:00 +01:00
|
|
|
VERT_SHADERS := $(wildcard *.vert)
|
|
|
|
FRAG_SHADERS := $(wildcard *.frag)
|
2016-06-25 14:55:03 +02:00
|
|
|
SPIRV := $(VERT_SHADERS:.vert=.vert.inc) $(FRAG_SHADERS:.frag=.frag.inc)
|
2016-02-16 20:24:00 +01:00
|
|
|
|
2016-06-25 14:55:03 +02:00
|
|
|
GLSLANG := glslc
|
|
|
|
GLSLFLAGS := -mfmt=c
|
2016-02-16 20:24:00 +01:00
|
|
|
|
2016-06-25 14:55:03 +02:00
|
|
|
all: $(SPIRV)
|
2016-02-16 20:24:00 +01:00
|
|
|
|
2016-06-25 14:55:03 +02:00
|
|
|
%.vert.inc: %.vert
|
|
|
|
$(GLSLANG) $(GLSLFLAGS) -o $@ $<
|
2016-02-16 20:24:00 +01:00
|
|
|
|
2016-06-25 14:55:03 +02:00
|
|
|
%.frag.inc: %.frag
|
|
|
|
$(GLSLANG) $(GLSLFLAGS) -o $@ $<
|
2016-02-16 20:24:00 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(SPIRV)
|
|
|
|
|
|
|
|
.PHONY: clean
|