1 # $NetBSD: Makefile,v 1.11 2004/08/20 11:01:03 tron Exp $ 2 3 .include <bsd.own.mk> 4 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 5 6 WARNS= 1 7 DBG= -Os 8 9 RESCUEDIR= /rescue 10 CRUNCHBIN= rescue 11 CRUNCHENV= RESCUEDIR=${RESCUEDIR} 12 SMALLPROG= 0 13 LISTS= ${.CURDIR}/list 14 TARGETDIR= ${DESTDIR}/rescue 15 PARSELISTENV+= TARGETDIR=${TARGETDIR:Q} 16 17 18 .for f in bim edlabel fdisk ldconfig pdisk 19 PROG_${f}!= cd ${NETBSDSRCDIR}/sbin/${f} && ${MAKE} -V PROG 20 .if (${PROG_${f}} != "") 21 LISTS+= ${.CURDIR}/list.${f} 22 .endif 23 .endfor 24 25 .if (${OBJECT_FMT} == "ELF") 26 PARSELISTENV+= LDD_CMD=ldd_elf 27 .else 28 PARSELISTENV+= LDD_CMD=ldd_aout 29 .endif 30 31 CLEANFILES+= rescue.unstripped 32 33 .include "${DISTRIBDIR}/common/Makefile.crunch" 34 35 realall: ${CRUNCHBIN} 36 37 install: ${CRUNCHBIN} 38 ${PARSELIST} -v mode=install ${LISTS} | ${MAKE} -f - install 39 40 .include <bsd.prog.mk> 41