summaryrefslogtreecommitdiff
path: root/lib/lsan
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-02-17 23:30:51 +0000
committerMatthias Braun <matze@braunis.de>2015-02-17 23:30:51 +0000
commit7859c0ef5b932f0074e4af67f8ff9014e86ff673 (patch)
treeac2f6863e4715ecb9634c55b8f3c525d616c4714 /lib/lsan
parent9f1b2b2a2655682ebf544623e8633d8f887d8649 (diff)
Revert "Remove support for building sanitizers from Makefile/autoconf build."
This reverts commit r229556. Reverting this for now as internal apple builds rely on this functionality. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@229585 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lsan')
-rw-r--r--lib/lsan/Makefile.mk28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/lsan/Makefile.mk b/lib/lsan/Makefile.mk
new file mode 100644
index 000000000..2a6b41c98
--- /dev/null
+++ b/lib/lsan/Makefile.mk
@@ -0,0 +1,28 @@
+#===- lib/lsan/Makefile.mk ---------------------------------*- Makefile -*--===#
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+#===------------------------------------------------------------------------===#
+
+ModuleName := lsan
+SubDirs :=
+
+Sources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file)))
+ObjNames := $(Sources:%.cc=%.o)
+
+Implementation := Generic
+
+# FIXME: use automatic dependencies?
+Dependencies := $(wildcard $(Dir)/*.h)
+Dependencies += $(wildcard $(Dir)/../interception/*.h)
+Dependencies += $(wildcard $(Dir)/../sanitizer_common/*.h)
+
+# Define a convenience variable for all the lsan functions.
+LsanFunctions := $(Sources:%.cc=%)
+
+# lsan functions used in another sanitizers.
+LsanCommonSources := $(foreach file,$(wildcard $(Dir)/lsan_common*.cc),$(notdir $(file)))
+LsanCommonFunctions := $(LsanCommonSources:%.cc=%)