2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile.inc,v 1.25 2013/09/03 00:30:19 matt Exp $
|
2011-02-14 20:36:03 +01:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2012-08-28 19:34:08 +02:00
|
|
|
.if !defined(__MINIX)
|
2012-11-15 12:06:41 +01:00
|
|
|
SRCS+= __aeabi_read_tp.S __sigaction14_sigtramp.c __sigtramp2.S
|
2012-08-28 19:34:08 +02:00
|
|
|
.endif
|
2011-02-14 20:36:03 +01:00
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
.if empty(LIBC_MACHINE_ARCH:Mearmv7*)
|
|
|
|
AFLAGS+= -marm
|
|
|
|
.endif
|
|
|
|
|
2012-11-15 12:06:41 +01:00
|
|
|
CPPFLAGS += -I.
|
2011-02-14 20:36:03 +01:00
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
.if !empty(LIBC_MACHINE_ARCH:Mearm*)
|
2012-11-15 12:06:41 +01:00
|
|
|
SRCS+= __aeabi_ldivmod.S __aeabi_uldivmod.S
|
|
|
|
SRCS+= __aeabi_lcmp.c __aeabi_ulcmp.c
|
|
|
|
SRCS+= fixunsgen_ieee754.c fixunssfsi_ieee754.c
|
|
|
|
SRCS+= fixunsgen64_ieee754.c fixunsdfsi_ieee754.c
|
2013-12-06 12:04:52 +01:00
|
|
|
SRCS+= arm_initfini.c
|
2012-11-15 12:06:41 +01:00
|
|
|
.endif
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
.if ${MKSOFTFLOAT} != "no"
|
|
|
|
CPPFLAGS += -DSOFTFLOAT
|
|
|
|
|
2012-11-15 12:06:41 +01:00
|
|
|
# for earm, use the 64-bit softfloat
|
2013-12-06 12:04:52 +01:00
|
|
|
.if ${LIBC_MACHINE_ARCH} == "arm" || ${LIBC_MACHINE_ARCH} == "armeb"
|
2011-02-14 20:36:03 +01:00
|
|
|
SOFTFLOAT_BITS=32
|
2013-12-06 12:04:52 +01:00
|
|
|
#SRCS+= floatunsidf_ieee754.c floatunsisf_ieee754.c
|
2012-11-15 12:06:41 +01:00
|
|
|
.endif
|
|
|
|
|
2011-02-14 20:36:03 +01:00
|
|
|
.include <softfloat/Makefile.inc>
|
2013-12-06 12:04:52 +01:00
|
|
|
.else
|
|
|
|
.PATH : ${ARCHDIR}/hardfloat
|
|
|
|
SRCS.hardfloat+= fpgetround.c fpgetsticky.S fpgetmask.S
|
|
|
|
SRCS.hardfloat+= fpsetround.c fpsetmask.S fpsetsticky.S
|
|
|
|
.for f in ${SRCS.hardfloat}
|
|
|
|
CPPFLAGS.${f} += -mfpu=vfp
|
|
|
|
.endfor
|
|
|
|
SRCS+= ${SRCS.hardfloat}
|
2013-06-16 01:43:39 +02:00
|
|
|
.endif
|