0c2f6a5c838f9e62562cd915e6d44ba7be080be7
[deliverable/lttng-ust.git] / liblttng-ust-java / Makefile.am
1 JAVAROOT = .
2 jarfile = liblttng-ust-java.jar
3 jardir = $(datadir)/java
4 pkgpath = org/lttng/ust
5
6 dist_noinst_JAVA = $(pkgpath)/LTTngUst.java
7 jar_DATA = $(jarfile)
8 BUILT_SOURCES = org_lttng_ust_LTTngUst.h
9
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
14
15 liblttng_ust_java_la_LIBADD = -lc -L$(top_builddir)/liblttng-ust/.libs -llttng-ust
16
17 $(jarfile): classnoinst.stamp
18 $(JAR) cf $(JARFLAGS) $@ $(pkgpath)/*.class
19
20 org_lttng_ust_LTTngUst.h: jni-header.stamp
21
22 jni-header.stamp: $(dist_noinst_JAVA)
23 $(JAVAH) -classpath $(srcdir) $(JAVAHFLAGS) org.lttng.ust.LTTngUst && \
24 echo "JNI header generated" > jni-header.stamp
25
26 all-local: org_lttng_ust_LTTngUst.h
27
28 CLEANFILES = $(jarfile) $(pkgpath)/*.class jni-header.stamp org_lttng_ust_LTTngUst.h
This page took 0.038656 seconds and 5 git commands to generate.