1#===- lib/tsan/rtl/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 := tsan 11SubDirs := 12 13Sources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file))) 14AsmSources := $(foreach file,$(wildcard $(Dir)/*.S),$(notdir $(file))) 15ObjNames := $(Sources:%.cc=%.o) $(AsmSources:%.S=%.o) 16 17Implementation := Generic 18 19# FIXME: use automatic dependencies? 20Dependencies := $(wildcard $(Dir)/*.h) 21Dependencies += $(wildcard $(Dir)/../../interception/*.h) 22Dependencies += $(wildcard $(Dir)/../../sanitizer_common/*.h) 23 24# Define a convenience variable for all the tsan functions. 25TsanFunctions += $(Sources:%.cc=%) $(AsmSources:%.S=%) 26