unstack, sort: cleanup and improvement
[minix.git] / usr.bin / ldd / elf64 / Makefile
blob441b3693b2cf4f160a49f95c4944f52f87271e48
1 # $NetBSD: Makefile,v 1.5 2009/12/13 08:50:57 mrg Exp $
3 .include <bsd.own.mk>
5 CPPFLAGS+= -DELFSIZE=64
6 LIB= ldd_elf64
8 # XXX Force one member
9 SRCS= dummy.c
11 LIBISPRIVATE= yes
12 .PATH: ${.CURDIR}/..
14 .if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64") || \
15 (${MACHINE_ARCH} == "x86_64") || (${MACHINE_ARCH} == "powerpc64") || \
16 (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb")
18 # XXX we need to make sure that we don't accidentally get the elf32
19 # XXX versions of these.
21 RTLD_FUNCS = \
22 _rtld_expand_path \
23 _rtld_digest_dynamic \
24 _rtld_digest_phdr \
25 _rtld_load_needed_objects \
26 _rtld_load_object \
27 _rtld_map_object \
28 _rtld_obj_free \
29 _rtld_obj_new \
30 _rtld_add_paths \
31 _rtld_process_hints \
32 _rtld_sysctl \
33 _rtld_load_library
35 .for _d in ${RTLD_FUNCS}
36 CPPFLAGS+= -D${_d}=_elf64_${_d}
37 .endfor
39 .if (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb")
40 CPPFLAGS+= -DRTLD_ARCH_SUBDIR=\"${MLIBDIR}\"
41 .endif
43 .include "../Makefile.elf"
45 .endif
47 .include <bsd.lib.mk>