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 SYMDEPS = $(LIBINTL_DEP)
140 OUTPUT_OPTION = @OUTPUT_OPTION@
149 # Define this as & to perform parallel make on a Sequent.
150 # Note that this has some bugs, and it seems currently necessary
151 # to compile all the gen* files first by hand to avoid erroneous results.
154 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
155 # It omits XCFLAGS, and specifies -B./.
156 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
157 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)
159 # Tools to use when building a cross-compiler.
160 # These are used because `configure' appends `cross-make'
161 # to the makefile when making a cross-compiler.
163 # We don't use cross-make. Instead we use the tools from the build tree,
164 # if they are available.
165 # program_transform_name and objdir are set by configure.in.
166 program_transform_name =
170 xmake_file = @xmake_file@
171 tmake_file = @tmake_file@
172 host_canonical=@host@
173 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
174 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
176 # Directory where sources are, from where we are.
180 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
181 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
182 fcurdir := $(shell ${PWD_COMMAND})
183 fcurpfx := $(shell ${PWD_COMMAND})/
185 # Top build directory, relative to here.
188 # Internationalization library.
190 LIBINTL_DEP = @LIBINTL_DEP@
192 # Any system libraries needed just for GNAT.
193 SYSLIBS = @GNAT_LIBEXC@
195 # List of extra object files linked in with various programs.
196 EXTRA_GNATTOOLS_OBJS = ../../prefix.o ../../version.o
198 # List extra gnattools
201 # List of target dependent sources, overridden below as necessary
204 # Type of tools build we are doing; default is not compiling tools.
207 # End of variables for you to override.
211 # This tells GNU Make version 3 not to put all variables in the environment.
214 # tmake_file and xmake_file expand to lists with entries of the form
215 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
216 # need to adjust the paths. There can't be spaces in the subst arguments
217 # or we get spurious spaces in the actual list of files to include.
220 ifneq ($(tmake_file),)
221 include $(subst /config,/../config,$(tmake_file))
225 ifneq ($(xmake_file),)
226 include $(subst /config,/../config,$(xmake_file))
229 # Now figure out from those variables how to compile and link.
231 all.indirect: Makefile ../gnat1$(exeext)
233 # IN_GCC distinguishes between code compiled into GCC itself and other
234 # programs built during a bootstrap.
235 # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler.
236 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
238 # This is the variable actually used when we compile.
239 LOOSE_CFLAGS = `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
240 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_CFLAGS) \
244 ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
246 # This is where we get libiberty.a from.
247 LIBIBERTY = ../../libiberty/libiberty.a
249 # How to link with both our special library facilities
250 # and the system's installed libraries.
251 LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
252 LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
253 TOOLS_LIBS = $(LIBGNAT) $(EXTRA_GNATTOOLS_OBJS) ../../../libiberty/libiberty.a $(SYSLIBS)
255 # Specify the directories to be searched for header files.
256 # Both . and srcdir are used, in that order,
257 # so that tm.h and config.h will be found in the compilation
258 # subdirectory rather than in the source directory.
259 INCLUDES = -I- -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config \
260 -I$(srcdir)/../../include
262 ADA_INCLUDES = -I- -I. -I$(srcdir)
264 INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir) -I$(fsrcdir)/../config \
265 -I$(fsrcdir)/../../include -I$(fsrcdir)/..
266 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)
268 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
271 # Say how to compile Ada programs.
272 .SUFFIXES: .ada .adb .ads .asm
274 # Always use -I$(srcdir)/config when compiling.
276 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
279 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< \
283 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
286 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
288 # how to regenerate this file
289 Makefile: ../config.status $(srcdir)/Makefile.in $(srcdir)/../version.c
291 LANGUAGES="$(CONFIG_LANGUAGES)" \
293 CONFIG_FILES=ada/Makefile $(SHELL) config.status
295 # This tells GNU make version 3 not to export all the variables
296 # defined in this file into the environment.
299 # Lists of files for various purposes.
301 GNATLINK_OBJS = gnatlink.o link.o \
302 ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o gnatvsn.o \
303 hostparm.o namet.o opt.o osint.o output.o rident.o sdefault.o \
304 stylesw.o switch.o table.o tree_io.o types.o validsw.o widechar.o
306 GNATMAKE_OBJS = ctrl_c.o ali.o ali-util.o s-casuti.o \
307 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
308 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
309 gnatmake.o gnatvsn.o hostparm.o krunch.o lib.o make.o makeusg.o \
310 mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o mlib-utl.o \
311 namet.o nlists.o opt.o osint.o osint-m.o output.o \
312 prj.o prj-attr.o prj-com.o prj-dect.o prj-env.o prj-err.o prj-ext.o prj-nmsc.o \
313 prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o \
314 rident.o scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o \
315 sinfo.o sinput.o sinput-c.o sinput-p.o \
316 snames.o stand.o stringt.o styleg.o stylesw.o validsw.o switch.o switch-m.o \
317 table.o targparm.o tempdir.o tree_io.o types.o \
318 uintp.o uname.o urealp.o usage.o widechar.o \
319 $(EXTRA_GNATMAKE_OBJS)
321 # Convert the target variable into a space separated list of architecture,
322 # manufacturer, and operating system and assign each of those to its own
325 host:=$(subst -, ,$(host_canonical))
326 targ:=$(subst -, ,$(target))
327 arch:=$(word 1,$(targ))
328 ifeq ($(words $(targ)),2)
330 osys:=$(word 2,$(targ))
332 manu:=$(word 2,$(targ))
333 osys:=$(word 3,$(targ))
336 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
337 # The members of each pair must be separated by a '<' and no whitespace.
338 # Each pair must be separated by some amount of whitespace from the following
343 LIBGNAT_TARGET_PAIRS = \
344 a-intnam.ads<4nintnam.ads \
345 s-inmaop.adb<5ninmaop.adb \
346 s-intman.adb<5nintman.adb \
347 s-osinte.ads<5nosinte.ads \
348 s-osprim.adb<7sosprim.adb \
349 s-taprop.adb<5ntaprop.adb \
350 s-taspri.ads<5ntaspri.ads
352 # Default shared object option. Note that we rely on the fact that the "soname"
353 # option will always be present and last in this flag, so that we can have
354 # $(SO_OPTS)libgnat-x.xx
356 SO_OPTS = -Wl,-soname,
358 # Default gnatlib-shared target.
359 # By default, equivalent to gnatlib.
360 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
361 # target when supported.
362 GNATLIB_SHARED = gnatlib
364 # default value for gnatmake's target dependent file
367 # By default, do not distribute prefix.o (in libgccprefix), since it is only
368 # needed by external GNAT tools such as gnatdist and Glide.
369 # Override this variable on native platforms when needed.
372 # To avoid duplicate code, use this variable to set PREFIX_OBJS when needed:
373 PREFIX_REAL_OBJS = ../prefix.o \
374 ../../libiberty/concat.o \
375 ../../libiberty/xmalloc.o \
376 ../../libiberty/xstrdup.o \
377 ../../libiberty/xexit.o
379 LIB_VERSION = $(strip $(shell grep ' Library_Version :' $(fsrcpfx)gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
381 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
382 # $(strip STRING) removes leading and trailing spaces from STRING.
383 # If what's left is null then it's a match.
385 ifeq ($(strip $(filter-out %86 os2 OS2 os2_emx,$(arch) $(osys))),)
386 LIBGNAT_TARGET_PAIRS = \
387 a-excpol.adb<4wexcpol.adb \
388 a-intnam.ads<4nintnam.ads \
389 a-numaux.adb<86numaux.adb \
390 a-numaux.ads<86numaux.ads \
391 s-inmaop.adb<5ninmaop.adb \
392 s-interr.adb<5ointerr.adb \
393 s-intman.adb<5nintman.adb \
394 s-mastop.adb<5omastop.adb \
395 s-osinte.adb<5oosinte.adb \
396 s-osinte.ads<5oosinte.ads \
397 s-osprim.adb<5oosprim.adb \
398 s-parame.adb<5oparame.adb \
399 system.ads<5osystem.ads \
400 s-taprop.adb<5otaprop.adb \
401 s-taspri.ads<5otaspri.ads
403 EXTRA_GNATRTL_NONTASKING_OBJS = \
410 ifeq ($(strip $(filter-out %86 interix%,$(arch) $(osys))),)
411 LIBGNAT_TARGET_PAIRS = \
412 a-excpol.adb<4hexcpol.adb \
413 a-intnam.ads<4pintnam.ads \
414 a-numaux.adb<86numaux.adb \
415 a-numaux.ads<86numaux.ads \
416 g-soccon.ads<3psoccon.ads \
417 s-inmaop.adb<7sinmaop.adb \
418 s-intman.adb<7sintman.adb \
419 s-mastop.adb<5omastop.adb \
420 s-osinte.adb<7sosinte.adb \
421 s-osinte.ads<5posinte.ads \
422 s-osprim.adb<5posprim.adb \
423 s-taprop.adb<7staprop.adb \
424 system.ads<5psystem.ads \
425 s-taspri.ads<7staspri.ads \
426 s-tpopsp.adb<7stpopsp.adb
428 THREADSLIB = -lgthreads -lmalloc
429 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
432 # sysv5uw is SCO UnixWare 7
433 ifeq ($(strip $(filter-out %86 sysv5uw%,$(arch) $(osys))),)
434 LIBGNAT_TARGET_PAIRS = \
435 a-excpol.adb<4wexcpol.adb \
436 a-intnam.ads<41intnam.ads \
437 a-numaux.adb<86numaux.adb \
438 a-numaux.ads<86numaux.ads \
439 s-inmaop.adb<7sinmaop.adb \
440 s-intman.adb<7sintman.adb \
441 s-mastop.adb<5omastop.adb \
442 s-osinte.ads<51osinte.ads \
443 s-osinte.adb<51osinte.adb \
444 s-osprim.adb<5posprim.adb \
445 s-taprop.adb<7staprop.adb \
446 s-taspri.ads<7staspri.ads \
447 s-tpopsp.adb<5atpopsp.adb \
448 system.ads<51system.ads \
449 g-soccon.ads<31soccon.ads \
450 g-soliop.ads<31soliop.ads
452 THREADSLIB = -lthread
453 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
455 GNATLIB_SHARED = gnatlib-shared-dual
456 LIBRARY_VERSION := $(LIB_VERSION)
459 ifeq ($(strip $(filter-out alpha% dec vx%,$(targ))),)
460 LIBGNAT_TARGET_PAIRS = \
461 a-sytaco.ads<4zsytaco.ads \
462 a-sytaco.adb<4zsytaco.adb \
463 a-intnam.ads<4zintnam.ads \
464 a-numaux.ads<4znumaux.ads \
465 s-inmaop.adb<7sinmaop.adb \
466 s-interr.adb<5zinterr.adb \
467 s-intman.ads<5zintman.ads \
468 s-intman.adb<5zintman.adb \
469 s-osinte.adb<5zosinte.adb \
470 s-osinte.ads<5zosinte.ads \
471 s-osprim.adb<5zosprim.adb \
472 s-parame.ads<5zparame.ads \
473 s-taprop.adb<5ztaprop.adb \
474 s-tpopsp.adb<5ztpopsp.adb \
475 s-taspri.ads<5ztaspri.ads \
476 s-vxwork.ads<5avxwork.ads \
477 g-soccon.ads<3zsoccon.ads \
478 g-socthi.ads<3zsocthi.ads \
479 g-socthi.adb<3zsocthi.adb \
480 system.ads<5zsystem.ads
482 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
483 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
486 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
487 LIBGNAT_TARGET_PAIRS = \
488 a-sytaco.ads<4zsytaco.ads \
489 a-sytaco.adb<4zsytaco.adb \
490 a-intnam.ads<4zintnam.ads \
491 a-numaux.ads<4znumaux.ads \
492 s-inmaop.adb<7sinmaop.adb \
493 s-interr.adb<5zinterr.adb \
494 s-intman.ads<5zintman.ads \
495 s-intman.adb<5zintman.adb \
496 s-osinte.adb<5zosinte.adb \
497 s-osinte.ads<5zosinte.ads \
498 s-osprim.adb<5zosprim.adb \
499 s-parame.ads<5zparame.ads \
500 s-taprop.adb<5ztaprop.adb \
501 s-taspri.ads<5ztaspri.ads \
502 s-tpopsp.adb<5ztpopsp.adb \
503 s-vxwork.ads<5kvxwork.ads \
504 g-soccon.ads<3zsoccon.ads \
505 g-socthi.ads<3zsocthi.ads \
506 g-socthi.adb<3zsocthi.adb \
507 system.ads<5ksystem.ads
509 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
511 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
512 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
514 ifeq ($(strip $(filter-out yes,$(TRACE))),)
515 LIBGNAT_TARGET_PAIRS += \
516 s-traces.adb<7straces.adb \
517 s-tratas.adb<7stratas.adb \
518 s-trafor.adb<7strafor.adb \
519 s-trafor.ads<7strafor.ads \
520 s-tfsetr.adb<5ztfsetr.adb
524 ifeq ($(strip $(filter-out powerpc% wrs vxworks,$(targ))),)
525 LIBGNAT_TARGET_PAIRS = \
526 a-sytaco.ads<4zsytaco.ads \
527 a-sytaco.adb<4zsytaco.adb \
528 a-intnam.ads<4zintnam.ads \
529 a-numaux.ads<4znumaux.ads \
530 s-inmaop.adb<7sinmaop.adb \
531 s-interr.adb<5zinterr.adb \
532 s-intman.ads<5zintman.ads \
533 s-intman.adb<5zintman.adb \
534 s-osinte.adb<5zosinte.adb \
535 s-osinte.ads<5zosinte.ads \
536 s-osprim.adb<5zosprim.adb \
537 s-parame.ads<5zparame.ads \
538 s-taprop.adb<5ztaprop.adb \
539 s-taspri.ads<5ztaspri.ads \
540 s-tpopsp.adb<5ztpopsp.adb \
541 s-vxwork.ads<5pvxwork.ads \
542 g-soccon.ads<3zsoccon.ads \
543 g-socthi.ads<3zsocthi.ads \
544 g-socthi.adb<3zsocthi.adb \
545 system.ads<5ysystem.ads
547 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
549 EXTRA_HIE_NONE_TARGET_PAIRS= \
550 system.ads<50system.ads
552 EXTRA_RAVEN_SOURCES=i-vxwork.ads s-vxwork.ads
553 EXTRA_RAVEN_OBJS=i-vxwork.o s-vxwork.o
554 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
555 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
556 HIE_RAVEN_TARGET_PAIRS=\
557 $(HIE_NONE_TARGET_PAIRS) \
558 a-reatim.ads<1areatim.ads \
559 a-reatim.adb<1areatim.adb \
560 a-retide.adb<1aretide.adb \
561 a-interr.adb<1ainterr.adb \
562 s-interr.ads<1sinterr.ads \
563 s-interr.adb<1sinterr.adb \
564 s-taskin.ads<1staskin.ads \
565 s-taskin.adb<1staskin.adb \
566 s-tarest.adb<1starest.adb \
567 s-tposen.ads<1stposen.ads \
568 s-tposen.adb<1stposen.adb \
569 s-osinte.adb<1sosinte.adb \
570 s-taprop.ads<1staprop.ads \
571 s-taprop.adb<1staprop.adb \
572 s-taprob.ads<1staprob.ads \
573 s-taprob.adb<1staprob.adb \
574 a-sytaco.ads<1asytaco.ads \
575 a-sytaco.adb<1asytaco.adb \
576 a-intnam.ads<4zintnam.ads \
577 s-osinte.ads<5zosinte.ads \
578 s-parame.ads<5zparame.ads \
579 s-taspri.ads<5ztaspri.ads \
580 s-vxwork.ads<5pvxwork.ads \
581 a-taside.adb<1ataside.adb \
583 ifeq ($(strip $(filter-out yes,$(TRACE))),)
584 LIBGNAT_TARGET_PAIRS += \
585 s-traces.adb<7straces.adb \
586 s-trafor.adb<7strafor.adb \
587 s-trafor.ads<7strafor.ads \
588 s-tratas.adb<7stratas.adb \
589 s-tfsetr.adb<5ztfsetr.adb
593 ifeq ($(strip $(filter-out powerpc% unknown elf,$(targ))),)
594 EXTRA_HIE_NONE_TARGET_PAIRS= \
595 system.ads<59system.ads
597 LIBGNAT_TARGET_PAIRS = \
598 $(HIE_NONE_TARGET_PAIRS)
601 ifeq ($(strip $(filter-out sparc% unknown elf,$(targ))),)
602 EXTRA_HIE_NONE_TARGET_PAIRS= \
603 system.ads<5rsystem.ads
605 LIBGNAT_TARGET_PAIRS = \
606 $(HIE_NONE_TARGET_PAIRS)
609 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
610 LIBGNAT_TARGET_PAIRS = \
611 a-sytaco.ads<4zsytaco.ads \
612 a-sytaco.adb<4zsytaco.adb \
613 a-intnam.ads<4zintnam.ads \
614 a-numaux.ads<4znumaux.ads \
615 s-inmaop.adb<7sinmaop.adb \
616 s-interr.adb<5zinterr.adb \
617 s-intman.ads<5zintman.ads \
618 s-intman.adb<5zintman.adb \
619 s-osinte.adb<5zosinte.adb \
620 s-osinte.ads<5zosinte.ads \
621 s-osprim.adb<5zosprim.adb \
622 s-parame.ads<5zparame.ads \
623 s-taprop.adb<5ztaprop.adb \
624 s-taspri.ads<5ztaspri.ads \
625 s-tpopsp.adb<5ztpopsp.adb \
626 s-vxwork.ads<5svxwork.ads \
627 g-soccon.ads<3zsoccon.ads \
628 g-socthi.ads<3zsocthi.ads \
629 g-socthi.adb<3zsocthi.adb \
630 system.ads<5csystem.ads \
632 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
634 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
635 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
638 ifeq ($(strip $(filter-out xscale% coff wrs vx%,$(targ))),)
639 LIBGNAT_TARGET_PAIRS = \
640 a-sytaco.ads<4zsytaco.ads \
641 a-sytaco.adb<4zsytaco.adb \
642 a-intnam.ads<4zintnam.ads \
643 a-numaux.ads<4znumaux.ads \
644 s-inmaop.adb<7sinmaop.adb \
645 s-interr.adb<5zinterr.adb \
646 s-intman.ads<5zintman.ads \
647 s-intman.adb<5zintman.adb \
648 s-osinte.adb<5zosinte.adb \
649 s-osinte.ads<5zosinte.ads \
650 s-osprim.adb<5zosprim.adb \
651 s-parame.ads<5zparame.ads \
652 s-taprop.adb<5ztaprop.adb \
653 s-taspri.ads<5ztaspri.ads \
654 s-tpopsp.adb<5ztpopsp.adb \
655 s-vxwork.ads<5xvxwork.ads \
656 g-soccon.ads<3zsoccon.ads \
657 g-socthi.ads<3zsocthi.ads \
658 g-socthi.adb<3zsocthi.adb \
659 system.ads<5rsystem.ads
661 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
663 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
664 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
667 ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)
668 LIBGNAT_TARGET_PAIRS = \
669 a-sytaco.ads<4zsytaco.ads \
670 a-sytaco.adb<4zsytaco.adb \
671 a-intnam.ads<4zintnam.ads \
672 a-numaux.ads<4znumaux.ads \
673 s-inmaop.adb<7sinmaop.adb \
674 s-interr.adb<5zinterr.adb \
675 s-intman.ads<5zintman.ads \
676 s-intman.adb<5zintman.adb \
677 s-osinte.adb<5zosinte.adb \
678 s-osinte.ads<5zosinte.ads \
679 s-osprim.adb<5zosprim.adb \
680 s-parame.ads<5zparame.ads \
681 s-taprop.adb<5ztaprop.adb \
682 s-taspri.ads<5ztaspri.ads \
683 s-tpopsp.adb<5ztpopsp.adb \
684 s-vxwork.ads<5mvxwork.ads \
685 g-soccon.ads<3zsoccon.ads \
686 g-socthi.ads<3zsocthi.ads \
687 g-socthi.adb<3zsocthi.adb \
688 system.ads<5msystem.ads
690 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
692 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
693 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
696 ifeq ($(strip $(filter-out sparc sun solaris%,$(targ))),)
697 LIBGNAT_TARGET_PAIRS = \
698 a-intnam.ads<4sintnam.ads \
699 s-inmaop.adb<7sinmaop.adb \
700 s-intman.adb<5sintman.adb \
701 s-osinte.adb<5sosinte.adb \
702 s-osinte.ads<5sosinte.ads \
703 s-osprim.adb<5sosprim.adb \
704 s-parame.adb<5sparame.adb \
705 s-taprop.adb<5staprop.adb \
706 s-tasinf.adb<5stasinf.adb \
707 s-tasinf.ads<5stasinf.ads \
708 s-taspri.ads<5staspri.ads \
709 s-tpopsp.adb<5stpopsp.adb \
710 g-soccon.ads<3ssoccon.ads \
711 g-soliop.ads<3ssoliop.ads \
712 system.ads<5ssystem.ads
714 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5sml-tgt.adb
716 THREADSLIB = -lposix4 -lthread
717 MISCLIB = -lposix4 -lnsl -lsocket
718 SYMLIB = -laddr2line -lbfd $(LIBINTL)
720 GNATLIB_SHARED = gnatlib-shared-dual
722 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
723 LIBRARY_VERSION := $(LIB_VERSION)
725 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
726 LIBGNAT_TARGET_PAIRS = \
727 a-intnam.ads<4sintnam.ads \
728 s-inmaop.adb<7sinmaop.adb \
729 s-intman.adb<5sintman.adb \
730 s-osinte.adb<7sosinte.adb \
731 s-osinte.ads<5tosinte.ads \
732 s-osprim.adb<5sosprim.adb \
733 s-taprop.adb<7staprop.adb \
734 s-taspri.ads<7staspri.ads \
735 s-tpopsp.adb<7stpopsp.adb \
736 g-soccon.ads<3ssoccon.ads \
737 g-soliop.ads<3ssoliop.ads \
738 system.ads<5ssystem.ads
740 THREADSLIB = -lgthreads -lmalloc
743 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
744 LIBGNAT_TARGET_PAIRS = \
745 a-intnam.ads<4sintnam.ads \
746 s-inmaop.adb<7sinmaop.adb \
747 s-intman.adb<7sintman.adb \
748 s-osinte.adb<5iosinte.adb \
749 s-osinte.ads<54osinte.ads \
750 s-osprim.adb<5sosprim.adb \
751 s-taprop.adb<7staprop.adb \
752 s-taspri.ads<7staspri.ads \
753 s-tpopsp.adb<5atpopsp.adb \
754 g-soccon.ads<3ssoccon.ads \
755 g-soliop.ads<3ssoliop.ads \
756 system.ads<5ssystem.ads
758 THREADSLIB = -lposix4 -lpthread
761 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
762 LIBGNAT_TARGET_PAIRS = \
763 a-intnam.ads<4sintnam.ads \
764 s-inmaop.adb<7sinmaop.adb \
765 s-intman.adb<5sintman.adb \
766 s-osinte.adb<5sosinte.adb \
767 s-osinte.ads<5sosinte.ads \
768 s-osprim.adb<5sosprim.adb \
769 s-parame.adb<5sparame.adb \
770 s-taprop.adb<5staprop.adb \
771 s-tasinf.adb<5stasinf.adb \
772 s-tasinf.ads<5stasinf.ads \
773 s-taspri.ads<5staspri.ads \
774 s-tpopsp.adb<5stpopsp.adb \
775 g-soccon.ads<3ssoccon.ads \
776 g-soliop.ads<3ssoliop.ads \
777 system.ads<5usystem.ads
781 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
782 LIBGNAT_TARGET_PAIRS = \
783 a-numaux.adb<86numaux.adb \
784 a-numaux.ads<86numaux.ads \
785 a-intnam.ads<4sintnam.ads \
786 s-inmaop.adb<7sinmaop.adb \
787 s-intman.adb<5sintman.adb \
788 s-mastop.adb<5omastop.adb \
789 s-osinte.adb<5sosinte.adb \
790 s-osinte.ads<5sosinte.ads \
791 s-osprim.adb<5sosprim.adb \
792 s-parame.adb<5sparame.adb \
793 s-taprop.adb<5staprop.adb \
794 s-tasinf.adb<5stasinf.adb \
795 s-tasinf.ads<5stasinf.ads \
796 s-taspri.ads<5staspri.ads \
797 s-tpopsp.adb<5stpopsp.adb \
798 g-soccon.ads<3ssoccon.ads \
799 g-soliop.ads<3ssoliop.ads \
800 system.ads<5esystem.ads
802 THREADSLIB = -lposix4 -lthread
803 MISCLIB = -lposix4 -lnsl -lsocket
805 GNATLIB_SHARED = gnatlib-shared-dual
806 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
807 LIBRARY_VERSION := $(LIB_VERSION)
810 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
811 LIBGNAT_TARGET_PAIRS = \
812 a-intnam.ads<4lintnam.ads \
813 a-numaux.adb<86numaux.adb \
814 a-numaux.ads<86numaux.ads \
815 s-inmaop.adb<7sinmaop.adb \
816 s-intman.adb<7sintman.adb \
817 s-mastop.adb<5omastop.adb \
818 s-osinte.adb<5iosinte.adb \
819 s-osinte.ads<5iosinte.ads \
820 s-osprim.adb<7sosprim.adb \
821 s-taprop.adb<5itaprop.adb \
822 s-taspri.ads<5itaspri.ads \
823 s-tpopsp.adb<5atpopsp.adb \
824 s-parame.adb<5lparame.adb \
825 system.ads<5lsystem.ads
827 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5lml-tgt.adb
828 SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
829 THREADSLIB = -lpthread
830 GNATLIB_SHARED = gnatlib-shared-dual
832 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
833 LIBRARY_VERSION := $(LIB_VERSION)
835 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
836 LIBGNAT_TARGET_PAIRS = \
837 a-intnam.ads<4lintnam.ads \
838 a-numaux.adb<86numaux.adb \
839 a-numaux.ads<86numaux.ads \
840 s-inmaop.adb<7sinmaop.adb \
841 s-intman.adb<7sintman.adb \
842 s-mastop.adb<5omastop.adb \
843 s-osinte.adb<7sosinte.adb \
844 s-osinte.ads<5losinte.ads \
845 s-osprim.adb<7sosprim.adb \
846 s-taprop.adb<7staprop.adb \
847 s-taspri.ads<7staspri.ads \
848 s-tpopsp.adb<7stpopsp.adb \
849 system.ads<5lsystem.ads
851 THREADSLIB = -lgthreads -lmalloc
855 ifeq ($(strip $(filter-out %86 freebsd%,$(arch) $(osys))),)
856 LIBGNAT_TARGET_PAIRS = \
857 a-intnam.ads<45intnam.ads \
858 g-soccon.ads<35soccon.ads \
859 s-inmaop.adb<7sinmaop.adb \
860 s-intman.adb<7sintman.adb \
861 s-mastop.adb<5omastop.adb \
862 s-osinte.adb<55osinte.adb \
863 s-osinte.ads<55osinte.ads \
864 s-osprim.adb<7sosprim.adb \
865 s-taprop.adb<7staprop.adb \
866 s-taspri.ads<7staspri.ads \
867 s-tpopsp.adb<7stpopsp.adb \
868 system.ads<56system.ads
871 LIBRARY_VERSION := $(LIB_VERSION)
874 ifeq ($(strip $(filter-out mips sgi irix%,$(targ))),)
875 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
876 LIBGNAT_TARGET_PAIRS = \
877 a-intnam.ads<4gintnam.ads \
878 s-inmaop.adb<7sinmaop.adb \
879 s-intman.adb<5fintman.adb \
880 s-mastop.adb<5gmastop.adb \
881 s-osinte.adb<5fosinte.adb \
882 s-osinte.ads<5fosinte.ads \
883 s-osprim.adb<7sosprim.adb \
884 s-proinf.adb<5gproinf.adb \
885 s-proinf.ads<5gproinf.ads \
886 s-taprop.adb<5ftaprop.adb \
887 s-tasinf.ads<5ftasinf.ads \
888 s-taspri.ads<7staspri.ads \
889 s-tpopsp.adb<7stpopsp.adb \
890 s-traceb.adb<7straceb.adb \
891 g-soccon.ads<3gsoccon.ads \
892 system.ads<5gsystem.ads
894 THREADSLIB = -lpthread
895 GNATLIB_SHARED = gnatlib-shared-default
898 LIBGNAT_TARGET_PAIRS = \
899 a-intnam.ads<4gintnam.ads \
900 s-inmaop.adb<5ninmaop.adb \
901 s-interr.adb<5ginterr.adb \
902 s-intman.adb<5gintman.adb \
903 s-mastop.adb<5gmastop.adb \
904 s-osinte.adb<5fosinte.adb \
905 s-osinte.ads<5gosinte.ads \
906 s-osprim.adb<7sosprim.adb \
907 s-proinf.adb<5gproinf.adb \
908 s-proinf.ads<5gproinf.ads \
909 s-taprop.adb<5gtaprop.adb \
910 s-tasinf.adb<5gtasinf.adb \
911 s-tasinf.ads<5gtasinf.ads \
912 s-taspri.ads<7staspri.ads \
913 s-traceb.adb<7straceb.adb \
914 g-soccon.ads<3gsoccon.ads \
915 system.ads<5fsystem.ads
917 THREADSLIB = -lathread
920 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5gml-tgt.adb
923 SO_OPTS = -Wl,-all,-set_version,sgi1.0,-update_registry,../so_locations,-soname,
924 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
925 LIBRARY_VERSION := $(LIB_VERSION)
928 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
929 LIBGNAT_TARGET_PAIRS = \
930 a-excpol.adb<4wexcpol.adb \
931 a-intnam.ads<4hintnam.ads \
932 s-inmaop.adb<7sinmaop.adb \
933 s-interr.adb<5ginterr.adb \
934 s-intman.adb<7sintman.adb \
935 s-osinte.adb<5hosinte.adb \
936 s-osinte.ads<5hosinte.ads \
937 s-parame.ads<5hparame.ads \
938 s-osprim.adb<7sosprim.adb \
939 s-taprop.adb<5htaprop.adb \
940 s-taspri.ads<5htaspri.ads \
941 s-tpopsp.adb<7stpopsp.adb \
942 g-soccon.ads<3hsoccon.ads \
943 system.ads<5hsystem.ads
945 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
948 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
949 LIBGNAT_TARGET_PAIRS = \
950 a-intnam.ads<4hintnam.ads \
951 s-inmaop.adb<7sinmaop.adb \
952 s-intman.adb<7sintman.adb \
953 s-osinte.adb<5iosinte.adb \
954 s-osinte.ads<53osinte.ads \
955 s-parame.ads<5hparame.ads \
956 s-osprim.adb<7sosprim.adb \
957 s-traceb.adb<5htraceb.adb \
958 s-taprop.adb<7staprop.adb \
959 s-taspri.ads<7staspri.ads \
960 s-tpopsp.adb<5atpopsp.adb \
961 g-soccon.ads<3hsoccon.ads \
962 system.ads<5hsystem.ads
964 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5hml-tgt.adb
965 TGT_LIB = /usr/lib/libcl.a
966 THREADSLIB = -lpthread
967 SYMLIB = -laddr2line -lbfd $(LIBINTL)
971 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
972 GNATLIB_SHARED = gnatlib-shared-dual
973 LIBRARY_VERSION := $(LIB_VERSION)
975 ifeq ($(strip $(filter-out dce DCE,$(THREAD_KIND))),)
976 LIBGNAT_TARGET_PAIRS = \
977 a-excpol.adb<4wexcpol.adb \
978 a-intnam.ads<4hintnam.ads \
979 s-inmaop.adb<7sinmaop.adb \
980 s-interr.adb<5ginterr.adb \
981 s-intman.adb<7sintman.adb \
982 s-osinte.adb<5hosinte.adb \
983 s-osinte.ads<5hosinte.ads \
984 s-parame.ads<5hparame.ads \
985 s-osprim.adb<7sosprim.adb \
986 s-taprop.adb<5htaprop.adb \
987 s-taspri.ads<5htaspri.ads \
988 s-tpopsp.adb<7stpopsp.adb \
989 g-soccon.ads<3hsoccon.ads \
990 system.ads<5hsystem.ads
997 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
998 LIBGNAT_TARGET_PAIRS = \
999 a-intnam.ads<4cintnam.ads \
1000 s-inmaop.adb<7sinmaop.adb \
1001 s-intman.adb<7sintman.adb \
1002 s-osinte.adb<5bosinte.adb \
1003 s-osinte.ads<5bosinte.ads \
1004 s-osprim.adb<7sosprim.adb \
1005 s-taprop.adb<7staprop.adb \
1006 s-taspri.ads<7staspri.ads \
1007 s-tpopsp.adb<7stpopsp.adb \
1008 g-soccon.ads<3bsoccon.ads \
1009 system.ads<5bsystem.ads
1011 THREADSLIB = -lpthreads
1012 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1014 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
1015 LIBGNAT_TARGET_PAIRS = \
1016 a-intnam.ads<4cintnam.ads \
1017 s-inmaop.adb<7sinmaop.adb \
1018 s-intman.adb<7sintman.adb \
1019 s-osinte.adb<7sosinte.adb \
1020 s-osinte.ads<5cosinte.ads \
1021 s-osprim.adb<7sosprim.adb \
1022 s-taprop.adb<7staprop.adb \
1023 s-taspri.ads<7staspri.ads \
1024 s-tpopsp.adb<7stpopsp.adb \
1025 g-soccon.ads<3bsoccon.ads \
1026 system.ads<5bsystem.ads
1028 THREADSLIB = -lgthreads -lmalloc
1031 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5bml-tgt.adb
1033 SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
1037 ifeq ($(strip $(filter-out lynxos,$(osys))),)
1038 ifeq ($(strip $(filter-out %86 lynxos,$(arch) $(osys))),)
1039 LIBGNAT_TARGET_PAIRS = \
1040 a-numaux.adb<86numaux.adb \
1041 a-numaux.ads<86numaux.ads \
1042 a-intnam.ads<42intnam.ads \
1043 s-mastop.adb<5omastop.adb \
1044 s-inmaop.adb<7sinmaop.adb \
1045 s-intman.adb<7sintman.adb \
1046 s-osinte.adb<56osinte.adb \
1047 s-osinte.ads<56osinte.ads \
1048 s-osprim.adb<7sosprim.adb \
1049 s-taprop.adb<56taprop.adb \
1050 s-taspri.ads<56taspri.ads \
1051 s-tpopsp.adb<56tpopsp.adb \
1052 system.ads<58system.ads
1054 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1057 LIBGNAT_TARGET_PAIRS = \
1058 a-intnam.ads<42intnam.ads \
1059 s-inmaop.adb<7sinmaop.adb \
1060 s-intman.adb<7sintman.adb \
1061 s-osinte.adb<52osinte.adb \
1062 s-osinte.ads<52osinte.ads \
1063 s-osprim.adb<7sosprim.adb \
1064 s-taprop.adb<7staprop.adb \
1065 s-taspri.ads<7staspri.ads \
1066 s-tpopsp.adb<7stpopsp.adb \
1067 system.ads<57system.ads
1069 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
1070 LIBGNAT_TARGET_PAIRS = \
1071 a-intnam.ads<42intnam.ads \
1072 s-inmaop.adb<7sinmaop.adb \
1073 s-intman.adb<7sintman.adb \
1074 s-osinte.adb<56osinte.adb \
1075 s-osinte.ads<56osinte.ads \
1076 s-osprim.adb<7sosprim.adb \
1077 s-taprop.adb<56taprop.adb \
1078 s-taspri.ads<56taspri.ads \
1079 s-tpopsp.adb<56tpopsp.adb \
1080 system.ads<57system.ads
1086 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1087 LIBGNAT_TARGET_PAIRS = \
1088 a-intnam.ads<4rintnam.ads \
1089 s-inmaop.adb<7sinmaop.adb \
1090 s-intman.adb<7sintman.adb \
1091 s-osinte.adb<5rosinte.adb \
1092 s-osinte.ads<5rosinte.ads \
1093 s-osprim.adb<7sosprim.adb \
1094 s-parame.adb<5rparame.adb \
1095 s-taprop.adb<7staprop.adb \
1096 s-taspri.ads<7staspri.ads \
1097 s-tpopsp.adb<5rtpopsp.adb
1100 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1101 LIBGNAT_TARGET_PAIRS = \
1102 a-intnam.ads<4aintnam.ads \
1103 s-inmaop.adb<7sinmaop.adb \
1104 s-intman.adb<7sintman.adb \
1105 s-mastop.adb<5amastop.adb \
1106 s-osinte.adb<5aosinte.adb \
1107 s-osinte.ads<5aosinte.ads \
1108 s-osprim.adb<5posprim.adb \
1109 s-taprop.adb<5ataprop.adb \
1110 s-tasinf.ads<5atasinf.ads \
1111 s-taspri.ads<5ataspri.ads \
1112 s-tpopsp.adb<5atpopsp.adb \
1113 s-traceb.adb<7straceb.adb \
1114 g-soccon.ads<3asoccon.ads \
1115 system.ads<5asystem.ads
1117 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5aml-tgt.adb
1120 SYMLIB = -laddr2line -lbfd $(LIBINTL)
1121 THREADSLIB = -lpthread -lmach -lexc -lrt
1122 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1123 GNATLIB_SHARED = gnatlib-shared-default
1124 LIBRARY_VERSION := $(LIB_VERSION)
1127 ifeq ($(strip $(filter-out alpha% ia64 dec vms% openvms% alphavms%,$(host))),)
1135 @ gnu:[bin]vmssymvec $<
1138 ifeq ($(strip $(filter-out alpha% ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1140 ifeq ($(strip $(filter-out ia64% hp vms% openvms%,$(targ))),)
1141 LIBGNAT_TARGET_PAIRS_AUX = \
1142 s-osinte.adb<5xosinte.adb \
1143 s-osinte.ads<5xosinte.ads \
1144 s-parame.ads<5vparame.ads
1146 ifeq ($(strip $(filter-out alpha64% dec hp vms% openvms% alphavms%,$(targ))),)
1147 LIBGNAT_TARGET_PAIRS_AUX = \
1148 s-osinte.adb<5vosinte.adb \
1149 s-osinte.ads<5vosinte.ads \
1150 s-parame.ads<5vparame.ads
1152 ifeq ($(strip $(filter-out express EXPRESS,$(THREAD_KIND))),)
1153 LIBGNAT_TARGET_PAIRS_AUX = \
1154 s-osinte.adb<5vosinte.adb \
1155 s-osinte.ads<5vosinte.ads \
1156 s-parame.ads<5xparame.ads
1158 LIBGNAT_TARGET_PAIRS_AUX = \
1159 s-osinte.adb<5vosinte.adb \
1160 s-osinte.ads<5vosinte.ads \
1161 s-parame.ads<5vparame.ads
1166 LIBGNAT_TARGET_PAIRS = \
1167 a-caldel.adb<4vcaldel.adb \
1168 a-calend.adb<4vcalend.adb \
1169 a-calend.ads<4vcalend.ads \
1170 a-excpol.adb<4wexcpol.adb \
1171 a-intnam.ads<4vintnam.ads \
1172 a-numaux.ads<4vnumaux.ads \
1173 g-expect.adb<3vexpect.adb \
1174 g-soccon.ads<3vsoccon.ads \
1175 g-socthi.ads<3vsocthi.ads \
1176 g-socthi.adb<3vsocthi.adb \
1177 g-trasym.adb<3vtrasym.adb \
1178 i-cstrea.adb<6vcstrea.adb \
1179 i-cpp.adb<6vcpp.adb \
1180 interfac.ads<6vinterf.ads \
1181 s-asthan.adb<5vasthan.adb \
1182 s-crtl.ads<5vcrtl.ads \
1183 s-inmaop.adb<5vinmaop.adb \
1184 s-interr.adb<5vinterr.adb \
1185 s-intman.adb<5vintman.adb \
1186 s-intman.ads<5vintman.ads \
1187 s-osprim.adb<5vosprim.adb \
1188 s-osprim.ads<5vosprim.ads \
1189 s-taprop.adb<5vtaprop.adb \
1190 s-taspri.ads<5vtaspri.ads \
1191 s-tpopsp.adb<7stpopsp.adb \
1192 s-tpopde.adb<5vtpopde.adb \
1193 s-tpopde.ads<5vtpopde.ads \
1194 s-traent.adb<5vtraent.adb \
1195 s-traent.ads<5vtraent.ads \
1196 s-vaflop.adb<5vvaflop.adb \
1197 system.ads<5xsystem.ads \
1198 $(LIBGNAT_TARGET_PAIRS_AUX)
1200 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5vml-tgt.adb
1202 GNATLIB_SHARED=gnatlib-shared-vms
1203 EXTRA_LIBGNAT_SRCS=vmshandler.asm
1204 EXTRA_LIBGNAT_OBJS=vmshandler.o
1205 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1207 ../../gnatlbr$(exeext) \
1208 ,,/../gnatsym$(exeext)
1209 # This command transforms (YYYYMMDD) into YY,MMDD
1210 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\)/\2,\3/')
1211 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1212 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1215 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1216 LIBGNAT_TARGET_PAIRS = \
1217 a-calend.adb<4wcalend.adb \
1218 a-excpol.adb<4wexcpol.adb \
1219 a-intnam.ads<4wintnam.ads \
1220 a-numaux.adb<86numaux.adb \
1221 a-numaux.ads<86numaux.ads \
1222 s-gloloc.adb<5wgloloc.adb \
1223 s-inmaop.adb<5ninmaop.adb \
1224 s-interr.adb<5ginterr.adb \
1225 s-intman.adb<5wintman.adb \
1226 s-mastop.adb<5omastop.adb \
1227 s-memory.adb<5wmemory.adb \
1228 s-osinte.ads<5wosinte.ads \
1229 s-osprim.adb<5wosprim.adb \
1230 s-taprop.adb<5wtaprop.adb \
1231 s-taspri.ads<5wtaspri.ads \
1232 g-socthi.ads<3wsocthi.ads \
1233 g-socthi.adb<3wsocthi.adb \
1234 g-soccon.ads<3wsoccon.ads \
1235 g-soliop.ads<3wsoliop.ads \
1236 system.ads<5wsystem.ads
1238 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5wml-tgt.adb
1240 SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
1242 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1243 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1244 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1245 EXTRA_GNATRTL_NONTASKING_OBJS = g-regist.o
1247 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT auto-import
1248 # support for array/record will be done.
1249 GNATLIB_SHARED = gnatlib-shared-win32
1250 LIBRARY_VERSION := $(LIB_VERSION)
1253 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1254 LIBGNAT_TARGET_PAIRS = \
1255 a-intnam.ads<4lintnam.ads \
1256 s-inmaop.adb<7sinmaop.adb \
1257 s-intman.adb<7sintman.adb \
1258 s-osinte.ads<5iosinte.ads \
1259 s-osinte.adb<5iosinte.adb \
1260 s-osprim.adb<7sosprim.adb \
1261 s-taprop.adb<5itaprop.adb \
1262 s-tpopsp.adb<5atpopsp.adb \
1263 s-taspri.ads<5itaspri.ads \
1264 system.ads<55system.ads
1266 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5lml-tgt.adb
1268 THREADSLIB=-lpthread
1269 GNATLIB_SHARED=gnatlib-shared-dual
1270 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1271 LIBRARY_VERSION := $(LIB_VERSION)
1274 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
1275 LIBGNAT_TARGET_PAIRS = \
1276 a-intnam.ads<4lintnam.ads \
1277 a-numaux.adb<86numaux.adb \
1278 a-numaux.ads<86numaux.ads \
1279 s-inmaop.adb<7sinmaop.adb \
1280 s-intman.adb<7sintman.adb \
1281 s-osinte.ads<5iosinte.ads \
1282 s-osinte.adb<5iosinte.adb \
1283 s-osprim.adb<7sosprim.adb \
1284 s-taprop.adb<5itaprop.adb \
1285 s-tpopsp.adb<5atpopsp.adb \
1286 s-taspri.ads<5itaspri.ads \
1287 system.ads<5nsystem.ads
1289 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5lml-tgt.adb
1291 THREADSLIB=-lpthread
1292 GNATLIB_SHARED=gnatlib-shared-dual
1293 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1294 LIBRARY_VERSION := $(LIB_VERSION)
1297 # The runtime library for gnat comprises two directories. One contains the
1298 # Ada source files that the compiler (gnat1) needs -- these files are listed
1299 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1300 # corresponding .ali files for the parts written in Ada, libgnat.a for
1301 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1302 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1303 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1304 # go into the directory. The pthreads emulation is built in the threads
1305 # subdirectory and copied.
1306 LIBGNAT_SRCS = ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1307 errno.c exit.c cal.c ctrl_c.c \
1308 raise.h raise.c sysdep.c types.h aux-io.c init.c \
1309 final.c tracebak.c tb-alvms.c tb-alvxw.c expect.c mkdir.c socket.c \
1310 $(EXTRA_LIBGNAT_SRCS)
1312 LIBGNAT_OBJS = adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o \
1313 raise.o sysdep.o aux-io.o init.o cal.o final.o \
1314 tracebak.o expect.o mkdir.o socket.o $(EXTRA_LIBGNAT_OBJS)
1316 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1317 # the library installation will change and there will be a
1318 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1319 # from ADA_INCLUDE_SRCS.
1321 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1322 # the following include file:
1324 include $(fsrcdir)/Makefile.rtl
1326 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
1327 g-trasym.o memtrack.o
1329 # Files which are suitable in no run time/hi integrity mode
1331 COMPILABLE_HIE_SOURCES= \
1351 a-except.adb $(EXTRA_HIE_SOURCES)
1353 NON_COMPILABLE_HIE_SOURCES= \
1364 HIE_SOURCES = $(NON_COMPILABLE_HIE_SOURCES) $(COMPILABLE_HIE_SOURCES)
1366 # Object to generate for the HI run time
1383 a-tags.o $(EXTRA_HIE_OBJS)
1385 # Files which are needed in ravenscar mode
1387 COMPILABLE_RAVEN_SOURCES = \
1388 $(COMPILABLE_HIE_SOURCES) \
1420 a-taside.adb $(EXTRA_RAVEN_SOURCES)
1422 NON_COMPILABLE_RAVEN_SOURCES= $(NON_COMPILABLE_HIE_SOURCES)
1424 RAVEN_SOURCES = $(NON_COMPILABLE_RAVEN_SOURCES) $(COMPILABLE_RAVEN_SOURCES)
1426 # Objects to generate for the ravenscar run time
1447 a-taside.o $(EXTRA_RAVEN_OBJS)
1449 # Default run time files
1452 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1453 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1454 sequenio.ads system.ads Makefile.prolog Makefile.generic \
1456 a-*.adb a-*.ads g-*.ad? i-*.ad? \
1457 s-[a-o]*.adb s-[p-z]*.adb \
1458 s-[a-o]*.ads s-[p-z]*.ads
1460 LIBGNAT=../rts/libgnat.a
1461 TOOLS_FLAGS_TO_PASS= \
1463 "CFLAGS=$(CFLAGS)" \
1464 "LDFLAGS=$(LDFLAGS)" \
1465 "ADAFLAGS=$(ADAFLAGS)" \
1466 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
1467 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
1468 "libsubdir=$(libsubdir)" \
1469 "exeext=$(exeext)" \
1470 "fsrcdir=$(fsrcdir)" \
1471 "srcdir=$(fsrcdir)" \
1472 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
1473 "GNATMAKE=$(GNATMAKE)" \
1474 "GNATLINK=$(GNATLINK)" \
1475 "GNATBIND=$(GNATBIND)"
1477 # Build directory for the tools. Let's copy the target-dependent
1478 # sources using the same mechanism as for gnatlib. The other sources are
1479 # accessed using the vpath directive below
1485 -(cd tools; $(LN_S) ../sdefault.adb .)
1486 -$(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
1487 $(RM) tools/$(word 1,$(subst <, ,$(PAIR)));\
1488 $(LN_S) $(fsrcdir)/$(word 2,$(subst <, ,$(PAIR))) \
1489 tools/$(word 1,$(subst <, ,$(PAIR)));)
1490 touch ../stamp-tools
1492 # when compiling the tools, the runtime has to be first on the path so that
1493 # it hides the runtime files lying with the rest of the sources
1494 ifeq ($(TOOLSCASE),native)
1495 vpath %.ads ../rts ../
1496 vpath %.adb ../rts ../
1497 vpath %.c ../rts ../
1498 vpath %.h ../rts ../
1501 # in the cross tools case, everything is compiled with the native
1502 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1503 ifeq ($(TOOLSCASE),cross)
1510 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
1511 # reasons: gnatmake should be built with a recent compiler, a recent compiler
1512 # may not generate ALI files compatible with an old gnatmake so it is important
1513 # to be able to build gnatmake without a version of gnatmake around. Once
1514 # everything has been compiled once, gnatmake can be recompiled with itself
1515 # (see target gnattools1-re)
1516 gnattools1: ../stamp-tools ../stamp-gnatlib
1517 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1519 ../../gnatmake$(exeext) ../../gnatlink$(exeext) ../../gnatbl$(exeext)
1521 # gnatmake/link can be built with recent gnatmake/link if they are available.
1522 # This is especially convenient for building cross tools or for rebuilding
1523 # the tools when the original bootstrap has already be done.
1524 gnattools1-re: ../stamp-tools
1525 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1526 TOOLSCASE=cross INCLUDES="" gnatmake-re gnatlink-re
1528 # these tools are built with gnatmake & are common to native and cross
1529 gnattools2: ../stamp-tools
1530 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1532 ../../gnatchop$(exeext) ../../gnat$(exeext) ../../gnatkr$(exeext) \
1533 ../../gnatls$(exeext) ../../gnatprep$(exeext) \
1534 ../../gnatxref$(exeext) \
1535 ../../gnatfind$(exeext) ../../gnatname$(exeext) \
1536 ../../gnatclean$(exeext) \
1537 ../../gprcmd$(exeext) ../../gpr2make$(exeext)
1539 # These tools are only built for the native version.
1540 gnattools3: ../stamp-tools
1541 # $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1542 # TOOLSCASE=native top_builddir=../../.. \
1543 # ../../gnatmem$(exeext) $(EXTRA_GNATTOOLS)
1545 # those tools are only built for the cross version
1546 gnattools4: ../stamp-tools
1547 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1548 TOOLSCASE=cross top_buildir=../../.. \
1549 ../../vxaddr2line$(exeext)
1551 ../../gnatchop$(exeext): ../stamp-tools
1552 $(GNATMAKE) -c $(ADA_INCLUDES) gnatchop --GCC="$(CC) $(ALL_ADAFLAGS)"
1553 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatchop
1554 $(GNATLINK) -v gnatchop -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1557 ../../gnat$(exeext): ../stamp-tools
1558 $(GNATMAKE) -c $(ADA_INCLUDES) gnatcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1559 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatcmd
1560 $(GNATLINK) -v gnatcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1562 ../../gnatkr$(exeext): ../stamp-tools
1563 $(GNATMAKE) -c $(ADA_INCLUDES) gnatkr --GCC="$(CC) $(ALL_ADAFLAGS)"
1564 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatkr
1565 $(GNATLINK) -v gnatkr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1567 ../../gnatls$(exeext): ../stamp-tools
1568 $(GNATMAKE) -c $(ADA_INCLUDES) gnatls --GCC="$(CC) $(ALL_ADAFLAGS)"
1569 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatls
1570 $(GNATLINK) -v gnatls -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1572 ../../gnatname$(exeext): ../stamp-tools
1573 $(GNATMAKE) -c $(ADA_INCLUDES) gnatname --GCC="$(CC) $(ALL_ADAFLAGS)"
1574 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatname
1575 $(GNATLINK) -v gnatname -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1578 ../../gpr2make$(exeext): ../stamp-tools
1579 $(GNATMAKE) -c $(ADA_INCLUDES) gpr2make --GCC="$(CC) $(ALL_ADAFLAGS)"
1580 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gpr2make
1581 $(GNATLINK) -v gpr2make -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1584 ../../gnatprep$(exeext): ../stamp-tools
1585 $(GNATMAKE) -c $(ADA_INCLUDES) gnatprep --GCC="$(CC) $(ALL_ADAFLAGS)"
1586 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatprep
1587 $(GNATLINK) -v gnatprep -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1590 ../../gnatxref$(exeext): ../stamp-tools
1591 $(GNATMAKE) -c $(ADA_INCLUDES) gnatxref --GCC="$(CC) $(ALL_ADAFLAGS)"
1592 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatxref
1593 $(GNATLINK) -v gnatxref -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1596 ../../gnatfind$(exeext): ../stamp-tools
1597 $(GNATMAKE) -c $(ADA_INCLUDES) gnatfind --GCC="$(CC) $(ALL_ADAFLAGS)"
1598 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatfind
1599 $(GNATLINK) -v gnatfind -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1602 ../../gnatclean$(exeext): ../stamp-tools
1603 $(GNATMAKE) -c $(ADA_INCLUDES) gnatclean --GCC="$(CC) $(ALL_ADAFLAGS)"
1604 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatclean
1605 $(GNATLINK) -v gnatclean -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1608 ../../gnatsym$(exeext): ../stamp-tools
1609 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
1610 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
1611 $(GNATLINK) -v gnatsym -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1614 ../../gnatmem$(exeext): ../stamp-tools gmem.o $(SYMDEPS)
1615 ifeq ($(GMEM_LIB),gmemlib)
1616 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmem --GCC="$(CC) $(ALL_ADAFLAGS)"
1617 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmem
1618 $(GNATLINK) -v gnatmem -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1619 gmem.o $(SYMLIB) $(TOOLS_LIBS)
1622 ../../gnatdll$(exeext): ../stamp-tools
1623 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
1624 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) $(GNATBIND_FLAGS) gnatdll
1625 $(GNATLINK) -v gnatdll -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1628 ../../gprcmd$(exeext): ../stamp-tools
1629 $(GNATMAKE) -c $(ADA_INCLUDES) gprcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1630 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gprcmd
1631 $(GNATLINK) -v gprcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1633 ../../vxaddr2line$(exeext): ../stamp-tools
1634 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
1635 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
1636 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(CLIB)
1638 gnatmake-re: ../stamp-tools
1639 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
1640 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1641 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
1642 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
1643 --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1645 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1646 # with the former version of gnatlink itself which cannot override itself.
1647 gnatlink-re: ../stamp-tools link.o
1648 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
1649 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
1650 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
1651 --GCC="$(CC) $(ADA_INCLUDES)" link.o $(TOOLS_LIBS)
1652 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
1654 # Needs to be built with CC=gcc
1655 # Since the RTL should be built with the latest compiler, remove the
1656 # stamp target in the parent directory whenever gnat1 is rebuilt
1658 # Likewise for the tools
1659 ../../gnatmake$(exeext): $(P) b_gnatm.o $(GNATMAKE_OBJS)
1660 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
1663 ../../gnatlink$(exeext): $(P) b_gnatl.o $(GNATLINK_OBJS)
1664 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
1667 ../../gnatbl$(exeext): gnatbl.o
1668 $(CC) -o $@ $(ALL_CFLAGS) $(LDFLAGS) gnatbl.o $(TOOLS_LIBS)
1670 gnatbl.o: gnatbl.c adaint.h
1671 $(CC) $(ALL_CFLAGS) $(INCLUDES) -c $< $(OUTPUT_OPTION)
1674 @if [ ! -f stamp-gnatlib ] ; \
1676 $(ECHO) You must first build the GNAT library: make gnatlib; \
1682 install-gnatlib: ../stamp-gnatlib
1683 # Create the directory before deleting it, in case the directory is
1684 # a list of directories (as it may be on VMS). This ensures we are
1685 # deleting the right one.
1686 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1687 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1688 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1689 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1690 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1691 $(RMDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1692 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1693 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1694 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1695 -$(INSTALL_DATA) rts/Makefile.prolog $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1696 -$(INSTALL_DATA) rts/Makefile.generic $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1697 for file in rts/*.ali; do \
1698 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1700 -$(INSTALL_DATA) rts/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1701 -for file in rts/*$(arext);do \
1702 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1704 # Install the shared libraries, if any, using $(INSTALL) instead
1705 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1706 # for shared libraries on some targets, e.g. on HP-UX where the x
1707 # permission is required.
1708 for file in gnat gnarl; do \
1709 if [ -f rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
1710 $(INSTALL) rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1711 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1713 if [ -f rts/lib$${file}$(soext) ]; then \
1714 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1715 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
1718 # This copy must be done preserving the date on the original file.
1719 for file in rts/*.adb rts/*.ads; do \
1720 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
1722 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
1723 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
1727 $(RM) rts/s-*$(objext)
1729 $(RM) rts/a-*$(objext)
1731 $(RM) rts/*$(objext)
1734 touch ../stamp-gnatlib2
1735 $(RM) ../stamp-gnatlib
1737 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1738 # successive target commands. Although the Gnu make documentation
1739 # implies this is true on all systems, I suspect it may not be, So care
1740 # has been taken to allow a sed script to look for ";)" and substitue
1741 # for ";" the appropriate character in the range of lines below
1742 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1744 # GNULLI Begin ###########################################################
1746 ../stamp-gnatlib1: Makefile ../stamp-gnatlib2
1750 # Copy target independent sources
1751 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
1752 $(LN_S) $(fsrcpfx)$(f) rts ;) true
1753 # Remove files to be replaced by target dependent sources
1754 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1755 rts/$(word 1,$(subst <, ,$(PAIR))))
1756 # Copy new target dependent sources
1757 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1758 $(LN_S) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1759 rts/$(word 1,$(subst <, ,$(PAIR)));)
1760 $(RM) ../stamp-gnatlib
1761 touch ../stamp-gnatlib1
1763 # GNULLI End #############################################################
1765 # Don't use semicolon separated shell commands that involve list expansions.
1766 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1767 # line lengths in excess of 256 characters.
1768 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1769 # is guaranteed to overflow the buffer.
1771 gnatlib: ../stamp-gnatlib1 ../stamp-gnatlib2
1772 $(MAKE) -C rts CC="../../xgcc -B../../" \
1773 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1774 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
1776 -f ../Makefile $(LIBGNAT_OBJS)
1777 $(MAKE) -C rts CC="../../xgcc -B../../" \
1779 CFLAGS="$(GNATLIBCFLAGS)" \
1780 ADAFLAGS="$(GNATLIBFLAGS)" \
1784 $(RM) rts/libgnat$(arext) rts/libgnarl$(arext)
1785 $(AR) $(AR_FLAGS) rts/libgnat$(arext) \
1786 $(addprefix rts/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
1787 ifneq ($(PREFIX_OBJS),)
1788 $(AR) $(AR_FLAGS) rts/libgccprefix$(arext) $(PREFIX_OBJS);
1790 if $(RANLIB_TEST) ; then $(RANLIB) rts/libgnat$(arext); else true; fi
1791 $(AR) $(AR_FLAGS) rts/libgnarl$(arext) \
1792 $(addprefix rts/,$(GNATRTL_TASKING_OBJS))
1793 if $(RANLIB_TEST) ; then $(RANLIB) rts/libgnarl$(arext); else true; fi
1794 ifeq ($(GMEM_LIB),gmemlib)
1795 $(AR) $(AR_FLAGS) rts/libgmem$(arext) rts/memtrack.o;
1797 $(CHMOD) a-wx rts/*.ali
1798 touch ../stamp-gnatlib
1800 HIE_NONE_TARGET_PAIRS=\
1801 a-except.ads<1aexcept.ads \
1802 a-except.adb<1aexcept.adb \
1803 a-tags.ads<1atags.ads \
1804 a-tags.adb<1atags.adb \
1805 s-secsta.ads<1ssecsta.ads \
1806 s-secsta.adb<1ssecsta.adb \
1807 i-c.ads<1ic.ads $(EXTRA_HIE_NONE_TARGET_PAIRS)
1809 # This target needs RTS_NAME, RTS_SRCS, RTS_TARGET_PAIRS to be set properly
1810 # it creates a rts with the proper structure and the right target
1813 $(RMDIR) rts-$(RTS_NAME)
1814 $(MKDIR) rts-$(RTS_NAME)
1815 $(CHMOD) u+w rts-$(RTS_NAME)
1816 $(MKDIR) rts-$(RTS_NAME)/adalib
1817 $(MKDIR) rts-$(RTS_NAME)/adainclude
1818 $(CHMOD) u+w rts-$(RTS_NAME)/*
1819 # Generate the project file
1820 $(ECHO) "project $(RTS_NAME) is" > rts-$(RTS_NAME)/$(RTS_NAME).gpr
1821 $(ECHO) " for Source_Dirs use (\"adainclude\");" \
1822 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1823 $(ECHO) " for Object_Dir use \"adalib\";" \
1824 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1825 $(ECHO) " for Source_List_File use " \
1826 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1827 $(ECHO) " \"rts-$(RTS_NAME)_source_list.txt\";" \
1828 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1829 $(ECHO) " package Builder is" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1830 $(ECHO) " for Default_Switches (\"Ada\") use (\"-a\");" \
1831 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1832 $(ECHO) " end Builder;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1833 $(ECHO) " package Compiler is" >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1834 $(ECHO) " for Default_Switches (\"Ada\") use (\"-nostdinc\");" \
1835 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1836 $(ECHO) " end Compiler;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1837 $(ECHO) "end $(RTS_NAME);" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1839 $(foreach f, $(COMPILABLE_SOURCES), \
1841 rts-$(RTS_NAME)/rts-$(RTS_NAME)_source_list.txt ;) true
1842 # Copy target independent sources
1843 $(foreach f,$(RTS_SRCS), \
1844 $(CP) $(fsrcpfx)$(f) rts-$(RTS_NAME)/adainclude/ ;) true
1845 # Remove files to be replaced by target dependent sources
1846 $(RM) $(foreach PAIR,$(RTS_TARGET_PAIRS), \
1847 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR))))
1848 # Copy new target dependent sources
1849 $(foreach PAIR,$(RTS_TARGET_PAIRS), \
1850 $(CP) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1851 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR)));)
1854 $(CP) -r rts-$(RTS_NAME) $(DESTDIR)$(libsubdir)/
1857 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
1858 RTS_NAME=zfp RTS_SRCS="$(HIE_SOURCES)" \
1859 RTS_TARGET_PAIRS="$(HIE_NONE_TARGET_PAIRS)" \
1860 COMPILABLE_SOURCES="$(COMPILABLE_HIE_SOURCES)"
1861 -$(GNATMAKE) -Prts-zfp/zfp.gpr --GCC="../../../xgcc -B../../../"
1862 cd rts-zfp/adalib/ ; $(AR) r libgnat.a *.o
1863 $(RM) rts-zfp/adalib/*.o
1864 $(CHMOD) a-wx rts-zfp/adalib/*.ali
1865 $(CHMOD) a-wx rts-zfp/adalib/libgnat.a
1868 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
1869 RTS_NAME=none RTS_SRCS="$(HIE_SOURCES)" \
1870 RTS_TARGET_PAIRS="$(HIE_NONE_TARGET_PAIRS)" \
1871 COMPILABLE_SOURCES="$(COMPILABLE_HIE_SOURCES)"
1872 -$(GNATMAKE) -Prts-none/none.gpr --GCC="../../../xgcc -B../../../"
1873 $(RM) rts-none/adalib/*.o
1874 $(CHMOD) a-wx rts-none/adalib/*.ali
1876 rts-ravenscar: force
1877 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
1878 RTS_NAME=ravenscar RTS_SRCS="$(RAVEN_SOURCES)" \
1879 RTS_TARGET_PAIRS="$(HIE_RAVEN_TARGET_PAIRS)" \
1880 COMPILABLE_SOURCES="$(COMPILABLE_RAVEN_SOURCES)"
1881 -$(GNATMAKE) -Prts-ravenscar/ravenscar.gpr \
1882 --GCC="../../../xgcc -B../../../"
1883 cd rts-ravenscar/adalib/ ; $(AR) r libgnat.a *.o
1884 $(RM) rts-ravenscar/adalib/*.o
1885 $(CHMOD) a-wx rts-ravenscar/adalib/*.ali
1886 $(CHMOD) a-wx rts-ravenscar/adalib/libgnat.a
1888 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
1889 gnatlib-shared-default:
1890 $(MAKE) $(FLAGS_TO_PASS) \
1891 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1892 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1893 THREAD_KIND="$(THREAD_KIND)" \
1895 $(RM) rts/libgnat$(soext) rts/libgnarl$(soext)
1896 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1897 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1898 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1899 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1901 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1902 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1903 $(GNATRTL_TASKING_OBJS) \
1904 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1906 cd rts; $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1908 cd rts; $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1911 gnatlib-shared-dual:
1912 $(MAKE) $(FLAGS_TO_PASS) \
1913 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1914 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1915 THREAD_KIND="$(THREAD_KIND)" \
1916 gnatlib-shared-default
1917 $(MV) rts/libgna*$(soext) .
1918 $(RM) ../stamp-gnatlib2
1919 $(MAKE) $(FLAGS_TO_PASS) \
1920 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1921 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1922 THREAD_KIND="$(THREAD_KIND)" \
1924 $(MV) libgna*$(soext) rts
1926 gnatlib-shared-dual-win32:
1927 $(MAKE) $(FLAGS_TO_PASS) \
1928 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1929 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1930 THREAD_KIND="$(THREAD_KIND)" \
1931 gnatlib-shared-win32
1932 $(MV) rts/libgna*$(soext) .
1933 $(RM) ../stamp-gnatlib2
1934 $(MAKE) $(FLAGS_TO_PASS) \
1935 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1936 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1937 THREAD_KIND="$(THREAD_KIND)" \
1939 $(MV) libgna*$(soext) rts
1941 # ??? we need to add the option to support auto-import of arrays/records to
1942 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
1943 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
1945 gnatlib-shared-win32:
1946 $(MAKE) $(FLAGS_TO_PASS) \
1947 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1948 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1949 THREAD_KIND="$(THREAD_KIND)" \
1951 $(RM) rts/libgnat$(soext) rts/libgnarl$(soext)
1952 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1953 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1954 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1955 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
1956 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1957 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1958 $(GNATRTL_TASKING_OBJS) \
1959 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1960 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
1963 $(MAKE) $(FLAGS_TO_PASS) \
1964 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1965 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1966 THREAD_KIND="$(THREAD_KIND)" \
1968 $(RM) rts/libgnat*$(soext) rts/libgnarl*$(soext)
1969 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
1970 objdump --syms $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) | \
1971 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
1972 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
1973 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
1974 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
1975 sys\$$library:trace.exe \
1976 --for-linker=/noinform \
1977 --for-linker=SYMVEC_$$$$.opt \
1978 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
1979 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
1980 objdump --syms $(GNATRTL_TASKING_OBJS) | \
1981 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
1982 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
1983 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
1984 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1985 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1986 sys\$$library:trace.exe \
1987 --for-linker=/noinform \
1988 --for-linker=SYMVEC_$$$$.opt \
1989 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
1992 $(MAKE) $(FLAGS_TO_PASS) \
1993 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1994 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1995 THREAD_KIND="$(THREAD_KIND)" \
1996 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
1999 gnatlib-sjlj: ../stamp-gnatlib1
2000 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' rts/system.ads > rts/s.ads
2001 $(MV) rts/s.ads rts/system.ads
2002 $(MAKE) $(FLAGS_TO_PASS) \
2003 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2004 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2005 THREAD_KIND="$(THREAD_KIND)" \
2006 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2008 # .s files for cross-building
2010 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
2012 # Compiling object files from source files.
2014 # Note that dependencies on obstack.h are not written
2015 # because that file is not part of GCC.
2016 # Dependencies on gvarargs.h are not written
2017 # because all that file does, when not compiling with GCC,
2018 # is include the system varargs.h.
2020 b_gnatl.c : $(GNATLINK_OBJS)
2021 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatl.c gnatlink.ali
2022 b_gnatl.o : b_gnatl.c
2024 b_gnatm.c : $(GNATMAKE_OBJS)
2025 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatm.c gnatmake.ali
2026 b_gnatm.o : b_gnatm.c
2028 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2029 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2030 ADA_SHARE_MAKE_DIR = $(prefix)/share/gnat
2032 # force no sibling call optimization on s-traceb.o so the number of stack
2033 # frames to be skipped when computing a call chain is not modified by
2034 # optimization. However we can do that only when building the runtime
2035 # (not the compiler) because the -fno-optimize-sibling-calls exists
2038 ifneq (,$(findstring xgcc,$(CC)))
2039 NO_SIBLING_ADAFLAGS=-fno-optimize-sibling-calls
2041 NO_SIBLING_ADAFLAGS=
2044 s-traceb.o : s-traceb.adb
2045 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2046 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) \
2049 adadecode.o : adadecode.c adadecode.h
2053 deftarg.o : deftarg.c
2055 exit.o : raise.h exit.c
2057 final.o : raise.h final.c
2065 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2066 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2068 init.o : init.c ada.h types.h raise.h
2069 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2070 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2072 raise.o : raise.c raise.h
2073 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2074 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2076 # Need to keep the frame pointer in this file to pop the stack properly on
2078 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c
2079 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
2080 -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2082 # In GNU Make, ignore whether `stage*' exists.
2083 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2084 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2088 # Gnatlbr is only used on VMS
2090 ../../gnatlbr$(exeext): ../../prefix.o
2091 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlbr --GCC="$(CC) $(ALL_ADAFLAGS)"
2092 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlbr
2093 $(GNATLINK) -v gnatlbr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \