Add some missing entries to fix MKDEBUG build on alpha.
[netbsd-mini2440.git] / compat / Makefile.compat
blob43e726cbe0780c4af8a29ecda92ff772b71614ee
1 #       $NetBSD: Makefile.compat,v 1.3 2008/10/28 22:58:23 mrg Exp $
3 COPTS+=                 -m32
4 CPUFLAGS+=              -m32
5 LDADD+=                 -m32
6 MKDEPFLAGS+=            -m32
8 # XXX ugly
9 .if ${MACHINE_ARCH} == "sparc64"
10 LD+=                    -m elf32_sparc
11 LD32DIR=                sparc
12 .elif ${MACHINE_ARCH} == "x86_64"
13 LD+=                    -m elf_i386
14 LD32DIR=                i386
15 .endif
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}
36 NOSHARE=        # defined
37 NONLS=  # defined
38 NOCHECKVER=     # defined
40 LIBC_DIR=       ${NETBSDSRCDIR}/compat/lib/libc
42 # ld.elf_so
43 SHLINKINSTALLDIR=       /usr/libexec
45 # XXX
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 \
53                 ${.TARGET}; \
54                 ${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} -m 755 \
55                 ${.TARGET}; \
56         fi
57 # Make sure the base dir is created first.
58 ${DESTDIR}${LIBDIR}/i18n ${DESTDIR}${LIBDIR}/security: ${DESTDIR}${LIBDIR}