asan: Fill in integration with compiler-rt/make build.

llvm-svn: 145648
This commit is contained in:
Daniel Dunbar 2011-12-01 23:35:56 +00:00
parent 5dc7770bf7
commit 12024d00a7
4 changed files with 55 additions and 1 deletions

View File

@ -13,6 +13,7 @@ SubDirs :=
SubDirs += i386 ppc x86_64 arm
# Add other submodules.
SubDirs += asan
SubDirs += profile
# Define the variables for this specific directory.

View File

@ -7,4 +7,15 @@
#
#===------------------------------------------------------------------------===#
# See README.txt
SubDirs := mach_override sysinfo
Sources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file)))
ObjNames := $(Sources:%.cc=%.o)
Implementation := Generic
# FIXME: use automatic dependencies?
Dependencies := $(wildcard $(Dir)/*.h)
# Define a convenience variable for all the asan functions.
AsanFunctions := $(Sources:%.cc=%)

View File

@ -0,0 +1,21 @@
#===- lib/asan/mach_override/Makefile.mk -------------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
SubDirs :=
Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
ObjNames := $(Sources:%.c=%.o)
Implementation := Generic
# FIXME: use automatic dependencies?
Dependencies := $(wildcard $(Dir)/*.h)
# Define a convenience variable for all the asan functions.
AsanFunctions += $(Sources:%.c=%)

View File

@ -0,0 +1,21 @@
#===- lib/asan/sysinfo/Makefile.mk -------------------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
SubDirs :=
Sources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file)))
ObjNames := $(Sources:%.c=%.o)
Implementation := Generic
# FIXME: use automatic dependencies?
Dependencies := $(wildcard $(Dir)/*.h)
# Define a convenience variable for all the asan functions.
AsanFunctions += $(Sources:%.cc=%)