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@
|
2009-01-16 23:39:48 +00:00
|
|
|
distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)/lib
|
2002-01-08 19:06:54 +00:00
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
libexecdir = @libexecdir@
|
2008-02-03 06:59:36 +00:00
|
|
|
datarootdir = @datarootdir@
|
1999-08-09 18:06:01 +00:00
|
|
|
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/sane -I$(top_srcdir)/include
|
|
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
DEFS = @DEFS@
|
|
|
|
|
|
|
|
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
|
|
|
|
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@
|
|
|
|
|
2002-02-10 18:38:13 +00:00
|
|
|
LIBLIB_OBJS = @LIBOBJS@ @ALLOCA@ getopt.o getopt1.o md5.o
|
|
|
|
LIBLIB_LTOBJS = $(addsuffix .lo,$(basename $(LIBLIB_OBJS)))
|
1999-08-09 18:06:01 +00:00
|
|
|
|
2003-04-02 22:05:26 +00:00
|
|
|
TARGETS = liblib.a $(LIBLIB_LTOBJS)
|
1999-08-09 18:06:01 +00:00
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
DISTFILES = Makefile.in alloca.c getenv.c getopt.c getopt1.c \
|
2009-01-29 15:10:19 +00:00
|
|
|
inet_ntop.c inet_pton.c isfdtype.c md5.c sigprocmask.c snprintf.c \
|
|
|
|
strcasestr.c strdup.c strndup.c strsep.c usleep.c vsyslog.c
|
2002-01-08 19:06:54 +00:00
|
|
|
|
2009-01-16 23:39:48 +00:00
|
|
|
.PHONY: all check clean depend dist distdir distclean install uninstall
|
2002-01-08 19:06:54 +00:00
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
.SUFFIXES:
|
2003-04-02 22:05:26 +00:00
|
|
|
.SUFFIXES: .c .o .lo
|
1999-08-09 18:06:01 +00:00
|
|
|
.c.o:
|
2003-04-02 22:05:26 +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
|
|
|
liblib.a: $(LIBLIB_LTOBJS)
|
2007-07-02 17:21:24 +00:00
|
|
|
@$(LIBTOOL) $(MLINK) $(CC) -static $(LIBLIB_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:
|
|
|
|
|
|
|
|
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 $(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
|
|
|
|
|
2009-01-16 23:39:48 +00:00
|
|
|
dist: distdir
|
|
|
|
distdir: $(DISTFILES)
|
2002-01-08 19:06:54 +00:00
|
|
|
for file in $(DISTFILES); do \
|
2009-01-16 23:39:48 +00:00
|
|
|
ln $(srcdir)/$$file $(distdir) 2> /dev/null \
|
2009-01-22 02:23:38 +00:00
|
|
|
|| cp -p $(srcdir)/$$file $(distdir) ; \
|
2002-01-08 19:06:54 +00:00
|
|
|
done
|
|
|
|
|
2009-01-16 23:39:48 +00:00
|
|
|
# Used by top level distcheck target
|
|
|
|
dvi:
|
|
|
|
check:
|
|
|
|
installcheck:
|
|
|
|
distuninstallcheck:
|