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