make -> mk

This commit is contained in:
rsc 2003-11-23 18:10:54 +00:00
parent bc7cb1a15a
commit 5c34ff9e1c
10 changed files with 365 additions and 0 deletions

21
src/mkcommon Normal file
View file

@ -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