summaryrefslogtreecommitdiff
path: root/mkfile
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-10-05 18:18:19 -0400
committerOri Bernstein <ori@eigenstate.org>2014-10-05 18:18:19 -0400
commitb8e1d4c0252943545bbcde039cc227401b8c03ab (patch)
treeed14ab8997a7d7bee3cadbe91f3d05bfb2b0da94 /mkfile
parent97540583eefeed60052f9831d68e7eb7bbbe8906 (diff)
downloadmc-b8e1d4c0252943545bbcde039cc227401b8c03ab.tar.gz
Add plan9 mkfiles and runtime.
Diffstat (limited to 'mkfile')
-rw-r--r--mkfile46
1 files changed, 46 insertions, 0 deletions
diff --git a/mkfile b/mkfile
new file mode 100644
index 0000000..726282b
--- /dev/null
+++ b/mkfile
@@ -0,0 +1,46 @@
+</$objtype/mkfile
+
+SUB = parse \
+ opt \
+ 6 \
+ muse \
+ myrbuild \
+ rt \
+ libstd \
+ doc
+
+all:V: $SUB config.h
+ for(dir in $SUB)@{
+ cd $dir
+ mk $MKFLAGS
+ }
+nuke:V: $SUB
+ rm -f config.h
+ rm -f config.mk
+ for(dir in $SUB)@{
+ cd $dir
+ mk $MKFLAGS nuke
+ }
+
+clean:V: $SUB config.h
+ for(dir in $SUB)@{
+ cd $dir
+ mk $MKFLAGS clean
+ }
+
+install:V: $SUB config.h
+ for(dir in $SUB)@{
+ cd $dir
+ mk $MKFLAGS install
+ }
+
+uninstall:V: $SUB config.h
+ for(dir in $SUB)@{
+ cd $dir
+ mk $MKFLAGS
+ }
+
+config.h:
+ echo '#define Instroot "'/'"' > config.h
+ echo '#define Asmcmd {"6a", "-o", NULL}' >> config.h
+ echo '#define Symprefix "_"' >> config.h