NetBSD-5.0.2/usr.bin/ldd/elf64/Makefile

#	$NetBSD: Makefile,v 1.4.2.2 2009/01/16 22:21:30 bouyer Exp $

CPPFLAGS+=	-DELFSIZE=64
LIB=	ldd_elf64

# XXX Force one member
SRCS=	dummy.c

LIBISPRIVATE=	yes
.PATH: ${.CURDIR}/..

.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64") || \
    (${MACHINE_ARCH} == "x86_64") || (${MACHINE_ARCH} == "powerpc64")

# XXX we need to make sure that we don't accidentally get the elf32
# XXX versions of these.

RTLD_FUNCS	= \
	_rtld_expand_path \
	_rtld_digest_dynamic \
	_rtld_digest_phdr \
	_rtld_load_needed_objects \
	_rtld_load_object \
	_rtld_map_object \
	_rtld_obj_free \
	_rtld_obj_new \
	_rtld_add_paths \
	_rtld_process_hints \
	_rtld_sysctl \
	_rtld_load_library

.for _d in ${RTLD_FUNCS}
CPPFLAGS+=	-D${_d}=_elf64_${_d}
.endfor

.include "../Makefile.elf"

.endif

.include <bsd.lib.mk>