xref: /freebsd/lib/libgcc_s/Makefile (revision 148a8da8)
1# $FreeBSD$
2
3PACKAGE=	clibs
4SHLIB_NAME=	libgcc_s.so.1
5SHLIBDIR?=	/lib
6
7MK_SSP=		no
8WARNS?=	2
9
10LDFLAGS+=	-nodefaultlibs
11LIBADD+=	c
12VERSION_MAP=	${.CURDIR}/Version.map
13
14.include "../libcompiler_rt/Makefile.inc"
15.include "../libgcc_eh/Makefile.inc"
16
17# gcc has incompatible internal declarations for __divtc3 and __multc3, but has
18# no option to silence its warning, so make warnings non-fatal.
19NO_WERROR.gcc=
20
21LIBCSRCDIR=	${SRCTOP}/lib/libc
22LIBMSRCDIR=	${SRCTOP}/lib/msun/src
23CFLAGS+=	-I${LIBCSRCDIR}/include -I${LIBCSRCDIR}/${MACHINE_CPUARCH}
24CFLAGS+=	-I${LIBMSRCDIR}
25.PATH:		${LIBMSRCDIR}
26SRCS+=		s_fabs.c
27SRCS+=		s_fabsf.c
28SRCS+=		s_fabsl.c
29SRCS+=		s_fmax.c
30SRCS+=		s_fmaxf.c
31SRCS+=		s_logb.c
32SRCS+=		s_logbf.c
33SRCS+=		s_scalbn.c
34SRCS+=		s_scalbnf.c
35
36# Don't include long double routines on architectures where long double
37# is the same size as double.
38.if ${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "arm" && \
39    ${MACHINE_CPUARCH} != "powerpc"
40SRCS+=		s_fmaxl.c
41SRCS+=		s_logbl.c
42SRCS+=		s_scalbnl.c
43.endif
44
45.include <bsd.lib.mk>
46