11.15Sriastrad# $NetBSD: Makefile.inc,v 1.15 2024/06/07 20:50:13 riastradh Exp $ 21.1Skleink 31.1Skleink# gdtoa sources 41.1Skleink.PATH: ${.CURDIR}/gdtoa 51.9SjoergCPPFLAGS+=-I${.CURDIR}/gdtoa -I${.CURDIR}/locale 61.1Skleink 71.11Sriastrad.if ${MACHINE_ARCH} == "vax" 81.4SkleinkCPPFLAGS+=-DNO_FENV_H 91.11Sriastrad.else 101.11SriastradCPPFLAGS+=-DHonor_FLT_ROUNDS 111.11Sriastrad.endif 121.4Skleink 131.4Skleink# machine-dependent directory must provide the following: 141.4Skleink# arith.h gd_qnan.h 151.1SkleinkCPPFLAGS+=-I${ARCHDIR}/gdtoa 161.4Skleink 171.4Skleink# machine-dependent Makefile must define names of modules to use for 181.4Skleink# float conversions: 191.4Skleink# strtof(): strtof{,_vaxf}.c 201.4Skleink# and for long double conversions on platforms with extended-precision 211.4Skleink# format, if supported (strtod.c will define an alias otherwise): 221.4Skleink# strtold(): strtold_p{x,xL,Q}.c 231.4Skleink# helpers: strtop{x,xL,Q}.c 241.4Skleink.include "${ARCHDIR}/gdtoa/Makefile.inc" 251.1Skleink 261.1Skleink# public interfaces 271.1SkleinkSRCS+= strtod.c 281.1Skleink 291.1Skleink# private interfaces interfacing to libc 301.5SchristosSRCS+= dtoa.c ldtoa.c hdtoa.c gdtoa.c 311.15SriastradLINTFLAGS.ldtoa.c+= -X 132 321.1Skleink 331.1Skleink# local locking implementation 341.1SkleinkSRCS+= gdtoa_locks.c 351.1Skleink 361.1Skleink# private interfaces 371.1SkleinkSRCS+= dmisc.c \ 381.1Skleink gethex.c gmisc.c \ 391.1Skleink hd_init.c hexnan.c \ 401.1Skleink misc.c \ 411.1Skleink smisc.c strtodg.c sum.c \ 421.1Skleink ulp.c 431.1Skleink 441.1Skleink# XXX no hexadecimal floating-point string conversion for VAX FP yet 451.1Skleink.if ${MACHINE_ARCH} != "vax" 461.1SkleinkSRCS+= strtord.c 471.1Skleink.endif 481.14Srillig 491.14SrilligLINTFLAGS.hdtoa.c+= -X 132 # conversion may lose accuracy 50