aboutsummaryrefslogtreecommitdiff
path: root/mkfile
diff options
context:
space:
mode:
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..ecdffae
--- /dev/null
+++ b/mkfile
@@ -0,0 +1,24 @@
+</$objtype/mkfile
+
+BIN=/$objtype/bin/games
+TARG=boids
+OFILES=\
+ main.$O\
+
+HFILES=\
+ libgeometry/geometry.h\
+
+LIB=\
+ libgeometry/libgeometry.a$O\
+
+CFLAGS=$CFLAGS -Ilibgeometry
+
+</sys/src/cmd/mkone
+
+libgeometry/libgeometry.a$O:
+ cd libgeometry
+ mk install
+
+clean nuke:V:
+ rm -f *.[$OS] [$OS].??* $TARG
+ @{cd libgeometry; mk $target}