summaryrefslogtreecommitdiff
path: root/unittests/Option/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/Option/Makefile')
-rw-r--r--unittests/Option/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/unittests/Option/Makefile b/unittests/Option/Makefile
new file mode 100644
index 0000000000..8c90a83da8
--- /dev/null
+++ b/unittests/Option/Makefile
@@ -0,0 +1,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, $@) $<