# # Rules for updating a library with rc # NSLIBDIR=$ROOT/$OBJDIR/lib NSLIBRARY=$NSLIBDIR/ns$LIB NSLIBOBJ=${NSOFILES:%=$NSLIBRARY(%)} default:V: all all install:V: $NSLIBRARY installall:V: for(objtype in $CPUS) mk $MKFLAGS install clean:V: clean-ns nuke:V: nuke-ns $NSLIBRARY: $NSLIBOBJ $AR $ARFLAGS $target $newmember $NSLIBRARY(%.$O):N: %.$O ns%.$O: $HFILES # don't combine with following ns%.$O rules ns%.$O: %.c $CC $CFLAGS -DUSENS -o ns$stem.$O $stem.c ns%.$O: %.s $AS $ASFLAGS -o ns$stem.$O $stem.s y.tab.h y.tab.c: $YFILES $YACC $YFLAGS $prereq clean-ns:V: rm -f *.[$OS] [$OS].out nuke-ns:V: clean-ns rm -f y.tab.? y.output y.error rm -f $NSLIBRARY