| 
									
										
										
										
											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@ | 
					
						
							|  |  |  | 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 \
 | 
					
						
							| 
									
										
										
										
											2002-01-10 19:36:06 +00:00
										 |  |  | 	sanei_auth.o sanei_usb.o sanei_thread.o sanei_pv8630.o sanei_lm983x.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 \
 | 
					
						
							| 
									
										
										
										
											2002-01-10 19:36:06 +00:00
										 |  |  | 	sanei_pv8630.lo sanei_lm983x.lo | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | TARGETS = libsanei.a | 
					
						
							|  |  |  | 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 \
 | 
					
						
							| 
									
										
										
										
											2002-02-14 19:44:39 +00:00
										 |  |  |   sanei_constrain_value.c sanei_init_debug.c  \
 | 
					
						
							| 
									
										
										
										
											2002-01-10 19:36:06 +00:00
										 |  |  |   sanei_net.c sanei_pa4s2.c sanei_pio.c sanei_pv8630.c sanei_lm983x.c \
 | 
					
						
							| 
									
										
										
										
											2002-02-14 19:44:39 +00:00
										 |  |  |   sanei_scsi.c sanei_thread.c sanei_usb.c \
 | 
					
						
							| 
									
										
										
										
											2002-01-08 19:06:54 +00:00
										 |  |  |   sanei_wire.c test_wire.c | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .PHONY: all check clean depend dist distclean install uninstall | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | .SUFFIXES: | 
					
						
							|  |  |  | .SUFFIXES: .c .o | 
					
						
							|  |  |  | .c.o: | 
					
						
							|  |  |  | 	@$(LIBTOOL) $(MCOMP) $(COMPILE) $< | 
					
						
							|  |  |  | 	@test -f $@ || $(COMPILE) $< | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | all:	$(TARGETS) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | libsanei.a: $(LIBSANEI_OBJS) | 
					
						
							|  |  |  | 	ar r $@ $(LIBSANEI_OBJS) | 
					
						
							|  |  |  | 	$(RANLIB) $@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 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: | 
					
						
							|  |  |  | 	makedepend -I. -I../include *.c | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 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 | 
					
						
							|  |  |  | 
 |