1libs=${LIBS:%=$ROOT/$OBJDIR/lib/lib%.a} 2 3all:V: $O.out 4 5install:V: $BIN/$TARG 6 7installall:V: 8 for objtype in $CPUS 9 do 10 mk $MKFLAGS install 11 done 12 13nuke:V: nuke-std 14 15clean:V: clean-std 16 17$O.out: $OFILES $libs 18 $LD $LDFLAGS -o $target $OFILES $libs $SYSLIBS 19 20%.$O: $HFILES # don't combine with following %.$O rules 21 22%.$O: %.c 23 $CC $CFLAGS -o $target $stem.c 24 25%.$O: %.s 26 $AS $ASFLAGS -o $target $stem.s 27 28%.$O: %.S$MACOSINF 29 $AS $ASFLAGS -o $target $stem.S 30 31y.tab.h y.tab.c: $YFILES 32 $YACC $YFLAGS $YFILES 33 34clean-std:V: 35 rm -f core [$OS].out 36 rm -f `echo $OS | sed 's/./ *.&/g'` 37 38nuke-std:V: clean-std 39 rm -f y.tab.? y.debug y.output 40 41$BIN/%: $O.out 42 rm -f $BIN/$stem && cp $O.out $BIN/$stem 43