|
Packit Service |
4684c1 |
## Process this file with automake to produce Makefile.in
|
|
Packit Service |
4684c1 |
# Copyright (C) 2000-2012 Free Software Foundation, Inc.
|
|
Packit Service |
4684c1 |
#
|
|
Packit Service |
4684c1 |
# Author: Nikos Mavrogiannopoulos
|
|
Packit Service |
4684c1 |
#
|
|
Packit Service |
4684c1 |
# This file is part of GnuTLS.
|
|
Packit Service |
4684c1 |
#
|
|
Packit Service |
4684c1 |
# This file is free software; you can redistribute it and/or modify it
|
|
Packit Service |
4684c1 |
# under the terms of the GNU General Public License as published by
|
|
Packit Service |
4684c1 |
# the Free Software Foundation; either version 3 of the License, or
|
|
Packit Service |
4684c1 |
# (at your option) any later version.
|
|
Packit Service |
4684c1 |
#
|
|
Packit Service |
4684c1 |
# This file is distributed in the hope that it will be useful, but
|
|
Packit Service |
4684c1 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
4684c1 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
4684c1 |
# General Public License for more details.
|
|
Packit Service |
4684c1 |
#
|
|
Packit Service |
4684c1 |
# You should have received a copy of the GNU General Public License
|
|
Packit Service |
4684c1 |
# along with this file; if not, write to the Free Software Foundation,
|
|
Packit Service |
4684c1 |
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
DISTCHECK_CONFIGURE_FLAGS = \
|
|
Packit Service |
4684c1 |
--enable-doc \
|
|
Packit Service |
4684c1 |
--enable-gtk-doc \
|
|
Packit Service |
4684c1 |
--disable-valgrind-tests \
|
|
Packit Service |
4684c1 |
--with-guile-site-dir='$$(datarootdir)/guile/site/$$(GUILE_EFFECTIVE_VERSION)' \
|
|
Packit Service |
4684c1 |
--with-guile-site-ccache-dir='$$(libdir)/guile/$$(GUILE_EFFECTIVE_VERSION)/site-ccache' \
|
|
Packit Service |
4684c1 |
--with-guile-extension-dir='$$(libdir)/guile/$$(GUILE_EFFECTIVE_VERSION)/extensions' \
|
|
Packit Service |
4684c1 |
AUTOGEN=false
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
SUBDIRS = gl lib extra
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
if ENABLE_DANE
|
|
Packit Service |
4684c1 |
SUBDIRS += libdane
|
|
Packit Service |
4684c1 |
endif
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
SUBDIRS += po
|
|
Packit Service |
4684c1 |
if ENABLE_TOOLS
|
|
Packit Service |
4684c1 |
SUBDIRS += src/gl src
|
|
Packit Service |
4684c1 |
else
|
|
Packit Service |
4684c1 |
SUBDIRS += src/gl
|
|
Packit Service |
4684c1 |
endif
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
if ENABLE_TESTS
|
|
Packit Service |
4684c1 |
SUBDIRS += tests fuzz
|
|
Packit Service |
4684c1 |
endif
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
if HAVE_GUILE
|
|
Packit Service |
4684c1 |
SUBDIRS += guile
|
|
Packit Service |
4684c1 |
endif
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
if ENABLE_MANPAGES
|
|
Packit Service |
4684c1 |
SUBDIRS += doc/manpages
|
|
Packit Service |
4684c1 |
endif
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
if ENABLE_DOC
|
|
Packit Service |
4684c1 |
SUBDIRS += doc
|
|
Packit Service |
4684c1 |
endif
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
ACLOCAL_AMFLAGS = -I m4 -I src/libopts/m4 -I src/gl/m4 -I lib/unistring/m4 --install
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
EXTRA_DIST = cfg.mk maint.mk CONTRIBUTING.md README.md LICENSE AUTHORS NEWS \
|
|
Packit Service |
4684c1 |
ChangeLog THANKS INSTALL.md RELEASES.md
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
DISTCLEANFILES = AUTHORS
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
AUTHORS:
|
|
Packit Service |
4684c1 |
@echo -e "The authors list is autogenerated from the git history; sorted by number of commits\n" >AUTHORS
|
|
Packit Service |
4684c1 |
@git shortlog -sen| cut -f 2 | sed 's/@/ at /g' >> AUTHORS
|
|
Packit Service |
4684c1 |
@echo -e "\n\nThe translators list is autogenerated from po file history\n" >>AUTHORS
|
|
Packit Service |
4684c1 |
@sed -n 's/.*Last-Translator: *\(.*\) *<.*/\1/p' po/*.po | sort -u >>AUTHORS
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
pic-check:
|
|
Packit Service |
4684c1 |
@echo "Checking for position dependent code"
|
|
Packit Service |
4684c1 |
readelf -d $(builddir)/lib/.libs/libgnutls.so|grep TEXTREL; if test $$? = 0;then \
|
|
Packit Service |
4684c1 |
eu-findtextrel $(builddir)/lib/.libs/libgnutls.so; \
|
|
Packit Service |
4684c1 |
false; \
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
ABIDW_COMMON = --no-show-locs --no-corpus-path
|
|
Packit Service |
4684c1 |
ABIGNORE_FILE = "$(top_srcdir)/devel/libgnutls.abignore"
|
|
Packit Service |
4684c1 |
SYMBOLS_LAST_FILE = "$(top_srcdir)/devel/symbols.last"
|
|
Packit Service |
4684c1 |
LIBGNUTLS_ABI_LAST_FILE = "$(top_srcdir)/devel/libgnutls-latest-$$(uname -m).abi"
|
|
Packit Service |
4684c1 |
LIBDANE_ABI_LAST_FILE = "$(top_srcdir)/devel/libdane-latest-$$(uname -m).abi"
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
abi-dump-versioned: lib/libgnutls.la libdane/libgnutls-dane.la
|
|
Packit Service |
4684c1 |
@echo "**************************************************************************"
|
|
Packit Service |
4684c1 |
@echo "Generating versioned ABI files of current gnutls and gnutls-dane libraries"
|
|
Packit Service |
4684c1 |
@echo "**************************************************************************"
|
|
Packit Service |
4684c1 |
@abidw lib/.libs/libgnutls.so $(ABIDW_COMMON) --suppressions $(ABIGNORE_FILE) --out-file "$(srcdir)/devel/libgnutls-$(VERSION)-$$(uname -m).abi"
|
|
Packit Service |
4684c1 |
@abidw libdane/.libs/libgnutls-dane.so $(ABIDW_COMMON) --out-file "$(srcdir)/devel/libdane-$(VERSION)-$$(uname -m).abi"
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
abi-dump-latest: lib/libgnutls.la libdane/libgnutls-dane.la
|
|
Packit Service |
4684c1 |
@echo "****************************************************************"
|
|
Packit Service |
4684c1 |
@echo "Generating ABI files of current gnutls and gnutls-dane libraries"
|
|
Packit Service |
4684c1 |
@echo "****************************************************************"
|
|
Packit Service |
4684c1 |
@abidw lib/.libs/libgnutls.so $(ABIDW_COMMON) --suppressions $(ABIGNORE_FILE) --out-file $(LIBGNUTLS_ABI_LAST_FILE)
|
|
Packit Service |
4684c1 |
@abidw libdane/.libs/libgnutls-dane.so $(ABIDW_COMMON) --out-file $(LIBDANE_ABI_LAST_FILE)
|
|
Packit Service |
4684c1 |
@rm -f "./devel/libgnutls-latest-$$(uname -m).tmp"
|
|
Packit Service |
4684c1 |
@rm -f "./devel/libdane-latest-$$(uname -m).tmp"
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
abi-check-latest: lib/libgnutls.la libdane/libgnutls-dane.la
|
|
Packit Service |
4684c1 |
@echo "Checking whether the latest ABI dump matches"
|
|
Packit Service |
4684c1 |
@abidiff --suppressions $(ABIGNORE_FILE) lib/.libs/libgnutls.so $(LIBGNUTLS_ABI_LAST_FILE) --hd2 "$(srcdir)/lib/includes/gnutls/" --hd2 $(builddir)/lib/includes/gnutls/ ; if test $$? != 0;then \
|
|
Packit Service |
4684c1 |
echo "*********************************************************"; \
|
|
Packit Service |
4684c1 |
echo "libgnutls ABI has changed; use 'make files-update' "; \
|
|
Packit Service |
4684c1 |
echo "and use 'git diff' to check correctness before committing"; \
|
|
Packit Service |
4684c1 |
echo "*********************************************************"; \
|
|
Packit Service |
4684c1 |
false; \
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
@abidiff libdane/.libs/libgnutls-dane.so $(LIBDANE_ABI_LAST_FILE) --hd2 "$(srcdir)/libdane/includes/gnutls/" --hd2 $(builddir)/lib/includes/gnutls/; if test $$? != 0;then \
|
|
Packit Service |
4684c1 |
echo "*********************************************************"; \
|
|
Packit Service |
4684c1 |
echo "libgnutls-dane ABI has changed; use 'make files-update' "; \
|
|
Packit Service |
4684c1 |
echo "and use 'git diff' to check correctness before committing"; \
|
|
Packit Service |
4684c1 |
echo "*********************************************************"; \
|
|
Packit Service |
4684c1 |
false; \
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
@echo "********************************"
|
|
Packit Service |
4684c1 |
@echo "Current release matches ABI dump"
|
|
Packit Service |
4684c1 |
@echo "********************************"
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
ABICHECK_COMMON = --no-added-syms
|
|
Packit Service |
4684c1 |
abi-check: lib/libgnutls.la libdane/libgnutls-dane.la
|
|
Packit Service |
4684c1 |
@for file in $$(echo $(srcdir)/devel/libgnutls-*-$$(uname -m).abi);do \
|
|
Packit Service |
4684c1 |
echo "Comparing libgnutls with $$file"; \
|
|
Packit Service |
4684c1 |
abidiff $${file} lib/.libs/libgnutls.so $(ABICHECK_COMMON) --suppressions $(ABIGNORE_FILE) --hd2 "$(srcdir)/lib/includes/gnutls/" --hd2 $(builddir)/lib/includes/gnutls/; \
|
|
Packit Service |
4684c1 |
if test $$? != 0;then \
|
|
Packit Service |
4684c1 |
echo "****************************************************************************"; \
|
|
Packit Service |
4684c1 |
echo "ABI check failed; If intentional add suppression in devel/libgnutls.abignore"; \
|
|
Packit Service |
4684c1 |
echo "****************************************************************************"; \
|
|
Packit Service |
4684c1 |
exit 1; \
|
|
Packit Service |
4684c1 |
fi; \
|
|
Packit Service |
4684c1 |
done
|
|
Packit Service |
4684c1 |
@for file in $$(echo $(srcdir)/devel/libdane-*-$$(uname -m).abi);do \
|
|
Packit Service |
4684c1 |
echo "Comparing libgnutls-dane with $$file"; \
|
|
Packit Service |
4684c1 |
abidiff $${file} libdane/.libs/libgnutls-dane.so $(ABICHECK_COMMON) --hd2 "$(srcdir)/libdane/includes/gnutls/" --hd2 $(builddir)/lib/includes/gnutls/; \
|
|
Packit Service |
4684c1 |
if test $$? != 0;then \
|
|
Packit Service |
4684c1 |
echo "**********************************************"; \
|
|
Packit Service |
4684c1 |
echo "ABI check failed; If intentional add a "; \
|
|
Packit Service |
4684c1 |
echo "libabigail suppression file for libgnutls-dane"; \
|
|
Packit Service |
4684c1 |
echo "**********************************************"; \
|
|
Packit Service |
4684c1 |
exit 1; \
|
|
Packit Service |
4684c1 |
fi; \
|
|
Packit Service |
4684c1 |
done
|
|
Packit Service |
4684c1 |
@echo "********************"
|
|
Packit Service |
4684c1 |
@echo "ABI checks completed"
|
|
Packit Service |
4684c1 |
@echo "********************"
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
symbol-check: lib/libgnutls.la
|
|
Packit Service |
4684c1 |
@objdump -T $(builddir)/lib/.libs/libgnutls.so | grep -v ' \*UND\*' | awk '{print $$7 "@" $$6;}' | grep -v GNUTLS_FIPS140 | grep -v GNUTLS_PRIVATE | grep -v '^@' | sort -u >symbols.last.tmp
|
|
Packit Service |
4684c1 |
@diff -u $(SYMBOLS_LAST_FILE) symbols.last.tmp >/dev/null 2>&1; if test $$? != 0;then \
|
|
Packit Service |
4684c1 |
diff -u $(SYMBOLS_LAST_FILE) symbols.last.tmp | grep -v '\-\-\-' >symbols.diff.tmp 2>&1; \
|
|
Packit Service |
4684c1 |
if grep -e '^-' symbols.diff.tmp;then \
|
|
Packit Service |
4684c1 |
echo "*******************************************"; \
|
|
Packit Service |
4684c1 |
echo "Symbols were removed from the library. "; \
|
|
Packit Service |
4684c1 |
echo "Check symbols.diff.tmp for more information"; \
|
|
Packit Service |
4684c1 |
echo "*******************************************"; \
|
|
Packit Service |
4684c1 |
false; \
|
|
Packit Service |
4684c1 |
else \
|
|
Packit Service |
4684c1 |
echo "*************************************************************"; \
|
|
Packit Service |
4684c1 |
echo "Symbols were added in the library; use 'make files-update' "; \
|
|
Packit Service |
4684c1 |
echo "and use 'git diff' to check correctness before committing "; \
|
|
Packit Service |
4684c1 |
echo "*************************************************************"; \
|
|
Packit Service |
4684c1 |
false; \
|
|
Packit Service |
4684c1 |
fi \
|
|
Packit Service |
4684c1 |
else \
|
|
Packit Service |
4684c1 |
test -f symbols.diff.tmp && cat symbols.diff.tmp; \
|
|
Packit Service |
4684c1 |
echo "**************************"; \
|
|
Packit Service |
4684c1 |
echo "No symbol changes detected"; \
|
|
Packit Service |
4684c1 |
echo "**************************"; \
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
rm -f symbols.last.tmp symbols.diff.tmp
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
include $(top_srcdir)/aminclude_static.am
|
|
Packit Service |
4684c1 |
clean-local: code-coverage-clean
|
|
Packit Service |
4684c1 |
distclean-local: code-coverage-dist-clean
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
local-code-coverage-output: code-coverage-capture
|
|
Packit Service |
4684c1 |
cat GnuTLS-$(VERSION)-coverage/index.html|grep headerCovTableEntry|grep '%'|head -1|sed 's/^.*>\([0-9]\+\.[0-9]\+\s*%\)<.*$$/ coverage lines: \1/' || true
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
libopts-check:
|
|
Packit Service |
4684c1 |
@echo "*****************************************************************"
|
|
Packit Service |
4684c1 |
@echo "Checking whether included libopts matches the system's. If the"
|
|
Packit Service |
4684c1 |
@echo "check fails upgrade the included libopts."
|
|
Packit Service |
4684c1 |
@echo "*****************************************************************"
|
|
Packit Service |
4684c1 |
test "`autoopts-config libsrc|awk -F '-' '{print $$NF}'|sed 's/.tar.gz//'`" = "`cat $(srcdir)/src/libopts/autoopts/options.h |grep OPTIONS_VERSION_STRING|cut -d '"' -f 2|sed 's/:/./g'`"
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
files-update: libopts-check abi-dump-latest
|
|
Packit Service |
4684c1 |
$(MAKE) -C doc/ compare-makefile || mv doc/tmp-compare-makefile $(srcdir)/doc/Makefile.am
|
|
Packit Service |
4684c1 |
$(MAKE) -C doc/manpages compare-makefile || mv doc/manpages/tmp-compare-makefile $(srcdir)/doc/manpages/Makefile.am
|
|
Packit Service |
4684c1 |
$(MAKE) -C . symbol-check || mv symbols.last.tmp $(SYMBOLS_LAST_FILE)
|
|
Packit Service |
4684c1 |
@echo "******************************************************************************************"
|
|
Packit Service |
4684c1 |
@echo "updated auto-generated files; please use git diff to verify the correctness of the changes"
|
|
Packit Service |
4684c1 |
@echo "******************************************************************************************"
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
dist-hook: libopts-check
|
|
Packit Service |
4684c1 |
$(PKG_CONFIG) --atleast-version=2.2.0 guile-2.2
|
|
Packit Service |
4684c1 |
if test -d "$(top_srcdir)/devel";then \
|
|
Packit Service |
4684c1 |
$(MAKE) -C $(top_srcdir) symbol-check && \
|
|
Packit Service |
4684c1 |
$(MAKE) -C $(top_srcdir) abi-check-latest; \
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
$(MAKE) -C doc/ compare-makefile
|
|
Packit Service |
4684c1 |
$(MAKE) -C doc/ compare-exported
|
|
Packit Service |
4684c1 |
$(MAKE) -C doc/manpages compare-makefile
|
|
Packit Service |
4684c1 |
$(MAKE) ChangeLog
|
|
Packit Service |
4684c1 |
mv ChangeLog $(distdir)
|
|
Packit Service |
4684c1 |
touch -c $(distdir)/doc/*.html $(distdir)/doc/*.pdf $(distdir)/doc/*.info
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
.PHONY: abi-check abi-dump-versioned abi-dump-latest pic-check symbol-check local-code-coverage-output files-update libopts-check AUTHORS
|