aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-16 17:23:18 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-16 17:23:18 +0200
commit766a817a23403ea2aeb325bea9f340f54a3e7987 (patch)
tree091da3186727528b208c4f3ebde4c241d45079f2
parent7dd5ef4d6318582c4ece7ef74f6329c7b84de9df (diff)
fix clean build compile order
-rw-r--r--makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/makefile b/makefile
index 42f4e1a..e024267 100644
--- a/makefile
+++ b/makefile
@@ -14,6 +14,10 @@ main: shader.o
main: hello_frag.o
main: hello_vert.o
+# fix compile order
+main.o: hello_vert.h
+main.o: hello_frag.h
+
%_frag.o %_frag.h &: %.frag
ld -r -b binary -o $*_frag.o $<
./blobheader $< > $*_frag.h