Implement Regression/TableGen/DagDefSubst.ll
[oota-llvm.git] / utils / TableGen / Makefile
index a9c235037e26c2958bf2f76124672d97a9154e3e..a7723485e55fa97226e36bb152dda89adbfa121a 100644 (file)
@@ -1,23 +1,20 @@
+##===- utils/TableGen/Makefile -----------------------------*- Makefile -*-===##
+# 
+#                     The LLVM Compiler Infrastructure
+#
+# This file was developed by the LLVM research group and 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
 
 include $(LEVEL)/Makefile.common
 
-clean::
-       -rm -f FileParser.cpp FileParser.h FileLexer.cpp CommandLine.cpp
-       -rm -f FileParser.output
-
-test::
-       $(TOOLEXENAME_G) < X86.td
-       # -parse
-
-       @echo "enum {"
-       @$(TOOLEXENAME_G) < X86.td -class=Register
-       @echo 
-       @echo "};"
-
-       @echo "enum {"
-       @$(TOOLEXENAME_G) < X86.td -class=Instruction
-       @echo 
-       @echo "};"
+#
+# 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.
+#
+$(ObjDir)/FileLexer.o : $(PROJ_SRC_DIR)/FileParser.h