1# $NetBSD: Makefile.inc,v 1.10 2011/07/04 02:53:15 mrg Exp $ 2# $FreeBSD$ 3 4SOFTFLOAT_BITS?=64 5.PATH: ${LIBC_ARCH}/softfloat \ 6 ${LIBC_SRCTOP}/softfloat/bits${SOFTFLOAT_BITS} \ 7 ${LIBC_SRCTOP}/softfloat 8 9CFLAGS+= -I${LIBC_SRCTOP}/${LIBC_ARCH}/softfloat \ 10 -I${LIBC_SRCTOP}/softfloat 11CFLAGS+= -DSOFTFLOAT_FOR_GCC 12 13SRCS+= softfloat.c 14 15# Deprecated FPU control interface 16.if ${LIBC_ARCH} != "riscv" 17SRCS+= fpgetround.c fpsetround.c fpgetmask.c fpsetmask.c \ 18 fpgetsticky.c 19.endif 20 21SRCS+= eqsf2.c nesf2.c gtsf2.c gesf2.c ltsf2.c lesf2.c negsf2.c \ 22 eqdf2.c nedf2.c gtdf2.c gedf2.c ltdf2.c ledf2.c negdf2.c \ 23 unordsf2.c unorddf2.c 24 25.if defined(SOFTFLOAT_128) 26CFLAGS+= -DFLOAT128 27SRCS+= eqtf2.c netf2.c gttf2.c getf2.c lttf2.c letf2.c negtf2.c 28.endif 29 30.if defined(SOFTFLOAT_X80) 31CFLAGS+= -DFLOATX80 32SRCS+= nexf2.c gtxf2.c gexf2.c negxf2.c 33.endif 34 35SYM_MAPS+= ${LIBC_SRCTOP}/softfloat/Symbol.map 36