2009-06-27 00:47:03 +08:00
|
|
|
#===- lib/Makefile.mk --------------------------------------*- Makefile -*--===#
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
#===------------------------------------------------------------------------===#
|
|
|
|
|
2011-12-02 10:42:07 +08:00
|
|
|
ModuleName := builtins
|
2011-11-17 08:12:10 +08:00
|
|
|
SubDirs :=
|
2009-06-27 00:47:03 +08:00
|
|
|
|
2011-11-17 08:12:10 +08:00
|
|
|
# Add arch specific optimized implementations.
|
|
|
|
SubDirs += i386 ppc x86_64 arm
|
|
|
|
|
|
|
|
# Add other submodules.
|
2011-12-02 07:35:56 +08:00
|
|
|
SubDirs += asan
|
2012-05-15 20:21:33 +08:00
|
|
|
SubDirs += interception
|
2011-11-17 08:12:10 +08:00
|
|
|
SubDirs += profile
|
2012-05-29 20:18:18 +08:00
|
|
|
SubDirs += sanitizer_common
|
2012-05-15 23:17:35 +08:00
|
|
|
SubDirs += tsan
|
2013-02-21 21:55:54 +08:00
|
|
|
SubDirs += msan
|
2012-11-14 07:55:06 +08:00
|
|
|
SubDirs += ubsan
|
2013-05-22 21:20:37 +08:00
|
|
|
SubDirs += lsan
|
2013-08-08 06:47:26 +08:00
|
|
|
SubDirs += dfsan
|
2011-11-17 08:12:10 +08:00
|
|
|
|
|
|
|
# Define the variables for this specific directory.
|
2013-05-22 04:40:36 +08:00
|
|
|
Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
|
2009-06-27 00:47:03 +08:00
|
|
|
ObjNames := $(Sources:%.c=%.o)
|
2010-01-18 14:49:09 +08:00
|
|
|
Implementation := Generic
|
2009-06-27 00:47:03 +08:00
|
|
|
|
|
|
|
# FIXME: use automatic dependencies?
|
|
|
|
Dependencies := $(wildcard $(Dir)/*.h)
|