vm: reduce noise in merged pagetable.c
[minix.git] / usr.bin / ldd / Makefile
blob351d3787d2301722b1ced1cc4b1ba69883c1ad28
1 # $NetBSD: Makefile,v 1.15 2009/12/15 04:06:43 mrg Exp $
3 WARNS?= 3 # XXX: -Wsign-compare issues ld.elf_so source
5 .include <bsd.own.mk> # for MKDYNAMICROOT definition
7 PROG= ldd
8 SRCS= ldd.c
9 MAN= ldd.1
12 SUBDIR+= elf32 elf64 elf32_compat
14 .if (${MACHINE_ARCH} != "alpha")
15 LIB_ELF32DIR!= cd ${.CURDIR}/elf32 && ${PRINTOBJDIR}
16 EXTRA_LIBS+= ${LIB_ELF32DIR}/libldd_elf32.a
17 .endif
19 .if (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb")
20 LIB_ELF32COMPATDIR!= cd ${.CURDIR}/elf32_compat && ${PRINTOBJDIR}
21 EXTRA_LIBS+= ${LIB_ELF32COMPATDIR}/libldd_elf32_compat.a
22 .endif
24 .if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64") || \
25 (${MACHINE_ARCH} == "x86_64") || (${MACHINE_ARCH} == "powerpc64") || \
26 (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb")
27 LIB_ELF64DIR!= cd ${.CURDIR}/elf64 && ${PRINTOBJDIR}
28 EXTRA_LIBS+= ${LIB_ELF64DIR}/libldd_elf64.a
29 CPPFLAGS.ldd.c= -DELFSIZE=64
30 .else
31 CPPFLAGS.ldd.c= -DELFSIZE=32
32 .endif
34 LDADD+= ${EXTRA_LIBS}
35 DPADD+= ${EXTRA_LIBS}
37 .include "Makefile.common"
39 .if (${MKDYNAMICROOT} == "no")
40 LDSTATIC?= -static
41 .endif
43 .include <bsd.prog.mk>
44 .include <bsd.subdir.mk>