1999-08-09 18:06:01 +00:00
|
|
|
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@
|
2006-06-07 07:28:31 +00:00
|
|
|
locksanedir = @locksanedir@
|
1999-08-09 18:06:01 +00:00
|
|
|
libdir = @libdir@
|
|
|
|
infodir = @infodir@
|
|
|
|
mandir = @mandir@
|
|
|
|
includedir = @includedir@
|
|
|
|
oldincludedir = /usr/include
|
|
|
|
configdir = ${sysconfdir}/sane.d
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
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@
|
|
|
|
|
2001-11-21 20:44:41 +00:00
|
|
|
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
|
1999-08-09 18:06:01 +00:00
|
|
|
LIBTOOL = ../libtool
|
|
|
|
MCOMP = --mode=compile
|
|
|
|
MLINK = --mode=link
|
|
|
|
|
2002-02-13 20:48:29 +00:00
|
|
|
DISTCLEAN_FILES = @DISTCLEAN_FILES@
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
@SET_MAKE@
|
|
|
|
|
|
|
|
LIBSANEI_OBJS = sanei_ab306.o sanei_constrain_value.o sanei_init_debug.o \
|
|
|
|
sanei_net.o sanei_wire.o sanei_codec_ascii.o sanei_codec_bin.o \
|
2000-11-20 18:49:26 +00:00
|
|
|
sanei_scsi.o sanei_config.o sanei_config2.o sanei_pio.o sanei_pa4s2.o \
|
2003-10-22 19:15:18 +00:00
|
|
|
sanei_auth.o sanei_usb.o sanei_thread.o sanei_pv8630.o sanei_pp.o \
|
2006-11-30 23:23:19 +00:00
|
|
|
sanei_lm983x.o sanei_access.o @SANEI_JPEG@ sanei_tcp.o
|
1999-08-09 18:06:01 +00:00
|
|
|
|
|
|
|
LIBSANEI_LTOBJS = sanei_ab306.lo sanei_constrain_value.lo sanei_init_debug.lo \
|
|
|
|
sanei_net.lo sanei_wire.lo sanei_codec_ascii.lo sanei_codec_bin.lo \
|
2000-08-12 15:11:46 +00:00
|
|
|
sanei_scsi.lo sanei_config.lo sanei_config2.lo sanei_pio.lo \
|
2002-01-03 19:27:35 +00:00
|
|
|
sanei_pa4s2.lo sanei_auth.lo sanei_usb.lo sanei_thread.lo \
|
2006-11-30 23:23:19 +00:00
|
|
|
sanei_pv8630.lo sanei_lm983x.lo sanei_pp.lo sanei_access.lo @SANEI_JPEG_LO@ \
|
|
|
|
sanei_tcp.lo
|
1999-08-09 18:06:01 +00:00
|
|
|
|
2003-01-22 14:48:42 +00:00
|
|
|
TARGETS = libsanei.a $(LIBSANEI_LTOBJS)
|
1999-08-09 18:06:01 +00:00
|
|
|
TESTPROGRAMS = test_wire
|
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
DISTFILES = Makefile.in linux_sg3_err.h os2_srb.h sanei_DomainOS.c \
|
|
|
|
sanei_DomainOS.h sanei_ab306.c sanei_auth.c sanei_codec_ascii.c \
|
|
|
|
sanei_codec_bin.c sanei_config.c sanei_config2.c \
|
2003-07-26 21:40:06 +00:00
|
|
|
sanei_constrain_value.c sanei_init_debug.c sanei_jpeg.c \
|
2002-01-10 19:36:06 +00:00
|
|
|
sanei_net.c sanei_pa4s2.c sanei_pio.c sanei_pv8630.c sanei_lm983x.c \
|
2003-10-22 19:15:18 +00:00
|
|
|
sanei_scsi.c sanei_thread.c sanei_usb.c sanei_pp.c \
|
2006-11-30 23:23:19 +00:00
|
|
|
sanei_wire.c test_wire.c sanei_access.c sanei_tcp.c
|
2002-01-08 19:06:54 +00:00
|
|
|
|
|
|
|
.PHONY: all check clean depend dist distclean install uninstall
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
.SUFFIXES:
|
2003-01-22 14:48:42 +00:00
|
|
|
.SUFFIXES: .c .o .lo
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
.c.o:
|
2003-01-22 14:48:42 +00:00
|
|
|
$(COMPILE) $<
|
|
|
|
|
|
|
|
.c.lo:
|
2007-07-02 17:21:24 +00:00
|
|
|
@$(LIBTOOL) $(MCOMP) $(COMPILE) -static $<
|
1999-08-09 18:06:01 +00:00
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
2007-06-12 06:38:58 +00:00
|
|
|
libsanei.a: $(LIBSANEI_LTOBJS)
|
2007-07-02 17:21:24 +00:00
|
|
|
@$(LIBTOOL) $(MLINK) $(CC) -static $(LIBSANEI_LTOBJS) -o $@
|
1999-08-09 18:06:01 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
|
2001-05-21 20:20:54 +00:00
|
|
|
uninstall:
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
check: test_wire
|
|
|
|
./test_wire
|
|
|
|
|
|
|
|
test_wire: test_wire.o libsanei.a
|
|
|
|
@$(LIBTOOL) $(MLINK) $(CC) -o $@ test_wire.o $(LDFLAGS) libsanei.a
|
|
|
|
|
|
|
|
test_wire.o: test_wire.c
|
|
|
|
$(COMPILE) $<
|
|
|
|
|
|
|
|
depend:
|
2005-10-29 20:01:54 +00:00
|
|
|
makedepend -I. -I../include *.c 2>/dev/null
|
1999-08-09 18:06:01 +00:00
|
|
|
|
|
|
|
clean:
|
2002-02-13 20:48:29 +00:00
|
|
|
rm -f *.o *.lo *.a $(OBJS) $(TESTPROGRAMS)
|
1999-08-09 18:06:01 +00:00
|
|
|
rm -rf .libs
|
|
|
|
|
|
|
|
distclean: clean
|
2002-02-13 20:48:29 +00:00
|
|
|
rm -f $(DISTCLEAN_FILES)
|
1999-08-09 18:06:01 +00:00
|
|
|
rm -f Makefile
|
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
dist: $(DISTFILES)
|
|
|
|
for file in $(DISTFILES); do \
|
|
|
|
ln $$file $(distdir)/sanei 2> /dev/null \
|
|
|
|
|| cp -p $$file $(distdir)/sanei ; \
|
|
|
|
done
|
|
|
|
|