summaryrefslogtreecommitdiffstats
path: root/lib/clang/libllvmprofiledata/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/clang/libllvmprofiledata/Makefile')
-rw-r--r--lib/clang/libllvmprofiledata/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/clang/libllvmprofiledata/Makefile b/lib/clang/libllvmprofiledata/Makefile
index 332bf1c..a38a190 100644
--- a/lib/clang/libllvmprofiledata/Makefile
+++ b/lib/clang/libllvmprofiledata/Makefile
@@ -1,6 +1,6 @@
# $FreeBSD$
-.include <bsd.own.mk>
+.include <src.opts.mk>
LIB= llvmprofiledata
@@ -12,7 +12,10 @@ SRCS= CoverageMapping.cpp \
InstrProfReader.cpp \
InstrProfWriter.cpp \
SampleProf.cpp \
- SampleProfReader.cpp \
- SampleProfWriter.cpp
+ SampleProfReader.cpp
+
+.if ${MK_CLANG_EXTRAS} != "no"
+SRCS+= SampleProfWriter.cpp
+.endif
.include "../clang.lib.mk"
OpenPOWER on IntegriCloud