1# Copyright (C) 1992 - 2001 Free Software Foundation, Inc. 2# 3# This program is free software; you can redistribute it and/or modify 4# it under the terms of the GNU General Public License as published by 5# the Free Software Foundation; either version 1, or (at your option) 6# any later version. 7# 8# This program is distributed in the hope that it will be useful, 9# but WITHOUT ANY WARRANTY; without even the implied warranty of 10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11# GNU General Public License for more details. 12# 13# You should have received a copy of the GNU General Public License 14# along with this program; if not, write to the Free Software 15# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 16# 17 18AUTOMAKE_OPTIONS = dejagnu 19 20if USE_VALGRIND 21valgrind_cmd="VALGRIND=valgrind -q --error-exitcode=1 --leak-check=full" 22endif 23 24RUNTESTDEFAULTFLAGS = --srcdir $(srcdir) $(valgrind_cmd) 25 26SUBDIRS = ltrace.main ltrace.minor ltrace.torture 27 28EXTRA_DIST = \ 29 README \ 30 config/unix.exp \ 31 lib/compiler.c \ 32 lib/compiler.cc \ 33 lib/ltrace.exp \ 34 run-my-tests.sh 35 36BUILT_SOURCES = env.exp 37 38env.exp: Makefile 39 rm -f env.exp 40 echo set libelf_LD_LIBRARY_PATH '"$(libelf_LD_LIBRARY_PATH)"' >> $@ 41 echo set elfutils_LD_LIBRARY_PATH '"$(elfutils_LD_LIBRARY_PATH)"' >> $@ 42 echo set libunwind_LD_LIBRARY_PATH '"$(libunwind_LD_LIBRARY_PATH)"' >> $@ 43 44CLEANFILES = *.o *.so *.log *.sum *.ltrace site.bak setval.tmp site.exp env.exp 45 46MAINTAINERCLEANFILES = Makefile.in 47