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/InstrProfilingBuffer.c 17SRCS+= profile/InstrProfilingFile.c 18SRCS+= profile/InstrProfilingInternal.c 19SRCS+= profile/InstrProfilingMerge.c 20SRCS+= profile/InstrProfilingMergeFile.c 21SRCS+= profile/InstrProfilingNameVar.c 22SRCS+= profile/InstrProfilingPlatformLinux.c 23SRCS+= profile/InstrProfilingPlatformOther.c 24SRCS+= profile/InstrProfilingRuntime.cpp 25SRCS+= profile/InstrProfilingUtil.c 26SRCS+= profile/InstrProfilingValue.c 27SRCS+= profile/InstrProfilingVersionVar.c 28SRCS+= profile/InstrProfilingWriter.c 29 30.PATH: ${CRTSRC}/include/profile 31INCSDIR= ${CLANGDIR}/include/profile 32INCS+= InstrProfData.inc 33INCS+= MemProfData.inc 34 35.include <bsd.lib.mk> 36