Makefile revision c24a76e376a767edc14e60bed716396a84cb127a
1CLANG_LEVEL := ../../..
2TD_SRC_DIR = $(PROJ_SRC_DIR)/../Basic
3BUILT_SOURCES = Attrs.inc AttrImpl.inc StmtNodes.inc DeclNodes.inc \
4                CommentNodes.inc CommentHTMLTags.inc \
5                CommentHTMLTagsProperties.inc
6
7TABLEGEN_INC_FILES_COMMON = 1
8
9include $(CLANG_LEVEL)/Makefile
10
11$(ObjDir)/Attrs.inc.tmp : $(TD_SRC_DIR)/Attr.td $(CLANG_TBLGEN) \
12                              $(ObjDir)/.dir
13	$(Echo) "Building Clang attribute classes with tblgen"
14	$(Verb) $(ClangTableGen) -gen-clang-attr-classes -o $(call SYSPATH, $@) \
15		-I $(PROJ_SRC_DIR)/../../ $<
16
17$(ObjDir)/AttrImpl.inc.tmp : $(TD_SRC_DIR)/Attr.td $(CLANG_TBLGEN) \
18                              $(ObjDir)/.dir
19	$(Echo) "Building Clang attribute implementations with tblgen"
20	$(Verb) $(ClangTableGen) -gen-clang-attr-impl -o $(call SYSPATH, $@) \
21		-I $(PROJ_SRC_DIR)/../../ $<
22
23$(ObjDir)/StmtNodes.inc.tmp : $(TD_SRC_DIR)/StmtNodes.td $(CLANG_TBLGEN) \
24                              $(ObjDir)/.dir
25	$(Echo) "Building Clang statement node tables with tblgen"
26	$(Verb) $(ClangTableGen) -gen-clang-stmt-nodes -o $(call SYSPATH, $@) $<
27
28$(ObjDir)/DeclNodes.inc.tmp : $(TD_SRC_DIR)/DeclNodes.td $(CLANG_TBLGEN) \
29                              $(ObjDir)/.dir
30	$(Echo) "Building Clang declaration node tables with tblgen"
31	$(Verb) $(ClangTableGen) -gen-clang-decl-nodes -o $(call SYSPATH, $@) $<
32
33$(ObjDir)/CommentNodes.inc.tmp : $(TD_SRC_DIR)/CommentNodes.td $(CLANG_TBLGEN) \
34                              $(ObjDir)/.dir
35	$(Echo) "Building Clang comment node tables with tblgen"
36	$(Verb) $(ClangTableGen) -gen-clang-comment-nodes -o $(call SYSPATH, $@) $<
37
38$(ObjDir)/CommentHTMLTags.inc.tmp : $(PROJ_SRC_DIR)/CommentHTMLTags.td $(CLANG_TBLGEN) \
39                              $(ObjDir)/.dir
40	$(Echo) "Building Clang comment HTML tag matchers with tblgen"
41	$(Verb) $(ClangTableGen) -gen-clang-comment-html-tags -o $(call SYSPATH, $@) $<
42
43$(ObjDir)/CommentHTMLTagsProperties.inc.tmp : $(PROJ_SRC_DIR)/CommentHTMLTags.td \
44                                              $(CLANG_TBLGEN) $(ObjDir)/.dir
45	$(Echo) "Building Clang comment HTML tag properties with tblgen"
46	$(Verb) $(ClangTableGen) -gen-clang-comment-html-tags-properties -o $(call SYSPATH, $@) $<
47
48