## Process this file with automake to produce Makefile.in
# Copyright (C) 2002-2026 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 <https://www.gnu.org/licenses/>.

AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
AM_CPPFLAGS = -I$(top_srcdir)/lib -I../lib -I$(top_srcdir)/gl -I../gl
AM_LDFLAGS = -no-install

LDADD = libutils.a ../lib/libidn.la ../gl/libgnu.la

EXTRA_DIST = standalone.sh

check_LIBRARIES = libutils.a
libutils_a_SOURCES = utils.h utils.c

$(tst_versions_OBJECTS): $(top_srcdir)/.version

ctests = tst_stringprep tst_punycode tst_idna tst_idna2 tst_idna3	\
	tst_idna4 tst_nfkc tst_pr29 tst_strerror tst_toutf8		\
	tst_symbols tst_badutf8 tst_utf8crash tst_toascii64oob		\
	tst_badutf8nfkc tst_versions tst_uninitialized
if TLD
ctests += tst_tld
endif

TESTS = $(ctests)
check_PROGRAMS = $(ctests)

LOG_COMPILER = $(VALGRIND)
