* Makefile.in: Bunch of fixes so it actually works in this
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.chill / Makefile.in
CommitLineData
16def8c8
SS
1# Makefile for regression testing Chill support for the GNU debugger.
2# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
3
4# This file is part of GDB.
5
6# GDB 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# GDB 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 this program; see the file COPYING. If not, write to
18# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
19
20srcdir = .
21prefix = /usr/local
22program_transform_name =
23
24exec_prefix = $(prefix)
25bindir = $(exec_prefix)/bin
26libdir = $(exec_prefix)/lib
27tooldir = $(libdir)/$(target_alias)
28
29datadir = $(exec_prefix)/lib/dejagnu
30mandir = $(prefix)/man
31man1dir = $(mandir)/man1
32man2dir = $(mandir)/man2
33man3dir = $(mandir)/man3
34man4dir = $(mandir)/man4
35man5dir = $(mandir)/man5
36man6dir = $(mandir)/man6
37man7dir = $(mandir)/man7
38man8dir = $(mandir)/man8
39man9dir = $(mandir)/man9
40infodir = $(prefix)/info
41includedir = $(prefix)/include
42gxx_includedir = $(tooldir)/g++-include
43docdir = $(datadir)/doc
44targetdir = $(datadir)/$(target_alias)
45
46SHELL = /bin/sh
47
48INSTALL = install -c
49INSTALL_PROGRAM = $(INSTALL)
50INSTALL_DATA = $(INSTALL)
51
52RUNTEST = runtest
53
54RUNTESTFLAGS =
55
605f94ba
PB
56EXPECT = `if [ -f $${rootme}../../../expect/expect ] ; then \
57 echo $${rootme}../../../expect/expect ; \
16def8c8
SS
58 else echo expect ; fi`
59
60RUNTEST_FOR_TARGET = ` \
605f94ba
PB
61 if [ -f $${rootme}../../../dejagnu/site.exp ] ; then \
62 echo $${rootme}../../../dejagnu/runtest ; \
16def8c8
SS
63 else \
64 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
65 echo $(RUNTEST); \
66 else \
67 t='$(program_transform_name)'; echo runtest | sed -e '' $$t; \
68 fi; \
69 fi`
70
605f94ba 71CFLAGS = -g
16def8c8
SS
72CHILLFLAGS = $(CFLAGS)
73
74CHILL_FOR_TARGET = ` \
605f94ba
PB
75 if [ -f $${rootme}../../../gcc/Makefile ] ; then \
76 echo $${rootme}../../../gcc/xgcc -B$${rootme}../../../gcc/; \
16def8c8
SS
77 else \
78 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
79 echo gcc; \
80 else \
81 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
82 fi; \
83 fi`
84
85CHILL = $(CHILL_FOR_TARGET)
86
87CHILL_LIB = ` \
605f94ba
PB
88 if [ -f $${rootme}../../../gcc/ch/runtime/libchill.a ] ; then \
89 echo $${rootme}../../../gcc/ch/runtime/chillrt0.o \
90 $${rootme}../../../gcc/ch/runtime/libchill.a; \
16def8c8
SS
91 else \
92 echo -lchill; \
93 fi`
94
95GDB = ` \
605f94ba
PB
96 if [ -f $${rootme}../../gdb ] ; \
97 then echo $${rootme}../../gdb; \
16def8c8
SS
98 else echo gdb; \
99 fi`
100
101GDBFLAGS = -nx
102
103#### host, target, and site specific Makefile frags come in here.
104
605f94ba 105EXECUTABLES = chillvars.exe pr-5020.exe pr-5022.exe
16def8c8
SS
106
107all: $(EXECUTABLES)
108
605f94ba 109.SUFFIXES: .ch .exe
16def8c8 110
605f94ba
PB
111.o.exe:
112 $(CHILL_FOR_TARGET) $(CHILLFLAGS) $(LDFLAGS) -o $*.exe $*.o $(CHILL_LIB) $(LIBS)
113
114.ch.o:
115 $(CHILL_FOR_TARGET) $(CHILLFLAGS) -fspecial_UC -c $<
16def8c8
SS
116
117.NOEXPORT:
118INFODIRS=doc
119info:
120install-info:
121dvi:
122
123install:
124
125uninstall: force
126
127site.exp: ./config.status Makefile
128 @echo "Making a new config file..."
129 -@rm -f ./tmp?
130 @touch site.exp
131 -@mv site.exp site.bak
132 @echo "## these variables are automatically generated by make ##" > ./tmp0
133 @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
134 @echo "# add them to the last section" >> ./tmp0
135 @echo "set GDBFLAGS \"${GDBFLAGS}\"" >> ./tmp0
136 @echo "set host_os ${host_os}" >> ./tmp0
137 @echo "set host_alias ${host_alias}" >> ./tmp0
138 @echo "set host_cpu ${host_cpu}" >> ./tmp0
139 @echo "set host_vendor ${host_vendor}" >> ./tmp0
140 @echo "set target_os ${target_os}" >> ./tmp0
141 @echo "set target_alias ${target_alias}" >> ./tmp0
142 @echo "set target_cpu ${target_cpu}" >> ./tmp0
143 @echo "set target_vendor ${target_vendor}" >> ./tmp0
144 @echo "set host_triplet ${host_canonical}" >> ./tmp0
145 @echo "set target_triplet ${target_canonical}" >> ./tmp0
146 @echo "set srcdir ${srcdir}" >> ./tmp0
147 @echo "set objdir `pwd`" >> ./tmp0
148 @echo "set tool gdb" >> ./tmp0
149 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
150 @cat ./tmp0 > site.exp
151 @cat site.bak | sed \
152 -e '1,/^## All variables above are.*##/ d' >> site.exp
153 -@rm -f ./tmp?
154
155installcheck:
156check: site.exp all just-check
157just-check:
605f94ba
PB
158 tests=`cd ${srcdir}; echo *.exp` ; \
159 rootme=`pwd`/; export rootme; \
160 cd .. ; \
161 $(MAKE) just-check RUNTESTFLAGS="${RUNTESTFLAGS} $${tests}" \
162 GDB=${GDB} EXPECT=${EXPECT}
16def8c8
SS
163
164clean mostlyclean:
165 -rm -f *~ core *.o a.out xgdb *.x $(EXECUTABLES)
166
167distclean realclean: clean
168 -rm -f *~ core *.log *.plog *.sum *.psum site.*
169 -rm -f Makefile config.status *-init.exp
170 -rm -fr *.log summary detail *.plog *.sum *.psum site.*
171
172Makefile : $(srcdir)/Makefile.in $(srcdir)/configure.in $(host_makefile_frag) $(target_makefile_frag)
173 $(SHELL) ./config.status
174
This page took 0.029365 seconds and 4 git commands to generate.