1AFLAGS= 2 3all:V: $LIB 4 5$LIB:V: $OFILES # force archive even when not needed 6 ar vu $LIB $newprereq 7 8&:n: &.$O 9 ar vu $LIB $stem.$O 10 11%.$O: $HFILES # don't combine with following %.$O rules 12 13%.$O: %.c 14 $CC $CFLAGS $stem.c 15 16%.$O: %.s 17 $AS $AFLAGS $stem.s 18 19install:V: $LIB 20 21installall:V: 22 for(objtype in $CPUS) mk install 23 24%.all:V: 25 for(objtype in $CPUS) mk $stem 26 27%.installall:V: 28 for(objtype in $CPUS) mk $stem 29 30clean:V: 31 rm -f *.[$OS] [$OS].out $CLEANFILES 32 33%.clean:V: 34 rm -f $stem.[$OS] [$OS].$stem $stem.acid $stem 35 36nuke:V: 37 rm -f *.[$OS] [$OS].out $CLEANFILES $LIB 38 39%.acid: %.$O $HFILES 40 $CC $CFLAGS -a $stem.c >$target 41 42update:V: 43 update $UPDATEFLAGS $UPDATE 44