]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libcompiler_rt/Makefile
Implement pci_enable_msi() and pci_disable_msi() in the LinuxKPI.
[FreeBSD/FreeBSD.git] / lib / libcompiler_rt / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 PACKAGE=        lib${LIB}
6 LIB=            compiler_rt
7 NO_PIC=
8 WARNS?=         2
9
10 CFLAGS+=        ${PICFLAG}
11 CFLAGS+=        -fvisibility=hidden
12 CFLAGS+=        -DVISIBILITY_HIDDEN
13 CFLAGS+=        -I${SRCTOP}/contrib/libcxxrt
14
15 .if ${COMPILER_TYPE} == "clang"
16 CWARNFLAGS.gcc_personality_v0.c+= -Wno-typedef-redefinition
17 .endif
18
19 # gcc has incompatible internal declarations for __divtc3 and __multc3, but has
20 # no option to silence its warning, so make warnings non-fatal.
21 NO_WERROR.gcc=
22
23 .include "Makefile.inc"
24
25 .if ${MK_INSTALLLIB} != "no"
26 SYMLINKS+=      libcompiler_rt.a ${LIBDIR}/libgcc.a
27 .endif
28 .if ${MK_PROFILE} != "no"
29 SYMLINKS+=      libcompiler_rt_p.a ${LIBDIR}/libgcc_p.a
30 .endif
31
32 .include <bsd.lib.mk>