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