]> gcc.gnu.org Git - gcc.git/blob - gcc/ada/Make-lang.in
Make-lang.in (gnat1$(exeext), [...]): Restore $(CONFIG_H) and prefix.o dependencies.
[gcc.git] / gcc / ada / Make-lang.in
1 # Top level makefile fragment for GNU Ada (GNAT).
2 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
3 # Free Software Foundation, Inc.
4
5 #This file is part of GNU CC.
6
7 #GNU CC 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 #GNU CC 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 GNU CC; see the file COPYING. If not, write to
19 #the Free Software Foundation, 59 Temple Place - Suite 330,
20 #Boston, MA 02111-1307, USA.
21
22 # This file provides the language dependent support in the main Makefile.
23 # Each language makefile fragment must provide the following targets:
24 #
25 # foo.all.cross, foo.start.encap, foo.rest.encap,
26 # foo.info, foo.dvi,
27 # foo.install-normal, foo.install-common, foo.install-info, foo.install-man,
28 # foo.uninstall, foo.mostlyclean, foo.clean, foo.distclean, foo.extraclean,
29 # foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
30 #
31 # where `foo' is the name of the language.
32 #
33 # It should also provide rules for:
34 #
35 # - making any compiler driver (eg: g++)
36 # - the compiler proper (eg: cc1plus)
37 # - define the names for selecting the language in LANGUAGES.
38 # tool definitions
39 CHMOD = chmod
40 CHMOD_AX_FLAGS = a+x
41 MV = mv
42 MKDIR = mkdir -p
43 RM = rm -f
44 RMDIR = rm -rf
45 # default extensions
46 shext =
47 \f
48 # Extra flags to pass to recursive makes.
49 BOOT_ADAFLAGS= $(ADAFLAGS)
50 ADAFLAGS= -gnatpg -gnata
51 GNATLIBFLAGS= -W -Wall -gnatpg
52 GNATLIBCFLAGS= -g -O2
53 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
54 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
55 THREAD_KIND=native
56 TRACE=no
57 GNATBIND = gnatbind
58 ADA_FLAGS_TO_PASS = \
59 "ADA_FOR_BUILD=$(ADA_FOR_BUILD)" \
60 "ADA_INCLUDE_DIR=$(ADA_INCLUDE_DIR)" \
61 "ADA_RTL_OBJ_DIR=$(ADA_RTL_OBJ_DIR)" \
62 "ADAFLAGS=$(ADAFLAGS)" \
63 "ADA_FOR_TARGET=$(ADA_FOR_TARGET)" \
64 "INSTALL_DATA=$(INSTALL_DATA)" \
65 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
66
67 # Define the names for selecting Ada in LANGUAGES.
68 Ada ada: gnat1$(exeext) gnatbind$(exeext)
69
70 # Tell GNU Make to ignore these, if they exist.
71 .PHONY: Ada ada
72
73 # There are too many Ada sources to check against here. Let's
74 # always force the recursive make.
75 ADA_TOOLS_FLAGS_TO_PASS=\
76 "CC=../../xgcc -B../../" \
77 "CFLAGS=$(CFLAGS)" \
78 "exeext=$(exeext)" \
79 "ADAFLAGS=$(ADAFLAGS)" \
80 "ADA_INCLUDES=-I../rts" \
81 "GNATMAKE=../../gnatmake" \
82 "GNATLINK=../../gnatlink" \
83 "GNATBIND=../../gnatbind"
84
85 gnat1$(exeext): prefix.o attribs.o $(LIBDEPS) $(BACKEND) force
86 $(MAKE) -C ada $(SUBDIR_FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
87 ../gnat1$(exeext)
88
89 gnatbind$(exeext): $(CONFIG_H) prefix.o force
90 $(MAKE) -C ada $(SUBDIR_FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
91 ../gnatbind$(exeext)
92
93 # use target-gcc target-gnatmake target-gnatbind target-gnatlink
94 gnattools: $(GCC_PARTS) $(CONFIG_H) prefix.o force
95 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
96 ADA_INCLUDES="-I- -I../rts"\
97 CC="../../xgcc -B../../" STAGE_PREFIX=../../ gnattools1
98 $(MAKE) -C ada $(ADA_TOOLS_FLAGS_TO_PASS) gnattools2
99 $(MAKE) -C ada $(ADA_TOOLS_FLAGS_TO_PASS) gnattools3
100
101 regnattools:
102 $(MAKE) -C ada $(ADA_TOOLS_FLAGS_TO_PASS) gnattools1-re
103 $(MAKE) -C ada $(ADA_TOOLS_FLAGS_TO_PASS) gnattools2
104 $(MAKE) -C ada $(ADA_TOOLS_FLAGS_TO_PASS) gnattools3
105
106 # use host-gcc host-gnatmake host-gnatbind host-gnatlink
107 # put the host RTS dir first in the PATH to hide the default runtime
108 # files that are among the sources
109 RTS_DIR:=$(dir $(subst \,/,$(shell $(CC) -print-libgcc-file-name)))
110 cross-gnattools: force
111 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS)\
112 ADA_INCLUDES="-I$(RTS_DIR)adainclude -I$(RTS_DIR)adalib" \
113 GNATMAKE="gnatmake" \
114 GNATBIND="gnatbind" \
115 GNATLINK="gnatlink" \
116 LIBGNAT="" \
117 gnattools1-re gnattools2
118
119 rts-none: force
120 $(MAKE) -C ada $(FLAGS_TO_PASS) GNATMAKE=../gnatmake rts-none
121
122 install-rts-none: force
123 $(MAKE) -C ada $(FLAGS_TO_PASS) install-rts RTS_NAME=none
124
125 rts-ravenscar: force
126 $(MAKE) -C ada $(FLAGS_TO_PASS) GNATMAKE=../gnatmake rts-ravenscar
127
128 install-rts-ravenscar: force
129 $(MAKE) -C ada $(FLAGS_TO_PASS) install-rts RTS_NAME=ravenscar
130
131 gnatlib: force
132 $(MAKE) -C ada $(FLAGS_TO_PASS) \
133 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
134 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
135 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
136 THREAD_KIND="$(THREAD_KIND)" \
137 TRACE="$(TRACE)" \
138 gnatlib
139
140 gnatlib-shared: force
141 $(MAKE) -C ada $(FLAGS_TO_PASS) \
142 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
143 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
144 GNATLIBLDFLAGS="$(GNATLIBLDFLAGS)" \
145 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
146 THREAD_KIND="$(THREAD_KIND)" \
147 TRACE="$(TRACE)" \
148 gnatlib-shared
149
150 # use only for native compiler
151 gnatlib_and_tools: gnatlib gnattools
152
153 # use cross-gcc
154 gnat-cross: force
155 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) gnat-cross
156 \f
157 # Build hooks:
158
159 ada.all.cross:
160 -if [ -f gnatbind$(exeext) ] ; \
161 then \
162 $(MV) gnatbind$(exeext) gnatbind-cross$(exeext); \
163 fi
164 -if [ -f gnatbl$(exeext) ] ; \
165 then \
166 $(MV) gnatbl$(exeext) gnatbl-cross$(exeext); \
167 fi
168 -if [ -f gnatchop$(exeext) ] ; \
169 then \
170 $(MV) gnatchop$(exeext) gnatchop-cross$(exeext); \
171 fi
172 -if [ -f gnat$(exeext) ] ; \
173 then \
174 $(MV) gnat$(exeext) gnat-cross$(exeext); \
175 fi
176 -if [ -f gnatkr$(exeext) ] ; \
177 then \
178 $(MV) gnatkr$(exeext) gnatkr-cross$(exeext); \
179 fi
180 -if [ -f gnatlink$(exeext) ] ; \
181 then \
182 $(MV) gnatlink$(exeext) gnatlink-cross$(exeext); \
183 fi
184 -if [ -f gnatls$(exeext) ] ; \
185 then \
186 $(MV) gnatls$(exeext) gnatls-cross$(exeext); \
187 fi
188 -if [ -f gnatmake$(exeext) ] ; \
189 then \
190 $(MV) gnatmake$(exeext) gnatmake-cross$(exeext); \
191 fi
192 -if [ -f gnatmem$(exeext) ] ; \
193 then \
194 $(MV) gnatmem$(exeext) gnatmem-cross$(exeext); \
195 fi
196 -if [ -f gnatname$(exeext) ] ; \
197 then \
198 $(MV) gnatname$(exeext) gnatname-cross$(exeext); \
199 fi
200 -if [ -f gnatprep$(exeext) ] ; \
201 then \
202 $(MV) gnatprep$(exeext) gnatprep-cross$(exeext); \
203 fi
204 -if [ -f gnatpsta$(exeext) ] ; \
205 then \
206 $(MV) gnatpsta$(exeext) gnatpsta-cross$(exeext); \
207 fi
208 -if [ -f gnatxref$(exeext) ] ; \
209 then \
210 $(MV) gnatxref$(exeext) gnatxref-cross$(exeext); \
211 fi
212 -if [ -f gnatfind$(exeext) ] ; \
213 then \
214 $(MV) gnatfind$(exeext) gnatfind-cross$(exeext); \
215 fi
216
217 ada.start.encap:
218 ada.rest.encap:
219 ada.info:
220 ada.dvi:
221 ada.generated-manpages:
222 \f
223 # Install hooks:
224 # gnat1 is installed elsewhere as part of $(COMPILERS).
225
226 ada.install-normal:
227
228 # Install the binder program as $(target_alias)-gnatbind
229 # and also as either gnatbind (if native) or $(tooldir)/bin/gnatbind
230 # likewise for gnatf, gnatchop, and gnatlink, gnatkr, gnatmake, gnat,
231 # gnatprep, gnatbl, gnatls, gnatxref, gnatfind
232 ada.install-common:
233 -if [ -f gnat1$(exeext) ] ; \
234 then \
235 if [ -f gnatbind-cross$(exeext) ] ; \
236 then \
237 $(RM) $(bindir)/$(target_alias)-gnatbind$(exeext); \
238 $(INSTALL_PROGRAM) gnatbind-cross$(exeext) $(bindir)/$(target_alias)-gnatbind$(exeext); \
239 if [ -d $(tooldir)/bin/. ] ; then \
240 rm -f $(tooldir)/bin/gnatbind$(exeext); \
241 $(INSTALL_PROGRAM) gnatbind-cross$(exeext) $(tooldir)/bin/gnatbind$(exeext); \
242 fi; \
243 else \
244 $(RM) $(bindir)/gnatbind$(exeext); \
245 $(INSTALL_PROGRAM) gnatbind$(exeext) $(bindir)/gnatbind$(exeext); \
246 fi ; \
247 fi
248 -if [ -f gnat1$(exeext) ] ; \
249 then \
250 if [ -f gnatbl-cross$(exeext) ] ; \
251 then \
252 $(RM) $(bindir)/$(target_alias)-gnatbl$(exeext); \
253 $(INSTALL_PROGRAM) gnatbl-cross$(exeext) $(bindir)/$(target_alias)-gnatbl$(exeext); \
254 if [ -d $(tooldir)/bin/. ] ; then \
255 rm -f $(tooldir)/bin/gnatbl$(exeext); \
256 $(INSTALL_PROGRAM) gnatbl-cross$(exeext) $(tooldir)/bin/gnatbl$(exeext); \
257 fi; \
258 else \
259 $(RM) $(bindir)/gnatbl$(exeext); \
260 $(INSTALL_PROGRAM) gnatbl$(exeext) $(bindir)/gnatbl$(exeext); \
261 fi ; \
262 fi
263 -if [ -f gnat1$(exeext) ] ; \
264 then \
265 if [ -f gnatchop-cross$(shext) ] ; \
266 then \
267 $(RM) $(bindir)/$(target_alias)-gnatchop$(shext); \
268 $(INSTALL_PROGRAM) $(srcdir)/ada/gnatchop$(shext) $(bindir)/$(target_alias)-gnatchop$(shext); \
269 if [ -d $(tooldir)/bin/. ] ; then \
270 rm -f $(tooldir)/bin/gnatchop$(shext); \
271 $(INSTALL_PROGRAM) gnatchop$(shext) $(tooldir)/bin/gnatchop$(exeext); \
272 fi; \
273 else \
274 $(RM) $(bindir)/gnatchop$(shext); \
275 $(INSTALL_PROGRAM) $(srcdir)/ada/gnatchop$(shext) $(bindir)/gnatchop$(shext); \
276 fi ; \
277 fi
278 -if [ -f gnat1$(exeext) ] ; \
279 then \
280 if [ -f gnatchop-cross$(exeext) ] ; \
281 then \
282 $(RM) $(bindir)/$(target_alias)-gnatchop$(exeext); \
283 $(INSTALL_PROGRAM) gnatchop-cross$(exeext) $(bindir)/$(target_alias)-gnatchop$(exeext); \
284 if [ -d $(tooldir)/bin/. ] ; then \
285 rm -f $(tooldir)/bin/gnatchop$(exeext); \
286 $(INSTALL_PROGRAM) gnatchop-cross$(exeext) $(tooldir)/bin/gnatchop$(exeext); \
287 fi; \
288 else \
289 $(RM) $(bindir)/gnatchop$(exeext); \
290 $(INSTALL_PROGRAM) gnatchop$(exeext) $(bindir)/gnatchop$(exeext); \
291 fi ; \
292 fi
293 -if [ -f gnat1$(exeext) ] ; \
294 then \
295 if [ -f gnat-cross$(exeext) ] ; \
296 then \
297 $(RM) $(bindir)/$(target_alias)-gnat$(exeext); \
298 $(INSTALL_PROGRAM) gnat-cross$(exeext) $(bindir)/$(target_alias)-gnat$(exeext); \
299 if [ -d $(tooldir)/bin/. ] ; then \
300 rm -f $(tooldir)/bin/gnat$(exeext); \
301 $(INSTALL_PROGRAM) gnat-cross$(exeext) $(tooldir)/bin/gnat$(exeext); \
302 fi; \
303 else \
304 $(RM) $(bindir)/gnat$(exeext); \
305 $(INSTALL_PROGRAM) gnat$(exeext) $(bindir)/gnat$(exeext); \
306 fi ; \
307 fi
308 -if [ -f gnat1$(exeext) ] ; \
309 then \
310 if [ -f gnatkr-cross$(exeext) ] ; \
311 then \
312 $(RM) $(bindir)/$(target_alias)-gnatkr$(exeext); \
313 $(INSTALL_PROGRAM) gnatkr-cross$(exeext) $(bindir)/$(target_alias)-gnatkr$(exeext); \
314 if [ -d $(tooldir)/bin/. ] ; then \
315 rm -f $(tooldir)/bin/gnatkr$(exeext); \
316 $(INSTALL_PROGRAM) gnatkr-cross$(exeext) $(tooldir)/bin/gnatkr$(exeext); \
317 fi; \
318 else \
319 $(RM) $(bindir)/gnatkr$(exeext); \
320 $(INSTALL_PROGRAM) gnatkr$(exeext) $(bindir)/gnatkr$(exeext); \
321 fi ; \
322 fi
323 -if [ -f gnat1$(exeext) ] ; \
324 then \
325 if [ -f gnatlink-cross$(exeext) ] ; \
326 then \
327 $(RM) $(bindir)/$(target_alias)-gnatlink$(exeext); \
328 $(INSTALL_PROGRAM) gnatlink-cross$(exeext) $(bindir)/$(target_alias)-gnatlink$(exeext); \
329 if [ -d $(tooldir)/bin/. ] ; then \
330 rm -f $(tooldir)/bin/gnatlink$(exeext); \
331 $(INSTALL_PROGRAM) gnatlink-cross$(exeext) $(tooldir)/bin/gnatlink$(exeext); \
332 fi; \
333 else \
334 $(RM) $(bindir)/gnatlink$(exeext); \
335 $(INSTALL_PROGRAM) gnatlink$(exeext) $(bindir)/gnatlink$(exeext); \
336 fi ; \
337 fi
338 -if [ -f gnat1$(exeext) ] ; \
339 then \
340 if [ -f gnatls-cross$(exeext) ] ; \
341 then \
342 $(RM) $(bindir)/$(target_alias)-gnatls$(exeext); \
343 $(INSTALL_PROGRAM) gnatls-cross$(exeext) $(bindir)/$(target_alias)-gnatls$(exeext); \
344 if [ -d $(tooldir)/bin/. ] ; then \
345 rm -f $(tooldir)/bin/gnatls$(exeext); \
346 $(INSTALL_PROGRAM) gnatls-cross$(exeext) $(tooldir)/bin/gnatls$(exeext); \
347 fi; \
348 else \
349 $(RM) $(bindir)/gnatls$(exeext); \
350 $(INSTALL_PROGRAM) gnatls$(exeext) $(bindir)/gnatls$(exeext); \
351 fi ; \
352 fi
353 -if [ -f gnat1$(exeext) ] ; \
354 then \
355 if [ -f gnatmake-cross$(exeext) ] ; \
356 then \
357 $(RM) $(bindir)/$(target_alias)-gnatmake$(exeext); \
358 $(INSTALL_PROGRAM) gnatmake-cross$(exeext) $(bindir)/$(target_alias)-gnatmake$(exeext); \
359 if [ -d $(tooldir)/bin/. ] ; then \
360 rm -f $(tooldir)/bin/gnatmake$(exeext); \
361 $(INSTALL_PROGRAM) gnatmake-cross$(exeext) $(tooldir)/bin/gnatmake$(exeext); \
362 fi; \
363 else \
364 $(RM) $(bindir)/gnatmake$(exeext); \
365 $(INSTALL_PROGRAM) gnatmake$(exeext) $(bindir)/gnatmake$(exeext); \
366 fi ; \
367 fi
368 -if [ -f gnat1$(exeext) ] ; \
369 then \
370 if [ -f gnatmem-cross$(exeext) ] ; \
371 then \
372 $(RM) $(bindir)/$(target_alias)-gnatmem$(exeext); \
373 $(INSTALL_PROGRAM) gnatmem-cross$(exeext) $(bindir)/$(target_alias)-gnatmem$(exeext); \
374 else \
375 $(RM) $(bindir)/gnatmem$(exeext); \
376 $(INSTALL_PROGRAM) gnatmem$(exeext) $(bindir)/gnatmem$(exeext); \
377 fi ; \
378 fi
379 -if [ -f gnat1$(exeext) ] ; \
380 then \
381 if [ -f gnatname-cross$(exeext) ] ; \
382 then \
383 $(RM) $(bindir)/$(target_alias)-gnatname$(exeext); \
384 $(INSTALL_PROGRAM) gnatname-cross$(exeext) $(bindir)/$(target_alias)-gnatname$(exeext); \
385 else \
386 $(RM) $(bindir)/gnatname$(exeext); \
387 $(INSTALL_PROGRAM) gnatname$(exeext) $(bindir)/gnatname$(exeext); \
388 fi ; \
389 fi
390 -if [ -f gnat1$(exeext) ] ; \
391 then \
392 if [ -f gnatprep-cross$(exeext) ] ; \
393 then \
394 $(RM) $(bindir)/$(target_alias)-gnatprep$(exeext); \
395 $(INSTALL_PROGRAM) gnatprep-cross$(exeext) $(bindir)/$(target_alias)-gnatprep$(exeext); \
396 if [ -d $(tooldir)/bin/. ] ; then \
397 rm -f $(tooldir)/bin/gnatprep$(exeext); \
398 $(INSTALL_PROGRAM) gnatprep-cross$(exeext) $(tooldir)/bin/gnatprep$(exeext); \
399 fi; \
400 else \
401 $(RM) $(bindir)/gnatprep$(exeext); \
402 $(INSTALL_PROGRAM) gnatprep$(exeext) $(bindir)/gnatprep$(exeext); \
403 fi ; \
404 fi
405 -if [ -f gnat1$(exeext) ] ; \
406 then \
407 if [ -f gnatpsta-cross$(exeext) ] ; \
408 then \
409 $(RM) $(bindir)/$(target_alias)-gnatpsta$(exeext); \
410 $(INSTALL_PROGRAM) gnatpsta-cross$(exeext) $(bindir)/$(target_alias)-gnatpsta$(exeext); \
411 if [ -d $(tooldir)/bin/. ] ; then \
412 rm -f $(tooldir)/bin/gnatpsta$(exeext); \
413 $(INSTALL_PROGRAM) gnatpsta-cross$(exeext) $(tooldir)/bin/gnatpsta$(exeext); \
414 fi; \
415 else \
416 $(RM) $(bindir)/gnatpsta$(exeext); \
417 $(INSTALL_PROGRAM) gnatpsta$(exeext) $(bindir)/gnatpsta$(exeext); \
418 fi ; \
419 fi
420 -if [ -f gnat1$(exeext) ] ; \
421 then \
422 if [ -f gnatxref-cross$(exeext) ] ; \
423 then \
424 $(RM) $(bindir)/$(target_alias)-gnatxref$(exeext); \
425 $(INSTALL_PROGRAM) gnatxref-cross$(exeext) $(bindir)/$(target_alias)-gnatxref$(exeext); \
426 else \
427 $(RM) $(bindir)/gnatxref$(exeext); \
428 $(INSTALL_PROGRAM) gnatxref$(exeext) $(bindir)/gnatxref$(exeext); \
429 fi ; \
430 fi
431 -if [ -f gnat1$(exeext) ] ; \
432 then \
433 if [ -f gnatfind-cross$(exeext) ] ; \
434 then \
435 $(RM) $(bindir)/$(target_alias)-gnatfind$(exeext); \
436 $(INSTALL_PROGRAM) gnatfind-cross$(exeext) $(bindir)/$(target_alias)-gnatfind$(exeext); \
437 else \
438 $(RM) $(bindir)/gnatfind$(exeext); \
439 $(INSTALL_PROGRAM) gnatfind$(exeext) $(bindir)/gnatfind$(exeext); \
440 fi ; \
441 fi
442 -if [ -f gnat1$(exeext) ] ; \
443 then \
444 if [ -f gnatchop$(exeext) ] ; \
445 then \
446 $(RM) $(bindir)/gnatchop$(exeext); \
447 $(INSTALL_PROGRAM) gnatchop$(exeext) $(bindir)/gnatchop$(exeext); \
448 fi ; \
449 #
450 # Gnatlbr is only used on VMS.
451 #
452 -if [ -f gnat1$(exeext) ] ; \
453 then \
454 if [ -f gnatlbr$(exeext) ] ; \
455 then \
456 $(RM) $(bindir)/gnatlbr$(exeext); \
457 $(INSTALL_PROGRAM) gnatlbr$(exeext) $(bindir)/gnatlbr$(exeext); \
458 fi ; \
459 fi
460 #
461 # Gnatdll is only use on Windows
462 #
463 -if [ -f gnat1$(exeext) ] ; \
464 then \
465 $(RM) $(bindir)/gnatdll$(exeext); \
466 $(INSTALL_PROGRAM) gnatdll$(exeext) $(bindir)/gnatdll$(exeext); \
467 fi
468 #
469 # Finally, install the library
470 #
471 -if [ -f gnat1$(exeext) ] ; \
472 then \
473 $(MAKE) $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) install-gnatlib; \
474 fi
475
476 install-gnatlib:
477 $(MAKE) -f ada/Makefile $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) install-gnatlib
478
479 ada.install-info:
480 ada.install-man:
481
482 ada.uninstall:
483 -$(RM) $(bindir)/gnatbind$(exeext)
484 -$(RM) $(bindir)/gnatbl$(exeext)
485 -$(RM) $(bindir)/gnatchop$(exeext)
486 -$(RM) $(bindir)/gnat$(exeext)
487 -$(RM) $(bindir)/gnatdll$(exeext)
488 -$(RM) $(bindir)/gnatkr$(exeext)
489 -$(RM) $(bindir)/gnatlink$(exeext)
490 -$(RM) $(bindir)/gnatls$(exeext)
491 -$(RM) $(bindir)/gnatmake$(exeext)
492 -$(RM) $(bindir)/gnatmem$(exeext)
493 -$(RM) $(bindir)/gnatname$(exeext)
494 -$(RM) $(bindir)/gnatprep$(exeext)
495 -$(RM) $(bindir)/gnatpsta$(exeext)
496 -$(RM) $(bindir)/$(target_alias)-gnatbind$(exeext)
497 -$(RM) $(bindir)/$(target_alias)-gnatbl$(exeext)
498 -$(RM) $(bindir)/$(target_alias)-gnatchop$(exeext)
499 -$(RM) $(bindir)/$(target_alias)-gnat$(exeext)
500 -$(RM) $(bindir)/$(target_alias)-gnatkr(exeext)
501 -$(RM) $(bindir)/$(target_alias)-gnatlink$(exeext)
502 -$(RM) $(bindir)/$(target_alias)-gnatls$(exeext)
503 -$(RM) $(bindir)/$(target_alias)-gnatmake$(exeext)
504 -$(RM) $(bindir)/$(target_alias)-gnatmem$(exeext)
505 -$(RM) $(bindir)/$(target_alias)-gnatname$(exeext)
506 -$(RM) $(bindir)/$(target_alias)-gnatprep$(exeext)
507 -$(RM) $(bindir)/$(target_alias)-gnatpsta$(exeext)
508 -$(RM) $(tooldir)/bin/gnatbind$(exeext)
509 -$(RM) $(tooldir)/bin/gnatbl$(exeext)
510 -$(RM) $(tooldir)/bin/gnatchop$(exeext)
511 -$(RM) $(tooldir)/bin/gnat$(exeext)
512 -$(RM) $(tooldir)/bin/gnatdll$(exeext)
513 -$(RM) $(tooldir)/bin/gnatkr$(exeext)
514 -$(RM) $(tooldir)/bin/gnatlink$(exeext)
515 -$(RM) $(tooldir)/bin/gnatls$(exeext)
516 -$(RM) $(tooldir)/bin/gnatmake$(exeext)
517 -$(RM) $(tooldir)/bin/gnatmem$(exeext)
518 -$(RM) $(tooldir)/bin/gnatname$(exeext)
519 -$(RM) $(tooldir)/bin/gnatprep$(exeext)
520 -$(RM) $(tooldir)/bin/gnatpsta$(exeext)
521 # Gnatlbr and Gnatchop are only used on VMS
522 -$(RM) $(bindir)/gnatlbr$(exeext) $(bindir)/gnatchop$(exeext)
523
524 # Clean hooks:
525 # A lot of the ancillary files are deleted by the main makefile.
526 # We just have to delete files specific to us.
527
528 ada.mostlyclean:
529 -$(RM) ada/*$(objext) ada/*.ali ada/b_*.c
530 -$(RM) ada/sdefault.adb ada/stamp-sdefault
531 -$(RMDIR) ada/tools
532 ada.clean:
533 ada.distclean:
534 -$(RM) ada/Makefile
535 -$(RM) gnatbl$(exeext)
536 -$(RM) gnatchop$(exeext)
537 -$(RM) gnat$(exeext)
538 -$(RM) gnatdll$(exeext)
539 -$(RM) gnatkr$(exeext)
540 -$(RM) gnatlink$(exeext)
541 -$(RM) gnatls$(exeext)
542 -$(RM) gnatmake$(exeext)
543 -$(RM) gnatmem$(exeext)
544 -$(RM) gnatname$(exeext)
545 -$(RM) gnatprep$(exeext)
546 -$(RM) gnatpsta$(exeext)
547 -$(RM) gnatfind$(exeext)
548 -$(RM) gnatxref$(exeext)
549 # Gnatlbr is only used on VMS
550 -$(RM) gnatlbr$(exeext)
551 -$(RM) ada/rts/*
552 -$(RMDIR) ada/rts
553 -$(RM) ada/tools/*
554 -$(RMDIR) ada/tools
555 ada.extraclean:
556 ada.maintainer-clean:
557 -$(RM) ada/a-sinfo.h
558 -$(RM) ada/a-einfo.h
559 -$(RM) ada/nmake.adb
560 -$(RM) ada/nmake.ads
561 -$(RM) ada/treeprs.ads
562 \f
563 # Stage hooks:
564 # The main makefile has already created stage?/ada
565
566 ada.stage1: stage1-start
567 -$(MV) ada/*$(objext) ada/*.ali ada/b_*.c stage1/ada
568 -$(MV) ada/stamp-* stage1/ada
569 ada.stage2: stage2-start
570 -$(MV) ada/*$(objext) ada/*.ali ada/b_*.c stage2/ada
571 -$(MV) ada/stamp-* stage2/ada
572 ada.stage3: stage3-start
573 -$(MV) ada/*$(objext) ada/*.ali ada/b_*.c stage3/ada
574 -$(MV) ada/stamp-* stage3/ada
575 ada.stage4: stage4-start
576 -$(MV) ada/*$(objext) ada/*.ali ada/b_*.c stage4/ada
577 -$(MV) ada/stamp-* stage4/ada
578
579 check-ada:
580 \f
581 # Bootstrapping targets for just GNAT - use the same stage directories
582 gnatboot: force
583 -$(RM) gnatboot3
584 $(MAKE) gnat1$(exeext) gnatbind$(exeext) CC="$(CC)" \
585 CFLAGS="$(CFLAGS)"
586 $(MAKE) gnatboot2 BOOT_CFLAGS="$(BOOT_CFLAGS)" \
587 BOOT_ADAFLAGS="$(BOOT_ADAFLAGS)" \
588 LDFLAGS="$(BOOT_LDFLAGS)"
589
590 gnatboot2: force
591 $(MAKE) gnatstage1
592 $(MAKE) gnat1$(exeext) gnatbind$(exeext) CC="gcc -B../stage1/"\
593 CFLAGS="$(BOOT_CFLAGS)" \
594 ADAFLAGS="$(BOOT_ADAFLAGS)"\
595 LDFLAGS="$(BOOT_LDFLAGS)" \
596 STAGE_PREFIX=../stage1/
597 $(MAKE) gnatboot3 BOOT_CFLAGS="$(BOOT_CFLAGS)" \
598 BOOT_ADAFLAGS="$(BOOT_ADAFLAGS)" \
599 LDFLAGS="$(BOOT_LDFLAGS)"
600
601 gnatboot3:
602 $(MAKE) gnatstage2
603 $(MAKE) gnat1$(exeext) gnatbind$(exeext) CC="gcc -B../stage2/"\
604 CFLAGS="$(BOOT_CFLAGS)" \
605 ADAFLAGS="$(BOOT_ADAFLAGS)"\
606 LDFLAGS="$(BOOT_LDFLAGS)" \
607 STAGE_PREFIX=../stage2/
608
609 gnatstage1: force
610 -$(MKDIR) stage1
611 -$(MKDIR) stage1/ada
612 -$(MV) gnat1$(exeext) gnatbind$(exeext) stage1
613 -$(MV) ada/*$(objext) ada/*.ali stage1/ada
614 -$(MV) ada/stamp-* stage1/ada
615
616 gnatstage2: force
617 -$(MKDIR) stage2
618 -$(MKDIR) stage2/ada
619 -$(MV) gnat1$(exeext) gnatbind$(exeext) stage2
620 -$(MV) ada/*$(objext) ada/*.ali stage2/ada
621 -$(MV) ada/stamp-* stage2/ada
This page took 0.068705 seconds and 6 git commands to generate.