Makefile revision 1.3
1# $NetBSD: Makefile,v 1.3 2002/10/03 01:11:37 lukem Exp $ 2 3.include <bsd.own.mk> 4.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 5 6WARNS= 1 7DBG= -Os 8 9CRUNCHBIN= rescue 10CRUNCHENV= RESCUEDIR=/rescue 11LISTS= ${.CURDIR}/list 12TARGETDIR= ${DESTDIR}/rescue 13PARSELISTENV+= TARGETDIR=${TARGETDIR:Q} 14 15 16.for f in bim edlabel fdisk ldconfig pdisk 17PROG_${f}!= cd ${NETBSDSRCDIR}/sbin/${f} && ${MAKE} -V PROG 18.if (${PROG_${f}} != "") 19LISTS+= ${.CURDIR}/list.${f} 20.endif 21.endfor 22 23.if (${OBJECT_FMT} == "ELF") 24PARSELISTENV+= LDD_CMD=ldd_elf 25.else 26PARSELISTENV+= LDD_CMD=ldd_aout 27.endif 28 29 30.include "${DISTRIBDIR}/common/Makefile.crunch" 31 32.if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel" # { 33 34realall install: 35 @echo "WARNING: src/rescue not built on ${MACHINE_ARCH} due to broken crunchgen" 36 37.else # } { 38 39realall: ${CRUNCHBIN} 40 41install: ${CRUNCHBIN} 42 ${PARSELIST} -v mode=install ${LISTS} | ${MAKE} -f - install 43 44.endif # } 45 46.include <bsd.prog.mk> 47