Makefile.inc revision 1.24
1# $NetBSD: Makefile.inc,v 1.24 2013/08/21 03:09:08 matt Exp $ 2 3.include <bsd.own.mk> 4 5SRCS+= __aeabi_read_tp.S __sigaction14_sigtramp.c __sigtramp2.S 6 7.if empty(LIBC_MACHINE_ARCH:Mearmv7*) 8AFLAGS+= -marm 9.endif 10 11CPPFLAGS += -I. 12 13.if !empty(LIBC_MACHINE_ARCH:Mearm*) 14SRCS+= __aeabi_ldivmod.S __aeabi_uldivmod.S 15SRCS+= __aeabi_lcmp.c __aeabi_ulcmp.c 16SRCS+= fixunsgen_ieee754.c fixunssfsi_ieee754.c 17SRCS+= fixunsgen64_ieee754.c fixunsdfsi_ieee754.c 18SRCS+= arm_initfini.c 19.endif 20 21.if ${MKSOFTFLOAT} != "no" 22CPPFLAGS += -DSOFTFLOAT 23 24# for earm, use the 64-bit softfloat 25.if ${LIBC_MACHINE_ARCH} == "arm" || ${LIBC_MACHINE_ARCH} == "armeb" 26SOFTFLOAT_BITS=32 27.endif 28 29.include <softfloat/Makefile.inc> 30.else 31.PATH : ${ARCHDIR}/hardfloat 32SRCS.hardfloat+= fpgetround.c fpgetsticky.S fpgetmask.S 33SRCS.hardfloat+= fpsetround.c fpsetmask.S fpsetsticky.S 34.for f in ${SRCS.hardfloat} 35CPPFLAGS.${f} += -mfpu=vfp 36.endfor 37SRCS+= ${SRCS.hardfloat} 38.endif 39