make -> mk
This commit is contained in:
parent
bc7cb1a15a
commit
5c34ff9e1c
10 changed files with 365 additions and 0 deletions
21
src/mkcommon
Normal file
21
src/mkcommon
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue