Makefile.mk revision 4026c2c28927b90a97cda2a713c761f633bb1422
1#===- lib/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 := builtins
11SubDirs :=
12
13# Add arch specific optimized implementations.
14SubDirs += i386 ppc x86_64 arm
15
16# Add other submodules.
17SubDirs += asan
18SubDirs += interception
19SubDirs += profile
20SubDirs += tsan
21
22# FIXME: We don't currently support building an atomic library, and as it must
23# be a separate library from the runtime library, we need to remove its source
24# code from the source files list.
25ExcludedSources := atomic.c
26
27# Define the variables for this specific directory.
28Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(filter-out $(ExcludedSources),$(notdir $(file))))
29ObjNames := $(Sources:%.c=%.o)
30Implementation := Generic
31
32# FIXME: use automatic dependencies?
33Dependencies := $(wildcard $(Dir)/*.h)
34