1999-06-26 15:28:26 +04:00
|
|
|
# $NetBSD: Makefile,v 1.8 1999/06/26 11:28:26 hannken 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
|
|
|
|
1996-12-17 06:42:44 +03:00
|
|
|
.if (${MACHINE_ARCH} == "alpha")
|
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
|
1999-06-26 15:28:26 +04:00
|
|
|
.if (${MACHINE_ARCH} == "sparc")
|
|
|
|
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
|
|
|
|
.PATH: ${LDELFSO}
|
1996-12-17 06:42:44 +03:00
|
|
|
|
1996-12-16 22:59:55 +03:00
|
|
|
LDFLAGS+= -static
|
|
|
|
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|