Home | History | Annotate | Line # | Download | only in testsuite
Makefile.in revision 1.1.1.5
      1      1.1  christos #
      2      1.1  christos # Makefile
      3  1.1.1.5  christos #   Copyright (C) 1999-2019 Free Software Foundation, Inc.
      4      1.1  christos #
      5      1.1  christos # This file is part of the libiberty library.
      6      1.1  christos # Libiberty is free software; you can redistribute it and/or
      7      1.1  christos # modify it under the terms of the GNU Library General Public
      8      1.1  christos # License as published by the Free Software Foundation; either
      9      1.1  christos # version 2 of the License, or (at your option) any later version.
     10      1.1  christos #
     11      1.1  christos # Libiberty is distributed in the hope that it will be useful,
     12      1.1  christos # but WITHOUT ANY WARRANTY; without even the implied warranty of
     13      1.1  christos # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     14      1.1  christos # Library General Public License for more details.
     15      1.1  christos #
     16      1.1  christos # You should have received a copy of the GNU Library General Public
     17      1.1  christos # License along with libiberty; see the file COPYING.LIB.  If not,
     18      1.1  christos # write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
     19      1.1  christos # Boston, MA 02110-1301, USA.
     20      1.1  christos #
     21      1.1  christos 
     22      1.1  christos # This file was written by Tom Tromey <tromey (at] cygnus.com>.
     23      1.1  christos 
     24      1.1  christos #
     25      1.1  christos # Makefile for libiberty/testsuite directory
     26      1.1  christos #
     27      1.1  christos 
     28      1.1  christos srcdir = @srcdir@
     29      1.1  christos VPATH = @srcdir@
     30      1.1  christos 
     31      1.1  christos SHELL = @SHELL@
     32      1.1  christos 
     33      1.1  christos CC = @CC@
     34      1.1  christos CFLAGS = @CFLAGS@
     35  1.1.1.3  christos LIBCFLAGS = $(CFLAGS) $(LDFLAGS)
     36      1.1  christos 
     37      1.1  christos # Multilib support variables.
     38      1.1  christos MULTISRCTOP =
     39      1.1  christos 
     40      1.1  christos INCDIR=$(srcdir)/../$(MULTISRCTOP)../include
     41      1.1  christos 
     42      1.1  christos all:
     43      1.1  christos 
     44      1.1  christos # CHECK is set to "really_check" or the empty string by configure.
     45      1.1  christos check: @CHECK@
     46      1.1  christos 
     47  1.1.1.4  christos really-check: check-cplus-dem check-d-demangle check-rust-demangle \
     48  1.1.1.4  christos 		check-pexecute check-expandargv check-strtol
     49      1.1  christos 
     50      1.1  christos # Run some tests of the demangler.
     51      1.1  christos check-cplus-dem: test-demangle $(srcdir)/demangle-expected
     52      1.1  christos 	./test-demangle < $(srcdir)/demangle-expected
     53      1.1  christos 
     54  1.1.1.2  christos check-d-demangle: test-demangle $(srcdir)/d-demangle-expected
     55  1.1.1.2  christos 	./test-demangle < $(srcdir)/d-demangle-expected
     56  1.1.1.2  christos 
     57  1.1.1.4  christos check-rust-demangle: test-demangle $(srcdir)/rust-demangle-expected
     58  1.1.1.4  christos 	./test-demangle < $(srcdir)/rust-demangle-expected
     59  1.1.1.4  christos 
     60      1.1  christos # Check the pexecute code.
     61      1.1  christos check-pexecute: test-pexecute
     62      1.1  christos 	./test-pexecute
     63      1.1  christos 
     64      1.1  christos # Check the expandargv functionality
     65      1.1  christos check-expandargv: test-expandargv
     66      1.1  christos 	./test-expandargv
     67      1.1  christos 
     68  1.1.1.2  christos # Check the strtol functionality
     69  1.1.1.2  christos check-strtol: test-strtol
     70  1.1.1.2  christos 	./test-strtol
     71  1.1.1.2  christos 
     72  1.1.1.2  christos # Run the demangler fuzzer
     73  1.1.1.2  christos fuzz-demangler: demangler-fuzzer
     74  1.1.1.2  christos 	./demangler-fuzzer
     75  1.1.1.2  christos 
     76      1.1  christos TEST_COMPILE = $(CC) @DEFS@ $(LIBCFLAGS) -I.. -I$(INCDIR) $(HDEFINES)
     77      1.1  christos test-demangle: $(srcdir)/test-demangle.c ../libiberty.a
     78      1.1  christos 	$(TEST_COMPILE) -o test-demangle \
     79      1.1  christos 		$(srcdir)/test-demangle.c ../libiberty.a
     80      1.1  christos 
     81      1.1  christos test-pexecute: $(srcdir)/test-pexecute.c ../libiberty.a
     82      1.1  christos 	$(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-pexecute \
     83      1.1  christos 		$(srcdir)/test-pexecute.c ../libiberty.a
     84      1.1  christos 
     85      1.1  christos test-expandargv: $(srcdir)/test-expandargv.c ../libiberty.a
     86      1.1  christos 	$(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-expandargv \
     87      1.1  christos 		$(srcdir)/test-expandargv.c ../libiberty.a
     88      1.1  christos 
     89  1.1.1.2  christos test-strtol: $(srcdir)/test-strtol.c ../libiberty.a
     90  1.1.1.2  christos 	$(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-strtol \
     91  1.1.1.2  christos 		$(srcdir)/test-strtol.c ../libiberty.a
     92  1.1.1.2  christos 
     93  1.1.1.2  christos demangler-fuzzer: $(srcdir)/demangler-fuzzer.c ../libiberty.a
     94  1.1.1.2  christos 	$(TEST_COMPILE) -o demangler-fuzzer \
     95  1.1.1.2  christos 		$(srcdir)/demangler-fuzzer.c ../libiberty.a
     96  1.1.1.2  christos 
     97      1.1  christos # Standard (either GNU or Cygnus) rules we don't use.
     98      1.1  christos html install-html info install-info clean-info dvi pdf install-pdf \
     99      1.1  christos install etags tags installcheck:
    100      1.1  christos 
    101      1.1  christos # The standard clean rules.
    102      1.1  christos mostlyclean:
    103      1.1  christos 	rm -f test-demangle
    104      1.1  christos 	rm -f test-pexecute
    105      1.1  christos 	rm -f test-expandargv
    106  1.1.1.2  christos 	rm -f test-strtol
    107  1.1.1.2  christos 	rm -f demangler-fuzzer
    108      1.1  christos 	rm -f core
    109      1.1  christos clean: mostlyclean
    110      1.1  christos distclean: clean
    111      1.1  christos 	rm -f Makefile
    112      1.1  christos maintainer-clean realclean: distclean
    113      1.1  christos 
    114      1.1  christos Makefile: $(srcdir)/Makefile.in ../config.status
    115      1.1  christos 	CONFIG_FILES=testsuite/Makefile CONFIG_HEADERS= \
    116      1.1  christos 	  cd .. && $(SHELL) ./config.status
    117