1## Makefile for the autoconf-lib-link/tests subdirectory of GNU gettext
2## Copyright (C) 1995-1997, 2001-2003 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 2, or (at your option)
7## 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, write to the Free Software
16## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18## Process this file with automake to produce Makefile.in.
19
20AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies
21MOSTLYCLEANFILES =
22
23TESTS = rpath-1a rpath-1b \
24	rpath-2aaa rpath-2aab rpath-2aac rpath-2aad \
25	rpath-2aba rpath-2abb rpath-2abc rpath-2abd \
26	rpath-2baa rpath-2bab rpath-2bac rpath-2bad \
27	rpath-2bba rpath-2bbb rpath-2bbc rpath-2bbd \
28	rpath-3aaa rpath-3aab rpath-3aac rpath-3aad \
29	           rpath-3aaf            rpath-3aah \
30	rpath-3aba rpath-3abb rpath-3abc rpath-3abd \
31	           rpath-3abf            rpath-3abh \
32	rpath-3baa rpath-3bab rpath-3bac rpath-3bad \
33	rpath-3bae rpath-3baf rpath-3bag rpath-3bah \
34	rpath-3bba rpath-3bbb rpath-3bbc rpath-3bbd \
35	rpath-3bbe rpath-3bbf rpath-3bbg rpath-3bbh
36
37EXTRA_DIST = $(TESTS) \
38	rpathx/configure.ac rpathx/aclocal.m4 rpathx/configure \
39	rpathx/Makefile.am rpathx/Makefile.in rpathx/rpathx.c \
40	rpathy/configure.ac rpathy/aclocal.m4 rpathy/configure \
41	rpathy/Makefile.am rpathy/Makefile.in rpathy/rpathy.c \
42	rpathz/configure.ac rpathz/aclocal.m4 rpathz/configure \
43	rpathz/Makefile.am rpathz/Makefile.in rpathz/rpathz.c \
44	rpathlx/configure.ac rpathlx/aclocal.m4 rpathlx/configure \
45	rpathlx/Makefile.am rpathlx/Makefile.in rpathlx/usex.c \
46	rpathly/configure.ac rpathly/aclocal.m4 rpathly/configure \
47	rpathly/Makefile.am rpathly/Makefile.in rpathly/usey.c \
48	rpathlyx/configure.ac rpathlyx/aclocal.m4 rpathlyx/configure \
49	rpathlyx/Makefile.am rpathlyx/Makefile.in rpathlyx/usey.c \
50	rpathlz/configure.ac rpathlz/aclocal.m4 rpathlz/configure \
51	rpathlz/Makefile.am rpathlz/Makefile.in rpathlz/usez.c \
52	rpathlzyx/configure.ac rpathlzyx/aclocal.m4 rpathlzyx/configure \
53	rpathlzyx/Makefile.am rpathlzyx/Makefile.in rpathlzyx/usez.c \
54	rpath-1 rpath-2_a rpath-2_b rpath-3_a rpath-3_b rpath.README \
55	rpath-3aae rpath-3aag rpath-3abe rpath-3abg \
56	rpathcfg.sh
57
58TESTS_ENVIRONMENT = top_srcdir=$(srcdir)/../.. srcdir=$(srcdir) \
59		    OBJEXT='@OBJEXT@' EXEEXT='@EXEEXT@' \
60		    LIBTOOL='@LIBTOOL@' \
61		    CC='@CC@' CFLAGS='@CFLAGS@' \
62		    CPPFLAGS='@CPPFLAGS@' LDFLAGS='@LDFLAGS@' \
63		    CONFIG_SHELL='$(SHELL)' \
64		    $(SHELL)
65
66# Help maintaining config.rpath.
67rpathcfg: rpathcfg.sh
68	top_srcdir=$(srcdir)/../.. srcdir=$(srcdir) \
69	CONFIG_SHELL='$(SHELL)' \
70	CC='@CC@' GCC='@GCC@' \
71	LDFLAGS='@LDFLAGS@' \
72	LD='@LD@' with_gnu_ld='@with_gnu_ld@' \
73	host='@host@' \
74	$(SHELL) $(srcdir)/rpathcfg.sh > rpathcfg 2> rpathcfg.log
75MOSTLYCLEANFILES += rpathcfg rpathcfg.log
76
77# Clean up the intermediate directory created by running the tests.
78distclean-local:
79	rm -rf tstdir
80