diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2012-09-07 19:57:28 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2012-09-07 19:57:28 +0000 |
| commit | 44b3474b0e920bf082d145bed4ab0cdb9e280964 (patch) | |
| tree | 6af770cabe534e395d1cb942b1d251dc35a91df6 /compiler-rt | |
| parent | c053c2bcda6f1805f95f708a1c733ec4c6dbaf4b (diff) | |
| download | bcm5719-llvm-44b3474b0e920bf082d145bed4ab0cdb9e280964.tar.gz bcm5719-llvm-44b3474b0e920bf082d145bed4ab0cdb9e280964.zip | |
build: Teach Makefile build system about asan/dynamic subdir.
llvm-svn: 163413
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/lib/asan/Makefile.mk | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/asan/dynamic/Makefile.mk | 25 |
2 files changed, 26 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/Makefile.mk b/compiler-rt/lib/asan/Makefile.mk index 0be12d2246e..af9602e8b24 100644 --- a/compiler-rt/lib/asan/Makefile.mk +++ b/compiler-rt/lib/asan/Makefile.mk @@ -8,7 +8,7 @@ #===------------------------------------------------------------------------===# ModuleName := asan -SubDirs := +SubDirs := dynamic Sources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file))) ObjNames := $(Sources:%.cc=%.o) diff --git a/compiler-rt/lib/asan/dynamic/Makefile.mk b/compiler-rt/lib/asan/dynamic/Makefile.mk new file mode 100644 index 00000000000..897844e7eed --- /dev/null +++ b/compiler-rt/lib/asan/dynamic/Makefile.mk @@ -0,0 +1,25 @@ +#===- lib/asan/dynamic/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 := asan_dynamic +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)/../../interception/mach_override/*.h) +Dependencies += $(wildcard $(Dir)/../../sanitizer_common/*.h) + +# Define a convenience variable for the asan dynamic functions. +AsanDynamicFunctions := $(Sources:%.cc=%) |

