-AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_builddir)/libust
+AM_CPPFLAGS = -I$(top_srcdir)/include
lib_LTLIBRARIES = libustjava.la
libustjava_la_SOURCES = UST.c UST.h
-noinst_DATA = UST.java
+dist_noinst_DATA = UST.java
libustjava_la_LIBADD = -lc -L$(top_builddir)/libust/.libs -lust
-all: UST.class
+all: UST.class UST.h
clean-local:
rm -rf UST.h UST.class
UST.class: UST.java
- javac UST.java
+ javac -d "$(builddir)" "$(srcdir)/UST.java"
+UST.h:
+ javah -jni UST