blob: 97da64bec573ac412e113429cc6b77606d1ecadb [file] [log] [blame]
Kostya Serebryany1e172b42011-11-30 01:07:02 +00001#===- 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
Daniel Dunbarf06648a2011-12-02 02:42:07 +000010ModuleName := asan
Alexander Potapenko7c2a3bb2013-02-20 15:46:02 +000011SubDirs :=
Daniel Dunbarcc080e52011-12-01 23:35:56 +000012
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)
Alexey Samsonov3dc47e52012-08-01 14:55:49 +000020Dependencies += $(wildcard $(Dir)/../interception/*.h)
Alexey Samsonov1069b9a2012-08-27 13:47:28 +000021Dependencies += $(wildcard $(Dir)/../sanitizer_common/*.h)
Daniel Dunbarcc080e52011-12-01 23:35:56 +000022
23# Define a convenience variable for all the asan functions.
24AsanFunctions := $(Sources:%.cc=%)