xref: /freebsd/lib/libc/gdtoa/Makefile.inc (revision 8f59277300bb5d2ed63f97655e0b30813fc5f826)
16a66acb5SDavid Schultz# $FreeBSD$
26a66acb5SDavid Schultz
3120a95cbSDavid E. O'Brien# netlib gdtoa sources
4120a95cbSDavid E. O'Brien.PATH: ${.CURDIR}/gdtoa
5120a95cbSDavid E. O'Brien
68f592773SDavid SchultzMISRCS+=_hdtoa.c _ldtoa.c glue.c
76a66acb5SDavid SchultzGDTOASRCS=dmisc.c dtoa.c gdtoa.c gethex.c gmisc.c \
86a66acb5SDavid Schultz	hd_init.c hexnan.c misc.c smisc.c \
96a66acb5SDavid Schultz	strtoIg.c strtod.c strtodg.c strtof.c strtord.c sum.c ulp.c
106a66acb5SDavid Schultz.if exists(${.CURDIR}/${MACHINE_ARCH}/stdlib/gdtoa.mk)
116a66acb5SDavid Schultz.include "${.CURDIR}/${MACHINE_ARCH}/stdlib/gdtoa.mk"
126a66acb5SDavid Schultz.endif
13120a95cbSDavid E. O'Brien
14120a95cbSDavid E. O'BrienCFLAGS+=-I${.CURDIR}/../../contrib/gdtoa
15120a95cbSDavid E. O'Brien
166a66acb5SDavid Schultz.for src in ${GDTOASRCS}
176a66acb5SDavid SchultzMISRCS+=gdtoa_${src}
186a66acb5SDavid SchultzCLEANFILES+=gdtoa_${src}
196a66acb5SDavid Schultzgdtoa_${src}:
206a66acb5SDavid Schultz	ln -sf ${.CURDIR}/../../contrib/gdtoa/${src} ${.TARGET}
216a66acb5SDavid Schultz.endfor
22