1 # $NetBSD: Makefile.compat,v 1.3 2008/10/28 22:58:23 mrg Exp $
9 .if ${MACHINE_ARCH} == "sparc64"
12 .elif ${MACHINE_ARCH} == "x86_64"
17 LIBDIR= /usr/lib/${LD32DIR}
18 SHLIBDIR= /usr/lib/${LD32DIR}
19 SHLIBINSTALLDIR= /usr/lib/${LD32DIR}
21 COMMON_MACHINE_ARCH= ${LD32DIR}
22 LIBC_MACHINE_ARCH= ${LD32DIR}
23 BFD_MACHINE_ARCH= ${LD32DIR}
24 CRYPTO_MACHINE_CPU= ${LD32DIR}
25 KVM_MACHINE_ARCH= ${LD32DIR}
26 PTHREAD_MACHINE_ARCH= ${LD32DIR}
27 LDELFSO_MACHINE_CPU= ${LD32DIR}
29 _GCC_CRTBEGIN?= ${DESTDIR}/usr/lib/${LD32DIR}/crtbegin.o
30 _GCC_CRTBEGINS?= ${DESTDIR}/usr/lib/${LD32DIR}/crtbeginS.o
31 _GCC_CRTEND?= ${DESTDIR}/usr/lib/${LD32DIR}/crtend.o
32 _GCC_CRTENDS?= ${DESTDIR}/usr/lib/${LD32DIR}/crtendS.o
33 _GCC_CRTDIR?= ${DESTDIR}/usr/lib/${LD32DIR}
34 _GCC_LIBGCCDIR?= ${DESTDIR}/usr/lib/${LD32DIR}
40 LIBC_DIR= ${NETBSDSRCDIR}/compat/lib/libc
43 SHLINKINSTALLDIR= /usr/libexec
46 EXTRALIBDIRS= ${DESTDIR}${LIBDIR} ${DESTDIR}${LIBDIR}/i18n ${DESTDIR}${LIBDIR}/security
47 .PRECIOUS: ${EXTRALIBDIRS}
48 install: ${EXTRALIBDIRS} .WAIT
49 ${EXTRALIBDIRS}: .EXEC
50 @if [ ! -d ${.TARGET} ] ; then \
51 ${_MKSHMSG_CREATE} ${.TARGET}; \
52 ${_MKSHECHO} ${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} -m 755 \
54 ${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} -m 755 \
57 # Make sure the base dir is created first.
58 ${DESTDIR}${LIBDIR}/i18n ${DESTDIR}${LIBDIR}/security: ${DESTDIR}${LIBDIR}