tools/llvm: Do not build with symbols
[minix3.git] / usr.bin / ldd / build / Makefile
blobc3b868f3ca1830cb96e5070f573f735c722ae6de
1 # $NetBSD: Makefile,v 1.1 2011/04/15 08:47:02 plunky Exp $
3 .include <bsd.own.mk> # for MKDYNAMICROOT definition
5 PROG= ldd
6 SRCS= ldd.c
7 MAN= ldd.1
9 .PATH: ${.CURDIR}/..
11 .if (${MACHINE_ARCH} != "alpha")
12 LIB_ELF32DIR!= cd ${.CURDIR}/../elf32 && ${PRINTOBJDIR}
13 EXTRA_LIBS+= ${LIB_ELF32DIR}/libldd_elf32.a
14 .endif
16 .if (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb")
17 LIB_ELF32COMPATDIR!= cd ${.CURDIR}/../elf32_compat && ${PRINTOBJDIR}
18 EXTRA_LIBS+= ${LIB_ELF32COMPATDIR}/libldd_elf32_compat.a
19 .endif
21 .if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64") || \
22 (${MACHINE_ARCH} == "x86_64") || (${MACHINE_ARCH} == "powerpc64") || \
23 (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb")
24 LIB_ELF64DIR!= cd ${.CURDIR}/../elf64 && ${PRINTOBJDIR}
25 EXTRA_LIBS+= ${LIB_ELF64DIR}/libldd_elf64.a
26 CPPFLAGS.ldd.c= -DELFSIZE=64
27 .else
28 CPPFLAGS.ldd.c= -DELFSIZE=32
29 .endif
31 LDADD+= ${EXTRA_LIBS}
32 DPADD+= ${EXTRA_LIBS}
34 .include "Makefile.common"
36 .if (${MKDYNAMICROOT} == "no")
37 LDSTATIC?= -static
38 .endif
40 .include <bsd.prog.mk>