1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2004 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC 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)
11 #GCC 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.
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING. If not, write to
18 #the Free Software Foundation, 59 Temple Place - Suite 330,
19 #Boston, MA 02111-1307, USA.
21 # The makefile built from this file lives in the language subdirectory.
22 # Its purpose is to provide support for:
24 # 1) recursion where necessary, and only then (building .o's), and
25 # 2) building and debugging cc1 from the language subdirectory, and
28 # The parent makefile handles all other chores, with help from the
29 # language makefile fragment, of course.
31 # The targets for external use are:
32 # all, TAGS, ???mostlyclean, ???clean.
34 # This makefile will only work with Gnu make.
35 # The rules are written assuming a minimum subset of tools are available:
38 # MAKE: Only Gnu make will work.
39 # MV: Must accept (at least) one, maybe wildcard, source argument,
40 # a file or directory destination, and support creation/
41 # modification date preservation. Gnu mv -f works.
42 # RM: Must accept an arbitrary number of space separated file
43 # arguments, or one wildcard argument. Gnu rm works.
44 # RMDIR: Must delete a directory and all its contents. Gnu rm -rf works.
45 # ECHO: Must support command line redirection. Any Unix-like
46 # shell will typically provide this, otherwise a custom version
47 # is trivial to write.
49 # MKDIR: Gnu mkdir works.
50 # CHMOD: Gnu chmod works.
51 # true: Does nothing and returns a normal successful return code.
52 # pwd: Prints the current directory on stdout.
53 # cd: Change directory.
56 # BISON: Gnu bison works.
57 # FLEX: Gnu flex works.
58 # Other miscellaneous tools for obscure targets.
60 # Tell GNU make 3.79 not to run this directory in parallel.
61 # Not all of the required dependencies are present.
64 # Suppress smart makes who think they know how to automake Yacc files
67 # Variables that exist for you to override.
68 # See below for how to change them for certain systems.
70 # Various ways of specifying flags for compilations:
71 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
72 # BOOT_CFLAGS is the value of CFLAGS to pass
73 # to the stage2 and stage3 compilations
74 # XCFLAGS is used for most compilations but not when using the GCC just built.
77 BOOT_CFLAGS = -O $(CFLAGS)
78 # These exists to be overridden by the x-* and t-* files, respectively.
108 # How to invoke ranlib.
110 # Test to use to see whether ranlib exists on the system.
111 RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
114 PWD_COMMAND = $${PWDCMD-pwd}
115 # How to copy preserving the date
116 INSTALL_DATA_DATE = cp -p
119 GNATBIND = $(STAGE_PREFIX)gnatbind
120 GNATBIND_FLAGS = -static -x
122 ADAFLAGS = -W -Wall -gnatpg -gnata
123 SOME_ADAFLAGS =-gnata
124 FORCE_DEBUG_ADAFLAGS = -g
125 GNATLIBFLAGS = -gnatpg
126 GNATLIBCFLAGS = -g -O2
127 GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
129 ALL_ADA_CFLAGS = $(X_ADA_CFLAGS) $(T_ADA_CFLAGS) $(ADA_CFLAGS)
130 ALL_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \
132 MOST_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \
139 ADDR2LINE_SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
140 SYMDEPS = $(LIBINTL_DEP)
141 OUTPUT_OPTION = @OUTPUT_OPTION@
150 # Define this as & to perform parallel make on a Sequent.
151 # Note that this has some bugs, and it seems currently necessary
152 # to compile all the gen* files first by hand to avoid erroneous results.
155 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
156 # It omits XCFLAGS, and specifies -B./.
157 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
158 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)
160 # Tools to use when building a cross-compiler.
161 # These are used because `configure' appends `cross-make'
162 # to the makefile when making a cross-compiler.
164 # We don't use cross-make. Instead we use the tools from the build tree,
165 # if they are available.
166 # program_transform_name and objdir are set by configure.in.
167 program_transform_name =
171 xmake_file = @xmake_file@
172 tmake_file = @tmake_file@
173 host_canonical=@host@
174 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
175 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
177 # Directory where sources are, from where we are.
181 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
182 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
183 fcurdir := $(shell ${PWD_COMMAND})
184 fcurpfx := $(shell ${PWD_COMMAND})/
186 # Top build directory, relative to here.
189 # Internationalization library.
191 LIBINTL_DEP = @LIBINTL_DEP@
193 # Any system libraries needed just for GNAT.
194 SYSLIBS = @GNAT_LIBEXC@
196 # List of extra object files linked in with various programs.
197 EXTRA_GNATTOOLS_OBJS = ../../prefix.o ../../version.o
199 # List extra gnattools
202 # List of target dependent sources, overridden below as necessary
205 # Type of tools build we are doing; default is not compiling tools.
208 # End of variables for you to override.
212 # This tells GNU Make version 3 not to put all variables in the environment.
215 # tmake_file and xmake_file expand to lists with entries of the form
216 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
217 # need to adjust the paths. There can't be spaces in the subst arguments
218 # or we get spurious spaces in the actual list of files to include.
221 ifneq ($(tmake_file),)
222 include $(subst /config,/../config,$(tmake_file))
226 ifneq ($(xmake_file),)
227 include $(subst /config,/../config,$(xmake_file))
230 # Now figure out from those variables how to compile and link.
232 all.indirect: Makefile ../gnat1$(exeext)
234 # IN_GCC distinguishes between code compiled into GCC itself and other
235 # programs built during a bootstrap.
236 # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler.
237 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
239 # This is the variable actually used when we compile.
240 LOOSE_CFLAGS = `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
241 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_CFLAGS) \
245 ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
247 # This is where we get libiberty.a from.
248 LIBIBERTY = ../../libiberty/libiberty.a
250 # How to link with both our special library facilities
251 # and the system's installed libraries.
252 LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
253 LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
254 TOOLS_LIBS = $(LIBGNAT) $(EXTRA_GNATTOOLS_OBJS) ../../../libiberty/libiberty.a $(SYSLIBS)
256 # Specify the directories to be searched for header files.
257 # Both . and srcdir are used, in that order,
258 # so that tm.h and config.h will be found in the compilation
259 # subdirectory rather than in the source directory.
260 INCLUDES = -I- -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config \
261 -I$(srcdir)/../../include
263 ADA_INCLUDES = -I- -I. -I$(srcdir)
265 INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir) -I$(fsrcdir)/../config \
266 -I$(fsrcdir)/../../include -I$(fsrcdir)/..
267 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)
269 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
272 # Say how to compile Ada programs.
273 .SUFFIXES: .ada .adb .ads .asm
275 # Always use -I$(srcdir)/config when compiling.
277 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
280 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< \
284 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
287 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
289 # how to regenerate this file
290 Makefile: ../config.status $(srcdir)/Makefile.in $(srcdir)/../version.c
292 LANGUAGES="$(CONFIG_LANGUAGES)" \
294 CONFIG_FILES=ada/Makefile $(SHELL) config.status
296 # This tells GNU make version 3 not to export all the variables
297 # defined in this file into the environment.
300 # Lists of files for various purposes.
302 GNATLINK_OBJS = gnatlink.o link.o \
303 ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o gnatvsn.o \
304 hostparm.o namet.o opt.o osint.o output.o rident.o sdefault.o \
305 stylesw.o switch.o table.o tree_io.o types.o validsw.o widechar.o
307 GNATMAKE_OBJS = ctrl_c.o ali.o ali-util.o s-casuti.o \
308 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
309 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
310 gnatmake.o gnatvsn.o hostparm.o krunch.o lib.o make.o makeusg.o \
311 mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o mlib-utl.o \
312 namet.o nlists.o opt.o osint.o osint-m.o output.o \
313 prj.o prj-attr.o prj-com.o prj-dect.o prj-env.o prj-err.o prj-ext.o prj-nmsc.o \
314 prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o \
315 rident.o scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o \
316 sinfo.o sinput.o sinput-c.o sinput-p.o \
317 snames.o stand.o stringt.o styleg.o stylesw.o validsw.o switch.o switch-m.o \
318 table.o targparm.o tempdir.o tree_io.o types.o \
319 uintp.o uname.o urealp.o usage.o widechar.o \
320 $(EXTRA_GNATMAKE_OBJS)
322 # Convert the target variable into a space separated list of architecture,
323 # manufacturer, and operating system and assign each of those to its own
326 host:=$(subst -, ,$(host_canonical))
327 targ:=$(subst -, ,$(target))
328 arch:=$(word 1,$(targ))
329 ifeq ($(words $(targ)),2)
331 osys:=$(word 2,$(targ))
333 manu:=$(word 2,$(targ))
334 osys:=$(word 3,$(targ))
337 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
338 # The members of each pair must be separated by a '<' and no whitespace.
339 # Each pair must be separated by some amount of whitespace from the following
344 LIBGNAT_TARGET_PAIRS = \
345 a-intnam.ads<4nintnam.ads \
346 s-inmaop.adb<5ninmaop.adb \
347 s-intman.adb<5nintman.adb \
348 s-osinte.ads<5nosinte.ads \
349 s-osprim.adb<7sosprim.adb \
350 s-taprop.adb<5ntaprop.adb \
351 s-taspri.ads<5ntaspri.ads
353 # Default shared object option. Note that we rely on the fact that the "soname"
354 # option will always be present and last in this flag, so that we can have
355 # $(SO_OPTS)libgnat-x.xx
357 SO_OPTS = -Wl,-soname,
359 # Default gnatlib-shared target.
360 # By default, equivalent to gnatlib.
361 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
362 # target when supported.
363 GNATLIB_SHARED = gnatlib
365 # default value for gnatmake's target dependent file
368 # By default, do not distribute prefix.o (in libgccprefix), since it is only
369 # needed by external GNAT tools such as gnatdist and Glide.
370 # Override this variable on native platforms when needed.
373 # To avoid duplicate code, use this variable to set PREFIX_OBJS when needed:
374 PREFIX_REAL_OBJS = ../prefix.o \
375 ../../libiberty/concat.o \
376 ../../libiberty/xmalloc.o \
377 ../../libiberty/xstrdup.o \
378 ../../libiberty/xexit.o
380 LIB_VERSION = $(strip $(shell grep ' Library_Version :' $(fsrcpfx)gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
382 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
383 # $(strip STRING) removes leading and trailing spaces from STRING.
384 # If what's left is null then it's a match.
386 ifeq ($(strip $(filter-out %86 os2 OS2 os2_emx,$(arch) $(osys))),)
387 LIBGNAT_TARGET_PAIRS = \
388 a-excpol.adb<4wexcpol.adb \
389 a-intnam.ads<4nintnam.ads \
390 a-numaux.adb<86numaux.adb \
391 a-numaux.ads<86numaux.ads \
392 s-inmaop.adb<5ninmaop.adb \
393 s-interr.adb<5ointerr.adb \
394 s-intman.adb<5nintman.adb \
395 s-mastop.adb<5omastop.adb \
396 s-osinte.adb<5oosinte.adb \
397 s-osinte.ads<5oosinte.ads \
398 s-osprim.adb<5oosprim.adb \
399 s-parame.adb<5oparame.adb \
400 system.ads<5osystem.ads \
401 s-taprop.adb<5otaprop.adb \
402 s-taspri.ads<5otaspri.ads
404 EXTRA_GNATRTL_NONTASKING_OBJS = \
411 ifeq ($(strip $(filter-out %86 interix%,$(arch) $(osys))),)
412 LIBGNAT_TARGET_PAIRS = \
413 a-excpol.adb<4hexcpol.adb \
414 a-intnam.ads<4pintnam.ads \
415 a-numaux.adb<86numaux.adb \
416 a-numaux.ads<86numaux.ads \
417 g-soccon.ads<3psoccon.ads \
418 s-inmaop.adb<7sinmaop.adb \
419 s-intman.adb<7sintman.adb \
420 s-mastop.adb<5omastop.adb \
421 s-osinte.adb<7sosinte.adb \
422 s-osinte.ads<5posinte.ads \
423 s-osprim.adb<5posprim.adb \
424 s-taprop.adb<7staprop.adb \
425 system.ads<5psystem.ads \
426 s-taspri.ads<7staspri.ads \
427 s-tpopsp.adb<7stpopsp.adb
429 THREADSLIB = -lgthreads -lmalloc
430 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
433 # sysv5uw is SCO UnixWare 7
434 ifeq ($(strip $(filter-out %86 sysv5uw%,$(arch) $(osys))),)
435 LIBGNAT_TARGET_PAIRS = \
436 a-excpol.adb<4wexcpol.adb \
437 a-intnam.ads<41intnam.ads \
438 a-numaux.adb<86numaux.adb \
439 a-numaux.ads<86numaux.ads \
440 s-inmaop.adb<7sinmaop.adb \
441 s-intman.adb<7sintman.adb \
442 s-mastop.adb<5omastop.adb \
443 s-osinte.ads<51osinte.ads \
444 s-osinte.adb<51osinte.adb \
445 s-osprim.adb<5posprim.adb \
446 s-taprop.adb<7staprop.adb \
447 s-taspri.ads<7staspri.ads \
448 s-tpopsp.adb<5atpopsp.adb \
449 system.ads<51system.ads \
450 g-soccon.ads<31soccon.ads \
451 g-soliop.ads<31soliop.ads
453 THREADSLIB = -lthread
454 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
456 GNATLIB_SHARED = gnatlib-shared-dual
457 LIBRARY_VERSION := $(LIB_VERSION)
460 ifeq ($(strip $(filter-out alpha% dec vx%,$(targ))),)
461 LIBGNAT_TARGET_PAIRS = \
462 a-sytaco.ads<4zsytaco.ads \
463 a-sytaco.adb<4zsytaco.adb \
464 a-intnam.ads<4zintnam.ads \
465 a-numaux.ads<4znumaux.ads \
466 s-inmaop.adb<7sinmaop.adb \
467 s-interr.adb<5zinterr.adb \
468 s-intman.ads<5zintman.ads \
469 s-intman.adb<5zintman.adb \
470 s-osinte.adb<5zosinte.adb \
471 s-osinte.ads<5zosinte.ads \
472 s-osprim.adb<5zosprim.adb \
473 s-parame.ads<5zparame.ads \
474 s-taprop.adb<5ztaprop.adb \
475 s-tpopsp.adb<5ztpopsp.adb \
476 s-taspri.ads<5ztaspri.ads \
477 s-vxwork.ads<5avxwork.ads \
478 g-soccon.ads<3zsoccon.ads \
479 g-socthi.ads<3zsocthi.ads \
480 g-socthi.adb<3zsocthi.adb \
481 system.ads<5zsystem.ads
483 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
484 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
487 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
488 LIBGNAT_TARGET_PAIRS = \
489 a-sytaco.ads<4zsytaco.ads \
490 a-sytaco.adb<4zsytaco.adb \
491 a-intnam.ads<4zintnam.ads \
492 a-numaux.ads<4znumaux.ads \
493 s-inmaop.adb<7sinmaop.adb \
494 s-interr.adb<5zinterr.adb \
495 s-intman.ads<5zintman.ads \
496 s-intman.adb<5zintman.adb \
497 s-osinte.adb<5zosinte.adb \
498 s-osinte.ads<5zosinte.ads \
499 s-osprim.adb<5zosprim.adb \
500 s-parame.ads<5zparame.ads \
501 s-taprop.adb<5ztaprop.adb \
502 s-taspri.ads<5ztaspri.ads \
503 s-tpopsp.adb<5ztpopsp.adb \
504 s-vxwork.ads<5kvxwork.ads \
505 g-soccon.ads<3zsoccon.ads \
506 g-socthi.ads<3zsocthi.ads \
507 g-socthi.adb<3zsocthi.adb \
508 system.ads<5ksystem.ads
510 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
512 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
513 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
515 ifeq ($(strip $(filter-out yes,$(TRACE))),)
516 LIBGNAT_TARGET_PAIRS += \
517 s-traces.adb<7straces.adb \
518 s-tratas.adb<7stratas.adb \
519 s-trafor.adb<7strafor.adb \
520 s-trafor.ads<7strafor.ads \
521 s-tfsetr.adb<5ztfsetr.adb
525 ifeq ($(strip $(filter-out powerpc% wrs vxworks,$(targ))),)
526 LIBGNAT_TARGET_PAIRS = \
527 a-sytaco.ads<4zsytaco.ads \
528 a-sytaco.adb<4zsytaco.adb \
529 a-intnam.ads<4zintnam.ads \
530 a-numaux.ads<4znumaux.ads \
531 s-inmaop.adb<7sinmaop.adb \
532 s-interr.adb<5zinterr.adb \
533 s-intman.ads<5zintman.ads \
534 s-intman.adb<5zintman.adb \
535 s-osinte.adb<5zosinte.adb \
536 s-osinte.ads<5zosinte.ads \
537 s-osprim.adb<5zosprim.adb \
538 s-parame.ads<5zparame.ads \
539 s-taprop.adb<5ztaprop.adb \
540 s-taspri.ads<5ztaspri.ads \
541 s-tpopsp.adb<5ztpopsp.adb \
542 s-vxwork.ads<5pvxwork.ads \
543 g-soccon.ads<3zsoccon.ads \
544 g-socthi.ads<3zsocthi.ads \
545 g-socthi.adb<3zsocthi.adb \
546 system.ads<5ysystem.ads
548 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
550 EXTRA_HIE_NONE_TARGET_PAIRS= \
551 system.ads<50system.ads
553 EXTRA_RAVEN_SOURCES=i-vxwork.ads s-vxwork.ads
554 EXTRA_RAVEN_OBJS=i-vxwork.o s-vxwork.o
555 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
556 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
557 HIE_RAVEN_TARGET_PAIRS=\
558 $(HIE_NONE_TARGET_PAIRS) \
559 a-reatim.ads<1areatim.ads \
560 a-reatim.adb<1areatim.adb \
561 a-retide.adb<1aretide.adb \
562 a-interr.adb<1ainterr.adb \
563 s-interr.ads<1sinterr.ads \
564 s-interr.adb<1sinterr.adb \
565 s-taskin.ads<1staskin.ads \
566 s-taskin.adb<1staskin.adb \
567 s-tarest.adb<1starest.adb \
568 s-tposen.ads<1stposen.ads \
569 s-tposen.adb<1stposen.adb \
570 s-osinte.adb<1sosinte.adb \
571 s-taprop.ads<1staprop.ads \
572 s-taprop.adb<1staprop.adb \
573 s-taprob.ads<1staprob.ads \
574 s-taprob.adb<1staprob.adb \
575 a-sytaco.ads<1asytaco.ads \
576 a-sytaco.adb<1asytaco.adb \
577 a-intnam.ads<4zintnam.ads \
578 s-osinte.ads<5zosinte.ads \
579 s-parame.ads<5zparame.ads \
580 s-taspri.ads<5ztaspri.ads \
581 s-vxwork.ads<5pvxwork.ads \
582 a-taside.adb<1ataside.adb \
584 ifeq ($(strip $(filter-out yes,$(TRACE))),)
585 LIBGNAT_TARGET_PAIRS += \
586 s-traces.adb<7straces.adb \
587 s-trafor.adb<7strafor.adb \
588 s-trafor.ads<7strafor.ads \
589 s-tratas.adb<7stratas.adb \
590 s-tfsetr.adb<5ztfsetr.adb
594 ifeq ($(strip $(filter-out powerpc% unknown elf,$(targ))),)
595 EXTRA_HIE_NONE_TARGET_PAIRS= \
596 system.ads<59system.ads
598 LIBGNAT_TARGET_PAIRS = \
599 $(HIE_NONE_TARGET_PAIRS)
602 ifeq ($(strip $(filter-out sparc% unknown elf,$(targ))),)
603 EXTRA_HIE_NONE_TARGET_PAIRS= \
604 system.ads<5rsystem.ads
606 LIBGNAT_TARGET_PAIRS = \
607 $(HIE_NONE_TARGET_PAIRS)
610 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
611 LIBGNAT_TARGET_PAIRS = \
612 a-sytaco.ads<4zsytaco.ads \
613 a-sytaco.adb<4zsytaco.adb \
614 a-intnam.ads<4zintnam.ads \
615 a-numaux.ads<4znumaux.ads \
616 s-inmaop.adb<7sinmaop.adb \
617 s-interr.adb<5zinterr.adb \
618 s-intman.ads<5zintman.ads \
619 s-intman.adb<5zintman.adb \
620 s-osinte.adb<5zosinte.adb \
621 s-osinte.ads<5zosinte.ads \
622 s-osprim.adb<5zosprim.adb \
623 s-parame.ads<5zparame.ads \
624 s-taprop.adb<5ztaprop.adb \
625 s-taspri.ads<5ztaspri.ads \
626 s-tpopsp.adb<5ztpopsp.adb \
627 s-vxwork.ads<5svxwork.ads \
628 g-soccon.ads<3zsoccon.ads \
629 g-socthi.ads<3zsocthi.ads \
630 g-socthi.adb<3zsocthi.adb \
631 system.ads<5csystem.ads \
633 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
635 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
636 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
639 ifeq ($(strip $(filter-out xscale% coff wrs vx%,$(targ))),)
640 LIBGNAT_TARGET_PAIRS = \
641 a-sytaco.ads<4zsytaco.ads \
642 a-sytaco.adb<4zsytaco.adb \
643 a-intnam.ads<4zintnam.ads \
644 a-numaux.ads<4znumaux.ads \
645 s-inmaop.adb<7sinmaop.adb \
646 s-interr.adb<5zinterr.adb \
647 s-intman.ads<5zintman.ads \
648 s-intman.adb<5zintman.adb \
649 s-osinte.adb<5zosinte.adb \
650 s-osinte.ads<5zosinte.ads \
651 s-osprim.adb<5zosprim.adb \
652 s-parame.ads<5zparame.ads \
653 s-taprop.adb<5ztaprop.adb \
654 s-taspri.ads<5ztaspri.ads \
655 s-tpopsp.adb<5ztpopsp.adb \
656 s-vxwork.ads<5xvxwork.ads \
657 g-soccon.ads<3zsoccon.ads \
658 g-socthi.ads<3zsocthi.ads \
659 g-socthi.adb<3zsocthi.adb \
660 system.ads<5rsystem.ads
662 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
664 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
665 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
668 ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)
669 LIBGNAT_TARGET_PAIRS = \
670 a-sytaco.ads<4zsytaco.ads \
671 a-sytaco.adb<4zsytaco.adb \
672 a-intnam.ads<4zintnam.ads \
673 a-numaux.ads<4znumaux.ads \
674 s-inmaop.adb<7sinmaop.adb \
675 s-interr.adb<5zinterr.adb \
676 s-intman.ads<5zintman.ads \
677 s-intman.adb<5zintman.adb \
678 s-osinte.adb<5zosinte.adb \
679 s-osinte.ads<5zosinte.ads \
680 s-osprim.adb<5zosprim.adb \
681 s-parame.ads<5zparame.ads \
682 s-taprop.adb<5ztaprop.adb \
683 s-taspri.ads<5ztaspri.ads \
684 s-tpopsp.adb<5ztpopsp.adb \
685 s-vxwork.ads<5mvxwork.ads \
686 g-soccon.ads<3zsoccon.ads \
687 g-socthi.ads<3zsocthi.ads \
688 g-socthi.adb<3zsocthi.adb \
689 system.ads<5msystem.ads
691 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
693 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
694 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
697 ifeq ($(strip $(filter-out sparc sun solaris%,$(targ))),)
698 LIBGNAT_TARGET_PAIRS = \
699 a-intnam.ads<4sintnam.ads \
700 s-inmaop.adb<7sinmaop.adb \
701 s-intman.adb<5sintman.adb \
702 s-osinte.adb<5sosinte.adb \
703 s-osinte.ads<5sosinte.ads \
704 s-osprim.adb<5sosprim.adb \
705 s-parame.adb<5sparame.adb \
706 s-taprop.adb<5staprop.adb \
707 s-tasinf.adb<5stasinf.adb \
708 s-tasinf.ads<5stasinf.ads \
709 s-taspri.ads<5staspri.ads \
710 s-tpopsp.adb<5stpopsp.adb \
711 g-soccon.ads<3ssoccon.ads \
712 g-soliop.ads<3ssoliop.ads \
713 system.ads<5ssystem.ads
715 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5sml-tgt.adb
717 THREADSLIB = -lposix4 -lthread
718 MISCLIB = -lposix4 -lnsl -lsocket
719 SYMLIB = $(ADDR2LINE_SYMLIB)
721 GNATLIB_SHARED = gnatlib-shared-dual
723 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
724 LIBRARY_VERSION := $(LIB_VERSION)
726 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
727 LIBGNAT_TARGET_PAIRS = \
728 a-intnam.ads<4sintnam.ads \
729 s-inmaop.adb<7sinmaop.adb \
730 s-intman.adb<5sintman.adb \
731 s-osinte.adb<7sosinte.adb \
732 s-osinte.ads<5tosinte.ads \
733 s-osprim.adb<5sosprim.adb \
734 s-taprop.adb<7staprop.adb \
735 s-taspri.ads<7staspri.ads \
736 s-tpopsp.adb<7stpopsp.adb \
737 g-soccon.ads<3ssoccon.ads \
738 g-soliop.ads<3ssoliop.ads \
739 system.ads<5ssystem.ads
741 THREADSLIB = -lgthreads -lmalloc
744 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
745 LIBGNAT_TARGET_PAIRS = \
746 a-intnam.ads<4sintnam.ads \
747 s-inmaop.adb<7sinmaop.adb \
748 s-intman.adb<7sintman.adb \
749 s-osinte.adb<5iosinte.adb \
750 s-osinte.ads<54osinte.ads \
751 s-osprim.adb<5sosprim.adb \
752 s-taprop.adb<7staprop.adb \
753 s-taspri.ads<7staspri.ads \
754 s-tpopsp.adb<5atpopsp.adb \
755 g-soccon.ads<3ssoccon.ads \
756 g-soliop.ads<3ssoliop.ads \
757 system.ads<5ssystem.ads
759 THREADSLIB = -lposix4 -lpthread
762 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
763 LIBGNAT_TARGET_PAIRS = \
764 a-intnam.ads<4sintnam.ads \
765 s-inmaop.adb<7sinmaop.adb \
766 s-intman.adb<5sintman.adb \
767 s-osinte.adb<5sosinte.adb \
768 s-osinte.ads<5sosinte.ads \
769 s-osprim.adb<5sosprim.adb \
770 s-parame.adb<5sparame.adb \
771 s-taprop.adb<5staprop.adb \
772 s-tasinf.adb<5stasinf.adb \
773 s-tasinf.ads<5stasinf.ads \
774 s-taspri.ads<5staspri.ads \
775 s-tpopsp.adb<5stpopsp.adb \
776 g-soccon.ads<3ssoccon.ads \
777 g-soliop.ads<3ssoliop.ads \
778 system.ads<5usystem.ads
782 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
783 LIBGNAT_TARGET_PAIRS = \
784 a-numaux.adb<86numaux.adb \
785 a-numaux.ads<86numaux.ads \
786 a-intnam.ads<4sintnam.ads \
787 s-inmaop.adb<7sinmaop.adb \
788 s-intman.adb<5sintman.adb \
789 s-mastop.adb<5omastop.adb \
790 s-osinte.adb<5sosinte.adb \
791 s-osinte.ads<5sosinte.ads \
792 s-osprim.adb<5sosprim.adb \
793 s-parame.adb<5sparame.adb \
794 s-taprop.adb<5staprop.adb \
795 s-tasinf.adb<5stasinf.adb \
796 s-tasinf.ads<5stasinf.ads \
797 s-taspri.ads<5staspri.ads \
798 s-tpopsp.adb<5stpopsp.adb \
799 g-soccon.ads<3ssoccon.ads \
800 g-soliop.ads<3ssoliop.ads \
801 system.ads<5esystem.ads
803 THREADSLIB = -lposix4 -lthread
804 MISCLIB = -lposix4 -lnsl -lsocket
806 GNATLIB_SHARED = gnatlib-shared-dual
807 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
808 LIBRARY_VERSION := $(LIB_VERSION)
811 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
812 LIBGNAT_TARGET_PAIRS = \
813 a-intnam.ads<4lintnam.ads \
814 a-numaux.adb<86numaux.adb \
815 a-numaux.ads<86numaux.ads \
816 s-inmaop.adb<7sinmaop.adb \
817 s-intman.adb<7sintman.adb \
818 s-mastop.adb<5omastop.adb \
819 s-osinte.adb<5iosinte.adb \
820 s-osinte.ads<5iosinte.ads \
821 s-osprim.adb<7sosprim.adb \
822 s-taprop.adb<5itaprop.adb \
823 s-taspri.ads<5itaspri.ads \
824 s-tpopsp.adb<5atpopsp.adb \
825 s-parame.adb<5lparame.adb \
826 system.ads<5lsystem.ads
828 TOOLS_TARGET_PAIRS = \
829 mlib-tgt.adb<5lml-tgt.adb
831 SYMLIB = $(ADDR2LINE_SYMLIB)
832 THREADSLIB = -lpthread
833 GNATLIB_SHARED = gnatlib-shared-dual
835 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
836 LIBRARY_VERSION := $(LIB_VERSION)
838 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
839 LIBGNAT_TARGET_PAIRS = \
840 a-intnam.ads<4lintnam.ads \
841 a-numaux.adb<86numaux.adb \
842 a-numaux.ads<86numaux.ads \
843 s-inmaop.adb<7sinmaop.adb \
844 s-intman.adb<7sintman.adb \
845 s-mastop.adb<5omastop.adb \
846 s-osinte.adb<7sosinte.adb \
847 s-osinte.ads<5losinte.ads \
848 s-osprim.adb<7sosprim.adb \
849 s-taprop.adb<7staprop.adb \
850 s-taspri.ads<7staspri.ads \
851 s-tpopsp.adb<7stpopsp.adb \
852 system.ads<5lsystem.ads
854 THREADSLIB = -lgthreads -lmalloc
858 ifeq ($(strip $(filter-out %86 freebsd%,$(arch) $(osys))),)
859 LIBGNAT_TARGET_PAIRS = \
860 a-intnam.ads<45intnam.ads \
861 g-soccon.ads<35soccon.ads \
862 s-inmaop.adb<7sinmaop.adb \
863 s-intman.adb<7sintman.adb \
864 s-mastop.adb<5omastop.adb \
865 s-osinte.adb<55osinte.adb \
866 s-osinte.ads<55osinte.ads \
867 s-osprim.adb<7sosprim.adb \
868 s-taprop.adb<7staprop.adb \
869 s-taspri.ads<7staspri.ads \
870 s-tpopsp.adb<7stpopsp.adb \
871 system.ads<56system.ads
874 LIBRARY_VERSION := $(LIB_VERSION)
877 ifeq ($(strip $(filter-out mips sgi irix%,$(targ))),)
878 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
879 LIBGNAT_TARGET_PAIRS = \
880 a-intnam.ads<4gintnam.ads \
881 s-inmaop.adb<7sinmaop.adb \
882 s-intman.adb<5fintman.adb \
883 s-mastop.adb<5gmastop.adb \
884 s-osinte.adb<5fosinte.adb \
885 s-osinte.ads<5fosinte.ads \
886 s-osprim.adb<7sosprim.adb \
887 s-proinf.adb<5gproinf.adb \
888 s-proinf.ads<5gproinf.ads \
889 s-taprop.adb<5ftaprop.adb \
890 s-tasinf.ads<5ftasinf.ads \
891 s-taspri.ads<7staspri.ads \
892 s-tpopsp.adb<7stpopsp.adb \
893 s-traceb.adb<7straceb.adb \
894 g-soccon.ads<3gsoccon.ads \
895 system.ads<5gsystem.ads
897 THREADSLIB = -lpthread
898 GNATLIB_SHARED = gnatlib-shared-default
901 LIBGNAT_TARGET_PAIRS = \
902 a-intnam.ads<4gintnam.ads \
903 s-inmaop.adb<5ninmaop.adb \
904 s-interr.adb<5ginterr.adb \
905 s-intman.adb<5gintman.adb \
906 s-mastop.adb<5gmastop.adb \
907 s-osinte.adb<5fosinte.adb \
908 s-osinte.ads<5gosinte.ads \
909 s-osprim.adb<7sosprim.adb \
910 s-proinf.adb<5gproinf.adb \
911 s-proinf.ads<5gproinf.ads \
912 s-taprop.adb<5gtaprop.adb \
913 s-tasinf.adb<5gtasinf.adb \
914 s-tasinf.ads<5gtasinf.ads \
915 s-taspri.ads<7staspri.ads \
916 s-traceb.adb<7straceb.adb \
917 g-soccon.ads<3gsoccon.ads \
918 system.ads<5fsystem.ads
921 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5gml-tgt.adb
924 SO_OPTS = -Wl,-all,-set_version,sgi1.0,-update_registry,../so_locations,-soname,
925 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
926 LIBRARY_VERSION := $(LIB_VERSION)
929 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
930 LIBGNAT_TARGET_PAIRS = \
931 a-excpol.adb<4wexcpol.adb \
932 a-intnam.ads<4hintnam.ads \
933 s-inmaop.adb<7sinmaop.adb \
934 s-interr.adb<5ginterr.adb \
935 s-intman.adb<7sintman.adb \
936 s-osinte.adb<5hosinte.adb \
937 s-osinte.ads<5hosinte.ads \
938 s-parame.ads<5hparame.ads \
939 s-osprim.adb<7sosprim.adb \
940 s-taprop.adb<5htaprop.adb \
941 s-taspri.ads<5htaspri.ads \
942 s-tpopsp.adb<7stpopsp.adb \
943 g-soccon.ads<3hsoccon.ads \
944 system.ads<5hsystem.ads
946 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
949 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
950 LIBGNAT_TARGET_PAIRS = \
951 a-intnam.ads<4hintnam.ads \
952 s-inmaop.adb<7sinmaop.adb \
953 s-intman.adb<7sintman.adb \
954 s-osinte.adb<5iosinte.adb \
955 s-osinte.ads<53osinte.ads \
956 s-parame.ads<5hparame.ads \
957 s-osprim.adb<7sosprim.adb \
958 s-traceb.adb<5htraceb.adb \
959 s-taprop.adb<7staprop.adb \
960 s-taspri.ads<7staspri.ads \
961 s-tpopsp.adb<5atpopsp.adb \
962 g-soccon.ads<3hsoccon.ads \
963 system.ads<5hsystem.ads
965 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5hml-tgt.adb
966 TGT_LIB = /usr/lib/libcl.a
967 THREADSLIB = -lpthread
968 SYMLIB = $(ADDR2LINE_SYMLIB)
972 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
973 GNATLIB_SHARED = gnatlib-shared-dual
974 LIBRARY_VERSION := $(LIB_VERSION)
976 ifeq ($(strip $(filter-out dce DCE,$(THREAD_KIND))),)
977 LIBGNAT_TARGET_PAIRS = \
978 a-excpol.adb<4wexcpol.adb \
979 a-intnam.ads<4hintnam.ads \
980 s-inmaop.adb<7sinmaop.adb \
981 s-interr.adb<5ginterr.adb \
982 s-intman.adb<7sintman.adb \
983 s-osinte.adb<5hosinte.adb \
984 s-osinte.ads<5hosinte.ads \
985 s-parame.ads<5hparame.ads \
986 s-osprim.adb<7sosprim.adb \
987 s-taprop.adb<5htaprop.adb \
988 s-taspri.ads<5htaspri.ads \
989 s-tpopsp.adb<7stpopsp.adb \
990 g-soccon.ads<3hsoccon.ads \
991 system.ads<5hsystem.ads
998 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
999 LIBGNAT_TARGET_PAIRS = \
1000 a-intnam.ads<4cintnam.ads \
1001 s-inmaop.adb<7sinmaop.adb \
1002 s-intman.adb<7sintman.adb \
1003 s-osinte.adb<5bosinte.adb \
1004 s-osinte.ads<5bosinte.ads \
1005 s-osprim.adb<7sosprim.adb \
1006 s-taprop.adb<7staprop.adb \
1007 s-taspri.ads<7staspri.ads \
1008 s-tpopsp.adb<7stpopsp.adb \
1009 g-soccon.ads<3bsoccon.ads \
1010 system.ads<5bsystem.ads
1012 THREADSLIB = -lpthreads
1013 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1015 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
1016 LIBGNAT_TARGET_PAIRS = \
1017 a-intnam.ads<4cintnam.ads \
1018 s-inmaop.adb<7sinmaop.adb \
1019 s-intman.adb<7sintman.adb \
1020 s-osinte.adb<7sosinte.adb \
1021 s-osinte.ads<5cosinte.ads \
1022 s-osprim.adb<7sosprim.adb \
1023 s-taprop.adb<7staprop.adb \
1024 s-taspri.ads<7staspri.ads \
1025 s-tpopsp.adb<7stpopsp.adb \
1026 g-soccon.ads<3bsoccon.ads \
1027 system.ads<5bsystem.ads
1029 THREADSLIB = -lgthreads -lmalloc
1032 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5bml-tgt.adb
1034 SYMLIB = $(ADDR2LINE_SYMLIB)
1038 ifeq ($(strip $(filter-out lynxos,$(osys))),)
1039 ifeq ($(strip $(filter-out %86 lynxos,$(arch) $(osys))),)
1040 LIBGNAT_TARGET_PAIRS = \
1041 a-numaux.adb<86numaux.adb \
1042 a-numaux.ads<86numaux.ads \
1043 a-intnam.ads<42intnam.ads \
1044 s-mastop.adb<5omastop.adb \
1045 s-inmaop.adb<7sinmaop.adb \
1046 s-intman.adb<7sintman.adb \
1047 s-osinte.adb<56osinte.adb \
1048 s-osinte.ads<56osinte.ads \
1049 s-osprim.adb<7sosprim.adb \
1050 s-taprop.adb<56taprop.adb \
1051 s-taspri.ads<56taspri.ads \
1052 s-tpopsp.adb<56tpopsp.adb \
1053 system.ads<58system.ads
1055 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1058 LIBGNAT_TARGET_PAIRS = \
1059 a-intnam.ads<42intnam.ads \
1060 s-inmaop.adb<7sinmaop.adb \
1061 s-intman.adb<7sintman.adb \
1062 s-osinte.adb<52osinte.adb \
1063 s-osinte.ads<52osinte.ads \
1064 s-osprim.adb<7sosprim.adb \
1065 s-taprop.adb<7staprop.adb \
1066 s-taspri.ads<7staspri.ads \
1067 s-tpopsp.adb<7stpopsp.adb \
1068 system.ads<57system.ads
1070 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
1071 LIBGNAT_TARGET_PAIRS = \
1072 a-intnam.ads<42intnam.ads \
1073 s-inmaop.adb<7sinmaop.adb \
1074 s-intman.adb<7sintman.adb \
1075 s-osinte.adb<56osinte.adb \
1076 s-osinte.ads<56osinte.ads \
1077 s-osprim.adb<7sosprim.adb \
1078 s-taprop.adb<56taprop.adb \
1079 s-taspri.ads<56taspri.ads \
1080 s-tpopsp.adb<56tpopsp.adb \
1081 system.ads<57system.ads
1087 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1088 LIBGNAT_TARGET_PAIRS = \
1089 a-intnam.ads<4rintnam.ads \
1090 s-inmaop.adb<7sinmaop.adb \
1091 s-intman.adb<7sintman.adb \
1092 s-osinte.adb<5rosinte.adb \
1093 s-osinte.ads<5rosinte.ads \
1094 s-osprim.adb<7sosprim.adb \
1095 s-parame.adb<5rparame.adb \
1096 s-taprop.adb<7staprop.adb \
1097 s-taspri.ads<7staspri.ads \
1098 s-tpopsp.adb<5rtpopsp.adb
1101 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1102 LIBGNAT_TARGET_PAIRS = \
1103 a-intnam.ads<4aintnam.ads \
1104 s-inmaop.adb<7sinmaop.adb \
1105 s-intman.adb<7sintman.adb \
1106 s-mastop.adb<5amastop.adb \
1107 s-osinte.adb<5aosinte.adb \
1108 s-osinte.ads<5aosinte.ads \
1109 s-osprim.adb<5posprim.adb \
1110 s-taprop.adb<5ataprop.adb \
1111 s-tasinf.ads<5atasinf.ads \
1112 s-taspri.ads<5ataspri.ads \
1113 s-tpopsp.adb<5atpopsp.adb \
1114 s-traceb.adb<7straceb.adb \
1115 g-soccon.ads<3asoccon.ads \
1116 system.ads<5asystem.ads
1118 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5aml-tgt.adb
1121 SYMLIB = $(ADDR2LINE_SYMLIB)
1122 THREADSLIB = -lpthread -lmach -lexc -lrt
1123 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1124 GNATLIB_SHARED = gnatlib-shared-default
1125 LIBRARY_VERSION := $(LIB_VERSION)
1128 ifeq ($(strip $(filter-out alpha% ia64 dec vms% openvms% alphavms%,$(host))),)
1136 @ gnu:[bin]vmssymvec $<
1139 ifeq ($(strip $(filter-out alpha% ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1141 ifeq ($(strip $(filter-out ia64% hp vms% openvms%,$(targ))),)
1142 LIBGNAT_TARGET_PAIRS_AUX = \
1143 s-osinte.adb<5xosinte.adb \
1144 s-osinte.ads<5xosinte.ads \
1145 s-parame.ads<5vparame.ads
1147 ifeq ($(strip $(filter-out alpha64% dec hp vms% openvms% alphavms%,$(targ))),)
1148 LIBGNAT_TARGET_PAIRS_AUX = \
1149 s-osinte.adb<5vosinte.adb \
1150 s-osinte.ads<5vosinte.ads \
1151 s-parame.ads<5vparame.ads
1153 ifeq ($(strip $(filter-out express EXPRESS,$(THREAD_KIND))),)
1154 LIBGNAT_TARGET_PAIRS_AUX = \
1155 s-osinte.adb<5vosinte.adb \
1156 s-osinte.ads<5vosinte.ads \
1157 s-parame.ads<5xparame.ads
1159 LIBGNAT_TARGET_PAIRS_AUX = \
1160 s-osinte.adb<5vosinte.adb \
1161 s-osinte.ads<5vosinte.ads \
1162 s-parame.ads<5vparame.ads
1167 LIBGNAT_TARGET_PAIRS = \
1168 a-caldel.adb<4vcaldel.adb \
1169 a-calend.adb<4vcalend.adb \
1170 a-calend.ads<4vcalend.ads \
1171 a-excpol.adb<4wexcpol.adb \
1172 a-intnam.ads<4vintnam.ads \
1173 a-numaux.ads<4vnumaux.ads \
1174 g-expect.adb<3vexpect.adb \
1175 g-soccon.ads<3vsoccon.ads \
1176 g-socthi.ads<3vsocthi.ads \
1177 g-socthi.adb<3vsocthi.adb \
1178 g-trasym.adb<3vtrasym.adb \
1179 i-cstrea.adb<6vcstrea.adb \
1180 i-cpp.adb<6vcpp.adb \
1181 interfac.ads<6vinterf.ads \
1182 s-asthan.adb<5vasthan.adb \
1183 s-crtl.ads<5vcrtl.ads \
1184 s-inmaop.adb<5vinmaop.adb \
1185 s-interr.adb<5vinterr.adb \
1186 s-intman.adb<5vintman.adb \
1187 s-intman.ads<5vintman.ads \
1188 s-osprim.adb<5vosprim.adb \
1189 s-osprim.ads<5vosprim.ads \
1190 s-taprop.adb<5vtaprop.adb \
1191 s-taspri.ads<5vtaspri.ads \
1192 s-tpopsp.adb<7stpopsp.adb \
1193 s-tpopde.adb<5vtpopde.adb \
1194 s-tpopde.ads<5vtpopde.ads \
1195 s-traent.adb<5vtraent.adb \
1196 s-traent.ads<5vtraent.ads \
1197 s-vaflop.adb<5vvaflop.adb \
1198 system.ads<5xsystem.ads \
1199 $(LIBGNAT_TARGET_PAIRS_AUX)
1201 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5vml-tgt.adb
1203 GNATLIB_SHARED=gnatlib-shared-vms
1204 EXTRA_LIBGNAT_SRCS=vmshandler.asm
1205 EXTRA_LIBGNAT_OBJS=vmshandler.o
1206 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1208 ../../gnatlbr$(exeext) \
1209 ,,/../gnatsym$(exeext)
1210 # This command transforms (YYYYMMDD) into YY,MMDD
1211 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\)/\2,\3/')
1212 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1213 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1216 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1217 LIBGNAT_TARGET_PAIRS = \
1218 a-calend.adb<4wcalend.adb \
1219 a-excpol.adb<4wexcpol.adb \
1220 a-intnam.ads<4wintnam.ads \
1221 a-numaux.adb<86numaux.adb \
1222 a-numaux.ads<86numaux.ads \
1223 s-gloloc.adb<5wgloloc.adb \
1224 s-inmaop.adb<5ninmaop.adb \
1225 s-interr.adb<5ginterr.adb \
1226 s-intman.adb<5wintman.adb \
1227 s-mastop.adb<5omastop.adb \
1228 s-memory.adb<5wmemory.adb \
1229 s-osinte.ads<5wosinte.ads \
1230 s-osprim.adb<5wosprim.adb \
1231 s-taprop.adb<5wtaprop.adb \
1232 s-taspri.ads<5wtaspri.ads \
1233 g-socthi.ads<3wsocthi.ads \
1234 g-socthi.adb<3wsocthi.adb \
1235 g-soccon.ads<3wsoccon.ads \
1236 g-soliop.ads<3wsoliop.ads \
1237 system.ads<5wsystem.ads
1239 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5wml-tgt.adb
1241 SYMLIB = $(ADDR2LINE_SYMLIB)
1243 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1244 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1245 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1246 EXTRA_GNATRTL_NONTASKING_OBJS = g-regist.o
1248 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT auto-import
1249 # support for array/record will be done.
1250 GNATLIB_SHARED = gnatlib-shared-win32
1251 LIBRARY_VERSION := $(LIB_VERSION)
1254 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1255 LIBGNAT_TARGET_PAIRS = \
1256 a-intnam.ads<4lintnam.ads \
1257 s-inmaop.adb<7sinmaop.adb \
1258 s-intman.adb<7sintman.adb \
1259 s-osinte.ads<5iosinte.ads \
1260 s-osinte.adb<5iosinte.adb \
1261 s-osprim.adb<7sosprim.adb \
1262 s-taprop.adb<5itaprop.adb \
1263 s-tpopsp.adb<5atpopsp.adb \
1264 s-taspri.ads<5itaspri.ads \
1265 system.ads<55system.ads
1267 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5lml-tgt.adb
1269 THREADSLIB=-lpthread
1270 GNATLIB_SHARED=gnatlib-shared-dual
1271 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1272 LIBRARY_VERSION := $(LIB_VERSION)
1275 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
1276 LIBGNAT_TARGET_PAIRS = \
1277 a-intnam.ads<4lintnam.ads \
1278 a-numaux.adb<86numaux.adb \
1279 a-numaux.ads<86numaux.ads \
1280 s-inmaop.adb<7sinmaop.adb \
1281 s-intman.adb<7sintman.adb \
1282 s-osinte.ads<5iosinte.ads \
1283 s-osinte.adb<5iosinte.adb \
1284 s-osprim.adb<7sosprim.adb \
1285 s-taprop.adb<5itaprop.adb \
1286 s-tpopsp.adb<5atpopsp.adb \
1287 s-taspri.ads<5itaspri.ads \
1288 system.ads<5nsystem.ads
1290 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5lml-tgt.adb
1291 SYMLIB = $(ADDR2LINE_SYMLIB)
1292 THREADSLIB=-lpthread
1293 GNATLIB_SHARED=gnatlib-shared-dual
1295 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1296 LIBRARY_VERSION := $(LIB_VERSION)
1300 # The runtime library for gnat comprises two directories. One contains the
1301 # Ada source files that the compiler (gnat1) needs -- these files are listed
1302 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1303 # corresponding .ali files for the parts written in Ada, libgnat.a for
1304 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1305 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1306 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1307 # go into the directory. The pthreads emulation is built in the threads
1308 # subdirectory and copied.
1309 LIBGNAT_SRCS = ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1310 errno.c exit.c cal.c ctrl_c.c \
1311 raise.h raise.c sysdep.c aux-io.c init.c \
1312 final.c tracebak.c tb-alvms.c tb-alvxw.c expect.c mkdir.c socket.c \
1313 $(EXTRA_LIBGNAT_SRCS)
1315 LIBGNAT_OBJS = adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o \
1316 raise.o sysdep.o aux-io.o init.o cal.o final.o \
1317 tracebak.o expect.o mkdir.o socket.o $(EXTRA_LIBGNAT_OBJS)
1319 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1320 # the library installation will change and there will be a
1321 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1322 # from ADA_INCLUDE_SRCS.
1324 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1325 # the following include file:
1327 include $(fsrcdir)/Makefile.rtl
1329 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
1330 g-trasym.o memtrack.o
1332 # Files which are suitable in no run time/hi integrity mode
1334 COMPILABLE_HIE_SOURCES= \
1354 a-except.adb $(EXTRA_HIE_SOURCES)
1356 NON_COMPILABLE_HIE_SOURCES= \
1367 HIE_SOURCES = $(NON_COMPILABLE_HIE_SOURCES) $(COMPILABLE_HIE_SOURCES)
1369 # Object to generate for the HI run time
1387 a-tags.o $(EXTRA_HIE_OBJS)
1389 # Files which are needed in ravenscar mode
1391 COMPILABLE_RAVEN_SOURCES = \
1392 $(COMPILABLE_HIE_SOURCES) \
1424 a-taside.adb $(EXTRA_RAVEN_SOURCES)
1426 NON_COMPILABLE_RAVEN_SOURCES= $(NON_COMPILABLE_HIE_SOURCES)
1428 RAVEN_SOURCES = $(NON_COMPILABLE_RAVEN_SOURCES) $(COMPILABLE_RAVEN_SOURCES)
1430 # Objects to generate for the ravenscar run time
1432 RAVEN_LIBGNARL_OBJS = \
1451 a-taside.o $(EXTRA_RAVEN_OBJS)
1455 $(RAVEN_LIBGNARL_OBJS)
1457 # Default run time files
1460 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1461 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1462 sequenio.ads system.ads Makefile.prolog Makefile.generic \
1464 a-*.adb a-*.ads g-*.ad? i-*.ad? \
1465 s-[a-o]*.adb s-[p-z]*.adb \
1466 s-[a-o]*.ads s-[p-z]*.ads
1468 LIBGNAT=../rts/libgnat.a
1469 TOOLS_FLAGS_TO_PASS= \
1471 "CFLAGS=$(CFLAGS)" \
1472 "LDFLAGS=$(LDFLAGS)" \
1473 "ADAFLAGS=$(ADAFLAGS)" \
1474 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
1475 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
1476 "libsubdir=$(libsubdir)" \
1477 "exeext=$(exeext)" \
1478 "fsrcdir=$(fsrcdir)" \
1479 "srcdir=$(fsrcdir)" \
1480 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
1481 "GNATMAKE=$(GNATMAKE)" \
1482 "GNATLINK=$(GNATLINK)" \
1483 "GNATBIND=$(GNATBIND)"
1485 # Build directory for the tools. Let's copy the target-dependent
1486 # sources using the same mechanism as for gnatlib. The other sources are
1487 # accessed using the vpath directive below
1493 -(cd tools; $(LN_S) ../sdefault.adb .)
1494 -$(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
1495 $(RM) tools/$(word 1,$(subst <, ,$(PAIR)));\
1496 $(LN_S) $(fsrcdir)/$(word 2,$(subst <, ,$(PAIR))) \
1497 tools/$(word 1,$(subst <, ,$(PAIR)));)
1498 touch ../stamp-tools
1500 # when compiling the tools, the runtime has to be first on the path so that
1501 # it hides the runtime files lying with the rest of the sources
1502 ifeq ($(TOOLSCASE),native)
1503 vpath %.ads ../rts ../
1504 vpath %.adb ../rts ../
1505 vpath %.c ../rts ../
1506 vpath %.h ../rts ../
1509 # in the cross tools case, everything is compiled with the native
1510 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1511 ifeq ($(TOOLSCASE),cross)
1518 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
1519 # reasons: gnatmake should be built with a recent compiler, a recent compiler
1520 # may not generate ALI files compatible with an old gnatmake so it is important
1521 # to be able to build gnatmake without a version of gnatmake around. Once
1522 # everything has been compiled once, gnatmake can be recompiled with itself
1523 # (see target gnattools1-re)
1524 gnattools1: ../stamp-tools ../stamp-gnatlib
1525 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1527 ../../gnatmake$(exeext) ../../gnatlink$(exeext) ../../gnatbl$(exeext)
1529 # gnatmake/link can be built with recent gnatmake/link if they are available.
1530 # This is especially convenient for building cross tools or for rebuilding
1531 # the tools when the original bootstrap has already be done.
1532 gnattools1-re: ../stamp-tools
1533 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1534 TOOLSCASE=cross INCLUDES="" gnatmake-re gnatlink-re
1536 # these tools are built with gnatmake & are common to native and cross
1537 gnattools2: ../stamp-tools
1538 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1540 ../../gnatchop$(exeext) ../../gnat$(exeext) ../../gnatkr$(exeext) \
1541 ../../gnatls$(exeext) ../../gnatprep$(exeext) \
1542 ../../gnatxref$(exeext) \
1543 ../../gnatfind$(exeext) ../../gnatname$(exeext) \
1544 ../../gnatclean$(exeext) \
1545 ../../gprcmd$(exeext) ../../gpr2make$(exeext)
1547 # These tools are only built for the native version.
1548 gnattools3: ../stamp-tools
1549 # $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1550 # TOOLSCASE=native top_builddir=../../.. \
1551 # ../../gnatmem$(exeext) $(EXTRA_GNATTOOLS)
1553 # those tools are only built for the cross version
1554 gnattools4: ../stamp-tools
1555 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1556 TOOLSCASE=cross top_buildir=../../.. \
1557 ../../vxaddr2line$(exeext)
1559 ../../gnatchop$(exeext): ../stamp-tools
1560 $(GNATMAKE) -c $(ADA_INCLUDES) gnatchop --GCC="$(CC) $(ALL_ADAFLAGS)"
1561 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatchop
1562 $(GNATLINK) -v gnatchop -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1565 ../../gnat$(exeext): ../stamp-tools
1566 $(GNATMAKE) -c $(ADA_INCLUDES) gnatcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1567 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatcmd
1568 $(GNATLINK) -v gnatcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1570 ../../gnatkr$(exeext): ../stamp-tools
1571 $(GNATMAKE) -c $(ADA_INCLUDES) gnatkr --GCC="$(CC) $(ALL_ADAFLAGS)"
1572 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatkr
1573 $(GNATLINK) -v gnatkr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1575 ../../gnatls$(exeext): ../stamp-tools
1576 $(GNATMAKE) -c $(ADA_INCLUDES) gnatls --GCC="$(CC) $(ALL_ADAFLAGS)"
1577 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatls
1578 $(GNATLINK) -v gnatls -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1580 ../../gnatname$(exeext): ../stamp-tools
1581 $(GNATMAKE) -c $(ADA_INCLUDES) gnatname --GCC="$(CC) $(ALL_ADAFLAGS)"
1582 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatname
1583 $(GNATLINK) -v gnatname -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1586 ../../gpr2make$(exeext): ../stamp-tools
1587 $(GNATMAKE) -c $(ADA_INCLUDES) gpr2make --GCC="$(CC) $(ALL_ADAFLAGS)"
1588 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gpr2make
1589 $(GNATLINK) -v gpr2make -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1592 ../../gnatprep$(exeext): ../stamp-tools
1593 $(GNATMAKE) -c $(ADA_INCLUDES) gnatprep --GCC="$(CC) $(ALL_ADAFLAGS)"
1594 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatprep
1595 $(GNATLINK) -v gnatprep -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1598 ../../gnatxref$(exeext): ../stamp-tools
1599 $(GNATMAKE) -c $(ADA_INCLUDES) gnatxref --GCC="$(CC) $(ALL_ADAFLAGS)"
1600 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatxref
1601 $(GNATLINK) -v gnatxref -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1604 ../../gnatfind$(exeext): ../stamp-tools
1605 $(GNATMAKE) -c $(ADA_INCLUDES) gnatfind --GCC="$(CC) $(ALL_ADAFLAGS)"
1606 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatfind
1607 $(GNATLINK) -v gnatfind -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1610 ../../gnatclean$(exeext): ../stamp-tools
1611 $(GNATMAKE) -c $(ADA_INCLUDES) gnatclean --GCC="$(CC) $(ALL_ADAFLAGS)"
1612 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatclean
1613 $(GNATLINK) -v gnatclean -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1616 ../../gnatsym$(exeext): ../stamp-tools
1617 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
1618 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
1619 $(GNATLINK) -v gnatsym -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1622 ../../gnatmem$(exeext): ../stamp-tools gmem.o $(SYMDEPS)
1623 ifeq ($(GMEM_LIB),gmemlib)
1624 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmem --GCC="$(CC) $(ALL_ADAFLAGS)"
1625 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmem
1626 $(GNATLINK) -v gnatmem -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1627 gmem.o $(SYMLIB) $(TOOLS_LIBS)
1630 ../../gnatdll$(exeext): ../stamp-tools
1631 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
1632 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) $(GNATBIND_FLAGS) gnatdll
1633 $(GNATLINK) -v gnatdll -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1636 ../../gprcmd$(exeext): ../stamp-tools
1637 $(GNATMAKE) -c $(ADA_INCLUDES) gprcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1638 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gprcmd
1639 $(GNATLINK) -v gprcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1641 ../../vxaddr2line$(exeext): ../stamp-tools
1642 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
1643 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
1644 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(CLIB)
1646 gnatmake-re: ../stamp-tools
1647 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
1648 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1649 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
1650 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
1651 --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1653 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1654 # with the former version of gnatlink itself which cannot override itself.
1655 gnatlink-re: ../stamp-tools link.o
1656 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
1657 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
1658 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
1659 --GCC="$(CC) $(ADA_INCLUDES)" link.o $(TOOLS_LIBS)
1660 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
1662 # Needs to be built with CC=gcc
1663 # Since the RTL should be built with the latest compiler, remove the
1664 # stamp target in the parent directory whenever gnat1 is rebuilt
1666 # Likewise for the tools
1667 ../../gnatmake$(exeext): $(P) b_gnatm.o $(GNATMAKE_OBJS)
1668 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
1671 ../../gnatlink$(exeext): $(P) b_gnatl.o $(GNATLINK_OBJS)
1672 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
1675 ../../gnatbl$(exeext): gnatbl.o
1676 $(CC) -o $@ $(ALL_CFLAGS) $(LDFLAGS) gnatbl.o $(TOOLS_LIBS)
1678 gnatbl.o: gnatbl.c adaint.h
1679 $(CC) $(ALL_CFLAGS) $(INCLUDES) -c $< $(OUTPUT_OPTION)
1682 @if [ ! -f stamp-gnatlib ] ; \
1684 $(ECHO) You must first build the GNAT library: make gnatlib; \
1690 install-gnatlib: ../stamp-gnatlib
1691 # Create the directory before deleting it, in case the directory is
1692 # a list of directories (as it may be on VMS). This ensures we are
1693 # deleting the right one.
1694 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1695 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1696 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1697 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1698 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1699 $(RMDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1700 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1701 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1702 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1703 -$(INSTALL_DATA) rts/Makefile.prolog $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1704 -$(INSTALL_DATA) rts/Makefile.generic $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1705 for file in rts/*.ali; do \
1706 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1708 -$(INSTALL_DATA) rts/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1709 -for file in rts/*$(arext);do \
1710 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1712 # Install the shared libraries, if any, using $(INSTALL) instead
1713 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1714 # for shared libraries on some targets, e.g. on HP-UX where the x
1715 # permission is required.
1716 for file in gnat gnarl; do \
1717 if [ -f rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
1718 $(INSTALL) rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1719 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1721 if [ -f rts/lib$${file}$(soext) ]; then \
1722 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1723 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
1726 # This copy must be done preserving the date on the original file.
1727 for file in rts/*.adb rts/*.ads; do \
1728 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
1730 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
1731 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
1735 $(RM) rts/s-*$(objext)
1737 $(RM) rts/a-*$(objext)
1739 $(RM) rts/*$(objext)
1742 touch ../stamp-gnatlib2
1743 $(RM) ../stamp-gnatlib
1745 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1746 # successive target commands. Although the Gnu make documentation
1747 # implies this is true on all systems, I suspect it may not be, So care
1748 # has been taken to allow a sed script to look for ";)" and substitue
1749 # for ";" the appropriate character in the range of lines below
1750 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1752 # GNULLI Begin ###########################################################
1754 ../stamp-gnatlib1: Makefile ../stamp-gnatlib2
1758 # Copy target independent sources
1759 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
1760 $(LN_S) $(fsrcpfx)$(f) rts ;) true
1761 # Remove files to be replaced by target dependent sources
1762 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1763 rts/$(word 1,$(subst <, ,$(PAIR))))
1764 # Copy new target dependent sources
1765 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1766 $(LN_S) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1767 rts/$(word 1,$(subst <, ,$(PAIR)));)
1768 $(RM) ../stamp-gnatlib
1769 touch ../stamp-gnatlib1
1771 # GNULLI End #############################################################
1773 # Don't use semicolon separated shell commands that involve list expansions.
1774 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1775 # line lengths in excess of 256 characters.
1776 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1777 # is guaranteed to overflow the buffer.
1779 gnatlib: ../stamp-gnatlib1 ../stamp-gnatlib2
1780 $(MAKE) -C rts CC="../../xgcc -B../../" \
1781 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1782 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
1784 -f ../Makefile $(LIBGNAT_OBJS)
1785 $(MAKE) -C rts CC="../../xgcc -B../../" \
1787 CFLAGS="$(GNATLIBCFLAGS)" \
1788 ADAFLAGS="$(GNATLIBFLAGS)" \
1792 $(RM) rts/libgnat$(arext) rts/libgnarl$(arext)
1793 $(AR) $(AR_FLAGS) rts/libgnat$(arext) \
1794 $(addprefix rts/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
1795 ifneq ($(PREFIX_OBJS),)
1796 $(AR) $(AR_FLAGS) rts/libgccprefix$(arext) $(PREFIX_OBJS);
1798 if $(RANLIB_TEST) ; then $(RANLIB) rts/libgnat$(arext); else true; fi
1799 $(AR) $(AR_FLAGS) rts/libgnarl$(arext) \
1800 $(addprefix rts/,$(GNATRTL_TASKING_OBJS))
1801 if $(RANLIB_TEST) ; then $(RANLIB) rts/libgnarl$(arext); else true; fi
1802 ifeq ($(GMEM_LIB),gmemlib)
1803 $(AR) $(AR_FLAGS) rts/libgmem$(arext) rts/memtrack.o;
1805 $(CHMOD) a-wx rts/*.ali
1806 touch ../stamp-gnatlib
1808 HIE_NONE_TARGET_PAIRS=\
1809 a-except.ads<1aexcept.ads \
1810 a-except.adb<1aexcept.adb \
1811 a-tags.ads<1atags.ads \
1812 a-tags.adb<1atags.adb \
1813 s-secsta.ads<1ssecsta.ads \
1814 s-secsta.adb<1ssecsta.adb \
1815 i-c.ads<1ic.ads $(EXTRA_HIE_NONE_TARGET_PAIRS)
1817 # This target needs RTS_NAME, RTS_SRCS, RTS_TARGET_PAIRS to be set properly
1818 # it creates a rts with the proper structure and the right target
1821 $(RMDIR) rts-$(RTS_NAME)
1822 $(MKDIR) rts-$(RTS_NAME)
1823 $(CHMOD) u+w rts-$(RTS_NAME)
1824 $(MKDIR) rts-$(RTS_NAME)/adalib
1825 $(MKDIR) rts-$(RTS_NAME)/adainclude
1826 $(CHMOD) u+w rts-$(RTS_NAME)/*
1827 # Generate the project file
1828 $(ECHO) "project $(RTS_NAME) is" > rts-$(RTS_NAME)/$(RTS_NAME).gpr
1829 $(ECHO) " for Source_Dirs use (\"adainclude\");" \
1830 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1831 $(ECHO) " for Object_Dir use \"adalib\";" \
1832 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1833 $(ECHO) " for Source_List_File use " \
1834 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1835 $(ECHO) " \"rts-$(RTS_NAME)_source_list.txt\";" \
1836 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1837 $(ECHO) " package Builder is" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1838 $(ECHO) " for Default_Switches (\"Ada\") use (\"-a\");" \
1839 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1840 $(ECHO) " end Builder;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1841 $(ECHO) " package Compiler is" >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1842 $(ECHO) " for Default_Switches (\"Ada\") use (\"-nostdinc\");" \
1843 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1844 $(ECHO) " end Compiler;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1845 $(ECHO) "end $(RTS_NAME);" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1847 $(foreach f, $(COMPILABLE_SOURCES), \
1849 rts-$(RTS_NAME)/rts-$(RTS_NAME)_source_list.txt ;) true
1850 # Copy target independent sources
1851 $(foreach f,$(RTS_SRCS), \
1852 $(CP) $(fsrcpfx)$(f) rts-$(RTS_NAME)/adainclude/ ;) true
1853 # Remove files to be replaced by target dependent sources
1854 $(RM) $(foreach PAIR,$(RTS_TARGET_PAIRS), \
1855 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR))))
1856 # Copy new target dependent sources
1857 $(foreach PAIR,$(RTS_TARGET_PAIRS), \
1858 $(CP) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1859 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR)));)
1862 $(CP) -r rts-$(RTS_NAME) $(DESTDIR)$(libsubdir)/
1865 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
1866 RTS_NAME=zfp RTS_SRCS="$(HIE_SOURCES)" \
1867 RTS_TARGET_PAIRS="$(HIE_NONE_TARGET_PAIRS)" \
1868 COMPILABLE_SOURCES="$(COMPILABLE_HIE_SOURCES)"
1869 $(GNATMAKE) -Prts-zfp/zfp.gpr --GCC="../../../xgcc -B../../../"
1870 cd rts-zfp/adalib/ ; $(AR) r libgnat.a *.o
1871 $(RM) rts-zfp/adalib/*.o
1872 $(CHMOD) a-wx rts-zfp/adalib/*.ali
1873 $(CHMOD) a-wx rts-zfp/adalib/libgnat.a
1875 rts-ravenscar: force
1876 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
1877 RTS_NAME=ravenscar RTS_SRCS="$(RAVEN_SOURCES)" \
1878 RTS_TARGET_PAIRS="$(HIE_RAVEN_TARGET_PAIRS)" \
1879 COMPILABLE_SOURCES="$(COMPILABLE_RAVEN_SOURCES)"
1880 $(GNATMAKE) -Prts-ravenscar/ravenscar.gpr \
1881 --GCC="../../../xgcc -B../../../"
1882 cd rts-ravenscar/adalib ; \
1883 $(foreach FILE,$(RAVEN_LIBGNARL_OBJS), $(AR) r libgnarl.a $(FILE);) \
1884 $(foreach FILE,$(HIE_OBJS), $(AR) r libgnat.a $(FILE);)
1885 $(RM) rts-ravenscar/adalib/*.o
1886 $(CHMOD) a-wx rts-ravenscar/adalib/*.ali
1887 $(CHMOD) a-wx rts-ravenscar/adalib/libgnat.a
1888 $(CHMOD) a-wx rts-ravenscar/adalib/libgnarl.a
1890 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
1891 gnatlib-shared-default:
1892 $(MAKE) $(FLAGS_TO_PASS) \
1893 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1894 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1895 THREAD_KIND="$(THREAD_KIND)" \
1897 $(RM) rts/libgnat$(soext) rts/libgnarl$(soext)
1898 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1899 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1900 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1901 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1903 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1904 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1905 $(GNATRTL_TASKING_OBJS) \
1906 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1908 cd rts; $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1910 cd rts; $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1913 gnatlib-shared-dual:
1914 $(MAKE) $(FLAGS_TO_PASS) \
1915 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1916 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1917 THREAD_KIND="$(THREAD_KIND)" \
1918 gnatlib-shared-default
1919 $(MV) rts/libgna*$(soext) .
1920 $(RM) ../stamp-gnatlib2
1921 $(MAKE) $(FLAGS_TO_PASS) \
1922 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1923 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1924 THREAD_KIND="$(THREAD_KIND)" \
1926 $(MV) libgna*$(soext) rts
1928 gnatlib-shared-dual-win32:
1929 $(MAKE) $(FLAGS_TO_PASS) \
1930 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1931 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1932 THREAD_KIND="$(THREAD_KIND)" \
1933 gnatlib-shared-win32
1934 $(MV) rts/libgna*$(soext) .
1935 $(RM) ../stamp-gnatlib2
1936 $(MAKE) $(FLAGS_TO_PASS) \
1937 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1938 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1939 THREAD_KIND="$(THREAD_KIND)" \
1941 $(MV) libgna*$(soext) rts
1943 # ??? we need to add the option to support auto-import of arrays/records to
1944 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
1945 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
1947 gnatlib-shared-win32:
1948 $(MAKE) $(FLAGS_TO_PASS) \
1949 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1950 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1951 THREAD_KIND="$(THREAD_KIND)" \
1953 $(RM) rts/libgnat$(soext) rts/libgnarl$(soext)
1954 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1955 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1956 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1957 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
1958 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1959 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1960 $(GNATRTL_TASKING_OBJS) \
1961 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1962 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
1965 $(MAKE) $(FLAGS_TO_PASS) \
1966 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1967 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1968 THREAD_KIND="$(THREAD_KIND)" \
1970 $(RM) rts/libgnat*$(soext) rts/libgnarl*$(soext)
1971 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
1972 objdump --syms $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) | \
1973 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
1974 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
1975 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
1976 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
1977 sys\$$library:trace.exe \
1978 --for-linker=/noinform \
1979 --for-linker=SYMVEC_$$$$.opt \
1980 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
1981 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
1982 objdump --syms $(GNATRTL_TASKING_OBJS) | \
1983 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
1984 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
1985 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
1986 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1987 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1988 sys\$$library:trace.exe \
1989 --for-linker=/noinform \
1990 --for-linker=SYMVEC_$$$$.opt \
1991 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
1994 $(MAKE) $(FLAGS_TO_PASS) \
1995 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1996 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1997 THREAD_KIND="$(THREAD_KIND)" \
1998 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
2001 gnatlib-sjlj: ../stamp-gnatlib1
2002 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' rts/system.ads > rts/s.ads
2003 $(MV) rts/s.ads rts/system.ads
2004 $(MAKE) $(FLAGS_TO_PASS) \
2005 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2006 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2007 THREAD_KIND="$(THREAD_KIND)" \
2008 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2010 # .s files for cross-building
2012 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
2014 # Compiling object files from source files.
2016 # Note that dependencies on obstack.h are not written
2017 # because that file is not part of GCC.
2018 # Dependencies on gvarargs.h are not written
2019 # because all that file does, when not compiling with GCC,
2020 # is include the system varargs.h.
2022 b_gnatl.c : $(GNATLINK_OBJS)
2023 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatl.c gnatlink.ali
2024 b_gnatl.o : b_gnatl.c
2026 b_gnatm.c : $(GNATMAKE_OBJS)
2027 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatm.c gnatmake.ali
2028 b_gnatm.o : b_gnatm.c
2030 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2031 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2032 ADA_SHARE_MAKE_DIR = $(prefix)/share/gnat
2034 # force no sibling call optimization on s-traceb.o so the number of stack
2035 # frames to be skipped when computing a call chain is not modified by
2036 # optimization. However we can do that only when building the runtime
2037 # (not the compiler) because the -fno-optimize-sibling-calls exists
2040 ifneq (,$(findstring xgcc,$(CC)))
2041 NO_SIBLING_ADAFLAGS=-fno-optimize-sibling-calls
2043 NO_SIBLING_ADAFLAGS=
2046 s-traceb.o : s-traceb.adb
2047 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2048 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) \
2051 adadecode.o : adadecode.c adadecode.h
2055 deftarg.o : deftarg.c
2057 exit.o : raise.h exit.c
2059 final.o : raise.h final.c
2067 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2068 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2070 init.o : init.c ada.h types.h raise.h
2071 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2072 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2074 raise.o : raise.c raise.h
2075 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2076 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2078 # Need to keep the frame pointer in this file to pop the stack properly on
2080 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c
2081 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
2082 -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2084 # In GNU Make, ignore whether `stage*' exists.
2085 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2086 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2090 # Gnatlbr is only used on VMS
2092 ../../gnatlbr$(exeext): ../../prefix.o
2093 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlbr --GCC="$(CC) $(ALL_ADAFLAGS)"
2094 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlbr
2095 $(GNATLINK) -v gnatlbr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \