aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-18 11:27:25 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-18 11:27:25 +0200
commit08529a4a8e685637c1e733a6fff528a813d9a95c (patch)
tree2ef35b36297eeea92e155fcb9a5bbfbe43bc4e24 /makefile
parent1b1314ed856f8380726fd07cde5dd73125101ef2 (diff)
ensure same source
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 < $< > $@