summaryrefslogtreecommitdiff
path: root/mkfile
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2022-06-22 21:20:41 +0000
committerrodri <rgl@antares-labs.eu>2022-06-22 21:20:41 +0000
commit667fd01d924ecc99c1579e155b39cd12fd201f4b (patch)
tree618a253270065059dc7154da09d94e8917318d08 /mkfile
downloadtinyrend-667fd01d924ecc99c1579e155b39cd12fd201f4b.tar.gz
tinyrend-667fd01d924ecc99c1579e155b39cd12fd201f4b.tar.bz2
tinyrend-667fd01d924ecc99c1579e155b39cd12fd201f4b.zip
Lesson 0: Bresenham's Line Drawing Algorithm—First attempt
Diffstat (limited to 'mkfile')
-rw-r--r--mkfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/mkfile b/mkfile
new file mode 100644
index 0000000..d6883d8
--- /dev/null
+++ b/mkfile
@@ -0,0 +1,24 @@
+</$objtype/mkfile
+
+BIN=/$objtype/bin/musw
+TARG=tinyrend
+OFILES=\
+ main.$O\
+
+HFILES=\
+ ./libgeometry/geometry.h\
+
+LIB=\
+ ./libgeometry/libgeometry.a$O\
+
+CFLAGS=$CFLAGS
+
+</sys/src/cmd/mkone
+
+./libgeometry/libgeometry.a$O:
+ cd ./libgeometry
+ mk install
+
+clean nuke:V:
+ rm -f *.[$OS] [$OS].??* $TARG
+ @{cd ./libgeometry; mk $target}