1# $NetBSD: Makefile,v 1.15 2009/12/15 04:06:43 mrg Exp $ 2 3.include <bsd.own.mk> # for MKDYNAMICROOT definition 4 5PROG= ldd 6SRCS= ldd.c 7MAN= ldd.1 8 9.PATH: ${.CURDIR}/.. 10 11.if (${MACHINE_ARCH} != "alpha") 12LIB_ELF32DIR!= cd ${.CURDIR}/../elf32 && ${PRINTOBJDIR} 13EXTRA_LIBS+= ${LIB_ELF32DIR}/libldd_elf32.a 14.endif 15 16.if (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb") 17LIB_ELF32COMPATDIR!= cd ${.CURDIR}/../elf32_compat && ${PRINTOBJDIR} 18EXTRA_LIBS+= ${LIB_ELF32COMPATDIR}/libldd_elf32_compat.a 19.endif 20 21.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64") || \ 22 (${MACHINE_ARCH} == "x86_64") || (${MACHINE_ARCH} == "powerpc64") || \ 23 (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb") 24LIB_ELF64DIR!= cd ${.CURDIR}/../elf64 && ${PRINTOBJDIR} 25EXTRA_LIBS+= ${LIB_ELF64DIR}/libldd_elf64.a 26CPPFLAGS.ldd.c= -DELFSIZE=64 27.else 28CPPFLAGS.ldd.c= -DELFSIZE=32 29.endif 30 31LDADD+= ${EXTRA_LIBS} 32DPADD+= ${EXTRA_LIBS} 33 34.include "Makefile.common" 35 36.if (${MKDYNAMICROOT} == "no") 37LDSTATIC?= -static 38.endif 39 40.include <bsd.prog.mk> 41