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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [mips64el-elf/] [Makefile.in] - Blame information for rev 294

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 131 jeremybenn
# Makefile for regression testing the GNU debugger.
2
# Copyright (C) 1992, 1993, 1994, 1995, 2007, 2008
3
# Free Software Foundation, Inc.
4
 
5
# This file is part of GDB.
6
 
7
# This program is free software; you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 3 of the License, or
10
# (at your option) any later version.
11
#
12
# This program is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
# GNU General Public License for more details.
16
#
17
# You should have received a copy of the GNU General Public License
18
# along with this program.  If not, see .
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/mips/run ]; then \
76
    echo ../../../sim/mips/run ; \
77
  else \
78
    echo $(target_alias)-run ; \
79
  fi`
80
 
81
TESTS =
82
 
83
check: sanity $(TESTS)
84
sanity:
85
        @eval echo AS_FOR_TARGET = $(AS_FOR_TARGET)
86
        @eval echo LD_FOR_TARGET = $(LD_FOR_TARGET)
87
        @eval echo RUN_FOR_TARGET = $(RUN_FOR_TARGET)
88
 
89
 
90
 
91
# Rules for running all the tests, put into three types
92
# exit success, exit fail, print "Hello World"
93
 
94
.u.log:
95
        uudecode $*.u
96
        $(RUN_FOR_TARGET) $* > $*.log
97
 
98
 
99
# Rules for running the tests
100
 
101
.SUFFIXES: .u .uue .ok .ok .run .hi .ko .ko
102
.run.ok:
103
        rm -f tmp-$* $*.ok
104
        ulimit -t 5 ; $(RUN_FOR_TARGET) $*.run > tmp-$*
105
        mv tmp-$* $*.ok
106
.run.hi:
107
        rm -f tmp-$* $*.hi diff-$*
108
        ulimit -t 5 ; $(RUN_FOR_TARGET) $*.run > tmp-$*
109
        echo 'Hello World!' | diff - tmp-$* > diff-$*
110
        cat tmp-$* diff-$* > $*.hi
111
.run.ko:
112
        rm -f tmp-$* $*.ko
113
        set +e ; \
114
        ulimit -t 5 ; $(RUN_FOR_TARGET) $*.run > tmp-$* ; \
115
        if [ $$? -eq 47 ] ; then \
116
          exit 0 ; \
117
        else \
118
          exit 1 ; \
119
        fi
120
        mv tmp-$* $*.ko
121
 
122
 
123
# Rules for building all the tests and packing them into
124
# uuencoded files.
125
 
126
.run.u:
127
        uuencode < $*.run $*.run > $*.u
128
        @echo "Move $*.u $*.uue"
129
.uue.run:
130
        uudecode $(srcdir)/$*.uue
131
.o.run:
132
        $(LD_FOR_TARGET) -Ttext 0xa0020000 -o $*.run $*.o
133
.s.o:
134
        $(AS_FOR_TARGET) -I $(srcdir) $(srcdir)/$*.s -o $*.o
135
 
136
 
137
#
138
# Standard
139
#
140
clean mostlyclean:
141
        -rm -f *~ core *.o a.out *.x *.grt *.run tmp-* diff-*
142
        rm -f $(TESTS)
143
#       if [ x"${SUBDIRS}" != x ] ; then \
144
#           for dir in ${SUBDIRS}; \
145
#           do \
146
#                   echo "$$dir:"; \
147
#                   if [ -d $$dir ]; then \
148
#                           (cd $$dir; $(MAKE) clean); \
149
#                   fi; \
150
#           done ; \
151
#       else true; fi
152
 
153
distclean maintainer-clean realclean: clean
154
        -rm -f *~ core
155
        -rm -f Makefile config.status *-init.exp
156
        -rm -fr *.log summary detail *.plog *.sum *.psum site.*
157
#       if [ x"${SUBDIRS}" != x ] ; then \
158
#           for dir in ${SUBDIRS}; \
159
#           do \
160
#                   echo "$$dir:"; \
161
#                   if [ -d $$dir ]; then \
162
#                           (cd $$dir; $(MAKE) distclean); \
163
#                   fi; \
164
#           done ; \
165
#       else true; fi
166
 
167
Makefile : Makefile.in config.status
168
        $(SHELL) config.status
169
 
170
config.status: configure
171
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

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