Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: netbsd_5_1
Fetching contributors…

Cannot retrieve contributors at this time

file 58 lines (49 sloc) 1.58 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
# $NetBSD: Makefile.compat,v 1.3 2008/10/28 22:58:23 mrg Exp $

COPTS+= -m32
CPUFLAGS+= -m32
LDADD+= -m32
MKDEPFLAGS+= -m32

# XXX ugly
.if ${MACHINE} == "sparc64"
LD+= -m elf32_sparc
LD32DIR= sparc
.elif ${MACHINE} == "amd64"
LD+= -m elf_i386
LD32DIR= i386
.endif

LIBDIR= /usr/lib/${LD32DIR}
SHLIBDIR= /usr/lib/${LD32DIR}
SHLIBINSTALLDIR= /usr/lib/${LD32DIR}

COMMON_MACHINE_ARCH= ${LD32DIR}
LIBC_MACHINE_ARCH= ${LD32DIR}
BFD_MACHINE_ARCH= ${LD32DIR}
CRYPTO_MACHINE_CPU= ${LD32DIR}
KVM_MACHINE_ARCH= ${LD32DIR}
PTHREAD_MACHINE_ARCH= ${LD32DIR}
LDELFSO_MACHINE_CPU= ${LD32DIR}

_GCC_CRTBEGIN?= ${DESTDIR}/usr/lib/${LD32DIR}/crtbegin.o
_GCC_CRTBEGINS?= ${DESTDIR}/usr/lib/${LD32DIR}/crtbeginS.o
_GCC_CRTEND?= ${DESTDIR}/usr/lib/${LD32DIR}/crtend.o
_GCC_CRTENDS?= ${DESTDIR}/usr/lib/${LD32DIR}/crtendS.o
_GCC_CRTDIR?= ${DESTDIR}/usr/lib/${LD32DIR}
_GCC_LIBGCCDIR?= ${DESTDIR}/usr/lib/${LD32DIR}

NOSHARE= # defined
NONLS= # defined
NOCHECKVER= # defined

LIBC_DIR= ${NETBSDSRCDIR}/compat/lib/libc

# ld.elf_so
SHLINKINSTALLDIR= /usr/libexec

# XXX
EXTRALIBDIRS= ${DESTDIR}${LIBDIR} ${DESTDIR}${LIBDIR}/i18n ${DESTDIR}${LIBDIR}/security
.PRECIOUS: ${EXTRALIBDIRS}
install: ${EXTRALIBDIRS} .WAIT
${EXTRALIBDIRS}: .EXEC
@if [ ! -d ${.TARGET} ] ; then \
${_MKSHMSG_CREATE} ${.TARGET}; \
${_MKSHECHO} ${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} -m 755 \
${.TARGET}; \
${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} -m 755 \
${.TARGET}; \
fi
# Make sure the base dir is created first.
${DESTDIR}${LIBDIR}/i18n ${DESTDIR}${LIBDIR}/security: ${DESTDIR}${LIBDIR}
Something went wrong with that request. Please try again.