Makefile.mk revision 38b7c1bd5dcbd669759a31b6c9fb6e8683432896
1#===- lib/asan/Makefile.mk ---------------------------------*- Makefile -*--===#
2#
3#                     The LLVM Compiler Infrastructure
4#
5# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
7#
8#===------------------------------------------------------------------------===#
9
10ModuleName := asan
11SubDirs := dynamic
12
13Sources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file)))
14ObjNames := $(Sources:%.cc=%.o)
15
16Implementation := Generic
17
18# FIXME: use automatic dependencies?
19Dependencies := $(wildcard $(Dir)/*.h)
20Dependencies += $(wildcard $(Dir)/../interception/*.h)
21Dependencies += $(wildcard $(Dir)/../interception/mach_override/*.h)
22Dependencies += $(wildcard $(Dir)/../sanitizer_common/*.h)
23
24# Define a convenience variable for all the asan functions.
25AsanFunctions := $(Sources:%.cc=%)
26