From 08529a4a8e685637c1e733a6fff528a813d9a95c Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 18 May 2024 11:27:25 +0200 Subject: ensure same source --- makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'makefile') 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 < $< > $@ -- cgit v1.2.3