Utilise the -p file to crunchgen to specify where the objects should

be built and remove the previous glue that did the same thing.
This commit is contained in:
Josef Karthauser 2000-12-18 16:28:03 +00:00
parent d556784aa3
commit 5e75ac9fe2

View File

@ -8,12 +8,11 @@ all: crunch
crunch:
@cat crunch.conf|sed -e "s@/usr/src@${SRC}@" >crunch1.conf
@( if [ -f crunch.inc ] ; then \
crunchgen -o -h ./crunch.inc ./crunch1.conf ; \
crunchgen -p ${PICO_OBJ} -o -h ./crunch.inc ./crunch1.conf ; \
else \
crunchgen -o ./crunch1.conf ; \
crunchgen -p ${PICO_OBJ} -o ./crunch1.conf ; \
fi )
@perl -pi -e 's#${OBJ}#${PICO_OBJ}#g' crunch1.mk ;
@env MAKEOBJDIRPREFIX=${PICO_OBJ} ${MAKE} -f crunch1.mk all
@${MAKE} -f crunch1.mk
strip --remove-section=.note --remove-section=.comment crunch1