2009-02-20 03:17:54 +00:00
|
|
|
## Makefile.am -- an automake template for Makefile.in file
|
|
|
|
## Copyright (C) 2009 Chris Bagwell and Sane Developers.
|
|
|
|
##
|
|
|
|
## This file is part of the "Sane" build infra-structure. See
|
|
|
|
## included LICENSE file for license information.
|
|
|
|
|
|
|
|
#
|
|
|
|
# Makefile for a Java project with native methods.
|
|
|
|
#
|
|
|
|
|
|
|
|
V_MAJOR = @V_MAJOR@
|
|
|
|
V_MINOR = @V_MINOR@
|
2009-02-23 04:44:55 +00:00
|
|
|
V_REV = @V_REV@
|
2009-02-20 03:17:54 +00:00
|
|
|
|
|
|
|
JAVAROOT=.
|
|
|
|
CLASSPATH_ENV=.
|
|
|
|
JAVAH=javah -jni -cp $(CLASSPATH_ENV)
|
|
|
|
|
|
|
|
# We'll need something in 'configure' for the Java includes.
|
|
|
|
AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include \
|
|
|
|
-I$(top_srcdir)/include -I${JDK_HOME}/include \
|
|
|
|
-I${JDK_HOME}/include/genunix
|
2009-02-23 04:44:55 +00:00
|
|
|
AM_LDFLAGS = @STRICT_LDFLAGS@ -version-number $(V_MAJOR):$(V_MINOR):$(VREV)
|
2009-02-20 03:17:54 +00:00
|
|
|
|
|
|
|
JAVA_SRC = SaneDevice.java SaneOption.java SaneRange.java\
|
|
|
|
Sane.java SaneParameters.java ScanIt.java \
|
|
|
|
ImageCanvas.java ImageCanvasClient.java \
|
|
|
|
Test.java Jscanimage.java
|
|
|
|
|
|
|
|
dist_noinst_JAVA = $(JAVA_SRC)
|
|
|
|
|
|
|
|
LIBSANE = ../backend/libsane.la
|
|
|
|
|
|
|
|
EXTRA_DIST = Makefile.in README.JAVA
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = libsanej.la
|
|
|
|
|
2009-03-01 04:34:44 +00:00
|
|
|
BUILT_SOURCES = Sane.h
|
|
|
|
CLEANFILES = Sane.h
|
|
|
|
nodist_libsanej_la_SOURCES = Sane.h
|
2009-02-20 03:17:54 +00:00
|
|
|
libsanej_la_SOURCES = Sane.c
|
|
|
|
libsanej_la_LIBADD = $(LIBSANE)
|
|
|
|
|
|
|
|
# Make sure that java classes get created before create Sane.h
|
|
|
|
Sane.h: classdist_noinst.stamp
|
|
|
|
$(JAVAH) Sane
|
|
|
|
|