Remove building with NOCRYPTO option
[minix.git] / usr.bin / ldd / build / Makefile
blobefbd3fc2bebe8d4823e97fe18e57c200571ebbf6
1 # $NetBSD: Makefile,v 1.2 2014/03/02 03:55:19 matt 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 ${OBJECT_FMTS:Melf32} != ""
12 LIB_ELF32DIR!= cd ${.CURDIR}/../elf32 && ${PRINTOBJDIR}
13 EXTRA_LIBS+= ${LIB_ELF32DIR}/libldd_elf32.a
14 .else
15 CPPFLAGS.ldd.c+= -DELF64_ONLY
16 .endif
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
21 .endif
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
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>