X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/0a7506c9bdc0d0d560d4b9c8a3d1089f5db425b9..b5d655f7532a546b54809da387f7467d128a756b:/gdtoa/Makefile.inc diff --git a/gdtoa/Makefile.inc b/gdtoa/Makefile.inc index 50e8f90..e016bc1 100644 --- a/gdtoa/Makefile.inc +++ b/gdtoa/Makefile.inc @@ -1,28 +1,25 @@ .PATH: ${.CURDIR}/gdtoa +CWD := ${.CURDIR}/gdtoa CFLAGS += -I${.CURDIR}/gdtoa -.ifmake autopatch -ALL_ARCHS ?= i386 ppc ppc64 x86_64 -.for a in $(ALL_ARCHS) -.if exists(../${a}/stdlib/gdtoa.mk) -.include "../${a}/stdlib/gdtoa.mk" -.endif -.endfor -.else # !autopatch -.if exists(${.CURDIR}/${MACHINE_ARCH}/stdlib/gdtoa.mk) -.include "${.CURDIR}/${MACHINE_ARCH}/stdlib/gdtoa.mk" -.endif -.endif # autopatch +.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= $(GDTOA_UNIQUE_SRCS) _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-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 + .include "Makefile.fbsd_end" LEGACYSRCS += gdtoa-strtof.c gdtoa-strtod.c gdtoa-strtodg.c