LTTNG_JUST_SRCDIR = $(srcdir)/org/lttng/ust LTTNG_JUST_DESTDIR = $(builddir)/org/lttng/ust if BUILD_JNI_INTERFACE AM_CPPFLAGS = -I$(top_srcdir)/include -I$(builddir) -I$(top_builddir)/include BUILT_SOURCES = org_lttng_ust_LTTngUst.h lib_LTLIBRARIES = liblttng-ust-java.la liblttng_ust_java_la_SOURCES = LTTngUst.c lttng_ust_java.h nodist_liblttng_ust_java_la_SOURCES = org_lttng_ust_LTTngUst.h dist_noinst_DATA = $(LTTNG_JUST_SRCDIR)/LTTngUst.java liblttng_ust_java_la_LIBADD = -lc -L$(top_builddir)/liblttng-ust/.libs -llttng-ust if HAVE_JAVA_JDK JCC=$(JAVA_JDK)/bin else JCC=javac endif all: $(LTTNG_JUST_DESTDIR)/LTTngUst.class org_lttng_ust_LTTngUst.h liblttng-ust-java.jar clean-local: rm -f org_lttng_ust_LTTngUst.h rm -f liblttng-ust-java.jar rm -rf org/lttng/ust/*.class $(LTTNG_JUST_DESTDIR)/LTTngUst.class: $(LTTNG_JUST_SRCDIR)/LTTngUst.java $(JCC)/javac -d "$(builddir)" "$(LTTNG_JUST_SRCDIR)/LTTngUst.java" org_lttng_ust_LTTngUst.h: $(LTTNG_JUST_DESTDIR)/LTTngUst.class $(JCC)/javah org.lttng.ust.LTTngUst liblttng-ust-java.jar: $(LTTNG_JUST_DESTDIR)/LTTngUst.class $(JCC)/jar cf liblttng-ust-java.jar $(LTTNG_JUST_DESTDIR)/*.class endif