aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-05-29 03:32:49 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-05-29 03:32:49 +0000
commit983d1d38358485f4e595d7b50ea7080ad80cf4ea (patch)
tree1b9bb7b4ae77930ba55d4c43354ed07815fe9d36
parentdafa504341121fec1467bc6d606aeb1a3144391d (diff)
downloadexternal_llvm-983d1d38358485f4e595d7b50ea7080ad80cf4ea.zip
external_llvm-983d1d38358485f4e595d7b50ea7080ad80cf4ea.tar.gz
external_llvm-983d1d38358485f4e595d7b50ea7080ad80cf4ea.tar.bz2
This should work better with re-generating the SparcV9CodeEmitter.inc file.
Also, added a rule to delete the generated .inc file on `make clean'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6389 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/SparcV9/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/Target/SparcV9/Makefile b/lib/Target/SparcV9/Makefile
index 8aa28ad..96923f9 100644
--- a/lib/Target/SparcV9/Makefile
+++ b/lib/Target/SparcV9/Makefile
@@ -3,12 +3,6 @@ LIBRARYNAME = sparc
ExtraSource = Debug/Sparc.burm.cpp
-SparcV9CodeEmitter.cpp: SparcV9CodeEmitter.inc
-
-SparcV9CodeEmitter.inc: SparcV9.td
- @echo "TableGen-erating $@"
- cpp -P SparcV9.td | tblgen -gen-emitter > SparcV9CodeEmitter.inc
-
include $(LEVEL)/Makefile.common
ifdef ENABLE_OPTIMIZED
@@ -38,3 +32,11 @@ Debug/Sparc.burm : Debug/Sparc.burg.in1
$(BUILD_ROOT)/Depend/Sparc.burm.d: $(BUILD_ROOT)/Depend/.dir
touch $@
+SparcV9CodeEmitter.cpp: SparcV9CodeEmitter.inc
+
+SparcV9CodeEmitter.inc: SparcV9.td
+ @echo "TableGen-erating $@"
+ cpp -P SparcV9.td | tblgen -gen-emitter > SparcV9CodeEmitter.inc
+
+clean::
+ rm -f SparcV9CodeEmitter.inc