aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile33
1 files changed, 7 insertions, 26 deletions
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 $@ $<