1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2003 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 ]
127 # How to invoke ranlib.
129 # Test to use to see whether ranlib exists on the system.
130 RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
132 PWD_COMMAND = $${PWDCMD-pwd}
133 # How to copy preserving the date
134 INSTALL_DATA_DATE = cp -p
137 GNATBIND = $(STAGE_PREFIX)gnatbind
138 GNATBIND_FLAGS = -static -x
140 ADAFLAGS = -W -Wall -gnatpg -gnata
141 SOME_ADAFLAGS =-gnata
142 FORCE_DEBUG_ADAFLAGS = -g
143 GNATLIBFLAGS = -gnatpg
144 GNATLIBCFLAGS = -g -O2
145 GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
147 ADAFLAGS = -W -Wall -gnatpg -gnata
148 SOME_ADAFLAGS =-gnata
149 FORCE_DEBUG_ADAFLAGS = -g
150 GNATLIBFLAGS = -gnatpg
151 GNATLIBCFLAGS = -g -O2
152 GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
154 ALL_ADA_CFLAGS = $(X_ADA_CFLAGS) $(T_ADA_CFLAGS) $(ADA_CFLAGS)
155 ALL_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \
157 MOST_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \
164 SYMDEPS = $(LIBINTL_DEP)
165 OUTPUT_OPTION = @OUTPUT_OPTION@
173 # Define this as & to perform parallel make on a Sequent.
174 # Note that this has some bugs, and it seems currently necessary
175 # to compile all the gen* files first by hand to avoid erroneous results.
178 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
179 # It omits XCFLAGS, and specifies -B./.
180 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
181 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)
183 # Tools to use when building a cross-compiler.
184 # These are used because `configure' appends `cross-make'
185 # to the makefile when making a cross-compiler.
187 # We don't use cross-make. Instead we use the tools from the build tree,
188 # if they are available.
189 # program_transform_name and objdir are set by configure.in.
190 program_transform_name =
194 xmake_file = @xmake_file@
195 tmake_file = @tmake_file@
196 host_canonical=@host@
197 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
198 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
200 # Directory where sources are, from where we are.
204 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
205 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
206 fcurdir := $(shell ${PWD_COMMAND})
207 fcurpfx := $(shell ${PWD_COMMAND})/
209 # Top build directory, relative to here.
212 # Internationalization library.
214 LIBINTL_DEP = @LIBINTL_DEP@
216 # Any system libraries needed just for GNAT.
217 SYSLIBS = @GNAT_LIBEXC@
219 # List of extra object files linked in with various programs.
220 EXTRA_GNATTOOLS_OBJS = ../../prefix.o ../../version.o
222 # List extra gnattools
225 # List of target dependent sources, overridden below as necessary
228 # Type of tools build we are doing; default is not compiling tools.
231 # End of variables for you to override.
235 # This tells GNU Make version 3 not to put all variables in the environment.
238 # tmake_file and xmake_file expand to lists with entries of the form
239 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
240 # need to adjust the paths. There can't be spaces in the subst arguments
241 # or we get spurious spaces in the actual list of files to include.
244 ifneq ($(tmake_file),)
245 include $(subst /config,/../config,$(tmake_file))
249 ifneq ($(xmake_file),)
250 include $(subst /config,/../config,$(xmake_file))
253 # Now figure out from those variables how to compile and link.
255 all.indirect: Makefile ../gnat1$(exeext)
257 # IN_GCC distinguishes between code compiled into GCC itself and other
258 # programs built during a bootstrap.
259 # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler.
260 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
262 # This is the variable actually used when we compile.
263 LOOSE_CFLAGS = `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
264 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_CFLAGS) \
268 ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
270 # This is where we get libiberty.a from.
271 LIBIBERTY = ../../libiberty/libiberty.a
273 # How to link with both our special library facilities
274 # and the system's installed libraries.
275 LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
276 LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
277 TOOLS_LIBS = $(LIBGNAT) $(EXTRA_GNATTOOLS_OBJS) ../../../libiberty/libiberty.a $(SYSLIBS)
279 # Specify the directories to be searched for header files.
280 # Both . and srcdir are used, in that order,
281 # so that tm.h and config.h will be found in the compilation
282 # subdirectory rather than in the source directory.
283 INCLUDES = -I- -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config \
284 -I$(srcdir)/../../include
286 ADA_INCLUDES = -I- -I. -I$(srcdir)
288 INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir) -I$(fsrcdir)/../config \
289 -I$(fsrcdir)/../../include -I$(fsrcdir)/..
290 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)
292 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
295 # Say how to compile Ada programs.
296 .SUFFIXES: .ada .adb .ads .asm
298 # Always use -I$(srcdir)/config when compiling.
300 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
303 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< \
307 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
310 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
312 # how to regenerate this file
313 Makefile: ../config.status $(srcdir)/Makefile.in $(srcdir)/../version.c
315 LANGUAGES="$(CONFIG_LANGUAGES)" \
317 CONFIG_FILES=ada/Makefile $(SHELL) config.status
319 # This tells GNU make version 3 not to export all the variables
320 # defined in this file into the environment.
323 # Lists of files for various purposes.
325 GNATLINK_OBJS = gnatlink.o link.o \
326 ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o gnatvsn.o \
327 hostparm.o namet.o opt.o osint.o output.o rident.o sdefault.o \
328 stylesw.o switch.o table.o tree_io.o types.o validsw.o widechar.o
330 GNATMAKE_OBJS = ctrl_c.o ali.o ali-util.o s-casuti.o \
331 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
332 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
333 gnatmake.o gnatvsn.o hostparm.o krunch.o lib.o make.o makeusg.o \
334 mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o mlib-utl.o \
335 namet.o nlists.o opt.o osint.o osint-m.o output.o \
336 prj.o prj-attr.o prj-com.o prj-dect.o prj-env.o prj-err.o prj-ext.o prj-nmsc.o \
337 prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o \
338 rident.o scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o \
339 sinfo.o sinput.o sinput-c.o sinput-p.o \
340 snames.o stand.o stringt.o styleg.o stylesw.o validsw.o switch.o switch-m.o \
341 table.o targparm.o tempdir.o tree_io.o types.o \
342 uintp.o uname.o urealp.o usage.o widechar.o \
343 $(EXTRA_GNATMAKE_OBJS)
345 # Convert the target variable into a space separated list of architecture,
346 # manufacturer, and operating system and assign each of those to its own
349 host:=$(subst -, ,$(host_canonical))
350 targ:=$(subst -, ,$(target))
351 arch:=$(word 1,$(targ))
352 ifeq ($(words $(targ)),2)
354 osys:=$(word 2,$(targ))
356 manu:=$(word 2,$(targ))
357 osys:=$(word 3,$(targ))
360 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
361 # The members of each pair must be separated by a '<' and no whitespace.
362 # Each pair must be separated by some amount of whitespace from the following
367 LIBGNAT_TARGET_PAIRS = \
368 a-intnam.ads<4nintnam.ads \
369 s-inmaop.adb<5ninmaop.adb \
370 s-intman.adb<5nintman.adb \
371 s-osinte.ads<5nosinte.ads \
372 s-osprim.adb<7sosprim.adb \
373 s-taprop.adb<5ntaprop.adb \
374 s-taspri.ads<5ntaspri.ads
376 # Default shared object option. Note that we rely on the fact that the "soname"
377 # option will always be present and last in this flag, so that we can have
378 # $(SO_OPTS)libgnat-x.xx
380 SO_OPTS = -Wl,-soname,
382 # Default gnatlib-shared target.
383 # By default, equivalent to gnatlib.
384 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
385 # target when supported.
386 GNATLIB_SHARED = gnatlib
388 # default value for gnatmake's target dependent file
391 # By default, do not distribute prefix.o (in libgccprefix), since it is only
392 # needed by external GNAT tools such as gnatdist and Glide.
393 # Override this variable on native platforms when needed.
396 # To avoid duplicate code, use this variable to set PREFIX_OBJS when needed:
397 PREFIX_REAL_OBJS = ../prefix.o \
398 ../../libiberty/concat.o \
399 ../../libiberty/xmalloc.o \
400 ../../libiberty/xstrdup.o \
401 ../../libiberty/xexit.o
403 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
404 # $(strip STRING) removes leading and trailing spaces from STRING.
405 # If what's left is null then it's a match.
407 ifeq ($(strip $(filter-out %86 os2 OS2 os2_emx,$(arch) $(osys))),)
408 LIBGNAT_TARGET_PAIRS = \
409 a-excpol.adb<4wexcpol.adb \
410 a-intnam.ads<4nintnam.ads \
411 a-numaux.adb<86numaux.adb \
412 a-numaux.ads<86numaux.ads \
413 s-inmaop.adb<5ninmaop.adb \
414 s-interr.adb<5ointerr.adb \
415 s-intman.adb<5nintman.adb \
416 s-mastop.adb<5omastop.adb \
417 s-osinte.adb<5oosinte.adb \
418 s-osinte.ads<5oosinte.ads \
419 s-osprim.adb<5oosprim.adb \
420 s-parame.adb<5oparame.adb \
421 system.ads<5osystem.ads \
422 s-taprop.adb<5otaprop.adb \
423 s-taspri.ads<5otaspri.ads
425 EXTRA_GNATRTL_NONTASKING_OBJS = \
432 ifeq ($(strip $(filter-out %86 interix%,$(arch) $(osys))),)
433 LIBGNAT_TARGET_PAIRS = \
434 a-excpol.adb<4hexcpol.adb \
435 a-intnam.ads<4pintnam.ads \
436 a-numaux.adb<86numaux.adb \
437 a-numaux.ads<86numaux.ads \
438 g-soccon.ads<3psoccon.ads \
439 s-inmaop.adb<7sinmaop.adb \
440 s-intman.adb<7sintman.adb \
441 s-mastop.adb<5omastop.adb \
442 s-osinte.adb<7sosinte.adb \
443 s-osinte.ads<5posinte.ads \
444 s-osprim.adb<5posprim.adb \
445 s-taprop.adb<7staprop.adb \
446 system.ads<5psystem.ads \
447 s-taspri.ads<7staspri.ads \
448 s-tpopsp.adb<7stpopsp.adb
450 THREADSLIB = -lgthreads -lmalloc
451 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
454 # sysv5uw is SCO UnixWare 7
455 ifeq ($(strip $(filter-out %86 sysv5uw%,$(arch) $(osys))),)
456 LIBGNAT_TARGET_PAIRS = \
457 a-excpol.adb<4wexcpol.adb \
458 a-intnam.ads<41intnam.ads \
459 a-numaux.adb<86numaux.adb \
460 a-numaux.ads<86numaux.ads \
461 s-inmaop.adb<7sinmaop.adb \
462 s-intman.adb<7sintman.adb \
463 s-mastop.adb<5omastop.adb \
464 s-osinte.ads<51osinte.ads \
465 s-osinte.adb<51osinte.adb \
466 s-osprim.adb<5posprim.adb \
467 s-taprop.adb<7staprop.adb \
468 s-taspri.ads<7staspri.ads \
469 s-tpopsp.adb<5atpopsp.adb \
470 system.ads<51system.ads \
471 g-soccon.ads<31soccon.ads \
472 g-soliop.ads<31soliop.ads
474 THREADSLIB = -lthread
475 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
477 GNATLIB_SHARED = gnatlib-shared-dual
478 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
481 ifeq ($(strip $(filter-out alpha% dec vx%,$(targ))),)
482 LIBGNAT_TARGET_PAIRS = \
483 a-sytaco.ads<4zsytaco.ads \
484 a-sytaco.adb<4zsytaco.adb \
485 a-intnam.ads<4zintnam.ads \
486 a-numaux.ads<4znumaux.ads \
487 s-inmaop.adb<7sinmaop.adb \
488 s-interr.adb<5zinterr.adb \
489 s-intman.adb<5zintman.adb \
490 s-osinte.adb<5zosinte.adb \
491 s-osinte.ads<5zosinte.ads \
492 s-osprim.adb<5zosprim.adb \
493 s-parame.ads<5zparame.ads \
494 s-taprop.adb<5ztaprop.adb \
495 s-tpopsp.adb<5ztpopsp.adb \
496 s-taspri.ads<5ztaspri.ads \
497 s-vxwork.ads<5avxwork.ads \
498 g-soccon.ads<3zsoccon.ads \
499 g-socthi.ads<3zsocthi.ads \
500 g-socthi.adb<3zsocthi.adb \
501 system.ads<5zsystem.ads
503 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
504 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
507 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
508 LIBGNAT_TARGET_PAIRS = \
509 a-sytaco.ads<4zsytaco.ads \
510 a-sytaco.adb<4zsytaco.adb \
511 a-intnam.ads<4zintnam.ads \
512 a-numaux.ads<4znumaux.ads \
513 s-inmaop.adb<7sinmaop.adb \
514 s-interr.adb<5zinterr.adb \
515 s-intman.adb<5zintman.adb \
516 s-osinte.adb<5zosinte.adb \
517 s-osinte.ads<5zosinte.ads \
518 s-osprim.adb<5zosprim.adb \
519 s-parame.ads<5zparame.ads \
520 s-taprop.adb<5ztaprop.adb \
521 s-taspri.ads<5ztaspri.ads \
522 s-tpopsp.adb<5ztpopsp.adb \
523 s-vxwork.ads<5kvxwork.ads \
524 g-soccon.ads<3zsoccon.ads \
525 g-socthi.ads<3zsocthi.ads \
526 g-socthi.adb<3zsocthi.adb \
527 system.ads<5ksystem.ads
529 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
531 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
532 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
534 ifeq ($(strip $(filter-out yes,$(TRACE))),)
535 LIBGNAT_TARGET_PAIRS += \
536 s-traces.adb<7straces.adb \
537 s-tratas.adb<7stratas.adb \
538 s-trafor.adb<7strafor.adb \
539 s-trafor.ads<7strafor.ads \
540 s-tfsetr.adb<5ztfsetr.adb
544 ifeq ($(strip $(filter-out powerpc% wrs vxworks,$(targ))),)
545 LIBGNAT_TARGET_PAIRS = \
546 a-sytaco.ads<4zsytaco.ads \
547 a-sytaco.adb<4zsytaco.adb \
548 a-intnam.ads<4zintnam.ads \
549 a-numaux.ads<4znumaux.ads \
550 s-inmaop.adb<7sinmaop.adb \
551 s-interr.adb<5zinterr.adb \
552 s-intman.adb<5zintman.adb \
553 s-osinte.adb<5zosinte.adb \
554 s-osinte.ads<5zosinte.ads \
555 s-osprim.adb<5zosprim.adb \
556 s-parame.ads<5zparame.ads \
557 s-taprop.adb<5ztaprop.adb \
558 s-taspri.ads<5ztaspri.ads \
559 s-tpopsp.adb<5ztpopsp.adb \
560 s-vxwork.ads<5pvxwork.ads \
561 g-soccon.ads<3zsoccon.ads \
562 g-socthi.ads<3zsocthi.ads \
563 g-socthi.adb<3zsocthi.adb \
564 system.ads<5ysystem.ads
566 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
568 EXTRA_HIE_NONE_TARGET_PAIRS= \
569 system.ads<50system.ads
571 EXTRA_RAVEN_SOURCES=i-vxwork.ads s-vxwork.ads
572 EXTRA_RAVEN_OBJS=i-vxwork.o s-vxwork.o
573 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
574 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
575 HIE_RAVEN_TARGET_PAIRS=\
576 $(HIE_NONE_TARGET_PAIRS) \
577 a-reatim.ads<1areatim.ads \
578 a-reatim.adb<1areatim.adb \
579 a-retide.adb<1aretide.adb \
580 a-interr.adb<1ainterr.adb \
581 s-interr.ads<1sinterr.ads \
582 s-interr.adb<1sinterr.adb \
583 s-taskin.ads<1staskin.ads \
584 s-taskin.adb<1staskin.adb \
585 s-tarest.adb<1starest.adb \
586 s-tposen.ads<1stposen.ads \
587 s-tposen.adb<1stposen.adb \
588 s-osinte.adb<1sosinte.adb \
589 s-taprop.ads<1staprop.ads \
590 s-taprop.adb<1staprop.adb \
591 s-taprob.ads<1staprob.ads \
592 s-taprob.adb<1staprob.adb \
593 a-sytaco.ads<1asytaco.ads \
594 a-sytaco.adb<1asytaco.adb \
595 a-intnam.ads<4zintnam.ads \
596 s-osinte.ads<5zosinte.ads \
597 s-parame.ads<5zparame.ads \
598 s-taspri.ads<5ztaspri.ads \
599 s-vxwork.ads<5pvxwork.ads \
600 a-taside.adb<1ataside.adb \
602 CERT_LEVEL_B_TARGET_PAIRS=\
603 a-tags.adb<1atags.adb \
604 a-except.adb<2aexcept.adb \
605 a-except.ads<2aexcept.ads \
606 a-excach.adb<2aexcach.adb \
609 s-init.ads<2sinit.ads \
610 s-init.adb<5zinit.adb \
611 s-memory.adb<2smemory.adb \
612 s-memory.ads<2smemory.ads \
613 s-osinte.ads<2sosinte.ads \
614 s-secsta.ads<2ssecsta.ads \
615 s-secsta.adb<2ssecsta.adb \
616 s-soflin.adb<2ssoflin.adb \
617 s-soflin.ads<2ssoflin.ads \
618 s-stalib.adb<1sstalib.adb \
619 s-stalib.ads<1sstalib.ads \
620 s-thrini.ads<2sthrini.ads \
621 s-thrini.adb<5zthrini.adb \
622 s-tiitho.adb<5ztiitho.adb \
623 s-traceb.adb<2straceb.adb \
624 s-traceb.ads<2straceb.ads \
625 system.ads<5isystem.ads
627 ifeq ($(strip $(filter-out yes,$(TRACE))),)
628 LIBGNAT_TARGET_PAIRS += \
629 s-traces.adb<7straces.adb \
630 s-trafor.adb<7strafor.adb \
631 s-trafor.ads<7strafor.ads \
632 s-tratas.adb<7stratas.adb \
633 s-tfsetr.adb<5ztfsetr.adb
638 ifeq ($(strip $(filter-out powerpc% wrs vxworksae,$(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.adb<5zintman.adb \
647 s-osinte.adb<5zosinte.adb \
648 s-osinte.ads<5zosinte.ads \
649 s-osprim.adb<5zosprim.adb \
650 s-parame.ads<5yparame.ads \
651 s-taprop.adb<5ztaprop.adb \
652 s-taspri.ads<5ztaspri.ads \
653 s-tpopsp.adb<5ztpopsp.adb \
654 s-vxwork.ads<5pvxwork.ads \
655 g-soccon.ads<3zsoccon.ads \
656 g-socthi.ads<3zsocthi.ads \
657 g-socthi.adb<3zsocthi.adb \
658 system.ads<5ysystem.ads
660 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
662 EXTRA_HIE_NONE_TARGET_PAIRS= \
663 system.ads<50system.ads
665 EXTRA_RAVEN_SOURCES=i-vxwork.ads s-vxwork.ads
666 EXTRA_RAVEN_OBJS=i-vxwork.o s-vxwork.o
667 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
668 EXTRA_GNATRTL_TASKING_OBJS=i-vthrea.o s-tpae65.o s-vxwork.o
669 HIE_RAVEN_TARGET_PAIRS=\
670 $(HIE_NONE_TARGET_PAIRS) \
671 a-reatim.ads<1areatim.ads \
672 a-reatim.adb<1areatim.adb \
673 a-retide.adb<1aretide.adb \
674 a-interr.adb<1ainterr.adb \
675 s-interr.ads<1sinterr.ads \
676 s-interr.adb<1sinterr.adb \
677 s-taskin.ads<1staskin.ads \
678 s-taskin.adb<1staskin.adb \
679 s-tarest.adb<1starest.adb \
680 s-tposen.ads<1stposen.ads \
681 s-tposen.adb<1stposen.adb \
682 s-osinte.adb<1sosinte.adb \
683 s-taprop.ads<1staprop.ads \
684 s-taprop.adb<1staprop.adb \
685 s-taprob.ads<1staprob.ads \
686 s-taprob.adb<1staprob.adb \
687 a-sytaco.ads<1asytaco.ads \
688 a-sytaco.adb<1asytaco.adb \
689 a-intnam.ads<4zintnam.ads \
690 s-osinte.ads<5zosinte.ads \
691 s-parame.ads<5zparame.ads \
692 s-taspri.ads<5ztaspri.ads \
693 s-vxwork.ads<5pvxwork.ads \
694 a-taside.adb<1ataside.adb \
696 CERT_LEVEL_B_TARGET_PAIRS=\
697 a-tags.adb<1atags.adb \
698 a-except.adb<2aexcept.adb \
699 a-except.ads<2aexcept.ads \
700 a-excach.adb<2aexcach.adb \
703 s-init.ads<2sinit.ads \
704 s-init.adb<5zinit.adb \
705 s-memory.adb<2smemory.adb \
706 s-memory.ads<2smemory.ads \
707 s-osinte.ads<2sosinte.ads \
708 s-secsta.ads<2ssecsta.ads \
709 s-secsta.adb<2ssecsta.adb \
710 s-soflin.adb<2ssoflin.adb \
711 s-soflin.ads<2ssoflin.ads \
712 s-stalib.adb<1sstalib.adb \
713 s-stalib.ads<1sstalib.ads \
714 s-thrini.ads<2sthrini.ads \
715 s-thrini.adb<5zthrini.adb \
716 s-tiitho.adb<5ytiitho.adb \
717 s-traceb.adb<2straceb.adb \
718 s-traceb.ads<2straceb.ads \
719 system.ads<5isystem.ads
721 ifeq ($(strip $(filter-out yes,$(TRACE))),)
722 LIBGNAT_TARGET_PAIRS += \
723 s-traces.adb<7straces.adb \
724 s-trafor.adb<7strafor.adb \
725 s-trafor.ads<7strafor.ads \
726 s-tratas.adb<7stratas.adb \
727 s-tfsetr.adb<5ztfsetr.adb
731 ifeq ($(strip $(filter-out powerpc% unknown elf,$(targ))),)
732 EXTRA_HIE_NONE_TARGET_PAIRS= \
733 system.ads<59system.ads
735 LIBGNAT_TARGET_PAIRS = \
736 $(HIE_NONE_TARGET_PAIRS) \
737 $(EXTRA_HIE_NONE_TARGET_PAIRS)
740 ifeq ($(strip $(filter-out sparc% unknown elf,$(targ))),)
741 EXTRA_HIE_NONE_TARGET_PAIRS= \
742 system.ads<5rsystem.ads
744 LIBGNAT_TARGET_PAIRS = \
745 $(HIE_NONE_TARGET_PAIRS) \
746 $(EXTRA_HIE_NONE_TARGET_PAIRS)
749 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
750 LIBGNAT_TARGET_PAIRS = \
751 a-sytaco.ads<4zsytaco.ads \
752 a-sytaco.adb<4zsytaco.adb \
753 a-intnam.ads<4zintnam.ads \
754 a-numaux.ads<4znumaux.ads \
755 s-inmaop.adb<7sinmaop.adb \
756 s-interr.adb<5zinterr.adb \
757 s-intman.adb<5zintman.adb \
758 s-osinte.adb<5zosinte.adb \
759 s-osinte.ads<5zosinte.ads \
760 s-osprim.adb<5zosprim.adb \
761 s-parame.ads<5zparame.ads \
762 s-taprop.adb<5ztaprop.adb \
763 s-taspri.ads<5ztaspri.ads \
764 s-tpopsp.adb<5ztpopsp.adb \
765 s-vxwork.ads<5svxwork.ads \
766 g-soccon.ads<3zsoccon.ads \
767 g-socthi.ads<3zsocthi.ads \
768 g-socthi.adb<3zsocthi.adb \
769 system.ads<5csystem.ads \
771 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
773 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
774 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
777 ifeq ($(strip $(filter-out xscale% coff wrs vx%,$(targ))),)
778 LIBGNAT_TARGET_PAIRS = \
779 a-sytaco.ads<4zsytaco.ads \
780 a-sytaco.adb<4zsytaco.adb \
781 a-intnam.ads<4zintnam.ads \
782 a-numaux.ads<4znumaux.ads \
783 s-inmaop.adb<7sinmaop.adb \
784 s-interr.adb<5zinterr.adb \
785 s-intman.adb<5zintman.adb \
786 s-osinte.adb<5zosinte.adb \
787 s-osinte.ads<5zosinte.ads \
788 s-osprim.adb<5zosprim.adb \
789 s-parame.ads<5zparame.ads \
790 s-taprop.adb<5ztaprop.adb \
791 s-taspri.ads<5ztaspri.ads \
792 s-tpopsp.adb<5ztpopsp.adb \
793 s-vxwork.ads<5xvxwork.ads \
794 g-soccon.ads<3zsoccon.ads \
795 g-socthi.ads<3zsocthi.ads \
796 g-socthi.adb<3zsocthi.adb \
797 system.ads<5rsystem.ads
799 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
801 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
802 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
805 ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)
806 LIBGNAT_TARGET_PAIRS = \
807 a-sytaco.ads<4zsytaco.ads \
808 a-sytaco.adb<4zsytaco.adb \
809 a-intnam.ads<4zintnam.ads \
810 a-numaux.ads<4znumaux.ads \
811 s-inmaop.adb<7sinmaop.adb \
812 s-interr.adb<5zinterr.adb \
813 s-intman.adb<5zintman.adb \
814 s-osinte.adb<5zosinte.adb \
815 s-osinte.ads<5zosinte.ads \
816 s-osprim.adb<5zosprim.adb \
817 s-parame.ads<5zparame.ads \
818 s-taprop.adb<5ztaprop.adb \
819 s-taspri.ads<5ztaspri.ads \
820 s-tpopsp.adb<5ztpopsp.adb \
821 s-vxwork.ads<5mvxwork.ads \
822 g-soccon.ads<3zsoccon.ads \
823 g-socthi.ads<3zsocthi.ads \
824 g-socthi.adb<3zsocthi.adb \
825 system.ads<5msystem.ads
827 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
829 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
830 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
833 ifeq ($(strip $(filter-out sparc sun solaris%,$(targ))),)
834 LIBGNAT_TARGET_PAIRS = \
835 a-intnam.ads<4sintnam.ads \
836 s-inmaop.adb<7sinmaop.adb \
837 s-intman.adb<5sintman.adb \
838 s-osinte.adb<5sosinte.adb \
839 s-osinte.ads<5sosinte.ads \
840 s-osprim.adb<5sosprim.adb \
841 s-parame.adb<5sparame.adb \
842 s-taprop.adb<5staprop.adb \
843 s-tasinf.adb<5stasinf.adb \
844 s-tasinf.ads<5stasinf.ads \
845 s-taspri.ads<5staspri.ads \
846 s-tpopsp.adb<5stpopsp.adb \
847 g-soccon.ads<3ssoccon.ads \
848 g-soliop.ads<3ssoliop.ads \
849 system.ads<5ssystem.ads
851 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5sml-tgt.adb
853 THREADSLIB = -lposix4 -lthread
854 MISCLIB = -lposix4 -lnsl -lsocket
855 SYMLIB = -laddr2line -lbfd $(LIBINTL)
857 GNATLIB_SHARED = gnatlib-shared-dual
859 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
860 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
862 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
863 LIBGNAT_TARGET_PAIRS = \
864 a-intnam.ads<4sintnam.ads \
865 s-inmaop.adb<7sinmaop.adb \
866 s-intman.adb<5sintman.adb \
867 s-osinte.adb<7sosinte.adb \
868 s-osinte.ads<5tosinte.ads \
869 s-osprim.adb<5sosprim.adb \
870 s-taprop.adb<7staprop.adb \
871 s-taspri.ads<7staspri.ads \
872 s-tpopsp.adb<7stpopsp.adb \
873 g-soccon.ads<3ssoccon.ads \
874 g-soliop.ads<3ssoliop.ads \
875 system.ads<5ssystem.ads
877 THREADSLIB = -lgthreads -lmalloc
880 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
881 LIBGNAT_TARGET_PAIRS = \
882 a-intnam.ads<4sintnam.ads \
883 s-inmaop.adb<7sinmaop.adb \
884 s-intman.adb<7sintman.adb \
885 s-osinte.adb<5iosinte.adb \
886 s-osinte.ads<54osinte.ads \
887 s-osprim.adb<5sosprim.adb \
888 s-taprop.adb<7staprop.adb \
889 s-taspri.ads<7staspri.ads \
890 s-tpopsp.adb<5atpopsp.adb \
891 g-soccon.ads<3ssoccon.ads \
892 g-soliop.ads<3ssoliop.ads \
893 system.ads<5ssystem.ads
895 THREADSLIB = -lposix4 -lpthread
898 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
899 LIBGNAT_TARGET_PAIRS = \
900 a-intnam.ads<4sintnam.ads \
901 s-inmaop.adb<7sinmaop.adb \
902 s-intman.adb<5sintman.adb \
903 s-osinte.adb<5sosinte.adb \
904 s-osinte.ads<5sosinte.ads \
905 s-osprim.adb<5sosprim.adb \
906 s-parame.adb<5sparame.adb \
907 s-taprop.adb<5staprop.adb \
908 s-tasinf.adb<5stasinf.adb \
909 s-tasinf.ads<5stasinf.ads \
910 s-taspri.ads<5staspri.ads \
911 s-tpopsp.adb<5stpopsp.adb \
912 g-soccon.ads<3ssoccon.ads \
913 g-soliop.ads<3ssoliop.ads \
914 system.ads<5usystem.ads
918 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
919 LIBGNAT_TARGET_PAIRS = \
920 a-numaux.adb<86numaux.adb \
921 a-numaux.ads<86numaux.ads \
922 a-intnam.ads<4sintnam.ads \
923 s-inmaop.adb<7sinmaop.adb \
924 s-intman.adb<5sintman.adb \
925 s-mastop.adb<5omastop.adb \
926 s-osinte.adb<5sosinte.adb \
927 s-osinte.ads<5sosinte.ads \
928 s-osprim.adb<5sosprim.adb \
929 s-parame.adb<5sparame.adb \
930 s-taprop.adb<5staprop.adb \
931 s-tasinf.adb<5stasinf.adb \
932 s-tasinf.ads<5stasinf.ads \
933 s-taspri.ads<5staspri.ads \
934 s-tpopsp.adb<5stpopsp.adb \
935 g-soccon.ads<3ssoccon.ads \
936 g-soliop.ads<3ssoliop.ads \
937 system.ads<5esystem.ads
939 THREADSLIB = -lposix4 -lthread
940 MISCLIB = -lposix4 -lnsl -lsocket
942 GNATLIB_SHARED = gnatlib-shared-dual
943 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
944 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
947 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
948 LIBGNAT_TARGET_PAIRS = \
949 a-intnam.ads<4lintnam.ads \
950 a-numaux.adb<86numaux.adb \
951 a-numaux.ads<86numaux.ads \
952 s-inmaop.adb<7sinmaop.adb \
953 s-intman.adb<5lintman.adb \
954 s-mastop.adb<5omastop.adb \
955 s-osinte.adb<5iosinte.adb \
956 s-osinte.ads<5iosinte.ads \
957 s-osprim.adb<7sosprim.adb \
958 s-taprop.adb<5itaprop.adb \
959 s-taspri.ads<5itaspri.ads \
960 s-tpopsp.adb<5atpopsp.adb \
961 s-parame.adb<5lparame.adb \
962 system.ads<5lsystem.ads
964 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5lml-tgt.adb
965 SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
966 THREADSLIB = -lpthread
967 GNATLIB_SHARED = gnatlib-shared-dual
969 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
970 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
972 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
973 LIBGNAT_TARGET_PAIRS = \
974 a-intnam.ads<4lintnam.ads \
975 a-numaux.adb<86numaux.adb \
976 a-numaux.ads<86numaux.ads \
977 s-inmaop.adb<7sinmaop.adb \
978 s-intman.adb<5lintman.adb \
979 s-mastop.adb<5omastop.adb \
980 s-osinte.adb<7sosinte.adb \
981 s-osinte.ads<5losinte.ads \
982 s-osprim.adb<7sosprim.adb \
983 s-taprop.adb<7staprop.adb \
984 s-taspri.ads<7staspri.ads \
985 s-tpopsp.adb<7stpopsp.adb \
986 system.ads<5lsystem.ads
988 THREADSLIB = -lgthreads -lmalloc
992 ifeq ($(strip $(filter-out mips sgi irix%,$(targ))),)
993 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
994 LIBGNAT_TARGET_PAIRS = \
995 a-intnam.ads<4gintnam.ads \
996 s-inmaop.adb<7sinmaop.adb \
997 s-intman.adb<5fintman.adb \
998 s-mastop.adb<5gmastop.adb \
999 s-osinte.adb<5fosinte.adb \
1000 s-osinte.ads<5fosinte.ads \
1001 s-osprim.adb<7sosprim.adb \
1002 s-proinf.adb<5gproinf.adb \
1003 s-proinf.ads<5gproinf.ads \
1004 s-taprop.adb<5ftaprop.adb \
1005 s-tasinf.ads<5ftasinf.ads \
1006 s-taspri.ads<7staspri.ads \
1007 s-tpopsp.adb<7stpopsp.adb \
1008 s-traceb.adb<7straceb.adb \
1009 g-soccon.ads<3gsoccon.ads \
1010 system.ads<5gsystem.ads
1012 THREADSLIB = -lpthread
1013 GNATLIB_SHARED = gnatlib-shared-default
1016 LIBGNAT_TARGET_PAIRS = \
1017 a-intnam.ads<4gintnam.ads \
1018 s-inmaop.adb<5ninmaop.adb \
1019 s-interr.adb<5ginterr.adb \
1020 s-intman.adb<5gintman.adb \
1021 s-mastop.adb<5gmastop.adb \
1022 s-osinte.adb<5fosinte.adb \
1023 s-osinte.ads<5gosinte.ads \
1024 s-osprim.adb<7sosprim.adb \
1025 s-proinf.adb<5gproinf.adb \
1026 s-proinf.ads<5gproinf.ads \
1027 s-taprop.adb<5gtaprop.adb \
1028 s-tasinf.adb<5gtasinf.adb \
1029 s-tasinf.ads<5gtasinf.ads \
1030 s-taspri.ads<7staspri.ads \
1031 s-traceb.adb<7straceb.adb \
1032 g-soccon.ads<3gsoccon.ads \
1033 system.ads<5fsystem.ads
1035 THREADSLIB = -lathread
1038 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5gml-tgt.adb
1041 SO_OPTS = -Wl,-all,-set_version,sgi1.0,-update_registry,../so_locations,-soname,
1042 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1043 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
1046 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
1047 LIBGNAT_TARGET_PAIRS = \
1048 a-excpol.adb<4wexcpol.adb \
1049 a-intnam.ads<4hintnam.ads \
1050 s-inmaop.adb<7sinmaop.adb \
1051 s-interr.adb<5ginterr.adb \
1052 s-intman.adb<7sintman.adb \
1053 s-osinte.adb<5hosinte.adb \
1054 s-osinte.ads<5hosinte.ads \
1055 s-parame.ads<5hparame.ads \
1056 s-osprim.adb<7sosprim.adb \
1057 s-taprop.adb<5htaprop.adb \
1058 s-taspri.ads<5htaspri.ads \
1059 s-tpopsp.adb<7stpopsp.adb \
1060 g-soccon.ads<3hsoccon.ads \
1061 system.ads<5hsystem.ads
1063 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1066 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
1067 LIBGNAT_TARGET_PAIRS = \
1068 a-intnam.ads<4hintnam.ads \
1069 s-inmaop.adb<7sinmaop.adb \
1070 s-intman.adb<7sintman.adb \
1071 s-osinte.adb<5iosinte.adb \
1072 s-osinte.ads<53osinte.ads \
1073 s-parame.ads<5hparame.ads \
1074 s-osprim.adb<7sosprim.adb \
1075 s-traceb.adb<5htraceb.adb \
1076 s-taprop.adb<7staprop.adb \
1077 s-taspri.ads<7staspri.ads \
1078 s-tpopsp.adb<5atpopsp.adb \
1079 g-soccon.ads<3hsoccon.ads \
1080 system.ads<5hsystem.ads
1082 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5hml-tgt.adb
1083 TGT_LIB = /usr/lib/libcl.a
1084 THREADSLIB = -lpthread
1085 SYMLIB = -laddr2line -lbfd $(LIBINTL)
1089 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1090 GNATLIB_SHARED = gnatlib-shared-dual
1091 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
1093 ifeq ($(strip $(filter-out dce DCE,$(THREAD_KIND))),)
1094 LIBGNAT_TARGET_PAIRS = \
1095 a-excpol.adb<4wexcpol.adb \
1096 a-intnam.ads<4hintnam.ads \
1097 s-inmaop.adb<7sinmaop.adb \
1098 s-interr.adb<5ginterr.adb \
1099 s-intman.adb<7sintman.adb \
1100 s-osinte.adb<5hosinte.adb \
1101 s-osinte.ads<5hosinte.ads \
1102 s-parame.ads<5hparame.ads \
1103 s-osprim.adb<7sosprim.adb \
1104 s-taprop.adb<5htaprop.adb \
1105 s-taspri.ads<5htaspri.ads \
1106 s-tpopsp.adb<7stpopsp.adb \
1107 g-soccon.ads<3hsoccon.ads \
1108 system.ads<5hsystem.ads
1115 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
1116 LIBGNAT_TARGET_PAIRS = \
1117 a-intnam.ads<4cintnam.ads \
1118 s-inmaop.adb<7sinmaop.adb \
1119 s-intman.adb<7sintman.adb \
1120 s-osinte.adb<5bosinte.adb \
1121 s-osinte.ads<5bosinte.ads \
1122 s-osprim.adb<7sosprim.adb \
1123 s-taprop.adb<7staprop.adb \
1124 s-taspri.ads<7staspri.ads \
1125 s-tpopsp.adb<7stpopsp.adb \
1126 g-soccon.ads<3bsoccon.ads \
1127 system.ads<5bsystem.ads
1129 THREADSLIB = -lpthreads
1130 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1132 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
1133 LIBGNAT_TARGET_PAIRS = \
1134 a-intnam.ads<4cintnam.ads \
1135 s-inmaop.adb<7sinmaop.adb \
1136 s-intman.adb<7sintman.adb \
1137 s-osinte.adb<7sosinte.adb \
1138 s-osinte.ads<5cosinte.ads \
1139 s-osprim.adb<7sosprim.adb \
1140 s-taprop.adb<7staprop.adb \
1141 s-taspri.ads<7staspri.ads \
1142 s-tpopsp.adb<7stpopsp.adb \
1143 g-soccon.ads<3bsoccon.ads \
1144 system.ads<5bsystem.ads
1146 THREADSLIB = -lgthreads -lmalloc
1149 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5bml-tgt.adb
1151 SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
1155 ifeq ($(strip $(filter-out lynxos,$(osys))),)
1156 ifeq ($(strip $(filter-out %86 lynxos,$(arch) $(osys))),)
1157 LIBGNAT_TARGET_PAIRS = \
1158 a-numaux.adb<86numaux.adb \
1159 a-numaux.ads<86numaux.ads \
1160 a-intnam.ads<42intnam.ads \
1161 s-mastop.adb<5omastop.adb \
1162 s-inmaop.adb<7sinmaop.adb \
1163 s-intman.adb<7sintman.adb \
1164 s-osinte.adb<56osinte.adb \
1165 s-osinte.ads<56osinte.ads \
1166 s-osprim.adb<7sosprim.adb \
1167 s-taprop.adb<56taprop.adb \
1168 s-taspri.ads<56taspri.ads \
1169 s-tpopsp.adb<56tpopsp.adb \
1170 system.ads<58system.ads
1172 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1175 LIBGNAT_TARGET_PAIRS = \
1176 a-intnam.ads<42intnam.ads \
1177 s-inmaop.adb<7sinmaop.adb \
1178 s-intman.adb<7sintman.adb \
1179 s-osinte.adb<52osinte.adb \
1180 s-osinte.ads<52osinte.ads \
1181 s-osprim.adb<7sosprim.adb \
1182 s-taprop.adb<7staprop.adb \
1183 s-taspri.ads<7staspri.ads \
1184 s-tpopsp.adb<7stpopsp.adb \
1185 system.ads<57system.ads
1187 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
1188 LIBGNAT_TARGET_PAIRS = \
1189 a-intnam.ads<42intnam.ads \
1190 s-inmaop.adb<7sinmaop.adb \
1191 s-intman.adb<7sintman.adb \
1192 s-osinte.adb<56osinte.adb \
1193 s-osinte.ads<56osinte.ads \
1194 s-osprim.adb<7sosprim.adb \
1195 s-taprop.adb<56taprop.adb \
1196 s-taspri.ads<56taspri.ads \
1197 s-tpopsp.adb<56tpopsp.adb \
1198 system.ads<57system.ads
1204 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1205 LIBGNAT_TARGET_PAIRS = \
1206 a-intnam.ads<4rintnam.ads \
1207 s-inmaop.adb<7sinmaop.adb \
1208 s-intman.adb<7sintman.adb \
1209 s-osinte.adb<5rosinte.adb \
1210 s-osinte.ads<5rosinte.ads \
1211 s-osprim.adb<7sosprim.adb \
1212 s-parame.adb<5rparame.adb \
1213 s-taprop.adb<7staprop.adb \
1214 s-taspri.ads<7staspri.ads \
1215 s-tpopsp.adb<5rtpopsp.adb
1218 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1219 LIBGNAT_TARGET_PAIRS = \
1220 a-intnam.ads<4aintnam.ads \
1221 s-inmaop.adb<7sinmaop.adb \
1222 s-intman.adb<7sintman.adb \
1223 s-mastop.adb<5amastop.adb \
1224 s-osinte.adb<5aosinte.adb \
1225 s-osinte.ads<5aosinte.ads \
1226 s-osprim.adb<5posprim.adb \
1227 s-taprop.adb<5ataprop.adb \
1228 s-tasinf.ads<5atasinf.ads \
1229 s-taspri.ads<5ataspri.ads \
1230 s-tpopsp.adb<5atpopsp.adb \
1231 s-traceb.adb<7straceb.adb \
1232 g-soccon.ads<3asoccon.ads \
1233 system.ads<5asystem.ads
1235 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5aml-tgt.adb
1238 SYMLIB = -laddr2line -lbfd $(LIBINTL)
1239 THREADSLIB = -lpthread -lmach -lexc -lrt
1240 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1241 GNATLIB_SHARED = gnatlib-shared-default
1242 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
1245 ifeq ($(strip $(filter-out alpha% dec vms% openvms% alphavms%,$(host))),)
1252 @ gnu:[bin]vmssymvec $<
1255 ifeq ($(strip $(filter-out alpha% ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1256 ifeq ($(strip $(filter-out alpha64% dec vms% openvms% alphavms%,$(targ))),)
1257 LIBGNAT_TARGET_PAIRS_AUX =
1259 ifeq ($(strip $(filter-out express EXPRESS,$(THREAD_KIND))),)
1260 LIBGNAT_TARGET_PAIRS_AUX = \
1261 s-parame.ads<5xparame.ads
1263 LIBGNAT_TARGET_PAIRS_AUX = \
1264 s-parame.ads<5vparame.ads
1268 LIBGNAT_TARGET_PAIRS = \
1269 a-caldel.adb<4vcaldel.adb \
1270 a-calend.adb<4vcalend.adb \
1271 a-calend.ads<4vcalend.ads \
1272 a-excpol.adb<4wexcpol.adb \
1273 a-intnam.ads<4vintnam.ads \
1274 g-expect.adb<3vexpect.adb \
1275 g-soccon.ads<3vsoccon.ads \
1276 g-socthi.ads<3vsocthi.ads \
1277 g-socthi.adb<3vsocthi.adb \
1278 g-trasym.adb<3vtrasym.adb \
1279 i-cstrea.adb<6vcstrea.adb \
1280 i-cpp.adb<6vcpp.adb \
1281 interfac.ads<6vinterf.ads \
1282 s-asthan.adb<5vasthan.adb \
1283 s-inmaop.adb<5vinmaop.adb \
1284 s-interr.adb<5vinterr.adb \
1285 s-intman.adb<5vintman.adb \
1286 s-intman.ads<5vintman.ads \
1287 s-osinte.adb<5vosinte.adb \
1288 s-osinte.ads<5vosinte.ads \
1289 s-osprim.adb<5vosprim.adb \
1290 s-osprim.ads<5vosprim.ads \
1291 s-taprop.adb<5vtaprop.adb \
1292 s-taspri.ads<5vtaspri.ads \
1293 s-tpopsp.adb<7stpopsp.adb \
1294 s-tpopde.adb<5vtpopde.adb \
1295 s-tpopde.ads<5vtpopde.ads \
1296 s-traent.adb<5vtraent.adb \
1297 s-traent.ads<5vtraent.ads \
1298 s-vaflop.adb<5vvaflop.adb \
1299 system.ads<5xsystem.ads \
1300 $(LIBGNAT_TARGET_PAIRS_AUX)
1302 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5vml-tgt.adb
1304 GNATLIB_SHARED=gnatlib-shared-vms
1305 EXTRA_LIBGNAT_SRCS=vmshandler.asm
1306 EXTRA_LIBGNAT_OBJS=vmshandler.o
1307 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1309 ../../gnatlbr$(exeext) \
1310 ,,/../gnatsym$(exeext)
1311 # This command transforms (YYYYMMDD) into YY,MMDD
1312 GSMATCH_VERSION := $(shell grep "^ *Gnat_Version_String" $(fsrcpfx)gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\)/\2,\3/')
1313 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/' -e 's/\./_/g'))
1314 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1317 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1318 LIBGNAT_TARGET_PAIRS = \
1319 a-calend.adb<4wcalend.adb \
1320 a-excpol.adb<4wexcpol.adb \
1321 a-intnam.ads<4wintnam.ads \
1322 a-numaux.adb<86numaux.adb \
1323 a-numaux.ads<86numaux.ads \
1324 s-gloloc.adb<5wgloloc.adb \
1325 s-inmaop.adb<5ninmaop.adb \
1326 s-interr.adb<5ginterr.adb \
1327 s-intman.adb<5wintman.adb \
1328 s-mastop.adb<5omastop.adb \
1329 s-memory.adb<5wmemory.adb \
1330 s-osinte.ads<5wosinte.ads \
1331 s-osprim.adb<5wosprim.adb \
1332 s-taprop.adb<5wtaprop.adb \
1333 s-taspri.ads<5wtaspri.ads \
1334 g-socthi.ads<3wsocthi.ads \
1335 g-socthi.adb<3wsocthi.adb \
1336 g-soccon.ads<3wsoccon.ads \
1337 g-soliop.ads<3wsoliop.ads \
1338 system.ads<5wsystem.ads
1340 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5wml-tgt.adb
1342 SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
1344 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1345 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1346 GNAT_WRAPPER_TOOL = ../../gnat_wrapper$(exeext)
1347 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1348 EXTRA_GNATRTL_NONTASKING_OBJS = g-regist.o
1350 GNATLIB_SHARED = gnatlib-shared-win32
1351 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
1354 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1355 LIBGNAT_TARGET_PAIRS = \
1356 a-intnam.ads<4lintnam.ads \
1357 s-inmaop.adb<7sinmaop.adb \
1358 s-intman.adb<5lintman.adb \
1359 s-osinte.ads<5iosinte.ads \
1360 s-osinte.adb<5iosinte.adb \
1361 s-osprim.adb<7sosprim.adb \
1362 s-taprop.adb<5itaprop.adb \
1363 s-tpopsp.adb<5atpopsp.adb \
1364 s-taspri.ads<5itaspri.ads \
1365 system.ads<55system.ads
1367 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5lml-tgt.adb
1369 THREADSLIB=-lpthread
1370 GNATLIB_SHARED=gnatlib-shared-dual
1371 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1372 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
1375 # The runtime library for gnat comprises two directories. One contains the
1376 # Ada source files that the compiler (gnat1) needs -- these files are listed
1377 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1378 # corresponding .ali files for the parts written in Ada, libgnat.a for
1379 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1380 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1381 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1382 # go into the directory. The pthreads emulation is built in the threads
1383 # subdirectory and copied.
1384 LIBGNAT_SRCS = ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1385 errno.c exit.c cal.c ctrl_c.c \
1386 raise.h raise.c sysdep.c types.h aux-io.c init.c \
1387 final.c tracebak.c tb-alvms.c tb-alvxw.c expect.c mkdir.c socket.c \
1388 $(EXTRA_LIBGNAT_SRCS)
1390 LIBGNAT_OBJS = adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o \
1391 raise.o sysdep.o aux-io.o init.o cal.o final.o \
1392 tracebak.o expect.o mkdir.o socket.o $(EXTRA_LIBGNAT_OBJS)
1394 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1395 # the library installation will change and there will be a
1396 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1397 # from ADA_INCLUDE_SRCS.
1399 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1400 # the following include file:
1402 include $(fsrcdir)/Makefile.rtl
1404 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
1405 g-trasym.o memtrack.o
1407 # Files which are suitable in no run time/hi integrity mode
1409 COMPILABLE_HIE_SOURCES= \
1429 a-except.adb $(EXTRA_HIE_SOURCES)
1431 NON_COMPILABLE_HIE_SOURCES= \
1442 HIE_SOURCES = $(NON_COMPILABLE_HIE_SOURCES) $(COMPILABLE_HIE_SOURCES)
1444 # Object to generate for the HI run time
1461 a-tags.o $(EXTRA_HIE_OBJS)
1463 # Files which are needed in ravenscar mode
1465 COMPILABLE_RAVEN_SOURCES = \
1466 $(COMPILABLE_HIE_SOURCES) \
1498 a-taside.adb $(EXTRA_RAVEN_SOURCES)
1500 NON_COMPILABLE_RAVEN_SOURCES= $(NON_COMPILABLE_HIE_SOURCES)
1502 RAVEN_SOURCES = $(NON_COMPILABLE_RAVEN_SOURCES) $(COMPILABLE_RAVEN_SOURCES)
1504 # Objects to generate for the ravenscar run time
1525 a-taside.o $(EXTRA_RAVEN_OBJS)
1528 # Files which are needed for the cert level B runtime
1530 COMPILABLE_CERT_LEVEL_B_SOURCES = \
1531 $(COMPILABLE_HIE_SOURCES) \
1563 $(EXTRA_CERT_LEVEL_B_SOURCES)
1565 NON_COMPILABLE_CERT_LEVEL_B_SOURCES= \
1568 $(NON_COMPILABLE_HIE_SOURCES)
1570 CERT_LEVEL_B_SOURCES = \
1571 $(NON_COMPILABLE_CERT_LEVEL_B_SOURCES) \
1572 $(COMPILABLE_CERT_LEVEL_B_SOURCES)
1574 # Objects to generate for the cert level B run time
1576 CERT_LEVEL_B_OBJS = \
1593 $(EXTRA_CERT_LEVEL_B_OBJS)
1595 # C files for the cert level B run time (without the .c extension)
1597 CERT_LEVEL_B_C_FILES = \
1599 $(EXTRA_CERT_LEVEL_B_C_FILES)
1601 # Default run time files
1604 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1605 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1606 sequenio.ads system.ads Makefile.adalib Makefile.prolog Makefile.generic \
1608 a-*.adb a-*.ads g-*.ad? i-*.ad? \
1609 s-[a-o]*.adb s-[p-z]*.adb \
1610 s-[a-o]*.ads s-[p-z]*.ads
1612 LIBGNAT=../rts/libgnat.a
1613 TOOLS_FLAGS_TO_PASS= \
1615 "CFLAGS=$(CFLAGS)" \
1616 "LDFLAGS=$(LDFLAGS)" \
1617 "ADAFLAGS=$(ADAFLAGS)" \
1618 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
1619 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
1620 "libsubdir=$(libsubdir)" \
1621 "exeext=$(exeext)" \
1622 "fsrcdir=$(fsrcdir)" \
1623 "srcdir=$(fsrcdir)" \
1624 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
1625 "GNATMAKE=$(GNATMAKE)" \
1626 "GNATLINK=$(GNATLINK)" \
1627 "GNATBIND=$(GNATBIND)"
1629 # Build directory for the tools. Let's copy the target-dependent
1630 # sources using the same mechanism as for gnatlib. The other sources are
1631 # accessed using the vpath directive below
1637 -(cd tools; $(LN_S) ../sdefault.adb .)
1638 -$(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
1639 $(RM) tools/$(word 1,$(subst <, ,$(PAIR)));\
1640 $(LN_S) $(fsrcdir)/$(word 2,$(subst <, ,$(PAIR))) \
1641 tools/$(word 1,$(subst <, ,$(PAIR)));)
1642 touch ../stamp-tools
1644 # when compiling the tools, the runtime has to be first on the path so that
1645 # it hides the runtime files lying with the rest of the sources
1646 ifeq ($(TOOLSCASE),native)
1647 vpath %.ads ../rts ../
1648 vpath %.adb ../rts ../
1649 vpath %.c ../rts ../
1650 vpath %.h ../rts ../
1653 # in the cross tools case, everything is compiled with the native
1654 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1655 ifeq ($(TOOLSCASE),cross)
1662 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
1663 # reasons: gnatmake should be built with a recent compiler, a recent compiler
1664 # may not generate ALI files compatible with an old gnatmake so it is important
1665 # to be able to build gnatmake without a version of gnatmake around. Once
1666 # everything has been compiled once, gnatmake can be recompiled with itself
1667 # (see target gnattools1-re)
1668 gnattools1: ../stamp-tools ../stamp-gnatlib
1669 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1671 ../../gnatmake$(exeext) ../../gnatlink$(exeext) ../../gnatbl$(exeext)
1673 # gnatmake/link can be built with recent gnatmake/link if they are available.
1674 # This is especially convenient for building cross tools or for rebuilding
1675 # the tools when the original bootstrap has already be done.
1676 gnattools1-re: ../stamp-tools
1677 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1678 TOOLSCASE=cross INCLUDES="" gnatmake-re gnatlink-re
1680 # these tools are built with gnatmake & are common to native and cross
1681 gnattools2: ../stamp-tools
1682 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1684 ../../gnatchop$(exeext) ../../gnat$(exeext) ../../gnatkr$(exeext) \
1685 ../../gnatls$(exeext) ../../gnatprep$(exeext) \
1686 ../../gnatpsta$(exeext) ../../gnatxref$(exeext) \
1687 ../../gnatfind$(exeext) ../../gnatname$(exeext) \
1688 ../../gnatclean$(exeext) \
1689 ../../gprcmd$(exeext) ../../gpr2make$(exeext) \
1690 $(GNAT_WRAPPER_TOOL)
1692 # These tools are only built for the native version.
1693 gnattools3: ../stamp-tools
1694 # $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1695 # TOOLSCASE=native top_builddir=../../.. \
1696 # ../../gnatmem$(exeext) $(EXTRA_GNATTOOLS)
1698 # those tools are only built for the cross version
1699 gnattools4: ../stamp-tools
1700 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1701 TOOLSCASE=cross top_buildir=../../.. \
1702 ../../vxaddr2line$(exeext)
1704 ../../gnatchop$(exeext): ../stamp-tools
1705 $(GNATMAKE) -c $(ADA_INCLUDES) gnatchop --GCC="$(CC) $(ALL_ADAFLAGS)"
1706 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatchop
1707 $(GNATLINK) -v gnatchop -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1710 ../../gnat$(exeext): ../stamp-tools
1711 $(GNATMAKE) -c $(ADA_INCLUDES) gnatcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1712 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatcmd
1713 $(GNATLINK) -v gnatcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1715 ../../gnatkr$(exeext): ../stamp-tools
1716 $(GNATMAKE) -c $(ADA_INCLUDES) gnatkr --GCC="$(CC) $(ALL_ADAFLAGS)"
1717 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatkr
1718 $(GNATLINK) -v gnatkr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1720 ../../gnatls$(exeext): ../stamp-tools
1721 $(GNATMAKE) -c $(ADA_INCLUDES) gnatls --GCC="$(CC) $(ALL_ADAFLAGS)"
1722 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatls
1723 $(GNATLINK) -v gnatls -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1725 ../../gnatname$(exeext): ../stamp-tools
1726 $(GNATMAKE) -c $(ADA_INCLUDES) gnatname --GCC="$(CC) $(ALL_ADAFLAGS)"
1727 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatname
1728 $(GNATLINK) -v gnatname -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1731 ../../gpr2make$(exeext): ../stamp-tools
1732 $(GNATMAKE) -c $(ADA_INCLUDES) gpr2make --GCC="$(CC) $(ALL_ADAFLAGS)"
1733 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gpr2make
1734 $(GNATLINK) -v gpr2make -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1737 ../../gnatprep$(exeext): ../stamp-tools
1738 $(GNATMAKE) -c $(ADA_INCLUDES) gnatprep --GCC="$(CC) $(ALL_ADAFLAGS)"
1739 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatprep
1740 $(GNATLINK) -v gnatprep -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1743 ../../gnatpsta$(exeext): deftarg.o ../stamp-tools
1744 # $(GNATMAKE) -c $(ADA_INCLUDES) gnatpsta --GCC="$(CC) $(ALL_ADAFLAGS)"
1745 # $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatpsta
1746 # $(GNATLINK) -v gnatpsta -o $@ --GCC="$(CC) $(ADA_INCLUDES)"\
1747 # ../targtyps.o deftarg.o $(TOOLS_LIBS)
1749 ../../gnatxref$(exeext): ../stamp-tools
1750 $(GNATMAKE) -c $(ADA_INCLUDES) gnatxref --GCC="$(CC) $(ALL_ADAFLAGS)"
1751 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatxref
1752 $(GNATLINK) -v gnatxref -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1755 ../../gnatfind$(exeext): ../stamp-tools
1756 $(GNATMAKE) -c $(ADA_INCLUDES) gnatfind --GCC="$(CC) $(ALL_ADAFLAGS)"
1757 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatfind
1758 $(GNATLINK) -v gnatfind -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1761 ../../gnatclean$(exeext): ../stamp-tools
1762 $(GNATMAKE) -c $(ADA_INCLUDES) gnatclean --GCC="$(CC) $(ALL_ADAFLAGS)"
1763 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatclean
1764 $(GNATLINK) -v gnatclean -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1767 ../../gnatsym$(exeext): ../stamp-tools
1768 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
1769 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
1770 $(GNATLINK) -v gnatsym -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1773 ../../gnatmem$(exeext): ../stamp-tools gmem.o $(SYMDEPS)
1774 ifeq ($(GMEM_LIB),gmemlib)
1775 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmem --GCC="$(CC) $(ALL_ADAFLAGS)"
1776 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmem
1777 $(GNATLINK) -v gnatmem -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1778 gmem.o $(SYMLIB) $(TOOLS_LIBS)
1781 ../../gnatdll$(exeext): ../stamp-tools
1782 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
1783 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) $(GNATBIND_FLAGS) gnatdll
1784 $(GNATLINK) -v gnatdll -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1787 ../../gnat_wrapper$(exeext): ../stamp-tools
1788 $(GNATMAKE) -c -O2 -gnatpn $(ADA_INCLUDES) gnat_wrapper --GCC="$(CC) $(ALL_ADAFLAGS)"
1789 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnat_wrapper
1790 $(GNATLINK) -v gnat_wrapper -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1793 ../../gprcmd$(exeext): ../stamp-tools
1794 $(GNATMAKE) -c $(ADA_INCLUDES) gprcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1795 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gprcmd
1796 $(GNATLINK) -v gprcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1798 ../../vxaddr2line$(exeext): ../stamp-tools
1799 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
1800 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
1801 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(CLIB)
1803 gnatmake-re: ../stamp-tools
1804 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
1805 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1806 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
1807 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
1808 --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1810 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1811 # with the former version of gnatlink itself which cannot override itself.
1812 gnatlink-re: ../stamp-tools link.o
1813 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
1814 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
1815 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
1816 --GCC="$(CC) $(ADA_INCLUDES)" link.o $(TOOLS_LIBS)
1817 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
1819 # Needs to be built with CC=gcc
1820 # Since the RTL should be built with the latest compiler, remove the
1821 # stamp target in the parent directory whenever gnat1 is rebuilt
1823 # Likewise for the tools
1824 ../../gnatmake$(exeext): $(P) b_gnatm.o $(GNATMAKE_OBJS)
1825 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
1828 ../../gnatlink$(exeext): $(P) b_gnatl.o $(GNATLINK_OBJS)
1829 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
1832 ../../gnatbl$(exeext): gnatbl.o
1833 $(CC) -o $@ $(ALL_CFLAGS) $(LDFLAGS) gnatbl.o $(TOOLS_LIBS)
1835 gnatbl.o: gnatbl.c adaint.h
1836 $(CC) $(ALL_CFLAGS) $(INCLUDES) -c $< $(OUTPUT_OPTION)
1839 @if [ ! -f stamp-gnatlib ] ; \
1841 $(ECHO) You must first build the GNAT library: make gnatlib; \
1847 install-gnatlib: ../stamp-gnatlib
1848 # Create the directory before deleting it, in case the directory is
1849 # a list of directories (as it may be on VMS). This ensures we are
1850 # deleting the right one.
1851 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1852 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1853 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1854 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1855 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1856 $(RMDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1857 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1858 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1859 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1860 -$(INSTALL_DATA) rts/Makefile.prolog $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1861 -$(INSTALL_DATA) rts/Makefile.generic $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1862 for file in rts/*.ali; do \
1863 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1865 -$(INSTALL_DATA) rts/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1866 -for file in rts/*$(arext);do \
1867 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1869 # Install the shared libraries, if any, using $(INSTALL) instead
1870 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1871 # for shared libraries on some targets, e.g. on HP-UX where the x
1872 # permission is required.
1873 ifeq ($(strip $(filter-out alpha% dec vms% openvms% alphavms%,$(targ))),)
1874 -for file in rts/lib*$(soext);do \
1875 $(INSTALL) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1878 -for file in rts/lib*-*$(soext);do \
1879 $(INSTALL) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1882 if [ -f rts/libgnat-*$(soext) ]; then \
1883 (cd $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
1884 $(LN_S) libgnat-*$(soext) libgnat$(soext) && \
1885 $(LN_S) libgnarl-*$(soext) libgnarl$(soext)) \
1887 # This copy must be done preserving the date on the original file.
1888 for file in rts/*.adb rts/*.ads; do \
1889 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
1891 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
1892 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
1896 $(RM) rts/s-*$(objext)
1898 $(RM) rts/a-*$(objext)
1900 $(RM) rts/*$(objext)
1903 touch ../stamp-gnatlib2
1904 $(RM) ../stamp-gnatlib
1906 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1907 # successive target commands. Although the Gnu make documentation
1908 # implies this is true on all systems, I suspect it may not be, So care
1909 # has been taken to allow a sed script to look for ";)" and substitue
1910 # for ";" the appropriate character in the range of lines below
1911 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1913 # GNULLI Begin ###########################################################
1915 ../stamp-gnatlib1: Makefile ../stamp-gnatlib2
1919 # Copy target independent sources
1920 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
1921 $(LN_S) $(fsrcpfx)$(f) rts ;) true
1922 # Remove files to be replaced by target dependent sources
1923 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1924 rts/$(word 1,$(subst <, ,$(PAIR))))
1925 # Copy new target dependent sources
1926 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1927 $(LN_S) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1928 rts/$(word 1,$(subst <, ,$(PAIR)));)
1929 $(RM) ../stamp-gnatlib
1930 touch ../stamp-gnatlib1
1932 # GNULLI End #############################################################
1934 # Don't use semicolon separated shell commands that involve list expansions.
1935 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1936 # line lengths in excess of 256 characters.
1937 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1938 # is guaranteed to overflow the buffer.
1940 gnatlib: ../stamp-gnatlib1 ../stamp-gnatlib2
1941 $(MAKE) -C rts CC="../../xgcc -B../../" \
1942 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1943 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
1945 -f ../Makefile $(LIBGNAT_OBJS)
1946 $(MAKE) -C rts CC="../../xgcc -B../../" \
1948 CFLAGS="$(GNATLIBCFLAGS)" \
1949 ADAFLAGS="$(GNATLIBFLAGS)" \
1953 $(RM) rts/libgnat$(arext) rts/libgnarl$(arext)
1954 $(AR) $(AR_FLAGS) rts/libgnat$(arext) \
1955 $(addprefix rts/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
1956 ifneq ($(PREFIX_OBJS),)
1957 $(AR) $(AR_FLAGS) rts/libgccprefix$(arext) $(PREFIX_OBJS);
1959 if $(RANLIB_TEST) ; then $(RANLIB) rts/libgnat$(arext); else true; fi
1960 $(AR) $(AR_FLAGS) rts/libgnarl$(arext) \
1961 $(addprefix rts/,$(GNATRTL_TASKING_OBJS))
1962 if $(RANLIB_TEST) ; then $(RANLIB) rts/libgnarl$(arext); else true; fi
1963 ifeq ($(GMEM_LIB),gmemlib)
1964 $(AR) $(AR_FLAGS) rts/libgmem$(arext) rts/memtrack.o;
1966 $(CHMOD) a-wx rts/*.ali
1967 touch ../stamp-gnatlib
1969 HIE_NONE_TARGET_PAIRS=\
1970 a-except.ads<1aexcept.ads \
1971 a-except.adb<1aexcept.adb \
1972 a-tags.adb<1atags.adb \
1973 s-secsta.ads<1ssecsta.ads \
1974 s-secsta.adb<1ssecsta.adb \
1975 i-c.ads<1ic.ads $(EXTRA_HIE_NONE_TARGET_PAIRS)
1977 # This target needs RTS_NAME, RTS_SRCS, RTS_TARGET_PAIRS to be set properly
1978 # it creates a rts with the proper structure and the right target
1981 $(RMDIR) rts-$(RTS_NAME)
1982 $(MKDIR) rts-$(RTS_NAME)
1983 $(CHMOD) u+w rts-$(RTS_NAME)
1984 $(MKDIR) rts-$(RTS_NAME)/adalib
1985 $(MKDIR) rts-$(RTS_NAME)/adainclude
1986 $(CHMOD) u+w rts-$(RTS_NAME)/*
1987 # Generate the project file
1988 $(ECHO) "project $(RTS_NAME) is" > rts-$(RTS_NAME)/$(RTS_NAME).gpr
1989 $(ECHO) " for Source_Dirs use (\"adainclude\");" \
1990 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1991 $(ECHO) " for Object_Dir use \"adalib\";" \
1992 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1993 $(ECHO) " for Source_List_File use " \
1994 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1995 $(ECHO) " \"rts-$(RTS_NAME)_source_list.txt\";" \
1996 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1997 $(ECHO) " package Builder is" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1998 $(ECHO) " for Default_Switches (\"Ada\") use (\"-a\");" \
1999 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
2000 $(ECHO) " end Builder;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
2001 $(ECHO) " package Compiler is" >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
2002 $(ECHO) " for Default_Switches (\"Ada\") use (\"-nostdinc\");" \
2003 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
2004 $(ECHO) " end Compiler;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
2005 $(ECHO) "end $(RTS_NAME);" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
2007 $(foreach f, $(COMPILABLE_SOURCES), \
2009 rts-$(RTS_NAME)/rts-$(RTS_NAME)_source_list.txt ;) true
2010 # Copy target independent sources
2011 $(foreach f,$(RTS_SRCS), \
2012 $(CP) $(fsrcpfx)$(f) rts-$(RTS_NAME)/adainclude/ ;) true
2013 # Remove files to be replaced by target dependent sources
2014 $(RM) $(foreach PAIR,$(RTS_TARGET_PAIRS), \
2015 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR))))
2016 # Copy new target dependent sources
2017 $(foreach PAIR,$(RTS_TARGET_PAIRS), \
2018 $(CP) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
2019 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR)));)
2022 $(CP) -r rts-$(RTS_NAME) $(DESTDIR)$(libsubdir)/
2025 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
2026 RTS_NAME=zfp RTS_SRCS="$(HIE_SOURCES)" \
2027 RTS_TARGET_PAIRS="$(HIE_NONE_TARGET_PAIRS)" \
2028 COMPILABLE_SOURCES="$(COMPILABLE_HIE_SOURCES)"
2029 -$(GNATMAKE) -Prts-zfp/zfp.gpr --GCC="../../../xgcc -B../../../"
2030 $(RM) rts-zfp/adalib/*.o
2031 $(CHMOD) a-wx rts-zfp/adalib/*.ali
2034 # First compile the Ada files ...
2035 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
2036 RTS_NAME=cert RTS_SRCS="$(CERT_LEVEL_B_SOURCES)" \
2037 RTS_TARGET_PAIRS="$(CERT_LEVEL_B_TARGET_PAIRS)" \
2038 COMPILABLE_SOURCES="$(COMPILABLE_CERT_LEVEL_B_SOURCES)"
2039 -$(GNATMAKE) -Prts-cert/cert.gpr --GCC="../../../xgcc -B../../../"
2040 $(CHMOD) a-wx rts-cert/adalib/*.ali
2041 # ... then the C files. This section will eventually be removed.
2042 $(foreach f,$(CERT_LEVEL_B_C_FILES), \
2043 $(CP) $(fsrcpfx)$(f).c rts-cert/adainclude/ ;)
2044 cd rts-cert/adalib ; \
2045 $(foreach f,$(CERT_LEVEL_B_C_FILES), \
2046 ../../../$(GCC_FOR_TARGET) -B../../../ $(TARGET_LIBGCC2_CFLAGS) \
2047 $(ALL_CFLAGS) $(GNATLIBCFLAGS_FOR_C) -c ../adainclude/$(f).c \
2048 -I../adainclude $(INCLUDES_FOR_SUBDIR) -I../../../ ;) \
2049 $(AR) $(AR_FLAGS) libgnat$(arext) \
2050 $(addsuffix .o,$(CERT_LEVEL_B_C_FILES))
2053 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
2054 RTS_NAME=none RTS_SRCS="$(HIE_SOURCES)" \
2055 RTS_TARGET_PAIRS="$(HIE_NONE_TARGET_PAIRS)" \
2056 COMPILABLE_SOURCES="$(COMPILABLE_HIE_SOURCES)"
2057 -$(GNATMAKE) -Prts-none/none.gpr --GCC="../../../xgcc -B../../../"
2058 $(RM) rts-none/adalib/*.o
2059 $(CHMOD) a-wx rts-none/adalib/*.ali
2061 rts-ravenscar: force
2062 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
2063 RTS_NAME=ravenscar RTS_SRCS="$(RAVEN_SOURCES)" \
2064 RTS_TARGET_PAIRS="$(HIE_RAVEN_TARGET_PAIRS)" \
2065 COMPILABLE_SOURCES="$(COMPILABLE_RAVEN_SOURCES)"
2066 -$(GNATMAKE) -Prts-ravenscar/ravenscar.gpr \
2067 --GCC="../../../xgcc -B../../../"
2068 $(CHMOD) a-wx rts-ravenscar/adalib/*.ali
2070 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2071 gnatlib-shared-default:
2072 $(MAKE) $(FLAGS_TO_PASS) \
2073 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2074 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2075 THREAD_KIND="$(THREAD_KIND)" \
2077 $(RM) rts/libgnat$(soext) rts/libgnarl$(soext)
2078 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2079 -o libgnat-$(LIBRARY_VERSION)$(soext) \
2080 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2081 $(SO_OPTS)libgnat-$(LIBRARY_VERSION)$(soext) $(MISCLIB) -lm
2082 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2083 -o libgnarl-$(LIBRARY_VERSION)$(soext) \
2084 $(GNATRTL_TASKING_OBJS) \
2085 $(SO_OPTS)libgnarl-$(LIBRARY_VERSION)$(soext) $(THREADSLIB)
2086 cd rts; $(LN_S) libgnat-$(LIBRARY_VERSION)$(soext) libgnat$(soext)
2087 cd rts; $(LN_S) libgnarl-$(LIBRARY_VERSION)$(soext) libgnarl$(soext)
2089 gnatlib-shared-dual:
2090 $(MAKE) $(FLAGS_TO_PASS) \
2091 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2092 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2093 THREAD_KIND="$(THREAD_KIND)" \
2094 gnatlib-shared-default
2095 $(MV) rts/libgna*$(soext) .
2096 $(RM) ../stamp-gnatlib2
2097 $(MAKE) $(FLAGS_TO_PASS) \
2098 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2099 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2100 THREAD_KIND="$(THREAD_KIND)" \
2102 $(MV) libgna*$(soext) rts
2104 # Note that on Win32 the auto-import does not work for DLL, so on the
2105 # platform we have a specific setup. The libgnat.dll contains only
2106 # non-tasking objects and libgnarl.dll contains tasking and non-tasking
2107 # objects. A tasking program must be linked with libgnarl.dll only.
2108 gnatlib-shared-win32:
2109 $(MAKE) $(FLAGS_TO_PASS) \
2110 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2111 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2112 THREAD_KIND="$(THREAD_KIND)" \
2114 $(RM) rts/libgnat$(soext) rts/libgnarl$(soext)
2115 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2116 -o libgnat-$(LIBRARY_VERSION)$(soext) \
2117 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2118 $(SO_OPTS)libgnat-$(LIBRARY_VERSION)$(soext) $(MISCLIB)
2119 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2120 -o libgnarl-$(LIBRARY_VERSION)$(soext) \
2121 $(GNATRTL_TASKING_OBJS) \
2122 $(SO_OPTS)libgnarl-$(LIBRARY_VERSION)$(soext) \
2123 $(THREADSLIB) -Wl,libgnat-$(LIBRARY_VERSION)$(soext)
2124 cd rts; $(LN_S) libgnat-$(LIBRARY_VERSION)$(soext) libgnat$(soext)
2125 cd rts; $(LN_S) libgnarl-$(LIBRARY_VERSION)$(soext) libgnarl$(soext)
2128 $(MAKE) $(FLAGS_TO_PASS) \
2129 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2130 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2131 THREAD_KIND="$(THREAD_KIND)" \
2133 $(RM) rts/libgnat*$(soext) rts/libgnarl*$(soext)
2134 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
2135 objdump --syms $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) | \
2136 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
2137 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
2138 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
2139 -o libgnat_s$(soext) libgnat.a \
2140 sys\$$library:trace.exe \
2141 --for-linker=/noinform \
2142 --for-linker=SYMVEC_$$$$.opt \
2143 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2144 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
2145 objdump --syms $(GNATRTL_TASKING_OBJS) | \
2146 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
2147 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
2148 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
2149 -o libgnarl_s$(soext) \
2150 libgnarl.a libgnat_s$(soext) \
2151 sys\$$library:trace.exe \
2152 --for-linker=/noinform \
2153 --for-linker=SYMVEC_$$$$.opt \
2154 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2157 $(MAKE) $(FLAGS_TO_PASS) \
2158 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2159 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2160 THREAD_KIND="$(THREAD_KIND)" \
2161 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
2164 gnatlib-sjlj: ../stamp-gnatlib1
2165 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' rts/system.ads > rts/s.ads
2166 $(MV) rts/s.ads rts/system.ads
2167 $(MAKE) $(FLAGS_TO_PASS) \
2168 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2169 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2170 THREAD_KIND="$(THREAD_KIND)" \
2171 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2173 # .s files for cross-building
2175 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
2177 # Compiling object files from source files.
2179 # Note that dependencies on obstack.h are not written
2180 # because that file is not part of GCC.
2181 # Dependencies on gvarargs.h are not written
2182 # because all that file does, when not compiling with GCC,
2183 # is include the system varargs.h.
2185 b_gnatl.c : $(GNATLINK_OBJS)
2186 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatl.c gnatlink.ali
2187 b_gnatl.o : b_gnatl.c
2189 b_gnatm.c : $(GNATMAKE_OBJS)
2190 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatm.c gnatmake.ali
2191 b_gnatm.o : b_gnatm.c
2193 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2194 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2195 ADA_SHARE_MAKE_DIR = $(prefix)/share/make
2197 # force no sibling call optimization on s-traceb.o so the number of stack
2198 # frames to be skipped when computing a call chain is not modified by
2199 # optimization. However we can do that only when building the runtime
2200 # (not the compiler) because the -fno-optimize-sibling-calls exists
2203 ifneq (,$(findstring xgcc,$(CC)))
2204 NO_SIBLING_ADAFLAGS=-fno-optimize-sibling-calls
2206 NO_SIBLING_ADAFLAGS=
2209 s-traceb.o : s-traceb.adb
2210 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2211 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) \
2214 adadecode.o : adadecode.c adadecode.h
2218 deftarg.o : deftarg.c
2220 exit.o : raise.h exit.c
2222 final.o : raise.h final.c
2230 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2231 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2233 init.o : init.c ada.h types.h raise.h
2234 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2235 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2237 raise.o : raise.c raise.h
2238 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2239 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2241 # Need to keep the frame pointer in this file to pop the stack properly on
2243 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c
2244 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
2245 -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2247 # In GNU Make, ignore whether `stage*' exists.
2248 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2249 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2253 # Gnatlbr is only used on VMS
2255 ../../gnatlbr$(exeext): ../../prefix.o
2256 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlbr --GCC="$(CC) $(ALL_ADAFLAGS)"
2257 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlbr
2258 $(GNATLINK) -v gnatlbr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \