1##===- lib/LibDriver/Makefile ------------------------------*- Makefile -*-===##
2#
3#                     The LLVM Compiler Infrastructure
4#
5# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
7#
8##===----------------------------------------------------------------------===##
9
10LEVEL = ../..
11LIBRARYNAME = LLVMLibDriver
12BUILD_ARCHIVE := 1
13BUILT_SOURCES = Options.inc
14TABLEGEN_INC_FILES_COMMON = 1
15
16include $(LEVEL)/Makefile.common
17
18$(ObjDir)/Options.inc.tmp : Options.td $(LLVM_TBLGEN) $(ObjDir)/.dir
19	$(Echo) "Building lib Driver Option tables with tblgen"
20	$(Verb) $(LLVMTableGen) -gen-opt-parser-defs -o $(call SYSPATH, $@) $<
21