implement new method
[oota-llvm.git] / utils / TableGen / Makefile
index 21c68c6b02d1d5b93f7f66f66404a54769017509..8774925ea4a0aa33b06bba7dea56755dd951cbe9 100644 (file)
@@ -1,29 +1,24 @@
+##===- 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
 
-.PRECIOUS: FileLexer.cpp FileParser.cpp
-
 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
-
-
-dump:: $(TOOLEXENAME_G)
-       $(TOOLEXENAME_G) < X86.td
-
-parse: $(TOOLEXENAME_G)
-       $(TOOLEXENAME_G) < X86.td -parse
-
-test:: $(TOOLEXENAME_G)
-       @echo "enum {"
-       @$(TOOLEXENAME_G) < X86.td -class=Register
-       @echo 
-       @echo "};"
-
-       @echo "enum {"
-       @$(TOOLEXENAME_G) < X86.td -class=Instruction
-       @echo 
-       @echo "};"