# $NetBSD: Makefile,v 1.7 2021/04/25 23:52:59 christos 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 ${MKCOMPAT} != "no" . if ${MACHINE_MIPS64} LIB_ELF32COMPATDIR!= cd ${.CURDIR}/../elf32_compat && ${PRINTOBJDIR} EXTRA_LIBS+= ${LIB_ELF32COMPATDIR}/libldd_elf32_compat.a . endif .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> |