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
|
2013-02-20 23:46:02 +08:00
|
|
|
SubDirs :=
|
2011-12-02 07:35:56 +08:00
|
|
|
|
2014-05-07 16:55:46 +08:00
|
|
|
CCSources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file)))
|
2014-05-13 02:39:22 +08:00
|
|
|
CXXOnlySources := asan_new_delete.cc
|
|
|
|
COnlySources := $(filter-out $(CXXOnlySources),$(CCSources))
|
2014-05-07 16:55:46 +08:00
|
|
|
SSources := $(foreach file,$(wildcard $(Dir)/*.S),$(notdir $(file)))
|
|
|
|
Sources := $(CCSources) $(SSources)
|
|
|
|
ObjNames := $(CCSources:%.cc=%.o) $(SSources:%.S=%.o)
|
2011-12-02 07:35:56 +08:00
|
|
|
|
|
|
|
Implementation := Generic
|
|
|
|
|
|
|
|
# FIXME: use automatic dependencies?
|
|
|
|
Dependencies := $(wildcard $(Dir)/*.h)
|
2012-08-01 22:55:49 +08:00
|
|
|
Dependencies += $(wildcard $(Dir)/../interception/*.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.
|
2014-05-13 02:39:22 +08:00
|
|
|
AsanFunctions := $(COnlySources:%.cc=%) $(SSources:%.S=%)
|
|
|
|
AsanCXXFunctions := $(CXXOnlySources:%.cc=%)
|