diff --git a/ChangeLog b/ChangeLog index aa8b4c002..3254308fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-02-14 Chris Bagwell + * configure.in, tools/Makefile.am: convert tools to automake. + Add tools/openbsd to distribution package. + * include/Makefile.am: include files should have been installed + under sane/ directory when converted to automake. + * doc/Makefile.am: Cleanup. Use automake's built in support to + install docs within subdirectories. + 2009-02-18 Julien Blache * configure.in, configure: raise avahi-client dependency to 0.6.24, following a needed bugfix in this release. diff --git a/Makefile.in b/Makefile.in index 607503acd..8b18980f1 100644 --- a/Makefile.in +++ b/Makefile.in @@ -37,11 +37,9 @@ DIST_COMMON = README $(am__configure_deps) $(dist_doc_DATA) \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/configure $(top_srcdir)/include/sane/config.h.in \ $(top_srcdir)/japi/Makefile.in $(top_srcdir)/po/Makefile.in \ - $(top_srcdir)/testsuite/Makefile.in \ - $(top_srcdir)/tools/Makefile.in \ - $(top_srcdir)/tools/sane-config.in AUTHORS COPYING ChangeLog \ - INSTALL NEWS config.guess config.sub depcomp install-sh \ - ltmain.sh missing mkinstalldirs + $(top_srcdir)/testsuite/Makefile.in AUTHORS COPYING ChangeLog \ + INSTALL NEWS compile config.guess config.sub depcomp \ + install-sh ltmain.sh missing mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/byteorder.m4 \ @@ -52,8 +50,7 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/include/sane/config.h -CONFIG_CLEAN_FILES = japi/Makefile po/Makefile testsuite/Makefile \ - tools/Makefile tools/sane-config +CONFIG_CLEAN_FILES = japi/Makefile po/Makefile testsuite/Makefile SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ @@ -106,7 +103,6 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ -CROSS_COMPILING = @CROSS_COMPILING@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -326,10 +322,6 @@ po/Makefile: $(top_builddir)/config.status $(top_srcdir)/po/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ testsuite/Makefile: $(top_builddir)/config.status $(top_srcdir)/testsuite/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ -tools/Makefile: $(top_builddir)/config.status $(top_srcdir)/tools/Makefile.in - cd $(top_builddir) && $(SHELL) ./config.status $@ -tools/sane-config: $(top_builddir)/config.status $(top_srcdir)/tools/sane-config.in - cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo diff --git a/aclocal.m4 b/aclocal.m4 index 0faa8ceb5..6bece4142 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -768,6 +768,40 @@ AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) +# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_PROG_CC_C_O +# -------------- +# Like AC_PROG_CC_C_O, but changed for automake. +AC_DEFUN([AM_PROG_CC_C_O], +[AC_REQUIRE([AC_PROG_CC_C_O])dnl +AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([compile])dnl +# FIXME: we rely on the cache variable name because +# there is no other way. +set dummy $CC +ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` +if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +dnl Make sure AC_PROG_CC is never called again, or it will override our +dnl setting of CC. +m4_define([AC_PROG_CC], + [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) +]) + # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 diff --git a/backend/Makefile.in b/backend/Makefile.in index bb270181a..5090b1539 100644 --- a/backend/Makefile.in +++ b/backend/Makefile.in @@ -1278,7 +1278,6 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ -CROSS_COMPILING = @CROSS_COMPILING@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ diff --git a/compile b/compile new file mode 100755 index 000000000..1b1d23216 --- /dev/null +++ b/compile @@ -0,0 +1,142 @@ +#! /bin/sh +# Wrapper for compilers which do not understand `-c -o'. + +scriptversion=2005-05-14.22 + +# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. +# Written by Tom Tromey . +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# This file is maintained in Automake, please report +# bugs to or send patches to +# . + +case $1 in + '') + echo "$0: No command. Try \`$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: compile [--help] [--version] PROGRAM [ARGS] + +Wrapper for compilers which do not understand `-c -o'. +Remove `-o dest.o' from ARGS, run PROGRAM with the remaining +arguments, and rename the output as expected. + +If you are trying to build a whole package this is not the +right script to run: please start by reading the file `INSTALL'. + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "compile $scriptversion" + exit $? + ;; +esac + +ofile= +cfile= +eat= + +for arg +do + if test -n "$eat"; then + eat= + else + case $1 in + -o) + # configure might choose to run compile as `compile cc -o foo foo.c'. + # So we strip `-o arg' only if arg is an object. + eat=1 + case $2 in + *.o | *.obj) + ofile=$2 + ;; + *) + set x "$@" -o "$2" + shift + ;; + esac + ;; + *.c) + cfile=$1 + set x "$@" "$1" + shift + ;; + *) + set x "$@" "$1" + shift + ;; + esac + fi + shift +done + +if test -z "$ofile" || test -z "$cfile"; then + # If no `-o' option was seen then we might have been invoked from a + # pattern rule where we don't need one. That is ok -- this is a + # normal compilation that the losing compiler can handle. If no + # `.c' file was seen then we are probably linking. That is also + # ok. + exec "$@" +fi + +# Name of file we expect compiler to create. +cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'` + +# Create the lock directory. +# Note: use `[/.-]' here to ensure that we don't use the same name +# that we are using for the .o file. Also, base the name on the expected +# object file name, since that is what matters with a parallel build. +lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d +while true; do + if mkdir "$lockdir" >/dev/null 2>&1; then + break + fi + sleep 1 +done +# FIXME: race condition here if user kills between mkdir and trap. +trap "rmdir '$lockdir'; exit 1" 1 2 15 + +# Run the compile. +"$@" +ret=$? + +if test -f "$cofile"; then + mv "$cofile" "$ofile" +elif test -f "${cofile}bj"; then + mv "${cofile}bj" "$ofile" +fi + +rmdir "$lockdir" +exit $ret + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff --git a/configure b/configure index b2f83631a..a537c2567 100755 --- a/configure +++ b/configure @@ -856,7 +856,6 @@ STRICT_LDFLAGS INCLUDES CROSS_COMPILING_FALSE CROSS_COMPILING_TRUE -CROSS_COMPILING MAKEINDEX DVIPS LATEX @@ -3907,6 +3906,137 @@ else fi +if test "x$CC" != xcc; then + { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 +$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } +else + { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 +$as_echo_n "checking whether cc understands -c and -o together... " >&6; } +fi +set dummy $CC; ac_cc=`$as_echo "$2" | + sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` +if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then + $as_echo_n "(cached) " >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +# Make sure it works both with $CC and with simple cc. +# We do the test twice because some compilers refuse to overwrite an +# existing .o file with -o, though they will create one. +ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' +rm -f conftest2.* +if { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + test -f conftest2.$ac_objext && { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; +then + eval ac_cv_prog_cc_${ac_cc}_c_o=yes + if test "x$CC" != xcc; then + # Test first that cc exists at all. + if { ac_try='cc -c conftest.$ac_ext >&5' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' + rm -f conftest2.* + if { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + test -f conftest2.$ac_objext && { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; + then + # cc works too. + : + else + # cc exists but doesn't like -o. + eval ac_cv_prog_cc_${ac_cc}_c_o=no + fi + fi + fi +else + eval ac_cv_prog_cc_${ac_cc}_c_o=no +fi +rm -f core conftest* + +fi +if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then + { $as_echo "$as_me:$LINENO: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } + +cat >>confdefs.h <<\_ACEOF +#define NO_MINUS_C_MINUS_O 1 +_ACEOF + +fi + +# FIXME: we rely on the cache variable name because +# there is no other way. +set dummy $CC +ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` +if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi + + # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: @@ -4748,8 +4878,6 @@ fi CROSS_COMPILING=$cross_compiling -# FIXME: Remove AC_SUBSAT once tools directory is done - if test x$cross_compiling = xyes; then CROSS_COMPILING_TRUE= CROSS_COMPILING_FALSE='#' @@ -15946,7 +16074,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 15949 "configure"' > conftest.$ac_ext + echo '#line 16077 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -18826,11 +18954,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:18829: $lt_compile\"" >&5) + (eval echo "\"\$as_me:18957: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:18833: \$? = $ac_status" >&5 + echo "$as_me:18961: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -19116,11 +19244,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19119: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19247: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:19123: \$? = $ac_status" >&5 + echo "$as_me:19251: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -19220,11 +19348,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19223: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19351: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:19227: \$? = $ac_status" >&5 + echo "$as_me:19355: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -21622,7 +21750,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5) + (eval echo "\"\$as_me:24266: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:24142: \$? = $ac_status" >&5 + echo "$as_me:24270: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -24239,11 +24367,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:24242: $lt_compile\"" >&5) + (eval echo "\"\$as_me:24370: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:24246: \$? = $ac_status" >&5 + echo "$as_me:24374: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -25824,11 +25952,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:25827: $lt_compile\"" >&5) + (eval echo "\"\$as_me:25955: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:25831: \$? = $ac_status" >&5 + echo "$as_me:25959: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -25928,11 +26056,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:25931: $lt_compile\"" >&5) + (eval echo "\"\$as_me:26059: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:25935: \$? = $ac_status" >&5 + echo "$as_me:26063: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -28149,11 +28277,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:28152: $lt_compile\"" >&5) + (eval echo "\"\$as_me:28280: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:28156: \$? = $ac_status" >&5 + echo "$as_me:28284: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -28439,11 +28567,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:28442: $lt_compile\"" >&5) + (eval echo "\"\$as_me:28570: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:28446: \$? = $ac_status" >&5 + echo "$as_me:28574: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -28543,11 +28671,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:28546: $lt_compile\"" >&5) + (eval echo "\"\$as_me:28674: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:28550: \$? = $ac_status" >&5 + echo "$as_me:28678: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized diff --git a/configure.in b/configure.in index 98dbdca33..de3bc0b50 100644 --- a/configure.in +++ b/configure.in @@ -55,6 +55,7 @@ dnl *********************************************************************** dnl Checks for programs. dnl *********************************************************************** AC_PROG_CC +AM_PROG_CC_C_O AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_CPP @@ -74,8 +75,6 @@ AC_SUBST(DVIPS) AC_SUBST(MAKEINDEX) CROSS_COMPILING=$cross_compiling -# FIXME: Remove AC_SUBSAT once tools directory is done -AC_SUBST(CROSS_COMPILING) AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes) dnl *********************************************************************** diff --git a/doc/Makefile.am b/doc/Makefile.am index 154ea6134..546d2aaeb 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -86,6 +86,7 @@ endif all: bemans $(STANDARD) html-pages dist_doc_DATA = backend-writing.txt +nobase_dist_doc_DATA = $(BEDOCS) doc_DATA += $(STANDARD) EXTRA_DIST += descriptions.txt releases.txt sane-logo2.jpg sane-logo.png \ sane.png @@ -121,8 +122,6 @@ install-beman5: $(BACKEND_5MANS) || exit 1; \ done -# FIXME: See if nobase_doc_DATA will install subdirectories then -# we can get read of install-bedocs target BEDOCS = canon/canon.changes canon/canon.install2700F.txt BEDOCS += gt68xx/gt68xx.CHANGES gt68xx/gt68xx.TODO BEDOCS += leo/leo.txt @@ -154,21 +153,7 @@ BEDOCS += umax/negative-types.txt umax/sane-logo.jpg \ umax/sane-umax.jpg umax/umax.BUGS umax/umax.CHANGES umax/umax.FAQ \ umax/umax.TODO -EXTRA_DIST += $(BEDOCS) sane.tex net.tex html.sty - -install-bedocs: $(BEDOCS) - @list='$(BEDOCS)'; \ - doc_files=`for file in $$list; do echo $$file; done`; \ - case $$doc_files in \ - */*) $(MKDIR_P) `echo "$$doc_files" | \ - sed 's|^|$(DESTDIR)$(docdir)/|;s,/[^/]*$$,,' | \ - sort -u` ; \ - esac; \ - for doc in $$doc_files; do \ - echo "installing $(srcdir)/$${doc} in $(docdir)/$${doc}..."; \ - $(INSTALL_DATA) $(srcdir)/$${doc} $(DESTDIR)$(docdir)/$${doc} \ - || exit 1; \ - done +EXTRA_DIST += sane.tex net.tex html.sty EXTRA_DIST += descriptions/abaton.desc descriptions/agfafocus.desc \ descriptions/apple.desc descriptions/artec.desc \ @@ -232,7 +217,7 @@ EXTRA_DIST += icons/contents.gif icons/index.gif icons/next.gif \ icons/next_gr.gif icons/previous.gif icons/previous_gr.gif \ icons/references.gif icons/references_gr.gif icons/up.gif icons/up_gr.gif -install-data-local: install-beman5 install-bedocs +install-data-local: install-beman5 uninstall-local: rm -rf $(DESTDIR)$(docdir) diff --git a/doc/Makefile.in b/doc/Makefile.in index f5000f866..b6f452bd5 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -33,8 +33,9 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc -DIST_COMMON = $(dist_doc_DATA) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(srcdir)/doxygen-sanei.conf.in +DIST_COMMON = $(dist_doc_DATA) $(nobase_dist_doc_DATA) \ + $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(srcdir)/doxygen-sanei.conf.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/byteorder.m4 \ @@ -49,7 +50,7 @@ DIST_SOURCES = man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man7dir)" \ "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(docdir)" \ - "$(DESTDIR)$(docdir)" + "$(DESTDIR)$(docdir)" "$(DESTDIR)$(docdir)" man7dir = $(mandir)/man7 man8dir = $(mandir)/man8 NROFF = nroff @@ -62,7 +63,8 @@ am__vpath_adj = case $$p in \ am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; dist_docDATA_INSTALL = $(INSTALL_DATA) docDATA_INSTALL = $(INSTALL_DATA) -DATA = $(dist_doc_DATA) $(doc_DATA) +nobase_dist_docDATA_INSTALL = $(install_sh_DATA) +DATA = $(dist_doc_DATA) $(doc_DATA) $(nobase_dist_doc_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ @@ -92,7 +94,6 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ -CROSS_COMPILING = @CROSS_COMPILING@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -261,48 +262,48 @@ EXTRA_DIST = scanimage.man sane-config.man sane-find-scanner.man \ sane-epjitsu.man sane-hs2p.man sane-canon_dr.man \ sane-xerox_mfp.man sane-rts8891.man sane.man saned.man \ descriptions.txt releases.txt sane-logo2.jpg sane-logo.png \ - sane.png $(BEDOCS) sane.tex net.tex html.sty \ - descriptions/abaton.desc descriptions/agfafocus.desc \ - descriptions/apple.desc descriptions/artec.desc \ - descriptions/artec_eplus48u.desc descriptions/as6e.desc \ - descriptions/avision.desc descriptions/bh.desc \ - descriptions/canon630u.desc descriptions/canon.desc \ - descriptions/canon_dr.desc descriptions/canon_pp.desc \ - descriptions/cardscan.desc descriptions/coolscan2.desc \ - descriptions/coolscan.desc descriptions/dc210.desc \ - descriptions/dc240.desc descriptions/dc25.desc \ - descriptions/dell1600n_net.desc descriptions/dll.desc \ - descriptions/dmc.desc descriptions/epjitsu.desc \ - descriptions/epson2.desc descriptions/epson.desc \ - descriptions/fujitsu.desc descriptions/genesys.desc \ - descriptions/gphoto2.desc descriptions/gt68xx.desc \ - descriptions/hp3500.desc descriptions/hp3900.desc \ - descriptions/hp4200.desc descriptions/hp5400.desc \ - descriptions/hp5590.desc descriptions/hp.desc \ - descriptions/hpljm1005.desc descriptions/hpsj5s.desc \ - descriptions/hs2p.desc descriptions/ibm.desc \ - descriptions/leo.desc descriptions/lexmark.desc \ - descriptions/ma1509.desc descriptions/matsushita.desc \ - descriptions/microtek2.desc descriptions/microtek.desc \ - descriptions/mustek.desc descriptions/mustek_pp.desc \ - descriptions/mustek_usb2.desc descriptions/mustek_usb.desc \ - descriptions/nec.desc descriptions/net.desc \ - descriptions/niash.desc descriptions/pie.desc \ - descriptions/pint.desc descriptions/pixma.desc \ - descriptions/plustek.desc descriptions/plustek_pp.desc \ - descriptions/pnm.desc descriptions/qcam.desc \ - descriptions/ricoh.desc descriptions/rts8891.desc \ - descriptions/s9036.desc descriptions/sceptre.desc \ - descriptions/sharp.desc descriptions/sm3600.desc \ - descriptions/sm3840.desc descriptions/snapscan.desc \ - descriptions/sp15c.desc descriptions/st400.desc \ - descriptions/stv680.desc descriptions/tamarack.desc \ - descriptions/teco1.desc descriptions/teco2.desc \ - descriptions/teco3.desc descriptions/template.desc. \ - descriptions/test.desc descriptions/u12.desc \ - descriptions/umax1220u.desc descriptions/umax.desc \ - descriptions/umax_pp.desc descriptions/unsupported.desc \ - descriptions/v4l.desc descriptions/xerox_mfp.desc \ + sane.png sane.tex net.tex html.sty descriptions/abaton.desc \ + descriptions/agfafocus.desc descriptions/apple.desc \ + descriptions/artec.desc descriptions/artec_eplus48u.desc \ + descriptions/as6e.desc descriptions/avision.desc \ + descriptions/bh.desc descriptions/canon630u.desc \ + descriptions/canon.desc descriptions/canon_dr.desc \ + descriptions/canon_pp.desc descriptions/cardscan.desc \ + descriptions/coolscan2.desc descriptions/coolscan.desc \ + descriptions/dc210.desc descriptions/dc240.desc \ + descriptions/dc25.desc descriptions/dell1600n_net.desc \ + descriptions/dll.desc descriptions/dmc.desc \ + descriptions/epjitsu.desc descriptions/epson2.desc \ + descriptions/epson.desc descriptions/fujitsu.desc \ + descriptions/genesys.desc descriptions/gphoto2.desc \ + descriptions/gt68xx.desc descriptions/hp3500.desc \ + descriptions/hp3900.desc descriptions/hp4200.desc \ + descriptions/hp5400.desc descriptions/hp5590.desc \ + descriptions/hp.desc descriptions/hpljm1005.desc \ + descriptions/hpsj5s.desc descriptions/hs2p.desc \ + descriptions/ibm.desc descriptions/leo.desc \ + descriptions/lexmark.desc descriptions/ma1509.desc \ + descriptions/matsushita.desc descriptions/microtek2.desc \ + descriptions/microtek.desc descriptions/mustek.desc \ + descriptions/mustek_pp.desc descriptions/mustek_usb2.desc \ + descriptions/mustek_usb.desc descriptions/nec.desc \ + descriptions/net.desc descriptions/niash.desc \ + descriptions/pie.desc descriptions/pint.desc \ + descriptions/pixma.desc descriptions/plustek.desc \ + descriptions/plustek_pp.desc descriptions/pnm.desc \ + descriptions/qcam.desc descriptions/ricoh.desc \ + descriptions/rts8891.desc descriptions/s9036.desc \ + descriptions/sceptre.desc descriptions/sharp.desc \ + descriptions/sm3600.desc descriptions/sm3840.desc \ + descriptions/snapscan.desc descriptions/sp15c.desc \ + descriptions/st400.desc descriptions/stv680.desc \ + descriptions/tamarack.desc descriptions/teco1.desc \ + descriptions/teco2.desc descriptions/teco3.desc \ + descriptions/template.desc. descriptions/test.desc \ + descriptions/u12.desc descriptions/umax1220u.desc \ + descriptions/umax.desc descriptions/umax_pp.desc \ + descriptions/unsupported.desc descriptions/v4l.desc \ + descriptions/xerox_mfp.desc \ descriptions-external/brother2.desc \ descriptions-external/brother.desc \ descriptions-external/brother-mfc4600.desc \ @@ -361,6 +362,7 @@ doc_DATA = $(HTML_PAGES) $(STANDARD) @USE_LATEX_FALSE@STANDARD = @USE_LATEX_TRUE@STANDARD = sane.ps dist_doc_DATA = backend-writing.txt +nobase_dist_doc_DATA = $(BEDOCS) DLH = TEXINPUTS=$(srcdir):$$TEXINPUTS dlh MAN2HTML = nroff -man |\ man2html -compress -topm 6 -botm 6 -nodepage -title $${page} \ @@ -368,9 +370,6 @@ MAN2HTML = nroff -man |\ sed 's,,

