1 #===- lib/asan/Makefile.mk ---------------------------------*- Makefile -*--===#
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 #===------------------------------------------------------------------------===#
13 CCSources
:= $(foreach file
,$(wildcard $(Dir
)/*.
cc),$(notdir $(file
)))
14 CXXOnlySources
:= asan_new_delete.
cc
15 COnlySources
:= $(filter-out $(CXXOnlySources
),$(CCSources
))
16 SSources
:= $(foreach file
,$(wildcard $(Dir
)/*.S
),$(notdir $(file
)))
17 Sources
:= $(CCSources
) $(SSources
)
18 ObjNames
:= $(CCSources
:%.
cc=%.o
) $(SSources
:%.S
=%.o
)
20 Implementation
:= Generic
22 # FIXME: use automatic dependencies?
23 Dependencies
:= $(wildcard $(Dir
)/*.h
)
24 Dependencies
+= $(wildcard $(Dir
)/..
/interception
/*.h
)
25 Dependencies
+= $(wildcard $(Dir
)/..
/sanitizer_common
/*.h
)
27 # Define a convenience variable for all the asan functions.
28 AsanFunctions
:= $(COnlySources
:%.
cc=%) $(SSources
:%.S
=%)
29 AsanCXXFunctions
:= $(CXXOnlySources
:%.
cc=%)