2 jarfile = liblttng-ust-java.jar
3 jardir = $(datadir)/java
4 pkgpath = org/lttng/ust
6 dist_noinst_JAVA = $(pkgpath)/LTTngUst.java
8 BUILT_SOURCES = org_lttng_ust_LTTngUst.h
10 AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include
11 lib_LTLIBRARIES = liblttng-ust-java.la
12 liblttng_ust_java_la_SOURCES = LTTngUst.c lttng_ust_java.h
13 nodist_liblttng_ust_java_la_SOURCES = org_lttng_ust_LTTngUst.h
15 liblttng_ust_java_la_LIBADD = -lc -L$(top_builddir)/liblttng-ust/.libs -llttng-ust
17 $(jarfile): classnoinst.stamp
18 $(JAR) cf $(JARFLAGS) $@ $(pkgpath)/*.class
20 org_lttng_ust_LTTngUst.h: jni-header.stamp
22 jni-header.stamp: $(dist_noinst_JAVA)
23 $(JAVAH) -classpath $(srcdir) $(JAVAHFLAGS) org.lttng.ust.LTTngUst && \
24 echo "JNI header generated" > jni-header.stamp
26 all-local: org_lttng_ust_LTTngUst.h
28 CLEANFILES = $(jarfile) $(pkgpath)/*.class jni-header.stamp org_lttng_ust_LTTngUst.h