2002-09-18 18:00:33 +04:00
|
|
|
# $NetBSD: Makefile,v 1.15 2002/09/18 14:00:38 lukem Exp $
|
2002-08-27 18:46:11 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk> # for MKDYNAMICROOT definition
|
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
|
|
|
|
2002-01-23 04:38:57 +03:00
|
|
|
.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64") || \
|
|
|
|
(${MACHINE_ARCH} == "x86_64")
|
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
|
2001-07-13 21:00:35 +04:00
|
|
|
.if (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "sparc64") || \
|
2002-01-23 04:38:57 +03:00
|
|
|
(${MACHINE_ARCH} == "arm") || (${MACHINE_ARCH} == "m68k") || \
|
|
|
|
(${MACHINE_ARCH} == "powerpc")
|
1999-06-26 15:28:26 +04:00
|
|
|
CPPFLAGS+= -DVARPSZ
|
|
|
|
.endif
|
1996-12-17 06:42:44 +03:00
|
|
|
|
2002-09-18 18:00:33 +04:00
|
|
|
LDELFSO=${NETBSDSRCDIR}/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
|
|
|
|
2002-08-27 18:46:11 +04:00
|
|
|
.if (${MKDYNAMICROOT} == "no")
|
2000-02-20 10:14:13 +03:00
|
|
|
LDSTATIC?= -static
|
2002-08-27 18:46:11 +04:00
|
|
|
.endif
|
1996-12-16 22:59:55 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|