Makefile revision af01bed59b2fe18fa483f5dbb86584b31eda6f98
19f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse WilsonCLANG_LEVEL := ../../..
29f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse WilsonTD_SRC_DIR = $(PROJ_SRC_DIR)/../Basic
39f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse WilsonBUILT_SOURCES = Attrs.inc AttrImpl.inc AttrDump.inc \
49f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                StmtNodes.inc DeclNodes.inc \
59f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                CommentNodes.inc CommentHTMLTags.inc \
69f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                CommentHTMLTagsProperties.inc \
79f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                CommentHTMLNamedCharacterReferences.inc \
89f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                CommentCommandInfo.inc
99f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
109f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse WilsonTABLEGEN_INC_FILES_COMMON = 1
119f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
129f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsoninclude $(CLANG_LEVEL)/Makefile
139f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
149f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson$(ObjDir)/Attrs.inc.tmp : $(TD_SRC_DIR)/Attr.td $(CLANG_TBLGEN) \
159f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                              $(ObjDir)/.dir
169f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Echo) "Building Clang attribute classes with tblgen"
179f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Verb) $(ClangTableGen) -gen-clang-attr-classes -o $(call SYSPATH, $@) \
189f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson		-I $(PROJ_SRC_DIR)/../../ $<
199f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
209f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson$(ObjDir)/AttrImpl.inc.tmp : $(TD_SRC_DIR)/Attr.td $(CLANG_TBLGEN) \
219f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                              $(ObjDir)/.dir
229f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Echo) "Building Clang attribute implementations with tblgen"
239f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Verb) $(ClangTableGen) -gen-clang-attr-impl -o $(call SYSPATH, $@) \
249f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson		-I $(PROJ_SRC_DIR)/../../ $<
259f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
269f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson$(ObjDir)/AttrDump.inc.tmp : $(TD_SRC_DIR)/Attr.td $(CLANG_TBLGEN) \
279f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                              $(ObjDir)/.dir
289f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Echo) "Building Clang attribute dumper with tblgen"
299f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Verb) $(ClangTableGen) -gen-clang-attr-dump -o $(call SYSPATH, $@) \
309f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson		-I $(PROJ_SRC_DIR)/../../ $<
319f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
329f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson$(ObjDir)/StmtNodes.inc.tmp : $(TD_SRC_DIR)/StmtNodes.td $(CLANG_TBLGEN) \
339f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                              $(ObjDir)/.dir
349f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Echo) "Building Clang statement node tables with tblgen"
359f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Verb) $(ClangTableGen) -gen-clang-stmt-nodes -o $(call SYSPATH, $@) $<
369f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
379f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson$(ObjDir)/DeclNodes.inc.tmp : $(TD_SRC_DIR)/DeclNodes.td $(CLANG_TBLGEN) \
389f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                              $(ObjDir)/.dir
399f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Echo) "Building Clang declaration node tables with tblgen"
409f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Verb) $(ClangTableGen) -gen-clang-decl-nodes -o $(call SYSPATH, $@) $<
419f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
429f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson$(ObjDir)/CommentNodes.inc.tmp : $(TD_SRC_DIR)/CommentNodes.td $(CLANG_TBLGEN) \
439f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                              $(ObjDir)/.dir
449f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Echo) "Building Clang comment node tables with tblgen"
459f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Verb) $(ClangTableGen) -gen-clang-comment-nodes -o $(call SYSPATH, $@) $<
469f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
479f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson$(ObjDir)/CommentHTMLTags.inc.tmp : $(PROJ_SRC_DIR)/CommentHTMLTags.td $(CLANG_TBLGEN) \
489f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                              $(ObjDir)/.dir
499f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Echo) "Building Clang comment HTML tag matchers with tblgen"
509f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Verb) $(ClangTableGen) -gen-clang-comment-html-tags -o $(call SYSPATH, $@) $<
519f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
529f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson$(ObjDir)/CommentHTMLTagsProperties.inc.tmp : $(PROJ_SRC_DIR)/CommentHTMLTags.td \
539f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                                              $(CLANG_TBLGEN) $(ObjDir)/.dir
549f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Echo) "Building Clang comment HTML tag properties with tblgen"
559f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Verb) $(ClangTableGen) -gen-clang-comment-html-tags-properties -o $(call SYSPATH, $@) $<
569f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
579f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson$(ObjDir)/CommentHTMLNamedCharacterReferences.inc.tmp : \
589f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                    $(PROJ_SRC_DIR)/CommentHTMLNamedCharacterReferences.td \
599f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                    $(CLANG_TBLGEN) $(ObjDir)/.dir
609f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Echo) "Building Clang named character reference translation function with tblgen"
619f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Verb) $(ClangTableGen) -gen-clang-comment-html-named-character-references -o $(call SYSPATH, $@) $<
629f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
639f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson$(ObjDir)/CommentCommandInfo.inc.tmp : $(PROJ_SRC_DIR)/CommentCommands.td \
649f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                                              $(CLANG_TBLGEN) $(ObjDir)/.dir
659f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Echo) "Building Clang comment command info with tblgen"
669f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Verb) $(ClangTableGen) -gen-clang-comment-command-info -o $(call SYSPATH, $@) $<
679f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
689f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson$(ObjDir)/CommentCommandList.inc.tmp : $(PROJ_SRC_DIR)/CommentCommands.td \
699f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson                                              $(CLANG_TBLGEN) $(ObjDir)/.dir
709f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Echo) "Building Clang list of comment commands with tblgen"
719f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson	$(Verb) $(ClangTableGen) -gen-clang-comment-command-list -o $(call SYSPATH, $@) $<
729f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
739f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson