aboutsummaryrefslogtreecommitdiff
path: root/src/mkcommon
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-11-23 18:10:54 +0000
committerrsc <devnull@localhost>2003-11-23 18:10:54 +0000
commit5c34ff9e1c19fd73ccc79c0f702f7c4b964840d1 (patch)
tree808a906913b9b82866dd9c9bf62434ecca5fe55d /src/mkcommon
parentbc7cb1a15a67c859c8c71c4b52bb35fe9425a63d (diff)
downloadplan9port-5c34ff9e1c19fd73ccc79c0f702f7c4b964840d1.tar.gz
plan9port-5c34ff9e1c19fd73ccc79c0f702f7c4b964840d1.tar.bz2
plan9port-5c34ff9e1c19fd73ccc79c0f702f7c4b964840d1.zip
make -> mk
Diffstat (limited to 'src/mkcommon')
-rw-r--r--src/mkcommon21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mkcommon b/src/mkcommon
new file mode 100644
index 00000000..506cd438
--- /dev/null
+++ b/src/mkcommon
@@ -0,0 +1,21 @@
+%.$O: $HFILES # don't combine with following %.$O rules
+
+%.$O: %.c
+ $CC $CFLAGS $stem.c
+
+%.$O: %.s
+ $AS $AFLAGS $stem.s
+
+clean:V:
+ rm -f *.[$OS] [$OS].out $CLEANFILES
+
+%.clean:V:
+ rm -f $stem.[$OS] [$OS].$stem $stem.acid $stem
+
+nuke:V:
+ rm -f *.[$OS] [$OS].out $CLEANFILES
+
+Makefile:D: mkfile
+ rm -f Makefile
+ sh $PLAN9/src/mk2make mkfile >Makefile
+ chmod 444 Makefile