diff options
Diffstat (limited to 'mkfiles/mksyslib-rc')
| -rw-r--r-- | mkfiles/mksyslib-rc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/mkfiles/mksyslib-rc b/mkfiles/mksyslib-rc new file mode 100644 index 00000000..4baf0e0f --- /dev/null +++ b/mkfiles/mksyslib-rc @@ -0,0 +1,41 @@ +# +# Rules for updating a library with rc +# +LIBDIR=$ROOT/$OBJDIR/lib +LIBRARY=$LIBDIR/$LIB +LIBOBJ=${OFILES:%=$LIBRARY(%)} + +default:V: all + +all install:V: $LIBRARY + +installall:V: + for(objtype in $CPUS) + mk $MKFLAGS install + +clean:V: clean-std + +nuke:V: nuke-std + +$LIBRARY: $LIBOBJ + $AR $ARFLAGS $target $newmember + +$LIBRARY(%.$O):N: %.$O + +%.$O: $HFILES # don't combine with following %.$O rules + +%.$O: %.c + $CC $CFLAGS $stem.c + +%.$O: %.s + $AS $ASFLAGS $stem.s + +y.tab.h y.tab.c: $YFILES + $YACC $YFLAGS $prereq + +clean-std:V: + rm -f *.[$OS] [$OS].out + +nuke-std:V: clean-std + rm -f y.tab.? y.output y.error + rm -f $LIBRARY |
