1 CLANG_LEVEL := ../../.. 2 TD_SRC_DIR = $(PROJ_SRC_DIR)/../Basic 3 BUILT_SOURCES = Attrs.inc AttrImpl.inc StmtNodes.inc DeclNodes.inc 4 5 TABLEGEN_INC_FILES_COMMON = 1 6 7 include $(CLANG_LEVEL)/Makefile 8 9 $(ObjDir)/Attrs.inc.tmp : $(TD_SRC_DIR)/Attr.td $(TBLGEN) \ 10 $(ObjDir)/.dir 11 $(Echo) "Building Clang attribute classes with tblgen" 12 $(Verb) $(TableGen) -gen-clang-attr-classes -o $(call SYSPATH, $@) \ 13 -I $(PROJ_SRC_DIR)/../../ $< 14 15 $(ObjDir)/AttrImpl.inc.tmp : $(TD_SRC_DIR)/Attr.td $(TBLGEN) \ 16 $(ObjDir)/.dir 17 $(Echo) "Building Clang attribute implementations with tblgen" 18 $(Verb) $(TableGen) -gen-clang-attr-impl -o $(call SYSPATH, $@) \ 19 -I $(PROJ_SRC_DIR)/../../ $< 20 21 $(ObjDir)/StmtNodes.inc.tmp : $(TD_SRC_DIR)/StmtNodes.td $(TBLGEN) \ 22 $(ObjDir)/.dir 23 $(Echo) "Building Clang statement node tables with tblgen" 24 $(Verb) $(TableGen) -gen-clang-stmt-nodes -o $(call SYSPATH, $@) $< 25 26 $(ObjDir)/DeclNodes.inc.tmp : $(TD_SRC_DIR)/DeclNodes.td $(TBLGEN) \ 27 $(ObjDir)/.dir 28 $(Echo) "Building Clang declaration node tables with tblgen" 29 $(Verb) $(TableGen) -gen-clang-decl-nodes -o $(call SYSPATH, $@) $< 30