1999-08-09 18:06:01 +00:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
top_builddir = ..
|
2000-03-05 13:57:25 +00:00
|
|
|
subdir = tools
|
1999-08-09 18:06:01 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
|
MKDIR = $(top_srcdir)/mkinstalldirs
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
2000-12-23 16:06:22 +00:00
|
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
1999-08-09 18:06:01 +00:00
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include
|
|
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
DEFS = @DEFS@
|
|
|
|
|
|
|
|
LIBTOOL = ../libtool
|
|
|
|
MCOMP = --mode=compile
|
|
|
|
MLINK = --mode=link
|
|
|
|
MINST = --mode=install
|
|
|
|
|
|
|
|
COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES) $(CPPFLAGS)
|
|
|
|
LINK = $(CC) $(LDFLAGS) -o $@
|
|
|
|
|
2002-02-13 20:48:29 +00:00
|
|
|
DISTCLEAN_FILES = @DISTCLEAN_FILES@
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
@SET_MAKE@
|
|
|
|
|
2003-04-30 23:10:39 +00:00
|
|
|
DESTINATIONS = sane-find-scanner sane-config umax_pp gamma4scanimage sane-desc
|
1999-08-09 18:06:01 +00:00
|
|
|
|
|
|
|
EXTRA = sane_strstatus.lo ../sanei/sanei_init_debug.lo \
|
|
|
|
../sanei/sanei_config.lo ../sanei/sanei_config2.lo \
|
|
|
|
../lib/usleep.lo ../lib/strndup.lo
|
|
|
|
|
|
|
|
LIBSANEI = ../sanei/libsanei.a
|
|
|
|
# Library routines that should be part of libc, but aren't on some systems:
|
|
|
|
LIBLIB = ../lib/liblib.a
|
|
|
|
|
2004-10-03 17:39:44 +00:00
|
|
|
DISTFILES = Makefile.in RenSaneDlls.cmd README libtool-get-dll-ext \
|
|
|
|
mustek600iin-off.c sane-config.in sane-desc.c check-usb-chip.c \
|
|
|
|
sane-find-scanner.c umax_pp.c xerox gamma4scanimage.c check-po.awk
|
2002-01-08 19:06:54 +00:00
|
|
|
|
2004-04-10 19:17:17 +00:00
|
|
|
SUBDIRS = hotplug
|
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
.PHONY: all clean depend dist distclean install uninstall
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
.c.o:
|
|
|
|
$(COMPILE) $<
|
|
|
|
|
|
|
|
%.lo: %.c
|
|
|
|
@$(LIBTOOL) $(MCOMP) $(COMPILE) -DLIBDIR=$(libdir) $<
|
|
|
|
|
|
|
|
all: $(DESTINATIONS)
|
|
|
|
|
2002-08-17 08:07:34 +00:00
|
|
|
install: sane-config sane-find-scanner gamma4scanimage
|
2002-03-29 13:27:16 +00:00
|
|
|
$(INSTALL_SCRIPT) sane-config $(DESTDIR)$(bindir)/sane-config
|
|
|
|
$(INSTALL_PROGRAM) sane-find-scanner $(DESTDIR)$(bindir)/sane-find-scanner
|
2002-08-17 08:07:34 +00:00
|
|
|
$(INSTALL_PROGRAM) gamma4scanimage $(DESTDIR)$(bindir)/gamma4scanimage
|
2000-03-05 13:57:25 +00:00
|
|
|
|
2001-05-21 20:20:54 +00:00
|
|
|
uninstall:
|
2002-08-17 08:07:34 +00:00
|
|
|
rm -f $(bindir)/sane-config $(bindir)/sane-find-scanner $(bindir)/gamma4scanimage
|
2001-05-21 20:20:54 +00:00
|
|
|
|
2000-03-05 13:57:25 +00:00
|
|
|
sane-config: sane-config.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
2003-07-18 12:11:01 +00:00
|
|
|
sane-find-scanner: sane-find-scanner.o check-usb-chip.o ../backend/sane_strstatus.lo \
|
2004-10-03 17:39:44 +00:00
|
|
|
../sanei/sanei_scsi.lo ../sanei/sanei_usb.lo ../sanei/sanei_init_debug.lo \
|
|
|
|
../sanei/sanei_config.lo
|
2003-07-18 12:11:01 +00:00
|
|
|
@$(LIBTOOL) $(MLINK) $(LINK) sane-find-scanner.o check-usb-chip.o \
|
2003-05-03 20:48:15 +00:00
|
|
|
../backend/sane_strstatus.lo $(LIBSANEI) $(LIBLIB) $(LIBS)
|
1999-08-09 18:06:01 +00:00
|
|
|
|
2002-08-25 13:57:52 +00:00
|
|
|
gamma4scanimage: gamma4scanimage.o
|
|
|
|
@$(LIBTOOL) $(MLINK) $(LINK) gamma4scanimage.o -lm
|
2002-08-17 08:07:34 +00:00
|
|
|
|
2001-05-31 18:31:48 +00:00
|
|
|
../backend/umax_pp_low.o: ../backend/umax_pp_low.c
|
|
|
|
$(COMPILE) ../backend/umax_pp_low.c -o ../backend/umax_pp_low.o \
|
|
|
|
-DBACKEND_NAME=umax_pp_low
|
|
|
|
|
2001-05-29 23:11:34 +00:00
|
|
|
umax_pp: umax_pp.o ../backend/umax_pp_low.o
|
|
|
|
@$(LIBTOOL) $(MLINK) $(LINK) umax_pp.o ../backend/umax_pp_low.o \
|
2003-05-03 20:48:15 +00:00
|
|
|
$(LIBSANEI) $(LIBLIB) $(LIBS)
|
2002-07-05 19:37:08 +00:00
|
|
|
sane-desc: sane-desc.o
|
2003-05-03 20:48:15 +00:00
|
|
|
@$(LIBTOOL) $(MLINK) $(LINK) sane-desc.o $(LIBSANEI) $(LIBLIB) $(LIBS)
|
2001-05-03 19:40:35 +00:00
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
depend:
|
|
|
|
makedepend $(INCLUDES) *.c
|
|
|
|
|
|
|
|
clean:
|
2002-02-13 20:48:29 +00:00
|
|
|
rm -f *.lo *.o *.la
|
1999-08-09 18:06:01 +00:00
|
|
|
find . -type l -name \*-s.c | xargs rm -f
|
|
|
|
rm -rf .libs
|
|
|
|
|
|
|
|
distclean: clean
|
2003-06-18 09:47:11 +00:00
|
|
|
rm -f Makefile $(DESTINATIONS) mustek600iin-off sane-desc
|
2002-02-13 20:48:29 +00:00
|
|
|
rm -f $(DISTCLEAN_FILES)
|
2004-04-12 15:17:37 +00:00
|
|
|
for subdir in $(SUBDIRS) ; do \
|
|
|
|
( cd $$subdir ; rm -f $(DISTCLEAN_FILES) ); \
|
|
|
|
done
|
1999-08-09 18:06:01 +00:00
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
dist: $(DISTFILES)
|
2004-04-10 19:17:17 +00:00
|
|
|
for subdir in $(SUBDIRS) ; do \
|
|
|
|
$(MKDIR) $(distdir)/tools/$${subdir} ; \
|
|
|
|
for file in $${subdir}/* ; do \
|
|
|
|
ln $$file $(distdir)/doc/$${subdir} 2> /dev/null \
|
|
|
|
|| cp -p $$file $(distdir)/tools/$${subdir} ; \
|
|
|
|
done ; \
|
|
|
|
done
|
2002-01-08 19:06:54 +00:00
|
|
|
for file in $(DISTFILES); do \
|
|
|
|
ln $$file $(distdir)/tools 2> /dev/null \
|
|
|
|
|| cp -p $$file $(distdir)/tools ; \
|
|
|
|
done
|
|
|
|
|