Commit | Line | Data |
---|---|---|
2b6f8df9 MD |
1 | if BUILD_JNI_INTERFACE |
2 | ||
41ba5806 | 3 | AM_CPPFLAGS = -I$(top_srcdir)/include |
378fa1c7 | 4 | |
69400ac4 | 5 | lib_LTLIBRARIES = liblttng-ust-java.la |
a58ac6c8 AM |
6 | liblttng_ust_java_la_SOURCES = LTTngUst.c org_lttng_ust_LTTngUst.h lttng_ust_java.h |
7 | dist_noinst_DATA = LTTngUst.java | |
69400ac4 | 8 | liblttng_ust_java_la_LIBADD = -lc -L$(top_builddir)/liblttng-ust/.libs -llttng-ust |
378fa1c7 | 9 | |
3077257a | 10 | all: LTTngUst.class org_lttng_ust_LTTngUst.h liblttng-ust-java.jar |
378fa1c7 PMF |
11 | |
12 | clean-local: | |
3077257a AM |
13 | rm org_lttng_ust_LTTngUst.h |
14 | rm liblttng-ust-java.jar | |
a58ac6c8 | 15 | rm -rf org/ |
378fa1c7 | 16 | |
a58ac6c8 AM |
17 | LTTngUst.class: LTTngUst.java |
18 | javac -d "$(builddir)" "$(srcdir)/LTTngUst.java" | |
378fa1c7 | 19 | |
a58ac6c8 AM |
20 | org_lttng_ust_LTTngUst.h: LTTngUst.class |
21 | javah org.lttng.ust.LTTngUst | |
2b6f8df9 | 22 | |
3077257a AM |
23 | liblttng-ust-java.jar: LTTngUst.class |
24 | jar cf liblttng-ust-java.jar org/* | |
25 | ||
2b6f8df9 | 26 | endif |