2002-10-17 05:49:18 +04:00
|
|
|
# $NetBSD: Makefile,v 1.6 2002/10/17 01:49:18 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-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
|
|
|
|
|
|
|
|
|
|
|
|
.include "${DISTRIBDIR}/common/Makefile.crunch"
|
|
|
|
|
2002-10-06 21:28:46 +04:00
|
|
|
# XXX Make sure to update distrib/sets/makeflist when this conditional
|
|
|
|
# XXX is changed or removed.
|
2002-10-06 21:19:12 +04:00
|
|
|
.if ${MACHINE_CPU} == "mips" # {
|
2002-10-03 05:11:37 +04:00
|
|
|
|
|
|
|
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>
|