1 # $NetBSD: Makefile,v 1.23 2009/08/21 15:16:45 he Exp $
4 .
include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
8 .if
${MACHINE_ARCH} != "m68000"
12 CRUNCHGEN_FLAGS
=-d
"${DBG}"
16 CRUNCHENV
= RESCUEDIR
=${RESCUEDIR}
18 LISTS
= ${.CURDIR
}/list
19 TARGETDIR
= ${DESTDIR}/rescue
20 PARSELISTENV
+= TARGETDIR
=${TARGETDIR
:Q
}
22 .for f in edlabel ldconfig pdisk
23 PROG_
${f}!= cd
${NETBSDSRCDIR}/sbin
/${f} && ${MAKE} -V PROG
24 .if
(${PROG_
${f}} != "")
25 LISTS
+= ${.CURDIR
}/list.
${f}
29 .if
${USE_INET6} != "no"
30 LISTS
+= ${.CURDIR
}/list.inet6
33 .if
${MKCRYPTO} != "no"
34 LISTS
+= ${.CURDIR
}/list.crypto
35 CRUNCHENV
+= MKKERBEROS
=no
# for ssh
38 LISTS
+= ${.CURDIR
}/list.ldd
39 LDD_ELF32DIR
!= cd
${NETBSDSRCDIR}/usr.bin
/ldd
/elf32
&& ${PRINTOBJDIR}
40 LDD_ELF64DIR
!= cd
${NETBSDSRCDIR}/usr.bin
/ldd
/elf64
&& ${PRINTOBJDIR}
41 PARSELISTENV
+= LDD_ELF32DIR
=${LDD_ELF32DIR} LDD_ELF64DIR
=${LDD_ELF64DIR}
43 # Specially built objects to override the behaviour of
44 # various library functions
48 .PATH
: ${NETBSDSRCDIR}/lib
/libc
/net
49 CPPFLAGS.rcmd.c
+=-I
${NETBSDSRCDIR}/lib
/libc
/include -DRESCUEDIR
=\"${RESCUEDIR}\"
51 LIBOVERRIDE
= liboverride.o
52 ${LIBOVERRIDE}: ${OVERRIDEOBJS}
54 ${LD} -r
-o
$@
${OVERRIDEOBJS}
56 CLEANFILES
+= ${OVERRIDEOBJS} ${LIBOVERRIDE}
58 ${CRUNCHBIN}: ${LIBOVERRIDE}
61 # The primary target ...
64 CLEANFILES
+= rescue.unstripped
66 .
include "${DISTRIBDIR}/common/Makefile.crunch"
71 # XXX this MKMSG doesn't line up
72 ${_MKMSG} "populate ${TARGETDIR}"
73 ${PARSELIST} -v mode
=install ${LISTS} |
${MAKE} -f
- install
75 .
include <bsd.prog.mk
>