2002-10-03 05:11:37 +04:00
|
|
|
# $NetBSD: Makefile,v 1.3 2002/10/03 01:11:37 lukem Exp $
|
2002-08-22 05:23:46 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
|
|
|
|
|
|
|
WARNS= 1
|
|
|
|
DBG= -Os
|
|
|
|
|
|
|
|
CRUNCHBIN= rescue
|
2002-08-23 07:25:21 +04:00
|
|
|
CRUNCHENV= RESCUEDIR=/rescue
|
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
|
|
|
|
|
|
|
|
|
|
|
|
.include "${DISTRIBDIR}/common/Makefile.crunch"
|
|
|
|
|
2002-10-03 05:11:37 +04:00
|
|
|
.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel" # {
|
|
|
|
|
|
|
|
realall install:
|
|
|
|
@echo "WARNING: src/rescue not built on ${MACHINE_ARCH} due to broken crunchgen"
|
|
|
|
|
|
|
|
.else # } {
|
|
|
|
|
2002-08-22 05:23:46 +04:00
|
|
|
realall: ${CRUNCHBIN}
|
|
|
|
|
|
|
|
install: ${CRUNCHBIN}
|
|
|
|
${PARSELIST} -v mode=install ${LISTS} | ${MAKE} -f - install
|
|
|
|
|
2002-10-03 05:11:37 +04:00
|
|
|
.endif # }
|
|
|
|
|
2002-08-22 05:23:46 +04:00
|
|
|
.include <bsd.prog.mk>
|