xref: /minix/lib/libc/gdtoa/Makefile.inc (revision 84d9c625)
1#	$NetBSD: Makefile.inc,v 1.9 2013/04/19 20:18:33 joerg Exp $
2
3# gdtoa sources
4.PATH: ${.CURDIR}/gdtoa
5CPPFLAGS+=-I${.CURDIR}/gdtoa -I${.CURDIR}/locale
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.if !defined(__MINIX)
29# local locking implementation
30SRCS+=	gdtoa_locks.c
31.endif # !defined(__MINIX)
32
33# private interfaces
34SRCS+=	dmisc.c \
35	gethex.c gmisc.c \
36	hd_init.c hexnan.c \
37	misc.c \
38	smisc.c strtodg.c sum.c \
39	ulp.c
40
41# wrappers
42SRCS+=	_strtof.c _strtold.c
43#SRCS+=	_hdtoa.c _ldtoa.c
44
45# XXX no hexadecimal floating-point string conversion for VAX FP yet
46.if ${MACHINE_ARCH} != "vax"
47SRCS+=	strtord.c
48.endif
49