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.
111 PWD_COMMAND = $${PWDCMD-pwd}
112 # How to copy preserving the date
113 INSTALL_DATA_DATE = cp -p
116 GNATBIND = $(STAGE_PREFIX)gnatbind
117 GNATBIND_FLAGS = -static -x
119 ADAFLAGS = -W -Wall -gnatpg -gnata
120 SOME_ADAFLAGS =-gnata
121 FORCE_DEBUG_ADAFLAGS = -g
122 GNATLIBFLAGS = -gnatpg -nostdinc
123 GNATLIBCFLAGS = -g -O2
124 GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
126 ALL_ADA_CFLAGS = $(X_ADA_CFLAGS) $(T_ADA_CFLAGS) $(ADA_CFLAGS)
127 ALL_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \
129 MOST_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \
136 ADDR2LINE_SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
137 SYMDEPS = $(LIBINTL_DEP)
138 OUTPUT_OPTION = @OUTPUT_OPTION@
147 # Define this as & to perform parallel make on a Sequent.
148 # Note that this has some bugs, and it seems currently necessary
149 # to compile all the gen* files first by hand to avoid erroneous results.
152 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
153 # It omits XCFLAGS, and specifies -B./.
154 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
155 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)
157 # Tools to use when building a cross-compiler.
158 # These are used because `configure' appends `cross-make'
159 # to the makefile when making a cross-compiler.
161 # We don't use cross-make. Instead we use the tools from the build tree,
162 # if they are available.
163 # program_transform_name and objdir are set by configure.in.
164 program_transform_name =
168 xmake_file = @xmake_file@
169 tmake_file = @tmake_file@
170 host_canonical=@host@
171 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
172 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
174 # Directory where sources are, from where we are.
178 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
179 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
180 fcurdir := $(shell ${PWD_COMMAND})
181 fcurpfx := $(shell ${PWD_COMMAND})/
183 # Top build directory, relative to here.
186 # Internationalization library.
188 LIBINTL_DEP = @LIBINTL_DEP@
190 # Any system libraries needed just for GNAT.
191 SYSLIBS = @GNAT_LIBEXC@
193 # List of extra object files linked in with various programs.
194 EXTRA_GNATTOOLS_OBJS = ../../prefix.o ../../version.o
196 # List extra gnattools
199 # List of target dependent sources, overridden below as necessary
202 # Type of tools build we are doing; default is not compiling tools.
205 # End of variables for you to override.
209 # This tells GNU Make version 3 not to put all variables in the environment.
212 # tmake_file and xmake_file expand to lists with entries of the form
213 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
214 # need to adjust the paths. There can't be spaces in the subst arguments
215 # or we get spurious spaces in the actual list of files to include.
218 ifneq ($(tmake_file),)
219 include $(subst /config,/../config,$(tmake_file))
223 ifneq ($(xmake_file),)
224 include $(subst /config,/../config,$(xmake_file))
227 # Now figure out from those variables how to compile and link.
229 all.indirect: Makefile ../gnat1$(exeext)
231 # IN_GCC distinguishes between code compiled into GCC itself and other
232 # programs built during a bootstrap.
233 # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler.
234 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
236 # This is the variable actually used when we compile.
237 LOOSE_CFLAGS = `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
238 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_CFLAGS) \
242 ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
244 # This is where we get libiberty.a from.
245 LIBIBERTY = ../../libiberty/libiberty.a
247 # How to link with both our special library facilities
248 # and the system's installed libraries.
249 LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
250 LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
251 TOOLS_LIBS = $(LIBGNAT) $(EXTRA_GNATTOOLS_OBJS) link.o ../../../libiberty/libiberty.a $(SYSLIBS)
253 # Specify the directories to be searched for header files.
254 # Both . and srcdir are used, in that order,
255 # so that tm.h and config.h will be found in the compilation
256 # subdirectory rather than in the source directory.
257 INCLUDES = -I- -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config \
258 -I$(srcdir)/../../include
260 ADA_INCLUDES = -I- -I. -I$(srcdir)
262 INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir) -I$(fsrcdir)/../config \
263 -I$(fsrcdir)/../../include -I$(fsrcdir)/..
264 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)
266 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
269 # Say how to compile Ada programs.
270 .SUFFIXES: .ada .adb .ads .asm
272 # Always use -I$(srcdir)/config when compiling.
274 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
277 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< \
281 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
284 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
286 # how to regenerate this file
287 Makefile: ../config.status $(srcdir)/Makefile.in $(srcdir)/../version.c
289 LANGUAGES="$(CONFIG_LANGUAGES)" \
291 CONFIG_FILES=ada/Makefile $(SHELL) config.status
293 # This tells GNU make version 3 not to export all the variables
294 # defined in this file into the environment.
297 # Lists of files for various purposes.
299 GNATLINK_OBJS = gnatlink.o \
300 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o gnatvsn.o \
301 hostparm.o interfac.o i-c.o i-cstrin.o namet.o opt.o osint.o output.o rident.o \
302 s-exctab.o s-secsta.o s-stalib.o s-stoele.o sdefault.o stylesw.o switch.o system.o \
303 table.o tree_io.o types.o validsw.o widechar.o
305 GNATMAKE_OBJS = a-except.o ctrl_c.o ali.o ali-util.o s-casuti.o \
306 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
307 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
308 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
309 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o mlib-utl.o \
310 namet.o nlists.o opt.o osint.o osint-m.o output.o \
311 prj.o prj-attr.o prj-com.o prj-dect.o prj-env.o prj-err.o prj-ext.o prj-nmsc.o \
312 prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o \
313 rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
314 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 system.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-stchop.adb<5zstchop.adb \
474 s-taprop.adb<5ztaprop.adb \
475 s-tpopsp.adb<5ztpopsp.adb \
476 s-taspri.ads<5ztaspri.ads \
477 s-vxwork.ads<5avxwork.ads \
478 g-soccon.ads<3zsoccon.ads \
479 g-socthi.ads<3zsocthi.ads \
480 g-socthi.adb<3zsocthi.adb \
481 system.ads<5zsystem.ads
483 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
484 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
487 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
488 LIBGNAT_TARGET_PAIRS = \
489 a-sytaco.ads<4zsytaco.ads \
490 a-sytaco.adb<4zsytaco.adb \
491 a-intnam.ads<4zintnam.ads \
492 a-numaux.ads<4znumaux.ads \
493 s-inmaop.adb<7sinmaop.adb \
494 s-interr.adb<5zinterr.adb \
495 s-intman.ads<5zintman.ads \
496 s-intman.adb<5zintman.adb \
497 s-osinte.adb<5zosinte.adb \
498 s-osinte.ads<5zosinte.ads \
499 s-osprim.adb<5zosprim.adb \
500 s-parame.ads<5zparame.ads \
501 s-stchop.adb<5zstchop.adb \
502 s-taprop.adb<5ztaprop.adb \
503 s-taspri.ads<5ztaspri.ads \
504 s-tpopsp.adb<5ztpopsp.adb \
505 s-vxwork.ads<5kvxwork.ads \
506 g-soccon.ads<3zsoccon.ads \
507 g-socthi.ads<3zsocthi.ads \
508 g-socthi.adb<3zsocthi.adb \
509 system.ads<5ksystem.ads
511 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
513 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
514 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
516 ifeq ($(strip $(filter-out yes,$(TRACE))),)
517 LIBGNAT_TARGET_PAIRS += \
518 s-traces.adb<7straces.adb \
519 s-tratas.adb<7stratas.adb \
520 s-trafor.adb<7strafor.adb \
521 s-trafor.ads<7strafor.ads \
522 s-tfsetr.adb<5ztfsetr.adb
526 ifeq ($(strip $(filter-out powerpc% wrs vxworks,$(targ))),)
527 LIBGNAT_TARGET_PAIRS = \
528 a-sytaco.ads<4zsytaco.ads \
529 a-sytaco.adb<4zsytaco.adb \
530 a-intnam.ads<4zintnam.ads \
531 a-numaux.ads<4znumaux.ads \
532 s-inmaop.adb<7sinmaop.adb \
533 s-interr.adb<5zinterr.adb \
534 s-intman.ads<5zintman.ads \
535 s-intman.adb<5zintman.adb \
536 s-osinte.adb<5zosinte.adb \
537 s-osinte.ads<5zosinte.ads \
538 s-osprim.adb<5zosprim.adb \
539 s-parame.ads<5zparame.ads \
540 s-stchop.adb<5zstchop.adb \
541 s-taprop.adb<5ztaprop.adb \
542 s-taspri.ads<5ztaspri.ads \
543 s-tpopsp.adb<5ztpopsp.adb \
544 s-vxwork.ads<5pvxwork.ads \
545 g-soccon.ads<3zsoccon.ads \
546 g-socthi.ads<3zsocthi.ads \
547 g-socthi.adb<3zsocthi.adb \
548 system.ads<5ysystem.ads
550 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
552 EXTRA_HIE_NONE_TARGET_PAIRS= \
553 system.ads<50system.ads
555 EXTRA_RAVEN_SOURCES=i-vxwork.ads s-vxwork.ads
556 EXTRA_RAVEN_OBJS=i-vxwork.o s-vxwork.o
557 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
558 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
559 HIE_RAVEN_TARGET_PAIRS=\
560 $(HIE_NONE_TARGET_PAIRS) \
561 a-reatim.ads<1areatim.ads \
562 a-reatim.adb<1areatim.adb \
563 a-retide.adb<1aretide.adb \
564 a-interr.adb<1ainterr.adb \
565 s-interr.ads<1sinterr.ads \
566 s-interr.adb<1sinterr.adb \
567 s-taskin.ads<1staskin.ads \
568 s-taskin.adb<1staskin.adb \
569 s-taspri.ads<1staspri.ads \
570 s-tarest.adb<1starest.adb \
571 s-tposen.ads<1stposen.ads \
572 s-tposen.adb<1stposen.adb \
573 s-osinte.adb<1sosinte.adb \
574 s-taprop.ads<1staprop.ads \
575 s-taprop.adb<1staprop.adb \
576 s-taprob.ads<1staprob.ads \
577 s-taprob.adb<1staprob.adb \
578 a-sytaco.ads<1asytaco.ads \
579 a-sytaco.adb<1asytaco.adb \
580 a-intnam.ads<4zintnam.ads \
581 s-osinte.ads<5zosinte.ads \
582 s-parame.ads<5zparame.ads \
583 s-vxwork.ads<5pvxwork.ads \
584 a-taside.adb<1ataside.adb \
586 ifeq ($(strip $(filter-out yes,$(TRACE))),)
587 LIBGNAT_TARGET_PAIRS += \
588 s-traces.adb<7straces.adb \
589 s-trafor.adb<7strafor.adb \
590 s-trafor.ads<7strafor.ads \
591 s-tratas.adb<7stratas.adb \
592 s-tfsetr.adb<5ztfsetr.adb
596 ifeq ($(strip $(filter-out powerpc% unknown elf,$(targ))),)
597 EXTRA_HIE_NONE_TARGET_PAIRS= \
598 system.ads<59system.ads
600 LIBGNAT_TARGET_PAIRS = \
601 $(HIE_NONE_TARGET_PAIRS)
604 ifeq ($(strip $(filter-out sparc% unknown elf,$(targ))),)
605 EXTRA_HIE_NONE_TARGET_PAIRS= \
606 system.ads<5rsystem.ads
608 LIBGNAT_TARGET_PAIRS = \
609 $(HIE_NONE_TARGET_PAIRS)
612 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
613 LIBGNAT_TARGET_PAIRS = \
614 a-sytaco.ads<4zsytaco.ads \
615 a-sytaco.adb<4zsytaco.adb \
616 a-intnam.ads<4zintnam.ads \
617 a-numaux.ads<4znumaux.ads \
618 s-inmaop.adb<7sinmaop.adb \
619 s-interr.adb<5zinterr.adb \
620 s-intman.ads<5zintman.ads \
621 s-intman.adb<5zintman.adb \
622 s-osinte.adb<5zosinte.adb \
623 s-osinte.ads<5zosinte.ads \
624 s-osprim.adb<5zosprim.adb \
625 s-parame.ads<5zparame.ads \
626 s-stchop.adb<5zstchop.adb \
627 s-taprop.adb<5ztaprop.adb \
628 s-taspri.ads<5ztaspri.ads \
629 s-tpopsp.adb<5ztpopsp.adb \
630 s-vxwork.ads<5svxwork.ads \
631 g-soccon.ads<3zsoccon.ads \
632 g-socthi.ads<3zsocthi.ads \
633 g-socthi.adb<3zsocthi.adb \
634 system.ads<5csystem.ads \
636 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
638 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
639 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
642 ifeq ($(strip $(filter-out xscale% coff wrs vx%,$(targ))),)
643 LIBGNAT_TARGET_PAIRS = \
644 a-sytaco.ads<4zsytaco.ads \
645 a-sytaco.adb<4zsytaco.adb \
646 a-intnam.ads<4zintnam.ads \
647 a-numaux.ads<4znumaux.ads \
648 s-inmaop.adb<7sinmaop.adb \
649 s-interr.adb<5zinterr.adb \
650 s-intman.ads<5zintman.ads \
651 s-intman.adb<5zintman.adb \
652 s-osinte.adb<5zosinte.adb \
653 s-osinte.ads<5zosinte.ads \
654 s-osprim.adb<5zosprim.adb \
655 s-parame.ads<5zparame.ads \
656 s-stchop.adb<5zstchop.adb \
657 s-taprop.adb<5ztaprop.adb \
658 s-taspri.ads<5ztaspri.ads \
659 s-tpopsp.adb<5ztpopsp.adb \
660 s-vxwork.ads<5xvxwork.ads \
661 g-soccon.ads<3zsoccon.ads \
662 g-socthi.ads<3zsocthi.ads \
663 g-socthi.adb<3zsocthi.adb \
664 system.ads<5rsystem.ads
666 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
668 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
669 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
672 ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)
673 LIBGNAT_TARGET_PAIRS = \
674 a-sytaco.ads<4zsytaco.ads \
675 a-sytaco.adb<4zsytaco.adb \
676 a-intnam.ads<4zintnam.ads \
677 a-numaux.ads<4znumaux.ads \
678 s-inmaop.adb<7sinmaop.adb \
679 s-interr.adb<5zinterr.adb \
680 s-intman.ads<5zintman.ads \
681 s-intman.adb<5zintman.adb \
682 s-osinte.adb<5zosinte.adb \
683 s-osinte.ads<5zosinte.ads \
684 s-osprim.adb<5zosprim.adb \
685 s-parame.ads<5zparame.ads \
686 s-stchop.adb<5zstchop.adb \
687 s-taprop.adb<5ztaprop.adb \
688 s-taspri.ads<5ztaspri.ads \
689 s-tpopsp.adb<5ztpopsp.adb \
690 s-vxwork.ads<5mvxwork.ads \
691 g-soccon.ads<3zsoccon.ads \
692 g-socthi.ads<3zsocthi.ads \
693 g-socthi.adb<3zsocthi.adb \
694 system.ads<5msystem.ads
696 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
698 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
699 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
702 ifeq ($(strip $(filter-out sparc sun solaris%,$(targ))),)
703 LIBGNAT_TARGET_PAIRS = \
704 a-intnam.ads<4sintnam.ads \
705 s-inmaop.adb<7sinmaop.adb \
706 s-intman.adb<5sintman.adb \
707 s-osinte.adb<5sosinte.adb \
708 s-osinte.ads<5sosinte.ads \
709 s-osprim.adb<5sosprim.adb \
710 s-parame.adb<5sparame.adb \
711 s-taprop.adb<5staprop.adb \
712 s-tasinf.adb<5stasinf.adb \
713 s-tasinf.ads<5stasinf.ads \
714 s-taspri.ads<5staspri.ads \
715 s-tpopsp.adb<5stpopsp.adb \
716 g-soccon.ads<3ssoccon.ads \
717 g-soliop.ads<3ssoliop.ads \
718 system.ads<5ssystem.ads
720 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5sml-tgt.adb
722 THREADSLIB = -lposix4 -lthread
723 MISCLIB = -lposix4 -lnsl -lsocket
724 SYMLIB = $(ADDR2LINE_SYMLIB)
726 GNATLIB_SHARED = gnatlib-shared-dual
728 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
729 LIBRARY_VERSION := $(LIB_VERSION)
731 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
732 LIBGNAT_TARGET_PAIRS = \
733 a-intnam.ads<4sintnam.ads \
734 s-inmaop.adb<7sinmaop.adb \
735 s-intman.adb<5sintman.adb \
736 s-osinte.adb<7sosinte.adb \
737 s-osinte.ads<5tosinte.ads \
738 s-osprim.adb<5sosprim.adb \
739 s-taprop.adb<7staprop.adb \
740 s-taspri.ads<7staspri.ads \
741 s-tpopsp.adb<7stpopsp.adb \
742 g-soccon.ads<3ssoccon.ads \
743 g-soliop.ads<3ssoliop.ads \
744 system.ads<5ssystem.ads
746 THREADSLIB = -lgthreads -lmalloc
749 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
750 LIBGNAT_TARGET_PAIRS = \
751 a-intnam.ads<4sintnam.ads \
752 s-inmaop.adb<7sinmaop.adb \
753 s-intman.adb<7sintman.adb \
754 s-osinte.adb<5iosinte.adb \
755 s-osinte.ads<54osinte.ads \
756 s-osprim.adb<5sosprim.adb \
757 s-taprop.adb<7staprop.adb \
758 s-taspri.ads<7staspri.ads \
759 s-tpopsp.adb<5atpopsp.adb \
760 g-soccon.ads<3ssoccon.ads \
761 g-soliop.ads<3ssoliop.ads \
762 system.ads<5ssystem.ads
764 THREADSLIB = -lposix4 -lpthread
767 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
768 LIBGNAT_TARGET_PAIRS = \
769 a-intnam.ads<4sintnam.ads \
770 s-inmaop.adb<7sinmaop.adb \
771 s-intman.adb<5sintman.adb \
772 s-osinte.adb<5sosinte.adb \
773 s-osinte.ads<5sosinte.ads \
774 s-osprim.adb<5sosprim.adb \
775 s-parame.adb<5sparame.adb \
776 s-taprop.adb<5staprop.adb \
777 s-tasinf.adb<5stasinf.adb \
778 s-tasinf.ads<5stasinf.ads \
779 s-taspri.ads<5staspri.ads \
780 s-tpopsp.adb<5stpopsp.adb \
781 g-soccon.ads<3ssoccon.ads \
782 g-soliop.ads<3ssoliop.ads \
783 system.ads<5usystem.ads
787 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
788 LIBGNAT_TARGET_PAIRS = \
789 a-numaux.adb<86numaux.adb \
790 a-numaux.ads<86numaux.ads \
791 a-intnam.ads<4sintnam.ads \
792 s-inmaop.adb<7sinmaop.adb \
793 s-intman.adb<5sintman.adb \
794 s-mastop.adb<5omastop.adb \
795 s-osinte.adb<5sosinte.adb \
796 s-osinte.ads<5sosinte.ads \
797 s-osprim.adb<5sosprim.adb \
798 s-parame.adb<5sparame.adb \
799 s-taprop.adb<5staprop.adb \
800 s-tasinf.adb<5stasinf.adb \
801 s-tasinf.ads<5stasinf.ads \
802 s-taspri.ads<5staspri.ads \
803 s-tpopsp.adb<5stpopsp.adb \
804 g-soccon.ads<3ssoccon.ads \
805 g-soliop.ads<3ssoliop.ads \
806 system.ads<5esystem.ads
808 THREADSLIB = -lposix4 -lthread
809 MISCLIB = -lposix4 -lnsl -lsocket
811 GNATLIB_SHARED = gnatlib-shared-dual
812 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
813 LIBRARY_VERSION := $(LIB_VERSION)
816 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
817 LIBGNAT_TARGET_PAIRS = \
818 a-intnam.ads<4lintnam.ads \
819 a-numaux.adb<86numaux.adb \
820 a-numaux.ads<86numaux.ads \
821 s-inmaop.adb<7sinmaop.adb \
822 s-intman.adb<7sintman.adb \
823 s-mastop.adb<5omastop.adb \
824 s-osinte.adb<5iosinte.adb \
825 s-osinte.ads<5iosinte.ads \
826 s-osprim.adb<7sosprim.adb \
827 s-taprop.adb<5itaprop.adb \
828 s-taspri.ads<5itaspri.ads \
829 s-tpopsp.adb<5atpopsp.adb \
830 s-parame.adb<5lparame.adb \
831 system.ads<5lsystem.ads
833 TOOLS_TARGET_PAIRS = \
834 mlib-tgt.adb<5lml-tgt.adb
836 SYMLIB = $(ADDR2LINE_SYMLIB)
837 THREADSLIB = -lpthread
838 GNATLIB_SHARED = gnatlib-shared-dual
840 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
841 LIBRARY_VERSION := $(LIB_VERSION)
843 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
844 LIBGNAT_TARGET_PAIRS = \
845 a-intnam.ads<4lintnam.ads \
846 a-numaux.adb<86numaux.adb \
847 a-numaux.ads<86numaux.ads \
848 s-inmaop.adb<7sinmaop.adb \
849 s-intman.adb<7sintman.adb \
850 s-mastop.adb<5omastop.adb \
851 s-osinte.adb<7sosinte.adb \
852 s-osinte.ads<5losinte.ads \
853 s-osprim.adb<7sosprim.adb \
854 s-taprop.adb<7staprop.adb \
855 s-taspri.ads<7staspri.ads \
856 s-tpopsp.adb<7stpopsp.adb \
857 system.ads<5lsystem.ads
859 THREADSLIB = -lgthreads -lmalloc
863 ifeq ($(strip $(filter-out %86 freebsd%,$(arch) $(osys))),)
864 LIBGNAT_TARGET_PAIRS = \
865 a-intnam.ads<45intnam.ads \
866 a-numaux.adb<86numaux.adb \
867 a-numaux.ads<86numaux.ads \
868 g-soccon.ads<35soccon.ads \
869 s-inmaop.adb<7sinmaop.adb \
870 s-intman.adb<7sintman.adb \
871 s-mastop.adb<5omastop.adb \
872 s-osinte.adb<55osinte.adb \
873 s-osinte.ads<55osinte.ads \
874 s-osprim.adb<7sosprim.adb \
875 s-taprop.adb<7staprop.adb \
876 s-taspri.ads<7staspri.ads \
877 s-tpopsp.adb<7stpopsp.adb \
878 system.ads<56system.ads
880 TOOLS_TARGET_PAIRS = \
881 mlib-tgt.adb<5lml-tgt.adb
882 GNATLIB_SHARED = gnatlib-shared-dual
884 SYMLIB = $(ADDR2LINE_SYMLIB)
887 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
888 LIBRARY_VERSION := $(LIB_VERSION)
891 ifeq ($(strip $(filter-out mips sgi irix%,$(targ))),)
892 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
893 LIBGNAT_TARGET_PAIRS = \
894 a-intnam.ads<4gintnam.ads \
895 s-inmaop.adb<7sinmaop.adb \
896 s-intman.adb<5fintman.adb \
897 s-mastop.adb<5gmastop.adb \
898 s-osinte.adb<5fosinte.adb \
899 s-osinte.ads<5fosinte.ads \
900 s-osprim.adb<7sosprim.adb \
901 s-proinf.adb<5gproinf.adb \
902 s-proinf.ads<5gproinf.ads \
903 s-taprop.adb<5ftaprop.adb \
904 s-tasinf.ads<5ftasinf.ads \
905 s-taspri.ads<7staspri.ads \
906 s-tpopsp.adb<7stpopsp.adb \
907 s-traceb.adb<7straceb.adb \
908 g-soccon.ads<3gsoccon.ads \
909 system.ads<5gsystem.ads
911 THREADSLIB = -lpthread
912 GNATLIB_SHARED = gnatlib-shared-default
915 LIBGNAT_TARGET_PAIRS = \
916 a-intnam.ads<4gintnam.ads \
917 s-inmaop.adb<5ninmaop.adb \
918 s-interr.adb<5ginterr.adb \
919 s-intman.adb<5gintman.adb \
920 s-mastop.adb<5gmastop.adb \
921 s-osinte.adb<5fosinte.adb \
922 s-osinte.ads<5gosinte.ads \
923 s-osprim.adb<7sosprim.adb \
924 s-proinf.adb<5gproinf.adb \
925 s-proinf.ads<5gproinf.ads \
926 s-taprop.adb<5gtaprop.adb \
927 s-tasinf.adb<5gtasinf.adb \
928 s-tasinf.ads<5gtasinf.ads \
929 s-taspri.ads<7staspri.ads \
930 s-traceb.adb<7straceb.adb \
931 g-soccon.ads<3gsoccon.ads \
932 system.ads<5fsystem.ads
935 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5gml-tgt.adb
938 SO_OPTS = -Wl,-all,-set_version,sgi1.0,-update_registry,../so_locations,-soname,
939 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
940 LIBRARY_VERSION := $(LIB_VERSION)
943 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
944 LIBGNAT_TARGET_PAIRS = \
945 a-excpol.adb<4wexcpol.adb \
946 a-intnam.ads<4hintnam.ads \
947 s-inmaop.adb<7sinmaop.adb \
948 s-interr.adb<5ginterr.adb \
949 s-intman.adb<7sintman.adb \
950 s-osinte.adb<5hosinte.adb \
951 s-osinte.ads<5hosinte.ads \
952 s-parame.ads<5hparame.ads \
953 s-osprim.adb<7sosprim.adb \
954 s-taprop.adb<5htaprop.adb \
955 s-taspri.ads<5htaspri.ads \
956 s-tpopsp.adb<7stpopsp.adb \
957 g-soccon.ads<3hsoccon.ads \
958 system.ads<5hsystem.ads
960 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
963 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
964 LIBGNAT_TARGET_PAIRS = \
965 a-intnam.ads<4hintnam.ads \
966 s-inmaop.adb<7sinmaop.adb \
967 s-intman.adb<7sintman.adb \
968 s-osinte.adb<5iosinte.adb \
969 s-osinte.ads<53osinte.ads \
970 s-parame.ads<5hparame.ads \
971 s-osprim.adb<7sosprim.adb \
972 s-traceb.adb<5htraceb.adb \
973 s-taprop.adb<7staprop.adb \
974 s-taspri.ads<7staspri.ads \
975 s-tpopsp.adb<5atpopsp.adb \
976 g-soccon.ads<3hsoccon.ads \
977 system.ads<5hsystem.ads
979 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5hml-tgt.adb
980 TGT_LIB = /usr/lib/libcl.a
981 THREADSLIB = -lpthread
982 SYMLIB = $(ADDR2LINE_SYMLIB)
986 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
987 GNATLIB_SHARED = gnatlib-shared-dual
988 LIBRARY_VERSION := $(LIB_VERSION)
990 ifeq ($(strip $(filter-out dce DCE,$(THREAD_KIND))),)
991 LIBGNAT_TARGET_PAIRS = \
992 a-excpol.adb<4wexcpol.adb \
993 a-intnam.ads<4hintnam.ads \
994 s-inmaop.adb<7sinmaop.adb \
995 s-interr.adb<5ginterr.adb \
996 s-intman.adb<7sintman.adb \
997 s-osinte.adb<5hosinte.adb \
998 s-osinte.ads<5hosinte.ads \
999 s-parame.ads<5hparame.ads \
1000 s-osprim.adb<7sosprim.adb \
1001 s-taprop.adb<5htaprop.adb \
1002 s-taspri.ads<5htaspri.ads \
1003 s-tpopsp.adb<7stpopsp.adb \
1004 g-soccon.ads<3hsoccon.ads \
1005 system.ads<5hsystem.ads
1012 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
1013 LIBGNAT_TARGET_PAIRS = \
1014 a-intnam.ads<4cintnam.ads \
1015 s-inmaop.adb<7sinmaop.adb \
1016 s-intman.adb<7sintman.adb \
1017 s-osinte.adb<5bosinte.adb \
1018 s-osinte.ads<5bosinte.ads \
1019 s-osprim.adb<7sosprim.adb \
1020 s-taprop.adb<7staprop.adb \
1021 s-taspri.ads<7staspri.ads \
1022 s-tpopsp.adb<7stpopsp.adb \
1023 g-soccon.ads<3bsoccon.ads \
1024 system.ads<5bsystem.ads
1026 THREADSLIB = -lpthreads
1027 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1029 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
1030 LIBGNAT_TARGET_PAIRS = \
1031 a-intnam.ads<4cintnam.ads \
1032 s-inmaop.adb<7sinmaop.adb \
1033 s-intman.adb<7sintman.adb \
1034 s-osinte.adb<7sosinte.adb \
1035 s-osinte.ads<5cosinte.ads \
1036 s-osprim.adb<7sosprim.adb \
1037 s-taprop.adb<7staprop.adb \
1038 s-taspri.ads<7staspri.ads \
1039 s-tpopsp.adb<7stpopsp.adb \
1040 g-soccon.ads<3bsoccon.ads \
1041 system.ads<5bsystem.ads
1043 THREADSLIB = -lgthreads -lmalloc
1046 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5bml-tgt.adb
1048 SYMLIB = $(ADDR2LINE_SYMLIB)
1052 ifeq ($(strip $(filter-out lynxos,$(osys))),)
1053 ifeq ($(strip $(filter-out %86 lynxos,$(arch) $(osys))),)
1054 LIBGNAT_TARGET_PAIRS = \
1055 a-numaux.adb<86numaux.adb \
1056 a-numaux.ads<86numaux.ads \
1057 a-intnam.ads<42intnam.ads \
1058 s-mastop.adb<5omastop.adb \
1059 s-inmaop.adb<7sinmaop.adb \
1060 s-intman.adb<7sintman.adb \
1061 s-osinte.adb<56osinte.adb \
1062 s-osinte.ads<56osinte.ads \
1063 s-osprim.adb<7sosprim.adb \
1064 s-taprop.adb<56taprop.adb \
1065 s-taspri.ads<56taspri.ads \
1066 s-tpopsp.adb<56tpopsp.adb \
1067 system.ads<58system.ads
1069 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1072 LIBGNAT_TARGET_PAIRS = \
1073 a-intnam.ads<42intnam.ads \
1074 s-inmaop.adb<7sinmaop.adb \
1075 s-intman.adb<7sintman.adb \
1076 s-osinte.adb<52osinte.adb \
1077 s-osinte.ads<52osinte.ads \
1078 s-osprim.adb<7sosprim.adb \
1079 s-taprop.adb<7staprop.adb \
1080 s-taspri.ads<7staspri.ads \
1081 s-tpopsp.adb<7stpopsp.adb \
1082 system.ads<57system.ads
1084 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
1085 LIBGNAT_TARGET_PAIRS = \
1086 a-intnam.ads<42intnam.ads \
1087 s-inmaop.adb<7sinmaop.adb \
1088 s-intman.adb<7sintman.adb \
1089 s-osinte.adb<56osinte.adb \
1090 s-osinte.ads<56osinte.ads \
1091 s-osprim.adb<7sosprim.adb \
1092 s-taprop.adb<56taprop.adb \
1093 s-taspri.ads<56taspri.ads \
1094 s-tpopsp.adb<56tpopsp.adb \
1095 system.ads<57system.ads
1101 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1102 LIBGNAT_TARGET_PAIRS = \
1103 a-intnam.ads<4rintnam.ads \
1104 s-inmaop.adb<7sinmaop.adb \
1105 s-intman.adb<7sintman.adb \
1106 s-osinte.adb<5rosinte.adb \
1107 s-osinte.ads<5rosinte.ads \
1108 s-osprim.adb<7sosprim.adb \
1109 s-parame.adb<5rparame.adb \
1110 s-taprop.adb<7staprop.adb \
1111 s-taspri.ads<7staspri.ads \
1112 s-tpopsp.adb<5rtpopsp.adb
1115 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1116 LIBGNAT_TARGET_PAIRS = \
1117 a-intnam.ads<4aintnam.ads \
1118 s-inmaop.adb<7sinmaop.adb \
1119 s-intman.adb<7sintman.adb \
1120 s-mastop.adb<5amastop.adb \
1121 s-osinte.adb<5aosinte.adb \
1122 s-osinte.ads<5aosinte.ads \
1123 s-osprim.adb<5posprim.adb \
1124 s-taprop.adb<5ataprop.adb \
1125 s-tasinf.ads<5atasinf.ads \
1126 s-taspri.ads<5ataspri.ads \
1127 s-tpopsp.adb<5atpopsp.adb \
1128 s-traceb.adb<7straceb.adb \
1129 g-soccon.ads<3asoccon.ads \
1130 system.ads<5asystem.ads
1132 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5aml-tgt.adb
1135 SYMLIB = $(ADDR2LINE_SYMLIB)
1136 THREADSLIB = -lpthread -lmach -lexc -lrt
1137 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1138 GNATLIB_SHARED = gnatlib-shared-default
1139 LIBRARY_VERSION := $(LIB_VERSION)
1142 ifeq ($(strip $(filter-out alpha% ia64 dec hp vms% openvms% alphavms%,$(host))),)
1150 @ gnu:[bin]vmssymvec $<
1153 ifeq ($(strip $(filter-out alpha% ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1154 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1155 LIBGNAT_TARGET_PAIRS_AUX1 = \
1156 s-crtl.ads<5xcrtl.ads \
1157 s-osinte.adb<5xosinte.adb \
1158 s-osinte.ads<5xosinte.ads \
1159 system.ads<5qsystem.ads
1161 ifeq ($(strip $(filter-out alpha% dec vms% openvms% alphavms%,$(targ))),)
1162 LIBGNAT_TARGET_PAIRS_AUX1 = \
1163 s-crtl.ads<5vcrtl.ads \
1164 s-osinte.adb<5vosinte.adb \
1165 s-osinte.ads<5vosinte.ads \
1166 system.ads<5xsystem.ads
1169 ifeq ($(strip $(filter-out express EXPRESS,$(THREAD_KIND))),)
1170 LIBGNAT_TARGET_PAIRS_AUX2 = \
1171 s-parame.ads<5xparame.ads
1173 LIBGNAT_TARGET_PAIRS_AUX2 = \
1174 s-parame.ads<5vparame.ads
1177 LIBGNAT_TARGET_PAIRS = \
1178 a-caldel.adb<4vcaldel.adb \
1179 a-calend.adb<4vcalend.adb \
1180 a-calend.ads<4vcalend.ads \
1181 a-dirval.adb<5vdirval.adb \
1182 a-excpol.adb<4wexcpol.adb \
1183 a-intnam.ads<4vintnam.ads \
1184 a-numaux.ads<4vnumaux.ads \
1185 g-expect.adb<3vexpect.adb \
1186 g-soccon.ads<3vsoccon.ads \
1187 g-socthi.ads<3vsocthi.ads \
1188 g-socthi.adb<3vsocthi.adb \
1189 g-trasym.adb<3vtrasym.adb \
1190 i-cstrea.adb<6vcstrea.adb \
1191 i-cpp.adb<6vcpp.adb \
1192 interfac.ads<6vinterf.ads \
1193 s-asthan.adb<5vasthan.adb \
1194 s-inmaop.adb<5vinmaop.adb \
1195 s-interr.adb<5vinterr.adb \
1196 s-intman.adb<5vintman.adb \
1197 s-intman.ads<5vintman.ads \
1198 s-osprim.adb<5vosprim.adb \
1199 s-osprim.ads<5vosprim.ads \
1200 s-taprop.adb<5vtaprop.adb \
1201 s-taspri.ads<5vtaspri.ads \
1202 s-tpopsp.adb<7stpopsp.adb \
1203 s-tpopde.adb<5vtpopde.adb \
1204 s-tpopde.ads<5vtpopde.ads \
1205 s-traent.adb<5vtraent.adb \
1206 s-traent.ads<5vtraent.ads \
1207 s-vaflop.adb<5vvaflop.adb \
1208 $(LIBGNAT_TARGET_PAIRS_AUX1) \
1209 $(LIBGNAT_TARGET_PAIRS_AUX2)
1211 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5vml-tgt.adb
1213 GNATLIB_SHARED=gnatlib-shared-vms
1214 ifeq ($(strip $(filter-out alpha% dec vms% openvms% alphavms%,$(targ))),)
1215 EXTRA_LIBGNAT_SRCS=vmshandler.asm
1216 EXTRA_LIBGNAT_OBJS=vmshandler.o
1218 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1220 ../../gnatlbr$(exeext) \
1221 ,,/../gnatsym$(exeext)
1222 # This command transforms (YYYYMMDD) into YY,MMDD
1223 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\)/\2,\3/')
1224 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1225 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1228 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1229 LIBGNAT_TARGET_PAIRS = \
1230 a-calend.adb<4wcalend.adb \
1231 a-dirval.adb<5wdirval.adb \
1232 a-excpol.adb<4wexcpol.adb \
1233 a-intnam.ads<4wintnam.ads \
1234 a-numaux.adb<86numaux.adb \
1235 a-numaux.ads<86numaux.ads \
1236 s-gloloc.adb<5wgloloc.adb \
1237 s-inmaop.adb<5ninmaop.adb \
1238 s-interr.adb<5ginterr.adb \
1239 s-intman.adb<5wintman.adb \
1240 s-mastop.adb<5omastop.adb \
1241 s-memory.adb<5wmemory.adb \
1242 s-osinte.ads<5wosinte.ads \
1243 s-osprim.adb<5wosprim.adb \
1244 s-taprop.adb<5wtaprop.adb \
1245 s-taspri.ads<5wtaspri.ads \
1246 g-socthi.ads<3wsocthi.ads \
1247 g-socthi.adb<3wsocthi.adb \
1248 g-soccon.ads<3wsoccon.ads \
1249 g-soliop.ads<3wsoliop.ads \
1250 system.ads<5wsystem.ads
1252 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5wml-tgt.adb
1254 SYMLIB = $(ADDR2LINE_SYMLIB)
1256 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1257 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1258 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1259 EXTRA_GNATRTL_NONTASKING_OBJS = g-regist.o
1261 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT auto-import
1262 # support for array/record will be done.
1263 GNATLIB_SHARED = gnatlib-shared-win32
1264 LIBRARY_VERSION := $(LIB_VERSION)
1267 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1268 LIBGNAT_TARGET_PAIRS = \
1269 a-intnam.ads<4lintnam.ads \
1270 s-inmaop.adb<7sinmaop.adb \
1271 s-intman.adb<7sintman.adb \
1272 s-osinte.ads<5iosinte.ads \
1273 s-osinte.adb<5iosinte.adb \
1274 s-osprim.adb<7sosprim.adb \
1275 s-taprop.adb<5itaprop.adb \
1276 s-tpopsp.adb<5atpopsp.adb \
1277 s-taspri.ads<5itaspri.ads \
1278 system.ads<55system.ads
1280 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5lml-tgt.adb
1282 THREADSLIB=-lpthread
1283 GNATLIB_SHARED=gnatlib-shared-dual
1284 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1285 LIBRARY_VERSION := $(LIB_VERSION)
1288 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
1289 LIBGNAT_TARGET_PAIRS = \
1290 a-intnam.ads<4lintnam.ads \
1291 a-numaux.adb<86numaux.adb \
1292 a-numaux.ads<86numaux.ads \
1293 s-inmaop.adb<7sinmaop.adb \
1294 s-intman.adb<7sintman.adb \
1295 s-osinte.ads<5iosinte.ads \
1296 s-osinte.adb<5iosinte.adb \
1297 s-osprim.adb<7sosprim.adb \
1298 s-taprop.adb<5itaprop.adb \
1299 s-tpopsp.adb<5atpopsp.adb \
1300 s-taspri.ads<5itaspri.ads \
1301 system.ads<5nsystem.ads
1303 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5lml-tgt.adb
1304 SYMLIB = $(ADDR2LINE_SYMLIB)
1305 THREADSLIB=-lpthread
1306 GNATLIB_SHARED=gnatlib-shared-dual
1308 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1309 LIBRARY_VERSION := $(LIB_VERSION)
1312 ifeq ($(strip $(filter-out powerpc darwin%,$(arch) $(osys))),)
1313 LIBGNAT_TARGET_PAIRS = \
1314 a-intnam.ads<a-intnam-darwin.ads \
1315 s-inmaop.adb<7sinmaop.adb \
1316 s-intman.adb<7sintman.adb \
1317 s-osinte.adb<s-osinte-darwin.adb \
1318 s-osinte.ads<s-osinte-darwin.ads \
1319 s-osprim.adb<7sosprim.adb \
1320 s-taprop.adb<7staprop.adb \
1321 s-taspri.ads<7staspri.ads \
1322 s-tpopsp.adb<5atpopsp.adb \
1323 g-soccon.ads<3bsoccon.ads \
1324 system.ads<system-darwin-ppc.ads
1327 # The runtime library for gnat comprises two directories. One contains the
1328 # Ada source files that the compiler (gnat1) needs -- these files are listed
1329 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1330 # corresponding .ali files for the parts written in Ada, libgnat.a for
1331 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1332 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1333 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1334 # go into the directory. The pthreads emulation is built in the threads
1335 # subdirectory and copied.
1336 LIBGNAT_SRCS = ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1337 errno.c exit.c cal.c ctrl_c.c \
1338 raise.h raise.c sysdep.c aux-io.c init.c \
1339 final.c tracebak.c tb-alvms.c tb-alvxw.c expect.c mkdir.c socket.c \
1340 $(EXTRA_LIBGNAT_SRCS)
1342 LIBGNAT_OBJS = adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o \
1343 raise.o sysdep.o aux-io.o init.o cal.o final.o \
1344 tracebak.o expect.o mkdir.o socket.o $(EXTRA_LIBGNAT_OBJS)
1346 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1347 # the library installation will change and there will be a
1348 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1349 # from ADA_INCLUDE_SRCS.
1351 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1352 # the following include file:
1354 include $(fsrcdir)/Makefile.rtl
1356 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
1357 g-trasym.o memtrack.o
1359 # Files which are suitable in no run time/hi integrity mode
1361 COMPILABLE_HIE_SOURCES= \
1381 a-except.adb $(EXTRA_HIE_SOURCES)
1383 NON_COMPILABLE_HIE_SOURCES= \
1394 HIE_SOURCES = $(NON_COMPILABLE_HIE_SOURCES) $(COMPILABLE_HIE_SOURCES)
1396 # Object to generate for the HI run time
1414 a-tags.o $(EXTRA_HIE_OBJS)
1416 # Files which are needed in ravenscar mode
1418 COMPILABLE_RAVEN_SOURCES = \
1419 $(COMPILABLE_HIE_SOURCES) \
1451 a-taside.adb $(EXTRA_RAVEN_SOURCES)
1453 NON_COMPILABLE_RAVEN_SOURCES= $(NON_COMPILABLE_HIE_SOURCES)
1455 RAVEN_SOURCES = $(NON_COMPILABLE_RAVEN_SOURCES) $(COMPILABLE_RAVEN_SOURCES)
1457 # Objects to generate for the ravenscar run time
1459 RAVEN_LIBGNARL_OBJS = \
1478 a-taside.o $(EXTRA_RAVEN_OBJS)
1482 $(RAVEN_LIBGNARL_OBJS)
1484 # Default run time files
1487 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1488 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1489 sequenio.ads system.ads Makefile.prolog Makefile.generic \
1491 a-*.adb a-*.ads g-*.ad? i-*.ad? \
1492 s-[a-o]*.adb s-[p-z]*.adb \
1493 s-[a-o]*.ads s-[p-z]*.ads
1495 LIBGNAT=../rts/libgnat.a
1496 TOOLS_FLAGS_TO_PASS= \
1498 "CFLAGS=$(CFLAGS)" \
1499 "LDFLAGS=$(LDFLAGS)" \
1500 "ADAFLAGS=$(ADAFLAGS)" \
1501 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
1502 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
1503 "libsubdir=$(libsubdir)" \
1504 "exeext=$(exeext)" \
1505 "fsrcdir=$(fsrcdir)" \
1506 "srcdir=$(fsrcdir)" \
1507 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
1508 "GNATMAKE=$(GNATMAKE)" \
1509 "GNATLINK=$(GNATLINK)" \
1510 "GNATBIND=$(GNATBIND)"
1512 # Build directory for the tools. Let's copy the target-dependent
1513 # sources using the same mechanism as for gnatlib. The other sources are
1514 # accessed using the vpath directive below
1520 -(cd tools; $(LN_S) ../sdefault.adb .)
1521 -$(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
1522 $(RM) tools/$(word 1,$(subst <, ,$(PAIR)));\
1523 $(LN_S) $(fsrcdir)/$(word 2,$(subst <, ,$(PAIR))) \
1524 tools/$(word 1,$(subst <, ,$(PAIR)));)
1525 touch ../stamp-tools
1527 # when compiling the tools, the runtime has to be first on the path so that
1528 # it hides the runtime files lying with the rest of the sources
1529 ifeq ($(TOOLSCASE),native)
1530 vpath %.ads ../rts ../
1531 vpath %.adb ../rts ../
1532 vpath %.c ../rts ../
1533 vpath %.h ../rts ../
1536 # in the cross tools case, everything is compiled with the native
1537 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1538 ifeq ($(TOOLSCASE),cross)
1545 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
1546 # reasons: gnatmake should be built with a recent compiler, a recent compiler
1547 # may not generate ALI files compatible with an old gnatmake so it is important
1548 # to be able to build gnatmake without a version of gnatmake around. Once
1549 # everything has been compiled once, gnatmake can be recompiled with itself
1550 # (see target gnattools1-re)
1551 gnattools1: ../stamp-tools ../stamp-gnatlib
1552 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1554 ../../gnatmake$(exeext) ../../gnatlink$(exeext) ../../gnatbl$(exeext)
1556 # gnatmake/link can be built with recent gnatmake/link if they are available.
1557 # This is especially convenient for building cross tools or for rebuilding
1558 # the tools when the original bootstrap has already be done.
1559 gnattools1-re: ../stamp-tools
1560 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1561 TOOLSCASE=cross INCLUDES="" gnatmake-re gnatlink-re
1563 # these tools are built with gnatmake & are common to native and cross
1564 gnattools2: ../stamp-tools
1565 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1567 ../../gnatchop$(exeext) ../../gnat$(exeext) ../../gnatkr$(exeext) \
1568 ../../gnatls$(exeext) ../../gnatprep$(exeext) \
1569 ../../gnatxref$(exeext) \
1570 ../../gnatfind$(exeext) ../../gnatname$(exeext) \
1571 ../../gnatclean$(exeext) \
1572 ../../gprcmd$(exeext) ../../gpr2make$(exeext)
1574 # These tools are only built for the native version.
1575 gnattools3: ../stamp-tools
1576 # $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1577 # TOOLSCASE=native top_builddir=../../.. \
1578 # ../../gnatmem$(exeext) $(EXTRA_GNATTOOLS)
1580 # those tools are only built for the cross version
1581 gnattools4: ../stamp-tools
1582 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1583 TOOLSCASE=cross top_buildir=../../.. \
1584 ../../vxaddr2line$(exeext)
1586 ../../gnatchop$(exeext): ../stamp-tools
1587 $(GNATMAKE) -c $(ADA_INCLUDES) gnatchop --GCC="$(CC) $(ALL_ADAFLAGS)"
1588 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatchop
1589 $(GNATLINK) -v gnatchop -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1592 ../../gnat$(exeext): ../stamp-tools
1593 $(GNATMAKE) -c $(ADA_INCLUDES) gnatcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1594 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatcmd
1595 $(GNATLINK) -v gnatcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1597 ../../gnatkr$(exeext): ../stamp-tools
1598 $(GNATMAKE) -c $(ADA_INCLUDES) gnatkr --GCC="$(CC) $(ALL_ADAFLAGS)"
1599 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatkr
1600 $(GNATLINK) -v gnatkr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1602 ../../gnatls$(exeext): ../stamp-tools
1603 $(GNATMAKE) -c $(ADA_INCLUDES) gnatls --GCC="$(CC) $(ALL_ADAFLAGS)"
1604 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatls
1605 $(GNATLINK) -v gnatls -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1607 ../../gnatname$(exeext): ../stamp-tools
1608 $(GNATMAKE) -c $(ADA_INCLUDES) gnatname --GCC="$(CC) $(ALL_ADAFLAGS)"
1609 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatname
1610 $(GNATLINK) -v gnatname -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1613 ../../gpr2make$(exeext): ../stamp-tools
1614 $(GNATMAKE) -c $(ADA_INCLUDES) gpr2make --GCC="$(CC) $(ALL_ADAFLAGS)"
1615 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gpr2make
1616 $(GNATLINK) -v gpr2make -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1619 ../../gnatprep$(exeext): ../stamp-tools
1620 $(GNATMAKE) -c $(ADA_INCLUDES) gnatprep --GCC="$(CC) $(ALL_ADAFLAGS)"
1621 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatprep
1622 $(GNATLINK) -v gnatprep -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1625 ../../gnatxref$(exeext): ../stamp-tools
1626 $(GNATMAKE) -c $(ADA_INCLUDES) gnatxref --GCC="$(CC) $(ALL_ADAFLAGS)"
1627 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatxref
1628 $(GNATLINK) -v gnatxref -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1631 ../../gnatfind$(exeext): ../stamp-tools
1632 $(GNATMAKE) -c $(ADA_INCLUDES) gnatfind --GCC="$(CC) $(ALL_ADAFLAGS)"
1633 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatfind
1634 $(GNATLINK) -v gnatfind -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1637 ../../gnatclean$(exeext): ../stamp-tools
1638 $(GNATMAKE) -c $(ADA_INCLUDES) gnatclean --GCC="$(CC) $(ALL_ADAFLAGS)"
1639 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatclean
1640 $(GNATLINK) -v gnatclean -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1643 ../../gnatsym$(exeext): ../stamp-tools
1644 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
1645 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
1646 $(GNATLINK) -v gnatsym -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1649 ../../gnatmem$(exeext): ../stamp-tools gmem.o $(SYMDEPS)
1650 ifeq ($(GMEM_LIB),gmemlib)
1651 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmem --GCC="$(CC) $(ALL_ADAFLAGS)"
1652 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmem
1653 $(GNATLINK) -v gnatmem -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1654 gmem.o $(SYMLIB) $(TOOLS_LIBS)
1657 ../../gnatdll$(exeext): ../stamp-tools
1658 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
1659 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) $(GNATBIND_FLAGS) gnatdll
1660 $(GNATLINK) -v gnatdll -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1663 ../../gprcmd$(exeext): ../stamp-tools
1664 $(GNATMAKE) -c $(ADA_INCLUDES) gprcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1665 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gprcmd
1666 $(GNATLINK) -v gprcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1668 ../../vxaddr2line$(exeext): ../stamp-tools
1669 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
1670 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
1671 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(CLIB)
1673 gnatmake-re: ../stamp-tools link.o
1674 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
1675 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1676 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
1677 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
1678 --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1680 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1681 # with the former version of gnatlink itself which cannot override itself.
1682 gnatlink-re: ../stamp-tools link.o
1683 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
1684 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
1685 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
1686 --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1687 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
1689 # Needs to be built with CC=gcc
1690 # Since the RTL should be built with the latest compiler, remove the
1691 # stamp target in the parent directory whenever gnat1 is rebuilt
1693 # Likewise for the tools
1694 ../../gnatmake$(exeext): $(P) b_gnatm.o link.o $(GNATMAKE_OBJS)
1695 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
1698 ../../gnatlink$(exeext): $(P) b_gnatl.o link.o $(GNATLINK_OBJS)
1699 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
1702 ../../gnatbl$(exeext): gnatbl.o
1703 $(CC) -o $@ $(ALL_CFLAGS) $(LDFLAGS) gnatbl.o $(TOOLS_LIBS)
1705 gnatbl.o: gnatbl.c adaint.h
1706 $(CC) $(ALL_CFLAGS) $(INCLUDES) -c $< $(OUTPUT_OPTION)
1709 @if [ ! -f stamp-gnatlib ] ; \
1711 $(ECHO) You must first build the GNAT library: make gnatlib; \
1717 install-gnatlib: ../stamp-gnatlib
1718 # Create the directory before deleting it, in case the directory is
1719 # a list of directories (as it may be on VMS). This ensures we are
1720 # deleting the right one.
1721 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1722 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1723 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1724 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1725 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1726 $(RMDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1727 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1728 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1729 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1730 -$(INSTALL_DATA) rts/Makefile.prolog $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1731 -$(INSTALL_DATA) rts/Makefile.generic $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1732 for file in rts/*.ali; do \
1733 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1735 -$(INSTALL_DATA) rts/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1736 -cd rts; for file in *$(arext);do \
1737 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1738 $(RANLIB) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
1740 # Install the shared libraries, if any, using $(INSTALL) instead
1741 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1742 # for shared libraries on some targets, e.g. on HP-UX where the x
1743 # permission is required.
1744 for file in gnat gnarl; do \
1745 if [ -f rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
1746 $(INSTALL) rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1747 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1749 if [ -f rts/lib$${file}$(soext) ]; then \
1750 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1751 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
1754 # This copy must be done preserving the date on the original file.
1755 for file in rts/*.adb rts/*.ads; do \
1756 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
1758 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
1759 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
1763 $(RM) rts/s-*$(objext)
1765 $(RM) rts/a-*$(objext)
1767 $(RM) rts/*$(objext)
1770 touch ../stamp-gnatlib2
1771 $(RM) ../stamp-gnatlib
1773 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1774 # successive target commands. Although the Gnu make documentation
1775 # implies this is true on all systems, I suspect it may not be, So care
1776 # has been taken to allow a sed script to look for ";)" and substitue
1777 # for ";" the appropriate character in the range of lines below
1778 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1780 # GNULLI Begin ###########################################################
1782 ../stamp-gnatlib1: Makefile ../stamp-gnatlib2
1786 # Copy target independent sources
1787 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
1788 $(LN_S) $(fsrcpfx)$(f) rts ;) true
1789 # Remove files to be replaced by target dependent sources
1790 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1791 rts/$(word 1,$(subst <, ,$(PAIR))))
1792 # Copy new target dependent sources
1793 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1794 $(LN_S) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1795 rts/$(word 1,$(subst <, ,$(PAIR)));)
1796 $(RM) ../stamp-gnatlib
1797 touch ../stamp-gnatlib1
1799 # GNULLI End #############################################################
1801 # Don't use semicolon separated shell commands that involve list expansions.
1802 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1803 # line lengths in excess of 256 characters.
1804 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1805 # is guaranteed to overflow the buffer.
1807 gnatlib: ../stamp-gnatlib1 ../stamp-gnatlib2
1808 $(MAKE) -C rts CC="../../xgcc -B../../" \
1809 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1810 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
1812 -f ../Makefile $(LIBGNAT_OBJS)
1813 $(MAKE) -C rts CC="../../xgcc -B../../" \
1815 CFLAGS="$(GNATLIBCFLAGS)" \
1816 ADAFLAGS="$(GNATLIBFLAGS)" \
1820 $(RM) rts/libgnat$(arext) rts/libgnarl$(arext)
1821 $(AR) $(AR_FLAGS) rts/libgnat$(arext) \
1822 $(addprefix rts/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
1823 ifneq ($(PREFIX_OBJS),)
1824 $(AR) $(AR_FLAGS) rts/libgccprefix$(arext) $(PREFIX_OBJS);
1826 -$(RANLIB) rts/libgnat$(arext)
1827 $(AR) $(AR_FLAGS) rts/libgnarl$(arext) \
1828 $(addprefix rts/,$(GNATRTL_TASKING_OBJS))
1829 -$(RANLIB) rts/libgnarl$(arext)
1830 ifeq ($(GMEM_LIB),gmemlib)
1831 $(AR) $(AR_FLAGS) rts/libgmem$(arext) rts/memtrack.o
1832 -$(RANLIB) rts/libgmem$(arext)
1834 $(CHMOD) a-wx rts/*.ali
1835 touch ../stamp-gnatlib
1837 HIE_NONE_TARGET_PAIRS=\
1838 a-except.ads<1aexcept.ads \
1839 a-except.adb<1aexcept.adb \
1840 a-tags.ads<1atags.ads \
1841 a-tags.adb<1atags.adb \
1842 s-secsta.ads<1ssecsta.ads \
1843 s-secsta.adb<1ssecsta.adb \
1844 i-c.ads<1ic.ads $(EXTRA_HIE_NONE_TARGET_PAIRS)
1846 # This target needs RTS_NAME, RTS_SRCS, RTS_TARGET_PAIRS to be set properly
1847 # it creates a rts with the proper structure and the right target
1850 $(RMDIR) rts-$(RTS_NAME)
1851 $(MKDIR) rts-$(RTS_NAME)
1852 $(CHMOD) u+w rts-$(RTS_NAME)
1853 $(MKDIR) rts-$(RTS_NAME)/adalib
1854 $(MKDIR) rts-$(RTS_NAME)/adainclude
1855 $(CHMOD) u+w rts-$(RTS_NAME)/*
1856 # Generate the project file
1857 $(ECHO) "project $(RTS_NAME) is" > rts-$(RTS_NAME)/$(RTS_NAME).gpr
1858 $(ECHO) " for Source_Dirs use (\"adainclude\");" \
1859 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1860 $(ECHO) " for Object_Dir use \"adalib\";" \
1861 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1862 $(ECHO) " for Source_List_File use " \
1863 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1864 $(ECHO) " \"rts-$(RTS_NAME)_source_list.txt\";" \
1865 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1866 $(ECHO) " package Builder is" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1867 $(ECHO) " for Default_Switches (\"Ada\") use (\"-a\");" \
1868 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1869 $(ECHO) " end Builder;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1870 $(ECHO) " package Compiler is" >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1871 $(ECHO) " for Default_Switches (\"Ada\") use (\"-nostdinc\");" \
1872 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1873 $(ECHO) " end Compiler;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1874 $(ECHO) "end $(RTS_NAME);" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1876 $(foreach f, $(COMPILABLE_SOURCES), \
1878 rts-$(RTS_NAME)/rts-$(RTS_NAME)_source_list.txt ;) true
1879 # Copy target independent sources
1880 $(foreach f,$(RTS_SRCS), \
1881 $(CP) $(fsrcpfx)$(f) rts-$(RTS_NAME)/adainclude/ ;) true
1882 # Remove files to be replaced by target dependent sources
1883 $(RM) $(foreach PAIR,$(RTS_TARGET_PAIRS), \
1884 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR))))
1885 # Copy new target dependent sources
1886 $(foreach PAIR,$(RTS_TARGET_PAIRS), \
1887 $(CP) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1888 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR)));)
1891 $(CP) -r rts-$(RTS_NAME) $(DESTDIR)$(libsubdir)/
1894 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
1895 RTS_NAME=zfp RTS_SRCS="$(HIE_SOURCES)" \
1896 RTS_TARGET_PAIRS="$(HIE_NONE_TARGET_PAIRS)" \
1897 COMPILABLE_SOURCES="$(COMPILABLE_HIE_SOURCES)"
1898 $(GNATMAKE) -Prts-zfp/zfp.gpr --GCC="../../../xgcc -B../../../"
1899 cd rts-zfp/adalib/ ; $(AR) r libgnat.a *.o
1900 $(RM) rts-zfp/adalib/*.o
1901 $(CHMOD) a-wx rts-zfp/adalib/*.ali
1902 $(CHMOD) a-wx rts-zfp/adalib/libgnat.a
1904 rts-ravenscar: force
1905 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
1906 RTS_NAME=ravenscar RTS_SRCS="$(RAVEN_SOURCES)" \
1907 RTS_TARGET_PAIRS="$(HIE_RAVEN_TARGET_PAIRS)" \
1908 COMPILABLE_SOURCES="$(COMPILABLE_RAVEN_SOURCES)"
1909 $(GNATMAKE) -Prts-ravenscar/ravenscar.gpr \
1910 --GCC="../../../xgcc -B../../../"
1911 cd rts-ravenscar/adalib ; \
1912 $(foreach FILE,$(RAVEN_LIBGNARL_OBJS), $(AR) r libgnarl.a $(FILE);) \
1913 $(foreach FILE,$(HIE_OBJS), $(AR) r libgnat.a $(FILE);)
1914 $(RM) rts-ravenscar/adalib/*.o
1915 $(CHMOD) a-wx rts-ravenscar/adalib/*.ali
1916 $(CHMOD) a-wx rts-ravenscar/adalib/libgnat.a
1917 $(CHMOD) a-wx rts-ravenscar/adalib/libgnarl.a
1919 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
1920 gnatlib-shared-default:
1921 $(MAKE) $(FLAGS_TO_PASS) \
1922 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1923 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1924 THREAD_KIND="$(THREAD_KIND)" \
1926 $(RM) rts/libgna*$(soext)
1927 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1928 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1929 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1930 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1932 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1933 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1934 $(GNATRTL_TASKING_OBJS) \
1935 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1937 cd rts; $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1939 cd rts; $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1942 gnatlib-shared-dual:
1943 $(MAKE) $(FLAGS_TO_PASS) \
1944 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1945 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1946 THREAD_KIND="$(THREAD_KIND)" \
1947 gnatlib-shared-default
1948 $(MV) rts/libgna*$(soext) .
1949 $(RM) ../stamp-gnatlib2
1950 $(MAKE) $(FLAGS_TO_PASS) \
1951 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1952 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1953 THREAD_KIND="$(THREAD_KIND)" \
1955 $(MV) libgna*$(soext) rts
1957 gnatlib-shared-dual-win32:
1958 $(MAKE) $(FLAGS_TO_PASS) \
1959 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1960 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1961 THREAD_KIND="$(THREAD_KIND)" \
1962 gnatlib-shared-win32
1963 $(MV) rts/libgna*$(soext) .
1964 $(RM) ../stamp-gnatlib2
1965 $(MAKE) $(FLAGS_TO_PASS) \
1966 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1967 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1968 THREAD_KIND="$(THREAD_KIND)" \
1970 $(MV) libgna*$(soext) rts
1972 # ??? we need to add the option to support auto-import of arrays/records to
1973 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
1974 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
1976 gnatlib-shared-win32:
1977 $(MAKE) $(FLAGS_TO_PASS) \
1978 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1979 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1980 THREAD_KIND="$(THREAD_KIND)" \
1982 $(RM) rts/libgna*$(soext)
1983 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1984 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1985 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1986 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
1987 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1988 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1989 $(GNATRTL_TASKING_OBJS) \
1990 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1991 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
1994 $(MAKE) $(FLAGS_TO_PASS) \
1995 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1996 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1997 THREAD_KIND="$(THREAD_KIND)" \
1999 $(RM) rts/libgna*$(soext)
2000 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
2001 objdump --syms $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) | \
2002 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
2003 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
2004 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
2005 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
2006 sys\$$library:trace.exe \
2007 --for-linker=/noinform \
2008 --for-linker=SYMVEC_$$$$.opt \
2009 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2010 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
2011 objdump --syms $(GNATRTL_TASKING_OBJS) | \
2012 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
2013 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
2014 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
2015 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2016 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2017 sys\$$library:trace.exe \
2018 --for-linker=/noinform \
2019 --for-linker=SYMVEC_$$$$.opt \
2020 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2023 $(MAKE) $(FLAGS_TO_PASS) \
2024 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2025 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2026 THREAD_KIND="$(THREAD_KIND)" \
2027 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
2030 gnatlib-sjlj: ../stamp-gnatlib1
2031 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' rts/system.ads > rts/s.ads
2032 $(MV) rts/s.ads rts/system.ads
2033 $(MAKE) $(FLAGS_TO_PASS) \
2034 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2035 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2036 THREAD_KIND="$(THREAD_KIND)" \
2037 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2039 gnatlib-zcx: ../stamp-gnatlib1
2040 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' rts/system.ads > rts/s.ads
2041 $(MV) rts/s.ads rts/system.ads
2042 $(MAKE) $(FLAGS_TO_PASS) \
2043 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2044 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2045 THREAD_KIND="$(THREAD_KIND)" \
2046 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2048 # .s files for cross-building
2050 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
2052 # Compiling object files from source files.
2054 # Note that dependencies on obstack.h are not written
2055 # because that file is not part of GCC.
2056 # Dependencies on gvarargs.h are not written
2057 # because all that file does, when not compiling with GCC,
2058 # is include the system varargs.h.
2060 b_gnatl.c : $(GNATLINK_OBJS)
2061 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatl.c gnatlink.ali
2062 b_gnatl.o : b_gnatl.c
2064 b_gnatm.c : $(GNATMAKE_OBJS)
2065 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatm.c gnatmake.ali
2066 b_gnatm.o : b_gnatm.c
2068 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2069 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2070 ADA_SHARE_MAKE_DIR = $(prefix)/share/gnat
2072 # force no sibling call optimization on s-traceb.o so the number of stack
2073 # frames to be skipped when computing a call chain is not modified by
2074 # optimization. However we can do that only when building the runtime
2075 # (not the compiler) because the -fno-optimize-sibling-calls exists
2078 ifneq (,$(findstring xgcc,$(CC)))
2079 NO_SIBLING_ADAFLAGS=-fno-optimize-sibling-calls
2081 NO_SIBLING_ADAFLAGS=
2084 s-traceb.o : s-traceb.adb
2085 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2086 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) \
2089 adadecode.o : adadecode.c adadecode.h
2093 deftarg.o : deftarg.c
2095 exit.o : raise.h exit.c
2097 final.o : raise.h final.c
2105 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2106 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2108 init.o : init.c ada.h types.h raise.h
2109 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2110 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2112 raise.o : raise.c raise.h
2113 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2114 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2116 # Need to keep the frame pointer in this file to pop the stack properly on
2118 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c
2119 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
2120 -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2122 # In GNU Make, ignore whether `stage*' exists.
2123 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2124 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2128 # Gnatlbr is only used on VMS
2130 ../../gnatlbr$(exeext): ../../prefix.o
2131 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlbr --GCC="$(CC) $(ALL_ADAFLAGS)"
2132 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlbr
2133 $(GNATLINK) -v gnatlbr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \