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

Alkis Evlogimenos alkis at cs.uiuc.edu
Sat Jul 24 04:43:38 PDT 2004



Changes in directory llvm-java/test:

Makefile.test updated: 1.6 -> 1.7

---
Log message:

Build .class files one by one by invoking javac on each one of them (instead of all togeter)

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

Index: llvm-java/test/Makefile.test
diff -u llvm-java/test/Makefile.test:1.6 llvm-java/test/Makefile.test:1.7
--- llvm-java/test/Makefile.test:1.6	Fri Jul 23 20:29:34 2004
+++ llvm-java/test/Makefile.test	Sat Jul 24 06:43:28 2004
@@ -9,13 +9,6 @@
 
 include $(LEVEL)/Makefile.common
 
-ifdef BUILD_JAVA_SOURCE
-all:: .class-stamp
-.class-stamp: $(shell find . -name '*.java')
-	$(JAVAC) $?
-	touch .class-stamp
-endif
-
 .PHONY: clean
 
 clean::
@@ -24,10 +17,10 @@
 
 # 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
+.PRECIOUS: Output/.dir Output/%.bc Output/%.ll Output/%.llvm.bc Output/%.llvm Output/%.class
 
 #rule to link in runtime to raw bytecode
-Output/%.linked.bc: Output/%.raw.bc $(BUILD_SRC_ROOT)/runtime/runtime.bc
+%.linked.bc: %.raw.bc $(BUILD_SRC_ROOT)/runtime/runtime.bc
 	$(LLVMTOOLCURRENT)/llvm-link$(EXEEXT) $^ -o $@
 
 # rule to make assembly from bytecode
@@ -37,3 +30,7 @@
 # rule to make bytecode from assembly
 %.bc: %.ll
 	$(LAS) < $< > $@
+
+# rule to compile java source
+%.class: %.java
+	$(JAVAC) $<





More information about the llvm-commits mailing list