Match against LIBC_MACHINE_ARCH for MKCOMPAT
This commit is contained in:
parent
56616ffc4c
commit
7d2c6b2414
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.156 2013/04/27 08:00:40 matt Exp $
|
||||
# $NetBSD: Makefile,v 1.157 2013/04/30 01:42:03 matt Exp $
|
||||
# @(#)Makefile 8.2 (Berkeley) 2/3/94
|
||||
#
|
||||
# All library objects contain sccsid strings by default; they may be
|
||||
|
@ -19,6 +19,8 @@
|
|||
|
||||
.include "Makefile.inc"
|
||||
|
||||
LIBC_MACHINE_ARCH?= ${MACHINE_ARCH} # for MKCOMPAT
|
||||
|
||||
LIB= c
|
||||
CPPFLAGS+= -I${.CURDIR}/include -I${.CURDIR}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.inc,v 1.20 2013/02/03 01:55:19 matt Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.21 2013/04/30 01:42:03 matt Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
|
@ -6,7 +6,7 @@ SRCS+= __aeabi_read_tp.S __sigaction14_sigtramp.c __sigtramp2.S
|
|||
|
||||
CPPFLAGS += -I.
|
||||
|
||||
.if ${MACHINE_ARCH:Mearm*} != ""
|
||||
.if !empty(LIBC_MACHINE_ARCH:Mearm*)
|
||||
SRCS+= __aeabi_ldivmod.S __aeabi_uldivmod.S
|
||||
SRCS+= __aeabi_lcmp.c __aeabi_ulcmp.c
|
||||
SRCS+= fixunsgen_ieee754.c fixunssfsi_ieee754.c
|
||||
|
@ -18,7 +18,7 @@ SRCS+= arm_initfini.c
|
|||
CPPFLAGS += -DSOFTFLOAT
|
||||
|
||||
# for earm, use the 64-bit softfloat
|
||||
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "armeb"
|
||||
.if ${LIBC_MACHINE_ARCH} == "arm" || ${LIBC_MACHINE_ARCH} == "armeb"
|
||||
SOFTFLOAT_BITS=32
|
||||
.endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.inc,v 1.21 2013/01/26 07:09:41 matt Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.22 2013/04/30 01:42:04 matt Exp $
|
||||
|
||||
SRCS+= alloca.S byte_swap_2.S byte_swap_4.S bswap64.c divsi3.S \
|
||||
fabs.c flt_rounds.c modsi3.S umodsi3.S divide.S divsi3.S udivsi3.S
|
||||
|
@ -11,7 +11,7 @@ SRCS+= isinff_ieee754.c isinfd_ieee754.c
|
|||
SRCS+= isnanf_ieee754.c isnand_ieee754.c
|
||||
SRCS+= signbitf_ieee754.c signbitd_ieee754.c
|
||||
|
||||
.if ${MACHINE_ARCH:Mearm*} != ""
|
||||
.if !empty(LIBC_MACHINE_ARCH:Mearm*)
|
||||
SRCS+= __aeabi_fcmpun.c __aeabi_dcmpun.c
|
||||
SRCS+= __aeabi_idiv0.c __aeabi_ldiv0.c
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.inc,v 1.14 2013/04/16 12:26:28 matt Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.15 2013/04/30 01:42:04 matt Exp $
|
||||
|
||||
SOFTFLOAT_BITS?=64
|
||||
.PATH: ${ARCHDIR}/softfloat \
|
||||
|
@ -12,7 +12,7 @@ SRCS.softfloat= softfloat.c
|
|||
SRCS.softfloat+=fpgetround.c fpsetround.c fpgetmask.c fpsetmask.c \
|
||||
fpgetsticky.c fpsetsticky.c
|
||||
|
||||
.if ${MACHINE_ARCH:Mearm*} != ""
|
||||
.if !empty(LIBC_MACHINE_ARCH:Mearm*)
|
||||
SRCS.softfloat+=__aeabi_dcmpeq.c __aeabi_fcmpeq.c
|
||||
SRCS.softfloat+=__aeabi_dcmpge.c __aeabi_fcmpge.c
|
||||
SRCS.softfloat+=__aeabi_dcmpgt.c __aeabi_fcmpgt.c
|
||||
|
|
Loading…
Reference in New Issue