summaryrefslogtreecommitdiff
path: root/mkfile
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-11-11 12:41:54 +0000
committerrodri <rgl@antares-labs.eu>2023-11-11 12:41:54 +0000
commit212ca282c42e99e03121727c138a34584777ee60 (patch)
treeb789f646f715183c5b7e0956d23bd3ab2809b7ef /mkfile
parent1a839bc268588144d9b39c45a665545c1aaa2ef3 (diff)
downloadtinyrend-212ca282c42e99e03121727c138a34584777ee60.tar.gz
tinyrend-212ca282c42e99e03121727c138a34584777ee60.tar.bz2
tinyrend-212ca282c42e99e03121727c138a34584777ee60.zip
add support for OBJ models (triangles only).
also put a guard on the filltriangle slopes to avoid division by zero.
Diffstat (limited to 'mkfile')
-rw-r--r--mkfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/mkfile b/mkfile
index ed46965..c90ea24 100644
--- a/mkfile
+++ b/mkfile
@@ -6,4 +6,15 @@ OFILES=\
main.$O\
nanosec.$O\
+LIB=\
+ libobj/libobj.a$O\
+
</sys/src/cmd/mkone
+
+libobj/libobj.a$O:
+ cd libobj
+ mk install
+
+clean nuke:V:
+ rm -f *.[$OS] [$OS].out $TARG
+ @{cd libobj; mk $target}