X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/59e0d9fe772464b93d835d2a2964457702469a43..34e8f8296870d0e8695f90e1a54240a589d41312:/gdtoa/Makefile.inc diff --git a/gdtoa/Makefile.inc b/gdtoa/Makefile.inc index e7fe795..9941267 100644 --- a/gdtoa/Makefile.inc +++ b/gdtoa/Makefile.inc @@ -1,15 +1,25 @@ .PATH: ${.CURDIR}/gdtoa +CWD := ${.CURDIR}/gdtoa CFLAGS += -I${.CURDIR}/gdtoa +.sinclude "${.CURDIR}/${MACHINE_ARCH}/stdlib/gdtoa.mk" + +GDTOA_UNIQUE_SRCS != ${PERL} -e '@z = split(" ", "$(GDTOA_FBSDSRCS)"); $$, = "\n"; print @z' | sort -u + .include "Makefile.fbsd_begin" -FBSDMISRCS= _hdtoa.c _ldtoa.c glue.c \ +FBSDMISRCS= $(GDTOA_UNIQUE_SRCS) _hdtoa.c glue.c \ gdtoa-dmisc.c gdtoa-dtoa.c gdtoa-gdtoa.c gdtoa-gethex.c gdtoa-gmisc.c \ - gdtoa-hd_init.c gdtoa-hexnan.c gdtoa-misc.c gdtoa-smisc.c gdtoa-strtoIg.c \ - gdtoa-strtod.c gdtoa-strtodg.c gdtoa-strtof.c gdtoa-strtord.c gdtoa-sum.c \ - gdtoa-ulp.c -.if exists(${.CURDIR}/${MACHINE_ARCH}/stdlib/gdtoa.mk) -.include "${.CURDIR}/${MACHINE_ARCH}/stdlib/gdtoa.mk" + gdtoa-hd_init.c gdtoa-hexnan.c gdtoa-misc.c gdtoa-smisc.c \ + gdtoa-strtod.c gdtoa-strtodg.c gdtoa-strtof.c gdtoa-strtord.c \ + gdtoa-sum.c gdtoa-ulp.c + +.ifndef FEATURE_ONLY_LONG_DOUBLE_IS_DOUBLE +FBSDMISRCS+= _ldtoa.c .endif -FBSDHDRS= gdtoa.h gdtoaimp.h + +FBSDHDRS= gdtoa.h gdtoaimp.h gdtoa_fltrnds.h + .include "Makefile.fbsd_end" + +LEGACYSRCS += gdtoa-strtof.c gdtoa-strtod.c gdtoa-strtodg.c