[OCaml] Embed the flags necessary for linking with libLLVM.so into .cmxa files
[oota-llvm.git] / utils / TableGen / Makefile
index 98417d2b755c66713f6ad0e6519e0e9617642994..9bfd94b7576bd24fdedbf838e67e07e127f0cff0 100644 (file)
@@ -1,36 +1,18 @@
-LEVEL = ../..
-TOOLNAME = tblgen
-USEDLIBS = support.a
-
-.PRECIOUS: FileLexer.cpp FileParser.cpp
-
-include $(LEVEL)/Makefile.common
-
+##===- utils/TableGen/Makefile -----------------------------*- Makefile -*-===##
 #
-# 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.
+#                     The LLVM Compiler Infrastructure
 #
-FileLexer.cpp: FileParser.h
-
-clean::
-       -rm -f FileParser.cpp FileParser.h FileLexer.cpp CommandLine.cpp
-       -rm -f FileParser.output
-
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
 
-dump:: $(TOOLEXENAME_G)
-       $(TOOLEXENAME_G) < X86.td
+LEVEL = ../..
+TOOLNAME = llvm-tblgen
+USEDLIBS = LLVMTableGen.a LLVMSupport.a
 
-parse: $(TOOLEXENAME_G)
-       $(TOOLEXENAME_G) < X86.td -parse
+# This tool has no plugins, optimize startup time.
+TOOL_NO_EXPORTS = 1
 
-test:: $(TOOLEXENAME_G)
-       @echo "enum {"
-       @$(TOOLEXENAME_G) < X86.td -class=Register
-       @echo 
-       @echo "};"
+include $(LEVEL)/Makefile.common
 
-       @echo "enum {"
-       @$(TOOLEXENAME_G) < X86.td -class=Instruction
-       @echo 
-       @echo "};"