OSDN Git Service

Fix last commit.
[pf3gnuchains/sourceware.git] / utils / Makefile.in
1
2 #
3 # Makefile.tpl, Makefile.in, Makefile
4 #   Copyright 2002 Free Software Foundation
5 #
6 # This file is part of GDB.
7 #
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
22 SHELL = /bin/sh
23
24 prefix = @prefix@
25 exec_prefix = @exec_prefix@
26 bindir = @bindir@
27 libdir = @libdir@
28 datadir = @datadir@
29 mandir = @mandir@
30 infodir = @infodir@
31 includedir = @includedir@
32 srcdir = @srcdir@
33 abs_srcdir = @abs_srcdir@
34
35 man1dir = $(mandir)/man1
36 man2dir = $(mandir)/man2
37 man3dir = $(mandir)/man3
38 man4dir = $(mandir)/man4
39 man5dir = $(mandir)/man5
40 man6dir = $(mandir)/man6
41 man7dir = $(mandir)/man7
42 man8dir = $(mandir)/man8
43 man9dir = $(mandir)/man9
44 tooldir = $(exec_prefix)
45
46 subconfigure_args = @subconfigure_args@
47
48 # Should it be INSTALL = @INSTALL@ -c ?
49 # The old makefile passed the -c argument.
50 INSTALL = @INSTALL@
51 INSTALL_PROGRAM = $(INSTALL)
52 INSTALL_DATA = $(INSTALL)
53
54 # public targets
55 all: @all_subdirs@
56 install: @install_subdirs@
57
58 mostlyclean: @mostlyclean_subdirs@
59 clean: @clean_subdirs@
60
61 # These should always clean all sudirectories...
62 distclean: distclean-spu distclean-sparclite distclean-wince 
63 maintainer-clean: maintainer-clean-spu maintainer-clean-sparclite maintainer-clean-wince 
64 clean mostlyclean:
65         -rm -f *~ core *.o a.out 
66 maintainer-clean distclean:
67         -rm -f Makefile config.status config.log config.cache *~ core *.o a.out 
68
69 info:
70 install-info:
71 clean-info:
72 dvi:
73
74 .PHONY: all install clean mostlyclean distclean maintainer-clean
75 .PHONY: info install-info clean-info dvi
76 .NOEXPORT:
77
78 # Rules for regenerating this Makefile
79 Makefile: $(srcdir)/Makefile.in config.status
80         ./config.status
81
82 $(srcdir)/Makefile.in: $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
83         cd $(srcdir) && autogen Makefile.def
84
85 config.status: $(srcdir)/configure
86         ./config.status --recheck
87
88 $(srcdir)/configure: $(srcdir)/configure.in
89         cd $(srcdir) && autoconf
90
91 # Miscellaneous variable setting
92 AR_FLAGS = qv
93 FLAGS_TO_PASS = \
94         "CC=$(CC)" \
95         "CFLAGS=$(CFLAGS)" \
96         "AR=$(AR)" \
97         "AR_FLAGS=$(AR_FLAGS)" \
98         "AS=$(AS)" \
99         "CROSS_CFLAGS=$(CROSS_CFLAGS)" \
100         "TARGET_CFLAGS=$(TARGET_CFLAGS)" \
101         "INCLUDES=$(INCLUDES)"
102
103 # Everything from here on down is generated by FOR loops in autogen.
104
105 # Glue for all.
106
107 all-spu: configure-spu
108         cd spu && $(MAKE) $(FLAGS_TO_PASS) all
109 .PHONY: all-spu
110
111 all-sparclite: configure-sparclite
112         cd sparclite && $(MAKE) $(FLAGS_TO_PASS) all
113 .PHONY: all-sparclite
114
115 all-wince: configure-wince
116         cd wince && $(MAKE) $(FLAGS_TO_PASS) all
117 .PHONY: all-wince
118
119 # Glue for install.
120
121 install-spu: configure-spu
122         cd spu && $(MAKE)  install
123 .PHONY: install-spu
124
125 install-sparclite: configure-sparclite
126         cd sparclite && $(MAKE)  install
127 .PHONY: install-sparclite
128
129 install-wince: configure-wince
130         cd wince && $(MAKE)  install
131 .PHONY: install-wince
132
133 # Glue for mostlyclean.
134
135 mostlyclean-spu: configure-spu
136         cd spu && $(MAKE)  mostlyclean
137 .PHONY: mostlyclean-spu
138
139 mostlyclean-sparclite: configure-sparclite
140         cd sparclite && $(MAKE)  mostlyclean
141 .PHONY: mostlyclean-sparclite
142
143 mostlyclean-wince: configure-wince
144         cd wince && $(MAKE)  mostlyclean
145 .PHONY: mostlyclean-wince
146
147 # Glue for clean.
148
149 clean-spu: configure-spu
150         cd spu && $(MAKE)  clean
151 .PHONY: clean-spu
152
153 clean-sparclite: configure-sparclite
154         cd sparclite && $(MAKE)  clean
155 .PHONY: clean-sparclite
156
157 clean-wince: configure-wince
158         cd wince && $(MAKE)  clean
159 .PHONY: clean-wince
160
161 # Glue for distclean.
162
163 distclean-spu: configure-spu
164         -cd spu && $(MAKE)  distclean
165 .PHONY: distclean-spu
166
167 distclean-sparclite: configure-sparclite
168         -cd sparclite && $(MAKE)  distclean
169 .PHONY: distclean-sparclite
170
171 distclean-wince: configure-wince
172         -cd wince && $(MAKE)  distclean
173 .PHONY: distclean-wince
174
175 # Glue for maintainer-clean.
176
177 maintainer-clean-spu: configure-spu
178         -cd spu && $(MAKE)  maintainer-clean
179 .PHONY: maintainer-clean-spu
180
181 maintainer-clean-sparclite: configure-sparclite
182         -cd sparclite && $(MAKE)  maintainer-clean
183 .PHONY: maintainer-clean-sparclite
184
185 maintainer-clean-wince: configure-wince
186         -cd wince && $(MAKE)  maintainer-clean
187 .PHONY: maintainer-clean-wince
188
189 # Glue for configure.
190
191 configure-spu: spu/Makefile
192 spu/Makefile: config.status
193         test -d spu || mkdir spu ; \
194         cd spu && $(abs_srcdir)/spu/configure $(subconfigure_args)
195 .PHONY: configure-spu
196
197 configure-sparclite: sparclite/Makefile
198 sparclite/Makefile: config.status
199         test -d sparclite || mkdir sparclite ; \
200         cd sparclite && $(abs_srcdir)/sparclite/configure $(subconfigure_args)
201 .PHONY: configure-sparclite
202
203 configure-wince: wince/Makefile
204 wince/Makefile: config.status
205         test -d wince || mkdir wince ; \
206         cd wince && $(abs_srcdir)/wince/configure $(subconfigure_args)
207 .PHONY: configure-wince
208