blob: 8054c35aa3620e185a499a1c2b0e01c52e61a4d8 [file] [log] [blame]
Daniel Dunbarb3a69012009-06-26 16:47:03 +00001#===- 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
Daniel Dunbarf06648a2011-12-02 02:42:07 +000010ModuleName := builtins
Daniel Dunbar8c881192011-11-17 00:12:10 +000011SubDirs :=
Daniel Dunbarb3a69012009-06-26 16:47:03 +000012
Daniel Dunbar8c881192011-11-17 00:12:10 +000013# Add arch specific optimized implementations.
14SubDirs += i386 ppc x86_64 arm
15
16# Add other submodules.
Daniel Dunbarcc080e52011-12-01 23:35:56 +000017SubDirs += asan
Kostya Serebryany0d499042012-05-15 12:21:33 +000018SubDirs += interception
Daniel Dunbar8c881192011-11-17 00:12:10 +000019SubDirs += profile
Kostya Serebryanyb3cedf92012-05-29 12:18:18 +000020SubDirs += sanitizer_common
Kostya Serebryany4026c2c2012-05-15 15:17:35 +000021SubDirs += tsan
Evgeniy Stepanov372b2672013-02-21 13:55:54 +000022SubDirs += msan
Richard Smith4a4ef702012-11-13 23:55:06 +000023SubDirs += ubsan
Alexey Samsonov975a3292013-05-22 13:20:37 +000024SubDirs += lsan
Daniel Dunbar8c881192011-11-17 00:12:10 +000025
26# Define the variables for this specific directory.
Daniel Dunbard4ad20b2013-05-21 20:40:36 +000027Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
Daniel Dunbarb3a69012009-06-26 16:47:03 +000028ObjNames := $(Sources:%.c=%.o)
Daniel Dunbar6db90e62010-01-18 06:49:09 +000029Implementation := Generic
Daniel Dunbarb3a69012009-06-26 16:47:03 +000030
31# FIXME: use automatic dependencies?
32Dependencies := $(wildcard $(Dir)/*.h)