Makefile.inc revision 1.5
11.5Schristos#	$NetBSD: Makefile.inc,v 1.5 2007/02/02 23:06:34 christos Exp $
21.1Skleink
31.1Skleink# gdtoa sources
41.1Skleink.PATH: ${.CURDIR}/gdtoa
51.4SkleinkCPPFLAGS+=-I${.CURDIR}/gdtoa
61.1Skleink
71.4SkleinkCPPFLAGS+=-DNO_FENV_H
81.4Skleink
91.4Skleink# machine-dependent directory must provide the following:
101.4Skleink# 	arith.h gd_qnan.h
111.1SkleinkCPPFLAGS+=-I${ARCHDIR}/gdtoa
121.4Skleink
131.4Skleink# machine-dependent Makefile must define names of modules to use for
141.4Skleink# float conversions:
151.4Skleink# 	strtof(): strtof{,_vaxf}.c
161.4Skleink# and for long double conversions on platforms with extended-precision
171.4Skleink# format, if supported (strtod.c will define an alias otherwise):
181.4Skleink#	strtold(): strtold_p{x,xL,Q}.c
191.4Skleink#	helpers:   strtop{x,xL,Q}.c
201.4Skleink.include "${ARCHDIR}/gdtoa/Makefile.inc"
211.1Skleink
221.1Skleink# public interfaces
231.1SkleinkSRCS+=	strtod.c
241.1Skleink
251.1Skleink# private interfaces interfacing to libc
261.5SchristosSRCS+=	dtoa.c ldtoa.c hdtoa.c gdtoa.c
271.1Skleink
281.1Skleink# local locking implementation
291.1SkleinkSRCS+=	gdtoa_locks.c
301.1Skleink
311.1Skleink# private interfaces
321.1SkleinkSRCS+=	dmisc.c \
331.1Skleink	gethex.c gmisc.c \
341.1Skleink	hd_init.c hexnan.c \
351.1Skleink	misc.c \
361.1Skleink	smisc.c strtodg.c sum.c \
371.1Skleink	ulp.c
381.1Skleink
391.3Schristos# wrappers
401.4SkleinkSRCS+=	_strtof.c _strtold.c
411.3Schristos#SRCS+=	_hdtoa.c _ldtoa.c
421.3Schristos
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.2Sscw
481.2Sscw# XXX Workaround for gcc-3.3.3 optimsation bug on sh5
491.2Sscw.if ${MACHINE_CPU} == "sh5"
501.2SscwCOPTS.strtod.c=	-O1
511.2Sscw.endif
52