mirror of
https://github.com/libretro/RetroArch
synced 2025-01-28 14:54:03 +00:00
24 lines
395 B
Makefile
24 lines
395 B
Makefile
VERT_SHADERS := $(wildcard *.vert)
|
|
FRAG_SHADERS := $(wildcard *.frag)
|
|
SPIRV := $(VERT_SHADERS:.vert=.vert.spv) $(FRAG_SHADERS:.frag=.frag.spv)
|
|
INCLUDES := $(SPIRV:.spv=.inc)
|
|
|
|
GLSLANG := glslangValidator
|
|
|
|
all: $(INCLUDES)
|
|
|
|
%.frag.spv: %.frag
|
|
$(GLSLANG) -V -o $@ $<
|
|
|
|
%.vert.spv: %.vert
|
|
$(GLSLANG) -V -o $@ $<
|
|
|
|
%.inc: %.spv
|
|
xxd -i $< $@
|
|
|
|
clean:
|
|
rm -f $(INCLUDES)
|
|
rm -f $(SPIRV)
|
|
|
|
.PHONY: clean
|