]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libclang_rt/profile/Makefile
MFC r364081:
[FreeBSD/FreeBSD.git] / lib / libclang_rt / profile / Makefile
1 # $FreeBSD$
2
3 .include <bsd.init.mk>
4
5 LIB=            clang_rt.profile-${CRTARCH}
6
7 CFLAGS+=        -DCOMPILER_RT_HAS_ATOMICS=1
8 CFLAGS+=        -DCOMPILER_RT_HAS_FCNTL_LCK=1
9 CFLAGS+=        -DCOMPILER_RT_HAS_UNAME=1
10
11 # This is needed for --coverage
12 CXXFLAGS+=      -fvisibility=default
13
14 SRCS+=          profile/GCDAProfiling.c
15 SRCS+=          profile/InstrProfiling.c
16 SRCS+=          profile/InstrProfilingBuffer.c
17 SRCS+=          profile/InstrProfilingFile.c
18 SRCS+=          profile/InstrProfilingMerge.c
19 SRCS+=          profile/InstrProfilingMergeFile.c
20 SRCS+=          profile/InstrProfilingNameVar.c
21 SRCS+=          profile/InstrProfilingPlatformLinux.c
22 SRCS+=          profile/InstrProfilingPlatformOther.c
23 SRCS+=          profile/InstrProfilingRuntime.cpp
24 SRCS+=          profile/InstrProfilingUtil.c
25 SRCS+=          profile/InstrProfilingValue.c
26 SRCS+=          profile/InstrProfilingWriter.c
27
28 .PATH:          ${CRTSRC}/include/profile
29 INCSDIR=        ${CLANGDIR}/include/profile
30 INCS+=          InstrProfData.inc
31
32 .include <bsd.lib.mk>