2009-12-15 07:06:43 +03:00
|
|
|
# $NetBSD: Makefile,v 1.15 2009/12/15 04:06:43 mrg Exp $
|
2009-04-15 02:15:16 +04:00
|
|
|
|
|
|
|
WARNS?= 3 # XXX: -Wsign-compare issues ld.elf_so source
|
1996-12-16 22:59:55 +03:00
|
|
|
|
2009-01-06 06:59:56 +03:00
|
|
|
.include <bsd.own.mk> # for MKDYNAMICROOT definition
|
1996-12-16 22:59:55 +03:00
|
|
|
|
2009-01-06 06:59:56 +03:00
|
|
|
PROG= ldd
|
|
|
|
SRCS= ldd.c
|
|
|
|
MAN= ldd.1
|
|
|
|
|
2009-08-20 23:17:19 +04:00
|
|
|
|
2009-12-15 07:06:43 +03:00
|
|
|
SUBDIR+= elf32 elf64 elf32_compat
|
2009-01-06 06:59:56 +03:00
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} != "alpha")
|
|
|
|
LIB_ELF32DIR!= cd ${.CURDIR}/elf32 && ${PRINTOBJDIR}
|
|
|
|
EXTRA_LIBS+= ${LIB_ELF32DIR}/libldd_elf32.a
|
|
|
|
.endif
|
|
|
|
|
2009-12-13 11:50:56 +03:00
|
|
|
.if (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb")
|
|
|
|
LIB_ELF32COMPATDIR!= cd ${.CURDIR}/elf32_compat && ${PRINTOBJDIR}
|
|
|
|
EXTRA_LIBS+= ${LIB_ELF32COMPATDIR}/libldd_elf32_compat.a
|
|
|
|
.endif
|
|
|
|
|
2009-01-06 06:59:56 +03:00
|
|
|
.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64") || \
|
2009-12-13 11:50:56 +03:00
|
|
|
(${MACHINE_ARCH} == "x86_64") || (${MACHINE_ARCH} == "powerpc64") || \
|
|
|
|
(${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb")
|
2009-01-06 06:59:56 +03:00
|
|
|
LIB_ELF64DIR!= cd ${.CURDIR}/elf64 && ${PRINTOBJDIR}
|
|
|
|
EXTRA_LIBS+= ${LIB_ELF64DIR}/libldd_elf64.a
|
|
|
|
CPPFLAGS.ldd.c= -DELFSIZE=64
|
1996-12-17 06:42:44 +03:00
|
|
|
.else
|
2009-01-06 06:59:56 +03:00
|
|
|
CPPFLAGS.ldd.c= -DELFSIZE=32
|
|
|
|
.endif
|
|
|
|
|
|
|
|
LDADD+= ${EXTRA_LIBS}
|
|
|
|
DPADD+= ${EXTRA_LIBS}
|
|
|
|
|
|
|
|
.include "Makefile.common"
|
|
|
|
|
|
|
|
.if (${MKDYNAMICROOT} == "no")
|
|
|
|
LDSTATIC?= -static
|
1996-12-17 06:42:44 +03:00
|
|
|
.endif
|
|
|
|
|
2009-01-06 06:59:56 +03:00
|
|
|
.include <bsd.prog.mk>
|
1998-12-16 01:07:11 +03:00
|
|
|
.include <bsd.subdir.mk>
|