1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2003 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 2, or (at your option)
11 #GCC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING. If not, write to
18 #the Free Software Foundation, 59 Temple Place - Suite 330,
19 #Boston, MA 02111-1307, USA.
21 # The makefile built from this file lives in the language subdirectory.
22 # Its purpose is to provide support for:
24 # 1) recursion where necessary, and only then (building .o's), and
25 # 2) building and debugging cc1 from the language subdirectory, and
28 # The parent makefile handles all other chores, with help from the
29 # language makefile fragment, of course.
31 # The targets for external use are:
32 # all, TAGS, ???mostlyclean, ???clean.
34 # This makefile will only work with Gnu make.
35 # The rules are written assuming a minimum subset of tools are available:
38 # MAKE: Only Gnu make will work.
39 # MV: Must accept (at least) one, maybe wildcard, source argument,
40 # a file or directory destination, and support creation/
41 # modification date preservation. Gnu mv -f works.
42 # RM: Must accept an arbitrary number of space separated file
43 # arguments, or one wildcard argument. Gnu rm works.
44 # RMDIR: Must delete a directory and all its contents. Gnu rm -rf works.
45 # ECHO: Must support command line redirection. Any Unix-like
46 # shell will typically provide this, otherwise a custom version
47 # is trivial to write.
49 # MKDIR: Gnu mkdir works.
50 # CHMOD: Gnu chmod works.
51 # true: Does nothing and returns a normal successful return code.
52 # pwd: Prints the current directory on stdout.
53 # cd: Change directory.
56 # BISON: Gnu bison works.
57 # FLEX: Gnu flex works.
58 # Other miscellaneous tools for obscure targets.
60 # Tell GNU make 3.79 not to run this directory in parallel.
61 # Not all of the required dependencies are present.
64 # Suppress smart makes who think they know how to automake Yacc files
67 # Variables that exist for you to override.
68 # See below for how to change them for certain systems.
70 # Various ways of specifying flags for compilations:
71 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
72 # BOOT_CFLAGS is the value of CFLAGS to pass
73 # to the stage2 and stage3 compilations
74 # XCFLAGS is used for most compilations but not when using the GCC just built.
77 BOOT_CFLAGS = -O $(CFLAGS)
78 # These exists to be overridden by the x-* and t-* files, respectively.
108 # How to invoke ranlib.
110 # Test to use to see whether ranlib exists on the system.
111 RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
114 PWD_COMMAND = $${PWDCMD-pwd}
115 # How to copy preserving the date
116 INSTALL_DATA_DATE = cp -p
119 GNATBIND = $(STAGE_PREFIX)gnatbind
120 GNATBIND_FLAGS = -static -x
122 ADAFLAGS = -W -Wall -gnatpg -gnata
123 SOME_ADAFLAGS =-gnata
124 FORCE_DEBUG_ADAFLAGS = -g
125 GNATLIBFLAGS = -gnatpg
126 GNATLIBCFLAGS = -g -O2
127 GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
129 ALL_ADA_CFLAGS = $(X_ADA_CFLAGS) $(T_ADA_CFLAGS) $(ADA_CFLAGS)
130 ALL_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \
132 MOST_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \
139 SYMDEPS = $(LIBINTL_DEP)
140 OUTPUT_OPTION = @OUTPUT_OPTION@
148 # Define this as & to perform parallel make on a Sequent.
149 # Note that this has some bugs, and it seems currently necessary
150 # to compile all the gen* files first by hand to avoid erroneous results.
153 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
154 # It omits XCFLAGS, and specifies -B./.
155 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
156 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)
158 # Tools to use when building a cross-compiler.
159 # These are used because `configure' appends `cross-make'
160 # to the makefile when making a cross-compiler.
162 # We don't use cross-make. Instead we use the tools from the build tree,
163 # if they are available.
164 # program_transform_name and objdir are set by configure.in.
165 program_transform_name =
169 xmake_file = @xmake_file@
170 tmake_file = @tmake_file@
171 host_canonical=@host@
172 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
173 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
175 # Directory where sources are, from where we are.
179 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
180 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
181 fcurdir := $(shell ${PWD_COMMAND})
182 fcurpfx := $(shell ${PWD_COMMAND})/
184 # Top build directory, relative to here.
187 # Internationalization library.
189 LIBINTL_DEP = @LIBINTL_DEP@
191 # Any system libraries needed just for GNAT.
192 SYSLIBS = @GNAT_LIBEXC@
194 # List of extra object files linked in with various programs.
195 EXTRA_GNATTOOLS_OBJS = ../../prefix.o ../../version.o
197 # List extra gnattools
200 # List of target dependent sources, overridden below as necessary
203 # Type of tools build we are doing; default is not compiling tools.
206 # End of variables for you to override.
210 # This tells GNU Make version 3 not to put all variables in the environment.
213 # tmake_file and xmake_file expand to lists with entries of the form
214 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
215 # need to adjust the paths. There can't be spaces in the subst arguments
216 # or we get spurious spaces in the actual list of files to include.
219 ifneq ($(tmake_file),)
220 include $(subst /config,/../config,$(tmake_file))
224 ifneq ($(xmake_file),)
225 include $(subst /config,/../config,$(xmake_file))
228 # Now figure out from those variables how to compile and link.
230 all.indirect: Makefile ../gnat1$(exeext)
232 # IN_GCC distinguishes between code compiled into GCC itself and other
233 # programs built during a bootstrap.
234 # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler.
235 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
237 # This is the variable actually used when we compile.
238 LOOSE_CFLAGS = `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
239 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_CFLAGS) \
243 ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
245 # This is where we get libiberty.a from.
246 LIBIBERTY = ../../libiberty/libiberty.a
248 # How to link with both our special library facilities
249 # and the system's installed libraries.
250 LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
251 LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
252 TOOLS_LIBS = $(LIBGNAT) $(EXTRA_GNATTOOLS_OBJS) ../../../libiberty/libiberty.a $(SYSLIBS)
254 # Specify the directories to be searched for header files.
255 # Both . and srcdir are used, in that order,
256 # so that tm.h and config.h will be found in the compilation
257 # subdirectory rather than in the source directory.
258 INCLUDES = -I- -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config \
259 -I$(srcdir)/../../include
261 ADA_INCLUDES = -I- -I. -I$(srcdir)
263 INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir) -I$(fsrcdir)/../config \
264 -I$(fsrcdir)/../../include -I$(fsrcdir)/..
265 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)
267 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
270 # Say how to compile Ada programs.
271 .SUFFIXES: .ada .adb .ads .asm
273 # Always use -I$(srcdir)/config when compiling.
275 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
278 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< \
282 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
285 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
287 # how to regenerate this file
288 Makefile: ../config.status $(srcdir)/Makefile.in $(srcdir)/../version.c
290 LANGUAGES="$(CONFIG_LANGUAGES)" \
292 CONFIG_FILES=ada/Makefile $(SHELL) config.status
294 # This tells GNU make version 3 not to export all the variables
295 # defined in this file into the environment.
298 # Lists of files for various purposes.
300 GNATLINK_OBJS = gnatlink.o link.o \
301 ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o gnatvsn.o \
302 hostparm.o namet.o opt.o osint.o output.o rident.o sdefault.o \
303 stylesw.o switch.o table.o tree_io.o types.o validsw.o widechar.o
305 GNATMAKE_OBJS = 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 krunch.o lib.o make.o makeusg.o \
309 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 scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o \
314 sinfo.o sinput.o sinput-c.o sinput-p.o \
315 snames.o stand.o stringt.o styleg.o stylesw.o validsw.o switch.o switch-m.o \
316 table.o targparm.o tempdir.o tree_io.o types.o \
317 uintp.o uname.o urealp.o usage.o widechar.o \
318 $(EXTRA_GNATMAKE_OBJS)
320 # Convert the target variable into a space separated list of architecture,
321 # manufacturer, and operating system and assign each of those to its own
324 host:=$(subst -, ,$(host_canonical))
325 targ:=$(subst -, ,$(target))
326 arch:=$(word 1,$(targ))
327 ifeq ($(words $(targ)),2)
329 osys:=$(word 2,$(targ))
331 manu:=$(word 2,$(targ))
332 osys:=$(word 3,$(targ))
335 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
336 # The members of each pair must be separated by a '<' and no whitespace.
337 # Each pair must be separated by some amount of whitespace from the following
342 LIBGNAT_TARGET_PAIRS = \
343 a-intnam.ads<4nintnam.ads \
344 s-inmaop.adb<5ninmaop.adb \
345 s-intman.adb<5nintman.adb \
346 s-osinte.ads<5nosinte.ads \
347 s-osprim.adb<7sosprim.adb \
348 s-taprop.adb<5ntaprop.adb \
349 s-taspri.ads<5ntaspri.ads
351 # Default shared object option. Note that we rely on the fact that the "soname"
352 # option will always be present and last in this flag, so that we can have
353 # $(SO_OPTS)libgnat-x.xx
355 SO_OPTS = -Wl,-soname,
357 # Default gnatlib-shared target.
358 # By default, equivalent to gnatlib.
359 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
360 # target when supported.
361 GNATLIB_SHARED = gnatlib
363 # default value for gnatmake's target dependent file
366 # By default, do not distribute prefix.o (in libgccprefix), since it is only
367 # needed by external GNAT tools such as gnatdist and Glide.
368 # Override this variable on native platforms when needed.
371 # To avoid duplicate code, use this variable to set PREFIX_OBJS when needed:
372 PREFIX_REAL_OBJS = ../prefix.o \
373 ../../libiberty/concat.o \
374 ../../libiberty/xmalloc.o \
375 ../../libiberty/xstrdup.o \
376 ../../libiberty/xexit.o
378 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
379 # $(strip STRING) removes leading and trailing spaces from STRING.
380 # If what's left is null then it's a match.
382 ifeq ($(strip $(filter-out %86 os2 OS2 os2_emx,$(arch) $(osys))),)
383 LIBGNAT_TARGET_PAIRS = \
384 a-excpol.adb<4wexcpol.adb \
385 a-intnam.ads<4nintnam.ads \
386 a-numaux.adb<86numaux.adb \
387 a-numaux.ads<86numaux.ads \
388 s-inmaop.adb<5ninmaop.adb \
389 s-interr.adb<5ointerr.adb \
390 s-intman.adb<5nintman.adb \
391 s-mastop.adb<5omastop.adb \
392 s-osinte.adb<5oosinte.adb \
393 s-osinte.ads<5oosinte.ads \
394 s-osprim.adb<5oosprim.adb \
395 s-parame.adb<5oparame.adb \
396 system.ads<5osystem.ads \
397 s-taprop.adb<5otaprop.adb \
398 s-taspri.ads<5otaspri.ads
400 EXTRA_GNATRTL_NONTASKING_OBJS = \
407 ifeq ($(strip $(filter-out %86 interix%,$(arch) $(osys))),)
408 LIBGNAT_TARGET_PAIRS = \
409 a-excpol.adb<4hexcpol.adb \
410 a-intnam.ads<4pintnam.ads \
411 a-numaux.adb<86numaux.adb \
412 a-numaux.ads<86numaux.ads \
413 g-soccon.ads<3psoccon.ads \
414 s-inmaop.adb<7sinmaop.adb \
415 s-intman.adb<7sintman.adb \
416 s-mastop.adb<5omastop.adb \
417 s-osinte.adb<7sosinte.adb \
418 s-osinte.ads<5posinte.ads \
419 s-osprim.adb<5posprim.adb \
420 s-taprop.adb<7staprop.adb \
421 system.ads<5psystem.ads \
422 s-taspri.ads<7staspri.ads \
423 s-tpopsp.adb<7stpopsp.adb
425 THREADSLIB = -lgthreads -lmalloc
426 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
429 # sysv5uw is SCO UnixWare 7
430 ifeq ($(strip $(filter-out %86 sysv5uw%,$(arch) $(osys))),)
431 LIBGNAT_TARGET_PAIRS = \
432 a-excpol.adb<4wexcpol.adb \
433 a-intnam.ads<41intnam.ads \
434 a-numaux.adb<86numaux.adb \
435 a-numaux.ads<86numaux.ads \
436 s-inmaop.adb<7sinmaop.adb \
437 s-intman.adb<7sintman.adb \
438 s-mastop.adb<5omastop.adb \
439 s-osinte.ads<51osinte.ads \
440 s-osinte.adb<51osinte.adb \
441 s-osprim.adb<5posprim.adb \
442 s-taprop.adb<7staprop.adb \
443 s-taspri.ads<7staspri.ads \
444 s-tpopsp.adb<5atpopsp.adb \
445 system.ads<51system.ads \
446 g-soccon.ads<31soccon.ads \
447 g-soliop.ads<31soliop.ads
449 THREADSLIB = -lthread
450 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
452 GNATLIB_SHARED = gnatlib-shared-dual
453 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
456 ifeq ($(strip $(filter-out alpha% dec vx%,$(targ))),)
457 LIBGNAT_TARGET_PAIRS = \
458 a-sytaco.ads<4zsytaco.ads \
459 a-sytaco.adb<4zsytaco.adb \
460 a-intnam.ads<4zintnam.ads \
461 a-numaux.ads<4znumaux.ads \
462 s-inmaop.adb<7sinmaop.adb \
463 s-interr.adb<5zinterr.adb \
464 s-intman.adb<5zintman.adb \
465 s-osinte.adb<5zosinte.adb \
466 s-osinte.ads<5zosinte.ads \
467 s-osprim.adb<5zosprim.adb \
468 s-parame.ads<5zparame.ads \
469 s-taprop.adb<5ztaprop.adb \
470 s-tpopsp.adb<5ztpopsp.adb \
471 s-taspri.ads<5ztaspri.ads \
472 s-vxwork.ads<5avxwork.ads \
473 g-soccon.ads<3zsoccon.ads \
474 g-socthi.ads<3zsocthi.ads \
475 g-socthi.adb<3zsocthi.adb \
476 system.ads<5zsystem.ads
478 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
479 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
482 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
483 LIBGNAT_TARGET_PAIRS = \
484 a-sytaco.ads<4zsytaco.ads \
485 a-sytaco.adb<4zsytaco.adb \
486 a-intnam.ads<4zintnam.ads \
487 a-numaux.ads<4znumaux.ads \
488 s-inmaop.adb<7sinmaop.adb \
489 s-interr.adb<5zinterr.adb \
490 s-intman.adb<5zintman.adb \
491 s-osinte.adb<5zosinte.adb \
492 s-osinte.ads<5zosinte.ads \
493 s-osprim.adb<5zosprim.adb \
494 s-parame.ads<5zparame.ads \
495 s-taprop.adb<5ztaprop.adb \
496 s-taspri.ads<5ztaspri.ads \
497 s-tpopsp.adb<5ztpopsp.adb \
498 s-vxwork.ads<5kvxwork.ads \
499 g-soccon.ads<3zsoccon.ads \
500 g-socthi.ads<3zsocthi.ads \
501 g-socthi.adb<3zsocthi.adb \
502 system.ads<5ksystem.ads
504 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
506 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
507 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
509 ifeq ($(strip $(filter-out yes,$(TRACE))),)
510 LIBGNAT_TARGET_PAIRS += \
511 s-traces.adb<7straces.adb \
512 s-tratas.adb<7stratas.adb \
513 s-trafor.adb<7strafor.adb \
514 s-trafor.ads<7strafor.ads \
515 s-tfsetr.adb<5ztfsetr.adb
519 ifeq ($(strip $(filter-out powerpc% wrs vxworks,$(targ))),)
520 LIBGNAT_TARGET_PAIRS = \
521 a-sytaco.ads<4zsytaco.ads \
522 a-sytaco.adb<4zsytaco.adb \
523 a-intnam.ads<4zintnam.ads \
524 a-numaux.ads<4znumaux.ads \
525 s-inmaop.adb<7sinmaop.adb \
526 s-interr.adb<5zinterr.adb \
527 s-intman.adb<5zintman.adb \
528 s-osinte.adb<5zosinte.adb \
529 s-osinte.ads<5zosinte.ads \
530 s-osprim.adb<5zosprim.adb \
531 s-parame.ads<5zparame.ads \
532 s-taprop.adb<5ztaprop.adb \
533 s-taspri.ads<5ztaspri.ads \
534 s-tpopsp.adb<5ztpopsp.adb \
535 s-vxwork.ads<5pvxwork.ads \
536 g-soccon.ads<3zsoccon.ads \
537 g-socthi.ads<3zsocthi.ads \
538 g-socthi.adb<3zsocthi.adb \
539 system.ads<5ysystem.ads
541 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
543 EXTRA_HIE_NONE_TARGET_PAIRS= \
544 system.ads<50system.ads
546 EXTRA_RAVEN_SOURCES=i-vxwork.ads s-vxwork.ads
547 EXTRA_RAVEN_OBJS=i-vxwork.o s-vxwork.o
548 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
549 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
550 HIE_RAVEN_TARGET_PAIRS=\
551 $(HIE_NONE_TARGET_PAIRS) \
552 a-reatim.ads<1areatim.ads \
553 a-reatim.adb<1areatim.adb \
554 a-retide.adb<1aretide.adb \
555 a-interr.adb<1ainterr.adb \
556 s-interr.ads<1sinterr.ads \
557 s-interr.adb<1sinterr.adb \
558 s-taskin.ads<1staskin.ads \
559 s-taskin.adb<1staskin.adb \
560 s-tarest.adb<1starest.adb \
561 s-tposen.ads<1stposen.ads \
562 s-tposen.adb<1stposen.adb \
563 s-osinte.adb<1sosinte.adb \
564 s-taprop.ads<1staprop.ads \
565 s-taprop.adb<1staprop.adb \
566 s-taprob.ads<1staprob.ads \
567 s-taprob.adb<1staprob.adb \
568 a-sytaco.ads<1asytaco.ads \
569 a-sytaco.adb<1asytaco.adb \
570 a-intnam.ads<4zintnam.ads \
571 s-osinte.ads<5zosinte.ads \
572 s-parame.ads<5zparame.ads \
573 s-taspri.ads<5ztaspri.ads \
574 s-vxwork.ads<5pvxwork.ads \
575 a-taside.adb<1ataside.adb \
577 CERT_LEVEL_B_TARGET_PAIRS=\
578 a-tags.ads<1atags.ads \
579 a-tags.adb<1atags.adb \
580 a-except.adb<2aexcept.adb \
581 a-except.ads<2aexcept.ads \
582 a-excach.adb<2aexcach.adb \
585 s-init.ads<2sinit.ads \
586 s-init.adb<5zinit.adb \
587 s-memory.adb<2smemory.adb \
588 s-memory.ads<2smemory.ads \
589 s-osinte.ads<2sosinte.ads \
590 s-secsta.ads<2ssecsta.ads \
591 s-secsta.adb<2ssecsta.adb \
592 s-soflin.adb<2ssoflin.adb \
593 s-soflin.ads<2ssoflin.ads \
594 s-stalib.adb<1sstalib.adb \
595 s-stalib.ads<1sstalib.ads \
596 s-thrini.ads<2sthrini.ads \
597 s-thrini.adb<5zthrini.adb \
598 s-tiitho.adb<5ztiitho.adb \
599 s-traceb.adb<2straceb.adb \
600 s-traceb.ads<2straceb.ads \
601 system.ads<5isystem.ads
603 ifeq ($(strip $(filter-out yes,$(TRACE))),)
604 LIBGNAT_TARGET_PAIRS += \
605 s-traces.adb<7straces.adb \
606 s-trafor.adb<7strafor.adb \
607 s-trafor.ads<7strafor.ads \
608 s-tratas.adb<7stratas.adb \
609 s-tfsetr.adb<5ztfsetr.adb
614 ifeq ($(strip $(filter-out powerpc% wrs vxworksae,$(targ))),)
615 LIBGNAT_TARGET_PAIRS = \
616 a-sytaco.ads<4zsytaco.ads \
617 a-sytaco.adb<4zsytaco.adb \
618 a-intnam.ads<4zintnam.ads \
619 a-numaux.ads<4znumaux.ads \
620 s-inmaop.adb<7sinmaop.adb \
621 s-interr.adb<5zinterr.adb \
622 s-intman.adb<5zintman.adb \
623 s-osinte.adb<5zosinte.adb \
624 s-osinte.ads<5zosinte.ads \
625 s-osprim.adb<5zosprim.adb \
626 s-parame.ads<5yparame.ads \
627 s-taprop.adb<5ztaprop.adb \
628 s-taspri.ads<5ztaspri.ads \
629 s-thread.adb<5zthread.adb \
630 s-thrini.ads<2sthrini.ads \
631 s-thrini.adb<5zthrini.adb \
632 s-tiitho.adb<5ytiitho.adb \
633 s-tpopsp.adb<5ztpopsp.adb \
634 s-vxwork.ads<5pvxwork.ads \
635 g-soccon.ads<3zsoccon.ads \
636 g-socthi.ads<3zsocthi.ads \
637 g-socthi.adb<3zsocthi.adb \
638 system.ads<5ysystem.ads
640 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
642 EXTRA_HIE_NONE_TARGET_PAIRS= \
643 system.ads<50system.ads
645 EXTRA_RAVEN_SOURCES=i-vxwork.ads s-vxwork.ads
646 EXTRA_RAVEN_OBJS=i-vxwork.o s-vxwork.o
647 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-thread.o s-thrini.o
648 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
649 HIE_RAVEN_TARGET_PAIRS=\
650 $(HIE_NONE_TARGET_PAIRS) \
651 a-reatim.ads<1areatim.ads \
652 a-reatim.adb<1areatim.adb \
653 a-retide.adb<1aretide.adb \
654 a-interr.adb<1ainterr.adb \
655 s-interr.ads<1sinterr.ads \
656 s-interr.adb<1sinterr.adb \
657 s-taskin.ads<1staskin.ads \
658 s-taskin.adb<1staskin.adb \
659 s-tarest.adb<1starest.adb \
660 s-tposen.ads<1stposen.ads \
661 s-tposen.adb<1stposen.adb \
662 s-osinte.adb<1sosinte.adb \
663 s-taprop.ads<1staprop.ads \
664 s-taprop.adb<1staprop.adb \
665 s-taprob.ads<1staprob.ads \
666 s-taprob.adb<1staprob.adb \
667 a-sytaco.ads<1asytaco.ads \
668 a-sytaco.adb<1asytaco.adb \
669 a-intnam.ads<4zintnam.ads \
670 s-osinte.ads<5zosinte.ads \
671 s-parame.ads<5zparame.ads \
672 s-taspri.ads<5ztaspri.ads \
673 s-vxwork.ads<5pvxwork.ads \
674 a-taside.adb<1ataside.adb \
676 CERT_LEVEL_B_TARGET_PAIRS=\
677 a-tags.ads<1atags.ads \
678 a-tags.adb<1atags.adb \
679 a-except.adb<2aexcept.adb \
680 a-except.ads<2aexcept.ads \
681 a-excach.adb<2aexcach.adb \
684 s-init.ads<2sinit.ads \
685 s-init.adb<5zinit.adb \
686 s-memory.adb<2smemory.adb \
687 s-memory.ads<2smemory.ads \
688 s-osinte.ads<2sosinte.ads \
689 s-secsta.ads<2ssecsta.ads \
690 s-secsta.adb<2ssecsta.adb \
691 s-soflin.adb<2ssoflin.adb \
692 s-soflin.ads<2ssoflin.ads \
693 s-stalib.adb<1sstalib.adb \
694 s-stalib.ads<1sstalib.ads \
695 s-thrini.adb<5zthrini.adb \
696 s-thrini.ads<2sthrini.ads \
697 s-thrini.adb<5zthrini.adb \
698 s-tiitho.adb<5ytiitho.adb \
699 s-traceb.adb<2straceb.adb \
700 s-traceb.ads<2straceb.ads \
701 system.ads<5isystem.ads
703 ifeq ($(strip $(filter-out yes,$(TRACE))),)
704 LIBGNAT_TARGET_PAIRS += \
705 s-traces.adb<7straces.adb \
706 s-trafor.adb<7strafor.adb \
707 s-trafor.ads<7strafor.ads \
708 s-tratas.adb<7stratas.adb \
709 s-tfsetr.adb<5ztfsetr.adb
713 ifeq ($(strip $(filter-out powerpc% unknown elf,$(targ))),)
714 EXTRA_HIE_NONE_TARGET_PAIRS= \
715 system.ads<59system.ads
717 LIBGNAT_TARGET_PAIRS = \
718 $(HIE_NONE_TARGET_PAIRS) \
719 $(EXTRA_HIE_NONE_TARGET_PAIRS)
722 ifeq ($(strip $(filter-out sparc% unknown elf,$(targ))),)
723 EXTRA_HIE_NONE_TARGET_PAIRS= \
724 system.ads<5rsystem.ads
726 LIBGNAT_TARGET_PAIRS = \
727 $(HIE_NONE_TARGET_PAIRS) \
728 $(EXTRA_HIE_NONE_TARGET_PAIRS)
731 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
732 LIBGNAT_TARGET_PAIRS = \
733 a-sytaco.ads<4zsytaco.ads \
734 a-sytaco.adb<4zsytaco.adb \
735 a-intnam.ads<4zintnam.ads \
736 a-numaux.ads<4znumaux.ads \
737 s-inmaop.adb<7sinmaop.adb \
738 s-interr.adb<5zinterr.adb \
739 s-intman.adb<5zintman.adb \
740 s-osinte.adb<5zosinte.adb \
741 s-osinte.ads<5zosinte.ads \
742 s-osprim.adb<5zosprim.adb \
743 s-parame.ads<5zparame.ads \
744 s-taprop.adb<5ztaprop.adb \
745 s-taspri.ads<5ztaspri.ads \
746 s-tpopsp.adb<5ztpopsp.adb \
747 s-vxwork.ads<5svxwork.ads \
748 g-soccon.ads<3zsoccon.ads \
749 g-socthi.ads<3zsocthi.ads \
750 g-socthi.adb<3zsocthi.adb \
751 system.ads<5csystem.ads \
753 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
755 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
756 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
759 ifeq ($(strip $(filter-out xscale% coff wrs vx%,$(targ))),)
760 LIBGNAT_TARGET_PAIRS = \
761 a-sytaco.ads<4zsytaco.ads \
762 a-sytaco.adb<4zsytaco.adb \
763 a-intnam.ads<4zintnam.ads \
764 a-numaux.ads<4znumaux.ads \
765 s-inmaop.adb<7sinmaop.adb \
766 s-interr.adb<5zinterr.adb \
767 s-intman.adb<5zintman.adb \
768 s-osinte.adb<5zosinte.adb \
769 s-osinte.ads<5zosinte.ads \
770 s-osprim.adb<5zosprim.adb \
771 s-parame.ads<5zparame.ads \
772 s-taprop.adb<5ztaprop.adb \
773 s-taspri.ads<5ztaspri.ads \
774 s-tpopsp.adb<5ztpopsp.adb \
775 s-vxwork.ads<5xvxwork.ads \
776 g-soccon.ads<3zsoccon.ads \
777 g-socthi.ads<3zsocthi.ads \
778 g-socthi.adb<3zsocthi.adb \
779 system.ads<5rsystem.ads
781 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
783 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
784 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
787 ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)
788 LIBGNAT_TARGET_PAIRS = \
789 a-sytaco.ads<4zsytaco.ads \
790 a-sytaco.adb<4zsytaco.adb \
791 a-intnam.ads<4zintnam.ads \
792 a-numaux.ads<4znumaux.ads \
793 s-inmaop.adb<7sinmaop.adb \
794 s-interr.adb<5zinterr.adb \
795 s-intman.adb<5zintman.adb \
796 s-osinte.adb<5zosinte.adb \
797 s-osinte.ads<5zosinte.ads \
798 s-osprim.adb<5zosprim.adb \
799 s-parame.ads<5zparame.ads \
800 s-taprop.adb<5ztaprop.adb \
801 s-taspri.ads<5ztaspri.ads \
802 s-tpopsp.adb<5ztpopsp.adb \
803 s-vxwork.ads<5mvxwork.ads \
804 g-soccon.ads<3zsoccon.ads \
805 g-socthi.ads<3zsocthi.ads \
806 g-socthi.adb<3zsocthi.adb \
807 system.ads<5msystem.ads
809 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
811 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
812 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
815 ifeq ($(strip $(filter-out sparc sun solaris%,$(targ))),)
816 LIBGNAT_TARGET_PAIRS = \
817 a-intnam.ads<4sintnam.ads \
818 s-inmaop.adb<7sinmaop.adb \
819 s-intman.adb<5sintman.adb \
820 s-osinte.adb<5sosinte.adb \
821 s-osinte.ads<5sosinte.ads \
822 s-osprim.adb<5sosprim.adb \
823 s-parame.adb<5sparame.adb \
824 s-taprop.adb<5staprop.adb \
825 s-tasinf.adb<5stasinf.adb \
826 s-tasinf.ads<5stasinf.ads \
827 s-taspri.ads<5staspri.ads \
828 s-tpopsp.adb<5stpopsp.adb \
829 g-soccon.ads<3ssoccon.ads \
830 g-soliop.ads<3ssoliop.ads \
831 system.ads<5ssystem.ads
833 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5sml-tgt.adb
835 THREADSLIB = -lposix4 -lthread
836 MISCLIB = -lposix4 -lnsl -lsocket
837 SYMLIB = -laddr2line -lbfd $(LIBINTL)
839 GNATLIB_SHARED = gnatlib-shared-dual
841 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
842 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
844 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
845 LIBGNAT_TARGET_PAIRS = \
846 a-intnam.ads<4sintnam.ads \
847 s-inmaop.adb<7sinmaop.adb \
848 s-intman.adb<5sintman.adb \
849 s-osinte.adb<7sosinte.adb \
850 s-osinte.ads<5tosinte.ads \
851 s-osprim.adb<5sosprim.adb \
852 s-taprop.adb<7staprop.adb \
853 s-taspri.ads<7staspri.ads \
854 s-tpopsp.adb<7stpopsp.adb \
855 g-soccon.ads<3ssoccon.ads \
856 g-soliop.ads<3ssoliop.ads \
857 system.ads<5ssystem.ads
859 THREADSLIB = -lgthreads -lmalloc
862 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
863 LIBGNAT_TARGET_PAIRS = \
864 a-intnam.ads<4sintnam.ads \
865 s-inmaop.adb<7sinmaop.adb \
866 s-intman.adb<7sintman.adb \
867 s-osinte.adb<5iosinte.adb \
868 s-osinte.ads<54osinte.ads \
869 s-osprim.adb<5sosprim.adb \
870 s-taprop.adb<7staprop.adb \
871 s-taspri.ads<7staspri.ads \
872 s-tpopsp.adb<5atpopsp.adb \
873 g-soccon.ads<3ssoccon.ads \
874 g-soliop.ads<3ssoliop.ads \
875 system.ads<5ssystem.ads
877 THREADSLIB = -lposix4 -lpthread
880 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
881 LIBGNAT_TARGET_PAIRS = \
882 a-intnam.ads<4sintnam.ads \
883 s-inmaop.adb<7sinmaop.adb \
884 s-intman.adb<5sintman.adb \
885 s-osinte.adb<5sosinte.adb \
886 s-osinte.ads<5sosinte.ads \
887 s-osprim.adb<5sosprim.adb \
888 s-parame.adb<5sparame.adb \
889 s-taprop.adb<5staprop.adb \
890 s-tasinf.adb<5stasinf.adb \
891 s-tasinf.ads<5stasinf.ads \
892 s-taspri.ads<5staspri.ads \
893 s-tpopsp.adb<5stpopsp.adb \
894 g-soccon.ads<3ssoccon.ads \
895 g-soliop.ads<3ssoliop.ads \
896 system.ads<5usystem.ads
900 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
901 LIBGNAT_TARGET_PAIRS = \
902 a-numaux.adb<86numaux.adb \
903 a-numaux.ads<86numaux.ads \
904 a-intnam.ads<4sintnam.ads \
905 s-inmaop.adb<7sinmaop.adb \
906 s-intman.adb<5sintman.adb \
907 s-mastop.adb<5omastop.adb \
908 s-osinte.adb<5sosinte.adb \
909 s-osinte.ads<5sosinte.ads \
910 s-osprim.adb<5sosprim.adb \
911 s-parame.adb<5sparame.adb \
912 s-taprop.adb<5staprop.adb \
913 s-tasinf.adb<5stasinf.adb \
914 s-tasinf.ads<5stasinf.ads \
915 s-taspri.ads<5staspri.ads \
916 s-tpopsp.adb<5stpopsp.adb \
917 g-soccon.ads<3ssoccon.ads \
918 g-soliop.ads<3ssoliop.ads \
919 system.ads<5esystem.ads
921 THREADSLIB = -lposix4 -lthread
922 MISCLIB = -lposix4 -lnsl -lsocket
924 GNATLIB_SHARED = gnatlib-shared-dual
925 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
926 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
929 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
930 LIBGNAT_TARGET_PAIRS = \
931 a-intnam.ads<4lintnam.ads \
932 a-numaux.adb<86numaux.adb \
933 a-numaux.ads<86numaux.ads \
934 s-inmaop.adb<7sinmaop.adb \
935 s-intman.adb<5lintman.adb \
936 s-mastop.adb<5omastop.adb \
937 s-osinte.adb<5iosinte.adb \
938 s-osinte.ads<5iosinte.ads \
939 s-osprim.adb<7sosprim.adb \
940 s-taprop.adb<5itaprop.adb \
941 s-taspri.ads<5itaspri.ads \
942 s-tpopsp.adb<5atpopsp.adb \
943 s-parame.adb<5lparame.adb \
944 system.ads<5lsystem.ads
946 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5lml-tgt.adb
947 SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
948 THREADSLIB = -lpthread
949 GNATLIB_SHARED = gnatlib-shared-dual
951 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
952 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
954 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
955 LIBGNAT_TARGET_PAIRS = \
956 a-intnam.ads<4lintnam.ads \
957 a-numaux.adb<86numaux.adb \
958 a-numaux.ads<86numaux.ads \
959 s-inmaop.adb<7sinmaop.adb \
960 s-intman.adb<5lintman.adb \
961 s-mastop.adb<5omastop.adb \
962 s-osinte.adb<7sosinte.adb \
963 s-osinte.ads<5losinte.ads \
964 s-osprim.adb<7sosprim.adb \
965 s-taprop.adb<7staprop.adb \
966 s-taspri.ads<7staspri.ads \
967 s-tpopsp.adb<7stpopsp.adb \
968 system.ads<5lsystem.ads
970 THREADSLIB = -lgthreads -lmalloc
974 ifeq ($(strip $(filter-out %86 freebsd%,$(arch) $(osys))),)
975 LIBGNAT_TARGET_PAIRS = \
976 a-intnam.ads<45intnam.ads \
977 g-soccon.ads<35soccon.ads \
978 s-inmaop.adb<7sinmaop.adb \
979 s-intman.adb<7sintman.adb \
980 s-mastop.adb<5omastop.adb \
981 s-osinte.adb<55osinte.adb \
982 s-osinte.ads<55osinte.ads \
983 s-osprim.adb<7sosprim.adb \
984 s-taprop.adb<7staprop.adb \
985 s-taspri.ads<7staspri.ads \
986 s-tpopsp.adb<7stpopsp.adb \
987 system.ads<56system.ads
990 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
993 ifeq ($(strip $(filter-out mips sgi irix%,$(targ))),)
994 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
995 LIBGNAT_TARGET_PAIRS = \
996 a-intnam.ads<4gintnam.ads \
997 s-inmaop.adb<7sinmaop.adb \
998 s-intman.adb<5fintman.adb \
999 s-mastop.adb<5gmastop.adb \
1000 s-osinte.adb<5fosinte.adb \
1001 s-osinte.ads<5fosinte.ads \
1002 s-osprim.adb<7sosprim.adb \
1003 s-proinf.adb<5gproinf.adb \
1004 s-proinf.ads<5gproinf.ads \
1005 s-taprop.adb<5ftaprop.adb \
1006 s-tasinf.ads<5ftasinf.ads \
1007 s-taspri.ads<7staspri.ads \
1008 s-tpopsp.adb<7stpopsp.adb \
1009 s-traceb.adb<7straceb.adb \
1010 g-soccon.ads<3gsoccon.ads \
1011 system.ads<5gsystem.ads
1013 THREADSLIB = -lpthread
1014 GNATLIB_SHARED = gnatlib-shared-default
1017 LIBGNAT_TARGET_PAIRS = \
1018 a-intnam.ads<4gintnam.ads \
1019 s-inmaop.adb<5ninmaop.adb \
1020 s-interr.adb<5ginterr.adb \
1021 s-intman.adb<5gintman.adb \
1022 s-mastop.adb<5gmastop.adb \
1023 s-osinte.adb<5fosinte.adb \
1024 s-osinte.ads<5gosinte.ads \
1025 s-osprim.adb<7sosprim.adb \
1026 s-proinf.adb<5gproinf.adb \
1027 s-proinf.ads<5gproinf.ads \
1028 s-taprop.adb<5gtaprop.adb \
1029 s-tasinf.adb<5gtasinf.adb \
1030 s-tasinf.ads<5gtasinf.ads \
1031 s-taspri.ads<7staspri.ads \
1032 s-traceb.adb<7straceb.adb \
1033 g-soccon.ads<3gsoccon.ads \
1034 system.ads<5fsystem.ads
1036 THREADSLIB = -lathread
1039 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5gml-tgt.adb
1042 SO_OPTS = -Wl,-all,-set_version,sgi1.0,-update_registry,../so_locations,-soname,
1043 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1044 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
1047 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
1048 LIBGNAT_TARGET_PAIRS = \
1049 a-excpol.adb<4wexcpol.adb \
1050 a-intnam.ads<4hintnam.ads \
1051 s-inmaop.adb<7sinmaop.adb \
1052 s-interr.adb<5ginterr.adb \
1053 s-intman.adb<7sintman.adb \
1054 s-osinte.adb<5hosinte.adb \
1055 s-osinte.ads<5hosinte.ads \
1056 s-parame.ads<5hparame.ads \
1057 s-osprim.adb<7sosprim.adb \
1058 s-taprop.adb<5htaprop.adb \
1059 s-taspri.ads<5htaspri.ads \
1060 s-tpopsp.adb<7stpopsp.adb \
1061 g-soccon.ads<3hsoccon.ads \
1062 system.ads<5hsystem.ads
1064 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1067 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
1068 LIBGNAT_TARGET_PAIRS = \
1069 a-intnam.ads<4hintnam.ads \
1070 s-inmaop.adb<7sinmaop.adb \
1071 s-intman.adb<7sintman.adb \
1072 s-osinte.adb<5iosinte.adb \
1073 s-osinte.ads<53osinte.ads \
1074 s-parame.ads<5hparame.ads \
1075 s-osprim.adb<7sosprim.adb \
1076 s-traceb.adb<5htraceb.adb \
1077 s-taprop.adb<7staprop.adb \
1078 s-taspri.ads<7staspri.ads \
1079 s-tpopsp.adb<5atpopsp.adb \
1080 g-soccon.ads<3hsoccon.ads \
1081 system.ads<5hsystem.ads
1083 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5hml-tgt.adb
1084 TGT_LIB = /usr/lib/libcl.a
1085 THREADSLIB = -lpthread
1086 SYMLIB = -laddr2line -lbfd $(LIBINTL)
1090 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1091 GNATLIB_SHARED = gnatlib-shared-dual
1092 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
1094 ifeq ($(strip $(filter-out dce DCE,$(THREAD_KIND))),)
1095 LIBGNAT_TARGET_PAIRS = \
1096 a-excpol.adb<4wexcpol.adb \
1097 a-intnam.ads<4hintnam.ads \
1098 s-inmaop.adb<7sinmaop.adb \
1099 s-interr.adb<5ginterr.adb \
1100 s-intman.adb<7sintman.adb \
1101 s-osinte.adb<5hosinte.adb \
1102 s-osinte.ads<5hosinte.ads \
1103 s-parame.ads<5hparame.ads \
1104 s-osprim.adb<7sosprim.adb \
1105 s-taprop.adb<5htaprop.adb \
1106 s-taspri.ads<5htaspri.ads \
1107 s-tpopsp.adb<7stpopsp.adb \
1108 g-soccon.ads<3hsoccon.ads \
1109 system.ads<5hsystem.ads
1116 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
1117 LIBGNAT_TARGET_PAIRS = \
1118 a-intnam.ads<4cintnam.ads \
1119 s-inmaop.adb<7sinmaop.adb \
1120 s-intman.adb<7sintman.adb \
1121 s-osinte.adb<5bosinte.adb \
1122 s-osinte.ads<5bosinte.ads \
1123 s-osprim.adb<7sosprim.adb \
1124 s-taprop.adb<7staprop.adb \
1125 s-taspri.ads<7staspri.ads \
1126 s-tpopsp.adb<7stpopsp.adb \
1127 g-soccon.ads<3bsoccon.ads \
1128 system.ads<5bsystem.ads
1130 THREADSLIB = -lpthreads
1131 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1133 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
1134 LIBGNAT_TARGET_PAIRS = \
1135 a-intnam.ads<4cintnam.ads \
1136 s-inmaop.adb<7sinmaop.adb \
1137 s-intman.adb<7sintman.adb \
1138 s-osinte.adb<7sosinte.adb \
1139 s-osinte.ads<5cosinte.ads \
1140 s-osprim.adb<7sosprim.adb \
1141 s-taprop.adb<7staprop.adb \
1142 s-taspri.ads<7staspri.ads \
1143 s-tpopsp.adb<7stpopsp.adb \
1144 g-soccon.ads<3bsoccon.ads \
1145 system.ads<5bsystem.ads
1147 THREADSLIB = -lgthreads -lmalloc
1150 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5bml-tgt.adb
1152 SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
1156 ifeq ($(strip $(filter-out lynxos,$(osys))),)
1157 ifeq ($(strip $(filter-out %86 lynxos,$(arch) $(osys))),)
1158 LIBGNAT_TARGET_PAIRS = \
1159 a-numaux.adb<86numaux.adb \
1160 a-numaux.ads<86numaux.ads \
1161 a-intnam.ads<42intnam.ads \
1162 s-mastop.adb<5omastop.adb \
1163 s-inmaop.adb<7sinmaop.adb \
1164 s-intman.adb<7sintman.adb \
1165 s-osinte.adb<56osinte.adb \
1166 s-osinte.ads<56osinte.ads \
1167 s-osprim.adb<7sosprim.adb \
1168 s-taprop.adb<56taprop.adb \
1169 s-taspri.ads<56taspri.ads \
1170 s-tpopsp.adb<56tpopsp.adb \
1171 system.ads<58system.ads
1173 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1176 LIBGNAT_TARGET_PAIRS = \
1177 a-intnam.ads<42intnam.ads \
1178 s-inmaop.adb<7sinmaop.adb \
1179 s-intman.adb<7sintman.adb \
1180 s-osinte.adb<52osinte.adb \
1181 s-osinte.ads<52osinte.ads \
1182 s-osprim.adb<7sosprim.adb \
1183 s-taprop.adb<7staprop.adb \
1184 s-taspri.ads<7staspri.ads \
1185 s-tpopsp.adb<7stpopsp.adb \
1186 system.ads<57system.ads
1188 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
1189 LIBGNAT_TARGET_PAIRS = \
1190 a-intnam.ads<42intnam.ads \
1191 s-inmaop.adb<7sinmaop.adb \
1192 s-intman.adb<7sintman.adb \
1193 s-osinte.adb<56osinte.adb \
1194 s-osinte.ads<56osinte.ads \
1195 s-osprim.adb<7sosprim.adb \
1196 s-taprop.adb<56taprop.adb \
1197 s-taspri.ads<56taspri.ads \
1198 s-tpopsp.adb<56tpopsp.adb \
1199 system.ads<57system.ads
1205 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1206 LIBGNAT_TARGET_PAIRS = \
1207 a-intnam.ads<4rintnam.ads \
1208 s-inmaop.adb<7sinmaop.adb \
1209 s-intman.adb<7sintman.adb \
1210 s-osinte.adb<5rosinte.adb \
1211 s-osinte.ads<5rosinte.ads \
1212 s-osprim.adb<7sosprim.adb \
1213 s-parame.adb<5rparame.adb \
1214 s-taprop.adb<7staprop.adb \
1215 s-taspri.ads<7staspri.ads \
1216 s-tpopsp.adb<5rtpopsp.adb
1219 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1220 LIBGNAT_TARGET_PAIRS = \
1221 a-intnam.ads<4aintnam.ads \
1222 s-inmaop.adb<7sinmaop.adb \
1223 s-intman.adb<7sintman.adb \
1224 s-mastop.adb<5amastop.adb \
1225 s-osinte.adb<5aosinte.adb \
1226 s-osinte.ads<5aosinte.ads \
1227 s-osprim.adb<5posprim.adb \
1228 s-taprop.adb<5ataprop.adb \
1229 s-tasinf.ads<5atasinf.ads \
1230 s-taspri.ads<5ataspri.ads \
1231 s-tpopsp.adb<5atpopsp.adb \
1232 s-traceb.adb<7straceb.adb \
1233 g-soccon.ads<3asoccon.ads \
1234 system.ads<5asystem.ads
1236 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5aml-tgt.adb
1239 SYMLIB = -laddr2line -lbfd $(LIBINTL)
1240 THREADSLIB = -lpthread -lmach -lexc -lrt
1241 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1242 GNATLIB_SHARED = gnatlib-shared-default
1243 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
1246 ifeq ($(strip $(filter-out alpha% dec vms% openvms% alphavms%,$(host))),)
1253 @ gnu:[bin]vmssymvec $<
1256 ifeq ($(strip $(filter-out alpha% ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1257 ifeq ($(strip $(filter-out alpha64% dec vms% openvms% alphavms%,$(targ))),)
1258 LIBGNAT_TARGET_PAIRS_AUX =
1260 ifeq ($(strip $(filter-out express EXPRESS,$(THREAD_KIND))),)
1261 LIBGNAT_TARGET_PAIRS_AUX = \
1262 s-parame.ads<5xparame.ads
1264 LIBGNAT_TARGET_PAIRS_AUX = \
1265 s-parame.ads<5vparame.ads
1269 LIBGNAT_TARGET_PAIRS = \
1270 a-caldel.adb<4vcaldel.adb \
1271 a-calend.adb<4vcalend.adb \
1272 a-calend.ads<4vcalend.ads \
1273 a-excpol.adb<4wexcpol.adb \
1274 a-intnam.ads<4vintnam.ads \
1275 g-expect.adb<3vexpect.adb \
1276 g-soccon.ads<3vsoccon.ads \
1277 g-socthi.ads<3vsocthi.ads \
1278 g-socthi.adb<3vsocthi.adb \
1279 g-trasym.adb<3vtrasym.adb \
1280 i-cstrea.adb<6vcstrea.adb \
1281 i-cpp.adb<6vcpp.adb \
1282 interfac.ads<6vinterf.ads \
1283 s-asthan.adb<5vasthan.adb \
1284 s-inmaop.adb<5vinmaop.adb \
1285 s-interr.adb<5vinterr.adb \
1286 s-intman.adb<5vintman.adb \
1287 s-intman.ads<5vintman.ads \
1288 s-osinte.adb<5vosinte.adb \
1289 s-osinte.ads<5vosinte.ads \
1290 s-osprim.adb<5vosprim.adb \
1291 s-osprim.ads<5vosprim.ads \
1292 s-taprop.adb<5vtaprop.adb \
1293 s-taspri.ads<5vtaspri.ads \
1294 s-tpopsp.adb<7stpopsp.adb \
1295 s-tpopde.adb<5vtpopde.adb \
1296 s-tpopde.ads<5vtpopde.ads \
1297 s-traent.adb<5vtraent.adb \
1298 s-traent.ads<5vtraent.ads \
1299 s-vaflop.adb<5vvaflop.adb \
1300 system.ads<5xsystem.ads \
1301 $(LIBGNAT_TARGET_PAIRS_AUX)
1303 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5vml-tgt.adb
1305 GNATLIB_SHARED=gnatlib-shared-vms
1306 EXTRA_LIBGNAT_SRCS=vmshandler.asm
1307 EXTRA_LIBGNAT_OBJS=vmshandler.o
1308 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1310 ../../gnatlbr$(exeext) \
1311 ,,/../gnatsym$(exeext)
1312 # This command transforms (YYYYMMDD) into YY,MMDD
1313 GSMATCH_VERSION := $(shell grep "^ *Gnat_Version_String" $(fsrcpfx)gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\)/\2,\3/')
1314 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/' -e 's/\./_/g'))
1315 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1318 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1319 LIBGNAT_TARGET_PAIRS = \
1320 a-calend.adb<4wcalend.adb \
1321 a-excpol.adb<4wexcpol.adb \
1322 a-intnam.ads<4wintnam.ads \
1323 a-numaux.adb<86numaux.adb \
1324 a-numaux.ads<86numaux.ads \
1325 s-gloloc.adb<5wgloloc.adb \
1326 s-inmaop.adb<5ninmaop.adb \
1327 s-interr.adb<5ginterr.adb \
1328 s-intman.adb<5wintman.adb \
1329 s-mastop.adb<5omastop.adb \
1330 s-memory.adb<5wmemory.adb \
1331 s-osinte.ads<5wosinte.ads \
1332 s-osprim.adb<5wosprim.adb \
1333 s-taprop.adb<5wtaprop.adb \
1334 s-taspri.ads<5wtaspri.ads \
1335 g-socthi.ads<3wsocthi.ads \
1336 g-socthi.adb<3wsocthi.adb \
1337 g-soccon.ads<3wsoccon.ads \
1338 g-soliop.ads<3wsoliop.ads \
1339 system.ads<5wsystem.ads
1341 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5wml-tgt.adb
1343 SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
1345 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1346 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1347 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1348 EXTRA_GNATRTL_NONTASKING_OBJS = g-regist.o
1350 GNATLIB_SHARED = gnatlib-shared-win32
1351 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
1354 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1355 LIBGNAT_TARGET_PAIRS = \
1356 a-intnam.ads<4lintnam.ads \
1357 s-inmaop.adb<7sinmaop.adb \
1358 s-intman.adb<5lintman.adb \
1359 s-osinte.ads<5iosinte.ads \
1360 s-osinte.adb<5iosinte.adb \
1361 s-osprim.adb<7sosprim.adb \
1362 s-taprop.adb<5itaprop.adb \
1363 s-tpopsp.adb<5atpopsp.adb \
1364 s-taspri.ads<5itaspri.ads \
1365 system.ads<55system.ads
1367 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5lml-tgt.adb
1369 THREADSLIB=-lpthread
1370 GNATLIB_SHARED=gnatlib-shared-dual
1371 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1372 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
1375 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
1376 LIBGNAT_TARGET_PAIRS = \
1377 a-intnam.ads<4lintnam.ads \
1378 s-inmaop.adb<7sinmaop.adb \
1379 s-intman.adb<5lintman.adb \
1380 s-osinte.ads<5iosinte.ads \
1381 s-osinte.adb<5iosinte.adb \
1382 s-osprim.adb<7sosprim.adb \
1383 s-taprop.adb<5itaprop.adb \
1384 s-tpopsp.adb<5atpopsp.adb \
1385 s-taspri.ads<5itaspri.ads \
1386 system.ads<5nsystem.ads
1388 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5lml-tgt.adb
1390 THREADSLIB=-lpthread
1391 GNATLIB_SHARED=gnatlib-shared-dual
1392 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1393 LIBRARY_VERSION := $(strip $(shell grep Library_Version $(fsrcpfx)gnatvsn.ads | sed -e 's/.*GNAT Lib v\(.*\)[ "].*/\1/'))
1396 # The runtime library for gnat comprises two directories. One contains the
1397 # Ada source files that the compiler (gnat1) needs -- these files are listed
1398 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1399 # corresponding .ali files for the parts written in Ada, libgnat.a for
1400 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1401 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1402 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1403 # go into the directory. The pthreads emulation is built in the threads
1404 # subdirectory and copied.
1405 LIBGNAT_SRCS = ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1406 errno.c exit.c cal.c ctrl_c.c \
1407 raise.h raise.c sysdep.c types.h aux-io.c init.c \
1408 final.c tracebak.c tb-alvms.c tb-alvxw.c expect.c mkdir.c socket.c \
1409 $(EXTRA_LIBGNAT_SRCS)
1411 LIBGNAT_OBJS = adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o \
1412 raise.o sysdep.o aux-io.o init.o cal.o final.o \
1413 tracebak.o expect.o mkdir.o socket.o $(EXTRA_LIBGNAT_OBJS)
1415 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1416 # the library installation will change and there will be a
1417 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1418 # from ADA_INCLUDE_SRCS.
1420 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1421 # the following include file:
1423 include $(fsrcdir)/Makefile.rtl
1425 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
1426 g-trasym.o memtrack.o
1428 # Files which are suitable in no run time/hi integrity mode
1430 COMPILABLE_HIE_SOURCES= \
1450 a-except.adb $(EXTRA_HIE_SOURCES)
1452 NON_COMPILABLE_HIE_SOURCES= \
1463 HIE_SOURCES = $(NON_COMPILABLE_HIE_SOURCES) $(COMPILABLE_HIE_SOURCES)
1465 # Object to generate for the HI run time
1482 a-tags.o $(EXTRA_HIE_OBJS)
1484 # Files which are needed in ravenscar mode
1486 COMPILABLE_RAVEN_SOURCES = \
1487 $(COMPILABLE_HIE_SOURCES) \
1519 a-taside.adb $(EXTRA_RAVEN_SOURCES)
1521 NON_COMPILABLE_RAVEN_SOURCES= $(NON_COMPILABLE_HIE_SOURCES)
1523 RAVEN_SOURCES = $(NON_COMPILABLE_RAVEN_SOURCES) $(COMPILABLE_RAVEN_SOURCES)
1525 # Objects to generate for the ravenscar run time
1546 a-taside.o $(EXTRA_RAVEN_OBJS)
1549 # Files which are needed for the cert level B runtime
1551 COMPILABLE_CERT_LEVEL_B_SOURCES = \
1552 $(COMPILABLE_HIE_SOURCES) \
1584 $(EXTRA_CERT_LEVEL_B_SOURCES)
1586 NON_COMPILABLE_CERT_LEVEL_B_SOURCES= \
1589 $(NON_COMPILABLE_HIE_SOURCES)
1591 CERT_LEVEL_B_SOURCES = \
1592 $(NON_COMPILABLE_CERT_LEVEL_B_SOURCES) \
1593 $(COMPILABLE_CERT_LEVEL_B_SOURCES)
1595 # Objects to generate for the cert level B run time
1597 CERT_LEVEL_B_OBJS = \
1614 $(EXTRA_CERT_LEVEL_B_OBJS)
1616 # C files for the cert level B run time (without the .c extension)
1618 CERT_LEVEL_B_C_FILES = \
1620 $(EXTRA_CERT_LEVEL_B_C_FILES)
1622 # Default run time files
1625 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1626 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1627 sequenio.ads system.ads Makefile.adalib Makefile.prolog Makefile.generic \
1629 a-*.adb a-*.ads g-*.ad? i-*.ad? \
1630 s-[a-o]*.adb s-[p-z]*.adb \
1631 s-[a-o]*.ads s-[p-z]*.ads
1633 LIBGNAT=../rts/libgnat.a
1634 TOOLS_FLAGS_TO_PASS= \
1636 "CFLAGS=$(CFLAGS)" \
1637 "LDFLAGS=$(LDFLAGS)" \
1638 "ADAFLAGS=$(ADAFLAGS)" \
1639 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
1640 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
1641 "libsubdir=$(libsubdir)" \
1642 "exeext=$(exeext)" \
1643 "fsrcdir=$(fsrcdir)" \
1644 "srcdir=$(fsrcdir)" \
1645 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
1646 "GNATMAKE=$(GNATMAKE)" \
1647 "GNATLINK=$(GNATLINK)" \
1648 "GNATBIND=$(GNATBIND)"
1650 # Build directory for the tools. Let's copy the target-dependent
1651 # sources using the same mechanism as for gnatlib. The other sources are
1652 # accessed using the vpath directive below
1658 -(cd tools; $(LN_S) ../sdefault.adb .)
1659 -$(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
1660 $(RM) tools/$(word 1,$(subst <, ,$(PAIR)));\
1661 $(LN_S) $(fsrcdir)/$(word 2,$(subst <, ,$(PAIR))) \
1662 tools/$(word 1,$(subst <, ,$(PAIR)));)
1663 touch ../stamp-tools
1665 # when compiling the tools, the runtime has to be first on the path so that
1666 # it hides the runtime files lying with the rest of the sources
1667 ifeq ($(TOOLSCASE),native)
1668 vpath %.ads ../rts ../
1669 vpath %.adb ../rts ../
1670 vpath %.c ../rts ../
1671 vpath %.h ../rts ../
1674 # in the cross tools case, everything is compiled with the native
1675 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1676 ifeq ($(TOOLSCASE),cross)
1683 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
1684 # reasons: gnatmake should be built with a recent compiler, a recent compiler
1685 # may not generate ALI files compatible with an old gnatmake so it is important
1686 # to be able to build gnatmake without a version of gnatmake around. Once
1687 # everything has been compiled once, gnatmake can be recompiled with itself
1688 # (see target gnattools1-re)
1689 gnattools1: ../stamp-tools ../stamp-gnatlib
1690 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1692 ../../gnatmake$(exeext) ../../gnatlink$(exeext) ../../gnatbl$(exeext)
1694 # gnatmake/link can be built with recent gnatmake/link if they are available.
1695 # This is especially convenient for building cross tools or for rebuilding
1696 # the tools when the original bootstrap has already be done.
1697 gnattools1-re: ../stamp-tools
1698 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1699 TOOLSCASE=cross INCLUDES="" gnatmake-re gnatlink-re
1701 # these tools are built with gnatmake & are common to native and cross
1702 gnattools2: ../stamp-tools
1703 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1705 ../../gnatchop$(exeext) ../../gnat$(exeext) ../../gnatkr$(exeext) \
1706 ../../gnatls$(exeext) ../../gnatprep$(exeext) \
1707 ../../gnatxref$(exeext) \
1708 ../../gnatfind$(exeext) ../../gnatname$(exeext) \
1709 ../../gnatclean$(exeext) \
1710 ../../gprcmd$(exeext) ../../gpr2make$(exeext)
1712 # These tools are only built for the native version.
1713 gnattools3: ../stamp-tools
1714 # $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1715 # TOOLSCASE=native top_builddir=../../.. \
1716 # ../../gnatmem$(exeext) $(EXTRA_GNATTOOLS)
1718 # those tools are only built for the cross version
1719 gnattools4: ../stamp-tools
1720 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1721 TOOLSCASE=cross top_buildir=../../.. \
1722 ../../vxaddr2line$(exeext)
1724 ../../gnatchop$(exeext): ../stamp-tools
1725 $(GNATMAKE) -c $(ADA_INCLUDES) gnatchop --GCC="$(CC) $(ALL_ADAFLAGS)"
1726 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatchop
1727 $(GNATLINK) -v gnatchop -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1730 ../../gnat$(exeext): ../stamp-tools
1731 $(GNATMAKE) -c $(ADA_INCLUDES) gnatcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1732 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatcmd
1733 $(GNATLINK) -v gnatcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1735 ../../gnatkr$(exeext): ../stamp-tools
1736 $(GNATMAKE) -c $(ADA_INCLUDES) gnatkr --GCC="$(CC) $(ALL_ADAFLAGS)"
1737 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatkr
1738 $(GNATLINK) -v gnatkr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1740 ../../gnatls$(exeext): ../stamp-tools
1741 $(GNATMAKE) -c $(ADA_INCLUDES) gnatls --GCC="$(CC) $(ALL_ADAFLAGS)"
1742 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatls
1743 $(GNATLINK) -v gnatls -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1745 ../../gnatname$(exeext): ../stamp-tools
1746 $(GNATMAKE) -c $(ADA_INCLUDES) gnatname --GCC="$(CC) $(ALL_ADAFLAGS)"
1747 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatname
1748 $(GNATLINK) -v gnatname -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1751 ../../gpr2make$(exeext): ../stamp-tools
1752 $(GNATMAKE) -c $(ADA_INCLUDES) gpr2make --GCC="$(CC) $(ALL_ADAFLAGS)"
1753 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gpr2make
1754 $(GNATLINK) -v gpr2make -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1757 ../../gnatprep$(exeext): ../stamp-tools
1758 $(GNATMAKE) -c $(ADA_INCLUDES) gnatprep --GCC="$(CC) $(ALL_ADAFLAGS)"
1759 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatprep
1760 $(GNATLINK) -v gnatprep -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1763 ../../gnatxref$(exeext): ../stamp-tools
1764 $(GNATMAKE) -c $(ADA_INCLUDES) gnatxref --GCC="$(CC) $(ALL_ADAFLAGS)"
1765 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatxref
1766 $(GNATLINK) -v gnatxref -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1769 ../../gnatfind$(exeext): ../stamp-tools
1770 $(GNATMAKE) -c $(ADA_INCLUDES) gnatfind --GCC="$(CC) $(ALL_ADAFLAGS)"
1771 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatfind
1772 $(GNATLINK) -v gnatfind -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1775 ../../gnatclean$(exeext): ../stamp-tools
1776 $(GNATMAKE) -c $(ADA_INCLUDES) gnatclean --GCC="$(CC) $(ALL_ADAFLAGS)"
1777 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatclean
1778 $(GNATLINK) -v gnatclean -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1781 ../../gnatsym$(exeext): ../stamp-tools
1782 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
1783 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
1784 $(GNATLINK) -v gnatsym -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1787 ../../gnatmem$(exeext): ../stamp-tools gmem.o $(SYMDEPS)
1788 ifeq ($(GMEM_LIB),gmemlib)
1789 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmem --GCC="$(CC) $(ALL_ADAFLAGS)"
1790 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmem
1791 $(GNATLINK) -v gnatmem -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1792 gmem.o $(SYMLIB) $(TOOLS_LIBS)
1795 ../../gnatdll$(exeext): ../stamp-tools
1796 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
1797 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) $(GNATBIND_FLAGS) gnatdll
1798 $(GNATLINK) -v gnatdll -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1801 ../../gprcmd$(exeext): ../stamp-tools
1802 $(GNATMAKE) -c $(ADA_INCLUDES) gprcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1803 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gprcmd
1804 $(GNATLINK) -v gprcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1806 ../../vxaddr2line$(exeext): ../stamp-tools
1807 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
1808 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
1809 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(CLIB)
1811 gnatmake-re: ../stamp-tools
1812 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
1813 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1814 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
1815 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
1816 --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1818 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1819 # with the former version of gnatlink itself which cannot override itself.
1820 gnatlink-re: ../stamp-tools link.o
1821 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
1822 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
1823 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
1824 --GCC="$(CC) $(ADA_INCLUDES)" link.o $(TOOLS_LIBS)
1825 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
1827 # Needs to be built with CC=gcc
1828 # Since the RTL should be built with the latest compiler, remove the
1829 # stamp target in the parent directory whenever gnat1 is rebuilt
1831 # Likewise for the tools
1832 ../../gnatmake$(exeext): $(P) b_gnatm.o $(GNATMAKE_OBJS)
1833 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
1836 ../../gnatlink$(exeext): $(P) b_gnatl.o $(GNATLINK_OBJS)
1837 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
1840 ../../gnatbl$(exeext): gnatbl.o
1841 $(CC) -o $@ $(ALL_CFLAGS) $(LDFLAGS) gnatbl.o $(TOOLS_LIBS)
1843 gnatbl.o: gnatbl.c adaint.h
1844 $(CC) $(ALL_CFLAGS) $(INCLUDES) -c $< $(OUTPUT_OPTION)
1847 @if [ ! -f stamp-gnatlib ] ; \
1849 $(ECHO) You must first build the GNAT library: make gnatlib; \
1855 install-gnatlib: ../stamp-gnatlib
1856 # Create the directory before deleting it, in case the directory is
1857 # a list of directories (as it may be on VMS). This ensures we are
1858 # deleting the right one.
1859 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1860 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1861 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1862 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1863 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1864 $(RMDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1865 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1866 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1867 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1868 -$(INSTALL_DATA) rts/Makefile.prolog $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1869 -$(INSTALL_DATA) rts/Makefile.generic $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1870 for file in rts/*.ali; do \
1871 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1873 -$(INSTALL_DATA) rts/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1874 -for file in rts/*$(arext);do \
1875 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1877 # Install the shared libraries, if any, using $(INSTALL) instead
1878 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1879 # for shared libraries on some targets, e.g. on HP-UX where the x
1880 # permission is required.
1881 ifeq ($(strip $(filter-out alpha% dec vms% openvms% alphavms%,$(targ))),)
1882 -for file in rts/lib*$(soext);do \
1883 $(INSTALL) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1886 -for file in rts/lib*-*$(soext);do \
1887 $(INSTALL) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1890 if [ -f rts/libgnat-*$(soext) ]; then \
1891 (cd $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
1892 $(LN_S) libgnat-*$(soext) libgnat$(soext) && \
1893 $(LN_S) libgnarl-*$(soext) libgnarl$(soext)) \
1895 # This copy must be done preserving the date on the original file.
1896 for file in rts/*.adb rts/*.ads; do \
1897 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
1899 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
1900 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
1904 $(RM) rts/s-*$(objext)
1906 $(RM) rts/a-*$(objext)
1908 $(RM) rts/*$(objext)
1911 touch ../stamp-gnatlib2
1912 $(RM) ../stamp-gnatlib
1914 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1915 # successive target commands. Although the Gnu make documentation
1916 # implies this is true on all systems, I suspect it may not be, So care
1917 # has been taken to allow a sed script to look for ";)" and substitue
1918 # for ";" the appropriate character in the range of lines below
1919 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1921 # GNULLI Begin ###########################################################
1923 ../stamp-gnatlib1: Makefile ../stamp-gnatlib2
1927 # Copy target independent sources
1928 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
1929 $(LN_S) $(fsrcpfx)$(f) rts ;) true
1930 # Remove files to be replaced by target dependent sources
1931 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1932 rts/$(word 1,$(subst <, ,$(PAIR))))
1933 # Copy new target dependent sources
1934 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1935 $(LN_S) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1936 rts/$(word 1,$(subst <, ,$(PAIR)));)
1937 $(RM) ../stamp-gnatlib
1938 touch ../stamp-gnatlib1
1940 # GNULLI End #############################################################
1942 # Don't use semicolon separated shell commands that involve list expansions.
1943 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1944 # line lengths in excess of 256 characters.
1945 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1946 # is guaranteed to overflow the buffer.
1948 gnatlib: ../stamp-gnatlib1 ../stamp-gnatlib2
1949 $(MAKE) -C rts CC="../../xgcc -B../../" \
1950 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1951 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
1953 -f ../Makefile $(LIBGNAT_OBJS)
1954 $(MAKE) -C rts CC="../../xgcc -B../../" \
1956 CFLAGS="$(GNATLIBCFLAGS)" \
1957 ADAFLAGS="$(GNATLIBFLAGS)" \
1961 $(RM) rts/libgnat$(arext) rts/libgnarl$(arext)
1962 $(AR) $(AR_FLAGS) rts/libgnat$(arext) \
1963 $(addprefix rts/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
1964 ifneq ($(PREFIX_OBJS),)
1965 $(AR) $(AR_FLAGS) rts/libgccprefix$(arext) $(PREFIX_OBJS);
1967 if $(RANLIB_TEST) ; then $(RANLIB) rts/libgnat$(arext); else true; fi
1968 $(AR) $(AR_FLAGS) rts/libgnarl$(arext) \
1969 $(addprefix rts/,$(GNATRTL_TASKING_OBJS))
1970 if $(RANLIB_TEST) ; then $(RANLIB) rts/libgnarl$(arext); else true; fi
1971 ifeq ($(GMEM_LIB),gmemlib)
1972 $(AR) $(AR_FLAGS) rts/libgmem$(arext) rts/memtrack.o;
1974 $(CHMOD) a-wx rts/*.ali
1975 touch ../stamp-gnatlib
1977 HIE_NONE_TARGET_PAIRS=\
1978 a-except.ads<1aexcept.ads \
1979 a-except.adb<1aexcept.adb \
1980 a-tags.ads<1atags.ads \
1981 a-tags.adb<1atags.adb \
1982 s-secsta.ads<1ssecsta.ads \
1983 s-secsta.adb<1ssecsta.adb \
1984 i-c.ads<1ic.ads $(EXTRA_HIE_NONE_TARGET_PAIRS)
1986 # This target needs RTS_NAME, RTS_SRCS, RTS_TARGET_PAIRS to be set properly
1987 # it creates a rts with the proper structure and the right target
1990 $(RMDIR) rts-$(RTS_NAME)
1991 $(MKDIR) rts-$(RTS_NAME)
1992 $(CHMOD) u+w rts-$(RTS_NAME)
1993 $(MKDIR) rts-$(RTS_NAME)/adalib
1994 $(MKDIR) rts-$(RTS_NAME)/adainclude
1995 $(CHMOD) u+w rts-$(RTS_NAME)/*
1996 # Generate the project file
1997 $(ECHO) "project $(RTS_NAME) is" > rts-$(RTS_NAME)/$(RTS_NAME).gpr
1998 $(ECHO) " for Source_Dirs use (\"adainclude\");" \
1999 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
2000 $(ECHO) " for Object_Dir use \"adalib\";" \
2001 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
2002 $(ECHO) " for Source_List_File use " \
2003 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
2004 $(ECHO) " \"rts-$(RTS_NAME)_source_list.txt\";" \
2005 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
2006 $(ECHO) " package Builder is" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
2007 $(ECHO) " for Default_Switches (\"Ada\") use (\"-a\");" \
2008 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
2009 $(ECHO) " end Builder;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
2010 $(ECHO) " package Compiler is" >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
2011 $(ECHO) " for Default_Switches (\"Ada\") use (\"-nostdinc\");" \
2012 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
2013 $(ECHO) " end Compiler;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
2014 $(ECHO) "end $(RTS_NAME);" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
2016 $(foreach f, $(COMPILABLE_SOURCES), \
2018 rts-$(RTS_NAME)/rts-$(RTS_NAME)_source_list.txt ;) true
2019 # Copy target independent sources
2020 $(foreach f,$(RTS_SRCS), \
2021 $(CP) $(fsrcpfx)$(f) rts-$(RTS_NAME)/adainclude/ ;) true
2022 # Remove files to be replaced by target dependent sources
2023 $(RM) $(foreach PAIR,$(RTS_TARGET_PAIRS), \
2024 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR))))
2025 # Copy new target dependent sources
2026 $(foreach PAIR,$(RTS_TARGET_PAIRS), \
2027 $(CP) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
2028 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR)));)
2031 $(CP) -r rts-$(RTS_NAME) $(DESTDIR)$(libsubdir)/
2034 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
2035 RTS_NAME=zfp RTS_SRCS="$(HIE_SOURCES)" \
2036 RTS_TARGET_PAIRS="$(HIE_NONE_TARGET_PAIRS)" \
2037 COMPILABLE_SOURCES="$(COMPILABLE_HIE_SOURCES)"
2038 -$(GNATMAKE) -Prts-zfp/zfp.gpr --GCC="../../../xgcc -B../../../"
2039 $(RM) rts-zfp/adalib/*.o
2040 $(CHMOD) a-wx rts-zfp/adalib/*.ali
2043 # First compile the Ada files ...
2044 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
2045 RTS_NAME=cert RTS_SRCS="$(CERT_LEVEL_B_SOURCES)" \
2046 RTS_TARGET_PAIRS="$(CERT_LEVEL_B_TARGET_PAIRS)" \
2047 COMPILABLE_SOURCES="$(COMPILABLE_CERT_LEVEL_B_SOURCES)"
2048 -$(GNATMAKE) -Prts-cert/cert.gpr --GCC="../../../xgcc -B../../../"
2049 $(CHMOD) a-wx rts-cert/adalib/*.ali
2050 # ... then the C files. This section will eventually be removed.
2051 $(foreach f,$(CERT_LEVEL_B_C_FILES), \
2052 $(CP) $(fsrcpfx)$(f).c rts-cert/adainclude/ ;)
2053 cd rts-cert/adalib ; \
2054 $(foreach f,$(CERT_LEVEL_B_C_FILES), \
2055 ../../../$(GCC_FOR_TARGET) -B../../../ $(TARGET_LIBGCC2_CFLAGS) \
2056 $(ALL_CFLAGS) $(GNATLIBCFLAGS_FOR_C) -c ../adainclude/$(f).c \
2057 -I../adainclude $(INCLUDES_FOR_SUBDIR) -I../../../ ;) \
2058 $(AR) $(AR_FLAGS) libgnat$(arext) \
2059 $(addsuffix .o,$(CERT_LEVEL_B_C_FILES))
2062 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
2063 RTS_NAME=none RTS_SRCS="$(HIE_SOURCES)" \
2064 RTS_TARGET_PAIRS="$(HIE_NONE_TARGET_PAIRS)" \
2065 COMPILABLE_SOURCES="$(COMPILABLE_HIE_SOURCES)"
2066 -$(GNATMAKE) -Prts-none/none.gpr --GCC="../../../xgcc -B../../../"
2067 $(RM) rts-none/adalib/*.o
2068 $(CHMOD) a-wx rts-none/adalib/*.ali
2070 rts-ravenscar: force
2071 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
2072 RTS_NAME=ravenscar RTS_SRCS="$(RAVEN_SOURCES)" \
2073 RTS_TARGET_PAIRS="$(HIE_RAVEN_TARGET_PAIRS)" \
2074 COMPILABLE_SOURCES="$(COMPILABLE_RAVEN_SOURCES)"
2075 -$(GNATMAKE) -Prts-ravenscar/ravenscar.gpr \
2076 --GCC="../../../xgcc -B../../../"
2077 $(CHMOD) a-wx rts-ravenscar/adalib/*.ali
2079 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2080 gnatlib-shared-default:
2081 $(MAKE) $(FLAGS_TO_PASS) \
2082 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2083 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2084 THREAD_KIND="$(THREAD_KIND)" \
2086 $(RM) rts/libgnat$(soext) rts/libgnarl$(soext)
2087 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2088 -o libgnat-$(LIBRARY_VERSION)$(soext) \
2089 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2090 $(SO_OPTS)libgnat-$(LIBRARY_VERSION)$(soext) $(MISCLIB) -lm
2091 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2092 -o libgnarl-$(LIBRARY_VERSION)$(soext) \
2093 $(GNATRTL_TASKING_OBJS) \
2094 $(SO_OPTS)libgnarl-$(LIBRARY_VERSION)$(soext) $(THREADSLIB)
2095 cd rts; $(LN_S) libgnat-$(LIBRARY_VERSION)$(soext) libgnat$(soext)
2096 cd rts; $(LN_S) libgnarl-$(LIBRARY_VERSION)$(soext) libgnarl$(soext)
2098 gnatlib-shared-dual:
2099 $(MAKE) $(FLAGS_TO_PASS) \
2100 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2101 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2102 THREAD_KIND="$(THREAD_KIND)" \
2103 gnatlib-shared-default
2104 $(MV) rts/libgna*$(soext) .
2105 $(RM) ../stamp-gnatlib2
2106 $(MAKE) $(FLAGS_TO_PASS) \
2107 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2108 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2109 THREAD_KIND="$(THREAD_KIND)" \
2111 $(MV) libgna*$(soext) rts
2113 # Note that on Win32 the auto-import does not work for DLL, so on the
2114 # platform we have a specific setup. The libgnat.dll contains only
2115 # non-tasking objects and libgnarl.dll contains tasking and non-tasking
2116 # objects. A tasking program must be linked with libgnarl.dll only.
2117 gnatlib-shared-win32:
2118 $(MAKE) $(FLAGS_TO_PASS) \
2119 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2120 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2121 THREAD_KIND="$(THREAD_KIND)" \
2123 $(RM) rts/libgnat$(soext) rts/libgnarl$(soext)
2124 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2125 -o libgnat-$(LIBRARY_VERSION)$(soext) \
2126 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2127 $(SO_OPTS)libgnat-$(LIBRARY_VERSION)$(soext) $(MISCLIB)
2128 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2129 -o libgnarl-$(LIBRARY_VERSION)$(soext) \
2130 $(GNATRTL_TASKING_OBJS) \
2131 $(SO_OPTS)libgnarl-$(LIBRARY_VERSION)$(soext) \
2132 $(THREADSLIB) -Wl,libgnat-$(LIBRARY_VERSION)$(soext)
2133 cd rts; $(LN_S) libgnat-$(LIBRARY_VERSION)$(soext) libgnat$(soext)
2134 cd rts; $(LN_S) libgnarl-$(LIBRARY_VERSION)$(soext) libgnarl$(soext)
2137 $(MAKE) $(FLAGS_TO_PASS) \
2138 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2139 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2140 THREAD_KIND="$(THREAD_KIND)" \
2142 $(RM) rts/libgnat*$(soext) rts/libgnarl*$(soext)
2143 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
2144 objdump --syms $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) | \
2145 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
2146 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
2147 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
2148 -o libgnat_s$(soext) libgnat.a \
2149 sys\$$library:trace.exe \
2150 --for-linker=/noinform \
2151 --for-linker=SYMVEC_$$$$.opt \
2152 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2153 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
2154 objdump --syms $(GNATRTL_TASKING_OBJS) | \
2155 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
2156 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
2157 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
2158 -o libgnarl_s$(soext) \
2159 libgnarl.a libgnat_s$(soext) \
2160 sys\$$library:trace.exe \
2161 --for-linker=/noinform \
2162 --for-linker=SYMVEC_$$$$.opt \
2163 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2166 $(MAKE) $(FLAGS_TO_PASS) \
2167 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2168 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2169 THREAD_KIND="$(THREAD_KIND)" \
2170 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
2173 gnatlib-sjlj: ../stamp-gnatlib1
2174 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' rts/system.ads > rts/s.ads
2175 $(MV) rts/s.ads rts/system.ads
2176 $(MAKE) $(FLAGS_TO_PASS) \
2177 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2178 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2179 THREAD_KIND="$(THREAD_KIND)" \
2180 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2182 # .s files for cross-building
2184 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
2186 # Compiling object files from source files.
2188 # Note that dependencies on obstack.h are not written
2189 # because that file is not part of GCC.
2190 # Dependencies on gvarargs.h are not written
2191 # because all that file does, when not compiling with GCC,
2192 # is include the system varargs.h.
2194 b_gnatl.c : $(GNATLINK_OBJS)
2195 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatl.c gnatlink.ali
2196 b_gnatl.o : b_gnatl.c
2198 b_gnatm.c : $(GNATMAKE_OBJS)
2199 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatm.c gnatmake.ali
2200 b_gnatm.o : b_gnatm.c
2202 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2203 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2204 ADA_SHARE_MAKE_DIR = $(prefix)/share/make
2206 # force no sibling call optimization on s-traceb.o so the number of stack
2207 # frames to be skipped when computing a call chain is not modified by
2208 # optimization. However we can do that only when building the runtime
2209 # (not the compiler) because the -fno-optimize-sibling-calls exists
2212 ifneq (,$(findstring xgcc,$(CC)))
2213 NO_SIBLING_ADAFLAGS=-fno-optimize-sibling-calls
2215 NO_SIBLING_ADAFLAGS=
2218 s-traceb.o : s-traceb.adb
2219 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2220 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) \
2223 adadecode.o : adadecode.c adadecode.h
2227 deftarg.o : deftarg.c
2229 exit.o : raise.h exit.c
2231 final.o : raise.h final.c
2239 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2240 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2242 init.o : init.c ada.h types.h raise.h
2243 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2244 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2246 raise.o : raise.c raise.h
2247 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2248 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2250 # Need to keep the frame pointer in this file to pop the stack properly on
2252 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c
2253 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
2254 -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2256 # In GNU Make, ignore whether `stage*' exists.
2257 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2258 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2262 # Gnatlbr is only used on VMS
2264 ../../gnatlbr$(exeext): ../../prefix.o
2265 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlbr --GCC="$(CC) $(ALL_ADAFLAGS)"
2266 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlbr
2267 $(GNATLINK) -v gnatlbr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \