diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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 < $< > $@ |