freebsd-dev/release/picobsd/custom/crunch2/Makefile
Greg Lehey b8b1ea6738 Define RELEASE_CRUNCH as a make variable. Previously it was defined
as a preprocessor variable only.  This broke the build of ppp.  This
problem still exists in the old-style directories.

Debugging-help-supplied-by: brian
1999-12-20 02:12:27 +00:00

33 lines
704 B
Makefile

#
# $FreeBSD$
#
SRC?=/usr/src
all: crunch install
crunch:
@cat crunch.conf|sed -e "s@/usr/src@${SRC}@" >crunch2.conf
@crunchgen ./crunch2.conf
${MAKE} -f crunch2.mk RELEASE_CRUNCH= -DNOPAM all \
"CFLAGS=${CFLAGS} -DRELEASE_CRUNCH -DCRUNCHED_BINARY -DNOSECURE -DNOCRYPT"
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>