freebsd-nq/release/picobsd/build/Makefile.crunch
Josef Karthauser c6e77fea54 Crunchgen now has the necessary magic to include the make hooks that
munge_crunchmk was adding for us.
2000-11-03 15:50:04 +00:00

44 lines
994 B
Makefile

#
# $FreeBSD$
#
SRC?=/usr/src
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 ; \
else \
crunchgen -o ./crunch1.conf ; \
fi )
@perl -pi -e 's#${OBJ}#${PICO_OBJ}#g' crunch1.mk ;
@env MAKEOBJDIRPREFIX=${PICO_OBJ} ${MAKE} -f crunch1.mk all
strip --remove-section=.note --remove-section=.comment crunch1
clean:
rm -f *.o *.stub *.lo *_stub.c *.mk \
crunch.cache \
crunch.mk \
crunch.c \
crunch1* \
crunch \
.tmp_* \
*.gz
install:
cp crunch1 ${MFS_MOUNTPOINT}/stand/crunch
chmod 555 ${MFS_MOUNTPOINT}/stand/crunch
for i in `crunchgen -l crunch1.conf` ; \
do \
ln ${MFS_MOUNTPOINT}/stand/crunch ${MFS_MOUNTPOINT}/stand/$${i}; \
done
rm ${MFS_MOUNTPOINT}/stand/crunch
# Install the MIB files
#mkdir -p ${MFS_MOUNTPOINT}/usr/local/share/snmp/mibs
#cp ../../net/crunch1/mibs/*.txt ${MFS_MOUNTPOINT}/usr/local/share/snmp/mibs/
.include <bsd.prog.mk>