xref: /dflybsd-src/gnu/usr.bin/cc80/support-libs/libdecnumber/Makefile (revision 831d149215e3318845f0d91d28c41b592cd9a650)
1GCC_NO_PATH=	yes
2GCC_NO_LIBS=	yes
3LOCAL_CONFIG=	yes
4.include "../Makefile.inc"
5.PATH: ${GCCDIR}/libdecnumber
6.PATH: ${GCCDIR}/libdecnumber/dpd
7
8LIB=		decnumber
9INTERNALLIB=	YES
10
11# for now do not let the use of -flto (check -Wlto-type-mismatch !)
12.if ${CFLAGS:M-flto}
13CFLAGS+=	-fno-lto
14.endif
15
16SRCS=	decContext.c \
17	decNumber.c \
18	decimal32.c \
19	decimal64.c \
20	decimal128.c
21
22gstdint.h:
23	echo "#include <stdint.h>" > ${.TARGET}
24
25depend all: gstdint.h
26
27CLEANFILES+=	gstdint.h
28
29.include <bsd.lib.mk>
30