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