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