2000-07-11 02:45:25 +04:00
|
|
|
# $NetBSD: Makefile,v 1.11 2000/07/10 22:45:25 eeh Exp $
|
1996-12-16 22:59:55 +03:00
|
|
|
|
|
|
|
PROG= ldd
|
|
|
|
SRCS= ldd.c \
|
|
|
|
xmalloc.c debug.c map_object.c load.c search.c headers.c paths.c
|
1998-12-18 01:34:55 +03:00
|
|
|
MAN= ldd.1
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/..
|
1996-12-16 22:59:55 +03:00
|
|
|
|
2000-07-11 02:45:25 +04:00
|
|
|
.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64")
|
1997-10-11 23:13:39 +04:00
|
|
|
CPPFLAGS+= -DELFSIZE=64
|
1996-12-17 06:42:44 +03:00
|
|
|
.else
|
1997-10-11 23:13:39 +04:00
|
|
|
CPPFLAGS+= -DELFSIZE=32
|
1996-12-17 06:42:44 +03:00
|
|
|
.endif
|
2000-07-11 02:45:25 +04:00
|
|
|
.if (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "sparc64")
|
1999-06-26 15:28:26 +04:00
|
|
|
CPPFLAGS+= -DVARPSZ
|
|
|
|
.endif
|
1996-12-17 06:42:44 +03:00
|
|
|
|
1998-12-18 01:34:55 +03:00
|
|
|
LDELFSO=${.CURDIR}/../../../libexec/ld.elf_so
|
1997-10-11 23:13:39 +04:00
|
|
|
CPPFLAGS+= -I${LDELFSO} -DLIBDIR=\"${LIBDIR}\" # -DDEBUG
|
1999-07-06 12:04:31 +04:00
|
|
|
CPPFLAGS+= -D_RTLD_SOURCE
|
1997-10-11 23:13:39 +04:00
|
|
|
.PATH: ${LDELFSO}
|
1996-12-17 06:42:44 +03:00
|
|
|
|
2000-02-20 10:14:13 +03:00
|
|
|
LDSTATIC?= -static
|
1996-12-16 22:59:55 +03:00
|
|
|
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|