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