1169695Skan# 2169695Skan# Makefile 3169695Skan# Copyright (C) 1999, 2002, 2006 4169695Skan# Free Software Foundation 5169695Skan# 6169695Skan# This file is part of the libiberty library. 7169695Skan# Libiberty is free software; you can redistribute it and/or 8169695Skan# modify it under the terms of the GNU Library General Public 9169695Skan# License as published by the Free Software Foundation; either 10169695Skan# version 2 of the License, or (at your option) any later version. 11169695Skan# 12169695Skan# Libiberty is distributed in the hope that it will be useful, 13169695Skan# but WITHOUT ANY WARRANTY; without even the implied warranty of 14169695Skan# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15169695Skan# Library General Public License for more details. 16169695Skan# 17169695Skan# You should have received a copy of the GNU Library General Public 18169695Skan# License along with libiberty; see the file COPYING.LIB. If not, 19169695Skan# write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20169695Skan# Boston, MA 02110-1301, USA. 21169695Skan# 22169695Skan 23169695Skan# This file was written by Tom Tromey <tromey@cygnus.com>. 24169695Skan 25169695Skan# 26169695Skan# Makefile for libiberty/testsuite directory 27169695Skan# 28169695Skan 29169695Skansrcdir = @srcdir@ 30169695SkanVPATH = @srcdir@ 31169695Skan 32169695SkanSHELL = @SHELL@ 33169695Skan 34169695SkanCC = @CC@ 35169695SkanCFLAGS = @CFLAGS@ 36169695SkanLIBCFLAGS = $(CFLAGS) 37169695Skan 38169695Skan# Multilib support variables. 39169695SkanMULTISRCTOP = 40169695Skan 41169695SkanINCDIR=$(srcdir)/../$(MULTISRCTOP)../include 42169695Skan 43169695Skanall: 44169695Skan 45169695Skan# CHECK is set to "really_check" or the empty string by configure. 46169695Skancheck: @CHECK@ 47169695Skan 48169695Skanreally-check: check-cplus-dem check-pexecute check-expandargv 49169695Skan 50169695Skan# Run some tests of the demangler. 51169695Skancheck-cplus-dem: test-demangle $(srcdir)/demangle-expected 52169695Skan ./test-demangle < $(srcdir)/demangle-expected 53169695Skan 54169695Skan# Check the pexecute code. 55169695Skancheck-pexecute: test-pexecute 56169695Skan ./test-pexecute 57169695Skan 58169695Skan# Check the expandargv functionality 59169695Skancheck-expandargv: test-expandargv 60169695Skan ./test-expandargv 61169695Skan 62169695SkanTEST_COMPILE = $(CC) @DEFS@ $(LIBCFLAGS) -I.. -I$(INCDIR) $(HDEFINES) 63169695Skantest-demangle: $(srcdir)/test-demangle.c ../libiberty.a 64169695Skan $(TEST_COMPILE) -o test-demangle \ 65169695Skan $(srcdir)/test-demangle.c ../libiberty.a 66169695Skan 67169695Skantest-pexecute: $(srcdir)/test-pexecute.c ../libiberty.a 68169695Skan $(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-pexecute \ 69169695Skan $(srcdir)/test-pexecute.c ../libiberty.a 70169695Skan 71169695Skantest-expandargv: $(srcdir)/test-expandargv.c ../libiberty.a 72169695Skan $(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-expandargv \ 73169695Skan $(srcdir)/test-expandargv.c ../libiberty.a 74169695Skan 75169695Skan# Standard (either GNU or Cygnus) rules we don't use. 76169695Skanhtml install-html info install-info clean-info dvi pdf install etags tags installcheck: 77169695Skan 78169695Skan# The standard clean rules. 79169695Skanmostlyclean: 80169695Skan rm -f test-demangle 81169695Skan rm -f test-pexecute 82169695Skan rm -f test-expandargv 83169695Skanclean: mostlyclean 84169695Skandistclean: clean 85169695Skan rm -f Makefile 86169695Skanmaintainer-clean realclean: distclean 87169695Skan 88169695SkanMakefile: $(srcdir)/Makefile.in ../config.status 89169695Skan CONFIG_FILES=testsuite/Makefile CONFIG_HEADERS= \ 90169695Skan cd .. && $(SHELL) ./config.status 91