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
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
1290 SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
1291 THREADSLIB=-lpthread
1292 GNATLIB_SHARED=gnatlib-shared-dual
1294 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1295 LIBRARY_VERSION := $(LIB_VERSION)
1299 # The runtime library for gnat comprises two directories. One contains the
1300 # Ada source files that the compiler (gnat1) needs -- these files are listed
1301 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1302 # corresponding .ali files for the parts written in Ada, libgnat.a for
1303 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1304 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1305 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1306 # go into the directory. The pthreads emulation is built in the threads
1307 # subdirectory and copied.
1308 LIBGNAT_SRCS = ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1309 errno.c exit.c cal.c ctrl_c.c \
1310 raise.h raise.c sysdep.c types.h aux-io.c init.c \
1311 final.c tracebak.c tb-alvms.c tb-alvxw.c expect.c mkdir.c socket.c \
1312 $(EXTRA_LIBGNAT_SRCS)
1314 LIBGNAT_OBJS = adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o \
1315 raise.o sysdep.o aux-io.o init.o cal.o final.o \
1316 tracebak.o expect.o mkdir.o socket.o $(EXTRA_LIBGNAT_OBJS)
1318 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1319 # the library installation will change and there will be a
1320 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1321 # from ADA_INCLUDE_SRCS.
1323 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1324 # the following include file:
1326 include $(fsrcdir)/Makefile.rtl
1328 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
1329 g-trasym.o memtrack.o
1331 # Files which are suitable in no run time/hi integrity mode
1333 COMPILABLE_HIE_SOURCES= \
1353 a-except.adb $(EXTRA_HIE_SOURCES)
1355 NON_COMPILABLE_HIE_SOURCES= \
1366 HIE_SOURCES = $(NON_COMPILABLE_HIE_SOURCES) $(COMPILABLE_HIE_SOURCES)
1368 # Object to generate for the HI run time
1385 a-tags.o $(EXTRA_HIE_OBJS)
1387 # Files which are needed in ravenscar mode
1389 COMPILABLE_RAVEN_SOURCES = \
1390 $(COMPILABLE_HIE_SOURCES) \
1422 a-taside.adb $(EXTRA_RAVEN_SOURCES)
1424 NON_COMPILABLE_RAVEN_SOURCES= $(NON_COMPILABLE_HIE_SOURCES)
1426 RAVEN_SOURCES = $(NON_COMPILABLE_RAVEN_SOURCES) $(COMPILABLE_RAVEN_SOURCES)
1428 # Objects to generate for the ravenscar run time
1449 a-taside.o $(EXTRA_RAVEN_OBJS)
1451 # Default run time files
1454 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1455 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1456 sequenio.ads system.ads Makefile.prolog Makefile.generic \
1458 a-*.adb a-*.ads g-*.ad? i-*.ad? \
1459 s-[a-o]*.adb s-[p-z]*.adb \
1460 s-[a-o]*.ads s-[p-z]*.ads
1462 LIBGNAT=../rts/libgnat.a
1463 TOOLS_FLAGS_TO_PASS= \
1465 "CFLAGS=$(CFLAGS)" \
1466 "LDFLAGS=$(LDFLAGS)" \
1467 "ADAFLAGS=$(ADAFLAGS)" \
1468 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
1469 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
1470 "libsubdir=$(libsubdir)" \
1471 "exeext=$(exeext)" \
1472 "fsrcdir=$(fsrcdir)" \
1473 "srcdir=$(fsrcdir)" \
1474 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
1475 "GNATMAKE=$(GNATMAKE)" \
1476 "GNATLINK=$(GNATLINK)" \
1477 "GNATBIND=$(GNATBIND)"
1479 # Build directory for the tools. Let's copy the target-dependent
1480 # sources using the same mechanism as for gnatlib. The other sources are
1481 # accessed using the vpath directive below
1487 -(cd tools; $(LN_S) ../sdefault.adb .)
1488 -$(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
1489 $(RM) tools/$(word 1,$(subst <, ,$(PAIR)));\
1490 $(LN_S) $(fsrcdir)/$(word 2,$(subst <, ,$(PAIR))) \
1491 tools/$(word 1,$(subst <, ,$(PAIR)));)
1492 touch ../stamp-tools
1494 # when compiling the tools, the runtime has to be first on the path so that
1495 # it hides the runtime files lying with the rest of the sources
1496 ifeq ($(TOOLSCASE),native)
1497 vpath %.ads ../rts ../
1498 vpath %.adb ../rts ../
1499 vpath %.c ../rts ../
1500 vpath %.h ../rts ../
1503 # in the cross tools case, everything is compiled with the native
1504 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1505 ifeq ($(TOOLSCASE),cross)
1512 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
1513 # reasons: gnatmake should be built with a recent compiler, a recent compiler
1514 # may not generate ALI files compatible with an old gnatmake so it is important
1515 # to be able to build gnatmake without a version of gnatmake around. Once
1516 # everything has been compiled once, gnatmake can be recompiled with itself
1517 # (see target gnattools1-re)
1518 gnattools1: ../stamp-tools ../stamp-gnatlib
1519 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1521 ../../gnatmake$(exeext) ../../gnatlink$(exeext) ../../gnatbl$(exeext)
1523 # gnatmake/link can be built with recent gnatmake/link if they are available.
1524 # This is especially convenient for building cross tools or for rebuilding
1525 # the tools when the original bootstrap has already be done.
1526 gnattools1-re: ../stamp-tools
1527 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1528 TOOLSCASE=cross INCLUDES="" gnatmake-re gnatlink-re
1530 # these tools are built with gnatmake & are common to native and cross
1531 gnattools2: ../stamp-tools
1532 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1534 ../../gnatchop$(exeext) ../../gnat$(exeext) ../../gnatkr$(exeext) \
1535 ../../gnatls$(exeext) ../../gnatprep$(exeext) \
1536 ../../gnatxref$(exeext) \
1537 ../../gnatfind$(exeext) ../../gnatname$(exeext) \
1538 ../../gnatclean$(exeext) \
1539 ../../gprcmd$(exeext) ../../gpr2make$(exeext)
1541 # These tools are only built for the native version.
1542 gnattools3: ../stamp-tools
1543 # $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1544 # TOOLSCASE=native top_builddir=../../.. \
1545 # ../../gnatmem$(exeext) $(EXTRA_GNATTOOLS)
1547 # those tools are only built for the cross version
1548 gnattools4: ../stamp-tools
1549 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1550 TOOLSCASE=cross top_buildir=../../.. \
1551 ../../vxaddr2line$(exeext)
1553 ../../gnatchop$(exeext): ../stamp-tools
1554 $(GNATMAKE) -c $(ADA_INCLUDES) gnatchop --GCC="$(CC) $(ALL_ADAFLAGS)"
1555 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatchop
1556 $(GNATLINK) -v gnatchop -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1559 ../../gnat$(exeext): ../stamp-tools
1560 $(GNATMAKE) -c $(ADA_INCLUDES) gnatcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1561 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatcmd
1562 $(GNATLINK) -v gnatcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1564 ../../gnatkr$(exeext): ../stamp-tools
1565 $(GNATMAKE) -c $(ADA_INCLUDES) gnatkr --GCC="$(CC) $(ALL_ADAFLAGS)"
1566 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatkr
1567 $(GNATLINK) -v gnatkr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1569 ../../gnatls$(exeext): ../stamp-tools
1570 $(GNATMAKE) -c $(ADA_INCLUDES) gnatls --GCC="$(CC) $(ALL_ADAFLAGS)"
1571 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatls
1572 $(GNATLINK) -v gnatls -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1574 ../../gnatname$(exeext): ../stamp-tools
1575 $(GNATMAKE) -c $(ADA_INCLUDES) gnatname --GCC="$(CC) $(ALL_ADAFLAGS)"
1576 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatname
1577 $(GNATLINK) -v gnatname -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1580 ../../gpr2make$(exeext): ../stamp-tools
1581 $(GNATMAKE) -c $(ADA_INCLUDES) gpr2make --GCC="$(CC) $(ALL_ADAFLAGS)"
1582 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gpr2make
1583 $(GNATLINK) -v gpr2make -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1586 ../../gnatprep$(exeext): ../stamp-tools
1587 $(GNATMAKE) -c $(ADA_INCLUDES) gnatprep --GCC="$(CC) $(ALL_ADAFLAGS)"
1588 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatprep
1589 $(GNATLINK) -v gnatprep -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1592 ../../gnatxref$(exeext): ../stamp-tools
1593 $(GNATMAKE) -c $(ADA_INCLUDES) gnatxref --GCC="$(CC) $(ALL_ADAFLAGS)"
1594 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatxref
1595 $(GNATLINK) -v gnatxref -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1598 ../../gnatfind$(exeext): ../stamp-tools
1599 $(GNATMAKE) -c $(ADA_INCLUDES) gnatfind --GCC="$(CC) $(ALL_ADAFLAGS)"
1600 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatfind
1601 $(GNATLINK) -v gnatfind -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1604 ../../gnatclean$(exeext): ../stamp-tools
1605 $(GNATMAKE) -c $(ADA_INCLUDES) gnatclean --GCC="$(CC) $(ALL_ADAFLAGS)"
1606 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatclean
1607 $(GNATLINK) -v gnatclean -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1610 ../../gnatsym$(exeext): ../stamp-tools
1611 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
1612 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
1613 $(GNATLINK) -v gnatsym -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1616 ../../gnatmem$(exeext): ../stamp-tools gmem.o $(SYMDEPS)
1617 ifeq ($(GMEM_LIB),gmemlib)
1618 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmem --GCC="$(CC) $(ALL_ADAFLAGS)"
1619 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmem
1620 $(GNATLINK) -v gnatmem -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1621 gmem.o $(SYMLIB) $(TOOLS_LIBS)
1624 ../../gnatdll$(exeext): ../stamp-tools
1625 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
1626 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) $(GNATBIND_FLAGS) gnatdll
1627 $(GNATLINK) -v gnatdll -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1630 ../../gprcmd$(exeext): ../stamp-tools
1631 $(GNATMAKE) -c $(ADA_INCLUDES) gprcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1632 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gprcmd
1633 $(GNATLINK) -v gprcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1635 ../../vxaddr2line$(exeext): ../stamp-tools
1636 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
1637 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
1638 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(CLIB)
1640 gnatmake-re: ../stamp-tools
1641 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
1642 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1643 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
1644 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
1645 --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1647 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1648 # with the former version of gnatlink itself which cannot override itself.
1649 gnatlink-re: ../stamp-tools link.o
1650 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
1651 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
1652 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
1653 --GCC="$(CC) $(ADA_INCLUDES)" link.o $(TOOLS_LIBS)
1654 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
1656 # Needs to be built with CC=gcc
1657 # Since the RTL should be built with the latest compiler, remove the
1658 # stamp target in the parent directory whenever gnat1 is rebuilt
1660 # Likewise for the tools
1661 ../../gnatmake$(exeext): $(P) b_gnatm.o $(GNATMAKE_OBJS)
1662 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
1665 ../../gnatlink$(exeext): $(P) b_gnatl.o $(GNATLINK_OBJS)
1666 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
1669 ../../gnatbl$(exeext): gnatbl.o
1670 $(CC) -o $@ $(ALL_CFLAGS) $(LDFLAGS) gnatbl.o $(TOOLS_LIBS)
1672 gnatbl.o: gnatbl.c adaint.h
1673 $(CC) $(ALL_CFLAGS) $(INCLUDES) -c $< $(OUTPUT_OPTION)
1676 @if [ ! -f stamp-gnatlib ] ; \
1678 $(ECHO) You must first build the GNAT library: make gnatlib; \
1684 install-gnatlib: ../stamp-gnatlib
1685 # Create the directory before deleting it, in case the directory is
1686 # a list of directories (as it may be on VMS). This ensures we are
1687 # deleting the right one.
1688 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1689 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1690 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1691 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1692 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1693 $(RMDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1694 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1695 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1696 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1697 -$(INSTALL_DATA) rts/Makefile.prolog $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1698 -$(INSTALL_DATA) rts/Makefile.generic $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1699 for file in rts/*.ali; do \
1700 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1702 -$(INSTALL_DATA) rts/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1703 -for file in rts/*$(arext);do \
1704 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1706 # Install the shared libraries, if any, using $(INSTALL) instead
1707 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1708 # for shared libraries on some targets, e.g. on HP-UX where the x
1709 # permission is required.
1710 for file in gnat gnarl; do \
1711 if [ -f rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
1712 $(INSTALL) rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1713 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1715 if [ -f rts/lib$${file}$(soext) ]; then \
1716 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1717 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
1720 # This copy must be done preserving the date on the original file.
1721 for file in rts/*.adb rts/*.ads; do \
1722 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
1724 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
1725 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
1729 $(RM) rts/s-*$(objext)
1731 $(RM) rts/a-*$(objext)
1733 $(RM) rts/*$(objext)
1736 touch ../stamp-gnatlib2
1737 $(RM) ../stamp-gnatlib
1739 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1740 # successive target commands. Although the Gnu make documentation
1741 # implies this is true on all systems, I suspect it may not be, So care
1742 # has been taken to allow a sed script to look for ";)" and substitue
1743 # for ";" the appropriate character in the range of lines below
1744 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1746 # GNULLI Begin ###########################################################
1748 ../stamp-gnatlib1: Makefile ../stamp-gnatlib2
1752 # Copy target independent sources
1753 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
1754 $(LN_S) $(fsrcpfx)$(f) rts ;) true
1755 # Remove files to be replaced by target dependent sources
1756 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1757 rts/$(word 1,$(subst <, ,$(PAIR))))
1758 # Copy new target dependent sources
1759 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1760 $(LN_S) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1761 rts/$(word 1,$(subst <, ,$(PAIR)));)
1762 $(RM) ../stamp-gnatlib
1763 touch ../stamp-gnatlib1
1765 # GNULLI End #############################################################
1767 # Don't use semicolon separated shell commands that involve list expansions.
1768 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1769 # line lengths in excess of 256 characters.
1770 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1771 # is guaranteed to overflow the buffer.
1773 gnatlib: ../stamp-gnatlib1 ../stamp-gnatlib2
1774 $(MAKE) -C rts CC="../../xgcc -B../../" \
1775 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1776 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
1778 -f ../Makefile $(LIBGNAT_OBJS)
1779 $(MAKE) -C rts CC="../../xgcc -B../../" \
1781 CFLAGS="$(GNATLIBCFLAGS)" \
1782 ADAFLAGS="$(GNATLIBFLAGS)" \
1786 $(RM) rts/libgnat$(arext) rts/libgnarl$(arext)
1787 $(AR) $(AR_FLAGS) rts/libgnat$(arext) \
1788 $(addprefix rts/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
1789 ifneq ($(PREFIX_OBJS),)
1790 $(AR) $(AR_FLAGS) rts/libgccprefix$(arext) $(PREFIX_OBJS);
1792 if $(RANLIB_TEST) ; then $(RANLIB) rts/libgnat$(arext); else true; fi
1793 $(AR) $(AR_FLAGS) rts/libgnarl$(arext) \
1794 $(addprefix rts/,$(GNATRTL_TASKING_OBJS))
1795 if $(RANLIB_TEST) ; then $(RANLIB) rts/libgnarl$(arext); else true; fi
1796 ifeq ($(GMEM_LIB),gmemlib)
1797 $(AR) $(AR_FLAGS) rts/libgmem$(arext) rts/memtrack.o;
1799 $(CHMOD) a-wx rts/*.ali
1800 touch ../stamp-gnatlib
1802 HIE_NONE_TARGET_PAIRS=\
1803 a-except.ads<1aexcept.ads \
1804 a-except.adb<1aexcept.adb \
1805 a-tags.ads<1atags.ads \
1806 a-tags.adb<1atags.adb \
1807 s-secsta.ads<1ssecsta.ads \
1808 s-secsta.adb<1ssecsta.adb \
1809 i-c.ads<1ic.ads $(EXTRA_HIE_NONE_TARGET_PAIRS)
1811 # This target needs RTS_NAME, RTS_SRCS, RTS_TARGET_PAIRS to be set properly
1812 # it creates a rts with the proper structure and the right target
1815 $(RMDIR) rts-$(RTS_NAME)
1816 $(MKDIR) rts-$(RTS_NAME)
1817 $(CHMOD) u+w rts-$(RTS_NAME)
1818 $(MKDIR) rts-$(RTS_NAME)/adalib
1819 $(MKDIR) rts-$(RTS_NAME)/adainclude
1820 $(CHMOD) u+w rts-$(RTS_NAME)/*
1821 # Generate the project file
1822 $(ECHO) "project $(RTS_NAME) is" > rts-$(RTS_NAME)/$(RTS_NAME).gpr
1823 $(ECHO) " for Source_Dirs use (\"adainclude\");" \
1824 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1825 $(ECHO) " for Object_Dir use \"adalib\";" \
1826 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1827 $(ECHO) " for Source_List_File use " \
1828 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1829 $(ECHO) " \"rts-$(RTS_NAME)_source_list.txt\";" \
1830 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1831 $(ECHO) " package Builder is" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1832 $(ECHO) " for Default_Switches (\"Ada\") use (\"-a\");" \
1833 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1834 $(ECHO) " end Builder;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1835 $(ECHO) " package Compiler is" >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1836 $(ECHO) " for Default_Switches (\"Ada\") use (\"-nostdinc\");" \
1837 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1838 $(ECHO) " end Compiler;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1839 $(ECHO) "end $(RTS_NAME);" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1841 $(foreach f, $(COMPILABLE_SOURCES), \
1843 rts-$(RTS_NAME)/rts-$(RTS_NAME)_source_list.txt ;) true
1844 # Copy target independent sources
1845 $(foreach f,$(RTS_SRCS), \
1846 $(CP) $(fsrcpfx)$(f) rts-$(RTS_NAME)/adainclude/ ;) true
1847 # Remove files to be replaced by target dependent sources
1848 $(RM) $(foreach PAIR,$(RTS_TARGET_PAIRS), \
1849 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR))))
1850 # Copy new target dependent sources
1851 $(foreach PAIR,$(RTS_TARGET_PAIRS), \
1852 $(CP) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1853 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR)));)
1856 $(CP) -r rts-$(RTS_NAME) $(DESTDIR)$(libsubdir)/
1859 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
1860 RTS_NAME=zfp RTS_SRCS="$(HIE_SOURCES)" \
1861 RTS_TARGET_PAIRS="$(HIE_NONE_TARGET_PAIRS)" \
1862 COMPILABLE_SOURCES="$(COMPILABLE_HIE_SOURCES)"
1863 -$(GNATMAKE) -Prts-zfp/zfp.gpr --GCC="../../../xgcc -B../../../"
1864 cd rts-zfp/adalib/ ; $(AR) r libgnat.a *.o
1865 $(RM) rts-zfp/adalib/*.o
1866 $(CHMOD) a-wx rts-zfp/adalib/*.ali
1867 $(CHMOD) a-wx rts-zfp/adalib/libgnat.a
1870 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
1871 RTS_NAME=none RTS_SRCS="$(HIE_SOURCES)" \
1872 RTS_TARGET_PAIRS="$(HIE_NONE_TARGET_PAIRS)" \
1873 COMPILABLE_SOURCES="$(COMPILABLE_HIE_SOURCES)"
1874 -$(GNATMAKE) -Prts-none/none.gpr --GCC="../../../xgcc -B../../../"
1875 $(RM) rts-none/adalib/*.o
1876 $(CHMOD) a-wx rts-none/adalib/*.ali
1878 rts-ravenscar: force
1879 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
1880 RTS_NAME=ravenscar RTS_SRCS="$(RAVEN_SOURCES)" \
1881 RTS_TARGET_PAIRS="$(HIE_RAVEN_TARGET_PAIRS)" \
1882 COMPILABLE_SOURCES="$(COMPILABLE_RAVEN_SOURCES)"
1883 -$(GNATMAKE) -Prts-ravenscar/ravenscar.gpr \
1884 --GCC="../../../xgcc -B../../../"
1885 cd rts-ravenscar/adalib/ ; $(AR) r libgnat.a *.o
1886 $(RM) rts-ravenscar/adalib/*.o
1887 $(CHMOD) a-wx rts-ravenscar/adalib/*.ali
1888 $(CHMOD) a-wx rts-ravenscar/adalib/libgnat.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)" \