Makefile.inc revision 1.14
11.14Srillig#	$NetBSD: Makefile.inc,v 1.14 2024/05/13 21:17:24 rillig 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.1Skleink
321.1Skleink# local locking implementation
331.1SkleinkSRCS+=	gdtoa_locks.c
341.1Skleink
351.1Skleink# private interfaces
361.1SkleinkSRCS+=	dmisc.c \
371.1Skleink	gethex.c gmisc.c \
381.1Skleink	hd_init.c hexnan.c \
391.1Skleink	misc.c \
401.1Skleink	smisc.c strtodg.c sum.c \
411.1Skleink	ulp.c
421.1Skleink
431.1Skleink# XXX no hexadecimal floating-point string conversion for VAX FP yet
441.1Skleink.if ${MACHINE_ARCH} != "vax"
451.1SkleinkSRCS+=	strtord.c
461.1Skleink.endif
471.14Srillig
481.14SrilligLINTFLAGS.hdtoa.c+=	-X 132	# conversion may lose accuracy
49