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