1b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany#===- lib/sanitizer_common/Makefile.mk ---------------------*- Makefile -*--===#
2b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany#
3b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany#                     The LLVM Compiler Infrastructure
4b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany#
5b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany# This file is distributed under the University of Illinois Open Source
6b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany# License. See LICENSE.TXT for details.
7b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany#
8b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany#===------------------------------------------------------------------------===#
9b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany
10b3cedf98a3c8545da2234c2d35cb5d687984035fKostya SerebryanyModuleName := sanitizer_common
11b3cedf98a3c8545da2234c2d35cb5d687984035fKostya SerebryanySubDirs :=
12b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany
13b3cedf98a3c8545da2234c2d35cb5d687984035fKostya SerebryanySources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file)))
14b3cedf98a3c8545da2234c2d35cb5d687984035fKostya SerebryanyObjNames := $(Sources:%.cc=%.o)
15b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany
16b3cedf98a3c8545da2234c2d35cb5d687984035fKostya SerebryanyImplementation := Generic
17b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany
18b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany# FIXME: use automatic dependencies?
19b3cedf98a3c8545da2234c2d35cb5d687984035fKostya SerebryanyDependencies := $(wildcard $(Dir)/*.h)
20b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany
21b3cedf98a3c8545da2234c2d35cb5d687984035fKostya Serebryany# Define a convenience variable for all the sanitizer_common functions.
22b3cedf98a3c8545da2234c2d35cb5d687984035fKostya SerebryanySanitizerCommonFunctions := $(Sources:%.cc=%)
23