1 ##===- unittests/Option/Makefile ---------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
12 LINK_COMPONENTS := option support
14 BUILT_SOURCES = Opts.inc
15 TABLEGEN_INC_FILES_COMMON = 1
17 include $(LEVEL)/Makefile.config
19 include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
21 $(ObjDir)/Opts.inc.tmp : Opts.td $(LLVM_TBLGEN) $(ObjDir)/.dir
22 $(Echo) "Building Driver Option tables with tblgen"
23 $(Verb) $(LLVMTableGen) -gen-opt-parser-defs -o $(call SYSPATH, $@) $<