Home | History | Annotate | Line # | Download | only in rescue
Makefile revision 1.13
      1 #	$NetBSD: Makefile,v 1.13 2005/01/10 04:00:50 lukem 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 ${USE_INET6} != "no"
     26 LISTS+=		${.CURDIR}/list.inet6
     27 .endif
     28 
     29 .if (${OBJECT_FMT} == "ELF")
     30 PARSELISTENV+=	LDD_CMD=ldd_elf
     31 .else
     32 PARSELISTENV+=	LDD_CMD=ldd_aout
     33 .endif
     34 
     35 CLEANFILES+=	rescue.unstripped
     36 
     37 .include "${DISTRIBDIR}/common/Makefile.crunch"
     38 
     39 realall: ${CRUNCHBIN}
     40 
     41 install: ${CRUNCHBIN}
     42 	${PARSELIST} -v mode=install ${LISTS} | ${MAKE} -f - install
     43 
     44 .include <bsd.prog.mk>
     45