2006-02-17 02:26:19 +03:00
|
|
|
# $NetBSD: Makefile.inc,v 1.3 2006/02/16 23:26:19 christos Exp $
|
2006-01-25 18:43:01 +03:00
|
|
|
|
|
|
|
# gdtoa sources
|
|
|
|
.PATH: ${.CURDIR}/gdtoa
|
|
|
|
|
|
|
|
CPPFLAGS+=-I${ARCHDIR}/gdtoa
|
|
|
|
CPPFLAGS+=-DNO_FENV_H
|
|
|
|
|
|
|
|
# public interfaces
|
|
|
|
SRCS+= strtod.c
|
|
|
|
|
|
|
|
# private interfaces interfacing to libc
|
|
|
|
SRCS+= dtoa.c
|
|
|
|
|
|
|
|
# local locking implementation
|
|
|
|
SRCS+= gdtoa_locks.c
|
|
|
|
|
|
|
|
# private interfaces
|
|
|
|
SRCS+= dmisc.c \
|
|
|
|
gethex.c gmisc.c \
|
|
|
|
hd_init.c hexnan.c \
|
|
|
|
misc.c \
|
|
|
|
smisc.c strtodg.c sum.c \
|
|
|
|
ulp.c
|
|
|
|
|
2006-02-17 02:26:19 +03:00
|
|
|
# wrappers
|
|
|
|
#SRCS+= _hdtoa.c _ldtoa.c
|
|
|
|
|
2006-01-25 18:43:01 +03:00
|
|
|
# XXX no hexadecimal floating-point string conversion for VAX FP yet
|
|
|
|
.if ${MACHINE_ARCH} != "vax"
|
|
|
|
SRCS+= strtord.c
|
|
|
|
.endif
|
2006-01-31 13:56:57 +03:00
|
|
|
|
|
|
|
# XXX Workaround for gcc-3.3.3 optimsation bug on sh5
|
|
|
|
.if ${MACHINE_CPU} == "sh5"
|
|
|
|
COPTS.strtod.c= -O1
|
|
|
|
.endif
|