# $NetBSD: Makefile,v 1.8 2009/01/06 03:59:56 mrg Exp $ .include # for MKDYNAMICROOT definition PROG= ldd SRCS= ldd.c MAN= ldd.1 SUBDIR= aout LIB_AOUTDIR!= cd ${.CURDIR}/aout && ${PRINTOBJDIR} EXTRA_LIBS+= ${LIB_AOUTDIR}/libldd_aout.a .if (${MACHINE_ARCH} != "alpha") SUBDIR+=elf32 LIB_ELF32DIR!= cd ${.CURDIR}/elf32 && ${PRINTOBJDIR} EXTRA_LIBS+= ${LIB_ELF32DIR}/libldd_elf32.a .endif .if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64") || \ (${MACHINE_ARCH} == "x86_64") || (${MACHINE_ARCH} == "powerpc64") SUBDIR+=elf64 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 .include