Change 'make install' to install tblgen, for better support of out-of-tree targets,
[oota-llvm.git] / utils / TableGen / Makefile
index 89a956d9dde9633a67eea33997fea23458f4c9aa..7ea88de05591d953245b493c00c595e5b376d8b1 100644 (file)
@@ -1,18 +1,20 @@
+##===- utils/TableGen/Makefile -----------------------------*- Makefile -*-===##
+# 
+#                     The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+# 
+##===----------------------------------------------------------------------===##
+
 LEVEL = ../..
 TOOLNAME = tblgen
-USEDLIBS = support.a
+USEDLIBS = LLVMSupport.a LLVMSystem.a
+REQUIRES_EH := 1
+REQUIRES_RTTI := 1
 
-.PRECIOUS: FileLexer.cpp FileParser.cpp
+# This tool has no plugins, optimize startup time.
+TOOL_NO_EXPORTS = 1
 
 include $(LEVEL)/Makefile.common
 
-#
-# Make the source file depend on the header file.  In this way, dependencies
-# (which depend on the source file) won't get generated until bison is done
-# generating the C source and header files for the parser.
-#
-FileLexer.cpp: FileParser.h
-
-clean::
-       -rm -f FileParser.cpp FileParser.h FileLexer.cpp CommandLine.cpp
-       -rm -f FileParser.output