# # Rules for updating a library with sh # NSLIBDIR=$ROOT/$OBJDIR/lib NSLIBRARY=$LIBDIR/ns$LIB NSLIBOBJ=${NSOFILES:%=$NSLIBRARY(%)} default:V: all all install:V: $NSLIBRARY installall:V: for objtype in $CPUS do mk $MKFLAGS install done clean:V: clean-ns nuke:V: nuke-ns $NSLIBRARY: $NSLIBOBJ $AR $ARFLAGS $target $newmember $NSLIBRARY(%.$O):N: %.$O ns%.$O: $HFILES # do not 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 $O.out rm -f `echo $OS | sed 's/./ *.&/g'` nuke-ns:V: clean-ns rm -f y.tab.? y.output y.error rm -f $NSLIBRARY