aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-16 20:18:59 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-16 20:18:59 +0200
commit8d7911dc40c3bfc8f4fae65f29f4c8094aec79f7 (patch)
treee3ded763bc15661cfa7cf420e5e96643eb865722 /makefile
parent68081ef4f1f51b5753e25a1be6f870eb2e84f76e (diff)
add uniform variable to shader
Diffstat (limited to 'makefile')
-rw-r--r--makefile7
1 files changed, 5 insertions, 2 deletions
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