sane-project-backends/tools/Makefile.in

181 wiersze
5.5 KiB
Makefile
Czysty Zwykły widok Historia

1999-08-09 18:06:01 +00:00
SHELL = /bin/sh
VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ..
subdir = tools
1999-08-09 18:06:01 +00:00
PACKAGE = @PACKAGE@
VERSION = @VERSION@
distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)/tools
1999-08-09 18:06:01 +00:00
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
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
MKDIR = $(top_srcdir)/mkinstalldirs
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
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@
* acinclude.m4, configure.in: Put all libraries into their own *_LIB variables instead of $LIB so that we do not have to link in the world to all executables. Modified SANE_CHECK_U_TYPES to be a little more portable to platforms that use #define for u_* types. Create SANE_CHECK_BACKENDS macro so that PRELOADABLE_BACKENDS can also be valided. Auto-populated PRELAODABLE_BACKENDS when detect dlopen() won't work. Various protability cleanups. * backend/dll.c: Make dll-preload.c a .h since its an include and not compilable byitself. * frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h, lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in, tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la for everyone to use and a libfelib.la for only frontend programs. Make all internal programs be prefixed with sanei_ as not to conflict with other programs libsane is linked in with that will also most likely create similar internal utils on problem platforms. * include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile and link in getopt_long() but prefix it with sanei_. Its easier to always use internal version then try to figure out what platforms support getopt_long() and what header files to use. * backend/Makefile.am: Convert backend makefile to automake. Initial version that is feature parity with original but uses specific rules instead of wildcards and only links in libraries/objs really required. Room for more cleanup of whats linked in once all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
LDFLAGS = -L../backend @LDFLAGS@
1999-08-09 18:06:01 +00:00
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 $@
DISTCLEAN_FILES = @DISTCLEAN_FILES@
1999-08-09 18:06:01 +00:00
@SET_MAKE@
ifeq (@CROSS_COMPILING@,no)
HOTPLUG_SCRIPTS = hotplug/libsane.usermap hotplug-ng/libsane.db \
udev/libsane.rules hal/libsane.fdi
else
HOTPLUG_SCRIPTS =
endif
DESTINATIONS = sane-find-scanner sane-config umax_pp gamma4scanimage \
sane-desc $(HOTPLUG_SCRIPTS)
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:
* acinclude.m4, configure.in: Put all libraries into their own *_LIB variables instead of $LIB so that we do not have to link in the world to all executables. Modified SANE_CHECK_U_TYPES to be a little more portable to platforms that use #define for u_* types. Create SANE_CHECK_BACKENDS macro so that PRELOADABLE_BACKENDS can also be valided. Auto-populated PRELAODABLE_BACKENDS when detect dlopen() won't work. Various protability cleanups. * backend/dll.c: Make dll-preload.c a .h since its an include and not compilable byitself. * frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h, lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in, tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la for everyone to use and a libfelib.la for only frontend programs. Make all internal programs be prefixed with sanei_ as not to conflict with other programs libsane is linked in with that will also most likely create similar internal utils on problem platforms. * include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile and link in getopt_long() but prefix it with sanei_. Its easier to always use internal version then try to figure out what platforms support getopt_long() and what header files to use. * backend/Makefile.am: Convert backend makefile to automake. Initial version that is feature parity with original but uses specific rules instead of wildcards and only links in libraries/objs really required. Room for more cleanup of whats linked in once all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
LIBLIB = ../lib/liblib.la ../lib/libfelib.la
1999-08-09 18:06:01 +00:00
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
SUBDIRS = hotplug hotplug-ng udev hal
2004-04-10 19:17:17 +00:00
.PHONY: all clean depend dist distdir distclean install uninstall dirs
1999-08-09 18:06:01 +00:00
.c.o:
$(COMPILE) $<
%.lo: %.c
@$(LIBTOOL) $(MCOMP) $(COMPILE) -DLIBDIR=$(libdir) $<
all: dirs $(DESTINATIONS)
dirs:
for subdir in $(SUBDIRS); do \
$(MKDIR) $$subdir || exit 1; \
done
1999-08-09 18:06:01 +00:00
install: sane-config sane-find-scanner gamma4scanimage
$(INSTALL_SCRIPT) sane-config $(DESTDIR)$(bindir)/sane-config
$(INSTALL_PROGRAM) sane-find-scanner $(DESTDIR)$(bindir)/sane-find-scanner
$(INSTALL_PROGRAM) gamma4scanimage $(DESTDIR)$(bindir)/gamma4scanimage
uninstall:
rm -f $(DESTDIR)$(bindir)/sane-config $(DESTDIR)$(bindir)/sane-find-scanner $(DESTDIR)$(bindir)/gamma4scanimage
sane-config: sane-config.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
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
@$(LIBTOOL) $(MLINK) $(LINK) sane-find-scanner.o check-usb-chip.o \
../backend/sane_strstatus.lo $(LIBSANEI) $(LIBLIB) $(LIBS) @IEEE1284_LIBS@ @USB_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
../backend/umax_pp_low.o: ${top_srcdir}/backend/umax_pp_low.c
$(COMPILE) ${top_srcdir}/backend/umax_pp_low.c -o ../backend/umax_pp_low.o \
-DBACKEND_NAME=umax_pp_low
umax_pp: umax_pp.o ../backend/umax_pp_low.o
@$(LIBTOOL) $(MLINK) $(LINK) umax_pp.o ../backend/umax_pp_low.o \
* acinclude.m4, configure.in: Put all libraries into their own *_LIB variables instead of $LIB so that we do not have to link in the world to all executables. Modified SANE_CHECK_U_TYPES to be a little more portable to platforms that use #define for u_* types. Create SANE_CHECK_BACKENDS macro so that PRELOADABLE_BACKENDS can also be valided. Auto-populated PRELAODABLE_BACKENDS when detect dlopen() won't work. Various protability cleanups. * backend/dll.c: Make dll-preload.c a .h since its an include and not compilable byitself. * frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h, lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in, tools/sane-desc.c: Convert lib/ to automake. Create a liblib.la for everyone to use and a libfelib.la for only frontend programs. Make all internal programs be prefixed with sanei_ as not to conflict with other programs libsane is linked in with that will also most likely create similar internal utils on problem platforms. * include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile and link in getopt_long() but prefix it with sanei_. Its easier to always use internal version then try to figure out what platforms support getopt_long() and what header files to use. * backend/Makefile.am: Convert backend makefile to automake. Initial version that is feature parity with original but uses specific rules instead of wildcards and only links in libraries/objs really required. Room for more cleanup of whats linked in once all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
$(LIBSANEI) $(LIBLIB) $(LIBS) @MATH_LIB@
sane-desc: sane-desc.o
2005-06-26 09:56:24 +00:00
@$(LIBTOOL) $(MLINK) $(LINK) sane-desc.o $(LIBSANEI) $(LIBLIB)
hotplug/libsane.usermap: $(wildcard ${top_srcdir}/doc/descriptions/*.desc) $(wildcard ${top_srcdir}/doc/descriptions-external/*.desc) sane-desc
@./sane-desc -m usermap -s ${top_srcdir}/doc/descriptions:${top_srcdir}/doc/descriptions-external \
-d 1 > $@
hotplug-ng/libsane.db: $(wildcard ${top_srcdir}/doc/descriptions/*.desc) $(wildcard ${top_srcdir}/doc/descriptions-external/*.desc) sane-desc
@./sane-desc -m db -s ${top_srcdir}/doc/descriptions:${top_srcdir}/doc/descriptions-external \
-d 0 > $@
udev/libsane.rules: $(wildcard ${top_srcdir}/doc/descriptions/*.desc) $(wildcard ${top_srcdir}/doc/descriptions-external/*.desc) sane-desc
@./sane-desc -m udev -s ${top_srcdir}/doc/descriptions:${top_srcdir}/doc/descriptions-external \
-d 0 > $@
hal/libsane.fdi: $(wildcard ${top_srcdir}/doc/descriptions/*.desc) $(wildcard ${top_srcdir}/doc/descriptions-external/*.desc) sane-desc
@./sane-desc -m hal -s ${top_srcdir}/doc/descriptions:${top_srcdir}/doc/descriptions-external \
-d 0 > $@
1999-08-09 18:06:01 +00:00
depend:
makedepend $(INCLUDES) *.c 2>/dev/null
1999-08-09 18:06:01 +00:00
clean:
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
rm -f hotplug/libsane.usermap hotplug-ng/libsane.db hotplug/libsane.rules
1999-08-09 18:06:01 +00:00
distclean: clean
2003-06-18 09:47:11 +00:00
rm -f Makefile $(DESTINATIONS) mustek600iin-off sane-desc
rm -f $(DISTCLEAN_FILES)
for subdir in $(SUBDIRS) ; do \
( cd $$subdir ; rm -f $(DISTCLEAN_FILES) ); \
done
1999-08-09 18:06:01 +00:00
dist: distdir
distdir: $(DISTFILES)
2004-04-10 19:17:17 +00:00
for subdir in $(SUBDIRS) ; do \
$(MKDIR) $(distdir)/$${subdir} ; \
for file in $(srcdir)/$${subdir}/* ; do \
ln $$file $(distdir)/$${subdir} 2> /dev/null \
|| cp -p $$file $(distdir)/$${subdir} \
2005-10-16 19:06:14 +00:00
|| echo "ignoring: $$file" ; \
2004-04-10 19:17:17 +00:00
done ; \
done
for file in $(DISTFILES); do \
ln $(srcdir)/$$file $(distdir) 2> /dev/null \
|| cp -p $(srcdir)/$$file $(distdir) ; \
done
# Used by top level distcheck target
dvi:
check:
installcheck:
distuninstallcheck: