Makefile.inc revision 1.12
1# $NetBSD: Makefile.inc,v 1.12 2022/12/04 22:35:15 jakllsch 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 31 32# local locking implementation 33SRCS+= gdtoa_locks.c 34 35# private interfaces 36SRCS+= dmisc.c \ 37 gethex.c gmisc.c \ 38 hd_init.c hexnan.c \ 39 misc.c \ 40 smisc.c strtodg.c sum.c \ 41 ulp.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 48# XXX revisit with newer GCC. 49# Ensure numbers like 0xffff319f5fa95963 print correctly 50# ("999999999999999.98", not garbage like "?A>C>@>C:BA;A><.:<") 51.if ${MACHINE_ARCH} == "vax" && defined(HAVE_GCC) 52COPTS.misc.c+= -O0 53.endif 54