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

Subversion Repositories or1k

[/] [or1k/] [branches/] [oc/] [gdb-5.0/] [gdb/] [testsuite/] [Makefile.in] - Blame information for rev 106

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

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

powered by: WebSVN 2.1.0

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