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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [Makefile.in] - Blame information for rev 857

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

Line No. Rev Author Line
1 227 jeremybenn
# Makefile for regression testing the GNU debugger.
2
# Copyright (C) 1997, 1998, 2007, 2008, 2009, 2010
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
prefix = @prefix@
23
exec_prefix = @exec_prefix@
24
 
25
build_canonical = @build@
26
build_alias = @build_alias@
27
host_canonical = @host@
28
host_alias = @host_alias@
29
target_canonical = @target@
30
target_alias = @target_alias@
31
program_transform_name = @program_transform_name@
32
 
33
arch = @arch@
34
 
35
SHELL = /bin/sh
36
SUBDIRS = @subdirs@
37
RPATH_ENVVAR = @RPATH_ENVVAR@
38
 
39
EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
40
          echo $${rootme}/../../expect/expect ; \
41
          else echo expect ; fi`
42
 
43
RUNTEST = `if [ -f $${srcdir}/../../dejagnu/runtest ] ; then \
44
                echo $${srcdir}/../../dejagnu/runtest ; else echo runtest; \
45
           fi`
46
 
47
RUNTESTFLAGS =
48
 
49
#### host, target, and site specific Makefile frags come in here.
50
 
51
# The use of $$(x_FOR_TARGET) reduces the command line length by not
52
# duplicating the lengthy definition.
53
 
54
TARGET_FLAGS_TO_PASS = \
55
        "prefix=$(prefix)" \
56
        "exec_prefix=$(exec_prefix)" \
57
        "against=$(against)" \
58
        'CC=$$(CC_FOR_TARGET)' \
59
        "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
60
        "CFLAGS=$(TESTSUITE_CFLAGS)" \
61
        "CHILLFLAGS=$(CHILLFLAGS)" \
62
        'CHILL=$$(CHILL_FOR_TARGET)' \
63
        "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
64
        "CHILL_LIB=$(CHILL_LIB)" \
65
        'CXX=$$(CXX_FOR_TARGET)' \
66
        "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
67
        "CXXFLAGS=$(CXXFLAGS)" \
68
        "MAKEINFO=$(MAKEINFO)" \
69
        "INSTALL=$(INSTALL)" \
70
        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
71
        "INSTALL_DATA=$(INSTALL_DATA)" \
72
        "RUNTESTFLAGS=$(RUNTESTFLAGS)"
73
 
74
#        "RUNTEST=$(RUNTEST)" \
75
 
76
all:
77
        @echo "Nothing to be done for all..."
78
 
79
.NOEXPORT:
80
info:
81
install-info:
82
dvi:
83
 
84
install:
85
 
86
uninstall: force
87
 
88
installcheck:
89
 
90
check:  check-DEJAGNU check-recursive
91
 
92
#test1:
93
check-recursive:
94
        @for i in . ${SUBDIRS}; do \
95
                if [ $$i = . ] ; then continue ; fi ; \
96
                if [ -d ./$$i ] ; then \
97
                        if (rootme=`pwd`/ ; export rootme ; \
98
                            rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
99
                                echo "check recursively into $$i directory..."; \
100
                                cd ./$$i; \
101
                                $(MAKE) $(TARGET_FLAGS_TO_PASS) check) ; then true ; \
102
                        else exit 1 ; fi ; \
103
                else true ; fi ; \
104
        done
105
 
106
#test2:
107
check-DEJAGNU: site.exp
108
        echo "Dejagnu-checking in `pwd` directory ..."
109
        rootme=`pwd`; export rootme; echo rootme = $$rootme; \
110
        srcdir=`cd ${srcdir}; pwd`; export srcdir ; echo srcdir = $$srcdir; \
111
        EXPECT=${EXPECT} ; export EXPECT ; echo EXPECT = $$EXPECT; \
112
        if [ -f $$rootme/../../expect/expect ]; then \
113
          TCL_LIBRARY=`cd $$srcdir/../../tcl/library && pwd`; \
114
          export TCL_LIBRARY; \
115
        fi; \
116
        echo TCL_LIBRARY = $$TCL_LIBRARY; \
117
        runtest=$(RUNTEST); echo runtest = $$runtest; \
118
        if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
119
          $$runtest $(RUNTESTFLAGS); \
120
        else echo "WARNING: could not find \`runtest'" 1>&2; :;\
121
        fi
122
 
123
 
124
site.exp: Makefile
125
        @echo 'Making a new site.exp file...'
126
        -@rm -f site.bak
127
        @echo '## these variables are automatically generated by make ##' > $@-t
128
        @echo '# Do not edit here.  If you wish to override these values' >> $@-t
129
        @echo '# edit the last section' >> $@-t
130
        @echo 'set tool sim' >> $@-t
131
        @echo 'set srcdir $(srcdir)' >> $@-t
132
        @echo 'set objdir' `pwd` >> $@-t
133
        @echo 'set arch $(arch)' >> $@-t
134
        @echo 'set build_alias $(build_alias)' >> $@-t
135
        @echo 'set build_triplet $(build_canonical)' >> $@-t
136
        @echo 'set host_alias $(host_alias)' >> $@-t
137
        @echo 'set host_triplet $(host_canonical)' >> $@-t
138
        @echo 'set target_alias $(target_alias)' >> $@-t
139
        @echo 'set target_triplet $(target_canonical)' >> $@-t
140
        @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t
141
        -@sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t
142
        -@mv site.exp site.bak
143
        @mv $@-t site.exp
144
 
145
force:;
146
 
147
clean mostlyclean:
148
        -rm -f *~ core *.o a.out xgdb *.x *.grt
149
        -rm -f *.rum *.c *.dif *.*out
150
        if [ x"${SUBDIRS}" != x ] ; then \
151
            for dir in ${SUBDIRS}; \
152
            do \
153
                    echo "$$dir:"; \
154
                    if [ -d $$dir ]; then \
155
                            (cd $$dir; $(MAKE) clean); \
156
                    fi; \
157
            done ; \
158
        else true; fi
159
 
160
distclean maintainer-clean realclean: clean
161
        -rm -f *~ core
162
        -rm -f Makefile config.status *-init.exp
163
        -rm -fr *.log summary detail *.plog *.sum *.psum site.*
164
        if [ x"${SUBDIRS}" != x ] ; then \
165
            for dir in ${SUBDIRS}; \
166
            do \
167
                    echo "$$dir:"; \
168
                    if [ -d $$dir ]; then \
169
                            (cd $$dir; $(MAKE) distclean); \
170
                    fi; \
171
            done ; \
172
        else true; fi
173
 
174
Makefile : Makefile.in config.status
175
        $(SHELL) config.status
176
 
177
config.status: $(srcdir)/configure
178
        $(SHELL) ./config.status --recheck
179
# FIXME: Requires --enable-maintainer-mode, which one could add, but
180
# it's provided by automake.  Maybe switch to automake someday.
181
#$(srcdir)/configure: @MAINT@ $(srcdir)/configure.in
182
#       cd $(srcdir) && autoconf

powered by: WebSVN 2.1.0

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