diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-05-18 10:58:08 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-05-18 10:58:08 +0200 |
commit | 1f24a2196641f7d832300fd45c7f5e89559ecc34 (patch) | |
tree | dd9316c305118d269f9043a421bf7af9273a6723 /makefile | |
parent | e74b821cf13869a99ac2933493207680d6666186 (diff) |
more problem isolation
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 33 |
1 files changed, 7 insertions, 26 deletions
@@ -2,35 +2,16 @@ LDFLAGS += -lglfw LDFLAGS += -lOpenGL LDFLAGS += -lGLEW -CFLAGS += -g - GLFLAGS += --target-env=opengl GLFLAGS += -fauto-map-locations -.PHONY: FORCE -.SECONDARY: # do not remove intermediate files - -all: main FORCE - -main: main.o -main: die.o -main: shader.o -main: visuals_frag.o -main: fill_vert.o -main: uniform.o - -# fix compile order -main.o: fill_vert.h -main.o: visuals_frag.h - -%.s %.h &: %.spv - ./blob $< $* +main: main.c -%_frag.spv: %.frag - glslc $(GLFLAGS) -o $@ $< -%_vert.spv: %.vert - glslc $(GLFLAGS) -o $@ $< +main.c: fill_vert.h +main.c: visuals_frag.h -clean: FORCE - git clean -fxdi +%_frag.h: %.frag + glslc $(GLFLAGS) -mfmt=c -o $@ $< +%_vert.h: %.vert + glslc $(GLFLAGS) -mfmt=c -o $@ $< |