diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-02-01 22:55:37 +0000 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-02-03 18:22:05 -0600 |
commit | 5b57d28ffb6e1ef86b50f7d05d977826eae89bfe (patch) | |
tree | 154a22fe556b49e6927197336f8bf91b12eacd5e /usr.bin/ldd/build/Makefile | |
download | userland-5b57d28ffb6e1ef86b50f7d05d977826eae89bfe.tar.gz userland-5b57d28ffb6e1ef86b50f7d05d977826eae89bfe.tar.bz2 userland-5b57d28ffb6e1ef86b50f7d05d977826eae89bfe.tar.xz userland-5b57d28ffb6e1ef86b50f7d05d977826eae89bfe.zip |
initial population
Diffstat (limited to 'usr.bin/ldd/build/Makefile')
-rw-r--r-- | usr.bin/ldd/build/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/usr.bin/ldd/build/Makefile b/usr.bin/ldd/build/Makefile new file mode 100644 index 0000000..312eb00 --- /dev/null +++ b/usr.bin/ldd/build/Makefile @@ -0,0 +1,42 @@ +# $NetBSD: Makefile,v 1.5 2019/01/27 05:17:48 kre Exp $ + +NOSANITIZER= # defined + +.include <bsd.own.mk> # for MKDYNAMICROOT definition + +PROG= ldd +SRCS= ldd.c +MAN= ldd.1 + +.PATH: ${.CURDIR}/.. + +.if ${OBJECT_FMTS:Melf32} != "" +LIB_ELF32DIR!= cd ${.CURDIR}/../elf32 && ${PRINTOBJDIR} +EXTRA_LIBS+= ${LIB_ELF32DIR}/libldd_elf32.a +.else +CPPFLAGS.ldd.c+= -DELF64_ONLY +.endif + +.if (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb") +LIB_ELF32COMPATDIR!= cd ${.CURDIR}/../elf32_compat && ${PRINTOBJDIR} +EXTRA_LIBS+= ${LIB_ELF32COMPATDIR}/libldd_elf32_compat.a +.endif + +.if ${OBJECT_FMTS:Melf64} != "" +LIB_ELF64DIR!= cd ${.CURDIR}/../elf64 && ${PRINTOBJDIR} +EXTRA_LIBS+= ${LIB_ELF64DIR}/libldd_elf64.a +CPPFLAGS.ldd.c+= -DELFSIZE=64 +.else +CPPFLAGS.ldd.c+= -DELFSIZE=32 +.endif + +LDADD+= ${EXTRA_LIBS} +DPADD+= ${EXTRA_LIBS} + +.include "Makefile.common" + +.if (${MKDYNAMICROOT} == "no") +LDSTATIC?= -static +.endif + +.include <bsd.prog.mk> |