Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 3 | include $(CLEAR_TBLGEN_VARS) |
| 4 | |
Logan Chien | 9b879db | 2011-12-16 13:25:42 +0800 | [diff] [blame] | 5 | clang_codegen_TBLGEN_TABLES := \ |
| 6 | AttrList.inc \ |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 7 | AttrParsedAttrList.inc \ |
Logan Chien | 9b879db | 2011-12-16 13:25:42 +0800 | [diff] [blame] | 8 | Attrs.inc \ |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 9 | AttrVisitor.inc \ |
Stephen Hines | bd3aca0 | 2013-03-05 23:41:44 -0800 | [diff] [blame] | 10 | CommentCommandList.inc \ |
Shih-wei Liao | ee95935 | 2012-08-03 01:19:05 -0700 | [diff] [blame] | 11 | CommentNodes.inc \ |
Logan Chien | 9b879db | 2011-12-16 13:25:42 +0800 | [diff] [blame] | 12 | DeclNodes.inc \ |
| 13 | DiagnosticCommonKinds.inc \ |
| 14 | DiagnosticFrontendKinds.inc \ |
Stephen Hines | 3a936ca | 2013-06-12 16:53:04 -0700 | [diff] [blame] | 15 | DiagnosticSemaKinds.inc \ |
Logan Chien | 9b879db | 2011-12-16 13:25:42 +0800 | [diff] [blame] | 16 | StmtNodes.inc \ |
| 17 | arm_neon.inc |
| 18 | |
Pirama Arumuga Nainar | 4967a71 | 2016-09-19 22:19:55 -0700 | [diff] [blame^] | 19 | clang_codegen_SRC_FILES := $(sort $(notdir $(wildcard $(LOCAL_PATH)/*.cpp))) |
Logan Chien | 9b879db | 2011-12-16 13:25:42 +0800 | [diff] [blame] | 20 | |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 21 | # For the host |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 22 | # ===================================================== |
| 23 | include $(CLEAR_VARS) |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 24 | |
Logan Chien | 9b879db | 2011-12-16 13:25:42 +0800 | [diff] [blame] | 25 | LOCAL_MODULE:= libclangCodeGen |
| 26 | LOCAL_MODULE_TAGS := optional |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 27 | |
| 28 | LOCAL_SRC_FILES := $(clang_codegen_SRC_FILES) |
Logan Chien | 9b879db | 2011-12-16 13:25:42 +0800 | [diff] [blame] | 29 | TBLGEN_TABLES := $(clang_codegen_TBLGEN_TABLES) |
Logan | 150e0ef | 2011-01-19 10:29:26 +0800 | [diff] [blame] | 30 | |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 31 | include $(CLANG_HOST_BUILD_MK) |
Shih-wei Liao | 3049ec9 | 2010-09-10 14:45:09 -0700 | [diff] [blame] | 32 | include $(CLANG_VERSION_INC_MK) |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 33 | include $(CLANG_TBLGEN_RULES_MK) |
Pirama Arumuga Nainar | 87d948e | 2016-03-03 15:49:35 -0800 | [diff] [blame] | 34 | include $(LLVM_GEN_ATTRIBUTES_MK) |
Shih-wei Liao | ea28516 | 2010-06-04 12:34:56 -0700 | [diff] [blame] | 35 | include $(LLVM_GEN_INTRINSICS_MK) |
| 36 | include $(BUILD_HOST_STATIC_LIBRARY) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 37 | |
| 38 | # For the target |
| 39 | # ===================================================== |
| 40 | include $(CLEAR_VARS) |
| 41 | |
| 42 | LOCAL_MODULE:= libclangCodeGen |
| 43 | LOCAL_MODULE_TAGS := optional |
| 44 | |
| 45 | LOCAL_SRC_FILES := $(clang_codegen_SRC_FILES) |
| 46 | TBLGEN_TABLES := $(clang_codegen_TBLGEN_TABLES) |
| 47 | |
| 48 | include $(CLANG_DEVICE_BUILD_MK) |
| 49 | include $(CLANG_VERSION_INC_MK) |
| 50 | include $(CLANG_TBLGEN_RULES_MK) |
Pirama Arumuga Nainar | 87d948e | 2016-03-03 15:49:35 -0800 | [diff] [blame] | 51 | include $(LLVM_GEN_ATTRIBUTES_MK) |
Tong Shen | e559960 | 2014-09-19 12:02:00 -0700 | [diff] [blame] | 52 | include $(LLVM_GEN_INTRINSICS_MK) |
| 53 | include $(BUILD_STATIC_LIBRARY) |