diff --git a/lib/libc/arch/arm/Makefile.inc b/lib/libc/arch/arm/Makefile.inc index 775b9ec6ab66..ab53665f0995 100644 --- a/lib/libc/arch/arm/Makefile.inc +++ b/lib/libc/arch/arm/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.19 2013/01/29 19:15:52 matt Exp $ +# $NetBSD: Makefile.inc,v 1.20 2013/02/03 01:55:19 matt Exp $ .include @@ -6,7 +6,7 @@ SRCS+= __aeabi_read_tp.S __sigaction14_sigtramp.c __sigtramp2.S CPPFLAGS += -I. -.if ${MACHINE_ARCH} == "earm" || ${MACHINE_ARCH} == "earmeb" +.if ${MACHINE_ARCH:Mearm*} != "" SRCS+= __aeabi_ldivmod.S __aeabi_uldivmod.S SRCS+= __aeabi_lcmp.c __aeabi_ulcmp.c SRCS+= fixunsgen_ieee754.c fixunssfsi_ieee754.c @@ -23,4 +23,12 @@ SOFTFLOAT_BITS=32 .endif .include +.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} .endif