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 s390% linux%,$(arch) $(osys))),)
892 ifeq ($(strip $(filter-out s390x,$(arch))),)
893 LIBGNAT_TARGET_PAIRS = \
894 a-intnam.ads<4lintnam.ads \
895 s-inmaop.adb<7sinmaop.adb \
896 s-intman.adb<7sintman.adb \
897 s-osinte.adb<5iosinte.adb \
898 s-osinte.ads<5iosinte.ads \
899 s-osprim.adb<7sosprim.adb \
900 s-taprop.adb<5itaprop.adb \
901 s-taspri.ads<5itaspri.ads \
902 s-tpopsp.adb<5atpopsp.adb \
903 s-parame.adb<5lparame.adb \
904 system.ads<system-linux-s390x.ads
906 LIBGNAT_TARGET_PAIRS = \
907 a-intnam.ads<4lintnam.ads \
908 s-inmaop.adb<7sinmaop.adb \
909 s-intman.adb<7sintman.adb \
910 s-osinte.adb<5iosinte.adb \
911 s-osinte.ads<5iosinte.ads \
912 s-osprim.adb<7sosprim.adb \
913 s-taprop.adb<5itaprop.adb \
914 s-taspri.ads<5itaspri.ads \
915 s-tpopsp.adb<5atpopsp.adb \
916 s-parame.adb<5lparame.adb \
917 system.ads<system-linux-s390.ads
920 TOOLS_TARGET_PAIRS = \
921 mlib-tgt.adb<5lml-tgt.adb
923 THREADSLIB = -lpthread
924 GNATLIB_SHARED = gnatlib-shared-dual
925 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
926 LIBRARY_VERSION := $(LIB_VERSION)
929 ifeq ($(strip $(filter-out mips sgi irix%,$(targ))),)
930 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
931 LIBGNAT_TARGET_PAIRS = \
932 a-intnam.ads<4gintnam.ads \
933 s-inmaop.adb<7sinmaop.adb \
934 s-intman.adb<5fintman.adb \
935 s-mastop.adb<5gmastop.adb \
936 s-osinte.adb<5fosinte.adb \
937 s-osinte.ads<5fosinte.ads \
938 s-osprim.adb<7sosprim.adb \
939 s-proinf.adb<5gproinf.adb \
940 s-proinf.ads<5gproinf.ads \
941 s-taprop.adb<5ftaprop.adb \
942 s-tasinf.ads<5ftasinf.ads \
943 s-taspri.ads<7staspri.ads \
944 s-tpopsp.adb<7stpopsp.adb \
945 s-traceb.adb<7straceb.adb \
946 g-soccon.ads<3gsoccon.ads \
947 system.ads<5gsystem.ads
949 THREADSLIB = -lpthread
950 GNATLIB_SHARED = gnatlib-shared-default
953 LIBGNAT_TARGET_PAIRS = \
954 a-intnam.ads<4gintnam.ads \
955 s-inmaop.adb<5ninmaop.adb \
956 s-interr.adb<5ginterr.adb \
957 s-intman.adb<5gintman.adb \
958 s-mastop.adb<5gmastop.adb \
959 s-osinte.adb<5fosinte.adb \
960 s-osinte.ads<5gosinte.ads \
961 s-osprim.adb<7sosprim.adb \
962 s-proinf.adb<5gproinf.adb \
963 s-proinf.ads<5gproinf.ads \
964 s-taprop.adb<5gtaprop.adb \
965 s-tasinf.adb<5gtasinf.adb \
966 s-tasinf.ads<5gtasinf.ads \
967 s-taspri.ads<7staspri.ads \
968 s-traceb.adb<7straceb.adb \
969 g-soccon.ads<3gsoccon.ads \
970 system.ads<5fsystem.ads
973 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5gml-tgt.adb
976 SO_OPTS = -Wl,-all,-set_version,sgi1.0,-update_registry,../so_locations,-soname,
977 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
978 LIBRARY_VERSION := $(LIB_VERSION)
981 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
982 LIBGNAT_TARGET_PAIRS = \
983 a-excpol.adb<4wexcpol.adb \
984 a-intnam.ads<4hintnam.ads \
985 s-inmaop.adb<7sinmaop.adb \
986 s-interr.adb<5ginterr.adb \
987 s-intman.adb<7sintman.adb \
988 s-osinte.adb<5hosinte.adb \
989 s-osinte.ads<5hosinte.ads \
990 s-parame.ads<5hparame.ads \
991 s-osprim.adb<7sosprim.adb \
992 s-taprop.adb<5htaprop.adb \
993 s-taspri.ads<5htaspri.ads \
994 s-tpopsp.adb<7stpopsp.adb \
995 g-soccon.ads<3hsoccon.ads \
996 system.ads<5hsystem.ads
998 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1001 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
1002 LIBGNAT_TARGET_PAIRS = \
1003 a-intnam.ads<4hintnam.ads \
1004 s-inmaop.adb<7sinmaop.adb \
1005 s-intman.adb<7sintman.adb \
1006 s-osinte.adb<5iosinte.adb \
1007 s-osinte.ads<53osinte.ads \
1008 s-parame.ads<5hparame.ads \
1009 s-osprim.adb<7sosprim.adb \
1010 s-traceb.adb<5htraceb.adb \
1011 s-taprop.adb<7staprop.adb \
1012 s-taspri.ads<7staspri.ads \
1013 s-tpopsp.adb<5atpopsp.adb \
1014 g-soccon.ads<3hsoccon.ads \
1015 system.ads<5hsystem.ads
1017 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5hml-tgt.adb
1018 TGT_LIB = /usr/lib/libcl.a
1019 THREADSLIB = -lpthread
1020 SYMLIB = $(ADDR2LINE_SYMLIB)
1024 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1025 GNATLIB_SHARED = gnatlib-shared-dual
1026 LIBRARY_VERSION := $(LIB_VERSION)
1028 ifeq ($(strip $(filter-out dce DCE,$(THREAD_KIND))),)
1029 LIBGNAT_TARGET_PAIRS = \
1030 a-excpol.adb<4wexcpol.adb \
1031 a-intnam.ads<4hintnam.ads \
1032 s-inmaop.adb<7sinmaop.adb \
1033 s-interr.adb<5ginterr.adb \
1034 s-intman.adb<7sintman.adb \
1035 s-osinte.adb<5hosinte.adb \
1036 s-osinte.ads<5hosinte.ads \
1037 s-parame.ads<5hparame.ads \
1038 s-osprim.adb<7sosprim.adb \
1039 s-taprop.adb<5htaprop.adb \
1040 s-taspri.ads<5htaspri.ads \
1041 s-tpopsp.adb<7stpopsp.adb \
1042 g-soccon.ads<3hsoccon.ads \
1043 system.ads<5hsystem.ads
1050 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
1051 LIBGNAT_TARGET_PAIRS = \
1052 a-intnam.ads<4cintnam.ads \
1053 s-inmaop.adb<7sinmaop.adb \
1054 s-intman.adb<7sintman.adb \
1055 s-osinte.adb<5bosinte.adb \
1056 s-osinte.ads<5bosinte.ads \
1057 s-osprim.adb<7sosprim.adb \
1058 s-taprop.adb<7staprop.adb \
1059 s-taspri.ads<7staspri.ads \
1060 s-tpopsp.adb<7stpopsp.adb \
1061 g-soccon.ads<3bsoccon.ads \
1062 system.ads<5bsystem.ads
1064 THREADSLIB = -lpthreads
1065 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1067 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
1068 LIBGNAT_TARGET_PAIRS = \
1069 a-intnam.ads<4cintnam.ads \
1070 s-inmaop.adb<7sinmaop.adb \
1071 s-intman.adb<7sintman.adb \
1072 s-osinte.adb<7sosinte.adb \
1073 s-osinte.ads<5cosinte.ads \
1074 s-osprim.adb<7sosprim.adb \
1075 s-taprop.adb<7staprop.adb \
1076 s-taspri.ads<7staspri.ads \
1077 s-tpopsp.adb<7stpopsp.adb \
1078 g-soccon.ads<3bsoccon.ads \
1079 system.ads<5bsystem.ads
1081 THREADSLIB = -lgthreads -lmalloc
1084 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5bml-tgt.adb
1086 SYMLIB = $(ADDR2LINE_SYMLIB)
1090 ifeq ($(strip $(filter-out lynxos,$(osys))),)
1091 ifeq ($(strip $(filter-out %86 lynxos,$(arch) $(osys))),)
1092 LIBGNAT_TARGET_PAIRS = \
1093 a-numaux.adb<86numaux.adb \
1094 a-numaux.ads<86numaux.ads \
1095 a-intnam.ads<42intnam.ads \
1096 s-mastop.adb<5omastop.adb \
1097 s-inmaop.adb<7sinmaop.adb \
1098 s-intman.adb<7sintman.adb \
1099 s-osinte.adb<56osinte.adb \
1100 s-osinte.ads<56osinte.ads \
1101 s-osprim.adb<7sosprim.adb \
1102 s-taprop.adb<56taprop.adb \
1103 s-taspri.ads<56taspri.ads \
1104 s-tpopsp.adb<56tpopsp.adb \
1105 system.ads<58system.ads
1107 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1110 LIBGNAT_TARGET_PAIRS = \
1111 a-intnam.ads<42intnam.ads \
1112 s-inmaop.adb<7sinmaop.adb \
1113 s-intman.adb<7sintman.adb \
1114 s-osinte.adb<52osinte.adb \
1115 s-osinte.ads<52osinte.ads \
1116 s-osprim.adb<7sosprim.adb \
1117 s-taprop.adb<7staprop.adb \
1118 s-taspri.ads<7staspri.ads \
1119 s-tpopsp.adb<7stpopsp.adb \
1120 system.ads<57system.ads
1122 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
1123 LIBGNAT_TARGET_PAIRS = \
1124 a-intnam.ads<42intnam.ads \
1125 s-inmaop.adb<7sinmaop.adb \
1126 s-intman.adb<7sintman.adb \
1127 s-osinte.adb<56osinte.adb \
1128 s-osinte.ads<56osinte.ads \
1129 s-osprim.adb<7sosprim.adb \
1130 s-taprop.adb<56taprop.adb \
1131 s-taspri.ads<56taspri.ads \
1132 s-tpopsp.adb<56tpopsp.adb \
1133 system.ads<57system.ads
1139 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1140 LIBGNAT_TARGET_PAIRS = \
1141 a-intnam.ads<4rintnam.ads \
1142 s-inmaop.adb<7sinmaop.adb \
1143 s-intman.adb<7sintman.adb \
1144 s-osinte.adb<5rosinte.adb \
1145 s-osinte.ads<5rosinte.ads \
1146 s-osprim.adb<7sosprim.adb \
1147 s-parame.adb<5rparame.adb \
1148 s-taprop.adb<7staprop.adb \
1149 s-taspri.ads<7staspri.ads \
1150 s-tpopsp.adb<5rtpopsp.adb
1153 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1154 LIBGNAT_TARGET_PAIRS = \
1155 a-intnam.ads<4aintnam.ads \
1156 s-inmaop.adb<7sinmaop.adb \
1157 s-intman.adb<7sintman.adb \
1158 s-mastop.adb<5amastop.adb \
1159 s-osinte.adb<5aosinte.adb \
1160 s-osinte.ads<5aosinte.ads \
1161 s-osprim.adb<5posprim.adb \
1162 s-taprop.adb<5ataprop.adb \
1163 s-tasinf.ads<5atasinf.ads \
1164 s-taspri.ads<5ataspri.ads \
1165 s-tpopsp.adb<5atpopsp.adb \
1166 s-traceb.adb<7straceb.adb \
1167 g-soccon.ads<3asoccon.ads \
1168 system.ads<5asystem.ads
1170 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5aml-tgt.adb
1173 SYMLIB = $(ADDR2LINE_SYMLIB)
1174 THREADSLIB = -lpthread -lmach -lexc -lrt
1175 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1176 GNATLIB_SHARED = gnatlib-shared-default
1177 LIBRARY_VERSION := $(LIB_VERSION)
1180 ifeq ($(strip $(filter-out alpha% ia64 dec hp vms% openvms% alphavms%,$(host))),)
1188 @ gnu:[bin]vmssymvec $<
1191 ifeq ($(strip $(filter-out alpha% ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1192 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1193 LIBGNAT_TARGET_PAIRS_AUX1 = \
1194 s-crtl.ads<5xcrtl.ads \
1195 s-osinte.adb<5xosinte.adb \
1196 s-osinte.ads<5xosinte.ads \
1197 system.ads<5qsystem.ads
1199 ifeq ($(strip $(filter-out alpha% dec vms% openvms% alphavms%,$(targ))),)
1200 LIBGNAT_TARGET_PAIRS_AUX1 = \
1201 s-crtl.ads<5vcrtl.ads \
1202 s-osinte.adb<5vosinte.adb \
1203 s-osinte.ads<5vosinte.ads \
1204 system.ads<5xsystem.ads
1207 ifeq ($(strip $(filter-out express EXPRESS,$(THREAD_KIND))),)
1208 LIBGNAT_TARGET_PAIRS_AUX2 = \
1209 s-parame.ads<5xparame.ads
1211 LIBGNAT_TARGET_PAIRS_AUX2 = \
1212 s-parame.ads<5vparame.ads
1215 LIBGNAT_TARGET_PAIRS = \
1216 a-caldel.adb<4vcaldel.adb \
1217 a-calend.adb<4vcalend.adb \
1218 a-calend.ads<4vcalend.ads \
1219 a-dirval.adb<5vdirval.adb \
1220 a-excpol.adb<4wexcpol.adb \
1221 a-intnam.ads<4vintnam.ads \
1222 a-numaux.ads<4vnumaux.ads \
1223 g-expect.adb<3vexpect.adb \
1224 g-soccon.ads<3vsoccon.ads \
1225 g-socthi.ads<3vsocthi.ads \
1226 g-socthi.adb<3vsocthi.adb \
1227 g-trasym.adb<3vtrasym.adb \
1228 i-cstrea.adb<6vcstrea.adb \
1229 i-cpp.adb<6vcpp.adb \
1230 interfac.ads<6vinterf.ads \
1231 s-asthan.adb<5vasthan.adb \
1232 s-inmaop.adb<5vinmaop.adb \
1233 s-interr.adb<5vinterr.adb \
1234 s-intman.adb<5vintman.adb \
1235 s-intman.ads<5vintman.ads \
1236 s-osprim.adb<5vosprim.adb \
1237 s-osprim.ads<5vosprim.ads \
1238 s-taprop.adb<5vtaprop.adb \
1239 s-taspri.ads<5vtaspri.ads \
1240 s-tpopsp.adb<7stpopsp.adb \
1241 s-tpopde.adb<5vtpopde.adb \
1242 s-tpopde.ads<5vtpopde.ads \
1243 s-traent.adb<5vtraent.adb \
1244 s-traent.ads<5vtraent.ads \
1245 s-vaflop.adb<5vvaflop.adb \
1246 $(LIBGNAT_TARGET_PAIRS_AUX1) \
1247 $(LIBGNAT_TARGET_PAIRS_AUX2)
1249 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5vml-tgt.adb
1251 GNATLIB_SHARED=gnatlib-shared-vms
1252 ifeq ($(strip $(filter-out alpha% dec vms% openvms% alphavms%,$(targ))),)
1253 EXTRA_LIBGNAT_SRCS=vmshandler.asm
1254 EXTRA_LIBGNAT_OBJS=vmshandler.o
1256 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1258 ../../gnatlbr$(exeext) \
1259 ,,/../gnatsym$(exeext)
1260 # This command transforms (YYYYMMDD) into YY,MMDD
1261 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\)/\2,\3/')
1262 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1263 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1266 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1267 LIBGNAT_TARGET_PAIRS = \
1268 a-calend.adb<4wcalend.adb \
1269 a-dirval.adb<5wdirval.adb \
1270 a-excpol.adb<4wexcpol.adb \
1271 a-intnam.ads<4wintnam.ads \
1272 a-numaux.adb<86numaux.adb \
1273 a-numaux.ads<86numaux.ads \
1274 s-gloloc.adb<5wgloloc.adb \
1275 s-inmaop.adb<5ninmaop.adb \
1276 s-interr.adb<5ginterr.adb \
1277 s-intman.adb<5wintman.adb \
1278 s-mastop.adb<5omastop.adb \
1279 s-memory.adb<5wmemory.adb \
1280 s-osinte.ads<5wosinte.ads \
1281 s-osprim.adb<5wosprim.adb \
1282 s-taprop.adb<5wtaprop.adb \
1283 s-taspri.ads<5wtaspri.ads \
1284 g-socthi.ads<3wsocthi.ads \
1285 g-socthi.adb<3wsocthi.adb \
1286 g-soccon.ads<3wsoccon.ads \
1287 g-soliop.ads<3wsoliop.ads \
1288 system.ads<5wsystem.ads
1290 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5wml-tgt.adb
1292 SYMLIB = $(ADDR2LINE_SYMLIB)
1294 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1295 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1296 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1297 EXTRA_GNATRTL_NONTASKING_OBJS = g-regist.o
1299 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT auto-import
1300 # support for array/record will be done.
1301 GNATLIB_SHARED = gnatlib-shared-win32
1302 LIBRARY_VERSION := $(LIB_VERSION)
1305 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1306 LIBGNAT_TARGET_PAIRS = \
1307 a-intnam.ads<4lintnam.ads \
1308 s-inmaop.adb<7sinmaop.adb \
1309 s-intman.adb<7sintman.adb \
1310 s-osinte.ads<5iosinte.ads \
1311 s-osinte.adb<5iosinte.adb \
1312 s-osprim.adb<7sosprim.adb \
1313 s-taprop.adb<5itaprop.adb \
1314 s-tpopsp.adb<5atpopsp.adb \
1315 s-taspri.ads<5itaspri.ads \
1316 system.ads<55system.ads
1318 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5lml-tgt.adb
1320 THREADSLIB=-lpthread
1321 GNATLIB_SHARED=gnatlib-shared-dual
1322 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1323 LIBRARY_VERSION := $(LIB_VERSION)
1326 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
1327 LIBGNAT_TARGET_PAIRS = \
1328 a-intnam.ads<4lintnam.ads \
1329 a-numaux.adb<86numaux.adb \
1330 a-numaux.ads<86numaux.ads \
1331 s-inmaop.adb<7sinmaop.adb \
1332 s-intman.adb<7sintman.adb \
1333 s-osinte.ads<5iosinte.ads \
1334 s-osinte.adb<5iosinte.adb \
1335 s-osprim.adb<7sosprim.adb \
1336 s-taprop.adb<5itaprop.adb \
1337 s-tpopsp.adb<5atpopsp.adb \
1338 s-taspri.ads<5itaspri.ads \
1339 system.ads<5nsystem.ads
1341 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5lml-tgt.adb
1342 SYMLIB = $(ADDR2LINE_SYMLIB)
1343 THREADSLIB=-lpthread
1344 GNATLIB_SHARED=gnatlib-shared-dual
1346 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1347 LIBRARY_VERSION := $(LIB_VERSION)
1350 ifeq ($(strip $(filter-out powerpc darwin%,$(arch) $(osys))),)
1351 LIBGNAT_TARGET_PAIRS = \
1352 a-intnam.ads<a-intnam-darwin.ads \
1353 s-inmaop.adb<7sinmaop.adb \
1354 s-intman.adb<7sintman.adb \
1355 s-osinte.adb<s-osinte-darwin.adb \
1356 s-osinte.ads<s-osinte-darwin.ads \
1357 s-osprim.adb<7sosprim.adb \
1358 s-taprop.adb<7staprop.adb \
1359 s-taspri.ads<7staspri.ads \
1360 s-tpopsp.adb<5atpopsp.adb \
1361 g-soccon.ads<3bsoccon.ads \
1362 system.ads<system-darwin-ppc.ads
1365 # The runtime library for gnat comprises two directories. One contains the
1366 # Ada source files that the compiler (gnat1) needs -- these files are listed
1367 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1368 # corresponding .ali files for the parts written in Ada, libgnat.a for
1369 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1370 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1371 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1372 # go into the directory. The pthreads emulation is built in the threads
1373 # subdirectory and copied.
1374 LIBGNAT_SRCS = ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1375 errno.c exit.c cal.c ctrl_c.c \
1376 raise.h raise.c sysdep.c aux-io.c init.c \
1377 final.c tracebak.c tb-alvms.c tb-alvxw.c expect.c mkdir.c socket.c \
1378 $(EXTRA_LIBGNAT_SRCS)
1380 LIBGNAT_OBJS = adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o \
1381 raise.o sysdep.o aux-io.o init.o cal.o final.o \
1382 tracebak.o expect.o mkdir.o socket.o $(EXTRA_LIBGNAT_OBJS)
1384 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1385 # the library installation will change and there will be a
1386 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1387 # from ADA_INCLUDE_SRCS.
1389 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1390 # the following include file:
1392 include $(fsrcdir)/Makefile.rtl
1394 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
1395 g-trasym.o memtrack.o
1397 # Files which are suitable in no run time/hi integrity mode
1399 COMPILABLE_HIE_SOURCES= \
1419 a-except.adb $(EXTRA_HIE_SOURCES)
1421 NON_COMPILABLE_HIE_SOURCES= \
1432 HIE_SOURCES = $(NON_COMPILABLE_HIE_SOURCES) $(COMPILABLE_HIE_SOURCES)
1434 # Object to generate for the HI run time
1452 a-tags.o $(EXTRA_HIE_OBJS)
1454 # Files which are needed in ravenscar mode
1456 COMPILABLE_RAVEN_SOURCES = \
1457 $(COMPILABLE_HIE_SOURCES) \
1489 a-taside.adb $(EXTRA_RAVEN_SOURCES)
1491 NON_COMPILABLE_RAVEN_SOURCES= $(NON_COMPILABLE_HIE_SOURCES)
1493 RAVEN_SOURCES = $(NON_COMPILABLE_RAVEN_SOURCES) $(COMPILABLE_RAVEN_SOURCES)
1495 # Objects to generate for the ravenscar run time
1497 RAVEN_LIBGNARL_OBJS = \
1516 a-taside.o $(EXTRA_RAVEN_OBJS)
1520 $(RAVEN_LIBGNARL_OBJS)
1522 # Default run time files
1525 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1526 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1527 sequenio.ads system.ads Makefile.prolog Makefile.generic \
1529 a-*.adb a-*.ads g-*.ad? i-*.ad? \
1530 s-[a-o]*.adb s-[p-z]*.adb \
1531 s-[a-o]*.ads s-[p-z]*.ads
1533 LIBGNAT=../rts/libgnat.a
1534 TOOLS_FLAGS_TO_PASS= \
1536 "CFLAGS=$(CFLAGS)" \
1537 "LDFLAGS=$(LDFLAGS)" \
1538 "ADAFLAGS=$(ADAFLAGS)" \
1539 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
1540 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
1541 "libsubdir=$(libsubdir)" \
1542 "exeext=$(exeext)" \
1543 "fsrcdir=$(fsrcdir)" \
1544 "srcdir=$(fsrcdir)" \
1545 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
1546 "GNATMAKE=$(GNATMAKE)" \
1547 "GNATLINK=$(GNATLINK)" \
1548 "GNATBIND=$(GNATBIND)"
1550 # Build directory for the tools. Let's copy the target-dependent
1551 # sources using the same mechanism as for gnatlib. The other sources are
1552 # accessed using the vpath directive below
1558 -(cd tools; $(LN_S) ../sdefault.adb .)
1559 -$(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
1560 $(RM) tools/$(word 1,$(subst <, ,$(PAIR)));\
1561 $(LN_S) $(fsrcdir)/$(word 2,$(subst <, ,$(PAIR))) \
1562 tools/$(word 1,$(subst <, ,$(PAIR)));)
1563 touch ../stamp-tools
1565 # when compiling the tools, the runtime has to be first on the path so that
1566 # it hides the runtime files lying with the rest of the sources
1567 ifeq ($(TOOLSCASE),native)
1568 vpath %.ads ../rts ../
1569 vpath %.adb ../rts ../
1570 vpath %.c ../rts ../
1571 vpath %.h ../rts ../
1574 # in the cross tools case, everything is compiled with the native
1575 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1576 ifeq ($(TOOLSCASE),cross)
1583 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
1584 # reasons: gnatmake should be built with a recent compiler, a recent compiler
1585 # may not generate ALI files compatible with an old gnatmake so it is important
1586 # to be able to build gnatmake without a version of gnatmake around. Once
1587 # everything has been compiled once, gnatmake can be recompiled with itself
1588 # (see target gnattools1-re)
1589 gnattools1: ../stamp-tools ../stamp-gnatlib
1590 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1592 ../../gnatmake$(exeext) ../../gnatlink$(exeext) ../../gnatbl$(exeext)
1594 # gnatmake/link can be built with recent gnatmake/link if they are available.
1595 # This is especially convenient for building cross tools or for rebuilding
1596 # the tools when the original bootstrap has already be done.
1597 gnattools1-re: ../stamp-tools
1598 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1599 TOOLSCASE=cross INCLUDES="" gnatmake-re gnatlink-re
1601 # these tools are built with gnatmake & are common to native and cross
1602 gnattools2: ../stamp-tools
1603 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1605 ../../gnatchop$(exeext) ../../gnat$(exeext) ../../gnatkr$(exeext) \
1606 ../../gnatls$(exeext) ../../gnatprep$(exeext) \
1607 ../../gnatxref$(exeext) \
1608 ../../gnatfind$(exeext) ../../gnatname$(exeext) \
1609 ../../gnatclean$(exeext) \
1610 ../../gprcmd$(exeext) ../../gpr2make$(exeext)
1612 # These tools are only built for the native version.
1613 gnattools3: ../stamp-tools
1614 # $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1615 # TOOLSCASE=native top_builddir=../../.. \
1616 # ../../gnatmem$(exeext) $(EXTRA_GNATTOOLS)
1618 # those tools are only built for the cross version
1619 gnattools4: ../stamp-tools
1620 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1621 TOOLSCASE=cross top_buildir=../../.. \
1622 ../../vxaddr2line$(exeext)
1624 ../../gnatchop$(exeext): ../stamp-tools
1625 $(GNATMAKE) -c $(ADA_INCLUDES) gnatchop --GCC="$(CC) $(ALL_ADAFLAGS)"
1626 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatchop
1627 $(GNATLINK) -v gnatchop -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1630 ../../gnat$(exeext): ../stamp-tools
1631 $(GNATMAKE) -c $(ADA_INCLUDES) gnatcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1632 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatcmd
1633 $(GNATLINK) -v gnatcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1635 ../../gnatkr$(exeext): ../stamp-tools
1636 $(GNATMAKE) -c $(ADA_INCLUDES) gnatkr --GCC="$(CC) $(ALL_ADAFLAGS)"
1637 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatkr
1638 $(GNATLINK) -v gnatkr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1640 ../../gnatls$(exeext): ../stamp-tools
1641 $(GNATMAKE) -c $(ADA_INCLUDES) gnatls --GCC="$(CC) $(ALL_ADAFLAGS)"
1642 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatls
1643 $(GNATLINK) -v gnatls -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1645 ../../gnatname$(exeext): ../stamp-tools
1646 $(GNATMAKE) -c $(ADA_INCLUDES) gnatname --GCC="$(CC) $(ALL_ADAFLAGS)"
1647 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatname
1648 $(GNATLINK) -v gnatname -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1651 ../../gpr2make$(exeext): ../stamp-tools
1652 $(GNATMAKE) -c $(ADA_INCLUDES) gpr2make --GCC="$(CC) $(ALL_ADAFLAGS)"
1653 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gpr2make
1654 $(GNATLINK) -v gpr2make -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1657 ../../gnatprep$(exeext): ../stamp-tools
1658 $(GNATMAKE) -c $(ADA_INCLUDES) gnatprep --GCC="$(CC) $(ALL_ADAFLAGS)"
1659 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatprep
1660 $(GNATLINK) -v gnatprep -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1663 ../../gnatxref$(exeext): ../stamp-tools
1664 $(GNATMAKE) -c $(ADA_INCLUDES) gnatxref --GCC="$(CC) $(ALL_ADAFLAGS)"
1665 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatxref
1666 $(GNATLINK) -v gnatxref -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1669 ../../gnatfind$(exeext): ../stamp-tools
1670 $(GNATMAKE) -c $(ADA_INCLUDES) gnatfind --GCC="$(CC) $(ALL_ADAFLAGS)"
1671 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatfind
1672 $(GNATLINK) -v gnatfind -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1675 ../../gnatclean$(exeext): ../stamp-tools
1676 $(GNATMAKE) -c $(ADA_INCLUDES) gnatclean --GCC="$(CC) $(ALL_ADAFLAGS)"
1677 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatclean
1678 $(GNATLINK) -v gnatclean -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1681 ../../gnatsym$(exeext): ../stamp-tools
1682 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
1683 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
1684 $(GNATLINK) -v gnatsym -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1687 ../../gnatmem$(exeext): ../stamp-tools gmem.o $(SYMDEPS)
1688 ifeq ($(GMEM_LIB),gmemlib)
1689 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmem --GCC="$(CC) $(ALL_ADAFLAGS)"
1690 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmem
1691 $(GNATLINK) -v gnatmem -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1692 gmem.o $(SYMLIB) $(TOOLS_LIBS)
1695 ../../gnatdll$(exeext): ../stamp-tools
1696 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
1697 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) $(GNATBIND_FLAGS) gnatdll
1698 $(GNATLINK) -v gnatdll -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1701 ../../gprcmd$(exeext): ../stamp-tools
1702 $(GNATMAKE) -c $(ADA_INCLUDES) gprcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1703 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gprcmd
1704 $(GNATLINK) -v gprcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1706 ../../vxaddr2line$(exeext): ../stamp-tools
1707 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
1708 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
1709 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(CLIB)
1711 gnatmake-re: ../stamp-tools link.o
1712 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
1713 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1714 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
1715 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
1716 --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1718 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1719 # with the former version of gnatlink itself which cannot override itself.
1720 gnatlink-re: ../stamp-tools link.o
1721 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
1722 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
1723 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
1724 --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1725 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
1727 # Needs to be built with CC=gcc
1728 # Since the RTL should be built with the latest compiler, remove the
1729 # stamp target in the parent directory whenever gnat1 is rebuilt
1731 # Likewise for the tools
1732 ../../gnatmake$(exeext): $(P) b_gnatm.o link.o $(GNATMAKE_OBJS)
1733 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
1736 ../../gnatlink$(exeext): $(P) b_gnatl.o link.o $(GNATLINK_OBJS)
1737 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
1740 ../../gnatbl$(exeext): gnatbl.o
1741 $(CC) -o $@ $(ALL_CFLAGS) $(LDFLAGS) gnatbl.o $(TOOLS_LIBS)
1743 gnatbl.o: gnatbl.c adaint.h
1744 $(CC) $(ALL_CFLAGS) $(INCLUDES) -c $< $(OUTPUT_OPTION)
1747 @if [ ! -f stamp-gnatlib ] ; \
1749 $(ECHO) You must first build the GNAT library: make gnatlib; \
1755 install-gnatlib: ../stamp-gnatlib
1756 # Create the directory before deleting it, in case the directory is
1757 # a list of directories (as it may be on VMS). This ensures we are
1758 # deleting the right one.
1759 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1760 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1761 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1762 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1763 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1764 $(RMDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1765 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1766 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1767 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1768 -$(INSTALL_DATA) rts/Makefile.prolog $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1769 -$(INSTALL_DATA) rts/Makefile.generic $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1770 for file in rts/*.ali; do \
1771 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1773 -$(INSTALL_DATA) rts/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1774 -cd rts; for file in *$(arext);do \
1775 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1776 $(RANLIB) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
1778 # Install the shared libraries, if any, using $(INSTALL) instead
1779 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1780 # for shared libraries on some targets, e.g. on HP-UX where the x
1781 # permission is required.
1782 for file in gnat gnarl; do \
1783 if [ -f rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
1784 $(INSTALL) rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1785 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1787 if [ -f rts/lib$${file}$(soext) ]; then \
1788 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1789 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
1792 # This copy must be done preserving the date on the original file.
1793 for file in rts/*.adb rts/*.ads; do \
1794 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
1796 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
1797 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
1801 $(RM) rts/s-*$(objext)
1803 $(RM) rts/a-*$(objext)
1805 $(RM) rts/*$(objext)
1808 touch ../stamp-gnatlib2
1809 $(RM) ../stamp-gnatlib
1811 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1812 # successive target commands. Although the Gnu make documentation
1813 # implies this is true on all systems, I suspect it may not be, So care
1814 # has been taken to allow a sed script to look for ";)" and substitue
1815 # for ";" the appropriate character in the range of lines below
1816 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1818 # GNULLI Begin ###########################################################
1820 ../stamp-gnatlib1: Makefile ../stamp-gnatlib2
1824 # Copy target independent sources
1825 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
1826 $(LN_S) $(fsrcpfx)$(f) rts ;) true
1827 # Remove files to be replaced by target dependent sources
1828 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1829 rts/$(word 1,$(subst <, ,$(PAIR))))
1830 # Copy new target dependent sources
1831 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1832 $(LN_S) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1833 rts/$(word 1,$(subst <, ,$(PAIR)));)
1834 $(RM) ../stamp-gnatlib
1835 touch ../stamp-gnatlib1
1837 # GNULLI End #############################################################
1839 # Don't use semicolon separated shell commands that involve list expansions.
1840 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1841 # line lengths in excess of 256 characters.
1842 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1843 # is guaranteed to overflow the buffer.
1845 gnatlib: ../stamp-gnatlib1 ../stamp-gnatlib2
1846 $(MAKE) -C rts CC="../../xgcc -B../../" \
1847 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1848 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
1850 -f ../Makefile $(LIBGNAT_OBJS)
1851 $(MAKE) -C rts CC="../../xgcc -B../../" \
1853 CFLAGS="$(GNATLIBCFLAGS)" \
1854 ADAFLAGS="$(GNATLIBFLAGS)" \
1858 $(RM) rts/libgnat$(arext) rts/libgnarl$(arext)
1859 $(AR) $(AR_FLAGS) rts/libgnat$(arext) \
1860 $(addprefix rts/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
1861 ifneq ($(PREFIX_OBJS),)
1862 $(AR) $(AR_FLAGS) rts/libgccprefix$(arext) $(PREFIX_OBJS);
1864 -$(RANLIB) rts/libgnat$(arext)
1865 $(AR) $(AR_FLAGS) rts/libgnarl$(arext) \
1866 $(addprefix rts/,$(GNATRTL_TASKING_OBJS))
1867 -$(RANLIB) rts/libgnarl$(arext)
1868 ifeq ($(GMEM_LIB),gmemlib)
1869 $(AR) $(AR_FLAGS) rts/libgmem$(arext) rts/memtrack.o
1870 -$(RANLIB) rts/libgmem$(arext)
1872 $(CHMOD) a-wx rts/*.ali
1873 touch ../stamp-gnatlib
1875 HIE_NONE_TARGET_PAIRS=\
1876 a-except.ads<1aexcept.ads \
1877 a-except.adb<1aexcept.adb \
1878 a-tags.ads<1atags.ads \
1879 a-tags.adb<1atags.adb \
1880 s-secsta.ads<1ssecsta.ads \
1881 s-secsta.adb<1ssecsta.adb \
1882 i-c.ads<1ic.ads $(EXTRA_HIE_NONE_TARGET_PAIRS)
1884 # This target needs RTS_NAME, RTS_SRCS, RTS_TARGET_PAIRS to be set properly
1885 # it creates a rts with the proper structure and the right target
1888 $(RMDIR) rts-$(RTS_NAME)
1889 $(MKDIR) rts-$(RTS_NAME)
1890 $(CHMOD) u+w rts-$(RTS_NAME)
1891 $(MKDIR) rts-$(RTS_NAME)/adalib
1892 $(MKDIR) rts-$(RTS_NAME)/adainclude
1893 $(CHMOD) u+w rts-$(RTS_NAME)/*
1894 # Generate the project file
1895 $(ECHO) "project $(RTS_NAME) is" > rts-$(RTS_NAME)/$(RTS_NAME).gpr
1896 $(ECHO) " for Source_Dirs use (\"adainclude\");" \
1897 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1898 $(ECHO) " for Object_Dir use \"adalib\";" \
1899 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1900 $(ECHO) " for Source_List_File use " \
1901 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1902 $(ECHO) " \"rts-$(RTS_NAME)_source_list.txt\";" \
1903 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1904 $(ECHO) " package Builder is" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1905 $(ECHO) " for Default_Switches (\"Ada\") use (\"-a\");" \
1906 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1907 $(ECHO) " end Builder;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1908 $(ECHO) " package Compiler is" >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1909 $(ECHO) " for Default_Switches (\"Ada\") use (\"-nostdinc\");" \
1910 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1911 $(ECHO) " end Compiler;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1912 $(ECHO) "end $(RTS_NAME);" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1914 $(foreach f, $(COMPILABLE_SOURCES), \
1916 rts-$(RTS_NAME)/rts-$(RTS_NAME)_source_list.txt ;) true
1917 # Copy target independent sources
1918 $(foreach f,$(RTS_SRCS), \
1919 $(CP) $(fsrcpfx)$(f) rts-$(RTS_NAME)/adainclude/ ;) true
1920 # Remove files to be replaced by target dependent sources
1921 $(RM) $(foreach PAIR,$(RTS_TARGET_PAIRS), \
1922 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR))))
1923 # Copy new target dependent sources
1924 $(foreach PAIR,$(RTS_TARGET_PAIRS), \
1925 $(CP) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1926 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR)));)
1929 $(CP) -r rts-$(RTS_NAME) $(DESTDIR)$(libsubdir)/
1932 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
1933 RTS_NAME=zfp RTS_SRCS="$(HIE_SOURCES)" \
1934 RTS_TARGET_PAIRS="$(HIE_NONE_TARGET_PAIRS)" \
1935 COMPILABLE_SOURCES="$(COMPILABLE_HIE_SOURCES)"
1936 $(GNATMAKE) -Prts-zfp/zfp.gpr --GCC="../../../xgcc -B../../../"
1937 cd rts-zfp/adalib/ ; $(AR) r libgnat.a *.o
1938 $(RM) rts-zfp/adalib/*.o
1939 $(CHMOD) a-wx rts-zfp/adalib/*.ali
1940 $(CHMOD) a-wx rts-zfp/adalib/libgnat.a
1942 rts-ravenscar: force
1943 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
1944 RTS_NAME=ravenscar RTS_SRCS="$(RAVEN_SOURCES)" \
1945 RTS_TARGET_PAIRS="$(HIE_RAVEN_TARGET_PAIRS)" \
1946 COMPILABLE_SOURCES="$(COMPILABLE_RAVEN_SOURCES)"
1947 $(GNATMAKE) -Prts-ravenscar/ravenscar.gpr \
1948 --GCC="../../../xgcc -B../../../"
1949 cd rts-ravenscar/adalib ; \
1950 $(foreach FILE,$(RAVEN_LIBGNARL_OBJS), $(AR) r libgnarl.a $(FILE);) \
1951 $(foreach FILE,$(HIE_OBJS), $(AR) r libgnat.a $(FILE);)
1952 $(RM) rts-ravenscar/adalib/*.o
1953 $(CHMOD) a-wx rts-ravenscar/adalib/*.ali
1954 $(CHMOD) a-wx rts-ravenscar/adalib/libgnat.a
1955 $(CHMOD) a-wx rts-ravenscar/adalib/libgnarl.a
1957 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
1958 gnatlib-shared-default:
1959 $(MAKE) $(FLAGS_TO_PASS) \
1960 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1961 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1962 THREAD_KIND="$(THREAD_KIND)" \
1964 $(RM) rts/libgna*$(soext)
1965 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1966 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1967 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1968 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1970 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1971 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1972 $(GNATRTL_TASKING_OBJS) \
1973 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1975 cd rts; $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1977 cd rts; $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1980 gnatlib-shared-dual:
1981 $(MAKE) $(FLAGS_TO_PASS) \
1982 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1983 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1984 THREAD_KIND="$(THREAD_KIND)" \
1985 gnatlib-shared-default
1986 $(MV) rts/libgna*$(soext) .
1987 $(RM) ../stamp-gnatlib2
1988 $(MAKE) $(FLAGS_TO_PASS) \
1989 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1990 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1991 THREAD_KIND="$(THREAD_KIND)" \
1993 $(MV) libgna*$(soext) rts
1995 gnatlib-shared-dual-win32:
1996 $(MAKE) $(FLAGS_TO_PASS) \
1997 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1998 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1999 THREAD_KIND="$(THREAD_KIND)" \
2000 gnatlib-shared-win32
2001 $(MV) rts/libgna*$(soext) .
2002 $(RM) ../stamp-gnatlib2
2003 $(MAKE) $(FLAGS_TO_PASS) \
2004 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2005 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2006 THREAD_KIND="$(THREAD_KIND)" \
2008 $(MV) libgna*$(soext) rts
2010 # ??? we need to add the option to support auto-import of arrays/records to
2011 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2012 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2014 gnatlib-shared-win32:
2015 $(MAKE) $(FLAGS_TO_PASS) \
2016 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2017 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2018 THREAD_KIND="$(THREAD_KIND)" \
2020 $(RM) rts/libgna*$(soext)
2021 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2022 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2023 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2024 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
2025 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2026 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2027 $(GNATRTL_TASKING_OBJS) \
2028 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2029 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2032 $(MAKE) $(FLAGS_TO_PASS) \
2033 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2034 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2035 THREAD_KIND="$(THREAD_KIND)" \
2037 $(RM) rts/libgna*$(soext)
2038 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
2039 objdump --syms $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) | \
2040 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
2041 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
2042 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
2043 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
2044 sys\$$library:trace.exe \
2045 --for-linker=/noinform \
2046 --for-linker=SYMVEC_$$$$.opt \
2047 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2048 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
2049 objdump --syms $(GNATRTL_TASKING_OBJS) | \
2050 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
2051 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
2052 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
2053 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2054 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2055 sys\$$library:trace.exe \
2056 --for-linker=/noinform \
2057 --for-linker=SYMVEC_$$$$.opt \
2058 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2061 $(MAKE) $(FLAGS_TO_PASS) \
2062 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2063 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2064 THREAD_KIND="$(THREAD_KIND)" \
2065 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
2068 gnatlib-sjlj: ../stamp-gnatlib1
2069 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' rts/system.ads > rts/s.ads
2070 $(MV) rts/s.ads rts/system.ads
2071 $(MAKE) $(FLAGS_TO_PASS) \
2072 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2073 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2074 THREAD_KIND="$(THREAD_KIND)" \
2075 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2077 gnatlib-zcx: ../stamp-gnatlib1
2078 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' rts/system.ads > rts/s.ads
2079 $(MV) rts/s.ads rts/system.ads
2080 $(MAKE) $(FLAGS_TO_PASS) \
2081 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2082 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2083 THREAD_KIND="$(THREAD_KIND)" \
2084 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2086 # .s files for cross-building
2088 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
2090 # Compiling object files from source files.
2092 # Note that dependencies on obstack.h are not written
2093 # because that file is not part of GCC.
2094 # Dependencies on gvarargs.h are not written
2095 # because all that file does, when not compiling with GCC,
2096 # is include the system varargs.h.
2098 b_gnatl.c : $(GNATLINK_OBJS)
2099 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatl.c gnatlink.ali
2100 b_gnatl.o : b_gnatl.c
2102 b_gnatm.c : $(GNATMAKE_OBJS)
2103 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatm.c gnatmake.ali
2104 b_gnatm.o : b_gnatm.c
2106 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2107 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2108 ADA_SHARE_MAKE_DIR = $(prefix)/share/gnat
2110 # force no sibling call optimization on s-traceb.o so the number of stack
2111 # frames to be skipped when computing a call chain is not modified by
2112 # optimization. However we can do that only when building the runtime
2113 # (not the compiler) because the -fno-optimize-sibling-calls exists
2116 ifneq (,$(findstring xgcc,$(CC)))
2117 NO_SIBLING_ADAFLAGS=-fno-optimize-sibling-calls
2119 NO_SIBLING_ADAFLAGS=
2122 s-traceb.o : s-traceb.adb
2123 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2124 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) \
2127 adadecode.o : adadecode.c adadecode.h
2131 deftarg.o : deftarg.c
2133 exit.o : raise.h exit.c
2135 final.o : raise.h final.c
2143 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2144 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2146 init.o : init.c ada.h types.h raise.h
2147 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2148 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2150 raise.o : raise.c raise.h
2151 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2152 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2154 # Need to keep the frame pointer in this file to pop the stack properly on
2156 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c
2157 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
2158 -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2160 # In GNU Make, ignore whether `stage*' exists.
2161 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2162 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2166 # Gnatlbr is only used on VMS
2168 ../../gnatlbr$(exeext): ../../prefix.o
2169 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlbr --GCC="$(CC) $(ALL_ADAFLAGS)"
2170 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlbr
2171 $(GNATLINK) -v gnatlbr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \