1# $NetBSD: Makefile.inc,v 1.10 2011/07/04 02:53:15 mrg Exp $ 2 3SOFTFLOAT_BITS?=64 4.PATH: ${ARCHDIR}/softfloat \ 5 ${.CURDIR}/softfloat/bits${SOFTFLOAT_BITS} ${.CURDIR}/softfloat 6 7CPPFLAGS+= -I${ARCHDIR}/softfloat -I${.CURDIR}/softfloat 8CPPFLAGS+= -DSOFTFLOAT_FOR_GCC 9 10SRCS.softfloat= softfloat.c 11 12SRCS.softfloat+=fpgetround.c fpsetround.c fpgetmask.c fpsetmask.c \ 13 fpgetsticky.c fpsetsticky.c 14 15SRCS.softfloat+=eqsf2.c nesf2.c gtsf2.c gesf2.c ltsf2.c lesf2.c negsf2.c \ 16 eqdf2.c nedf2.c gtdf2.c gedf2.c ltdf2.c ledf2.c negdf2.c \ 17 eqtf2.c netf2.c gttf2.c getf2.c lttf2.c letf2.c negtf2.c \ 18 nexf2.c gtxf2.c gexf2.c negxf2.c unordsf2.c unorddf2.c 19 20SRCS+= ${SRCS.softfloat} 21 22# XXX 23.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 24.if (${MACHINE_CPU} == "arm") 25# See doc/HACKS for more information. 26COPTS.softfloat.c+= -Wno-enum-compare -fno-tree-vrp 27.elif (${MACHINE_CPU} == "mips" || \ 28 ${MACHINE_CPU} == "sh3") 29COPTS.softfloat.c+= -Wno-enum-compare 30.endif 31.endif 32