2009-02-20 05:43:02 +03:00
|
|
|
# $NetBSD: Makefile,v 1.6 2009/02/20 02:43:02 uebayasi Exp $
|
2008-10-26 10:38:27 +03:00
|
|
|
|
|
|
|
NOMAN= # defined
|
|
|
|
|
2008-10-31 23:24:51 +03:00
|
|
|
.include <bsd.own.mk>
|
2008-10-26 10:38:27 +03:00
|
|
|
.include <bsd.obj.mk>
|
|
|
|
|
2008-10-31 23:24:51 +03:00
|
|
|
.if ${MKPIC} != "no"
|
|
|
|
|
2008-10-26 10:38:27 +03:00
|
|
|
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
|
2009-02-14 16:50:50 +03:00
|
|
|
.if ${MACHINE_ARCH} == "sparc64"
|
2008-10-26 10:38:27 +03:00
|
|
|
PROG= ld.elf_so-sparc
|
|
|
|
ARCHSUBDIR= sparc
|
2009-02-14 16:50:50 +03:00
|
|
|
.elif ${MACHINE_ARCH} == "x86_64"
|
2008-10-26 10:38:27 +03:00
|
|
|
PROG= ld.elf_so-i386
|
|
|
|
ARCHSUBDIR= i386
|
|
|
|
.endif
|
|
|
|
|
2009-02-20 05:43:02 +03:00
|
|
|
# XXX why do i need this?
|
|
|
|
dependall: ${PROG}
|
2008-10-26 10:38:27 +03:00
|
|
|
|
|
|
|
.include "${.CURDIR}/Makefile"
|
2008-10-31 23:24:51 +03:00
|
|
|
|
2009-02-14 16:50:50 +03:00
|
|
|
.if ${MACHINE_ARCH} == "sparc64"
|
2008-11-04 18:25:58 +03:00
|
|
|
# XXX: Turn on big pic for sparc, because we somehow are generating GOT13
|
|
|
|
# relocations. Why?!?
|
|
|
|
CPPFLAGS+=-fPIC
|
|
|
|
.endif
|
|
|
|
|
2008-10-31 23:24:51 +03:00
|
|
|
.endif
|