2004-08-20 15:01:03 +04:00
|
|
|
# $NetBSD: Makefile,v 1.11 2004/08/20 11:01:03 tron Exp $
|
2002-08-22 05:23:46 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
|
|
|
|
|
|
|
WARNS= 1
|
|
|
|
DBG= -Os
|
|
|
|
|
2003-05-26 13:46:47 +04:00
|
|
|
RESCUEDIR= /rescue
|
2002-08-22 05:23:46 +04:00
|
|
|
CRUNCHBIN= rescue
|
2003-05-26 13:46:47 +04:00
|
|
|
CRUNCHENV= RESCUEDIR=${RESCUEDIR}
|
2002-10-17 05:49:18 +04:00
|
|
|
SMALLPROG= 0
|
2002-08-22 05:23:46 +04:00
|
|
|
LISTS= ${.CURDIR}/list
|
|
|
|
TARGETDIR= ${DESTDIR}/rescue
|
|
|
|
PARSELISTENV+= TARGETDIR=${TARGETDIR:Q}
|
|
|
|
|
|
|
|
|
|
|
|
.for f in bim edlabel fdisk ldconfig pdisk
|
|
|
|
PROG_${f}!= cd ${NETBSDSRCDIR}/sbin/${f} && ${MAKE} -V PROG
|
|
|
|
.if (${PROG_${f}} != "")
|
|
|
|
LISTS+= ${.CURDIR}/list.${f}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.if (${OBJECT_FMT} == "ELF")
|
|
|
|
PARSELISTENV+= LDD_CMD=ldd_elf
|
|
|
|
.else
|
|
|
|
PARSELISTENV+= LDD_CMD=ldd_aout
|
|
|
|
.endif
|
|
|
|
|
2003-07-14 13:00:33 +04:00
|
|
|
CLEANFILES+= rescue.unstripped
|
2003-05-26 13:46:47 +04:00
|
|
|
|
2002-08-22 05:23:46 +04:00
|
|
|
.include "${DISTRIBDIR}/common/Makefile.crunch"
|
|
|
|
|
|
|
|
realall: ${CRUNCHBIN}
|
|
|
|
|
|
|
|
install: ${CRUNCHBIN}
|
|
|
|
${PARSELIST} -v mode=install ${LISTS} | ${MAKE} -f - install
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|