diff options
author | luigi <luigi@FreeBSD.org> | 2000-02-08 08:27:55 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2000-02-08 08:27:55 +0000 |
commit | 7a9620709ab4b4fce803a18990dc04863334c3a7 (patch) | |
tree | 88d3a957d2475e9eec09cdb8be3f90206065dd7b /release/picobsd | |
parent | 96619dbf47a98438423057a699d5f556ad8184b2 (diff) | |
download | FreeBSD-src-7a9620709ab4b4fce803a18990dc04863334c3a7.zip FreeBSD-src-7a9620709ab4b4fce803a18990dc04863334c3a7.tar.gz |
The Makefile for building the crunched image is the same
for almost all images, so let's have a centralized copy.
Approved-By: jordan
Diffstat (limited to 'release/picobsd')
-rw-r--r-- | release/picobsd/build/Makefile.crunch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/release/picobsd/build/Makefile.crunch b/release/picobsd/build/Makefile.crunch new file mode 100644 index 0000000..81fd6a4 --- /dev/null +++ b/release/picobsd/build/Makefile.crunch @@ -0,0 +1,44 @@ +# +# $FreeBSD$ +# +SRC?=/usr/src +CRUNCHFLAGS+= -DNOPAM -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT + +all: crunch + +crunch: + @cat crunch.conf|sed -e "s@/usr/src@${SRC}@" >crunch1.conf + @( if [ -f crunch.inc ] ; then \ + crunchgen -h ./crunch.inc ./crunch1.conf ; \ + else \ + crunchgen -h ../../build/crunch.inc ./crunch1.conf ; \ + fi ) + @${MAKE} -f crunch1.mk $(CRUNCHFLAGS) all \ + "CFLAGS=${CFLAGS} ${CRUNCHFLAGS}" #2>&1 >/dev/null + 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 /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 + #mkdir -p /mnt/usr/local/share/snmp/mibs + #cp ../../net/crunch1/mibs/*.txt /mnt/usr/local/share/snmp/mibs/ + + +.include <bsd.prog.mk> |