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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [testsuite/] [Makefile.in] - Blame information for rev 258

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 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2002, 2003, 2004,
3
# 2005, 2007, 2008 Free Software Foundation, Inc.
4
 
5
# This file is part of GDB.
6
 
7
# GDB 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 2, or (at your option)
10
# any later version.
11
 
12
# GDB 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, write to the Free Software
19
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
 
21
VPATH = @srcdir@
22
srcdir = @srcdir@
23
prefix = @prefix@
24
exec_prefix = @exec_prefix@
25
 
26
target_alias = @target_noncanonical@
27
program_transform_name = @program_transform_name@
28
build_canonical = @build@
29
host_canonical = @host@
30
target_canonical = @target@
31
 
32
SHELL = @SHELL@
33
EXEEXT = @EXEEXT@
34
SUBDIRS = @subdirs@
35
RPATH_ENVVAR = @RPATH_ENVVAR@
36
ALL_SUBDIRS = gdb.ada gdb.arch gdb.asm gdb.base gdb.cp gdb.disasm \
37
        gdb.dwarf2 \
38
        gdb.fortran gdb.server gdb.java gdb.mi \
39
        gdb.objc gdb.opt gdb.pascal gdb.threads gdb.trace \
40
        gdb.xml \
41
        $(SUBDIRS)
42
 
43
EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
44
          echo $${rootme}/../../expect/expect ; \
45
          else echo expect ; fi`
46
 
47
RUNTEST = $(RUNTEST_FOR_TARGET)
48
 
49
RUNTESTFLAGS =
50
 
51
RUNTEST_FOR_TARGET = `\
52
  if [ -f $${srcdir}/../../dejagnu/runtest ]; then \
53
    echo $${srcdir}/../../dejagnu/runtest; \
54
  else \
55
    if [ "$(host_canonical)" = "$(target_canonical)" ]; then \
56
      echo runtest; \
57
    else \
58
      t='$(program_transform_name)'; echo runtest | sed -e $$t; \
59
    fi; \
60
  fi`
61
 
62
#### host, target, and site specific Makefile frags come in here.
63
 
64
# The use of $$(x_FOR_TARGET) reduces the command line length by not
65
# duplicating the lengthy definition.
66
 
67
TARGET_FLAGS_TO_PASS = \
68
        "prefix=$(prefix)" \
69
        "exec_prefix=$(exec_prefix)" \
70
        "against=$(against)" \
71
        'CC=$$(CC_FOR_TARGET)' \
72
        "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
73
        "CFLAGS=$(TESTSUITE_CFLAGS)" \
74
        'CXX=$$(CXX_FOR_TARGET)' \
75
        "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
76
        "CXXFLAGS=$(CXXFLAGS)" \
77
        "MAKEINFO=$(MAKEINFO)" \
78
        "INSTALL=$(INSTALL)" \
79
        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
80
        "INSTALL_DATA=$(INSTALL_DATA)" \
81
        "LDFLAGS=$(LDFLAGS)" \
82
        "LIBS=$(LIBS)" \
83
        "RUNTEST=$(RUNTEST)" \
84
        "RUNTESTFLAGS=$(RUNTESTFLAGS)"
85
 
86
all:
87
        @echo "Nothing to be done for all..."
88
 
89
.NOEXPORT:
90
INFODIRS=doc
91
info:
92
install-info:
93
dvi:
94
pdf:
95
install-pdf:
96
html:
97
install-html:
98
 
99
install:
100
 
101
uninstall: force
102
 
103
site.exp: ./config.status Makefile
104
        @echo "Making a new config file..."
105
        -@rm -f ./tmp?
106
        @touch site.exp
107
        -@mv site.exp site.bak
108
        @echo "## these variables are automatically generated by make ##" > ./tmp0
109
        @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
110
        @echo "# add them to the last section" >> ./tmp0
111
        @echo "set host_triplet ${host_canonical}" >> ./tmp0
112
        @echo "set target_alias $(target_alias)" >> ./tmp0
113
        @echo "set target_triplet ${target_canonical}" >> ./tmp0
114
        @echo "set build_triplet ${build_canonical}" >> ./tmp0
115
        @echo "set srcdir ${srcdir}" >> ./tmp0
116
        @echo "set tool gdb" >> ./tmp0
117
        @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
118
                @cat ./tmp0 > site.exp
119
        @cat site.bak | sed \
120
                        -e '1,/^## All variables above are.*##/ d' >> site.exp
121
        -@rm -f ./tmp?
122
 
123
installcheck:
124
 
125
check: site.exp all just-check
126
 
127
just-check:
128
        rootme=`pwd`; export rootme; \
129
        srcdir=${srcdir} ; export srcdir ; \
130
        EXPECT=${EXPECT} ; export EXPECT ; \
131
        EXEEXT=${EXEEXT} ; export EXEEXT ; \
132
        $(RPATH_ENVVAR)=$$rootme/../../expect:$$rootme/../../libstdc++:$$rootme/../../tk/unix:$$rootme/../../tcl/unix:$$rootme/../../bfd:$$rootme/../../opcodes:$$$(RPATH_ENVVAR); \
133
        export $(RPATH_ENVVAR); \
134
        if [ -f $${rootme}/../../expect/expect ] ; then  \
135
          TCL_LIBRARY=$${srcdir}/../../tcl/library ; \
136
          export TCL_LIBRARY ; fi ; \
137
        $(RUNTEST) $(RUNTESTFLAGS)
138
 
139
subdir_do: force
140
        @for i in $(DODIRS); do \
141
                if [ -d ./$$i ] ; then \
142
                        if (rootme=`pwd`/ ; export rootme ; \
143
                            rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
144
                                cd ./$$i; \
145
                                $(MAKE) $(TARGET_FLAGS_TO_PASS) $(DO)) ; then true ; \
146
                        else exit 1 ; fi ; \
147
                else true ; fi ; \
148
        done
149
 
150
force:;
151
 
152
subdirs:
153
        for dir in ${ALL_SUBDIRS} ; \
154
        do \
155
                echo "$$dir:" ; \
156
                if [ -d $$dir ] ; then \
157
                        (rootme=`pwd`/ ; export rootme ; \
158
                         rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
159
                         cd $$dir; $(MAKE) $(TARGET_FLAGS_TO_PASS)); \
160
                fi; \
161
        done
162
 
163
clean mostlyclean:
164
        -rm -f *~ core *.o a.out xgdb *.x *.grt
165
        if [ x"${ALL_SUBDIRS}" != x ] ; then \
166
            for dir in ${ALL_SUBDIRS}; \
167
            do \
168
                    echo "$$dir:"; \
169
                    if [ -d $$dir ]; then \
170
                            (cd $$dir; $(MAKE) clean); \
171
                    fi; \
172
            done ; \
173
        else true; fi
174
 
175
distclean maintainer-clean realclean: clean
176
        -rm -f *~ core
177
        -rm -f Makefile config.status *-init.exp
178
        -rm -fr *.log summary detail *.plog *.sum *.psum site.*
179
        if [ x"${ALL_SUBDIRS}" != x ] ; then \
180
            for dir in ${ALL_SUBDIRS}; \
181
            do \
182
                    echo "$$dir:"; \
183
                    if [ -d $$dir ]; then \
184
                            (cd $$dir; $(MAKE) distclean); \
185
                    fi; \
186
            done ; \
187
        else true; fi
188
 
189
Makefile : Makefile.in config.status $(host_makefile_frag)
190
        $(SHELL) config.status
191
 
192
config.status: configure
193
        $(SHELL) config.status --recheck

powered by: WebSVN 2.1.0

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