diff options
Diffstat (limited to 'non-free/Makefile.am')
-rw-r--r-- | non-free/Makefile.am | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/non-free/Makefile.am b/non-free/Makefile.am new file mode 100644 index 0000000..ea243e4 --- /dev/null +++ b/non-free/Makefile.am @@ -0,0 +1,88 @@ +## Makefile.am -- an automake template for a Makefile.in file +## Copyright (C) 2019 SEIKO EPSON Corporation +## +## This file is part of the "Image Scan!" build infra-structure. +## +## The "Image Scan!" build infra-structure 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 of the License 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 FITNESS +## FOR A PARTICULAR PURPOSE or MERCHANTABILITY. +## See the GNU General Public License for more details. +## +## You should have received a verbatim copy of the GNU General Public +## License along with this program; if not, write to: +## +## Free Software Foundation, Inc. +## 59 Temple Place, Suite 330 +## Boston, MA 02111-1307 USA + +NON_FREE_INCLUDES = \ + esmod.hh +NON_FREE_FRONTEND_SOLIBS = \ + libesmod-i386.so \ + libesmod-i386.c2.so \ + libesmod-x86_64.c2.so +NON_FREE_LICENSES = \ + COPYING.EPSON.en.txt \ + COPYING.EPSON.ja.txt + +EXTRA_DIST = \ + checksums.md5 \ + $(NON_FREE_LICENSES) \ + $(NON_FREE_FRONTEND_SOLIBS) \ + $(NON_FREE_INCLUDES) + + +V_MAJOR = 2 +V_MINOR = 0 +V_REV = 0 + + +all: checksum $(NON_FREE_SOLIBS) + +checksum: $(srcdir)/checksums.md5 + @(cd $(<D); \ + if md5sum --status -c $(<F); then \ + : ; \ + else \ + echo "ERROR: inconsistent set of header file and libraries"; \ + exit 1; \ + fi) + +if ENABLE_FRONTEND + +NON_FREE_SOLIBS = libesmod.so + +$(NON_FREE_SOLIBS): + -rm -f $@ + case $(ISCAN_HOST_CPU) in \ + i?86) arch=i386;; \ + x86_64) arch=x86_64;; \ + *) echo "unsupported architecture" 1>&2; \ + exit 1;; \ + esac; \ + $(LN_S) $(srcdir)/libesmod-$${arch}$(PACKAGE_CXX_ABI).so $@ + +install-exec-local: $(NON_FREE_SOLIBS) + $(mkinstalldirs) $(DESTDIR)$(libdir) + @list="$(NON_FREE_SOLIBS)"; for nfl in $$list; do \ + echo installing $${nfl} in $(libdir)/$${nfl}...; \ + $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $(srcdir)/$${nfl} \ + $(DESTDIR)$(libdir)/$${nfl}.$(V_MAJOR).$(V_MINOR).$(V_REV); \ + (cd $(DESTDIR)$(libdir) \ + && ln -fs $${nfl}.$(V_MAJOR).$(V_MINOR).$(V_REV) $${nfl}.$(V_MAJOR)); \ + done + +uninstall-local: + @list="$(NON_FREE_SOLIBS)"; for nfl in $$list; do \ + rm -f $(DESTDIR)$(libdir)/$${nfl}.$(V_MAJOR); \ + rm -f $(DESTDIR)$(libdir)/$${nfl}.$(V_MAJOR).$(V_MINOR).$(V_REV); \ + done + +endif + +.PHONY: checksum $(NON_FREE_SOLIBS) |