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