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