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 := 12 13CCSources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file))) 14CXXOnlySources := asan_new_delete.cc 15COnlySources := $(filter-out $(CXXOnlySources),$(CCSources)) 16SSources := $(foreach file,$(wildcard $(Dir)/*.S),$(notdir $(file))) 17Sources := $(CCSources) $(SSources) 18ObjNames := $(CCSources:%.cc=%.o) $(SSources:%.S=%.o) 19 20Implementation := Generic 21 22# FIXME: use automatic dependencies? 23Dependencies := $(wildcard $(Dir)/*.h) 24Dependencies += $(wildcard $(Dir)/../interception/*.h) 25Dependencies += $(wildcard $(Dir)/../sanitizer_common/*.h) 26 27# Define a convenience variable for all the asan functions. 28AsanFunctions := $(COnlySources:%.cc=%) $(SSources:%.S=%) 29AsanCXXFunctions := $(CXXOnlySources:%.cc=%) 30