File: Makefile.am

package info (click to toggle)
libidn2 2.3.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,768 kB
  • sloc: ansic: 6,049; sh: 1,480; makefile: 499; xml: 50; perl: 15
file content (61 lines) | stat: -rw-r--r-- 2,198 bytes parent folder | download | duplicates (2)
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
# Copyright (C) 2011-2025 Simon Josefsson

# 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/>.

AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib -I$(srcdir) -I$(top_builddir)
AM_CPPFLAGS += -I$(top_builddir)/gl -I$(top_srcdir)/gl
AM_CPPFLAGS += -DSRCDIR=\"$(srcdir)\"
AM_CPPFLAGS += -I$(top_srcdir)/unistring/ -I$(top_builddir)/unistring/
AM_CFLAGS = $(WERROR_CFLAGS) $(WERROR_TESTS_CFLAGS) $(WARN_CFLAGS)
AM_LDFLAGS = -no-install

AM_VALGRINDFLAGS = --suppressions=$(top_srcdir)/unistring/libunistring.valgrind

LDADD = ../lib/libidn2.la
LDADD += ../unistring/libunistring.la $(LTLIBUNISTRING)
LDADD += ../gl/libgnu.la

EXTRA_DIST = standalone.sh

ctests = test-version test-strerror test-locale test-tounicode
ctests += test-punycode test-compat-punycode
ctests += test-IdnaTest-inc test-IdnaTest-txt test-lookup test-register
if TEST_GLIBC
ctests += test-glibc
endif
check_PROGRAMS = $(ctests)

dist_check_SCRIPTS = test-idn2.sh

TESTS = $(ctests) $(dist_check_SCRIPTS)
TEST_EXTENSIONS = .sh
LOG_COMPILER = $(LOG_VALGRIND)
SH_LOG_COMPILER= $(SHELL) -x

AM_TESTS_ENVIRONMENT = EXEEXT="$(EXEEXT)" LOG_VALGRIND="$(LOG_VALGRIND)" LIBTOOL="$(LIBTOOL)"

IDNA_TXT = IdnaTest.txt
IDNA_INC = IdnaTest.inc

BUILT_SOURCES = $(IDNA_TXT) $(IDNA_INC)
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST += gen-utc-test.pl $(IDNA_TXT) $(IDNA_INC)

$(IDNA_TXT):
	rm -f $(IDNA_TXT)
	wget https://www.unicode.org/Public/idna/10.0.0/IdnaTest.txt
	echo "35f344b624f9978ee5c484ab0182038e92a9f41c IdnaTest.txt" | sha1sum -c -

$(IDNA_INC): $(IDNA_TXT) $(srcdir)/gen-utc-test.pl
	$(srcdir)/gen-utc-test.pl < $< > $@