* lib/gas-defs.exp (run_dump_test): If the program to run does not
[deliverable/binutils-gdb.git] / gas / testsuite / Makefile.in
CommitLineData
099c286e
BC
1# Makefile for regression testing the GNU assemblers.
2# Copyright (C) 1987, 88, 90, 91, 92, 93, 1994 Free Software Foundation, Inc.
3
4#This file is part of the GNU Assembler (gas).
5
6#gas is free software; you can redistribute it and/or modify
7#it under the terms of the GNU General Public License as published by
8#the Free Software Foundation; either version 2, or (at your option)
9#any later version.
10
11#gas is distributed in the hope that it will be useful,
12#but WITHOUT ANY WARRANTY; without even the implied warranty of
13#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14#GNU General Public License for more details.
15
16#You should have received a copy of the GNU General Public License
17#along with GNU CC; see the file COPYING. If not, write to
a2a5a4fa 18#the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
099c286e 19
f70a4714
KR
20srcdir = .
21prefix = /usr/local
22
23exec_prefix = $(prefix)
24bindir = $(exec_prefix)/bin
25libdir = $(exec_prefix)/lib
26tooldir = $(libdir)/$(target_alias)
27
28datadir = $(exec_prefix)/lib/deja-gnu
29mandir = $(prefix)/man
30man1dir = $(mandir)/man1
31man2dir = $(mandir)/man2
32man3dir = $(mandir)/man3
33man4dir = $(mandir)/man4
34man5dir = $(mandir)/man5
35man6dir = $(mandir)/man6
36man7dir = $(mandir)/man7
37man8dir = $(mandir)/man8
38man9dir = $(mandir)/man9
39infodir = $(prefix)/info
40includedir = $(prefix)/include
41gxx_includedir = $(tooldir)/g++-include
42docdir = $(datadir)/doc
43targetdir = $(datadir)/$(target_alias)
44
45SHELL = /bin/sh
46
47INSTALL = install -c
48INSTALL_PROGRAM = $(INSTALL)
49INSTALL_DATA = $(INSTALL)
50
51GCC = gcc
52GCCFLAGS = -g -O
53
54LINK= ln -s
55
099c286e
BC
56EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
57 echo $${rootme}/../../expect/expect ; \
58 else echo expect ; fi`
59
60RUNTEST = `if [ -f $${srcdir}/../../dejagnu/runtest ] ; then \
61 echo $${srcdir}/../../dejagnu/runtest ; \
62 else echo runtest ; fi`
03372cf4 63RUNTESTFLAGS =
f70a4714 64
f70a4714
KR
65#### host, target, and site specific Makefile frags come in here.
66
67all:
68
69.NOEXPORT:
70
71install:
72
73uninstall: force
74
75site.exp: ./Makefile
76 @echo "Making a new config file..."
77 -@rm -f ./tmp?
78 @touch site.exp
79 -@mv site.exp site.bak
80 @echo "## these variables are automatically generated by make ##" > ./tmp0
0b63552c
KR
81 @echo "# Do not edit here. If you wish to override these values," >> ./tmp0
82 @echo "# do so in the last section." >> ./tmp0
83 @echo set host_os ${host_os} >> ./tmp0
84 @echo set host_alias ${host_alias} >> ./tmp0
85 @echo set host_cpu ${host_cpu} >> ./tmp0
86 @echo set host_vendor ${host_vendor} >> ./tmp0
87 @echo set target_os ${target_os} >> ./tmp0
88 @echo set target_alias ${target_alias} >> ./tmp0
89 @echo set target_cpu ${target_cpu} >> ./tmp0
90 @echo set target_vendor ${target_vendor} >> ./tmp0
91 @echo set host_triplet ${host_canonical} >> ./tmp0
92 @echo set target_triplet ${target_canonical} >> ./tmp0
93 @echo set target_canonical ${target_canonical} >> ./tmp0
94 @echo set srcdir ${srcdir} >> ./tmp0
95 @echo set exec_prefix ${exec_prefix} >> ./tmp0
96 @echo set objdir `pwd` >> ./tmp0
f70a4714 97 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
29f5c3cb
KR
98 @sed -e '1,/^## All variables above are.*##/ d' < site.bak >> ./tmp0
99 @mv -f ./tmp0 site.exp
f70a4714
KR
100
101check: site.exp
099c286e
BC
102 rootme=`pwd`; export rootme; \
103 srcdir=${srcdir} ; export srcdir ; \
104 EXPECT=${EXPECT} ; export EXPECT ; \
105 if [ -f $${rootme}/../../expect/expect ] ; then \
106 TCL_LIBRARY=$${srcdir}/../../tcl/library ; \
107 export TCL_LIBRARY ; fi ; \
a7175ea9 108 $(RUNTEST) $(RUNTESTFLAGS) --tool gas
f70a4714
KR
109
110force:
111
daa7e184 112clean mostlyclean:
f70a4714
KR
113 -rm -f *~ core *.o a.out xgdb *.x a.out b.out
114
daa7e184 115distclean realclean: clean
f70a4714
KR
116 -rm -f *~ core
117 -rm -f Makefile config.status
118 -rm -fr *.log summary detail
b166d614 119 -rm -f site.exp site.bak gas.sum
f70a4714
KR
120
121Makefile : $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
122 $(SHELL) ./config.status
123
This page took 0.13752 seconds and 4 git commands to generate.