39 lines
780 B
Makefile
39 lines
780 B
Makefile
# $NetBSD: Makefile,v 1.7 2003/01/29 11:32:45 simonb Exp $
|
|
|
|
.include <bsd.own.mk>
|
|
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
|
|
|
WARNS= 1
|
|
DBG= -Os
|
|
|
|
CRUNCHBIN= rescue
|
|
CRUNCHENV= RESCUEDIR=/rescue
|
|
SMALLPROG= 0
|
|
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"
|
|
|
|
realall: ${CRUNCHBIN}
|
|
|
|
install: ${CRUNCHBIN}
|
|
${PARSELIST} -v mode=install ${LISTS} | ${MAKE} -f - install
|
|
|
|
.include <bsd.prog.mk>
|