OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [sim/] [testsuite/] [d30v-elf/] [Makefile.in] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Makefile for regression testing the GNU debugger.
2
# Copyright (C) 1992, 1993, 1994, 1995 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; if not, write to the Free Software
18
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
 
20
VPATH = @srcdir@
21
srcdir = @srcdir@
22
srcroot = $(srcdir)/..
23
 
24
prefix = @prefix@
25
exec_prefix = @exec_prefix@
26
 
27
host_alias = @host_alias@
28
target_alias = @target_alias@
29
program_transform_name = @program_transform_name@
30
build_canonical = @build@
31
host_canonical = @host@
32
target_canonical = @target@
33
target_cpu = @target_cpu@
34
 
35
 
36
SHELL = /bin/sh
37
SUBDIRS = @subdirs@
38
RPATH_ENVVAR = @RPATH_ENVVAR@
39
 
40
EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
41
          echo $${rootme}/../../expect/expect ; \
42
          else echo expect ; fi`
43
 
44
RUNTEST = $(RUNTEST_FOR_TARGET)
45
 
46
RUNTESTFLAGS =
47
 
48
RUNTEST_FOR_TARGET = `\
49
  if [ -f $${srcdir}/../../../dejagnu/runtest ]; then \
50
    echo $${srcdir}/../../../dejagnu/runtest; \
51
  else \
52
    if [ "$(host_canonical)" = "$(target_canonical)" ]; then \
53
      echo runtest; \
54
    else \
55
      t='$(program_transform_name)'; echo runtest | sed -e '' $$t; \
56
    fi; \
57
  fi`
58
 
59
 
60
AS_FOR_TARGET = `\
61
  if [ -x ../../../gas/as-new ]; then \
62
    echo ../../../gas/as-new ; \
63
  else \
64
    echo $(target_alias)-as ; \
65
  fi`
66
 
67
LD_FOR_TARGET = `\
68
  if [ -x ../../../ld/ld-new ]; then \
69
    echo ../../../ld/ld-new ; \
70
  else \
71
    echo $(target_alias)-ld ; \
72
  fi`
73
 
74
RUN_FOR_TARGET = `\
75
  if [ -x ../../../sim/${target_cpu}/run ]; then \
76
    echo ../../../sim/${target_cpu}/run ; \
77
  else \
78
    echo $(target_alias)-run ; \
79
  fi`
80
 
81
TESTS = \
82
        em-e0.ok \
83
        em-e47.ko \
84
        em-pstr.hi \
85
        em-pchr.hi \
86
        \
87
        ls-ld2h.ko \
88
        ls-ld2w.ko \
89
        ls-ld4bh.ko \
90
        ls-ld4bhu.ko \
91
        ls-ldb.ko \
92
        ls-ldbu.ko \
93
        ls-ldh.ko \
94
        ls-ldhh.ko \
95
        ls-ldhu.ko \
96
        ls-ldw.ko \
97
        ls-moddec.ko \
98
        ls-modinc.ko \
99
        ls-modaddr.ok \
100
        ls-st2h.hi \
101
        ls-st2w.hi \
102
        ls-st4hb.hi \
103
        ls-stb.hi \
104
        ls-sth.hi \
105
        ls-sthh.hi \
106
        ls-stw.hi \
107
        \
108
        br-bra.ok \
109
        br-bratnz.ok \
110
        br-bratzr.ok \
111
        br-bsr.ok \
112
        br-dbra.ko \
113
        br-djmp.ko \
114
        br-djsr.ok \
115
        \
116
        os-dbt.ok \
117
        do-flags.ok \
118
        do-shifts.ok \
119
        do-2wordops.ok \
120
        \
121
        trap.ok
122
 
123
check: sanity $(TESTS)
124
sanity:
125
        @eval echo AS_FOR_TARGET = $(AS_FOR_TARGET)
126
        @eval echo LD_FOR_TARGET = $(LD_FOR_TARGET)
127
        @eval echo RUN_FOR_TARGET = $(RUN_FOR_TARGET)
128
 
129
 
130
 
131
# Rules for running all the tests, put into three types
132
# exit success, exit fail, print "Hello World"
133
 
134
.u.log:
135
        uudecode $*.u
136
        $(RUN_FOR_TARGET) $* > $*.log
137
 
138
 
139
# Rules for running the tests
140
 
141
.SUFFIXES: .u .ok .run .hi .ko
142
.run.ok:
143
        rm -f tmp-$* $*.hi
144
        ulimit -t 5 ; $(RUN_FOR_TARGET) $*.run > tmp-$*
145
        mv tmp-$* $*.ok
146
.run.hi:
147
        rm -f tmp-$* $*.hi diff-$*
148
        ulimit -t 5 ; $(RUN_FOR_TARGET) $*.run > tmp-$*
149
        echo "Hello World" | diff - tmp-$* > diff-$*
150
        cat tmp-$* diff-$* > $*.hi
151
.run.ko:
152
        rm -f tmp-$* $*.ko
153
        set +e ; \
154
        ulimit -t 5 ; $(RUN_FOR_TARGET) $*.run > tmp-$* ; \
155
        if [ $$? -eq 47 ] ; then \
156
          exit 0 ; \
157
        else \
158
          exit 1 ; \
159
        fi
160
        mv tmp-$* $*.ko
161
 
162
 
163
# Rules for building all the tests and packing them into
164
# uuencoded files.
165
 
166
uuencode: em-pstr.u em-e0.u em-e47.u em-pchr.u
167
 
168
.SUFFIXES: .u .S .run
169
.S.u:
170
        rm -f $*.o $*.run
171
        $(AS_FOR_TARGET) $(srcdir)/$*.S -o $*.o
172
        $(LD_FOR_TARGET) -o $* $*.o
173
        uuencode < $* $* > $*.u
174
        rm -f $*.o $*
175
.S.run:
176
        rm -f $*.o $*.run
177
        $(AS_FOR_TARGET) $(srcdir)/$*.S -o $*.o
178
        $(LD_FOR_TARGET) -o $*.run $*.o
179
        rm -f $*.o $*
180
 
181
 
182
 
183
#
184
# Standard
185
#
186
clean mostlyclean:
187
        -rm -f *~ core *.o a.out *.x *.grt
188
        rm -f $(TESTS)
189
#       if [ x"${SUBDIRS}" != x ] ; then \
190
#           for dir in ${SUBDIRS}; \
191
#           do \
192
#                   echo "$$dir:"; \
193
#                   if [ -d $$dir ]; then \
194
#                           (cd $$dir; $(MAKE) clean); \
195
#                   fi; \
196
#           done ; \
197
#       else true; fi
198
 
199
distclean maintainer-clean realclean: clean
200
        -rm -f *~ core
201
        -rm -f Makefile config.status *-init.exp
202
        -rm -fr *.log summary detail *.plog *.sum *.psum site.*
203
#       if [ x"${SUBDIRS}" != x ] ; then \
204
#           for dir in ${SUBDIRS}; \
205
#           do \
206
#                   echo "$$dir:"; \
207
#                   if [ -d $$dir ]; then \
208
#                           (cd $$dir; $(MAKE) distclean); \
209
#                   fi; \
210
#           done ; \
211
#       else true; fi
212
 
213
Makefile : Makefile.in config.status
214
        $(SHELL) config.status
215
 
216
config.status: configure
217
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.