NetBSD/usr.bin/ldd/ldd_elf/Makefile

27 lines
505 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.8 1999/06/26 11:28:26 hannken 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}/..
.if (${MACHINE_ARCH} == "alpha")
CPPFLAGS+= -DELFSIZE=64
.else
CPPFLAGS+= -DELFSIZE=32
.endif
.if (${MACHINE_ARCH} == "sparc")
CPPFLAGS+= -DVARPSZ
.endif
LDELFSO=${.CURDIR}/../../../libexec/ld.elf_so
CPPFLAGS+= -I${LDELFSO} -DLIBDIR=\"${LIBDIR}\" # -DDEBUG
.PATH: ${LDELFSO}
LDFLAGS+= -static
.include <bsd.prog.mk>