1999-12-10 21:52:18 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
SRC?=/usr/src
|
|
|
|
|
|
|
|
all: crunch install
|
|
|
|
|
|
|
|
crunch:
|
|
|
|
@cat crunch.conf|sed -e "s@/usr/src@${SRC}@" >crunch2.conf
|
|
|
|
@crunchgen ./crunch2.conf
|
1999-12-20 02:12:27 +00:00
|
|
|
${MAKE} -f crunch2.mk RELEASE_CRUNCH= -DNOPAM all \
|
2001-04-03 13:34:35 +00:00
|
|
|
"CFLAGS=${CFLAGS} -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT"
|
1999-12-10 21:52:18 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.stub *.lo *_stub.c *.mkcrunch.cache Make.log *~
|
|
|
|
rm -f crunch.mk crunch.c crunch2* crunch .tmp_* *.gz
|
|
|
|
rm -rf floppy2
|
|
|
|
|
|
|
|
install: floppy2
|
|
|
|
rm -rf floppy2/sbin/*
|
|
|
|
cp crunch2 floppy2/sbin/crunch
|
|
|
|
chmod 555 floppy2/sbin/crunch
|
|
|
|
for i in `crunchgen -l crunch2.conf` ; \
|
|
|
|
do \
|
|
|
|
ln floppy2/sbin/crunch floppy2/sbin/$${i}; \
|
|
|
|
done
|
|
|
|
rm floppy2/sbin/crunch
|
|
|
|
|
|
|
|
floppy2:
|
|
|
|
mkdir -p $@/sbin
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|