From 1f24a2196641f7d832300fd45c7f5e89559ecc34 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 18 May 2024 10:58:08 +0200 Subject: more problem isolation --- makefile | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index ef01ae8..9d46d62 100644 --- a/makefile +++ b/makefile @@ -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 $@ $< -- cgit v1.2.3