compat/libexec/ld.elf_so/Makefile
author snj <snj@NetBSD.org>
Thu, 06 Nov 2008 23:51:26 +0000
branchnetbsd-5
changeset 257658 053555f77a5d
parent 174483 09f928cc0dc2
child 259889 53bb8430be14
child 282084 084e962831d8
permissions -rw-r--r--
Pull up following revision(s) (requested by mrg in ticket #20): compat/libexec/ld.elf_so/Makefile: revision 1.2 distrib/sets/lists/base/md.shark: revision 1.7 distrib/sets/lists/base/md.vax: revision 1.26 distrib/sets/lists/base/md.i386: revision 1.130 distrib/sets/lists/base/ad.arm: revision 1.10 distrib/sets/lists/comp/md.shark: revision 1.13 distrib/sets/lists/comp/md.sparc: revision 1.68 distrib/sets/lists/comp/ad.arm: revision 1.31 distrib/sets/lists/comp/md.vax: revision 1.35 distrib/sets/lists/comp/md.i386: revision 1.108 distrib/sets/lists/base/md.sparc: revision 1.75 distrib/sets/lists/comp/md.pmax: revision 1.59 libexec/ld.aout_so/Makefile: revision 1.46 sbin/ldconfig/Makefile: revision 1.22 make MKPIC=no builds work on i368, shark, vax, pmax, sgimips, sparc, maybe all mips and all arm as well.

#	$NetBSD: Makefile,v 1.1.2.1 2008/11/06 23:51:26 snj Exp $

NOMAN=	# defined

.include <bsd.own.mk>
.include <bsd.obj.mk>

.if ${MKPIC} != "no"

SHLINKINSTALLDIR=	/usr/libexec

LDFLAGS+=		-m32

#CPPFLAGS+=	-DDEBUG
#CPPFLAGS+=	-DRTLD_DEBUG
#CPPFLAGS+=	-DRTLD_DEBUG_RELOC
#DBG=		-g

.include "${NETBSDSRCDIR}/compat/Makefile.compat"

.PATH: ${NETBSDSRCDIR}/libexec/ld.elf_so
.CURDIR:=${NETBSDSRCDIR}/libexec/ld.elf_so

# XXX
.if ${MACHINE} == "sparc64"
PROG=		ld.elf_so-sparc
ARCHSUBDIR=	sparc
.elif ${MACHINE} == "amd64"
PROG=		ld.elf_so-i386
ARCHSUBDIR=	i386
.endif

# XXX why do i need this?
dependall: ${PROG}

.include "${.CURDIR}/Makefile"

.endif