aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-18 10:58:08 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-18 10:58:08 +0200
commit1f24a2196641f7d832300fd45c7f5e89559ecc34 (patch)
treedd9316c305118d269f9043a421bf7af9273a6723 /makefile
parente74b821cf13869a99ac2933493207680d6666186 (diff)
more problem isolation
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 $@ $<