Makefile revision 387475d0c18aaeb022108de9d33b6c9fb7998843
1CLANG_LEVEL := ../../.. 2BUILT_SOURCES = DiagnosticAnalysisKinds.inc DiagnosticASTKinds.inc \ 3 DiagnosticCommonKinds.inc DiagnosticDriverKinds.inc \ 4 DiagnosticFrontendKinds.inc DiagnosticLexKinds.inc \ 5 DiagnosticParseKinds.inc DiagnosticSemaKinds.inc \ 6 DiagnosticGroups.inc AttrList.inc 7 8TABLEGEN_INC_FILES_COMMON = 1 9 10include $(CLANG_LEVEL)/Makefile 11 12INPUT_TDS = $(wildcard $(PROJ_SRC_DIR)/Diagnostic*.td) 13 14$(ObjDir)/Diagnostic%Kinds.inc.tmp : Diagnostic.td Diagnostic%Kinds.td $(TBLGEN) $(ObjDir)/.dir 15 $(Echo) "Building Clang $(patsubst Diagnostic%Kinds.inc.tmp,%,$(@F)) diagnostic tables with tblgen" 16 $(Verb) $(TableGen) -gen-clang-diags-defs -clang-component=$(patsubst Diagnostic%Kinds.inc.tmp,%,$(@F)) -o $(call SYSPATH, $@) $< 17 18$(ObjDir)/DiagnosticGroups.inc.tmp : Diagnostic.td DiagnosticGroups.td $(INPUT_TDS) $(TBLGEN) $(ObjDir)/.dir 19 $(Echo) "Building Clang diagnostic groups with tblgen" 20 $(Verb) $(TableGen) -gen-clang-diag-groups -o $(call SYSPATH, $@) $< 21 22$(ObjDir)/AttrList.inc.tmp : Attr.td $(TBLGEN) $(ObjDir)/.dir 23 $(Echo) "Building Clang attribute list with tblgen" 24 $(Verb) $(TableGen) -gen-clang-attr-list -o $(call SYSPATH, $@) \ 25 -I $(PROJ_SRC_DIR)/../.. $< 26