2015-01-08 17:40:56 -05:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
|
|
2016-09-03 17:41:29 -04:00
|
|
|
LIB= clang_rt.profile-${CRTARCH}
|
2015-01-08 17:40:56 -05:00
|
|
|
|
2017-12-23 16:41:32 -05:00
|
|
|
CFLAGS+= -DCOMPILER_RT_HAS_ATOMICS=1
|
|
|
|
|
CFLAGS+= -DCOMPILER_RT_HAS_FCNTL_LCK=1
|
|
|
|
|
CFLAGS+= -DCOMPILER_RT_HAS_UNAME=1
|
|
|
|
|
|
2017-01-31 02:13:01 -05:00
|
|
|
# This is needed for --coverage
|
2017-11-05 14:25:06 -05:00
|
|
|
CXXFLAGS+= -fvisibility=default
|
2017-01-31 02:13:01 -05:00
|
|
|
|
2016-09-03 17:41:29 -04:00
|
|
|
SRCS+= profile/GCDAProfiling.c
|
|
|
|
|
SRCS+= profile/InstrProfiling.c
|
|
|
|
|
SRCS+= profile/InstrProfilingBuffer.c
|
|
|
|
|
SRCS+= profile/InstrProfilingFile.c
|
|
|
|
|
SRCS+= profile/InstrProfilingMerge.c
|
|
|
|
|
SRCS+= profile/InstrProfilingMergeFile.c
|
2017-07-02 07:41:15 -04:00
|
|
|
SRCS+= profile/InstrProfilingNameVar.c
|
2016-09-03 17:41:29 -04:00
|
|
|
SRCS+= profile/InstrProfilingPlatformLinux.c
|
|
|
|
|
SRCS+= profile/InstrProfilingPlatformOther.c
|
2020-01-27 15:46:26 -05:00
|
|
|
SRCS+= profile/InstrProfilingRuntime.cpp
|
2016-09-03 17:41:29 -04:00
|
|
|
SRCS+= profile/InstrProfilingUtil.c
|
|
|
|
|
SRCS+= profile/InstrProfilingValue.c
|
|
|
|
|
SRCS+= profile/InstrProfilingWriter.c
|
2015-01-08 17:40:56 -05:00
|
|
|
|
2020-08-10 12:55:54 -04:00
|
|
|
.PATH: ${CRTSRC}/include/profile
|
|
|
|
|
INCSDIR= ${CLANGDIR}/include/profile
|
|
|
|
|
INCS+= InstrProfData.inc
|
|
|
|
|
|
2015-01-08 17:40:56 -05:00
|
|
|
.include <bsd.lib.mk>
|