2001-12-17 23:27:39 +03:00
|
|
|
# $NetBSD: Make.crunch,v 1.2 2001/12/17 20:27:39 fredette Exp $
|
2001-05-18 04:16:36 +04: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
|
|
|
|
CRUNCHGEN?= crunchgen
|
|
|
|
STRIP?= strip
|
|
|
|
|
|
|
|
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...
|
|
|
|
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
|
|
|
|
-rm -f ${CBIN}
|
|
|
|
${MAKE} -f ${CBIN}.mk all STRIP=true
|
|
|
|
cp -p ${CBIN} ${CBIN}.syms
|
|
|
|
${STRIP} ${CBIN}
|
|
|
|
|
|
|
|
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
|
2001-12-17 23:27:39 +03:00
|
|
|
${CRUNCHGEN} -D ${TOP}/../.. -L ${DESTDIR}/usr/lib ${CRUNCHCONF}
|
2001-05-18 04:16:36 +04:00
|
|
|
|