[llvm-commits] CVS: llvm-java/test/Makefile.test

Alkis Evlogimenos alkis at cs.uiuc.edu
Thu Jul 15 04:28:54 PDT 2004



Changes in directory llvm-java/test:

Makefile.test updated: 1.1 -> 1.2

---
Log message:

Add runtime and move some rules to Makefile.rules. Now we link to the
runtime (which is currently almost empty :-)).


---
Diffs of the changes:  (+17 -6)

Index: llvm-java/test/Makefile.test
diff -u llvm-java/test/Makefile.test:1.1 llvm-java/test/Makefile.test:1.2
--- llvm-java/test/Makefile.test:1.1	Wed Jul 14 03:30:35 2004
+++ llvm-java/test/Makefile.test	Thu Jul 15 06:28:44 2004
@@ -7,11 +7,22 @@
 #
 ##===----------------------------------------------------------------------===##
 
-# rule to build raw bytecode from a classfile
-Output/%.rbc: %.class Output/.dir
-	$(CLASS2LLVM) $* | $(LLVMTOOLCURRENT)/opt$(EXEEXT) -mem2reg > $@
+include $(LEVEL)/Makefile.common
 
-%.ll: %.rbc
-	$(LLVMTOOLCURRENT)/llvm-dis$(EXEEXT) < $< > $@
+.PHONY: clean
 
-include $(LEVEL)/Makefile.common
+clean::
+	$(RM) -f a.out core
+	$(RM) -rf Output/
+
+# we don't want these files to be deleted by make, even if they are
+# intermediate results
+.PRECIOUS: Output/.dir Output/%.bc Output/%.ll Output/%.llvm.bc Output/%.llvm
+
+# rule to build raw bytecode from a classfile
+Output/%.raw.bc: %.class Output/.dir
+	$(CLASS2LLVM) $* | $(LOPT) -mem2reg > $@
+
+#rule to link in runtime to raw bytecode
+Output/%.linked.bc: Output/%.raw.bc
+	$(LLVMTOOLCURRENT)/llvm-link$(EXEEXT) $< $(BUILD_SRC_ROOT)/runtime/runtime.bc -o $@





More information about the llvm-commits mailing list