Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / sbin / ldconfig / Makefile
blob8179a0723d08a4fff6bc8e7e3cc90397497a0fd5
1 # $NetBSD: Makefile,v 1.21 2002/11/12 14:33:49 itohy Exp $
3 .include <bsd.own.mk> # For OBJECT_FMT
4 .include <bsd.shlib.mk>
6 .if ${MKPIC} != "no" && \
7 (${OBJECT_FMT} == "a.out" || \
8 (${OBJECT_FMT} == "ELF" && \
9 (${MACHINE_ARCH} == "arm" || \
10 ${MACHINE_ARCH} == "i386" || \
11 ${MACHINE_ARCH} == "m68k" || \
12 ${MACHINE_ARCH} == "sparc" || \
13 ${MACHINE_ARCH} == "vax")))
15 PROG= ldconfig
16 SRCS= ldconfig.c shlib.c
18 CPPFLAGS += -I${NETBSDSRCDIR}/libexec/ld.aout_so
19 .PATH: ${NETBSDSRCDIR}/libexec/ld.aout_so
21 .if ${SHLIBINSTALLDIR} != ${LIBDIR}
22 CPPFLAGS+=-DSTANDARD_SEARCH_DIRS=\"${SHLIBINSTALLDIR}\",\"${LIBDIR}\"
23 .endif
25 .endif
27 MAN= ldconfig.8
29 .include <bsd.prog.mk>