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-05-15 20:21:33 +08:00
|
|
|
SubDirs :=
|
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)
|
2011-12-02 07:35:56 +08:00
|
|
|
|
|
|
|
# Define a convenience variable for all the asan functions.
|
|
|
|
AsanFunctions := $(Sources:%.cc=%)
|