kernel

hobby kernel
git clone git://git.evenfri.xyz/kernel.git
Log | Files | Refs | README | LICENSE

mkcommon (570B)


      1 %.$o: $hfiles     # don't combine with following %.$o rules
      2 
      3 %.$o:Q: %.c
      4 	echo $qcc $cflags $stem.c
      5 	$cc $cflags $stem.c
      6 
      7 %.$o:Q: %.cc
      8 	echo $qcc $cflags $stem.cc
      9 	$cc $cflags $stem.cc 
     10 
     11 %.$o:Q: %.s
     12 	echo $qgas $gaflags $stem.s
     13 	$gas $gaflags $stem.s
     14 
     15 %.$o:Q: %.asm
     16 	echo $qas $aflags $stem.asm
     17 	$as $aflags $stem.asm
     18 
     19 nuke:V: nuke-common
     20 clean:V: clean-common
     21 %.clean:V: %.clean-common
     22 
     23 nuke-common:V:
     24 	rm -f *.[$os] [$os].out $cleanfiles $nukefiles
     25 
     26 clean-common:
     27 	rm -f *.[$os] [$os].out $cleanfiles
     28 
     29 %.clean-common:V:
     30 	rm -f $stem.[$os] [$os].$stem $stem.acid $stem