blob: 6a5052a9c5b5f32a276ac34bb4f71642c1b9721d [file] [log] [blame]
Shih-wei Liaoea285162010-06-04 12:34:56 -07001###########################################################
2## TableGen: Compile .td files to .inc.
3###########################################################
4ifeq ($(LOCAL_MODULE_CLASS),)
5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6endif
7
8ifneq ($(strip $(TBLGEN_TABLES)),)
9
10intermediates := $(call local-intermediates-dir)
11
Stephen Hinescd376b62013-01-09 00:19:46 -080012ifneq ($(findstring AttrDump.inc,$(TBLGEN_TABLES)),)
13LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/AttrDump.inc
14$(intermediates)/include/clang/AST/AttrDump.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080015$(intermediates)/include/clang/AST/AttrDump.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Stephen Hinescd376b62013-01-09 00:19:46 -080016 $(call transform-host-clang-td-to-out,clang-attr-dump)
17endif
18
Shih-wei Liao3049ec92010-09-10 14:45:09 -070019ifneq ($(findstring AttrImpl.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +080020LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/AttrImpl.inc
Logan Chien93e534a2011-12-16 17:39:13 +080021$(intermediates)/include/clang/AST/AttrImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080022$(intermediates)/include/clang/AST/AttrImpl.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Logan Chienfe6bd6d2011-10-21 15:03:07 +080023 $(call transform-host-clang-td-to-out,clang-attr-impl)
Shih-wei Liao3049ec92010-09-10 14:45:09 -070024endif
25
26ifneq ($(findstring AttrList.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +080027LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Basic/AttrList.inc
Logan Chien93e534a2011-12-16 17:39:13 +080028$(intermediates)/include/clang/Basic/AttrList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080029$(intermediates)/include/clang/Basic/AttrList.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Logan Chienfe6bd6d2011-10-21 15:03:07 +080030 $(call transform-host-clang-td-to-out,clang-attr-list)
Shih-wei Liao3049ec92010-09-10 14:45:09 -070031endif
32
Logan9c64df22011-02-15 06:27:21 +080033ifneq ($(findstring AttrSpellings.inc,$(TBLGEN_TABLES)),)
Logan Chien93e534a2011-12-16 17:39:13 +080034LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Lex/AttrSpellings.inc
35$(intermediates)/include/clang/Lex/AttrSpellings.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080036$(intermediates)/include/clang/Lex/AttrSpellings.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Logan Chienfe6bd6d2011-10-21 15:03:07 +080037 $(call transform-host-clang-td-to-out,clang-attr-spelling-list)
Logan9c64df22011-02-15 06:27:21 +080038endif
39
Stephen Hinesbd3aca02013-03-05 23:41:44 -080040ifneq ($(findstring AttrSpellingListIndex.inc,$(TBLGEN_TABLES)),)
41LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Sema/AttrSpellingListIndex.inc
42$(intermediates)/include/clang/Sema/AttrSpellingListIndex.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
43$(intermediates)/include/clang/Sema/AttrSpellingListIndex.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
44 $(call transform-host-clang-td-to-out,clang-attr-spelling-index)
45endif
46
Logan150e0ef2011-01-19 10:29:26 +080047ifneq ($(findstring AttrPCHRead.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +080048LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Serialization/AttrPCHRead.inc
Logan Chien93e534a2011-12-16 17:39:13 +080049$(intermediates)/include/clang/Serialization/AttrPCHRead.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080050$(intermediates)/include/clang/Serialization/AttrPCHRead.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Logan Chienfe6bd6d2011-10-21 15:03:07 +080051 $(call transform-host-clang-td-to-out,clang-attr-pch-read)
Logan150e0ef2011-01-19 10:29:26 +080052endif
53
54ifneq ($(findstring AttrPCHWrite.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +080055LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Serialization/AttrPCHWrite.inc
Logan Chien93e534a2011-12-16 17:39:13 +080056$(intermediates)/include/clang/Serialization/AttrPCHWrite.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080057$(intermediates)/include/clang/Serialization/AttrPCHWrite.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Logan Chienfe6bd6d2011-10-21 15:03:07 +080058 $(call transform-host-clang-td-to-out,clang-attr-pch-write)
59endif
60
Stephen Hines229d3452014-02-08 04:04:49 -080061ifneq ($(findstring AttrIdentifierArg.inc,$(TBLGEN_TABLES)),)
62LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Parse/AttrIdentifierArg.inc
63$(intermediates)/include/clang/Parse/AttrIdentifierArg.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
64$(intermediates)/include/clang/Parse/AttrIdentifierArg.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
65 $(call transform-host-clang-td-to-out,clang-attr-identifier-arg-list)
Stephen Hines3a936ca2013-06-12 16:53:04 -070066endif
67
Logan Chienfe6bd6d2011-10-21 15:03:07 +080068ifneq ($(findstring AttrLateParsed.inc,$(TBLGEN_TABLES)),)
69LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Parse/AttrLateParsed.inc
Logan Chien93e534a2011-12-16 17:39:13 +080070$(intermediates)/include/clang/Parse/AttrLateParsed.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080071$(intermediates)/include/clang/Parse/AttrLateParsed.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Logan Chienfe6bd6d2011-10-21 15:03:07 +080072 $(call transform-host-clang-td-to-out,clang-attr-late-parsed-list)
Logan150e0ef2011-01-19 10:29:26 +080073endif
74
Shih-wei Liao3049ec92010-09-10 14:45:09 -070075ifneq ($(findstring Attrs.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +080076LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/Attrs.inc
Logan Chien93e534a2011-12-16 17:39:13 +080077$(intermediates)/include/clang/AST/Attrs.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080078$(intermediates)/include/clang/AST/Attrs.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Logan Chienfe6bd6d2011-10-21 15:03:07 +080079 $(call transform-host-clang-td-to-out,clang-attr-classes)
Shih-wei Liao3049ec92010-09-10 14:45:09 -070080endif
81
Shih-wei Liao560ad312012-03-22 11:50:56 -070082ifneq ($(findstring AttrParsedAttrKinds.inc,$(TBLGEN_TABLES)),)
83LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Sema/AttrParsedAttrKinds.inc
84$(intermediates)/include/clang/Sema/AttrParsedAttrKinds.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080085$(intermediates)/include/clang/Sema/AttrParsedAttrKinds.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Shih-wei Liao560ad312012-03-22 11:50:56 -070086 $(call transform-host-clang-td-to-out,clang-attr-parsed-attr-kinds)
87endif
88
Stephen Hines229d3452014-02-08 04:04:49 -080089ifneq ($(findstring AttrParsedAttrImpl.inc,$(TBLGEN_TABLES)),)
90LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Sema/AttrParsedAttrImpl.inc
91$(intermediates)/include/clang/Sema/AttrParsedAttrImpl.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
92$(intermediates)/include/clang/Sema/AttrParsedAttrImpl.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
93 $(call transform-host-clang-td-to-out,clang-attr-parsed-attr-impl)
94endif
95
Shih-wei Liao560ad312012-03-22 11:50:56 -070096ifneq ($(findstring AttrParsedAttrList.inc,$(TBLGEN_TABLES)),)
97LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Sema/AttrParsedAttrList.inc
98$(intermediates)/include/clang/Sema/AttrParsedAttrList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -080099$(intermediates)/include/clang/Sema/AttrParsedAttrList.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Shih-wei Liao560ad312012-03-22 11:50:56 -0700100 $(call transform-host-clang-td-to-out,clang-attr-parsed-attr-list)
101endif
102
Stephen Hines229d3452014-02-08 04:04:49 -0800103ifneq ($(findstring AttrTypeArg.inc,$(TBLGEN_TABLES)),)
104LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Parse/AttrTypeArg.inc
105$(intermediates)/include/clang/Parse/AttrTypeArg.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
106$(intermediates)/include/clang/Parse/AttrTypeArg.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
107 $(call transform-host-clang-td-to-out,clang-attr-type-arg-list)
108endif
109
Stephen Hines36103552012-03-05 15:04:58 -0800110ifneq ($(findstring AttrTemplateInstantiate.inc,$(TBLGEN_TABLES)),)
111LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Sema/AttrTemplateInstantiate.inc
112$(intermediates)/include/clang/Sema/AttrTemplateInstantiate.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -0800113$(intermediates)/include/clang/Sema/AttrTemplateInstantiate.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Attr.td | $(CLANG_TBLGEN)
Stephen Hines36103552012-03-05 15:04:58 -0800114 $(call transform-host-clang-td-to-out,clang-attr-template-instantiate)
115endif
116
Logan Chienc805eb92011-03-08 02:13:34 +0800117ifneq ($(findstring Checkers.inc,$(TBLGEN_TABLES)),)
118LOCAL_GENERATED_SOURCES += $(intermediates)/Checkers.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800119$(intermediates)/Checkers.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Logan Chienc805eb92011-03-08 02:13:34 +0800120$(intermediates)/Checkers.inc: \
121 $(CLANG_ROOT_PATH)/lib/StaticAnalyzer/Checkers/Checkers.td \
122 $(CLANG_ROOT_PATH)/include/clang/StaticAnalyzer/Checkers/CheckerBase.td \
Ying Wang1927ae92013-02-20 14:00:13 -0800123 | $(CLANG_TBLGEN)
Logan Chienfe6bd6d2011-10-21 15:03:07 +0800124 $(call transform-host-clang-td-to-out,clang-sa-checkers)
Logan Chienc805eb92011-03-08 02:13:34 +0800125endif
126
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700127ifneq ($(findstring CommentCommandInfo.inc,$(TBLGEN_TABLES)),)
128LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/CommentCommandInfo.inc
129$(intermediates)/include/clang/AST/CommentCommandInfo.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
130$(intermediates)/include/clang/AST/CommentCommandInfo.inc: \
131 $(CLANG_ROOT_PATH)/include/clang/AST/CommentCommands.td \
Ying Wang1927ae92013-02-20 14:00:13 -0800132 | $(CLANG_TBLGEN)
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700133 $(call transform-host-clang-td-to-out,clang-comment-command-info)
134endif
135
Stephen Hinesbd3aca02013-03-05 23:41:44 -0800136ifneq ($(findstring CommentCommandList.inc,$(TBLGEN_TABLES)),)
137LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/CommentCommandList.inc
138$(intermediates)/include/clang/AST/CommentCommandList.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
139$(intermediates)/include/clang/AST/CommentCommandList.inc: \
140 $(CLANG_ROOT_PATH)/include/clang/AST/CommentCommands.td \
141 | $(CLANG_TBLGEN)
142 $(call transform-host-clang-td-to-out,clang-comment-command-list)
143endif
144
145ifneq ($(findstring CommentHTMLNamedCharacterReferences.inc,$(TBLGEN_TABLES)),)
146LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc
147$(intermediates)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
148$(intermediates)/include/clang/AST/CommentHTMLNamedCharacterReferences.inc: \
149 $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLNamedCharacterReferences.td \
150 | $(CLANG_TBLGEN)
151 $(call transform-host-clang-td-to-out,clang-comment-html-named-character-references)
152endif
153
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700154ifneq ($(findstring CommentHTMLTagsProperties.inc,$(TBLGEN_TABLES)),)
155LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/CommentHTMLTagsProperties.inc
156$(intermediates)/include/clang/AST/CommentHTMLTagsProperties.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
157$(intermediates)/include/clang/AST/CommentHTMLTagsProperties.inc: \
158 $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLTags.td \
Ying Wang1927ae92013-02-20 14:00:13 -0800159 | $(CLANG_TBLGEN)
Stephen Hinese5cc4c92012-09-10 20:14:21 -0700160 $(call transform-host-clang-td-to-out,clang-comment-html-tags-properties)
161endif
162
Stephen Hines210d8aa2012-09-13 19:33:19 -0700163ifneq ($(findstring CommentHTMLTags.inc,$(TBLGEN_TABLES)),)
164LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/CommentHTMLTags.inc
165$(intermediates)/include/clang/AST/CommentHTMLTags.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
166$(intermediates)/include/clang/AST/CommentHTMLTags.inc: \
167 $(CLANG_ROOT_PATH)/include/clang/AST/CommentHTMLTags.td \
Ying Wang1927ae92013-02-20 14:00:13 -0800168 | $(CLANG_TBLGEN)
Stephen Hines210d8aa2012-09-13 19:33:19 -0700169 $(call transform-host-clang-td-to-out,clang-comment-html-tags)
170endif
171
Shih-wei Liaoee959352012-08-03 01:19:05 -0700172ifneq ($(findstring CommentNodes.inc,$(TBLGEN_TABLES)),)
173LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/CommentNodes.inc
174$(intermediates)/include/clang/AST/CommentNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
175$(intermediates)/include/clang/AST/CommentNodes.inc: \
176 $(CLANG_ROOT_PATH)/include/clang/Basic/CommentNodes.td \
Ying Wang1927ae92013-02-20 14:00:13 -0800177 | $(CLANG_TBLGEN)
Shih-wei Liaoee959352012-08-03 01:19:05 -0700178 $(call transform-host-clang-td-to-out,clang-comment-nodes)
179endif
180
Shih-wei Liaoea285162010-06-04 12:34:56 -0700181ifneq ($(filter Diagnostic%Kinds.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +0800182LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/include/clang/Basic/,$(filter Diagnostic%Kinds.inc,$(TBLGEN_TABLES)))
Logan Chien93e534a2011-12-16 17:39:13 +0800183$(intermediates)/include/clang/Basic/Diagnostic%Kinds.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Stephen Hines2302b812012-07-26 17:37:59 -0700184$(intermediates)/include/clang/Basic/Diagnostic%Kinds.inc: \
185 $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic.td \
186 $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic%Kinds.td \
Ying Wang1927ae92013-02-20 14:00:13 -0800187 | $(CLANG_TBLGEN)
Logan Chienfe6bd6d2011-10-21 15:03:07 +0800188 $(call transform-host-clang-td-to-out,clang-diags-defs -clang-component=$(patsubst Diagnostic%Kinds.inc,%,$(@F)))
Shih-wei Liaoea285162010-06-04 12:34:56 -0700189endif
190
191ifneq ($(findstring DiagnosticGroups.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +0800192LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Basic/DiagnosticGroups.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800193$(intermediates)/include/clang/Basic/DiagnosticGroups.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -0800194$(intermediates)/include/clang/Basic/DiagnosticGroups.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic.td $(CLANG_ROOT_PATH)/include/clang/Basic/DiagnosticGroups.td | $(CLANG_TBLGEN)
Logan Chienfe6bd6d2011-10-21 15:03:07 +0800195 $(call transform-host-clang-td-to-out,clang-diag-groups)
Shih-wei Liaoea285162010-06-04 12:34:56 -0700196endif
197
Nowar Gu0c115a12011-05-14 13:42:21 +0800198ifneq ($(findstring DiagnosticIndexName.inc,$(TBLGEN_TABLES)),)
199LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Basic/DiagnosticIndexName.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800200$(intermediates)/include/clang/Basic/DiagnosticIndexName.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -0800201$(intermediates)/include/clang/Basic/DiagnosticIndexName.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/Diagnostic.td | $(CLANG_TBLGEN)
Logan Chienfe6bd6d2011-10-21 15:03:07 +0800202 $(call transform-host-clang-td-to-out,clang-diag-groups)
Nowar Gu0c115a12011-05-14 13:42:21 +0800203endif
204
Shih-wei Liao3049ec92010-09-10 14:45:09 -0700205ifneq ($(findstring DeclNodes.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +0800206LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/DeclNodes.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800207$(intermediates)/include/clang/AST/DeclNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -0800208$(intermediates)/include/clang/AST/DeclNodes.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/DeclNodes.td | $(CLANG_TBLGEN)
Logan Chienfe6bd6d2011-10-21 15:03:07 +0800209 $(call transform-host-clang-td-to-out,clang-decl-nodes)
Shih-wei Liao3049ec92010-09-10 14:45:09 -0700210endif
211
212ifneq ($(findstring StmtNodes.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +0800213LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/AST/StmtNodes.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800214$(intermediates)/include/clang/AST/StmtNodes.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -0800215$(intermediates)/include/clang/AST/StmtNodes.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/StmtNodes.td | $(CLANG_TBLGEN)
Logan Chienfe6bd6d2011-10-21 15:03:07 +0800216 $(call transform-host-clang-td-to-out,clang-stmt-nodes)
Shih-wei Liao3049ec92010-09-10 14:45:09 -0700217endif
218
219ifneq ($(findstring arm_neon.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +0800220LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Basic/arm_neon.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800221$(intermediates)/include/clang/Basic/arm_neon.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Ying Wang1927ae92013-02-20 14:00:13 -0800222$(intermediates)/include/clang/Basic/arm_neon.inc: $(CLANG_ROOT_PATH)/include/clang/Basic/arm_neon.td | $(CLANG_TBLGEN)
Logan Chienfe6bd6d2011-10-21 15:03:07 +0800223 $(call transform-host-clang-td-to-out,arm-neon-sema)
Shih-wei Liao3049ec92010-09-10 14:45:09 -0700224endif
225
Shih-wei Liaoea285162010-06-04 12:34:56 -0700226ifneq ($(findstring Options.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +0800227LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Driver/Options.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800228$(intermediates)/include/clang/Driver/Options.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Stephen Hinesa9025112013-08-08 02:26:27 -0700229$(intermediates)/include/clang/Driver/Options.inc: $(CLANG_ROOT_PATH)/include/clang/Driver/Options.td $(LLVM_ROOT_PATH)/include/llvm/Option/OptParser.td $(CLANG_ROOT_PATH)/include/clang/Driver/CC1Options.td \
230 | $(CLANG_TBLGEN) $(TBLGEN)
231 $(call transform-host-td-to-out,opt-parser-defs)
Shih-wei Liaoea285162010-06-04 12:34:56 -0700232endif
233
Logan150e0ef2011-01-19 10:29:26 +0800234ifneq ($(findstring CC1AsOptions.inc,$(TBLGEN_TABLES)),)
Loganac774a72011-01-19 12:06:46 +0800235LOCAL_GENERATED_SOURCES += $(intermediates)/include/clang/Driver/CC1AsOptions.inc
Logan Chien93e534a2011-12-16 17:39:13 +0800236$(intermediates)/include/clang/Driver/CC1AsOptions.inc: TBLGEN_LOCAL_MODULE := $(LOCAL_MODULE)
Stephen Hinesa9025112013-08-08 02:26:27 -0700237$(intermediates)/include/clang/Driver/CC1AsOptions.inc: $(CLANG_ROOT_PATH)/include/clang/Driver/CC1AsOptions.td $(LLVM_ROOT_PATH)/include/llvm/Option/OptParser.td \
238 | $(CLANG_TBLGEN) $(TBLGEN)
239 $(call transform-host-td-to-out,opt-parser-defs)
Logan150e0ef2011-01-19 10:29:26 +0800240endif
241
Loganac774a72011-01-19 12:06:46 +0800242LOCAL_C_INCLUDES += $(intermediates)/include
243
Shih-wei Liao200213f2010-06-07 22:05:52 -0700244endif