blob: 000be6876bf58344b2f01c6a70e612a09597e820 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#
# $Id: Makefile,v 1.3.2.1 1999/05/07 10:02:34 abial Exp $
#
NOCRYPT?= yes
SRC?=/usr/src
all: crunch
crunch:
if [ "${INIT}" = "init" ]; then \
echo "progs init getty" >crunch1.conf ; \
else \
echo "progs ${INIT}" >crunch1.conf ; \
fi;
@cat crunch.conf|sed -e "s@/usr/src@${SRC}@" >>crunch1.conf
@crunchgen ${.CURDIR}/crunch1.conf
@${MAKE} -DRELEASE_CRUNCH -f crunch1.mk all NOCRYPT=yes \
"CFLAGS=${CFLAGS} -DCRUNCHED_BINARY" #2>&1 >/dev/null
clean:
rm -f *.o *.stub *.lo *_stub.c *.mk \
crunch.cache \
crunch.mk \
crunch.c \
crunch \
crunch1* \
.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
.include <bsd.prog.mk>
|