Fix CVE-2017-6891 in minitasn1 code
[platform/upstream/gnutls.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2000-2012 Free Software Foundation, Inc.
3 #
4 # Author: Nikos Mavrogiannopoulos
5 #
6 # This file is part of GnuTLS.
7 #
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # This file is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this file; if not, write to the Free Software Foundation,
20 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
22 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-valgrind-tests
23
24 SUBDIRS = gl lib
25
26 if ENABLE_DANE
27 SUBDIRS += libdane
28 endif
29
30 SUBDIRS += po src
31 if ENABLE_DOC
32 SUBDIRS += doc
33 endif
34 if ENABLE_TESTS
35 SUBDIRS += tests
36 endif
37
38 if HAVE_GUILE
39 SUBDIRS += guile
40 endif
41
42 ACLOCAL_AMFLAGS = -I m4 -I gl/m4 -I src/libopts/m4 -I src/gl/m4
43
44 EXTRA_DIST = cfg.mk maint.mk .clcopying
45
46 dist-hook: 
47         make -C doc/ compare-makefile
48         make -C doc/ compare-exported
49         make -C doc/manpages compare-makefile
50         @echo "*****************************************************************"
51         @echo "Checking symbol changes. If the next step fails, verify that the"
52         @echo "symbols added or removed are correct and copy symbols.last.tmp as"
53         @echo "symbols.last"
54         @echo "*****************************************************************"
55         objdump -T $(srcdir)/lib/.libs/libgnutls.so.28  | grep -v ' \*UND\*' | awk '{print $$7 "@" $$6;}' | grep -v GNUTLS_FIPS140 | grep -v GNUTLS_PRIVATE | sort -u >symbols.last.tmp
56         diff -u symbols.last symbols.last.tmp >/dev/null 2>&1
57         rm -f symbols.last.tmp
58         rm -f ChangeLog
59         make ChangeLog
60         cp -f ChangeLog $(distdir)/
61         $(SED) 's/\@VERSION\@/$(VERSION)/g' -i $(distdir)/src/args-std.def
62         $(SED) 's/\@YEAR\@/$(YEAR)/g' -i $(distdir)/src/args-std.def
63         $(SED) 's/\@PACKAGE_BUGREPORT\@/$(PACKAGE_BUGREPORT)/g' -i $(distdir)/src/args-std.def
64         cd $(distdir)/src/ && for i in *.def;do \
65                 if test x"$$i" = x"args-std.def";then  continue; fi; \
66                 autogen $$i; \
67                 cp $$i $$i.tmp; \
68                 $(SED) -i 's/@subheading \(.*\)/@*\n@var{\1}\n@*/' $$i.tmp; \
69                 autogen -Tagman-cmd.tpl $$i.tmp; \
70                 rm -f $$i.tmp; \
71                 mv -f *.1 ../doc/manpages/; \
72         done
73         cd $(distdir)/src/ && for i in *-args.c *-args.h;do \
74                 mv $$i $$i.bak; \
75         done
76         @echo "*****************************************************************"
77         @echo "Checking whether included libopts matches the system's. If the"
78         @echo "check fails upgrade the included libopts."
79         @echo "*****************************************************************"
80         test "`autoopts-config libsrc|cut -d '-' -f 2|sed 's/.tar.gz//'`" = "`cat src/libopts/autoopts/options.h |grep OPTIONS_VERSION_STRING|cut -d '"' -f 2|sed 's/:/./g'`"
81         touch $(distdir)/doc/*.html $(distdir)/doc/*.pdf $(distdir)/doc/*.info