2011-11-30 09:07:02 +08:00
|
|
|
#===- lib/asan/Makefile.mk ---------------------------------*- Makefile -*--===#
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
#===------------------------------------------------------------------------===#
|
|
|
|
|
2011-12-02 10:42:07 +08:00
|
|
|
ModuleName := asan
|
2012-09-08 03:57:28 +08:00
|
|
|
SubDirs := dynamic
|
2011-12-02 07:35:56 +08:00
|
|
|
|
|
|
|
Sources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file)))
|
|
|
|
ObjNames := $(Sources:%.cc=%.o)
|
|
|
|
|
|
|
|
Implementation := Generic
|
|
|
|
|
|
|
|
# FIXME: use automatic dependencies?
|
|
|
|
Dependencies := $(wildcard $(Dir)/*.h)
|
2012-08-01 22:55:49 +08:00
|
|
|
Dependencies += $(wildcard $(Dir)/../interception/*.h)
|
|
|
|
Dependencies += $(wildcard $(Dir)/../interception/mach_override/*.h)
|
2012-08-27 21:47:28 +08:00
|
|
|
Dependencies += $(wildcard $(Dir)/../sanitizer_common/*.h)
|
2011-12-02 07:35:56 +08:00
|
|
|
|
|
|
|
# Define a convenience variable for all the asan functions.
|
|
|
|
AsanFunctions := $(Sources:%.cc=%)
|