]> granicus.if.org Git - clang/commitdiff
move clang specific makefile goop to clang instead of llvm. This may require
authorChris Lattner <sabre@nondot.org>
Wed, 15 Apr 2009 19:58:08 +0000 (19:58 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 15 Apr 2009 19:58:08 +0000 (19:58 +0000)
updating the llvm tree.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69207 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Makefile

index 39193111b3fad5503ba6c26cc31c0e6b35cd4345..f8fefcf84d8ce3df9ab45f2081b9d7de116e10c4 100644 (file)
@@ -3,7 +3,19 @@ BUILT_SOURCES = DiagnosticAnalysisKinds.inc DiagnosticASTKinds.inc \
        DiagnosticCommonKinds.inc DiagnosticDriverKinds.inc \
        DiagnosticFrontendKinds.inc DiagnosticLexKinds.inc \
        DiagnosticParseKinds.inc DiagnosticSemaKinds.inc
+#        DiagnosticGroups.inc
 
-CLANG_BUILD_DIAGNOSTICS_INC = 1
+TABLEGEN_INC_FILES_COMMON = 1
 
 include $(LEVEL)/Makefile.common
+
+$(ObjDir)/Diagnostic%Kinds.inc.tmp : Diagnostic.td Diagnostic%Kinds.td $(TBLGEN)
+       $(Echo) "Building Clang $(patsubst Diagnostic%Kinds.inc.tmp,%,$(@F)) diagnostic tables with tblgen"
+       $(Verb) $(MKDIR) $(@D)
+       $(Verb) $(TableGen) -gen-clang-diags-defs -clang-component=$(patsubst Diagnostic%Kinds.inc.tmp,%,$(@F)) -o $(call SYSPATH, $@) $<
+
+
+
+# DiagnosticGroups.inc
+
+