1# $NetBSD: Makefile.inc,v 1.15 2024/06/07 20:50:13 riastradh Exp $ 2 3# gdtoa sources 4.PATH: ${.CURDIR}/gdtoa 5CPPFLAGS+=-I${.CURDIR}/gdtoa -I${.CURDIR}/locale 6 7.if ${MACHINE_ARCH} == "vax" 8CPPFLAGS+=-DNO_FENV_H 9.else 10CPPFLAGS+=-DHonor_FLT_ROUNDS 11.endif 12 13# machine-dependent directory must provide the following: 14# arith.h gd_qnan.h 15CPPFLAGS+=-I${ARCHDIR}/gdtoa 16 17# machine-dependent Makefile must define names of modules to use for 18# float conversions: 19# strtof(): strtof{,_vaxf}.c 20# and for long double conversions on platforms with extended-precision 21# format, if supported (strtod.c will define an alias otherwise): 22# strtold(): strtold_p{x,xL,Q}.c 23# helpers: strtop{x,xL,Q}.c 24.include "${ARCHDIR}/gdtoa/Makefile.inc" 25 26# public interfaces 27SRCS+= strtod.c 28 29# private interfaces interfacing to libc 30SRCS+= dtoa.c ldtoa.c hdtoa.c gdtoa.c 31LINTFLAGS.ldtoa.c+= -X 132 32 33# local locking implementation 34SRCS+= gdtoa_locks.c 35 36# private interfaces 37SRCS+= dmisc.c \ 38 gethex.c gmisc.c \ 39 hd_init.c hexnan.c \ 40 misc.c \ 41 smisc.c strtodg.c sum.c \ 42 ulp.c 43 44# XXX no hexadecimal floating-point string conversion for VAX FP yet 45.if ${MACHINE_ARCH} != "vax" 46SRCS+= strtord.c 47.endif 48 49LINTFLAGS.hdtoa.c+= -X 132 # conversion may lose accuracy 50