aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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