xref: /freebsd/lib/libc/softfloat/Makefile.inc (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1c36abe0dSDavid Schultz#	$NetBSD: Makefile.inc,v 1.10 2011/07/04 02:53:15 mrg Exp $
215144b0fSOlivier Houchard
315144b0fSOlivier HouchardSOFTFLOAT_BITS?=64
42c0959aeSWarner Losh.PATH:		${LIBC_ARCH}/softfloat \
58876613dSMarcel Moolenaar		${LIBC_SRCTOP}/softfloat/bits${SOFTFLOAT_BITS} \
68876613dSMarcel Moolenaar		${LIBC_SRCTOP}/softfloat
715144b0fSOlivier Houchard
88876613dSMarcel MoolenaarCFLAGS+=	-I${LIBC_SRCTOP}/${LIBC_ARCH}/softfloat \
98876613dSMarcel Moolenaar		-I${LIBC_SRCTOP}/softfloat
1015144b0fSOlivier HouchardCFLAGS+=	-DSOFTFLOAT_FOR_GCC
1115144b0fSOlivier Houchard
1215144b0fSOlivier HouchardSRCS+=		softfloat.c
1315144b0fSOlivier Houchard
14*7804dd52SRuslan Bukin# Deprecated FPU control interface
15*7804dd52SRuslan Bukin.if ${LIBC_ARCH} != "riscv"
1615144b0fSOlivier HouchardSRCS+=		fpgetround.c fpsetround.c fpgetmask.c fpsetmask.c \
177b74e4a7SDavid Schultz		fpgetsticky.c
18*7804dd52SRuslan Bukin.endif
1915144b0fSOlivier Houchard
2015144b0fSOlivier HouchardSRCS+=		eqsf2.c nesf2.c gtsf2.c gesf2.c ltsf2.c lesf2.c negsf2.c \
2115144b0fSOlivier Houchard		eqdf2.c nedf2.c gtdf2.c gedf2.c ltdf2.c ledf2.c negdf2.c \
2215144b0fSOlivier Houchard		unordsf2.c unorddf2.c
236fad3aafSDaniel Eischen
24c36abe0dSDavid Schultz.if defined(SOFTFLOAT_128)
25c36abe0dSDavid SchultzCFLAGS+=	-DFLOAT128
26c36abe0dSDavid SchultzSRCS+=		eqtf2.c netf2.c gttf2.c getf2.c lttf2.c letf2.c negtf2.c
27c36abe0dSDavid Schultz.endif
28c36abe0dSDavid Schultz
29c36abe0dSDavid Schultz.if defined(SOFTFLOAT_X80)
30c36abe0dSDavid SchultzCFLAGS+=	-DFLOATX80
31c36abe0dSDavid SchultzSRCS+=		nexf2.c gtxf2.c gexf2.c negxf2.c
32c36abe0dSDavid Schultz.endif
33c36abe0dSDavid Schultz
348876613dSMarcel MoolenaarSYM_MAPS+=	${LIBC_SRCTOP}/softfloat/Symbol.map
35