20 lines
344 B
Makefile
Raw Normal View History

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