• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Makefile for the tests subdirectory of GNU libtextstyle.
2## Copyright (C) 2009-2019 Free Software Foundation, Inc.
3##
4## This program is free software: you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published by
6## the Free Software Foundation; either version 3 of the License, or
7## (at your option) any later version.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12## GNU General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with this program.  If not, see <https://www.gnu.org/licenses/>.
16
17## Process this file with automake to produce Makefile.in.
18
19# Rules generated and collected by gnulib-tool.
20include Makefile.gnulib
21
22AUTOMAKE_OPTIONS += 1.13 subdir-objects color-tests
23
24# Ensure that ../lib/config.h is seen before ../config.h.
25DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/lib -I$(top_builddir)
26
27
28# For debugging memory leaks and memory allocation bugs.
29# You should build with --disable-shared when using valgrind.
30CHECKER =
31#CHECKER = valgrind --tool=memcheck --suppressions=$(srcdir)/../lib/memchr.valgrind --num-callers=20 --leak-check=yes --leak-resolution=high --show-reachable=yes
32#CHECKER = valgrind --tool=massif --format=html --depth=10 --alloc-fn=xmalloc --alloc-fn=xrealloc --stacks=no
33CHECKER_END_OF_COMMENTS =
34
35# This must be the last thing that gets added to TESTS_ENVIRONMENT.
36TESTS_ENVIRONMENT += $(SHELL) $(top_srcdir)/build-aux/run-test '$(CHECKER)'
37
38
39# Remove .deps directories created by 'configure'.
40# I would say that this left-over is an Automake 1.16.1 bug.
41distclean-local:
42	rm -rf $(DEPDIR) */$(DEPDIR)
43