]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libgcc_s/Makefile
Merge ^/vendor/libc++/dist up to its last change, and resolve conflicts.
[FreeBSD/FreeBSD.git] / lib / libgcc_s / Makefile
1 # $FreeBSD$
2
3 PACKAGE=        clibs
4 SHLIB_NAME=     libgcc_s.so.1
5 SHLIBDIR?=      /lib
6
7 .include <bsd.opts.mk>
8
9 MK_SSP=         no
10 WARNS?= 2
11
12 LDFLAGS+=       -nodefaultlibs
13 LIBADD+=        c
14
15 .if ${MK_SYMVER} == "yes"
16 VERSION_DEF=    ${.CURDIR}/Versions.def
17 SYMBOL_MAPS=    ${.CURDIR}/Symbol.map
18 # Export ARM AEABI unwind routines needed by libc and libthr.
19 .if exists(${.CURDIR}/${MACHINE_CPUARCH}/Symbol.map)
20 SYMBOL_MAPS+=   ${.CURDIR}/${MACHINE_CPUARCH}/Symbol.map
21 .else
22 SYMBOL_MAPS+=   ${.CURDIR}/SymbolDefault.map
23 .endif
24 .endif
25
26 .include "../libcompiler_rt/Makefile.inc"
27 .include "../libgcc_eh/Makefile.inc"
28
29 # gcc has incompatible internal declarations for __divtc3 and __multc3, but has
30 # no option to silence its warning, so make warnings non-fatal.
31 NO_WERROR.gcc=
32
33 LIBCSRCDIR=     ${SRCTOP}/lib/libc
34 LIBMSRCDIR=     ${SRCTOP}/lib/msun/src
35 CFLAGS+=        -I${LIBCSRCDIR}/include -I${LIBCSRCDIR}/${MACHINE_CPUARCH}
36 CFLAGS+=        -I${LIBMSRCDIR}
37 .PATH:          ${LIBMSRCDIR}
38 SRCS+=          s_fabs.c
39 SRCS+=          s_fabsf.c
40 SRCS+=          s_fabsl.c
41 SRCS+=          s_fmax.c
42 SRCS+=          s_fmaxf.c
43 SRCS+=          s_logb.c
44 SRCS+=          s_logbf.c
45 SRCS+=          s_scalbn.c
46 SRCS+=          s_scalbnf.c
47
48 # Don't include long double routines on architectures where long double
49 # is the same size as double.
50 .if ${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "arm" && \
51     ${MACHINE_CPUARCH} != "powerpc"
52 SRCS+=          s_fmaxl.c
53 SRCS+=          s_logbl.c
54 SRCS+=          s_scalbnl.c
55 .endif
56
57 .include <bsd.lib.mk>