1CLANG_LEVEL := ../../..
2BUILT_SOURCES = Options.inc CC1AsOptions.inc
3
4TABLEGEN_INC_FILES_COMMON = 1
5
6include $(CLANG_LEVEL)/Makefile
7
8$(ObjDir)/Options.inc.tmp : Options.td CC1Options.td OptParser.td $(CLANG_TBLGEN) $(ObjDir)/.dir
9	$(Echo) "Building Clang Driver Option tables with tblgen"
10	$(Verb) $(ClangTableGen) -gen-opt-parser-defs -o $(call SYSPATH, $@) $<
11
12$(ObjDir)/CC1AsOptions.inc.tmp : CC1AsOptions.td OptParser.td $(CLANG_TBLGEN) $(ObjDir)/.dir
13	$(Echo) "Building Clang CC1 Assembler Option tables with tblgen"
14	$(Verb) $(ClangTableGen) -gen-opt-parser-defs -o $(call SYSPATH, $@) $<
15