Makefile revision 80febb9876b6de01fc688fb18511567c7af29a12
1LEVEL = ../../../../.. 2BUILT_SOURCES = DiagnosticAnalysisKinds.inc DiagnosticASTKinds.inc \ 3 DiagnosticCommonKinds.inc DiagnosticDriverKinds.inc \ 4 DiagnosticFrontendKinds.inc DiagnosticLexKinds.inc \ 5 DiagnosticParseKinds.inc DiagnosticSemaKinds.inc \ 6 DiagnosticGroups.inc 7 8TABLEGEN_INC_FILES_COMMON = 1 9 10include $(LEVEL)/Makefile.common 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 23