1999-08-09 18:06:01 +00:00
|
|
|
#
|
|
|
|
# Makefile for a Java project with native methods.
|
|
|
|
#
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
top_builddir = ..
|
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
VERSION = @VERSION@
|
|
|
|
distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
libexecdir = @libexecdir@
|
|
|
|
datadir = @datadir@
|
|
|
|
sysconfdir = @sysconfdir@
|
|
|
|
sharedstatedir = @sharedstatedir@
|
|
|
|
localstatedir = @localstatedir@
|
|
|
|
libdir = @libdir@
|
|
|
|
infodir = @infodir@
|
|
|
|
mandir = @mandir@
|
|
|
|
includedir = @includedir@
|
|
|
|
oldincludedir = /usr/include
|
|
|
|
configdir = ${sysconfdir}/sane.d
|
|
|
|
|
|
|
|
V_MAJOR = @V_MAJOR@
|
|
|
|
V_MINOR = @V_MINOR@
|
|
|
|
DLL_PRELOAD = @DLL_PRELOAD@
|
|
|
|
|
|
|
|
MKDIR = $(top_srcdir)/mkinstalldirs
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
RANLIB = @RANLIB@
|
2000-09-17 03:02:24 +00:00
|
|
|
JAVAC=javac
|
|
|
|
JAVAH=javah -jni
|
1999-08-09 18:06:01 +00:00
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
# We'll need something in 'configure' for the Java includes.
|
|
|
|
INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include \
|
|
|
|
-I${JDK_HOME}/include -I${JDK_HOME}/include/genunix
|
|
|
|
|
|
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
DEFS = @DEFS@
|
|
|
|
|
|
|
|
LIBTOOL = ../libtool
|
|
|
|
MCOMP = --mode=compile
|
|
|
|
MLINK = --mode=link
|
|
|
|
MINST = --mode=install
|
|
|
|
|
|
|
|
COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES) $(CPPFLAGS)
|
|
|
|
|
2002-02-13 20:48:29 +00:00
|
|
|
DISTCLEAN_FILES = @DISTCLEAN_FILES@
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
@SET_MAKE@
|
|
|
|
|
|
|
|
LIBSANE = -L`pwd`/../backend/libs -lsane
|
|
|
|
|
|
|
|
# Classes to compile.
|
|
|
|
CLASSES = SaneDevice.class SaneOption.class SaneRange.class Sane.class \
|
|
|
|
SaneParameters.class ScanIt.class ImageCanvas.class \
|
|
|
|
ImageCanvasClient.class
|
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
DISTFILES = ImageCanvas.java ImageCanvasClient.java Jscanimage.java \
|
|
|
|
Makefile.in README.JAVA Sane.c Sane.java SaneDevice.java \
|
|
|
|
SaneOption.java SaneParameters.java SaneRange.java ScanIt.java \
|
|
|
|
Test.java
|
|
|
|
|
|
|
|
.PHONY: all clean dist distclean install uninstall
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
.SUFFIXES: .c .o .h .la .lo .java .class
|
|
|
|
|
|
|
|
.java.class:
|
2000-09-17 03:02:24 +00:00
|
|
|
$(JAVAC) $<
|
1999-08-09 18:06:01 +00:00
|
|
|
|
|
|
|
.class.h:
|
2000-09-17 03:02:24 +00:00
|
|
|
$(JAVAH) $*
|
1999-08-09 18:06:01 +00:00
|
|
|
|
|
|
|
%.lo: %.c
|
|
|
|
@$(LIBTOOL) $(MCOMP) $(COMPILE) $<
|
|
|
|
|
|
|
|
# Don't delete any intermediate files.
|
|
|
|
.PRECIOUS: %.h %.lo
|
|
|
|
|
|
|
|
all: libsanej.la $(CLASSES) Test.class Jscanimage.class
|
|
|
|
|
|
|
|
libsanej.la: Sane.lo
|
|
|
|
@$(LIBTOOL) $(MLINK) $(CC) -o $@ $(LDFLAGS) $^ \
|
|
|
|
-rpath $(libdir) -version-info \
|
|
|
|
$(V_MAJOR):$(V_MINOR):0 $(LIBSANE)
|
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
Sane.lo: Sane.h
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
clean:
|
2002-07-30 18:31:11 +00:00
|
|
|
rm -f *.class *.lo *.o *.la *.so
|
1999-08-09 18:06:01 +00:00
|
|
|
rm -f Sane.h
|
|
|
|
rm -rf .libs
|
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
distclean: clean
|
2002-02-13 20:48:29 +00:00
|
|
|
rm -f $(DISTCLEAN_FILES)
|
2002-01-08 19:06:54 +00:00
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
# Install library. Don't know where to install .class files yet.
|
|
|
|
install:
|
|
|
|
$(MKDIR) $(libdir) $(configdir)
|
|
|
|
$(LIBTOOL) $(MINST) $(INSTALL_PROGRAM) libsanej.la \
|
|
|
|
$(libdir)/libsanej.la || exit 1;
|
|
|
|
@$(LIBTOOL) $(MINST) --finish $(libdir)
|
|
|
|
|
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
# fixme
|
|
|
|
uninstall:
|
|
|
|
|
|
|
|
dist: $(DISTFILES)
|
|
|
|
for file in $(DISTFILES); do \
|
|
|
|
ln $$file $(distdir)/japi 2> /dev/null \
|
|
|
|
|| cp -p $$file $(distdir)/japi ; \
|
|
|
|
done
|
|
|
|
|