]> git.saurik.com Git - apple/libc.git/blobdiff - gdtoa/Makefile.inc
Libc-583.tar.gz
[apple/libc.git] / gdtoa / Makefile.inc
index e7fe7954e9aeaad65441dd2b2a88d6b7cb97f2a8..994126754c27fd2d88b71e33b8b12ae40486585f 100644 (file)
@@ -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