diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libmp/port/reduce | 11 | ||||
-rw-r--r-- | src/libsec/port/mkfile | 1 | ||||
-rw-r--r-- | src/mksyslib | 8 |
3 files changed, 14 insertions, 6 deletions
diff --git a/src/libmp/port/reduce b/src/libmp/port/reduce index 269f510a..78be309e 100644 --- a/src/libmp/port/reduce +++ b/src/libmp/port/reduce @@ -5,6 +5,11 @@ shift nl=' ' -reduce="("`ls -p ../$objtype/*.[cs] 2>/dev/null | sed 's/..$//' | sed 's/^.*\///' | tr "$nl" '|' | sed 's/.$//'`")" - -echo $* | tr ' ' "$nl" | egrep -v $reduce | tr "$nl" ' ' +for i in $* +do + j=`echo $i | sed 's/\.o//'` + if test ! -f ../$objtype/$j.c -a ! -f ../$objtype/$j.s -a ! -f ../$objtype/$j.spp + then + echo $i + fi +done diff --git a/src/libsec/port/mkfile b/src/libsec/port/mkfile index 63fd5f96..60baf2a3 100644 --- a/src/libsec/port/mkfile +++ b/src/libsec/port/mkfile @@ -55,7 +55,6 @@ ALLOFILES=\ x509.$O\ OFILES=`{sh ./reduce $O $OBJTYPE $ALLOFILES} - HFILES=$PLAN9/include/libsec.h <$PLAN9/src/mksyslib diff --git a/src/mksyslib b/src/mksyslib index de8824e4..f7ffda11 100644 --- a/src/mksyslib +++ b/src/mksyslib @@ -1,7 +1,11 @@ default:V: $PLAN9/lib/$LIB -$PLAN9/lib/$LIB: $OFILES - $AR rvc $PLAN9/lib/$LIB $newprereq +# $PLAN9/lib/$LIB: $OFILES +# $AR rvc $PLAN9/lib/$LIB $newprereq + +$PLAN9/lib/$LIB(%):N: % +$PLAN9/lib/$LIB: ${OFILES:%=$PLAN9/lib/$LIB(%)} + ar rvc $PLAN9/lib/$LIB `membername $newprereq` &:n: &.$O $AR rvc $PLAN9/lib/$LIB $stem.$O |