diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
| commit | 46439007cf417cbd9ac8049bb4122c890097a0fa (patch) | |
| tree | 6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /mkfiles/mksyslib-sh | |
| parent | 37da2899f40661e3e9631e497da8dc59b971cbd0 (diff) | |
20060303-partial
Diffstat (limited to 'mkfiles/mksyslib-sh')
| -rw-r--r-- | mkfiles/mksyslib-sh | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/mkfiles/mksyslib-sh b/mkfiles/mksyslib-sh new file mode 100644 index 00000000..c4afb7de --- /dev/null +++ b/mkfiles/mksyslib-sh @@ -0,0 +1,47 @@ +# +# Rules for updating a library with sh +# +LIBDIR=$ROOT/$OBJDIR/lib +LIBRARY=$LIBDIR/$LIB +LIBOBJ=${OFILES:%=$LIBRARY(%)} + +default:V: all + +all install:V: $LIBRARY + +installall:V: + for objtype in $CPUS + do + mk $MKFLAGS install + done + +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 + +%.$O: %.S$MACOSINF + $AS $ASFLAGS -o $target $stem.S + +y.tab.h y.tab.c: $YFILES + $YACC $YFLAGS $prereq + +clean-std:V: + rm -f $O.out + rm -f `echo $OS | sed 's/./ *.&/g'` + +nuke-std:V: clean-std + rm -f y.tab.? y.output y.error + rm -f $LIBRARY |
