NetBSD/usr.bin/ldd/ldd_elf/Makefile

29 lines
634 B
Makefile
Raw Normal View History

2001-07-13 21:00:35 +04:00
# $NetBSD: Makefile,v 1.12 2001/07/13 17:00:35 matt Exp $
PROG= ldd
SRCS= ldd.c \
xmalloc.c debug.c map_object.c load.c search.c headers.c paths.c
MAN= ldd.1
.PATH: ${.CURDIR}/..
2000-07-11 02:45:25 +04:00
.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64")
CPPFLAGS+= -DELFSIZE=64
.else
CPPFLAGS+= -DELFSIZE=32
.endif
2001-07-13 21:00:35 +04:00
.if (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "sparc64") || \
(${MACHINE_ARCH} == "arm")
CPPFLAGS+= -DVARPSZ
.endif
LDELFSO=${.CURDIR}/../../../libexec/ld.elf_so
CPPFLAGS+= -I${LDELFSO} -DLIBDIR=\"${LIBDIR}\" # -DDEBUG
CPPFLAGS+= -D_RTLD_SOURCE
.PATH: ${LDELFSO}
2000-02-20 10:14:13 +03:00
LDSTATIC?= -static
.include <bsd.prog.mk>