aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-16 12:05:48 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-16 12:05:48 +0200
commit548fcede95d44a3486e43f24302809792754861a (patch)
tree60b27e52b1d3a6826c03e943141184541bb864c5 /makefile
parent83ed40fd01120e1b46dba5d2bac895862731196d (diff)
WIP fragment shader hello world
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/makefile b/makefile
index 49551f1..539ac68 100644
--- a/makefile
+++ b/makefile
@@ -8,6 +8,15 @@ all: main FORCE
main: main.o
main: die.o
main: draw.o
+main: hello_frag.o
+main: hello_vert.o
+
+%_frag.o %_frag.h &: %.frag
+ ld -r -b binary -o $*_frag.o $<
+ ./blobheader $< > $*_frag.h
+%_vert.o %_vert.h &: %.vert
+ ld -r -b binary -o $*_vert.o $<
+ ./blobheader $< > $*_vert.h
clean: FORCE
git clean -fxdi