1 # Top level makefile fragment for GNU Ada (GNAT).
2 # Copyright (C) 1994, 1995, 1996, 1997, 1997, 1999, 2000, 2001
3 # Free Software Foundation, Inc.
5 #This file is part of GNU CC.
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)
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.
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, 675 Mass Ave, Cambridge, MA 02139, USA.
21 # This file provides the language dependent support in the main Makefile.
22 # Each language makefile fragment must provide the following targets:
24 # foo.all.build, foo.all.cross, foo.start.encap, foo.rest.encap,
26 # foo.install-normal, foo.install-common, foo.install-info, foo.install-man,
27 # foo.uninstall, foo.mostlyclean, foo.clean, foo.distclean, foo.extraclean,
28 # foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
30 # where `foo' is the name of the language.
32 # It should also provide rules for:
34 # - making any compiler driver (eg: g++)
35 # - the compiler proper (eg: cc1plus)
36 # - define the names for selecting the language in LANGUAGES.
47 # Extra flags to pass to recursive makes.
48 BOOT_ADAFLAGS= $(ADAFLAGS)
49 ADAFLAGS= -gnatpg -gnata
52 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
53 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
57 "ADA_FOR_BUILD=$(ADA_FOR_BUILD)" \
58 "ADA_INCLUDE_DIR=$(ADA_INCLUDE_DIR)" \
59 "ADA_RTL_OBJ_DIR=$(ADA_RTL_OBJ_DIR)" \
60 "ADAFLAGS=$(ADAFLAGS)" \
61 "ADA_FOR_TARGET=$(ADA_FOR_TARGET)" \
62 "INSTALL_DATA=$(INSTALL_DATA)" \
63 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
65 # Define the names for selecting Ada in LANGUAGES.
66 Ada ada: gnat1$(exeext) gnatbind$(exeext)
68 # Tell GNU Make to ignore these, if they exist.
71 # There are too many Ada sources to check against here. Let's
72 # always force the recursive make.
73 gnat1$(exeext): prefix.o $(LIBDEPS) $(BACKEND) force
74 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
77 gnatbind$(exeext): force
78 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
81 gnatmake$(exeext): force
82 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
85 gnatbl$(exeext): force
86 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
89 gnatchop$(exeext): force
90 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
93 gnatcmd$(exeext): force
94 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
97 gnatlink$(exeext): force
98 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
101 gnatkr$(exeext): force
102 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
105 gnatls$(exeext): force
106 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
109 gnatmem$(exeext): force
110 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
113 gnatprep$(exeext): force
114 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
117 gnatpsta$(exeext): force
118 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
121 gnatpsys$(exeext): force
122 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
125 gnatxref$(exeext): force
126 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
129 gnatfind$(exeext): force
130 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
133 # Gnatlbr is extra tool only used on VMS
135 gnatlbr$(exeext): force
136 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
140 gnattools: $(GCC_PARTS) force
141 $(MAKE) $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
142 CC="../xgcc -B../" STAGE_PREFIX=../ \
143 gnatbl$(exeext) gnatchop$(exeext) gnatcmd$(exeext) \
144 gnatkr$(exeext) gnatlink$(exeext) \
145 gnatls$(exeext) gnatmake$(exeext) gnatmem$(exeext) \
146 gnatprep$(exeext) gnatpsta$(exeext) gnatpsys$(exeext) \
147 gnatxref$(exeext) gnatfind$(exeext) $(EXTRA_GNATTOOLS)
150 cross-gnattools: force
151 $(MAKE) $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
152 gnatbl$(exeext) gnatchop$(exeext) gnatcmd$(exeext) \
153 gnatkr$(exeext) gnatlink$(exeext) \
154 gnatls$(exeext) gnatmake$(exeext) gnatmem$(exeext) \
155 gnatprep$(exeext) gnatpsta$(exeext) gnatpsys$(exeext) \
156 gnatxref$(exeext) gnatfind$(exeext) $(EXTRA_GNATTOOLS)
159 $(MAKE) -C ada $(FLAGS_TO_PASS) \
160 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
161 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
162 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
163 THREAD_KIND="$(THREAD_KIND)" \
166 gnatlib-shared: force
167 $(MAKE) -C ada $(FLAGS_TO_PASS) \
168 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
169 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
170 GNATLIBLDFLAGS="$(GNATLIBLDFLAGS)" \
171 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
172 THREAD_KIND="$(THREAD_KIND)" \
175 # use only for native compiler
176 gnatlib_and_tools: gnatlib gnattools
180 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) gnat-cross
186 -if [ -f gnatbind$(exeext) ] ; \
188 $(MV) gnatbind$(exeext) gnatbind-cross$(exeext); \
190 -if [ -f gnatbl$(exeext) ] ; \
192 $(MV) gnatbl$(exeext) gnatbl-cross$(exeext); \
194 -if [ -f gnatchop$(exeext) ] ; \
196 $(MV) gnatchop$(exeext) gnatchop-cross$(exeext); \
198 -if [ -f gnatcmd$(exeext) ] ; \
200 $(MV) gnatcmd$(exeext) gnatcmd-cross$(exeext); \
202 -if [ -f gnatkr$(exeext) ] ; \
204 $(MV) gnatkr$(exeext) gnatkr-cross$(exeext); \
206 -if [ -f gnatlink$(exeext) ] ; \
208 $(MV) gnatlink$(exeext) gnatlink-cross$(exeext); \
210 -if [ -f gnatls$(exeext) ] ; \
212 $(MV) gnatls$(exeext) gnatls-cross$(exeext); \
214 -if [ -f gnatmake$(exeext) ] ; \
216 $(MV) gnatmake$(exeext) gnatmake-cross$(exeext); \
218 -if [ -f gnatmem$(exeext) ] ; \
220 $(MV) gnatmem$(exeext) gnatmem-cross$(exeext); \
222 -if [ -f gnatprep$(exeext) ] ; \
224 $(MV) gnatprep$(exeext) gnatprep-cross$(exeext); \
226 -if [ -f gnatpsta$(exeext) ] ; \
228 $(MV) gnatpsta$(exeext) gnatpsta-cross$(exeext); \
230 -if [ -f gnatpsys$(exeext) ] ; \
232 $(MV) gnatpsys$(exeext) gnatpsys-cross$(exeext); \
234 -if [ -f gnatxref$(exeext) ] ; \
236 $(MV) gnatxref$(exeext) gnatxref-cross$(exeext); \
238 -if [ -f gnatfind$(exeext) ] ; \
240 $(MV) gnatfind$(exeext) gnatfind-cross$(exeext); \
249 # gnat1 is installed elsewhere as part of $(COMPILERS).
253 # Install the binder program as $(target_alias)-gnatbind
254 # and also as either gnatbind (if native) or $(tooldir)/bin/gnatbind
255 # likewise for gnatf, gnatchop, and gnatlink, gnatkr, gnatmake, gnatcmd,
256 # gnatprep, gnatbl, gnatls, gnatxref, gnatfind
258 -if [ -f gnat1$(exeext) ] ; \
260 if [ -f gnatbind-cross$(exeext) ] ; \
262 $(RM) $(bindir)/$(target_alias)-gnatbind$(exeext); \
263 $(INSTALL_PROGRAM) gnatbind-cross$(exeext) $(bindir)/$(target_alias)-gnatbind$(exeext); \
264 if [ -d $(tooldir)/bin/. ] ; then \
265 rm -f $(tooldir)/bin/gnatbind$(exeext); \
266 $(INSTALL_PROGRAM) gnatbind-cross$(exeext) $(tooldir)/bin/gnatbind$(exeext); \
269 $(RM) $(bindir)/gnatbind$(exeext); \
270 $(INSTALL_PROGRAM) gnatbind$(exeext) $(bindir)/gnatbind$(exeext); \
273 -if [ -f gnat1$(exeext) ] ; \
275 if [ -f gnatbl-cross$(exeext) ] ; \
277 $(RM) $(bindir)/$(target_alias)-gnatbl$(exeext); \
278 $(INSTALL_PROGRAM) gnatbl-cross$(exeext) $(bindir)/$(target_alias)-gnatbl$(exeext); \
279 if [ -d $(tooldir)/bin/. ] ; then \
280 rm -f $(tooldir)/bin/gnatbl$(exeext); \
281 $(INSTALL_PROGRAM) gnatbl-cross$(exeext) $(tooldir)/bin/gnatbl$(exeext); \
284 $(RM) $(bindir)/gnatbl$(exeext); \
285 $(INSTALL_PROGRAM) gnatbl$(exeext) $(bindir)/gnatbl$(exeext); \
288 -if [ -f gnat1$(exeext) ] ; \
290 if [ -f gnatchop-cross$(exeext) ] ; \
292 $(RM) $(bindir)/$(target_alias)-gnatchop$(shext); \
293 $(INSTALL_PROGRAM) $(srcdir)/ada/gnatchop$(shext) $(bindir)/$(target_alias)-gnatchop$(shext); \
294 if [ -d $(tooldir)/bin/. ] ; then \
295 rm -f $(tooldir)/bin/gnatchop$(shext); \
296 $(INSTALL_PROGRAM) gnatchop$(shext) $(tooldir)/bin/gnatchop$(exeext); \
299 $(RM) $(bindir)/gnatchop$(shext); \
300 $(INSTALL_PROGRAM) $(srcdir)/ada/gnatchop$(shext) $(bindir)/gnatchop$(shext); \
303 -if [ -f gnat1$(exeext) ] ; \
305 if [ -f gnatchop-cross$(exeext) ] ; \
307 $(RM) $(bindir)/$(target_alias)-gnatchop$(exeext); \
308 $(INSTALL_PROGRAM) gnatchop-cross$(exeext) $(bindir)/$(target_alias)-gnatchop$(exeext); \
309 if [ -d $(tooldir)/bin/. ] ; then \
310 rm -f $(tooldir)/bin/gnatchop$(exeext); \
311 $(INSTALL_PROGRAM) gnatchop-cross$(exeext) $(tooldir)/bin/gnatchop$(exeext); \
314 $(RM) $(bindir)/gnatchop$(exeext); \
315 $(INSTALL_PROGRAM) gnatchop$(exeext) $(bindir)/gnatchop$(exeext); \
318 -if [ -f gnat1$(exeext) ] ; \
320 if [ -f gnatcmd-cross$(exeext) ] ; \
322 $(RM) $(bindir)/$(target_alias)-gnat$(exeext); \
323 $(INSTALL_PROGRAM) gnatcmd-cross$(exeext) $(bindir)/$(target_alias)-gnat$(exeext); \
324 if [ -d $(tooldir)/bin/. ] ; then \
325 rm -f $(tooldir)/bin/gnat$(exeext); \
326 $(INSTALL_PROGRAM) gnatcmd-cross$(exeext) $(tooldir)/bin/gnat$(exeext); \
329 $(RM) $(bindir)/gnat$(exeext); \
330 $(INSTALL_PROGRAM) gnatcmd$(exeext) $(bindir)/gnat$(exeext); \
333 -if [ -f gnat1$(exeext) ] ; \
335 if [ -f gnatkr-cross$(exeext) ] ; \
337 $(RM) $(bindir)/$(target_alias)-gnatkr$(exeext); \
338 $(INSTALL_PROGRAM) gnatkr-cross$(exeext) $(bindir)/$(target_alias)-gnatkr$(exeext); \
339 if [ -d $(tooldir)/bin/. ] ; then \
340 rm -f $(tooldir)/bin/gnatkr$(exeext); \
341 $(INSTALL_PROGRAM) gnatkr-cross$(exeext) $(tooldir)/bin/gnatkr$(exeext); \
344 $(RM) $(bindir)/gnatkr$(exeext); \
345 $(INSTALL_PROGRAM) gnatkr$(exeext) $(bindir)/gnatkr$(exeext); \
348 -if [ -f gnat1$(exeext) ] ; \
350 if [ -f gnatlink-cross$(exeext) ] ; \
352 $(RM) $(bindir)/$(target_alias)-gnatlink$(exeext); \
353 $(INSTALL_PROGRAM) gnatlink-cross$(exeext) $(bindir)/$(target_alias)-gnatlink$(exeext); \
354 if [ -d $(tooldir)/bin/. ] ; then \
355 rm -f $(tooldir)/bin/gnatlink$(exeext); \
356 $(INSTALL_PROGRAM) gnatlink-cross$(exeext) $(tooldir)/bin/gnatlink$(exeext); \
359 $(RM) $(bindir)/gnatlink$(exeext); \
360 $(INSTALL_PROGRAM) gnatlink$(exeext) $(bindir)/gnatlink$(exeext); \
363 -if [ -f gnat1$(exeext) ] ; \
365 if [ -f gnatls-cross$(exeext) ] ; \
367 $(RM) $(bindir)/$(target_alias)-gnatls$(exeext); \
368 $(INSTALL_PROGRAM) gnatls-cross$(exeext) $(bindir)/$(target_alias)-gnatls$(exeext); \
369 if [ -d $(tooldir)/bin/. ] ; then \
370 rm -f $(tooldir)/bin/gnatls$(exeext); \
371 $(INSTALL_PROGRAM) gnatls-cross$(exeext) $(tooldir)/bin/gnatls$(exeext); \
374 $(RM) $(bindir)/gnatls$(exeext); \
375 $(INSTALL_PROGRAM) gnatls$(exeext) $(bindir)/gnatls$(exeext); \
378 -if [ -f gnat1$(exeext) ] ; \
380 if [ -f gnatmake-cross$(exeext) ] ; \
382 $(RM) $(bindir)/$(target_alias)-gnatmake$(exeext); \
383 $(INSTALL_PROGRAM) gnatmake-cross$(exeext) $(bindir)/$(target_alias)-gnatmake$(exeext); \
384 if [ -d $(tooldir)/bin/. ] ; then \
385 rm -f $(tooldir)/bin/gnatmake$(exeext); \
386 $(INSTALL_PROGRAM) gnatmake-cross$(exeext) $(tooldir)/bin/gnatmake$(exeext); \
389 $(RM) $(bindir)/gnatmake$(exeext); \
390 $(INSTALL_PROGRAM) gnatmake$(exeext) $(bindir)/gnatmake$(exeext); \
393 -if [ -f gnat1$(exeext) ] ; \
395 if [ -f gnatmem-cross$(exeext) ] ; \
397 $(RM) $(bindir)/$(target_alias)-gnatmem$(exeext); \
398 $(INSTALL_PROGRAM) gnatmem-cross$(exeext) $(bindir)/$(target_alias)-gnatmem$(exeext); \
400 $(RM) $(bindir)/gnatmem$(exeext); \
401 $(INSTALL_PROGRAM) gnatmem$(exeext) $(bindir)/gnatmem$(exeext); \
404 -if [ -f gnat1$(exeext) ] ; \
406 if [ -f gnatprep-cross$(exeext) ] ; \
408 $(RM) $(bindir)/$(target_alias)-gnatprep$(exeext); \
409 $(INSTALL_PROGRAM) gnatprep-cross$(exeext) $(bindir)/$(target_alias)-gnatprep$(exeext); \
410 if [ -d $(tooldir)/bin/. ] ; then \
411 rm -f $(tooldir)/bin/gnatprep$(exeext); \
412 $(INSTALL_PROGRAM) gnatprep-cross$(exeext) $(tooldir)/bin/gnatprep$(exeext); \
415 $(RM) $(bindir)/gnatprep$(exeext); \
416 $(INSTALL_PROGRAM) gnatprep$(exeext) $(bindir)/gnatprep$(exeext); \
419 -if [ -f gnat1$(exeext) ] ; \
421 if [ -f gnatpsta-cross$(exeext) ] ; \
423 $(RM) $(bindir)/$(target_alias)-gnatpsta$(exeext); \
424 $(INSTALL_PROGRAM) gnatpsta-cross$(exeext) $(bindir)/$(target_alias)-gnatpsta$(exeext); \
425 if [ -d $(tooldir)/bin/. ] ; then \
426 rm -f $(tooldir)/bin/gnatpsta$(exeext); \
427 $(INSTALL_PROGRAM) gnatpsta-cross$(exeext) $(tooldir)/bin/gnatpsta$(exeext); \
430 $(RM) $(bindir)/gnatpsta$(exeext); \
431 $(INSTALL_PROGRAM) gnatpsta$(exeext) $(bindir)/gnatpsta$(exeext); \
434 -if [ -f gnat1$(exeext) ] ; \
436 if [ -f gnatpsys-cross$(exeext) ] ; \
438 $(RM) $(bindir)/$(target_alias)-gnatpsys$(exeext); \
439 $(INSTALL_PROGRAM) gnatpsys-cross$(exeext) $(bindir)/$(target_alias)-gnatpsys$(exeext); \
440 if [ -d $(tooldir)/bin/. ] ; then \
441 rm -f $(tooldir)/bin/gnatpsys$(exeext); \
442 $(INSTALL_PROGRAM) gnatpsys-cross$(exeext) $(tooldir)/bin/gnatpsys$(exeext); \
445 $(RM) $(bindir)/gnatpsys$(exeext); \
446 $(INSTALL_PROGRAM) gnatpsys$(exeext) $(bindir)/gnatpsys$(exeext); \
449 -if [ -f gnat1$(exeext) ] ; \
451 if [ -f gnatxref-cross$(exeext) ] ; \
453 $(RM) $(bindir)/$(target_alias)-gnatxref$(exeext); \
454 $(INSTALL_PROGRAM) gnatxref-cross$(exeext) $(bindir)/$(target_alias)-gnatxref$(exeext); \
456 $(RM) $(bindir)/gnatxref$(exeext); \
457 $(INSTALL_PROGRAM) gnatxref$(exeext) $(bindir)/gnatxref$(exeext); \
460 -if [ -f gnat1$(exeext) ] ; \
462 if [ -f gnatfind-cross$(exeext) ] ; \
464 $(RM) $(bindir)/$(target_alias)-gnatfind$(exeext); \
465 $(INSTALL_PROGRAM) gnatfind-cross$(exeext) $(bindir)/$(target_alias)-gnatfind$(exeext); \
467 $(RM) $(bindir)/gnatfind$(exeext); \
468 $(INSTALL_PROGRAM) gnatfind$(exeext) $(bindir)/gnatfind$(exeext); \
472 # Gnatlbr is only use on VMS
474 -if [ -f gnat1$(exeext) ] ; \
476 if [ -f gnatchop$(exeext) ] ; \
478 $(RM) $(bindir)/gnatchop$(exeext); \
479 $(INSTALL_PROGRAM) gnatchop$(exeext) $(bindir)/gnatchop$(exeext); \
481 if [ -f gnatlbr$(exeext) ] ; \
483 $(RM) $(bindir)/gnatlbr$(exeext); \
484 $(INSTALL_PROGRAM) gnatlbr$(exeext) $(bindir)/gnatlbr$(exeext); \
488 # Gnatdll is only use on Windows
490 -if [ -f gnat1$(exeext) ] ; \
492 $(RM) $(bindir)/gnatdll$(exeext); \
493 $(INSTALL_PROGRAM) gnatdll$(exeext) $(bindir)/gnatdll$(exeext); \
496 # Finally, install the library
498 -if [ -f gnat1$(exeext) ] ; \
500 $(MAKE) $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) install-gnatlib; \
504 $(MAKE) -f ada/Makefile $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) install-gnatlib
510 -$(RM) $(bindir)/gnatbind$(exeext)
511 -$(RM) $(bindir)/gnatbl$(exeext)
512 -$(RM) $(bindir)/gnatchop$(exeext)
513 -$(RM) $(bindir)/gnatcmd$(exeext)
514 -$(RM) $(bindir)/gnatdll$(exeext)
515 -$(RM) $(bindir)/gnatkr$(exeext)
516 -$(RM) $(bindir)/gnatlink$(exeext)
517 -$(RM) $(bindir)/gnatls$(exeext)
518 -$(RM) $(bindir)/gnatmake$(exeext)
519 -$(RM) $(bindir)/gnatmem$(exeext)
520 -$(RM) $(bindir)/gnatprep$(exeext)
521 -$(RM) $(bindir)/gnatpsta$(exeext)
522 -$(RM) $(bindir)/gnatpsys$(exeext)
523 -$(RM) $(bindir)/$(target_alias)-gnatbind$(exeext)
524 -$(RM) $(bindir)/$(target_alias)-gnatbl$(exeext)
525 -$(RM) $(bindir)/$(target_alias)-gnatchop$(exeext)
526 -$(RM) $(bindir)/$(target_alias)-gnatcmd$(exeext)
527 -$(RM) $(bindir)/$(target_alias)-gnatkr(exeext)
528 -$(RM) $(bindir)/$(target_alias)-gnatlink$(exeext)
529 -$(RM) $(bindir)/$(target_alias)-gnatls$(exeext)
530 -$(RM) $(bindir)/$(target_alias)-gnatmake$(exeext)
531 -$(RM) $(bindir)/$(target_alias)-gnatmem$(exeext)
532 -$(RM) $(bindir)/$(target_alias)-gnatprep$(exeext)
533 -$(RM) $(bindir)/$(target_alias)-gnatpsta$(exeext)
534 -$(RM) $(bindir)/$(target_alias)-gnatpsys$(exeext)
535 -$(RM) $(tooldir)/bin/gnatbind$(exeext)
536 -$(RM) $(tooldir)/bin/gnatbl$(exeext)
537 -$(RM) $(tooldir)/bin/gnatchop$(exeext)
538 -$(RM) $(tooldir)/bin/gnatcmd$(exeext)
539 -$(RM) $(tooldir)/bin/gnatdll$(exeext)
540 -$(RM) $(tooldir)/bin/gnatkr$(exeext)
541 -$(RM) $(tooldir)/bin/gnatlink$(exeext)
542 -$(RM) $(tooldir)/bin/gnatls$(exeext)
543 -$(RM) $(tooldir)/bin/gnatmake$(exeext)
544 -$(RM) $(tooldir)/bin/gnatmem$(exeext)
545 -$(RM) $(tooldir)/bin/gnatprep$(exeext)
546 -$(RM) $(tooldir)/bin/gnatpsta$(exeext)
547 -$(RM) $(tooldir)/bin/gnatpsys$(exeext)
548 # Gnatlbr and Gnatchop are only used on VMS
549 -$(RM) $(bindir)/gnatlbr$(exeext) $(bindir)/gnatchop$(exeext)
552 # A lot of the ancillary files are deleted by the main makefile.
553 # We just have to delete files specific to us.
556 -$(RM) ada/*$(objext) ada/*.ali ada/b_*.c
557 -$(RM) ada/sdefault.adb ada/stamp-sdefault
562 -$(RM) gnatbl$(exeext)
563 -$(RM) gnatchop$(exeext)
564 -$(RM) gnatcmd$(exeext)
565 -$(RM) gnatdll$(exeext)
566 -$(RM) gnatkr$(exeext)
567 -$(RM) gnatlink$(exeext)
568 -$(RM) gnatls$(exeext)
569 -$(RM) gnatmake$(exeext)
570 -$(RM) gnatmem$(exeext)
571 -$(RM) gnatprep$(exeext)
572 -$(RM) gnatpsta$(exeext)
573 -$(RM) gnatpsys$(exeext)
574 -$(RM) gnatfind$(exeext)
575 -$(RM) gnatxref$(exeext)
576 # Gnatlbr and Gnatchop are only used on VMS
577 -$(RM) gnatchop$(exeext) gnatlbr$(exeext)
582 ada.maintainer-clean:
587 -$(RM) ada/treeprs.ads
590 # The main makefile has already created stage?/ada
593 -$(MV) ada/*$(objext) ada/*.ali ada/b_*.c stage1/ada
594 -$(MV) ada/stamp-* stage1/ada
596 -$(MV) ada/*$(objext) ada/*.ali ada/b_*.c stage2/ada
597 -$(MV) ada/stamp-* stage2/ada
599 -$(MV) ada/*$(objext) ada/*.ali ada/b_*.c stage3/ada
600 -$(MV) ada/stamp-* stage3/ada
602 -$(MV) ada/*$(objext) ada/*.ali ada/b_*.c stage4/ada
603 -$(MV) ada/stamp-* stage4/ada
607 # Bootstrapping targets for just GNAT - use the same stage directories
610 $(MAKE) gnat1$(exeext) gnatbind$(exeext) CC="$(CC)" \
612 $(MAKE) gnatboot2 BOOT_CFLAGS="$(BOOT_CFLAGS)" \
613 BOOT_ADAFLAGS="$(BOOT_ADAFLAGS)" \
614 LDFLAGS="$(BOOT_LDFLAGS)"
618 $(MAKE) gnat1$(exeext) gnatbind$(exeext) CC="gcc -B../stage1/"\
619 CFLAGS="$(BOOT_CFLAGS)" \
620 ADAFLAGS="$(BOOT_ADAFLAGS)"\
621 LDFLAGS="$(BOOT_LDFLAGS)" \
622 STAGE_PREFIX=../stage1/
623 $(MAKE) gnatboot3 BOOT_CFLAGS="$(BOOT_CFLAGS)" \
624 BOOT_ADAFLAGS="$(BOOT_ADAFLAGS)" \
625 LDFLAGS="$(BOOT_LDFLAGS)"
629 $(MAKE) gnat1$(exeext) gnatbind$(exeext) CC="gcc -B../stage2/"\
630 CFLAGS="$(BOOT_CFLAGS)" \
631 ADAFLAGS="$(BOOT_ADAFLAGS)"\
632 LDFLAGS="$(BOOT_LDFLAGS)" \
633 STAGE_PREFIX=../stage2/
638 -$(MV) gnat1$(exeext) gnatbind$(exeext) stage1
639 -$(MV) ada/*$(objext) ada/*.ali stage1/ada
640 -$(MV) ada/stamp-* stage1/ada
645 -$(MV) gnat1$(exeext) gnatbind$(exeext) stage2
646 -$(MV) ada/*$(objext) ada/*.ali stage2/ada
647 -$(MV) ada/stamp-* stage2/ada