2015-01-08 22:40:56 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
|
2016-09-03 21:41:29 +00:00
|
|
|
LIB= clang_rt.profile-${CRTARCH}
|
2015-01-08 22:40:56 +00:00
|
|
|
|
2017-12-23 21:41:32 +00:00
|
|
|
CFLAGS+= -DCOMPILER_RT_HAS_ATOMICS=1
|
|
|
|
CFLAGS+= -DCOMPILER_RT_HAS_FCNTL_LCK=1
|
|
|
|
CFLAGS+= -DCOMPILER_RT_HAS_UNAME=1
|
|
|
|
|
2017-01-31 07:13:01 +00:00
|
|
|
# This is needed for --coverage
|
2017-11-05 19:25:06 +00:00
|
|
|
CXXFLAGS+= -fvisibility=default
|
2017-01-31 07:13:01 +00:00
|
|
|
|
2016-09-03 21:41:29 +00: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 11:41:15 +00:00
|
|
|
SRCS+= profile/InstrProfilingNameVar.c
|
2016-09-03 21:41:29 +00:00
|
|
|
SRCS+= profile/InstrProfilingPlatformDarwin.c
|
|
|
|
SRCS+= profile/InstrProfilingPlatformLinux.c
|
|
|
|
SRCS+= profile/InstrProfilingPlatformOther.c
|
|
|
|
SRCS+= profile/InstrProfilingRuntime.cc
|
|
|
|
SRCS+= profile/InstrProfilingUtil.c
|
|
|
|
SRCS+= profile/InstrProfilingValue.c
|
|
|
|
SRCS+= profile/InstrProfilingWriter.c
|
2015-01-08 22:40:56 +00:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|