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.
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, 59 Temple Place - Suite 330,
20 #Boston, MA 02111-1307, USA.
22 # This file provides the language dependent support in the main Makefile.
23 # Each language makefile fragment must provide the following targets:
25 # foo.all.cross, foo.start.encap, foo.rest.encap,
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
31 # where `foo' is the name of the language.
33 # It should also provide rules for:
35 # - making any compiler driver (eg: g++)
36 # - the compiler proper (eg: cc1plus)
37 # - define the names for selecting the language in LANGUAGES.
48 # Extra flags to pass to recursive makes.
49 BOOT_ADAFLAGS= $(ADAFLAGS)
50 ADAFLAGS= -gnatpg -gnata
51 GNATLIBFLAGS= -W -Wall -gnatpg
53 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
54 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
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)"
67 # Define the names for selecting Ada in LANGUAGES.
68 Ada ada: gnat1$(exeext) gnatbind$(exeext)
70 # Tell GNU Make to ignore these, if they exist.
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../../" \
79 "ADAFLAGS=$(ADAFLAGS)" \
80 "ADA_INCLUDES=-I../rts" \
81 "GNATMAKE=../../gnatmake" \
82 "GNATLINK=../../gnatlink" \
83 "GNATBIND=../../gnatbind"
85 gnat1$(exeext): prefix.o attribs.o $(LIBDEPS) $(BACKEND) force
86 $(MAKE) -C ada $(SUBDIR_FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
89 gnatbind$(exeext): $(CONFIG_H) prefix.o force
90 $(MAKE) -C ada $(SUBDIR_FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
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
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
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" \
117 gnattools1-re gnattools2
120 $(MAKE) -C ada $(FLAGS_TO_PASS) GNATMAKE=../gnatmake rts-none
122 install-rts-none: force
123 $(MAKE) -C ada $(FLAGS_TO_PASS) install-rts RTS_NAME=none
126 $(MAKE) -C ada $(FLAGS_TO_PASS) GNATMAKE=../gnatmake rts-ravenscar
128 install-rts-ravenscar: force
129 $(MAKE) -C ada $(FLAGS_TO_PASS) install-rts RTS_NAME=ravenscar
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)" \
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)" \
150 # use only for native compiler
151 gnatlib_and_tools: gnatlib gnattools
155 $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) gnat-cross
160 -if [ -f gnatbind$(exeext) ] ; \
162 $(MV) gnatbind$(exeext) gnatbind-cross$(exeext); \
164 -if [ -f gnatbl$(exeext) ] ; \
166 $(MV) gnatbl$(exeext) gnatbl-cross$(exeext); \
168 -if [ -f gnatchop$(exeext) ] ; \
170 $(MV) gnatchop$(exeext) gnatchop-cross$(exeext); \
172 -if [ -f gnat$(exeext) ] ; \
174 $(MV) gnat$(exeext) gnat-cross$(exeext); \
176 -if [ -f gnatkr$(exeext) ] ; \
178 $(MV) gnatkr$(exeext) gnatkr-cross$(exeext); \
180 -if [ -f gnatlink$(exeext) ] ; \
182 $(MV) gnatlink$(exeext) gnatlink-cross$(exeext); \
184 -if [ -f gnatls$(exeext) ] ; \
186 $(MV) gnatls$(exeext) gnatls-cross$(exeext); \
188 -if [ -f gnatmake$(exeext) ] ; \
190 $(MV) gnatmake$(exeext) gnatmake-cross$(exeext); \
192 -if [ -f gnatmem$(exeext) ] ; \
194 $(MV) gnatmem$(exeext) gnatmem-cross$(exeext); \
196 -if [ -f gnatname$(exeext) ] ; \
198 $(MV) gnatname$(exeext) gnatname-cross$(exeext); \
200 -if [ -f gnatprep$(exeext) ] ; \
202 $(MV) gnatprep$(exeext) gnatprep-cross$(exeext); \
204 -if [ -f gnatpsta$(exeext) ] ; \
206 $(MV) gnatpsta$(exeext) gnatpsta-cross$(exeext); \
208 -if [ -f gnatxref$(exeext) ] ; \
210 $(MV) gnatxref$(exeext) gnatxref-cross$(exeext); \
212 -if [ -f gnatfind$(exeext) ] ; \
214 $(MV) gnatfind$(exeext) gnatfind-cross$(exeext); \
221 ada.generated-manpages:
224 # gnat1 is installed elsewhere as part of $(COMPILERS).
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
233 -if [ -f gnat1$(exeext) ] ; \
235 if [ -f gnatbind-cross$(exeext) ] ; \
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); \
244 $(RM) $(bindir)/gnatbind$(exeext); \
245 $(INSTALL_PROGRAM) gnatbind$(exeext) $(bindir)/gnatbind$(exeext); \
248 -if [ -f gnat1$(exeext) ] ; \
250 if [ -f gnatbl-cross$(exeext) ] ; \
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); \
259 $(RM) $(bindir)/gnatbl$(exeext); \
260 $(INSTALL_PROGRAM) gnatbl$(exeext) $(bindir)/gnatbl$(exeext); \
263 -if [ -f gnat1$(exeext) ] ; \
265 if [ -f gnatchop-cross$(shext) ] ; \
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); \
274 $(RM) $(bindir)/gnatchop$(shext); \
275 $(INSTALL_PROGRAM) $(srcdir)/ada/gnatchop$(shext) $(bindir)/gnatchop$(shext); \
278 -if [ -f gnat1$(exeext) ] ; \
280 if [ -f gnatchop-cross$(exeext) ] ; \
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); \
289 $(RM) $(bindir)/gnatchop$(exeext); \
290 $(INSTALL_PROGRAM) gnatchop$(exeext) $(bindir)/gnatchop$(exeext); \
293 -if [ -f gnat1$(exeext) ] ; \
295 if [ -f gnat-cross$(exeext) ] ; \
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); \
304 $(RM) $(bindir)/gnat$(exeext); \
305 $(INSTALL_PROGRAM) gnat$(exeext) $(bindir)/gnat$(exeext); \
308 -if [ -f gnat1$(exeext) ] ; \
310 if [ -f gnatkr-cross$(exeext) ] ; \
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); \
319 $(RM) $(bindir)/gnatkr$(exeext); \
320 $(INSTALL_PROGRAM) gnatkr$(exeext) $(bindir)/gnatkr$(exeext); \
323 -if [ -f gnat1$(exeext) ] ; \
325 if [ -f gnatlink-cross$(exeext) ] ; \
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); \
334 $(RM) $(bindir)/gnatlink$(exeext); \
335 $(INSTALL_PROGRAM) gnatlink$(exeext) $(bindir)/gnatlink$(exeext); \
338 -if [ -f gnat1$(exeext) ] ; \
340 if [ -f gnatls-cross$(exeext) ] ; \
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); \
349 $(RM) $(bindir)/gnatls$(exeext); \
350 $(INSTALL_PROGRAM) gnatls$(exeext) $(bindir)/gnatls$(exeext); \
353 -if [ -f gnat1$(exeext) ] ; \
355 if [ -f gnatmake-cross$(exeext) ] ; \
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); \
364 $(RM) $(bindir)/gnatmake$(exeext); \
365 $(INSTALL_PROGRAM) gnatmake$(exeext) $(bindir)/gnatmake$(exeext); \
368 -if [ -f gnat1$(exeext) ] ; \
370 if [ -f gnatmem-cross$(exeext) ] ; \
372 $(RM) $(bindir)/$(target_alias)-gnatmem$(exeext); \
373 $(INSTALL_PROGRAM) gnatmem-cross$(exeext) $(bindir)/$(target_alias)-gnatmem$(exeext); \
375 $(RM) $(bindir)/gnatmem$(exeext); \
376 $(INSTALL_PROGRAM) gnatmem$(exeext) $(bindir)/gnatmem$(exeext); \
379 -if [ -f gnat1$(exeext) ] ; \
381 if [ -f gnatname-cross$(exeext) ] ; \
383 $(RM) $(bindir)/$(target_alias)-gnatname$(exeext); \
384 $(INSTALL_PROGRAM) gnatname-cross$(exeext) $(bindir)/$(target_alias)-gnatname$(exeext); \
386 $(RM) $(bindir)/gnatname$(exeext); \
387 $(INSTALL_PROGRAM) gnatname$(exeext) $(bindir)/gnatname$(exeext); \
390 -if [ -f gnat1$(exeext) ] ; \
392 if [ -f gnatprep-cross$(exeext) ] ; \
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); \
401 $(RM) $(bindir)/gnatprep$(exeext); \
402 $(INSTALL_PROGRAM) gnatprep$(exeext) $(bindir)/gnatprep$(exeext); \
405 -if [ -f gnat1$(exeext) ] ; \
407 if [ -f gnatpsta-cross$(exeext) ] ; \
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); \
416 $(RM) $(bindir)/gnatpsta$(exeext); \
417 $(INSTALL_PROGRAM) gnatpsta$(exeext) $(bindir)/gnatpsta$(exeext); \
420 -if [ -f gnat1$(exeext) ] ; \
422 if [ -f gnatxref-cross$(exeext) ] ; \
424 $(RM) $(bindir)/$(target_alias)-gnatxref$(exeext); \
425 $(INSTALL_PROGRAM) gnatxref-cross$(exeext) $(bindir)/$(target_alias)-gnatxref$(exeext); \
427 $(RM) $(bindir)/gnatxref$(exeext); \
428 $(INSTALL_PROGRAM) gnatxref$(exeext) $(bindir)/gnatxref$(exeext); \
431 -if [ -f gnat1$(exeext) ] ; \
433 if [ -f gnatfind-cross$(exeext) ] ; \
435 $(RM) $(bindir)/$(target_alias)-gnatfind$(exeext); \
436 $(INSTALL_PROGRAM) gnatfind-cross$(exeext) $(bindir)/$(target_alias)-gnatfind$(exeext); \
438 $(RM) $(bindir)/gnatfind$(exeext); \
439 $(INSTALL_PROGRAM) gnatfind$(exeext) $(bindir)/gnatfind$(exeext); \
442 -if [ -f gnat1$(exeext) ] ; \
444 if [ -f gnatchop$(exeext) ] ; \
446 $(RM) $(bindir)/gnatchop$(exeext); \
447 $(INSTALL_PROGRAM) gnatchop$(exeext) $(bindir)/gnatchop$(exeext); \
450 # Gnatlbr is only used on VMS.
452 -if [ -f gnat1$(exeext) ] ; \
454 if [ -f gnatlbr$(exeext) ] ; \
456 $(RM) $(bindir)/gnatlbr$(exeext); \
457 $(INSTALL_PROGRAM) gnatlbr$(exeext) $(bindir)/gnatlbr$(exeext); \
461 # Gnatdll is only use on Windows
463 -if [ -f gnat1$(exeext) ] ; \
465 $(RM) $(bindir)/gnatdll$(exeext); \
466 $(INSTALL_PROGRAM) gnatdll$(exeext) $(bindir)/gnatdll$(exeext); \
469 # Finally, install the library
471 -if [ -f gnat1$(exeext) ] ; \
473 $(MAKE) $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) install-gnatlib; \
477 $(MAKE) -f ada/Makefile $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) install-gnatlib
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)
525 # A lot of the ancillary files are deleted by the main makefile.
526 # We just have to delete files specific to us.
529 -$(RM) ada/*$(objext) ada/*.ali ada/b_*.c
530 -$(RM) ada/sdefault.adb ada/stamp-sdefault
535 -$(RM) gnatbl$(exeext)
536 -$(RM) gnatchop$(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)
556 ada.maintainer-clean:
561 -$(RM) ada/treeprs.ads
564 # The main makefile has already created stage?/ada
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
581 # Bootstrapping targets for just GNAT - use the same stage directories
584 $(MAKE) gnat1$(exeext) gnatbind$(exeext) CC="$(CC)" \
586 $(MAKE) gnatboot2 BOOT_CFLAGS="$(BOOT_CFLAGS)" \
587 BOOT_ADAFLAGS="$(BOOT_ADAFLAGS)" \
588 LDFLAGS="$(BOOT_LDFLAGS)"
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)"
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/
612 -$(MV) gnat1$(exeext) gnatbind$(exeext) stage1
613 -$(MV) ada/*$(objext) ada/*.ali stage1/ada
614 -$(MV) ada/stamp-* stage1/ada
619 -$(MV) gnat1$(exeext) gnatbind$(exeext) stage2
620 -$(MV) ada/*$(objext) ada/*.ali stage2/ada
621 -$(MV) ada/stamp-* stage2/ada