blob: e878df53358f39b3680a1d0a1629b37350069e63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
## Process this file with automake to produce Makefile.in
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
#
# This file is part of LIBTASN1.
#
# 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 3 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
# 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, see <http://www.gnu.org/licenses/>.
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
EXTRA_DIST = windows/asn1-parser/asn1-parser.vcproj \
windows/asn1-parser/config.h windows/libtasn1.ncb \
windows/libtasn1.sln windows/libtasn1.suo \
windows/gnulib/getopt.h windows/gnulib/gnulib.vcproj \
windows/libtasn1/libtasn1.vcproj \
windows/test-parser/test-parser.vcproj \
windows/test-tree/test-tree.vcproj windows/libtasn14win.mk \
CONTRIBUTING.md cfg.mk maint.mk AUTHORS NEWS ChangeLog \
THANKS LICENSE
SUBDIRS = lib src tests
if ENABLE_DOC
SUBDIRS += doc examples
endif
include $(top_srcdir)/aminclude_static.am
ACLOCAL_AMFLAGS = -I m4 -I m4-gl
EXTRA_DIST += cfg.mk maint.mk .clcopying README.md
ABIDW_COMMON = --no-show-locs --no-corpus-path
ABIGNORE_FILE = "$(top_srcdir)/devel/libtasn1.abignore"
LIBGNUTLS_ABI_LAST_FILE = "$(top_srcdir)/devel/libtasn1-latest-$$(uname -m).abi"
abi-dump-versioned: lib/libtasn1.la
@echo "**************************************************"
@echo "Generating versioned ABI files of current libtasn1"
@echo "**************************************************"
@abidw lib/.libs/libtasn1.so $(ABIDW_COMMON) --suppressions $(ABIGNORE_FILE) --out-file "$(srcdir)/devel/libtasn1-$(VERSION)-$$(uname -m).abi"
abi-dump-latest: lib/libtasn1.la
@echo "****************************************"
@echo "Generating ABI files of current libtasn1"
@echo "****************************************"
@abidw lib/.libs/libtasn1.so $(ABIDW_COMMON) --suppressions $(ABIGNORE_FILE) --out-file $(LIBGNUTLS_ABI_LAST_FILE)
@rm -f "./devel/libtasn1-latest-$$(uname -m).tmp"
abi-check-latest: lib/libtasn1.la
@echo "Checking whether the latest ABI dump matches"
@abidiff --suppressions $(ABIGNORE_FILE) lib/.libs/libtasn1.so $(LIBGNUTLS_ABI_LAST_FILE) --hd2 "$(srcdir)/lib/includes/"; if test $$? != 0;then \
echo "*********************************************************"; \
echo "libtasn1 ABI has changed; use 'make files-update' "; \
echo "and use 'git diff' to check correctness before committing"; \
echo "*********************************************************"; \
false; \
fi
@echo "********************************"
@echo "Current release matches ABI dump"
@echo "********************************"
ABICHECK_COMMON = --no-added-syms
abi-check: lib/libtasn1.la
@for file in $$(echo $(srcdir)/devel/libtasn1-*-$$(uname -m).abi);do \
echo "Comparing libtasn1 with $$file"; \
abidiff $${file} lib/.libs/libtasn1.so $(ABICHECK_COMMON) --suppressions $(ABIGNORE_FILE) --hd2 "$(srcdir)/lib/includes//"; \
if test $$? != 0;then \
echo "****************************************************************************"; \
echo "ABI check failed; If intentional add suppression in devel/libtasn1.abignore"; \
echo "****************************************************************************"; \
false; \
fi; \
done
@echo "********************"
@echo "ABI checks completed"
@echo "********************"
files-update: abi-dump-latest
local-code-coverage-output: code-coverage-capture
cat "GNU Libtasn1-$(VERSION)-coverage/index.html"|grep headerCovTableEntry|grep '%'|head -1|sed 's/^.*>\([0-9]\+\.[0-9]\+\s*%\)<.*$$/ coverage lines: \1/' || true
clean-local: code-coverage-clean
distclean-local: code-coverage-dist-clean
dist-hook:
if test -d "$(top_srcdir)/devel";then \
$(MAKE) -C $(top_srcdir) abi-check-latest; \
make -C doc/ compare-makefile; \
fi
.PHONY: abi-check abi-dump-versioned abi-dump-latest
|