aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/makefile b/makefile
index 1ffe4ef..840c908 100644
--- a/makefile
+++ b/makefile
@@ -7,11 +7,17 @@ GLFLAGS += -fauto-map-locations
main: main.c
-main.c: spirv_vert.h
-main.c: spirv_frag.h
+main.c: vert_spirv.h
+main.c: frag_spirv.h
+main.c: vert_src.h
+main.c: frag_src.h
-%_frag.h: %.frag
+frag_spirv.h: shader.frag
glslc $(GLFLAGS) -mfmt=c -o $@ $<
-%_vert.h: %.vert
+vert_spirv.h: shader.vert
glslc $(GLFLAGS) -mfmt=c -o $@ $<
+frag_src.h: shader.frag
+ xxd -i < $< > $@
+vert_src.h: shader.vert
+ xxd -i < $< > $@