Makefile.mk revision 3e587a4f631c1b7338d4f2a29df74b704b8bb1ca
1#===- lib/ubsan/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 := ubsan 11SubDirs := 12 13Sources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file))) 14CXXSources := ubsan_type_hash.cc ubsan_handlers_cxx.cc 15CSources := $(filter-out $(CXXSources),$(Sources)) 16ObjNames := $(Sources:%.cc=%.o) 17 18Implementation := Generic 19 20# FIXME: use automatic dependencies? 21Dependencies := $(wildcard $(Dir)/*.h) 22Dependencies += $(wildcard $(Dir)/../sanitizer_common/*.h) 23 24# Define a convenience variable for all the ubsan functions. 25UbsanFunctions := $(CSources:%.cc=%) 26UbsanCXXFunctions := $(CXXSources:%.cc=%) 27