Makefile.inc revision 124354
1# $FreeBSD: head/lib/libc/gdtoa/Makefile.inc 124354 2004-01-10 21:51:48Z obrien $
2
3# netlib gdtoa sources
4.PATH: ${.CURDIR}/gdtoa
5
6MISRCS+=_ldtoa.c glue.c
7GDTOASRCS=dmisc.c dtoa.c gdtoa.c gethex.c gmisc.c \
8	hd_init.c hexnan.c misc.c smisc.c \
9	strtoIg.c strtod.c strtodg.c strtof.c strtord.c sum.c ulp.c
10.if exists(${.CURDIR}/${MACHINE_ARCH}/stdlib/gdtoa.mk)
11.include "${.CURDIR}/${MACHINE_ARCH}/stdlib/gdtoa.mk"
12.endif
13
14CFLAGS+=-I${.CURDIR}/../../contrib/gdtoa
15
16.for src in ${GDTOASRCS}
17MISRCS+=gdtoa_${src}
18CLEANFILES+=gdtoa_${src}
19gdtoa_${src}:
20	ln -sf ${.CURDIR}/../../contrib/gdtoa/${src} ${.TARGET}
21.endfor
22
23# XXX An ugly hack to disable warnings for gdtoa sources.
24CWARNFLAGS+=   ${.IMPSRC:Mgdtoa_*.c:C/^.+$/-w/}
25