freebsd-dev/release/picobsd/router/crunch1/Makefile

37 lines
716 B
Makefile
Raw Normal View History

1998-08-27 17:38:45 +00:00
#
# $Id: Makefile,v 1.1.1.1 1998/08/27 17:38:44 abial Exp $
1998-08-27 17:38:45 +00:00
#
SRC?=/usr/src
all: crunch
crunch:
@cat crunch.conf|sed -e "s@/usr/src@${SRC}@" >crunch1.conf
@crunchgen ./crunch1.conf
@${MAKE} -f crunch1.mk all \
"CFLAGS=${CFLAGS} -DCRUNCHED_BINARY -DNOSECURE -DNOCRYPT" #2>&1 >/dev/null
1998-08-27 17:38:45 +00:00
clean:
rm -f *.o *.stub *.lo *_stub.c *.mk \
crunch.cache \
crunch.mk \
crunch.c \
crunch1* \
crunch \
.tmp_* \
*.gz
install:
cp crunch1 /mnt/stand/crunch
chmod 555 /mnt/stand/crunch
for i in `crunchgen -l crunch1.conf` ; \
do \
ln /mnt/stand/crunch /mnt/stand/$${i}; \
done
rm /mnt/stand/crunch
# Install the MIB files
#cp mibs/*.txt /mnt/usr/local/share/snmp/mibs/
.include <bsd.prog.mk>