-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
76 lines (65 loc) · 2.73 KB
/
Makefile.am
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
## Process this file with automake to produce Makefile.in
# Copyright (C) 2002-2016 Simon Josefsson
#
# This file is part of GNU Libidn.
#
# 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/>.
SUBDIRS = gl lib/gl lib po src
if ENABLE_DOC
SUBDIRS += doc
endif
SUBDIRS += gltests lib/gltests fuzz tests examples
if JAVA
SUBDIRS += java
endif
if CSHARP
SUBDIRS += csharp
endif
EXTRA_DIST = cfg.mk maint.mk .clcopying
EXTRA_DIST += COPYING.LESSERv2 COPYING.LESSERv3 COPYINGv2 COPYINGv3
ACLOCAL_AMFLAGS = -I m4 -I gl/m4 -I lib/gl/m4
DISTCHECK_CONFIGURE_FLAGS = --enable-doc --enable-gtk-doc
EXTRA_DIST += FAQ libc/README libc/getaddrinfo-idn.txt libc/example.c \
contrib/README contrib/idn-python/README \
contrib/idn-python/Makefile contrib/idn-python/idn.c \
contrib/idn-python/test.py contrib/web/idn.php \
contrib/java/README contrib/java/autogen.sh \
contrib/java/configure.ac contrib/java/Makefile.am \
contrib/java/ExampleIDNA.java contrib/java/IDNA.java \
contrib/java/IDNA.c contrib/doxygen/Doxyfile.in \
contrib/doxygen/Doxyfile.orig contrib/doxygen/gdoc2doxygen
# Visual Studio project files.
EXTRA_DIST += windows/libidn.sln windows/libidn.vcproj \
windows/include/unistd.h windows/include/idn-int.h \
windows/include/stdbool.h windows/include/ac-stdint.h \
windows/include/config.h windows/libidn4win.mk
EXTRA_DIST += HACKING
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libidn.pc
COVERAGE_CCOPTS ?= "-g --coverage"
COVERAGE_OUT ?= doc/coverage
fuzz-coverage:
$(MAKE) $(AM_MAKEFLAGS) clean
lcov --directory . --zerocounters
$(MAKE) $(AM_MAKEFLAGS) CFLAGS=$(COVERAGE_CCOPTS) CXXFLAGS=$(COVERAGE_CCOPTS)
$(MAKE) -C fuzz $(AM_MAKEFLAGS) CFLAGS=$(COVERAGE_CCOPTS) CXXFLAGS=$(COVERAGE_CCOPTS) check
mkdir -p $(COVERAGE_OUT)
lcov --directory . --output-file $(COVERAGE_OUT)/$(PACKAGE).info --capture
lcov --remove $(COVERAGE_OUT)/$(PACKAGE).info '*/lib/gl/*' -o $(COVERAGE_OUT)/$(PACKAGE).info
genhtml --output-directory $(COVERAGE_OUT) \
$(COVERAGE_OUT)/$(PACKAGE).info \
--highlight --frames --legend \
--title "$(PACKAGE_NAME)"
@echo
@echo "View fuzz coverage report with 'xdg-open $(COVERAGE_OUT)/index.html'"