,' beman5dir = $(mandir)/man5 - -# FIXME: See if nobase_doc_DATA will install subdirectories then -# we can get read of install-bedocs target BEDOCS = canon/canon.changes canon/canon.install2700F.txt \ gt68xx/gt68xx.CHANGES gt68xx/gt68xx.TODO leo/leo.txt \ matsushita/matsushita.txt mustek/mustek.CHANGES \ @@ -608,6 +607,25 @@ uninstall-docDATA: echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \ rm -f "$(DESTDIR)$(docdir)/$$f"; \ done +install-nobase_dist_docDATA: $(nobase_dist_doc_DATA) + @$(NORMAL_INSTALL) + test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)" + @$(am__vpath_adj_setup) \ + list='$(nobase_dist_doc_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + $(am__vpath_adj) \ + echo " $(nobase_dist_docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \ + $(nobase_dist_docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \ + done + +uninstall-nobase_dist_docDATA: + @$(NORMAL_UNINSTALL) + @$(am__vpath_adj_setup) \ + list='$(nobase_dist_doc_DATA)'; for p in $$list; do \ + $(am__vpath_adj) \ + echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \ + rm -f "$(DESTDIR)$(docdir)/$$f"; \ + done tags: TAGS TAGS: @@ -645,7 +663,7 @@ check-am: all-am check: check-am all-am: Makefile $(MANS) $(DATA) installdirs: - for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man7dir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(docdir)" "$(DESTDIR)$(docdir)"; do \ + for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man7dir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(docdir)" "$(DESTDIR)$(docdir)" "$(DESTDIR)$(docdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am @@ -689,7 +707,7 @@ info: info-am info-am: install-data-am: install-data-local install-dist_docDATA \ - install-docDATA install-man + install-docDATA install-man install-nobase_dist_docDATA install-dvi: install-dvi-am @@ -724,7 +742,7 @@ ps: ps-am ps-am: uninstall-am: uninstall-dist_docDATA uninstall-docDATA uninstall-local \ - uninstall-man + uninstall-man uninstall-nobase_dist_docDATA uninstall-man: uninstall-man1 uninstall-man7 uninstall-man8 @@ -737,13 +755,15 @@ uninstall-man: uninstall-man1 uninstall-man7 uninstall-man8 install-data-local install-dist_docDATA install-docDATA \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ - install-man install-man1 install-man7 install-man8 install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ + install-man install-man1 install-man7 install-man8 \ + install-nobase_dist_docDATA install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-dist_docDATA uninstall-docDATA uninstall-local \ - uninstall-man uninstall-man1 uninstall-man7 uninstall-man8 + uninstall-man uninstall-man1 uninstall-man7 uninstall-man8 \ + uninstall-nobase_dist_docDATA all: bemans $(STANDARD) html-pages @@ -768,21 +788,7 @@ install-beman5: $(BACKEND_5MANS) || exit 1; \ done -install-bedocs: $(BEDOCS) - @list='$(BEDOCS)'; \ - doc_files=`for file in $$list; do echo $$file; done`; \ - case $$doc_files in \ - */*) $(MKDIR_P) `echo "$$doc_files" | \ - sed 's|^|$(DESTDIR)$(docdir)/|;s,/[^/]*$$,,' | \ - sort -u` ; \ - esac; \ - for doc in $$doc_files; do \ - echo "installing $(srcdir)/$${doc} in $(docdir)/$${doc}..."; \ - $(INSTALL_DATA) $(srcdir)/$${doc} $(DESTDIR)$(docdir)/$${doc} \ - || exit 1; \ - done - -install-data-local: install-beman5 install-bedocs +install-data-local: install-beman5 uninstall-local: rm -rf $(DESTDIR)$(docdir) diff --git a/frontend/Makefile.in b/frontend/Makefile.in index 93f111330..bf4633075 100644 --- a/frontend/Makefile.in +++ b/frontend/Makefile.in @@ -106,7 +106,6 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ -CROSS_COMPILING = @CROSS_COMPILING@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ diff --git a/include/Makefile.am b/include/Makefile.am index 16870164d..b913cc37e 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -4,7 +4,7 @@ ## This file is part of the "Sane" build infra-structure. See ## included LICENSE file for license information. -include_HEADERS = sane/sane.h sane/saneopts.h +nobase_include_HEADERS = sane/sane.h sane/saneopts.h EXTRA_DIST = lalloca.h lassert.h lgetopt.h md5.h font_6x11.h diff --git a/include/Makefile.in b/include/Makefile.in index 6e74e17f7..650d72d23 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -33,7 +33,7 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = include -DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \ +DIST_COMMON = $(nobase_include_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ @@ -53,8 +53,8 @@ am__vpath_adj = case $$p in \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(includedir)" -includeHEADERS_INSTALL = $(INSTALL_HEADER) -HEADERS = $(include_HEADERS) +nobase_includeHEADERS_INSTALL = $(install_sh_DATA) +HEADERS = $(nobase_include_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -77,7 +77,6 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ -CROSS_COMPILING = @CROSS_COMPILING@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -218,7 +217,7 @@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -include_HEADERS = sane/sane.h sane/saneopts.h +nobase_include_HEADERS = sane/sane.h sane/saneopts.h EXTRA_DIST = lalloca.h lassert.h lgetopt.h md5.h font_6x11.h \ sane/config.h.in sane/sanei.h sane/sanei_ab306.h \ sane/sanei_access.h sane/sanei_auth.h sane/sanei_backend.h \ @@ -267,20 +266,22 @@ mostlyclean-libtool: clean-libtool: -rm -rf .libs _libs -install-includeHEADERS: $(include_HEADERS) +install-nobase_includeHEADERS: $(nobase_include_HEADERS) @$(NORMAL_INSTALL) test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)" - @list='$(include_HEADERS)'; for p in $$list; do \ + @$(am__vpath_adj_setup) \ + list='$(nobase_include_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \ - $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \ + $(am__vpath_adj) \ + echo " $(nobase_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \ + $(nobase_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \ done -uninstall-includeHEADERS: +uninstall-nobase_includeHEADERS: @$(NORMAL_UNINSTALL) - @list='$(include_HEADERS)'; for p in $$list; do \ - f=$(am__strip_dir) \ + @$(am__vpath_adj_setup) \ + list='$(nobase_include_HEADERS)'; for p in $$list; do \ + $(am__vpath_adj) \ echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \ rm -f "$(DESTDIR)$(includedir)/$$f"; \ done @@ -407,7 +408,7 @@ info: info-am info-am: -install-data-am: install-includeHEADERS +install-data-am: install-nobase_includeHEADERS install-dvi: install-dvi-am @@ -441,7 +442,7 @@ ps: ps-am ps-am: -uninstall-am: uninstall-includeHEADERS +uninstall-am: uninstall-nobase_includeHEADERS .MAKE: install-am install-strip @@ -450,13 +451,13 @@ uninstall-am: uninstall-includeHEADERS distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am \ - install-includeHEADERS install-info install-info-am \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags uninstall uninstall-am uninstall-includeHEADERS + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-nobase_includeHEADERS \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-nobase_includeHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/include/sane/config.h.in b/include/sane/config.h.in index 9cd187ba6..c53107b40 100644 --- a/include/sane/config.h.in +++ b/include/sane/config.h.in @@ -422,6 +422,9 @@ #include #endif +/* Define to 1 if your C compiler doesn't accept -c and -o together. */ +#undef NO_MINUS_C_MINUS_O + /* Define to the name of the distribution. */ #undef PACKAGE diff --git a/lib/Makefile.in b/lib/Makefile.in index ac07c450e..077c2df78 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -88,7 +88,6 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ -CROSS_COMPILING = @CROSS_COMPILING@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ diff --git a/sanei/Makefile.in b/sanei/Makefile.in index 7fb766060..d0420c91c 100644 --- a/sanei/Makefile.in +++ b/sanei/Makefile.in @@ -102,7 +102,6 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ -CROSS_COMPILING = @CROSS_COMPILING@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ diff --git a/tools/Makefile.am b/tools/Makefile.am new file mode 100644 index 000000000..46a510a7f --- /dev/null +++ b/tools/Makefile.am @@ -0,0 +1,72 @@ +## Makefile.am -- an automake template for Makefile.in file +## Copyright (C) 2009 Chris Bagwell and Sane Developers. +## +## This file is part of the "Sane" build infra-structure. See +## included LICENSE file for license information. + +AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include \ + -I$(top_srcdir)/include + +bin_PROGRAMS = sane-find-scanner gamma4scanimage +noinst_PROGRAMS = sane-desc umax_pp gamma4scanimage + +if CROSS_COMPILING +HOTPLUG = +HOTPLUG_DIRS = +HOTPLUG_DIR = +else +HOTPLUG = hal/libsane.fdi hotplug/libsane.usermap hotplug-ng/libsane.db \ + udev/libsane.rules +HOTPLUG_DIRS = hal hotplug hotplug-ng udev +HOTPLUG_DIR = dirs +endif + +bin_SCRIPTS = sane-config +noinst_SCRIPTS = $(HOTPLUG) +BUILT_SOURCES = $(HOTPLUG_DIR) +CLEANFILES = $(bin_SCRIPTS) $(dist_noinst_SCRIPTS) + +EXTRA_DIST = check-po.awk libtool-get-dll-ext mustek600iin-off.c \ + RenSaneDlls.cmd README xerox + +sane_find_scanner_SOURCES = sane-find-scanner.c check-usb-chip.c \ + ../backend/sane_strstatus.c +sane_find_scanner_LDADD = ../sanei/libsanei.la @USB_LIBS@ @IEEE1284_LIBS@ + +gamma4scanimage_SOURCES = gamma4scanimage.c +gamma4scanimage_LDADD = @MATH_LIB@ + +umax_pp_SOURCES = umax_pp.c ../backend/umax_pp_low.c +umax_pp_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=umax_pp_low +umax_pp_LDADD = ../sanei/libsanei.la ../lib/liblib.la @MATH_LIB@ + +sane_desc_SOURCES = sane-desc.c +sane_desc_LDADD = ../sanei/libsanei.la + +EXTRA_DIST += hotplug/README hotplug/libusbscanner +EXTRA_DIST += hotplug-ng/README hotplug-ng/libsane.hotplug +EXTRA_DIST += openbsd/attach openbsd/detach + +# When build directory is not same as source directory then any +# subdirectories that targets use must be manually created (under +# the build directory that is). +dirs: + for subdir in $(HOTPLUG_DIRS); do \ + $(MKDIR_P) $$subdir || exit 1; \ + done + +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 > $@ diff --git a/tools/Makefile.in b/tools/Makefile.in index 270adfe23..bb5dbd283 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -1,129 +1,658 @@ -SHELL = /bin/sh +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ -VPATH = @srcdir@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -top_builddir = .. -subdir = tools +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. -PACKAGE = @PACKAGE@ -VERSION = @VERSION@ -distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)/tools - -prefix = @prefix@ -exec_prefix = @exec_prefix@ -bindir = @bindir@ -sbindir = @sbindir@ -libexecdir = @libexecdir@ -datarootdir = @datarootdir@ -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@ -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 = -L../backend @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 $@ - -DISTCLEAN_FILES = @DISTCLEAN_FILES@ +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. @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) +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = sane-find-scanner$(EXEEXT) gamma4scanimage$(EXEEXT) +noinst_PROGRAMS = sane-desc$(EXEEXT) umax_pp$(EXEEXT) \ + gamma4scanimage$(EXEEXT) +subdir = tools +DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(srcdir)/sane-config.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/byteorder.m4 \ + $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/include/sane/config.h +CONFIG_CLEAN_FILES = sane-config +am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) +am_gamma4scanimage_OBJECTS = gamma4scanimage.$(OBJEXT) +gamma4scanimage_OBJECTS = $(am_gamma4scanimage_OBJECTS) +gamma4scanimage_DEPENDENCIES = +am_sane_desc_OBJECTS = sane-desc.$(OBJEXT) +sane_desc_OBJECTS = $(am_sane_desc_OBJECTS) +sane_desc_DEPENDENCIES = ../sanei/libsanei.la +am_sane_find_scanner_OBJECTS = sane-find-scanner.$(OBJEXT) \ + check-usb-chip.$(OBJEXT) sane_strstatus.$(OBJEXT) +sane_find_scanner_OBJECTS = $(am_sane_find_scanner_OBJECTS) +sane_find_scanner_DEPENDENCIES = ../sanei/libsanei.la +am_umax_pp_OBJECTS = umax_pp-umax_pp.$(OBJEXT) \ + umax_pp-umax_pp_low.$(OBJEXT) +umax_pp_OBJECTS = $(am_umax_pp_OBJECTS) +umax_pp_DEPENDENCIES = ../sanei/libsanei.la ../lib/liblib.la +binSCRIPT_INSTALL = $(INSTALL_SCRIPT) +SCRIPTS = $(bin_SCRIPTS) $(noinst_SCRIPTS) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/sane +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(gamma4scanimage_SOURCES) $(sane_desc_SOURCES) \ + $(sane_find_scanner_SOURCES) $(umax_pp_SOURCES) +DIST_SOURCES = $(gamma4scanimage_SOURCES) $(sane_desc_SOURCES) \ + $(sane_find_scanner_SOURCES) $(umax_pp_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AVAHI_CFLAGS = @AVAHI_CFLAGS@ +AVAHI_LIBS = @AVAHI_LIBS@ +AWK = @AWK@ +BACKEND_CONFS_ENABLED = @BACKEND_CONFS_ENABLED@ +BACKEND_LIBS_ENABLED = @BACKEND_LIBS_ENABLED@ +BACKEND_MANS_ENABLED = @BACKEND_MANS_ENABLED@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DISTCLEAN_FILES = @DISTCLEAN_FILES@ +DLLTOOL = @DLLTOOL@ +DL_LIBS = @DL_LIBS@ +DSYMUTIL = @DSYMUTIL@ +DVIPS = @DVIPS@ +DYNAMIC_FLAG = @DYNAMIC_FLAG@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GPHOTO2_CPPFLAGS = @GPHOTO2_CPPFLAGS@ +GPHOTO2_LIBS = @GPHOTO2_LIBS@ +GREP = @GREP@ +HAVE_GPHOTO2 = @HAVE_GPHOTO2@ +IEEE1284_LIBS = @IEEE1284_LIBS@ +INCLUDES = @INCLUDES@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_LOCKPATH = @INSTALL_LOCKPATH@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTALL_TRANSLATIONS = @INSTALL_TRANSLATIONS@ +JPEG_LIBS = @JPEG_LIBS@ +LATEX = @LATEX@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIBV4L_CFLAGS = @LIBV4L_CFLAGS@ +LIBV4L_LIBS = @LIBV4L_LIBS@ +LINKER_RPATH = @LINKER_RPATH@ +LN_S = @LN_S@ +LOCKPATH_GROUP = @LOCKPATH_GROUP@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINDEX = @MAKEINDEX@ +MAKEINFO = @MAKEINFO@ +MATH_LIB = @MATH_LIB@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NMEDIT = @NMEDIT@ +NUMBER_VERSION = @NUMBER_VERSION@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PRELOADABLE_BACKENDS = @PRELOADABLE_BACKENDS@ +PRELOADABLE_BACKENDS_ENABLED = @PRELOADABLE_BACKENDS_ENABLED@ +PTHREAD_LIBS = @PTHREAD_LIBS@ +RANLIB = @RANLIB@ +SANEI_SANEI_JPEG_LO = @SANEI_SANEI_JPEG_LO@ +SANE_CONFIG_PATH = @SANE_CONFIG_PATH@ +SCSI_LIBS = @SCSI_LIBS@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SOCKET_LIBS = @SOCKET_LIBS@ +STRICT_LDFLAGS = @STRICT_LDFLAGS@ +STRIP = @STRIP@ +SYSLOG_LIBS = @SYSLOG_LIBS@ +TIFF_LIBS = @TIFF_LIBS@ +USB_LIBS = @USB_LIBS@ +VERSION = @VERSION@ +V_MAJOR = @V_MAJOR@ +V_MINOR = @V_MINOR@ +V_REV = @V_REV@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +effective_target = @effective_target@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +locksanedir = @locksanedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include \ + -I$(top_srcdir)/include -EXTRA = sane_strstatus.lo ../sanei/sanei_init_debug.lo \ - ../sanei/sanei_config.lo ../sanei/sanei_config2.lo \ - ../lib/usleep.lo ../lib/strndup.lo +@CROSS_COMPILING_FALSE@HOTPLUG = hal/libsane.fdi hotplug/libsane.usermap hotplug-ng/libsane.db \ +@CROSS_COMPILING_FALSE@ udev/libsane.rules -LIBSANEI = ../sanei/libsanei.la -# Library routines that should be part of libc, but aren't on some systems: -LIBLIB = ../lib/liblib.la ../lib/libfelib.la +@CROSS_COMPILING_TRUE@HOTPLUG = +@CROSS_COMPILING_FALSE@HOTPLUG_DIRS = hal hotplug hotplug-ng udev +@CROSS_COMPILING_TRUE@HOTPLUG_DIRS = +@CROSS_COMPILING_FALSE@HOTPLUG_DIR = dirs +@CROSS_COMPILING_TRUE@HOTPLUG_DIR = +bin_SCRIPTS = sane-config +noinst_SCRIPTS = $(HOTPLUG) +BUILT_SOURCES = $(HOTPLUG_DIR) +CLEANFILES = $(bin_SCRIPTS) $(dist_noinst_SCRIPTS) +EXTRA_DIST = check-po.awk libtool-get-dll-ext mustek600iin-off.c \ + RenSaneDlls.cmd README xerox hotplug/README \ + hotplug/libusbscanner hotplug-ng/README \ + hotplug-ng/libsane.hotplug openbsd/attach openbsd/detach +sane_find_scanner_SOURCES = sane-find-scanner.c check-usb-chip.c \ + ../backend/sane_strstatus.c -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 +sane_find_scanner_LDADD = ../sanei/libsanei.la @USB_LIBS@ @IEEE1284_LIBS@ +gamma4scanimage_SOURCES = gamma4scanimage.c +gamma4scanimage_LDADD = @MATH_LIB@ +umax_pp_SOURCES = umax_pp.c ../backend/umax_pp_low.c +umax_pp_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=umax_pp_low +umax_pp_LDADD = ../sanei/libsanei.la ../lib/liblib.la @MATH_LIB@ +sane_desc_SOURCES = sane-desc.c +sane_desc_LDADD = ../sanei/libsanei.la +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-am -SUBDIRS = hotplug hotplug-ng udev hal +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tools/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu tools/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; -.PHONY: all clean depend dist distdir distclean install uninstall dirs +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -.c.o: - $(COMPILE) $< - -%.lo: %.c - @$(LIBTOOL) $(MCOMP) $(COMPILE) -DLIBDIR=$(libdir) $< - -all: dirs $(DESTINATIONS) - -dirs: - for subdir in $(SUBDIRS); do \ - $(MKDIR) $$subdir || exit 1; \ +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +sane-config: $(top_builddir)/config.status $(srcdir)/sane-config.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + if test -f $$p \ + || test -f $$p1 \ + ; then \ + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ + else :; fi; \ done -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-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ + done -uninstall: - rm -f $(DESTDIR)$(bindir)/sane-config $(DESTDIR)$(bindir)/sane-find-scanner $(DESTDIR)$(bindir)/gamma4scanimage +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f $$p $$f"; \ + rm -f $$p $$f ; \ + done -sane-config: sane-config.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status +clean-noinstPROGRAMS: + @list='$(noinst_PROGRAMS)'; for p in $$list; do \ + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f $$p $$f"; \ + rm -f $$p $$f ; \ + done +gamma4scanimage$(EXEEXT): $(gamma4scanimage_OBJECTS) $(gamma4scanimage_DEPENDENCIES) + @rm -f gamma4scanimage$(EXEEXT) + $(LINK) $(gamma4scanimage_OBJECTS) $(gamma4scanimage_LDADD) $(LIBS) +sane-desc$(EXEEXT): $(sane_desc_OBJECTS) $(sane_desc_DEPENDENCIES) + @rm -f sane-desc$(EXEEXT) + $(LINK) $(sane_desc_OBJECTS) $(sane_desc_LDADD) $(LIBS) +sane-find-scanner$(EXEEXT): $(sane_find_scanner_OBJECTS) $(sane_find_scanner_DEPENDENCIES) + @rm -f sane-find-scanner$(EXEEXT) + $(LINK) $(sane_find_scanner_OBJECTS) $(sane_find_scanner_LDADD) $(LIBS) +umax_pp$(EXEEXT): $(umax_pp_OBJECTS) $(umax_pp_DEPENDENCIES) + @rm -f umax_pp$(EXEEXT) + $(LINK) $(umax_pp_OBJECTS) $(umax_pp_LDADD) $(LIBS) +install-binSCRIPTS: $(bin_SCRIPTS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" + @list='$(bin_SCRIPTS)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + if test -f $$d$$p; then \ + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ + echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \ + else :; fi; \ + done -sane-find-scanner: sane-find-scanner.o check-usb-chip.o ../backend/sane_strstatus.lo \ - ../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@ +uninstall-binSCRIPTS: + @$(NORMAL_UNINSTALL) + @list='$(bin_SCRIPTS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ + done -gamma4scanimage: gamma4scanimage.o - @$(LIBTOOL) $(MLINK) $(LINK) gamma4scanimage.o -lm +mostlyclean-compile: + -rm -f *.$(OBJEXT) -../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 +distclean-compile: + -rm -f *.tab.c -umax_pp: umax_pp.o ../backend/umax_pp_low.o - @$(LIBTOOL) $(MLINK) $(LINK) umax_pp.o ../backend/umax_pp_low.o \ - $(LIBSANEI) $(LIBLIB) $(LIBS) @MATH_LIB@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check-usb-chip.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gamma4scanimage.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sane-desc.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sane-find-scanner.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sane_strstatus.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/umax_pp-umax_pp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/umax_pp-umax_pp_low.Po@am__quote@ -sane-desc: sane-desc.o - @$(LIBTOOL) $(MLINK) $(LINK) sane-desc.o $(LIBSANEI) $(LIBLIB) +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +sane_strstatus.o: ../backend/sane_strstatus.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sane_strstatus.o -MD -MP -MF $(DEPDIR)/sane_strstatus.Tpo -c -o sane_strstatus.o `test -f '../backend/sane_strstatus.c' || echo '$(srcdir)/'`../backend/sane_strstatus.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/sane_strstatus.Tpo $(DEPDIR)/sane_strstatus.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../backend/sane_strstatus.c' object='sane_strstatus.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sane_strstatus.o `test -f '../backend/sane_strstatus.c' || echo '$(srcdir)/'`../backend/sane_strstatus.c + +sane_strstatus.obj: ../backend/sane_strstatus.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sane_strstatus.obj -MD -MP -MF $(DEPDIR)/sane_strstatus.Tpo -c -o sane_strstatus.obj `if test -f '../backend/sane_strstatus.c'; then $(CYGPATH_W) '../backend/sane_strstatus.c'; else $(CYGPATH_W) '$(srcdir)/../backend/sane_strstatus.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/sane_strstatus.Tpo $(DEPDIR)/sane_strstatus.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../backend/sane_strstatus.c' object='sane_strstatus.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sane_strstatus.obj `if test -f '../backend/sane_strstatus.c'; then $(CYGPATH_W) '../backend/sane_strstatus.c'; else $(CYGPATH_W) '$(srcdir)/../backend/sane_strstatus.c'; fi` + +umax_pp-umax_pp.o: umax_pp.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(umax_pp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT umax_pp-umax_pp.o -MD -MP -MF $(DEPDIR)/umax_pp-umax_pp.Tpo -c -o umax_pp-umax_pp.o `test -f 'umax_pp.c' || echo '$(srcdir)/'`umax_pp.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/umax_pp-umax_pp.Tpo $(DEPDIR)/umax_pp-umax_pp.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='umax_pp.c' object='umax_pp-umax_pp.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(umax_pp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o umax_pp-umax_pp.o `test -f 'umax_pp.c' || echo '$(srcdir)/'`umax_pp.c + +umax_pp-umax_pp.obj: umax_pp.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(umax_pp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT umax_pp-umax_pp.obj -MD -MP -MF $(DEPDIR)/umax_pp-umax_pp.Tpo -c -o umax_pp-umax_pp.obj `if test -f 'umax_pp.c'; then $(CYGPATH_W) 'umax_pp.c'; else $(CYGPATH_W) '$(srcdir)/umax_pp.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/umax_pp-umax_pp.Tpo $(DEPDIR)/umax_pp-umax_pp.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='umax_pp.c' object='umax_pp-umax_pp.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(umax_pp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o umax_pp-umax_pp.obj `if test -f 'umax_pp.c'; then $(CYGPATH_W) 'umax_pp.c'; else $(CYGPATH_W) '$(srcdir)/umax_pp.c'; fi` + +umax_pp-umax_pp_low.o: ../backend/umax_pp_low.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(umax_pp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT umax_pp-umax_pp_low.o -MD -MP -MF $(DEPDIR)/umax_pp-umax_pp_low.Tpo -c -o umax_pp-umax_pp_low.o `test -f '../backend/umax_pp_low.c' || echo '$(srcdir)/'`../backend/umax_pp_low.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/umax_pp-umax_pp_low.Tpo $(DEPDIR)/umax_pp-umax_pp_low.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../backend/umax_pp_low.c' object='umax_pp-umax_pp_low.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(umax_pp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o umax_pp-umax_pp_low.o `test -f '../backend/umax_pp_low.c' || echo '$(srcdir)/'`../backend/umax_pp_low.c + +umax_pp-umax_pp_low.obj: ../backend/umax_pp_low.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(umax_pp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT umax_pp-umax_pp_low.obj -MD -MP -MF $(DEPDIR)/umax_pp-umax_pp_low.Tpo -c -o umax_pp-umax_pp_low.obj `if test -f '../backend/umax_pp_low.c'; then $(CYGPATH_W) '../backend/umax_pp_low.c'; else $(CYGPATH_W) '$(srcdir)/../backend/umax_pp_low.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/umax_pp-umax_pp_low.Tpo $(DEPDIR)/umax_pp-umax_pp_low.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../backend/umax_pp_low.c' object='umax_pp-umax_pp_low.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(umax_pp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o umax_pp-umax_pp_low.obj `if test -f '../backend/umax_pp_low.c'; then $(CYGPATH_W) '../backend/umax_pp_low.c'; else $(CYGPATH_W) '$(srcdir)/../backend/umax_pp_low.c'; fi` + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-am +all-am: Makefile $(PROGRAMS) $(SCRIPTS) +installdirs: + for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool \ + clean-noinstPROGRAMS mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-exec-am: install-binPROGRAMS install-binSCRIPTS + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool clean-noinstPROGRAMS ctags \ + distclean distclean-compile distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-binPROGRAMS \ + install-binSCRIPTS install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am \ + uninstall-binPROGRAMS uninstall-binSCRIPTS + + +# When build directory is not same as source directory then any +# subdirectories that targets use must be manually created (under +# the build directory that is). +dirs: + for subdir in $(HOTPLUG_DIRS); do \ + $(MKDIR_P) $$subdir || exit 1; \ + done 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 \ @@ -140,41 +669,6 @@ udev/libsane.rules: $(wildcard ${top_srcdir}/doc/descriptions/*.desc) $(wildcard 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 > $@ - - -depend: - makedepend $(INCLUDES) *.c 2>/dev/null - -clean: - rm -f *.lo *.o *.la - find . -type l -name \*-s.c | xargs rm -f - rm -rf .libs - rm -f hotplug/libsane.usermap hotplug-ng/libsane.db hotplug/libsane.rules - -distclean: clean - rm -f Makefile $(DESTINATIONS) mustek600iin-off sane-desc - rm -f $(DISTCLEAN_FILES) - for subdir in $(SUBDIRS) ; do \ - ( cd $$subdir ; rm -f $(DISTCLEAN_FILES) ); \ - done - -dist: distdir -distdir: $(DISTFILES) - 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} \ - || echo "ignoring: $$file" ; \ - 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: +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: