Build picobsd object files in /usr/obj/picobsd/${TYPE}.

This commit is contained in:
joe 2000-11-02 13:38:10 +00:00
parent cf899b18b1
commit 8f40e5815a
2 changed files with 5 additions and 1 deletions

View File

@ -13,13 +13,14 @@ crunch:
else \
crunchgen -h ../../build/crunch.inc ./crunch1.conf ; \
fi )
@perl -pi -e 's#${OBJ}#${PICO_OBJ}#g' crunch1.mk ;
../../build/munge_crunchmk.pl crunch1.mk ;
@( if [ -f buildopts.inc ] ; then \
echo '.include "buildopts.inc"' > crunch1.mk.tmp ; \
cat crunch1.mk >> crunch1.mk.tmp ; \
mv crunch1.mk.tmp crunch1.mk ; \
fi )
${MAKE} -f crunch1.mk $(CRUNCHFLAGS) all \
@env MAKEOBJDIRPREFIX=${PICO_OBJ} ${MAKE} -f crunch1.mk $(CRUNCHFLAGS) all \
"CFLAGS=${CFLAGS} ${CRUNCHFLAGS}" #2>&1 >/dev/null
strip --remove-section=.note --remove-section=.comment crunch1

View File

@ -14,6 +14,9 @@ MFS_NAME=fs.PICOBSD
MFS_MOUNTPOINT=`mktemp -d "/tmp/picobsd.XXXXXXXXXX"`
export MFS_MOUNTPOINT
PICO_OBJ=${OBJ}/picobsd/${TYPE}
export PICO_OBJ
# fail errno errcode
# This function is used to trap errors and print msgs
#