|
|
@@ -4,6 +4,7 @@ jnidir = $(libdir)/jni |
|
|
|
|
|
|
|
if USE_JAVA |
|
|
|
jni_LTLIBRARIES = libcaca-java.la |
|
|
|
noinst_DATA = examples/Driver.class examples/TrueColor.class |
|
|
|
endif |
|
|
|
|
|
|
|
java_src = $(wildcard $(srcdir)/org/zoy/caca/*.java) |
|
|
@@ -74,11 +75,13 @@ org_zoy_caca_Font.h: org/zoy/caca/Font.class |
|
|
|
$(JAVAH) $(JAVAH_FLAGS) org.zoy.caca.Font |
|
|
|
@touch org_zoy_caca_Font.h |
|
|
|
|
|
|
|
CLEANFILES = org/zoy/caca/*.class org_zoy_caca_[A-Z]*.h $(java_jar) |
|
|
|
CLEANFILES = $(noinst_DATA) $(java_jar) \ |
|
|
|
org/zoy/caca/*.class org_zoy_caca_[A-Z]*.h |
|
|
|
EXTRA_DIST = README |
|
|
|
|
|
|
|
if USE_JAVA |
|
|
|
BUILT_SOURCES = $(java_jni_headers) $(java_jni_classes) |
|
|
|
endif |
|
|
|
|
|
|
|
libcaca_java_la_CPPFLAGS = $(JAVA_CFLAGS) |
|
|
|
libcaca_java_la_SOURCES = \ |
|
|
@@ -91,4 +94,10 @@ libcaca_java_la_LDFLAGS = -shared $(JAVA_LIBS) |
|
|
|
libcaca_java_la_LIBADD = ../caca/libcaca.la |
|
|
|
libcaca_java_ladir = $(datadir)/java |
|
|
|
libcaca_java_la_DATA = $(java_jar) |
|
|
|
endif |
|
|
|
|
|
|
|
examples/Driver.class: examples/Driver.java |
|
|
|
$(JAVAC) $^ |
|
|
|
|
|
|
|
examples/TrueColor.class: examples/TrueColor.java |
|
|
|
$(JAVAC) $^ |
|
|
|
|