Home | History | Annotate | Download | only in testsuite
      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 
     18 AUTOMAKE_OPTIONS = dejagnu
     19 
     20 if USE_VALGRIND
     21 valgrind_cmd="VALGRIND=valgrind -q --error-exitcode=1 --leak-check=full"
     22 endif
     23 
     24 RUNTESTDEFAULTFLAGS = --srcdir $(srcdir) $(valgrind_cmd)
     25 
     26 SUBDIRS = ltrace.main ltrace.minor ltrace.torture
     27 
     28 EXTRA_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 
     36 BUILT_SOURCES = env.exp
     37 
     38 env.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 
     44 CLEANFILES = *.o *.so *.log *.sum *.ltrace site.bak setval.tmp site.exp env.exp
     45 
     46 MAINTAINERCLEANFILES = Makefile.in
     47