1 CLANG_LEVEL := ../../.. 2 TD_SRC_DIR = $(PROJ_SRC_DIR)/../Basic 3 BUILT_SOURCES = Attrs.inc AttrImpl.inc AttrDump.inc \ 4 StmtNodes.inc DeclNodes.inc \ 5 CommentNodes.inc CommentHTMLTags.inc \ 6 CommentHTMLTagsProperties.inc \ 7 CommentHTMLNamedCharacterReferences.inc \ 8 CommentCommandInfo.inc \ 9 CommentCommandList.inc 10 11 TABLEGEN_INC_FILES_COMMON = 1 12 13 include $(CLANG_LEVEL)/Makefile 14 15 $(ObjDir)/Attrs.inc.tmp : $(TD_SRC_DIR)/Attr.td $(CLANG_TBLGEN) \ 16 $(ObjDir)/.dir 17 $(Echo) "Building Clang attribute classes with tblgen" 18 $(Verb) $(ClangTableGen) -gen-clang-attr-classes -o $(call SYSPATH, $@) \ 19 -I $(PROJ_SRC_DIR)/../../ $< 20 21 $(ObjDir)/AttrImpl.inc.tmp : $(TD_SRC_DIR)/Attr.td $(CLANG_TBLGEN) \ 22 $(ObjDir)/.dir 23 $(Echo) "Building Clang attribute implementations with tblgen" 24 $(Verb) $(ClangTableGen) -gen-clang-attr-impl -o $(call SYSPATH, $@) \ 25 -I $(PROJ_SRC_DIR)/../../ $< 26 27 $(ObjDir)/AttrDump.inc.tmp : $(TD_SRC_DIR)/Attr.td $(CLANG_TBLGEN) \ 28 $(ObjDir)/.dir 29 $(Echo) "Building Clang attribute dumper with tblgen" 30 $(Verb) $(ClangTableGen) -gen-clang-attr-dump -o $(call SYSPATH, $@) \ 31 -I $(PROJ_SRC_DIR)/../../ $< 32 33 $(ObjDir)/StmtNodes.inc.tmp : $(TD_SRC_DIR)/StmtNodes.td $(CLANG_TBLGEN) \ 34 $(ObjDir)/.dir 35 $(Echo) "Building Clang statement node tables with tblgen" 36 $(Verb) $(ClangTableGen) -gen-clang-stmt-nodes -o $(call SYSPATH, $@) $< 37 38 $(ObjDir)/DeclNodes.inc.tmp : $(TD_SRC_DIR)/DeclNodes.td $(CLANG_TBLGEN) \ 39 $(ObjDir)/.dir 40 $(Echo) "Building Clang declaration node tables with tblgen" 41 $(Verb) $(ClangTableGen) -gen-clang-decl-nodes -o $(call SYSPATH, $@) $< 42 43 $(ObjDir)/CommentNodes.inc.tmp : $(TD_SRC_DIR)/CommentNodes.td $(CLANG_TBLGEN) \ 44 $(ObjDir)/.dir 45 $(Echo) "Building Clang comment node tables with tblgen" 46 $(Verb) $(ClangTableGen) -gen-clang-comment-nodes -o $(call SYSPATH, $@) $< 47 48 $(ObjDir)/CommentHTMLTags.inc.tmp : $(PROJ_SRC_DIR)/CommentHTMLTags.td $(CLANG_TBLGEN) \ 49 $(ObjDir)/.dir 50 $(Echo) "Building Clang comment HTML tag matchers with tblgen" 51 $(Verb) $(ClangTableGen) -gen-clang-comment-html-tags -o $(call SYSPATH, $@) $< 52 53 $(ObjDir)/CommentHTMLTagsProperties.inc.tmp : $(PROJ_SRC_DIR)/CommentHTMLTags.td \ 54 $(CLANG_TBLGEN) $(ObjDir)/.dir 55 $(Echo) "Building Clang comment HTML tag properties with tblgen" 56 $(Verb) $(ClangTableGen) -gen-clang-comment-html-tags-properties -o $(call SYSPATH, $@) $< 57 58 $(ObjDir)/CommentHTMLNamedCharacterReferences.inc.tmp : \ 59 $(PROJ_SRC_DIR)/CommentHTMLNamedCharacterReferences.td \ 60 $(CLANG_TBLGEN) $(ObjDir)/.dir 61 $(Echo) "Building Clang named character reference translation function with tblgen" 62 $(Verb) $(ClangTableGen) -gen-clang-comment-html-named-character-references -o $(call SYSPATH, $@) $< 63 64 $(ObjDir)/CommentCommandInfo.inc.tmp : $(PROJ_SRC_DIR)/CommentCommands.td \ 65 $(CLANG_TBLGEN) $(ObjDir)/.dir 66 $(Echo) "Building Clang comment command info with tblgen" 67 $(Verb) $(ClangTableGen) -gen-clang-comment-command-info -o $(call SYSPATH, $@) $< 68 69 $(ObjDir)/CommentCommandList.inc.tmp : $(PROJ_SRC_DIR)/CommentCommands.td \ 70 $(CLANG_TBLGEN) $(ObjDir)/.dir 71 $(Echo) "Building Clang list of comment commands with tblgen" 72 $(Verb) $(ClangTableGen) -gen-clang-comment-command-list -o $(call SYSPATH, $@) $< 73 74