plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

mkcommon (481B)


      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 y.tab.h y.tab.c:	$YFILES
     13 	$YACC $YFLAGS $prereq
     14 
     15 nuke:V: nuke-common
     16 clean:V: clean-common
     17 %.clean:V: %.clean-common
     18 
     19 nuke-common:V:
     20 	rm -f *.[$OS] [$OS].out $CLEANFILES y.tab.[ch] $NUKEFILES
     21 
     22 clean-common:
     23 	rm -f *.[$OS] [$OS].out $CLEANFILES y.tab.[ch]
     24 
     25 %.clean-common:V:
     26 	rm -f $stem.[$OS] [$OS].$stem $stem.acid $stem
     27 
     28