mirror of
https://github.com/libretro/RetroArch
synced 2024-12-29 12:31:05 +00:00
b013a9c863
Far more clean and avoids illegal punning.
20 lines
344 B
Makefile
20 lines
344 B
Makefile
VERT_SHADERS := $(wildcard *.vert)
|
|
FRAG_SHADERS := $(wildcard *.frag)
|
|
SPIRV := $(VERT_SHADERS:.vert=.vert.inc) $(FRAG_SHADERS:.frag=.frag.inc)
|
|
|
|
GLSLANG := glslc
|
|
GLSLFLAGS := -mfmt=c
|
|
|
|
all: $(SPIRV)
|
|
|
|
%.vert.inc: %.vert
|
|
$(GLSLANG) $(GLSLFLAGS) -o $@ $<
|
|
|
|
%.frag.inc: %.frag
|
|
$(GLSLANG) $(GLSLFLAGS) -o $@ $<
|
|
|
|
clean:
|
|
rm -f $(SPIRV)
|
|
|
|
.PHONY: clean
|