1 # $NetBSD: Makefile,v 1.2 2014/03/02 03:55:19 matt Exp $
3 .
include <bsd.own.mk
> # for MKDYNAMICROOT definition
11 .if
${OBJECT_FMTS
:Melf32
} != ""
12 LIB_ELF32DIR
!= cd
${.CURDIR
}/..
/elf32
&& ${PRINTOBJDIR}
13 EXTRA_LIBS
+= ${LIB_ELF32DIR}/libldd_elf32.a
15 CPPFLAGS.ldd.c
+= -DELF64_ONLY
18 .if
(${MACHINE_ARCH} == "mips64el") ||
(${MACHINE_ARCH} == "mips64eb")
19 LIB_ELF32COMPATDIR
!= cd
${.CURDIR
}/..
/elf32_compat
&& ${PRINTOBJDIR}
20 EXTRA_LIBS
+= ${LIB_ELF32COMPATDIR}/libldd_elf32_compat.a
23 .if
${OBJECT_FMTS
:Melf64
} != ""
24 LIB_ELF64DIR
!= cd
${.CURDIR
}/..
/elf64
&& ${PRINTOBJDIR}
25 EXTRA_LIBS
+= ${LIB_ELF64DIR}/libldd_elf64.a
26 CPPFLAGS.ldd.c
+= -DELFSIZE
=64
28 CPPFLAGS.ldd.c
+= -DELFSIZE
=32
34 .
include "Makefile.common"
36 .if
(${MKDYNAMICROOT} == "no")
40 .
include <bsd.prog.mk
>