xref: /minix/lib/libc/gdtoa/Makefile.inc (revision 00b67f09)
1#	$NetBSD: Makefile.inc,v 1.10 2014/01/16 20:31:42 christos 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# XXX no hexadecimal floating-point string conversion for VAX FP yet
42.if ${MACHINE_ARCH} != "vax"
43SRCS+=	strtord.c
44.endif
45