1995-11-22 00:18:48 +03:00
|
|
|
# $NetBSD: Make.crunch,v 1.3 1995/11/21 21:18:48 gwr Exp $
|
1995-10-09 02:07:44 +03:00
|
|
|
#
|
|
|
|
# This is included by subdirectories building a crunched binary.
|
|
|
|
# Assume the following are already defined: TOP, CBIN
|
|
|
|
|
|
|
|
CBIN?= xxx-crunched
|
|
|
|
CRUNCHCONF= ${TOP}/common/${CBIN}.conf
|
|
|
|
|
1995-10-13 19:38:20 +03:00
|
|
|
CLEANFILES+= ${CBIN} ${CBIN}.c ${CBIN}.cache ${CBIN}.mk ${CBIN}.syms
|
|
|
|
CLEANFILES+= *.lo *_stub.o *_stub.c
|
|
|
|
|
|
|
|
# Keep a copy that is not stripped so I can debug...
|
1995-10-09 02:07:44 +03:00
|
|
|
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
|
|
|
|
make -f ${CBIN}.mk all STRIP=true
|
|
|
|
cp -p ${CBIN} ${CBIN}.syms
|
|
|
|
strip ${CBIN}
|
|
|
|
|
|
|
|
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
|
1995-11-22 00:18:48 +03:00
|
|
|
crunchgen -D ${BSDSRCDIR} -L ${DESTDIR}/usr/lib ${CRUNCHCONF}
|
1995-10-09 02:07:44 +03:00
|
|
|
|