sbin/ldconfig/Makefile
author snj <snj@NetBSD.org>
Thu, 06 Nov 2008 23:51:26 +0000
branchnetbsd-5
changeset 257658 053555f77a5d
parent 104897 56d54f186e7f
child 283203 f78d7670514d
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.21.40.1 2008/11/06 23:51:27 snj Exp $

.include <bsd.own.mk>   # For OBJECT_FMT
.include <bsd.shlib.mk>

.if ${MKPIC} != "no" && \
    (${OBJECT_FMT} == "a.out" ||	\
    (${OBJECT_FMT} == "ELF" &&		\
    (${MACHINE_ARCH} == "arm" ||	\
     ${MACHINE_ARCH} == "i386" ||	\
     ${MACHINE_ARCH} == "m68k" ||	\
     ${MACHINE_ARCH} == "sparc" ||	\
     ${MACHINE_ARCH} == "vax")))

PROG=	ldconfig
SRCS=	ldconfig.c shlib.c

CPPFLAGS += -I${NETBSDSRCDIR}/libexec/ld.aout_so
.PATH:	${NETBSDSRCDIR}/libexec/ld.aout_so

.if ${SHLIBINSTALLDIR} != ${LIBDIR}
CPPFLAGS+=-DSTANDARD_SEARCH_DIRS=\"${SHLIBINSTALLDIR}\",\"${LIBDIR}\"
.endif

.endif

MAN=	ldconfig.8

.include <bsd.prog.mk>