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