mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-20 09:48:27 +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
|