From 8d7911dc40c3bfc8f4fae65f29f4c8094aec79f7 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 16 May 2024 20:18:59 +0200 Subject: add uniform variable to shader --- makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index fa39ee9..daf3750 100644 --- a/makefile +++ b/makefile @@ -4,6 +4,9 @@ LDFLAGS += -lGLEW CFLAGS += -g +GLFLAGS += --target-env=opengl +GLFLAGS += -fauto-map-locations + .PHONY: FORCE .SECONDARY: # do not remove intermediate files @@ -23,9 +26,9 @@ main.o: visuals_frag.h ./blob $< $* %_frag.spv: %.frag - glslc -o $@ $< + glslc $(GLFLAGS) -o $@ $< %_vert.spv: %.vert - glslc -o $@ $< + glslc $(GLFLAGS) -o $@ $< clean: FORCE git clean -fxdi -- cgit v1.2.3