mk-standalone

standalone mk from 9base
git clone git://git.evenfri.xyz/mk-standalone.git
Log | Files | Refs | README

mkcommon (412B)


      1 %.$o: $hfiles     # don't combine with following %.$o rules
      2 
      3 %.$o: %.c
      4 	$cc $cflags $stem.c
      5 
      6 %.$o: %.cc
      7 	$cc $cflags $stem.cc 
      8 
      9 %.$o: %.s
     10 	$as $aflags $stem.s 
     11 
     12 nuke:V: nuke-common
     13 clean:V: clean-common
     14 %.clean:V: %.clean-common
     15 
     16 nuke-common:V:
     17 	rm -f *.[$os] [$os].out $cleanfiles $nukefiles
     18 
     19 clean-common:
     20 	rm -f *.[$os] [$os].out $cleanfiles
     21 
     22 %.clean-common:V:
     23 	rm -f $stem.[$os] [$os].$stem $stem.acid $stem