| 1 | |
| 2 | noinst_SCRIPTS = test_java_jul JTestLTTng.java |
| 3 | EXTRA_DIST = test_java_jul JTestLTTng.java |
| 4 | |
| 5 | if HAVE_JAVA_JDK |
| 6 | JCC=$(JAVA_JDK)/bin/javac |
| 7 | else |
| 8 | JCC=javac |
| 9 | endif |
| 10 | |
| 11 | AGENT_JAR_FILE=$(java_agent_jar_path) |
| 12 | |
| 13 | |
| 14 | # Still need to copy test files in case of out of tree build |
| 15 | if BUILD_JAVA_AGENT |
| 16 | all-local: static_file JTestLTTng.class |
| 17 | %.class: %.java |
| 18 | $(JCC) -d "$(builddir)" -cp "$(AGENT_JAR_FILE):." $< |
| 19 | else |
| 20 | all-local: static_file |
| 21 | endif # BUILD_JAVA_AGENT |
| 22 | |
| 23 | |
| 24 | static_file: |
| 25 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 26 | for script in $(EXTRA_DIST); do \ |
| 27 | cp -f $(srcdir)/$$script $(builddir); \ |
| 28 | done; \ |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | clean-local: |
| 33 | rm -f *.class |
| 34 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 35 | for script in $(EXTRA_DIST); do \ |
| 36 | rm -f $(builddir)/$$script; \ |
| 37 | done; \ |
| 38 | fi |
| 39 | |