Daniel Dunbar | b3a6901 | 2009-06-26 16:47:03 +0000 | [diff] [blame] | 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 | |
Daniel Dunbar | f06648a | 2011-12-02 02:42:07 +0000 | [diff] [blame] | 10 | ModuleName := builtins |
Daniel Dunbar | 8c88119 | 2011-11-17 00:12:10 +0000 | [diff] [blame] | 11 | SubDirs := |
Daniel Dunbar | b3a6901 | 2009-06-26 16:47:03 +0000 | [diff] [blame] | 12 | |
Daniel Dunbar | 8c88119 | 2011-11-17 00:12:10 +0000 | [diff] [blame] | 13 | # Add arch specific optimized implementations. |
| 14 | SubDirs += i386 ppc x86_64 arm |
| 15 | |
| 16 | # Add other submodules. |
Daniel Dunbar | cc080e5 | 2011-12-01 23:35:56 +0000 | [diff] [blame] | 17 | SubDirs += asan |
Kostya Serebryany | 0d49904 | 2012-05-15 12:21:33 +0000 | [diff] [blame] | 18 | SubDirs += interception |
Daniel Dunbar | 8c88119 | 2011-11-17 00:12:10 +0000 | [diff] [blame] | 19 | SubDirs += profile |
Kostya Serebryany | b3cedf9 | 2012-05-29 12:18:18 +0000 | [diff] [blame] | 20 | SubDirs += sanitizer_common |
Kostya Serebryany | 4026c2c | 2012-05-15 15:17:35 +0000 | [diff] [blame] | 21 | SubDirs += tsan |
Evgeniy Stepanov | 372b267 | 2013-02-21 13:55:54 +0000 | [diff] [blame] | 22 | SubDirs += msan |
Richard Smith | 4a4ef70 | 2012-11-13 23:55:06 +0000 | [diff] [blame] | 23 | SubDirs += ubsan |
Alexey Samsonov | 975a329 | 2013-05-22 13:20:37 +0000 | [diff] [blame] | 24 | SubDirs += lsan |
Daniel Dunbar | 8c88119 | 2011-11-17 00:12:10 +0000 | [diff] [blame] | 25 | |
| 26 | # Define the variables for this specific directory. |
Daniel Dunbar | d4ad20b | 2013-05-21 20:40:36 +0000 | [diff] [blame] | 27 | Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file))) |
Daniel Dunbar | b3a6901 | 2009-06-26 16:47:03 +0000 | [diff] [blame] | 28 | ObjNames := $(Sources:%.c=%.o) |
Daniel Dunbar | 6db90e6 | 2010-01-18 06:49:09 +0000 | [diff] [blame] | 29 | Implementation := Generic |
Daniel Dunbar | b3a6901 | 2009-06-26 16:47:03 +0000 | [diff] [blame] | 30 | |
| 31 | # FIXME: use automatic dependencies? |
| 32 | Dependencies := $(wildcard $(Dir)/*.h) |