LDFLAGS += -lglfw LDFLAGS += -lOpenGL LDFLAGS += -lGLEW GLFLAGS += --target-env=opengl GLFLAGS += -fauto-map-locations main: main.c main.c: vert_spirv.h main.c: frag_spirv.h main.c: vert_src.h main.c: frag_src.h frag_spirv.h: shader.frag glslc $(GLFLAGS) -mfmt=c -o $@ $< vert_spirv.h: shader.vert glslc $(GLFLAGS) -mfmt=c -o $@ $< frag_src.h: shader.frag xxd -i < $< > $@ vert_src.h: shader.vert xxd -i < $< > $@