summaryrefslogtreecommitdiffstats
path: root/unittests/Option/Makefile
blob: 8c90a83da872f23088e3a49b45f029f5d20da315 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
##===- unittests/Option/Makefile ---------------------------*- Makefile -*-===##
#
#                     The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##

LEVEL = ../..
TESTNAME = Option
LINK_COMPONENTS := option support

BUILT_SOURCES = Opts.inc
TABLEGEN_INC_FILES_COMMON = 1

include $(LEVEL)/Makefile.config

include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest

$(ObjDir)/Opts.inc.tmp : Opts.td $(LLVM_TBLGEN) $(ObjDir)/.dir
	$(Echo) "Building Driver Option tables with tblgen"
	$(Verb) $(LLVMTableGen) -gen-opt-parser-defs -o $(call SYSPATH, $@) $<