1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2012 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 3, 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 COPYING3. If not see
18 #<http://www.gnu.org/licenses/>.
20 # The makefile built from this file lives in the language subdirectory.
21 # Its purpose is to provide support for:
23 # 1) recursion where necessary, and only then (building .o's), and
24 # 2) building and debugging cc1 from the language subdirectory, and
27 # The parent makefile handles all other chores, with help from the
28 # language makefile fragment, of course.
30 # The targets for external use are:
31 # all, TAGS, ???mostlyclean, ???clean.
33 # This makefile will only work with Gnu make.
34 # The rules are written assuming a minimum subset of tools are available:
37 # MAKE: Only Gnu make will work.
38 # MV: Must accept (at least) one, maybe wildcard, source argument,
39 # a file or directory destination, and support creation/
40 # modification date preservation. Gnu mv -f works.
41 # RM: Must accept an arbitrary number of space separated file
42 # arguments, or one wildcard argument. Gnu rm works.
43 # RMDIR: Must delete a directory and all its contents. Gnu rm -rf works.
44 # ECHO: Must support command line redirection. Any Unix-like
45 # shell will typically provide this, otherwise a custom version
46 # is trivial to write.
48 # MKDIR: Gnu mkdir works.
49 # CHMOD: Gnu chmod works.
50 # true: Does nothing and returns a normal successful return code.
51 # pwd: Prints the current directory on stdout.
52 # cd: Change directory.
55 # BISON: Gnu bison works.
56 # FLEX: Gnu flex works.
57 # Other miscellaneous tools for obscure targets.
59 # Suppress smart makes who think they know how to automake Yacc files
62 # Variables that exist for you to override.
63 # See below for how to change them for certain systems.
65 # Various ways of specifying flags for compilations:
66 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
67 # BOOT_CFLAGS is the value of CFLAGS to pass
68 # to the stage2 and stage3 compilations
70 BOOT_CFLAGS = -O $(CFLAGS)
71 # These exists to be overridden by the t-* files, respectively.
92 RANLIB_FLAGS = @ranlib_flags@
96 COMPILER_FLAGS = $(CFLAGS)
99 PWD_COMMAND = $${PWDCMD-pwd}
100 # How to copy preserving the date
101 INSTALL_DATA_DATE = cp -p
105 GNATBIND_FLAGS = -static -x
107 ADAFLAGS = -W -Wall -gnatpg -gnata
108 FORCE_DEBUG_ADAFLAGS = -g
109 NO_SIBLING_ADAFLAGS = -fno-optimize-sibling-calls
110 NO_REORDER_ADAFLAGS = -fno-toplevel-reorder
111 GNATLIBFLAGS = -W -Wall -gnatpg -nostdinc
112 GNATLIBCFLAGS = -g -O2
113 PICFLAG_FOR_TARGET = @PICFLAG_FOR_TARGET@
115 # Pretend that _Unwind_GetIPInfo is available for the target by default. This
116 # should be autodetected during the configuration of libada and passed down to
117 # here, but we need something for --disable-libada and hope for the best.
118 GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) \
119 -fexceptions -DIN_RTS -DHAVE_GETIPINFO
120 ALL_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(ADAFLAGS)
125 OUTPUT_OPTION = @OUTPUT_OPTION@
134 # Define this as & to perform parallel make on a Sequent.
135 # Note that this has some bugs, and it seems currently necessary
136 # to compile all the gen* files first by hand to avoid erroneous results.
139 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
141 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
142 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS)
144 # Tools to use when building a cross-compiler.
145 # These are used because `configure' appends `cross-make'
146 # to the makefile when making a cross-compiler.
148 # We don't use cross-make. Instead we use the tools from the build tree,
149 # if they are available.
150 # program_transform_name and objdir are set by configure.in.
151 program_transform_name =
154 target_alias=@target_alias@
156 xmake_file = @xmake_file@
157 tmake_file = @tmake_file@
158 host_canonical=@host@
159 target_cpu_default=@target_cpu_default@
160 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
161 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
163 # Directory where sources are, from where we are.
164 VPATH = $(srcdir)/ada
166 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
167 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
168 fcurdir := $(shell ${PWD_COMMAND})
169 fcurpfx := $(shell ${PWD_COMMAND})/
171 # Top build directory, relative to here.
174 # Internationalization library.
176 LIBINTL_DEP = @LIBINTL_DEP@
178 # Character encoding conversion library.
179 LIBICONV = @LIBICONV@
180 LIBICONV_DEP = @LIBICONV_DEP@
182 # Any system libraries needed just for GNAT.
183 SYSLIBS = @GNAT_LIBEXC@
185 # List extra gnattools
188 # List of target dependent sources, overridden below as necessary
191 # Type of tools build we are doing; default is not compiling tools.
196 RTSDIR = rts$(subst /,_,$(MULTISUBDIR))
198 # Link flags used to build gnat tools. By default we prefer to statically
199 # link with libgcc to avoid a dependency on shared libgcc (which is tricky
200 # to deal with as it may conflict with the libgcc provided by the system).
201 GCC_LINK_FLAGS=-static-libgcc
203 # End of variables for you to override.
207 # This tells GNU Make version 3 not to put all variables in the environment.
211 ifneq ($(tmake_file),)
212 include $(tmake_file)
216 ifneq ($(xmake_file),)
217 include $(xmake_file)
220 # Now figure out from those variables how to compile and link.
222 all.indirect: Makefile ../gnat1$(exeext)
224 # IN_GCC is meant to distinguish between code compiled into GCC itself, i.e.
225 # for the host, and the rest. But we also use it for the tools (link.c) and
226 # even break the host/target wall by using it for the library (targext.c).
227 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
228 # compiler which does not use the native libraries and headers.
229 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
231 # This is the variable actually used when we compile.
232 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS)
235 ALL_CPPFLAGS = $(CPPFLAGS)
237 # Used with $(COMPILER).
238 ALL_COMPILERFLAGS = $(ALL_CFLAGS)
240 # This is where we get libiberty.a from.
241 LIBIBERTY = ../../libiberty/libiberty.a
243 # How to link with both our special library facilities
244 # and the system's installed libraries.
245 LIBS = $(LIBINTL) $(LIBICONV) $(LIBIBERTY) $(SYSLIBS)
246 LIBDEPS = $(LIBINTL_DEP) $(LIBICONV_DEP) $(LIBIBERTY)
247 # Default is no TGT_LIB; one might be passed down or something
249 TOOLS_LIBS = targext.o link.o ../../libcommon-target.a ../../libcommon.a \
250 ../../../libcpp/libcpp.a $(LIBGNAT) $(LIBINTL) $(LIBICONV) \
251 ../../../libiberty/libiberty.a $(SYSLIBS) $(TGT_LIB)
253 # Convert the target variable into a space separated list of architecture,
254 # manufacturer, and operating system and assign each of those to its own
256 host:=$(subst -, ,$(host_canonical))
257 targ:=$(subst -, ,$(target))
258 arch:=$(word 1,$(targ))
259 ifeq ($(words $(targ)),2)
261 osys:=$(word 2,$(targ))
263 manu:=$(word 2,$(targ))
264 osys:=$(word 3,$(targ))
267 # Specify the directories to be searched for header files.
268 # Both . and srcdir are used, in that order,
269 # so that tm.h and config.h will be found in the compilation
270 # subdirectory rather than in the source directory.
271 INCLUDES = -I- -I. -I.. -I$(srcdir)/ada -I$(srcdir) -I$(srcdir)/../include
273 ADA_INCLUDES = -I- -I. -I$(srcdir)/ada
275 # Likewise, but valid for subdirectories of the current dir.
276 # FIXME: for VxWorks, we cannot add $(fsrcdir) because the regs.h file in
277 # that directory conflicts with a system header file.
278 ifneq ($(findstring vxworks,$(osys)),)
279 INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \
280 -iquote $(fsrcdir)/ada \
281 -I$(fsrcdir)/../include
283 INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \
284 -iquote $(fsrcdir)/ada -iquote $(fsrcdir) \
285 -I$(fsrcdir)/../include
288 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada
290 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
293 # Say how to compile Ada programs.
294 .SUFFIXES: .ada .adb .ads .asm
296 # Always use -I$(srcdir)/config when compiling.
298 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
301 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
302 $(INCLUDES) $< $(OUTPUT_OPTION)
305 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
308 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
310 # how to regenerate this file
311 Makefile: ../config.status $(srcdir)/ada/gcc-interface/Makefile.in $(srcdir)/ada/Makefile.in $(srcdir)/version.c
313 LANGUAGES="$(CONFIG_LANGUAGES)" \
315 CONFIG_FILES="ada/gcc-interface/Makefile ada/Makefile" $(SHELL) config.status
317 # This tells GNU make version 3 not to export all the variables
318 # defined in this file into the environment.
321 # Lists of files for various purposes.
323 GNATLINK_OBJS = gnatlink.o \
324 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
325 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
326 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
327 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
328 types.o validsw.o widechar.o
330 GNATMAKE_OBJS = a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o \
331 atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o errout.o \
332 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
333 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
334 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
335 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o \
336 output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o \
337 prj-conf.o prj-pp.o prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o \
338 prj-proc.o prj-strt.o prj-tree.o prj-util.o restrict.o rident.o s-exctab.o \
339 s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o \
340 s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o \
341 sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o \
342 switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o uintp.o \
343 uname.o urealp.o usage.o widechar.o \
344 $(EXTRA_GNATMAKE_OBJS)
346 # Make arch match the current multilib so that the RTS selection code
347 # picks up the right files. For a given target this must be coherent
348 # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*.
350 ifeq ($(strip $(filter-out %x86_64, $(arch))),)
351 ifeq ($(strip $(MULTISUBDIR)),/32)
356 # ???: handle more multilib targets
358 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
359 # The members of each pair must be separated by a '<' and no whitespace.
360 # Each pair must be separated by some amount of whitespace from the following
365 LIBGNAT_TARGET_PAIRS = \
366 a-intnam.ads<a-intnam-dummy.ads \
367 s-inmaop.adb<s-inmaop-dummy.adb \
368 s-intman.adb<s-intman-dummy.adb \
369 s-osinte.ads<s-osinte-dummy.ads \
370 s-osprim.adb<s-osprim-posix.adb \
371 s-taprop.adb<s-taprop-dummy.adb \
372 s-taspri.ads<s-taspri-dummy.ads
374 # When using the GCC exception handling mechanism, we need to use an
375 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
379 # Default shared object option. Note that we rely on the fact that the "soname"
380 # option will always be present and last in this flag, so that we can have
381 # $(SO_OPTS)libgnat-x.xx
383 SO_OPTS = -Wl,-soname,
385 # Default gnatlib-shared target.
386 # By default, equivalent to gnatlib.
387 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
388 # target when supported.
389 GNATLIB_SHARED = gnatlib
391 # default value for gnatmake's target dependent file
394 # By default, build socket support units. On platforms that do not support
395 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
396 # to LIBGNAT_TARGET_PAIRS.
398 GNATRTL_SOCKETS_OBJS = g-soccon$(objext) g-socket$(objext) g-socthi$(objext) \
399 g-soliop$(objext) g-sothco$(objext)
401 DUMMY_SOCKETS_TARGET_PAIRS = \
402 g-socket.adb<g-socket-dummy.adb \
403 g-socket.ads<g-socket-dummy.ads \
404 g-socthi.adb<g-socthi-dummy.adb \
405 g-socthi.ads<g-socthi-dummy.ads \
406 g-sothco.adb<g-sothco-dummy.adb \
407 g-sothco.ads<g-sothco-dummy.ads
409 # On platforms where atomic increment/decrement operations are supported,
410 # special version of Ada.Strings.Unbounded package can be used.
412 ATOMICS_TARGET_PAIRS = \
413 a-stunau.adb<a-stunau-shared.adb \
414 a-suteio.adb<a-suteio-shared.adb \
415 a-strunb.ads<a-strunb-shared.ads \
416 a-strunb.adb<a-strunb-shared.adb \
417 a-stwiun.adb<a-stwiun-shared.adb \
418 a-stwiun.ads<a-stwiun-shared.ads \
419 a-swunau.adb<a-swunau-shared.adb \
420 a-swuwti.adb<a-swuwti-shared.adb \
421 a-stzunb.adb<a-stzunb-shared.adb \
422 a-stzunb.ads<a-stzunb-shared.ads \
423 a-szunau.adb<a-szunau-shared.adb \
424 a-szuzti.adb<a-szuzti-shared.adb
426 ATOMICS_BUILTINS_TARGET_PAIRS = \
427 s-atocou.adb<s-atocou-builtin.adb
429 # Special version of units for x86 and x86-64 platforms.
432 a-numaux.ads<a-numaux-x86.ads \
433 a-numaux.adb<a-numaux-x86.adb \
434 s-atocou.adb<s-atocou-x86.adb
436 X86_64_TARGET_PAIRS = \
437 a-numaux.ads<a-numaux-x86.ads \
438 a-numaux.adb<a-numaux-x86.adb \
439 s-atocou.adb<s-atocou-builtin.adb
441 LIB_VERSION = $(strip $(shell grep ' Library_Version :' $(fsrcpfx)ada/gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
443 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
444 # $(strip STRING) removes leading and trailing spaces from STRING.
445 # If what's left is null then it's a match.
447 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
448 LIBGNAT_TARGET_PAIRS = \
449 a-intnam.ads<a-intnam-vxworks.ads \
450 a-numaux.ads<a-numaux-vxworks.ads \
451 s-inmaop.adb<s-inmaop-vxworks.adb \
452 s-interr.adb<s-interr-hwint.adb \
453 s-intman.ads<s-intman-vxworks.ads \
454 s-intman.adb<s-intman-vxworks.adb \
455 s-osinte.adb<s-osinte-vxworks.adb \
456 s-osinte.ads<s-osinte-vxworks.ads \
457 s-osprim.adb<s-osprim-vxworks.adb \
458 s-parame.ads<s-parame-vxworks.ads \
459 s-parame.adb<s-parame-vxworks.adb \
460 s-stchop.ads<s-stchop-limit.ads \
461 s-stchop.adb<s-stchop-vxworks.adb \
462 s-taprop.adb<s-taprop-vxworks.adb \
463 s-tasinf.ads<s-tasinf-vxworks.ads \
464 s-taspri.ads<s-taspri-vxworks.ads \
465 s-tpopsp.adb<s-tpopsp-vxworks.adb \
466 s-vxwork.ads<s-vxwork-m68k.ads \
467 g-socthi.ads<g-socthi-vxworks.ads \
468 g-socthi.adb<g-socthi-vxworks.adb \
469 g-stsifd.adb<g-stsifd-sockets.adb \
470 system.ads<system-vxworks-m68k.ads
472 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb
474 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
475 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
477 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
478 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
480 ifeq ($(strip $(filter-out yes,$(TRACE))),)
481 LIBGNAT_TARGET_PAIRS += \
482 s-traces.adb<s-traces-default.adb \
483 s-tratas.adb<s-tratas-default.adb \
484 s-trafor.adb<s-trafor-default.adb \
485 s-trafor.ads<s-trafor-default.ads \
486 s-tfsetr.adb<s-tfsetr-vxworks.adb
490 ifeq ($(strip $(filter-out e500% powerpc% wrs vxworks,$(targ))),)
491 LIBGNAT_TARGET_PAIRS = \
492 a-intnam.ads<a-intnam-vxworks.ads \
493 a-numaux.ads<a-numaux-vxworks.ads \
494 s-inmaop.adb<s-inmaop-vxworks.adb \
495 s-intman.ads<s-intman-vxworks.ads \
496 s-intman.adb<s-intman-vxworks.adb \
497 s-osinte.ads<s-osinte-vxworks.ads \
498 s-osinte.adb<s-osinte-vxworks.adb \
499 s-osprim.adb<s-osprim-vxworks.adb \
500 s-parame.ads<s-parame-vxworks.ads \
501 s-parame.adb<s-parame-vxworks.adb \
502 s-stchop.ads<s-stchop-limit.ads \
503 s-stchop.adb<s-stchop-vxworks.adb \
504 s-taprop.adb<s-taprop-vxworks.adb \
505 s-tasinf.ads<s-tasinf-vxworks.ads \
506 s-taspri.ads<s-taspri-vxworks.ads \
507 s-vxwork.ads<s-vxwork-ppc.ads \
508 g-socthi.ads<g-socthi-vxworks.ads \
509 g-socthi.adb<g-socthi-vxworks.adb \
510 g-stsifd.adb<g-stsifd-sockets.adb \
511 $(ATOMICS_TARGET_PAIRS) \
512 $(ATOMICS_BUILTINS_TARGET_PAIRS)
515 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
516 indepsw.adb<indepsw-gnu.adb
518 ifeq ($(strip $(filter-out yes,$(TRACE))),)
519 LIBGNAT_TARGET_PAIRS += \
520 s-traces.adb<s-traces-default.adb \
521 s-trafor.adb<s-trafor-default.adb \
522 s-trafor.ads<s-trafor-default.ads \
523 s-tratas.adb<s-tratas-default.adb \
524 s-tfsetr.adb<s-tfsetr-vxworks.adb
527 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
528 LIBGNAT_TARGET_PAIRS += \
529 s-vxwext.ads<s-vxwext-rtp.ads \
530 s-vxwext.adb<s-vxwext-rtp.adb \
531 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
532 system.ads<system-vxworks-ppc-rtp.ads
534 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
536 ifeq ($(strip $(filter-out rtp-smp,$(THREAD_KIND))),)
537 LIBGNAT_TARGET_PAIRS += \
538 s-mudido.adb<s-mudido-affinity.adb \
539 s-vxwext.ads<s-vxwext-rtp.ads \
540 s-vxwext.adb<s-vxwext-rtp-smp.adb \
541 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
542 system.ads<system-vxworks-ppc-rtp.ads
544 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
545 EXTRA_LIBGNAT_OBJS+=affinity.o
546 EXTRA_LIBGNAT_SRCS+=affinity.c
548 ifeq ($(strip $(filter-out kernel-smp,$(THREAD_KIND))),)
549 LIBGNAT_TARGET_PAIRS += \
550 s-interr.adb<s-interr-hwint.adb \
551 s-mudido.adb<s-mudido-affinity.adb \
552 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
553 s-vxwext.ads<s-vxwext-kernel.ads \
554 s-vxwext.adb<s-vxwext-kernel-smp.adb \
555 system.ads<system-vxworks-ppc-kernel.ads
558 EXTRA_LIBGNAT_OBJS+=affinity.o
559 EXTRA_LIBGNAT_SRCS+=affinity.c
561 LIBGNAT_TARGET_PAIRS += \
562 s-interr.adb<s-interr-hwint.adb \
563 s-tpopsp.adb<s-tpopsp-vxworks.adb
565 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
567 LIBGNAT_TARGET_PAIRS += \
568 s-vxwext.ads<s-vxwext-kernel.ads \
569 s-vxwext.adb<s-vxwext-kernel.adb \
570 system.ads<system-vxworks-ppc-kernel.ads
572 LIBGNAT_TARGET_PAIRS += \
573 system.ads<system-vxworks-ppc.ads
576 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
577 EXTRA_LIBGNAT_OBJS+=sigtramp-ppcvxw.o
578 EXTRA_LIBGNAT_SRCS+=sigtramp-ppcvxw.c
582 EXTRA_GNATRTL_TASKING_OBJS += s-vxwork.o s-vxwext.o
584 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
585 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
589 ifeq ($(strip $(filter-out powerpc% e500v2 wrs vxworksae,$(targ))),)
590 # target pairs for vthreads runtime
591 LIBGNAT_TARGET_PAIRS = \
592 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
593 a-intnam.ads<a-intnam-vxworks.ads \
594 a-numaux.ads<a-numaux-vxworks.ads \
595 g-io.adb<g-io-vxworks-ppc-cert.adb \
596 s-inmaop.adb<s-inmaop-vxworks.adb \
597 s-interr.adb<s-interr-hwint.adb \
598 s-intman.ads<s-intman-vxworks.ads \
599 s-intman.adb<s-intman-vxworks.adb \
600 s-osinte.adb<s-osinte-vxworks.adb \
601 s-osinte.ads<s-osinte-vxworks.ads \
602 s-osprim.adb<s-osprim-vxworks.adb \
603 s-parame.ads<s-parame-ae653.ads \
604 s-parame.adb<s-parame-vxworks.adb \
605 s-taprop.adb<s-taprop-vxworks.adb \
606 s-tasinf.ads<s-tasinf-vxworks.ads \
607 s-taspri.ads<s-taspri-vxworks.ads \
608 s-tpopsp.adb<s-tpopsp-vxworks.adb \
609 s-vxwext.adb<s-vxwext-noints.adb \
610 s-vxwext.ads<s-vxwext-vthreads.ads \
611 s-vxwork.ads<s-vxwork-ppc.ads \
612 system.ads<system-vxworks-ppc-vthread.ads \
613 $(ATOMICS_TARGET_PAIRS) \
614 $(ATOMICS_BUILTINS_TARGET_PAIRS)
617 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
618 indepsw.adb<indepsw-gnu.adb
620 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
621 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
623 EXTRA_LIBGNAT_SRCS+=sigtramp-ppcvxw.c
624 EXTRA_LIBGNAT_OBJS+=sigtramp-ppcvxw.o
626 # Extra pairs for the vthreads runtime
627 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
628 LIBGNAT_TARGET_PAIRS += \
629 s-thread.adb<s-thread-ae653.adb \
630 $(DUMMY_SOCKETS_TARGET_PAIRS)
632 GNATRTL_SOCKETS_OBJS =
633 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o
635 LIBGNAT_TARGET_PAIRS += \
636 g-socthi.ads<g-socthi-vxworks.ads \
637 g-socthi.adb<g-socthi-vxworks.adb \
638 g-stsifd.adb<g-stsifd-sockets.adb
641 ifeq ($(strip $(filter-out yes,$(TRACE))),)
642 LIBGNAT_TARGET_PAIRS += \
643 s-traces.adb<s-traces-default.adb \
644 s-trafor.adb<s-trafor-default.adb \
645 s-trafor.ads<s-trafor-default.ads \
646 s-tratas.adb<s-tratas-default.adb \
647 s-tfsetr.adb<s-tfsetr-vxworks.adb
652 ifeq ($(strip $(filter-out e500% powerpc% wrs vxworksmils,$(targ))),)
653 # target pairs for vthreads runtime
654 LIBGNAT_TARGET_PAIRS = \
655 a-elchha.adb<a-elchha-vx6-raven-cert.adb \
656 a-intnam.ads<a-intnam-vxworks.ads \
657 a-numaux.ads<a-numaux-vxworks.ads \
658 g-io.adb<g-io-vxworks-ppc-cert.adb \
659 s-inmaop.adb<s-inmaop-vxworks.adb \
660 s-interr.adb<s-interr-hwint.adb \
661 s-intman.ads<s-intman-vxworks.ads \
662 s-intman.adb<s-intman-vxworks.adb \
663 s-osinte.adb<s-osinte-vxworks.adb \
664 s-osinte.ads<s-osinte-vxworks.ads \
665 s-osprim.adb<s-osprim-vxworks.adb \
666 s-parame.ads<s-parame-ae653.ads \
667 s-parame.adb<s-parame-vxworks.adb \
668 s-stchop.adb<s-stchop-vxworks.adb \
669 s-stchop.ads<s-stchop-limit.ads \
670 s-taprop.adb<s-taprop-vxworks.adb \
671 s-tasinf.ads<s-tasinf-vxworks.ads \
672 s-taspri.ads<s-taspri-vxworks.ads \
673 s-thread.adb<s-thread-ae653.adb \
674 s-tpopsp.adb<s-tpopsp-vxworks.adb \
675 s-vxwork.ads<s-vxwork-ppc.ads \
676 system.ads<system-vxworks-ppc-mils.ads \
677 $(ATOMICS_TARGET_PAIRS) \
678 $(ATOMICS_BUILTINS_TARGET_PAIRS) \
679 $(DUMMY_SOCKETS_TARGET_PAIRS)
682 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
683 indepsw.adb<indepsw-gnu.adb
685 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-thread.o s-vxwexc.o
686 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
688 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c sigtramp-ppcvxw.c
689 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o sigtramp-ppcvxw.o
690 GNATRTL_SOCKETS_OBJS =
692 ifeq ($(strip $(filter-out yes,$(TRACE))),)
693 LIBGNAT_TARGET_PAIRS += \
694 s-traces.adb<s-traces-default.adb \
695 s-trafor.adb<s-trafor-default.adb \
696 s-trafor.ads<s-trafor-default.ads \
697 s-tratas.adb<s-tratas-default.adb \
698 s-tfsetr.adb<s-tfsetr-vxworks.adb
702 # vxworksae / vxworks 653 for x86 (vxsim) - ?? vxworksmils not implemented
703 ifeq ($(strip $(filter-out %86 wrs vxworksae vxworksmils,$(targ))),)
704 # target pairs for kernel + vthreads runtime
705 LIBGNAT_TARGET_PAIRS = \
706 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
707 a-intnam.ads<a-intnam-vxworks.ads \
708 a-sytaco.ads<1asytaco.ads \
709 a-sytaco.adb<1asytaco.adb \
710 g-io.adb<g-io-vxworks-ppc-cert.adb \
711 s-inmaop.adb<s-inmaop-vxworks.adb \
712 s-interr.adb<s-interr-hwint.adb \
713 s-intman.ads<s-intman-vxworks.ads \
714 s-intman.adb<s-intman-vxworks.adb \
715 s-osinte.adb<s-osinte-vxworks.adb \
716 s-osinte.ads<s-osinte-vxworks.ads \
717 s-osprim.adb<s-osprim-vxworks.adb \
718 s-parame.ads<s-parame-ae653.ads \
719 s-taprop.adb<s-taprop-vxworks.adb \
720 s-tasinf.ads<s-tasinf-vxworks.ads \
721 s-taspri.ads<s-taspri-vxworks.ads \
722 s-tpopsp.adb<s-tpopsp-vxworks.adb \
723 s-vxwext.adb<s-vxwext-noints.adb \
724 s-vxwext.ads<s-vxwext-vthreads.ads \
725 s-vxwork.ads<s-vxwork-x86.ads \
726 $(ATOMICS_TARGET_PAIRS) \
727 $(X86_TARGET_PAIRS) \
728 system.ads<system-vxworks-x86.ads
731 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
732 indepsw.adb<indepsw-gnu.adb
734 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
735 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
737 # Extra pairs for the vthreads runtime
738 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
739 LIBGNAT_TARGET_PAIRS += \
740 s-thread.adb<s-thread-ae653.adb \
741 $(DUMMY_SOCKETS_TARGET_PAIRS)
743 GNATRTL_SOCKETS_OBJS =
744 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o
746 LIBGNAT_TARGET_PAIRS += \
747 g-socthi.ads<g-socthi-vxworks.ads \
748 g-socthi.adb<g-socthi-vxworks.adb \
749 g-stsifd.adb<g-stsifd-sockets.adb
752 ifeq ($(strip $(filter-out yes,$(TRACE))),)
753 LIBGNAT_TARGET_PAIRS += \
754 s-traces.adb<s-traces-default.adb \
755 s-trafor.adb<s-trafor-default.adb \
756 s-trafor.ads<s-trafor-default.ads \
757 s-tratas.adb<s-tratas-default.adb \
758 s-tfsetr.adb<s-tfsetr-vxworks.adb
762 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
763 LIBGNAT_TARGET_PAIRS = \
764 a-intnam.ads<a-intnam-vxworks.ads \
765 a-numaux.ads<a-numaux-vxworks.ads \
766 s-inmaop.adb<s-inmaop-vxworks.adb \
767 s-interr.adb<s-interr-hwint.adb \
768 s-intman.ads<s-intman-vxworks.ads \
769 s-intman.adb<s-intman-vxworks.adb \
770 s-osinte.adb<s-osinte-vxworks.adb \
771 s-osinte.ads<s-osinte-vxworks.ads \
772 s-osprim.adb<s-osprim-vxworks.adb \
773 s-parame.ads<s-parame-vxworks.ads \
774 s-parame.adb<s-parame-vxworks.adb \
775 s-stchop.ads<s-stchop-limit.ads \
776 s-stchop.adb<s-stchop-vxworks.adb \
777 s-taprop.adb<s-taprop-vxworks.adb \
778 s-tasinf.ads<s-tasinf-vxworks.ads \
779 s-taspri.ads<s-taspri-vxworks.ads \
780 s-tpopsp.adb<s-tpopsp-vxworks.adb \
781 s-vxwork.ads<s-vxwork-sparcv9.ads \
782 g-socthi.ads<g-socthi-vxworks.ads \
783 g-socthi.adb<g-socthi-vxworks.adb \
784 g-stsifd.adb<g-stsifd-sockets.adb \
785 system.ads<system-vxworks-sparcv9.ads \
788 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
789 indepsw.adb<indepsw-gnu.adb
791 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
792 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
794 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
795 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
798 ifeq ($(strip $(filter-out %86 wrs vxworks,$(targ))),)
799 LIBGNAT_TARGET_PAIRS = \
800 a-intnam.ads<a-intnam-vxworks.ads \
801 i-vxwork.ads<i-vxwork-x86.ads \
802 s-osinte.adb<s-osinte-vxworks.adb \
803 s-osinte.ads<s-osinte-vxworks.ads \
804 s-inmaop.adb<s-inmaop-vxworks.adb \
805 s-intman.ads<s-intman-vxworks.ads \
806 s-intman.adb<s-intman-vxworks.adb \
807 s-osprim.adb<s-osprim-vxworks.adb \
808 s-parame.ads<s-parame-vxworks.ads \
809 s-parame.adb<s-parame-vxworks.adb \
810 s-stchop.ads<s-stchop-limit.ads \
811 s-stchop.adb<s-stchop-vxworks.adb \
812 s-taprop.adb<s-taprop-vxworks.adb \
813 s-tasinf.ads<s-tasinf-vxworks.ads \
814 s-taspri.ads<s-taspri-vxworks.ads \
815 s-vxwork.ads<s-vxwork-x86.ads \
816 g-socthi.ads<g-socthi-vxworks.ads \
817 g-socthi.adb<g-socthi-vxworks.adb \
818 g-stsifd.adb<g-stsifd-sockets.adb \
819 $(ATOMICS_TARGET_PAIRS) \
823 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
824 indepsw.adb<indepsw-gnu.adb
826 ifeq ($(strip $(filter-out yes,$(TRACE))),)
827 LIBGNAT_TARGET_PAIRS += \
828 s-traces.adb<s-traces-default.adb \
829 s-trafor.adb<s-trafor-default.adb \
830 s-trafor.ads<s-trafor-default.ads \
831 s-tratas.adb<s-tratas-default.adb \
832 s-tfsetr.adb<s-tfsetr-vxworks.adb
835 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
836 LIBGNAT_TARGET_PAIRS += \
837 s-vxwext.ads<s-vxwext-rtp.ads \
838 s-vxwext.adb<s-vxwext-rtp.adb \
839 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
840 system.ads<system-vxworks-x86-rtp.ads
842 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
844 ifeq ($(strip $(filter-out rtp-smp, $(THREAD_KIND))),)
845 LIBGNAT_TARGET_PAIRS += \
846 s-mudido.adb<s-mudido-affinity.adb \
847 s-vxwext.ads<s-vxwext-rtp.ads \
848 s-vxwext.adb<s-vxwext-rtp-smp.adb \
849 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
850 system.ads<system-vxworks-x86-rtp.ads
852 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
853 EXTRA_LIBGNAT_OBJS+=affinity.o
854 EXTRA_LIBGNAT_SRCS+=affinity.c
856 ifeq ($(strip $(filter-out kernel-smp, $(THREAD_KIND))),)
857 LIBGNAT_TARGET_PAIRS += \
858 s-interr.adb<s-interr-hwint.adb \
859 s-mudido.adb<s-mudido-affinity.adb \
860 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
861 s-vxwext.ads<s-vxwext-kernel.ads \
862 s-vxwext.adb<s-vxwext-kernel-smp.adb \
863 system.ads<system-vxworks-x86-kernel.ads
864 EXTRA_LIBGNAT_OBJS+=affinity.o
865 EXTRA_LIBGNAT_SRCS+=affinity.c
867 LIBGNAT_TARGET_PAIRS += \
868 s-interr.adb<s-interr-hwint.adb \
869 s-tpopsp.adb<s-tpopsp-vxworks.adb
871 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
872 LIBGNAT_TARGET_PAIRS += \
873 s-vxwext.ads<s-vxwext-kernel.ads \
874 s-vxwext.adb<s-vxwext-kernel.adb \
875 system.ads<system-vxworks-x86-kernel.ads
877 LIBGNAT_TARGET_PAIRS += \
878 system.ads<system-vxworks-x86.ads
882 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
885 EXTRA_GNATRTL_TASKING_OBJS += s-vxwork.o s-vxwext.o
887 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
888 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
891 ifeq ($(strip $(filter-out arm% coff wrs vx%,$(targ))),)
892 LIBGNAT_TARGET_PAIRS = \
893 a-intnam.ads<a-intnam-vxworks.ads \
894 a-numaux.ads<a-numaux-vxworks.ads \
895 s-inmaop.adb<s-inmaop-vxworks.adb \
896 s-interr.adb<s-interr-hwint.adb \
897 s-intman.ads<s-intman-vxworks.ads \
898 s-intman.adb<s-intman-vxworks.adb \
899 s-osinte.adb<s-osinte-vxworks.adb \
900 s-osinte.ads<s-osinte-vxworks.ads \
901 s-osprim.adb<s-osprim-vxworks.adb \
902 s-parame.ads<s-parame-vxworks.ads \
903 s-parame.adb<s-parame-vxworks.adb \
904 s-stchop.ads<s-stchop-limit.ads \
905 s-stchop.adb<s-stchop-vxworks.adb \
906 s-taprop.adb<s-taprop-vxworks.adb \
907 s-tasinf.ads<s-tasinf-vxworks.ads \
908 s-taspri.ads<s-taspri-vxworks.ads \
909 s-tpopsp.adb<s-tpopsp-vxworks.adb \
910 s-vxwork.ads<s-vxwork-arm.ads \
911 g-socthi.ads<g-socthi-vxworks.ads \
912 g-socthi.adb<g-socthi-vxworks.adb \
913 g-stsifd.adb<g-stsifd-sockets.adb \
914 system.ads<system-vxworks-arm.ads
917 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
918 indepsw.adb<indepsw-gnu.adb
920 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
921 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
923 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
924 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
927 ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)
928 LIBGNAT_TARGET_PAIRS = \
929 a-intnam.ads<a-intnam-vxworks.ads \
930 a-numaux.ads<a-numaux-vxworks.ads \
931 s-inmaop.adb<s-inmaop-vxworks.adb \
932 s-interr.adb<s-interr-hwint.adb \
933 s-intman.ads<s-intman-vxworks.ads \
934 s-intman.adb<s-intman-vxworks.adb \
935 s-osinte.adb<s-osinte-vxworks.adb \
936 s-osinte.ads<s-osinte-vxworks.ads \
937 s-osprim.adb<s-osprim-vxworks.adb \
938 s-parame.ads<s-parame-vxworks.ads \
939 s-parame.adb<s-parame-vxworks.adb \
940 s-stchop.ads<s-stchop-limit.ads \
941 s-stchop.adb<s-stchop-vxworks.adb \
942 s-taprop.adb<s-taprop-vxworks.adb \
943 s-tasinf.ads<s-tasinf-vxworks.ads \
944 s-taspri.ads<s-taspri-vxworks.ads \
945 s-tpopsp.adb<s-tpopsp-vxworks.adb \
946 s-vxwork.ads<s-vxwork-mips.ads \
947 g-socthi.ads<g-socthi-vxworks.ads \
948 g-socthi.adb<g-socthi-vxworks.adb \
949 g-stsifd.adb<g-stsifd-sockets.adb \
950 system.ads<system-vxworks-mips.ads
953 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
954 indepsw.adb<indepsw-gnu.adb
956 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
957 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
959 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
960 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
963 ifeq ($(strip $(filter-out sparc% sun solaris%,$(targ))),)
964 LIBGNAT_TARGET_PAIRS_COMMON = \
965 a-intnam.ads<a-intnam-solaris.ads \
966 s-inmaop.adb<s-inmaop-posix.adb \
967 s-intman.adb<s-intman-solaris.adb \
968 s-mudido.adb<s-mudido-affinity.adb \
969 s-osinte.adb<s-osinte-solaris.adb \
970 s-osinte.ads<s-osinte-solaris.ads \
971 s-osprim.adb<s-osprim-solaris.adb \
972 s-taprop.adb<s-taprop-solaris.adb \
973 s-tasinf.adb<s-tasinf-solaris.adb \
974 s-tasinf.ads<s-tasinf-solaris.ads \
975 s-taspri.ads<s-taspri-solaris.ads \
976 s-tpopsp.adb<s-tpopsp-solaris.adb \
977 g-soliop.ads<g-soliop-solaris.ads
979 LIBGNAT_TARGET_PAIRS_32 = \
980 system.ads<system-solaris-sparc.ads
982 LIBGNAT_TARGET_PAIRS_64 = \
983 system.ads<system-solaris-sparcv9.ads \
984 $(ATOMICS_TARGET_PAIRS) \
985 $(ATOMICS_BUILTINS_TARGET_PAIRS)
987 ifeq ($(strip $(filter-out sparc sun solaris%,$(targ))),)
988 ifeq ($(strip $(MULTISUBDIR)),/sparcv9)
989 LIBGNAT_TARGET_PAIRS = \
990 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
992 LIBGNAT_TARGET_PAIRS = \
993 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
996 ifeq ($(strip $(MULTISUBDIR)),/sparcv8plus)
997 LIBGNAT_TARGET_PAIRS = \
998 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1000 LIBGNAT_TARGET_PAIRS = \
1001 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1005 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
1008 THREADSLIB = -lposix4 -lthread
1009 MISCLIB = -lposix4 -lnsl -lsocket
1011 GNATLIB_SHARED = gnatlib-shared-dual
1013 LIBRARY_VERSION := $(LIB_VERSION)
1015 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
1016 LIBGNAT_TARGET_PAIRS = \
1017 a-intnam.ads<a-intnam-solaris.ads \
1018 s-inmaop.adb<s-inmaop-posix.adb \
1019 s-intman.adb<s-intman-posix.adb \
1020 s-osinte.adb<s-osinte-posix.adb \
1021 s-osinte.ads<s-osinte-solaris-posix.ads \
1022 s-osprim.adb<s-osprim-solaris.adb \
1023 s-taprop.adb<s-taprop-posix.adb \
1024 s-taspri.ads<s-taspri-posix.ads \
1025 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1026 g-soliop.ads<g-soliop-solaris.ads \
1027 system.ads<system-solaris-sparc.ads
1029 THREADSLIB = -lposix4 -lpthread
1032 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
1033 LIBGNAT_TARGET_PAIRS = $(LIBGNAT_TARGET_PAIRS_64)
1037 ifeq ($(strip $(filter-out %86 %x86_64 solaris2%,$(arch) $(osys))),)
1038 LIBGNAT_TARGET_PAIRS_COMMON = \
1039 a-intnam.ads<a-intnam-solaris.ads \
1040 s-inmaop.adb<s-inmaop-posix.adb \
1041 s-intman.adb<s-intman-solaris.adb \
1042 s-mudido.adb<s-mudido-affinity.adb \
1043 s-osinte.adb<s-osinte-solaris.adb \
1044 s-osinte.ads<s-osinte-solaris.ads \
1045 s-osprim.adb<s-osprim-solaris.adb \
1046 s-taprop.adb<s-taprop-solaris.adb \
1047 s-tasinf.adb<s-tasinf-solaris.adb \
1048 s-tasinf.ads<s-tasinf-solaris.ads \
1049 s-taspri.ads<s-taspri-solaris.ads \
1050 s-tpopsp.adb<s-tpopsp-solaris.adb \
1051 g-soliop.ads<g-soliop-solaris.ads \
1052 $(ATOMICS_TARGET_PAIRS)
1054 LIBGNAT_TARGET_PAIRS_32 = \
1055 $(X86_TARGET_PAIRS) \
1056 system.ads<system-solaris-x86.ads
1058 LIBGNAT_TARGET_PAIRS_64 = \
1059 $(X86_64_TARGET_PAIRS) \
1060 system.ads<system-solaris-x86_64.ads
1062 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
1063 ifeq ($(strip $(MULTISUBDIR)),/amd64)
1064 LIBGNAT_TARGET_PAIRS = \
1065 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1067 LIBGNAT_TARGET_PAIRS = \
1068 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1071 ifeq ($(strip $(MULTISUBDIR)),/32)
1072 LIBGNAT_TARGET_PAIRS = \
1073 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1075 LIBGNAT_TARGET_PAIRS = \
1076 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1080 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
1083 THREADSLIB = -lposix4 -lthread
1084 MISCLIB = -lposix4 -lnsl -lsocket
1086 GNATLIB_SHARED = gnatlib-shared-dual
1088 LIBRARY_VERSION := $(LIB_VERSION)
1091 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
1092 LIBGNAT_TARGET_PAIRS = \
1093 a-intnam.ads<a-intnam-linux.ads \
1094 a-synbar.adb<a-synbar-posix.adb \
1095 a-synbar.ads<a-synbar-posix.ads \
1096 s-inmaop.adb<s-inmaop-posix.adb \
1097 s-intman.adb<s-intman-posix.adb \
1098 s-tpopsp.adb<s-tpopsp-tls.adb \
1099 g-sercom.adb<g-sercom-linux.adb \
1100 a-exetim.adb<a-exetim-posix.adb \
1101 a-exetim.ads<a-exetim-default.ads \
1102 s-linux.ads<s-linux.ads \
1103 s-osinte.adb<s-osinte-posix.adb \
1104 $(ATOMICS_TARGET_PAIRS)
1106 LIBGNAT_TARGET_PAIRS_32 = \
1107 $(X86_TARGET_PAIRS) \
1108 system.ads<system-linux-x86.ads
1110 LIBGNAT_TARGET_PAIRS_64 = \
1111 $(X86_64_TARGET_PAIRS) \
1112 system.ads<system-linux-x86_64.ads
1114 ifeq ($(strip $(MULTISUBDIR)),/64)
1115 LIBGNAT_TARGET_PAIRS += $(LIBGNAT_TARGET_PAIRS_64)
1117 LIBGNAT_TARGET_PAIRS += $(LIBGNAT_TARGET_PAIRS_32)
1120 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
1121 LIBGNAT_TARGET_PAIRS += \
1122 s-osinte.ads<s-osinte-linux-xenomai.ads \
1123 s-osprim.adb<s-osprim-linux-xenomai.adb \
1124 s-taprop.adb<s-taprop-linux-xenomai.adb \
1125 s-taspri.ads<s-taspri-linux-xenomai.ads
1127 LIBGNAT_TARGET_PAIRS += \
1128 s-mudido.adb<s-mudido-affinity.adb \
1129 s-osinte.ads<s-osinte-linux.ads \
1130 s-osprim.adb<s-osprim-posix.adb \
1131 s-taprop.adb<s-taprop-linux.adb \
1132 s-tasinf.ads<s-tasinf-linux.ads \
1133 s-tasinf.adb<s-tasinf-linux.adb \
1134 s-taspri.ads<s-taspri-posix.ads
1138 THREADSLIB = -lpthread -lrt
1139 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
1140 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
1142 TOOLS_TARGET_PAIRS = \
1143 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1144 indepsw.adb<indepsw-gnu.adb
1146 GNATLIB_SHARED = gnatlib-shared-dual
1148 LIBRARY_VERSION := $(LIB_VERSION)
1151 ifeq ($(strip $(filter-out %86 kfreebsd%,$(arch) $(osys))),)
1152 LIBGNAT_TARGET_PAIRS = \
1153 a-intnam.ads<a-intnam-freebsd.ads \
1154 s-inmaop.adb<s-inmaop-posix.adb \
1155 s-intman.adb<s-intman-posix.adb \
1156 s-osinte.adb<s-osinte-posix.adb \
1157 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
1158 s-osprim.adb<s-osprim-posix.adb \
1159 s-taprop.adb<s-taprop-linux.adb \
1160 s-tasinf.ads<s-tasinf-linux.ads \
1161 s-tasinf.adb<s-tasinf-linux.adb \
1162 s-taspri.ads<s-taspri-posix.ads \
1163 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1164 $(ATOMICS_TARGET_PAIRS) \
1165 $(X86_TARGET_PAIRS) \
1166 system.ads<system-freebsd-x86.ads
1168 TOOLS_TARGET_PAIRS = \
1169 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1170 indepsw.adb<indepsw-gnu.adb
1173 THREADSLIB = -lpthread
1174 GNATLIB_SHARED = gnatlib-shared-dual
1176 LIBRARY_VERSION := $(LIB_VERSION)
1180 ifeq ($(strip $(filter-out x86_64 kfreebsd%,$(arch) $(osys))),)
1181 LIBGNAT_TARGET_PAIRS = \
1182 a-intnam.ads<a-intnam-freebsd.ads \
1183 a-numaux.adb<a-numaux-x86.adb \
1184 a-numaux.ads<a-numaux-x86.ads \
1185 s-inmaop.adb<s-inmaop-posix.adb \
1186 s-intman.adb<s-intman-posix.adb \
1187 s-osinte.adb<s-osinte-posix.adb \
1188 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
1189 s-osprim.adb<s-osprim-posix.adb \
1190 s-taprop.adb<s-taprop-linux.adb \
1191 s-tasinf.ads<s-tasinf-linux.ads \
1192 s-tasinf.adb<s-tasinf-linux.adb \
1193 s-taspri.ads<s-taspri-posix.ads \
1194 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1195 system.ads<system-freebsd-x86_64.ads
1197 TOOLS_TARGET_PAIRS = \
1198 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1199 indepsw.adb<indepsw-gnu.adb
1202 THREADSLIB = -lpthread
1203 GNATLIB_SHARED = gnatlib-shared-dual
1205 LIBRARY_VERSION := $(LIB_VERSION)
1208 ifeq ($(strip $(filter-out %86 freebsd%,$(arch) $(osys))),)
1209 LIBGNAT_TARGET_PAIRS = \
1210 a-intnam.ads<a-intnam-freebsd.ads \
1211 s-inmaop.adb<s-inmaop-posix.adb \
1212 s-intman.adb<s-intman-posix.adb \
1213 s-osinte.adb<s-osinte-freebsd.adb \
1214 s-osinte.ads<s-osinte-freebsd.ads \
1215 s-osprim.adb<s-osprim-posix.adb \
1216 s-taprop.adb<s-taprop-posix.adb \
1217 s-taspri.ads<s-taspri-posix.ads \
1218 s-tpopsp.adb<s-tpopsp-posix.adb \
1219 $(ATOMICS_TARGET_PAIRS) \
1220 $(X86_TARGET_PAIRS) \
1221 system.ads<system-freebsd-x86.ads
1223 TOOLS_TARGET_PAIRS = \
1224 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
1225 GNATLIB_SHARED = gnatlib-shared-dual
1228 THREADSLIB= -lpthread
1230 LIBRARY_VERSION := $(LIB_VERSION)
1234 ifeq ($(strip $(filter-out %86_64 freebsd%,$(arch) $(osys))),)
1235 LIBGNAT_TARGET_PAIRS = \
1236 a-intnam.ads<a-intnam-freebsd.ads \
1237 s-inmaop.adb<s-inmaop-posix.adb \
1238 s-intman.adb<s-intman-posix.adb \
1239 s-osinte.adb<s-osinte-freebsd.adb \
1240 s-osinte.ads<s-osinte-freebsd.ads \
1241 s-osprim.adb<s-osprim-posix.adb \
1242 s-taprop.adb<s-taprop-posix.adb \
1243 s-taspri.ads<s-taspri-posix.ads \
1244 s-tpopsp.adb<s-tpopsp-posix.adb \
1245 g-trasym.adb<g-trasym-dwarf.adb \
1246 $(ATOMICS_TARGET_PAIRS) \
1247 $(X86_64_TARGET_PAIRS) \
1248 system.ads<system-freebsd-x86_64.ads
1250 TOOLS_TARGET_PAIRS = \
1251 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
1252 GNATLIB_SHARED = gnatlib-shared-dual
1255 THREADSLIB= -lpthread
1257 LIBRARY_VERSION := $(LIB_VERSION)
1261 ifeq ($(strip $(filter-out s390% linux%,$(arch) $(osys))),)
1262 LIBGNAT_TARGET_PAIRS_COMMON = \
1263 a-intnam.ads<a-intnam-linux.ads \
1264 s-inmaop.adb<s-inmaop-posix.adb \
1265 s-intman.adb<s-intman-posix.adb \
1266 s-linux.ads<s-linux.ads \
1267 s-osinte.adb<s-osinte-posix.adb \
1268 s-osinte.ads<s-osinte-linux.ads \
1269 s-osprim.adb<s-osprim-posix.adb \
1270 s-taprop.adb<s-taprop-linux.adb \
1271 s-tasinf.ads<s-tasinf-linux.ads \
1272 s-tasinf.adb<s-tasinf-linux.adb \
1273 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1274 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
1276 LIBGNAT_TARGET_PAIRS_32 = \
1277 system.ads<system-linux-s390.ads
1279 LIBGNAT_TARGET_PAIRS_64 = \
1280 system.ads<system-linux-s390x.ads
1282 ifeq ($(strip $(filter-out s390x,$(arch))),)
1283 ifeq ($(strip $(MULTISUBDIR)),/32)
1284 LIBGNAT_TARGET_PAIRS = \
1285 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1287 LIBGNAT_TARGET_PAIRS = \
1288 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1291 LIBGNAT_TARGET_PAIRS = \
1292 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1295 TOOLS_TARGET_PAIRS = \
1296 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1297 indepsw.adb<indepsw-gnu.adb
1299 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1301 THREADSLIB = -lpthread
1302 GNATLIB_SHARED = gnatlib-shared-dual
1303 LIBRARY_VERSION := $(LIB_VERSION)
1306 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
1307 LIBGNAT_TARGET_PAIRS = \
1308 a-intnam.ads<a-intnam-irix.ads \
1309 a-synbar.adb<a-synbar-posix.adb \
1310 a-synbar.ads<a-synbar-posix.ads \
1311 s-inmaop.adb<s-inmaop-posix.adb \
1312 s-intman.adb<s-intman-irix.adb \
1313 s-mastop.adb<s-mastop-irix.adb \
1314 s-osinte.adb<s-osinte-irix.adb \
1315 s-osinte.ads<s-osinte-irix.ads \
1316 s-osprim.adb<s-osprim-posix.adb \
1317 s-proinf.adb<s-proinf-irix-athread.adb \
1318 s-proinf.ads<s-proinf-irix-athread.ads \
1319 s-taprop.adb<s-taprop-irix.adb \
1320 s-tasinf.ads<s-tasinf-irix.ads \
1321 s-taspri.ads<s-taspri-posix.ads \
1322 s-tpopsp.adb<s-tpopsp-posix.adb \
1323 s-traceb.adb<s-traceb-mastop.adb
1325 ifeq ($(strip $(MULTISUBDIR)),/64)
1326 LIBGNAT_TARGET_PAIRS += \
1327 system.ads<system-irix-n64.ads
1329 ifeq ($(strip $(MULTISUBDIR)),/32)
1330 LIBGNAT_TARGET_PAIRS += \
1331 system.ads<system-irix-o32.ads
1333 LIBGNAT_TARGET_PAIRS += \
1334 system.ads<system-irix-n32.ads
1338 THREADSLIB = -lpthread
1339 GNATLIB_SHARED = gnatlib-shared-default
1342 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-specific-irix.adb
1345 LIBRARY_VERSION := $(LIB_VERSION)
1349 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
1350 LIBGNAT_TARGET_PAIRS = \
1351 a-excpol.adb<a-excpol-abort.adb \
1352 a-intnam.ads<a-intnam-hpux.ads \
1353 s-inmaop.adb<s-inmaop-posix.adb \
1354 s-interr.adb<s-interr-sigaction.adb \
1355 s-intman.adb<s-intman-posix.adb \
1356 s-osinte.adb<s-osinte-hpux-dce.adb \
1357 s-osinte.ads<s-osinte-hpux-dce.ads \
1358 s-parame.ads<s-parame-hpux.ads \
1359 s-osprim.adb<s-osprim-posix.adb \
1360 s-taprop.adb<s-taprop-hpux-dce.adb \
1361 s-taspri.ads<s-taspri-hpux-dce.ads \
1362 s-tpopsp.adb<s-tpopsp-posix.adb \
1363 system.ads<system-hpux.ads
1368 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
1369 LIBGNAT_TARGET_PAIRS = \
1370 a-intnam.ads<a-intnam-hpux.ads \
1371 s-inmaop.adb<s-inmaop-posix.adb \
1372 s-intman.adb<s-intman-posix.adb \
1373 s-osinte.adb<s-osinte-posix.adb \
1374 s-osinte.ads<s-osinte-hpux.ads \
1375 s-parame.ads<s-parame-hpux.ads \
1376 s-osprim.adb<s-osprim-posix.adb \
1377 s-traceb.adb<s-traceb-hpux.adb \
1378 s-taprop.adb<s-taprop-posix.adb \
1379 s-taspri.ads<s-taspri-posix.ads \
1380 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1381 system.ads<system-hpux.ads
1383 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb
1385 TGT_LIB = /usr/lib/libcl.a
1386 THREADSLIB = -lpthread
1390 GNATLIB_SHARED = gnatlib-shared-dual
1391 LIBRARY_VERSION := $(LIB_VERSION)
1394 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
1395 LIBGNAT_TARGET_PAIRS_COMMON = \
1396 a-intnam.ads<a-intnam-aix.ads \
1397 s-inmaop.adb<s-inmaop-posix.adb \
1398 s-intman.adb<s-intman-posix.adb \
1399 s-osinte.adb<s-osinte-aix.adb \
1400 s-osinte.ads<s-osinte-aix.ads \
1401 s-osprim.adb<s-osprim-posix.adb \
1402 s-taprop.adb<s-taprop-posix.adb \
1403 s-taspri.ads<s-taspri-posix.ads \
1404 s-tpopsp.adb<s-tpopsp-posix.adb \
1405 $(ATOMICS_TARGET_PAIRS) \
1406 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1408 LIBGNAT_TARGET_PAIRS_32 = \
1409 system.ads<system-aix.ads
1411 LIBGNAT_TARGET_PAIRS_64 = \
1412 system.ads<system-aix64.ads
1414 ifeq ($(findstring ppc64, \
1415 $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) \
1416 -print-multi-os-directory)), \
1418 LIBGNAT_TARGET_PAIRS = \
1419 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1420 TOOLS_TARGET_PAIRS = \
1421 indepsw.adb<indepsw-aix.adb
1423 LIBGNAT_TARGET_PAIRS = \
1424 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1425 TOOLS_TARGET_PAIRS = \
1426 indepsw.adb<indepsw-gnu.adb
1429 THREADSLIB = -lpthreads
1431 TOOLS_TARGET_PAIRS += \
1432 mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb
1437 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1438 LIBGNAT_TARGET_PAIRS = \
1439 system.ads<system-rtems.ads \
1440 a-intnam.ads<a-intnam-rtems.ads \
1441 s-inmaop.adb<s-inmaop-posix.adb \
1442 s-intman.adb<s-intman-posix.adb \
1443 s-osinte.adb<s-osinte-rtems.adb \
1444 s-osinte.ads<s-osinte-rtems.ads \
1445 s-osprim.adb<s-osprim-posix.adb \
1446 s-parame.adb<s-parame-rtems.adb \
1447 s-taprop.adb<s-taprop-posix.adb \
1448 s-taspri.ads<s-taspri-posix.ads \
1449 s-tpopsp.adb<s-tpopsp-rtems.adb \
1450 s-stchop.adb<s-stchop-rtems.adb \
1451 s-interr.adb<s-interr-hwint.adb
1454 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1455 LIBGNAT_TARGET_PAIRS = \
1456 a-intnam.ads<a-intnam-tru64.ads \
1457 s-inmaop.adb<s-inmaop-posix.adb \
1458 s-intman.adb<s-intman-posix.adb \
1459 s-mastop.adb<s-mastop-tru64.adb \
1460 s-osinte.adb<s-osinte-tru64.adb \
1461 s-osinte.ads<s-osinte-tru64.ads \
1462 s-osprim.adb<s-osprim-unix.adb \
1463 s-taprop.adb<s-taprop-tru64.adb \
1464 s-tasinf.ads<s-tasinf-tru64.ads \
1465 s-taspri.ads<s-taspri-tru64.ads \
1466 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1467 s-traceb.adb<s-traceb-mastop.adb \
1468 system.ads<system-tru64.ads \
1469 $(ATOMICS_TARGET_PAIRS) \
1470 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1472 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-tru64.adb
1477 THREADSLIB = -lpthread -lmach -lexc -lrt
1478 GNATLIB_SHARED = gnatlib-shared-default
1479 LIBRARY_VERSION := $(LIB_VERSION)
1482 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(host))),)
1491 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1492 LIBGNAT_TARGET_PAIRS = \
1493 a-caldel.adb<a-caldel-vms.adb \
1494 a-calend.adb<a-calend-vms.adb \
1495 a-calend.ads<a-calend-vms.ads \
1496 a-dirval.adb<a-dirval-vms.adb \
1497 a-excpol.adb<a-excpol-abort.adb \
1498 a-intnam.ads<a-intnam-vms.ads \
1499 a-numaux.ads<a-numaux-vms.ads \
1500 g-expect.adb<g-expect-vms.adb \
1501 g-socthi.ads<g-socthi-vms.ads \
1502 g-socthi.adb<g-socthi-vms.adb \
1503 g-stsifd.adb<g-stsifd-sockets.adb \
1504 i-cstrea.adb<i-cstrea-vms.adb \
1505 memtrack.adb<memtrack-vms_64.adb \
1506 s-auxdec.ads<s-auxdec-vms_64.ads \
1507 s-inmaop.adb<s-inmaop-vms.adb \
1508 s-interr.adb<s-interr-vms.adb \
1509 s-intman.adb<s-intman-vms.adb \
1510 s-intman.ads<s-intman-vms.ads \
1511 s-memory.adb<s-memory-vms_64.adb \
1512 s-memory.ads<s-memory-vms_64.ads \
1513 s-osprim.adb<s-osprim-vms.adb \
1514 s-osprim.ads<s-osprim-vms.ads \
1515 s-taprop.adb<s-taprop-vms.adb \
1516 s-tasdeb.adb<s-tasdeb-vms.adb \
1517 s-taspri.ads<s-taspri-vms.ads \
1518 s-tpopsp.adb<s-tpopsp-vms.adb \
1519 s-tpopde.adb<s-tpopde-vms.adb \
1520 s-tpopde.ads<s-tpopde-vms.ads
1522 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1523 LIBGNAT_TARGET_PAIRS += \
1524 g-enblsp.adb<g-enblsp-vms-ia64.adb \
1525 g-trasym.adb<g-trasym-vms-ia64.adb \
1526 s-asthan.adb<s-asthan-vms-ia64.adb \
1527 s-auxdec.adb<s-auxdec-vms-ia64.adb \
1528 s-osinte.adb<s-osinte-vms-ia64.adb \
1529 s-osinte.ads<s-osinte-vms-ia64.ads \
1530 s-vaflop.adb<s-vaflop-vms-ia64.adb \
1531 system.ads<system-vms-ia64.ads \
1532 s-parame.ads<s-parame-vms-ia64.ads \
1533 $(ATOMICS_TARGET_PAIRS) \
1534 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1536 TOOLS_TARGET_PAIRS= \
1537 mlib-tgt-specific.adb<mlib-tgt-specific-vms-ia64.adb \
1538 symbols.adb<symbols-vms.adb \
1539 symbols-processing.adb<symbols-processing-vms-ia64.adb
1541 ifeq ($(strip $(filter-out alpha64 dec vms% openvms% alphavms%,$(targ))),)
1542 LIBGNAT_TARGET_PAIRS += \
1543 g-enblsp.adb<g-enblsp-vms-alpha.adb \
1544 g-trasym.adb<g-trasym-vms-alpha.adb \
1545 s-asthan.adb<s-asthan-vms-alpha.adb \
1546 s-auxdec.adb<s-auxdec-vms-alpha.adb \
1547 s-osinte.adb<s-osinte-vms.adb \
1548 s-osinte.ads<s-osinte-vms.ads \
1549 s-traent.adb<s-traent-vms.adb \
1550 s-traent.ads<s-traent-vms.ads \
1551 s-vaflop.adb<s-vaflop-vms-alpha.adb \
1552 system.ads<system-vms_64.ads \
1553 s-parame.ads<s-parame-vms-alpha.ads \
1554 $(ATOMICS_TARGET_PAIRS) \
1555 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1557 TOOLS_TARGET_PAIRS= \
1558 mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \
1559 symbols.adb<symbols-vms.adb \
1560 symbols-processing.adb<symbols-processing-vms-alpha.adb
1564 EXTRA_GNATMAKE_OBJS = mlib-tgt-vms_common.o
1568 GNATLIB_SHARED=gnatlib-shared-vms
1569 EXTRA_GNATRTL_NONTASKING_OBJS+=s-po32gl.o
1570 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1572 ../../gnatsym$(exeext)
1573 # This command transforms (YYYYMMDD) into YY,MMDD
1574 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)ada/gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\).*/\2,\3/')
1575 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1576 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1579 ifeq ($(strip $(filter-out avr none powerpc% eabispe leon% erc32% unknown elf,$(targ))),)
1580 TOOLS_TARGET_PAIRS=\
1581 mlib-tgt-specific.adb<mlib-tgt-specific-xi.adb \
1582 indepsw.adb<indepsw-gnu.adb
1585 ifeq ($(strip $(filter-out cygwin% mingw32% pe,$(osys))),)
1586 # Cygwin provides a full Posix environment, and so we use the default
1587 # versions of s-memory and g-socthi rather than the Windows-specific
1588 # MinGW versions. Ideally we would use all the default versions for
1589 # Cygwin and none of the MinGW versions, but for historical reasons
1590 # the Cygwin port has always been a CygMing frankenhybrid and it is
1591 # a long-term project to disentangle them.
1592 ifeq ($(strip $(filter-out cygwin%,$(osys))),)
1593 LIBGNAT_TARGET_PAIRS = \
1594 s-memory.adb<s-memory.adb \
1595 g-socthi.ads<g-socthi.ads \
1596 g-socthi.adb<g-socthi.adb
1598 LIBGNAT_TARGET_PAIRS = \
1599 s-memory.adb<s-memory-mingw.adb \
1600 g-socthi.ads<g-socthi-mingw.ads \
1601 g-socthi.adb<g-socthi-mingw.adb
1603 LIBGNAT_TARGET_PAIRS += \
1604 a-dirval.adb<a-dirval-mingw.adb \
1605 a-excpol.adb<a-excpol-abort.adb \
1606 s-gloloc.adb<s-gloloc-mingw.adb \
1607 s-inmaop.adb<s-inmaop-dummy.adb \
1608 s-taspri.ads<s-taspri-mingw.ads \
1609 s-tasinf.adb<s-tasinf-mingw.adb \
1610 s-tasinf.ads<s-tasinf-mingw.ads \
1611 g-stsifd.adb<g-stsifd-sockets.adb \
1612 g-soliop.ads<g-soliop-mingw.ads \
1613 $(ATOMICS_TARGET_PAIRS)
1615 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss,$(THREAD_KIND))),)
1616 LIBGNAT_TARGET_PAIRS += \
1617 s-intman.adb<s-intman-dummy.adb \
1618 s-osinte.ads<s-osinte-rtx.ads \
1619 s-osprim.adb<s-osprim-rtx.adb \
1620 s-taprop.adb<s-taprop-rtx.adb \
1623 EXTRA_GNATRTL_NONTASKING_OBJS = s-win32.o
1625 ifeq ($(strip $(filter-out rtx_w32,$(THREAD_KIND))),)
1626 LIBGNAT_TARGET_PAIRS += system.ads<system-rtx.ads
1630 LIBGNAT_TARGET_PAIRS += \
1631 system.ads<system-rtx-rtss.ads \
1632 s-parame.adb<s-parame-vxworks.adb
1638 LIBGNAT_TARGET_PAIRS += \
1639 a-exetim.adb<a-exetim-mingw.adb \
1640 a-exetim.ads<a-exetim-mingw.ads \
1641 a-intnam.ads<a-intnam-mingw.ads \
1642 g-sercom.adb<g-sercom-mingw.adb \
1643 s-interr.adb<s-interr-sigaction.adb \
1644 s-intman.adb<s-intman-mingw.adb \
1645 s-mudido.adb<s-mudido-affinity.adb \
1646 s-osinte.ads<s-osinte-mingw.ads \
1647 s-osprim.adb<s-osprim-mingw.adb \
1648 s-taprop.adb<s-taprop-mingw.adb
1650 ifeq ($(strip $(filter-out x86_64%,$(arch))),)
1651 ifeq ($(strip $(MULTISUBDIR)),/32)
1652 LIBGNAT_TARGET_PAIRS += \
1653 $(X86_TARGET_PAIRS) \
1654 system.ads<system-mingw.ads
1655 SO_OPTS= -m32 -Wl,-soname,
1657 LIBGNAT_TARGET_PAIRS += \
1658 $(X86_64_TARGET_PAIRS) \
1659 system.ads<system-mingw-x86_64.ads
1660 SO_OPTS = -m64 -Wl,-soname,
1663 ifeq ($(strip $(MULTISUBDIR)),/64)
1664 LIBGNAT_TARGET_PAIRS += \
1665 $(X86_64_TARGET_PAIRS) \
1666 system.ads<system-mingw-x86_64.ads
1667 SO_OPTS = -m64 -Wl,-soname,
1669 LIBGNAT_TARGET_PAIRS += \
1670 $(X86_TARGET_PAIRS) \
1671 system.ads<system-mingw.ads
1672 SO_OPTS = -m32 -Wl,-soname,
1676 EXTRA_GNATRTL_NONTASKING_OBJS = \
1677 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1678 EXTRA_GNATRTL_TASKING_OBJS = a-exetim.o
1682 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1683 # auto-import support for array/record will be done.
1684 GNATLIB_SHARED = gnatlib-shared-win32
1689 TOOLS_TARGET_PAIRS= \
1690 mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb \
1691 indepsw.adb<indepsw-mingw.adb
1694 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1695 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1697 LIBRARY_VERSION := $(LIB_VERSION)
1700 ifeq ($(strip $(filter-out mips linux%,$(arch) $(osys))),)
1701 LIBGNAT_TARGET_PAIRS = \
1702 a-intnam.ads<a-intnam-linux.ads \
1703 s-inmaop.adb<s-inmaop-posix.adb \
1704 s-intman.adb<s-intman-posix.adb \
1705 s-linux.ads<s-linux.ads \
1706 s-osinte.adb<s-osinte-posix.adb \
1707 s-osinte.ads<s-osinte-linux.ads \
1708 s-osprim.adb<s-osprim-posix.adb \
1709 s-taprop.adb<s-taprop-linux.adb \
1710 s-tasinf.ads<s-tasinf-linux.ads \
1711 s-tasinf.adb<s-tasinf-linux.adb \
1712 s-taspri.ads<s-taspri-posix.ads \
1713 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1714 system.ads<system-linux-mips.ads
1717 THREADSLIB = -lpthread
1718 GNATLIB_SHARED = gnatlib-shared-dual
1720 LIBRARY_VERSION := $(LIB_VERSION)
1723 ifeq ($(strip $(filter-out mipsel linux%,$(arch) $(osys))),)
1724 LIBGNAT_TARGET_PAIRS_COMMON = \
1725 a-intnam.ads<a-intnam-linux.ads \
1726 s-inmaop.adb<s-inmaop-posix.adb \
1727 s-intman.adb<s-intman-posix.adb \
1728 s-linux.ads<s-linux-mipsel.ads \
1729 s-osinte.adb<s-osinte-posix.adb \
1730 s-osinte.ads<s-osinte-linux.ads \
1731 s-osprim.adb<s-osprim-posix.adb \
1732 s-taprop.adb<s-taprop-linux.adb \
1733 s-tasinf.ads<s-tasinf-linux.ads \
1734 s-tasinf.adb<s-tasinf-linux.adb \
1735 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1736 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1737 g-sercom.adb<g-sercom-linux.adb
1739 LIBGNAT_TARGET_PAIRS_32 = \
1740 system.ads<system-linux-mipsel.ads
1742 LIBGNAT_TARGET_PAIRS_64 = \
1743 system.ads<system-linux-mips64el.ads
1745 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1746 LIBGNAT_TARGET_PAIRS = \
1747 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1749 LIBGNAT_TARGET_PAIRS = \
1750 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1753 TOOLS_TARGET_PAIRS = \
1754 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1755 indepsw.adb<indepsw-gnu.adb
1757 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1759 THREADSLIB = -lpthread
1760 GNATLIB_SHARED = gnatlib-shared-dual
1762 LIBRARY_VERSION := $(LIB_VERSION)
1765 ifeq ($(strip $(filter-out mips64el linux%,$(arch) $(osys))),)
1766 LIBGNAT_TARGET_PAIRS_COMMON = \
1767 a-intnam.ads<a-intnam-linux.ads \
1768 s-inmaop.adb<s-inmaop-posix.adb \
1769 s-intman.adb<s-intman-posix.adb \
1770 s-linux.ads<s-linux-mipsel.ads \
1771 s-osinte.adb<s-osinte-posix.adb \
1772 s-osinte.ads<s-osinte-linux.ads \
1773 s-osprim.adb<s-osprim-posix.adb \
1774 s-taprop.adb<s-taprop-linux.adb \
1775 s-tasinf.ads<s-tasinf-linux.ads \
1776 s-tasinf.adb<s-tasinf-linux.adb \
1777 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1778 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1779 g-sercom.adb<g-sercom-linux.adb
1781 LIBGNAT_TARGET_PAIRS_32 = \
1782 system.ads<system-linux-mipsel.ads
1784 LIBGNAT_TARGET_PAIRS_64 = \
1785 system.ads<system-linux-mips64el.ads
1787 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1788 LIBGNAT_TARGET_PAIRS = \
1789 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1791 LIBGNAT_TARGET_PAIRS = \
1792 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1795 TOOLS_TARGET_PAIRS = \
1796 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1797 indepsw.adb<indepsw-gnu.adb
1799 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1801 THREADSLIB = -lpthread
1802 GNATLIB_SHARED = gnatlib-shared-dual
1804 LIBRARY_VERSION := $(LIB_VERSION)
1807 ifeq ($(strip $(filter-out powerpc% linux%,$(arch) $(osys))),)
1808 LIBGNAT_TARGET_PAIRS_COMMON = \
1809 a-exetim.adb<a-exetim-posix.adb \
1810 a-exetim.ads<a-exetim-default.ads \
1811 a-intnam.ads<a-intnam-linux.ads \
1812 a-synbar.adb<a-synbar-posix.adb \
1813 a-synbar.ads<a-synbar-posix.ads \
1814 s-inmaop.adb<s-inmaop-posix.adb \
1815 s-intman.adb<s-intman-posix.adb \
1816 s-linux.ads<s-linux.ads \
1817 s-osinte.adb<s-osinte-posix.adb \
1818 s-tpopsp.adb<s-tpopsp-tls.adb \
1819 g-sercom.adb<g-sercom-linux.adb \
1820 $(ATOMICS_TARGET_PAIRS) \
1821 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1823 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
1824 LIBGNAT_TARGET_PAIRS = \
1825 $(LIBGNAT_TARGET_PAIRS_COMMON)
1827 LIBGNAT_TARGET_PAIRS += \
1828 s-osinte.ads<s-osinte-linux-xenomai.ads \
1829 s-osprim.adb<s-osprim-linux-xenomai.adb \
1830 s-taprop.adb<s-taprop-linux-xenomai.adb \
1831 s-taspri.ads<s-taspri-linux-xenomai.ads \
1832 system.ads<system-linux-ppc.ads
1834 LIBGNAT_TARGET_PAIRS_32 = \
1835 system.ads<system-linux-ppc.ads
1837 LIBGNAT_TARGET_PAIRS_64 = \
1838 system.ads<system-linux-ppc64.ads
1840 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1841 LIBGNAT_TARGET_PAIRS = \
1842 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1844 LIBGNAT_TARGET_PAIRS = \
1845 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1848 LIBGNAT_TARGET_PAIRS += \
1849 s-mudido.adb<s-mudido-affinity.adb \
1850 s-osinte.ads<s-osinte-linux.ads \
1851 s-osprim.adb<s-osprim-posix.adb \
1852 s-taprop.adb<s-taprop-linux.adb \
1853 s-tasinf.ads<s-tasinf-linux.ads \
1854 s-tasinf.adb<s-tasinf-linux.adb \
1855 s-taspri.ads<s-taspri-posix-noaltstack.ads
1858 TOOLS_TARGET_PAIRS = \
1859 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1860 indepsw.adb<indepsw-gnu.adb
1862 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
1864 THREADSLIB = -lpthread -lrt
1865 GNATLIB_SHARED = gnatlib-shared-dual
1867 LIBRARY_VERSION := $(LIB_VERSION)
1870 ifeq ($(strip $(filter-out arm% linux-gnueabi,$(arch) $(osys)-$(word 4,$(targ)))),)
1871 LIBGNAT_TARGET_PAIRS = \
1872 a-intnam.ads<a-intnam-linux.ads \
1873 s-inmaop.adb<s-inmaop-posix.adb \
1874 s-intman.adb<s-intman-posix.adb \
1875 s-linux.ads<s-linux.ads \
1876 s-osinte.adb<s-osinte-posix.adb \
1877 s-osinte.ads<s-osinte-linux.ads \
1878 s-osprim.adb<s-osprim-posix.adb \
1879 s-taprop.adb<s-taprop-linux.adb \
1880 s-tasinf.ads<s-tasinf-linux.ads \
1881 s-tasinf.adb<s-tasinf-linux.adb \
1882 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1883 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
1885 ifeq ($(strip $(filter-out arm%b,$(arch))),)
1886 LIBGNAT_TARGET_PAIRS += \
1887 system.ads<system-linux-armeb.ads
1889 LIBGNAT_TARGET_PAIRS += \
1890 system.ads<system-linux-armel.ads
1893 TOOLS_TARGET_PAIRS = \
1894 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1895 indepsw.adb<indepsw-gnu.adb
1897 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1899 THREADSLIB = -lpthread
1900 GNATLIB_SHARED = gnatlib-shared-dual
1902 LIBRARY_VERSION := $(LIB_VERSION)
1905 ifeq ($(strip $(filter-out sparc% linux%,$(arch) $(osys))),)
1906 LIBGNAT_TARGET_PAIRS_COMMON = \
1907 a-intnam.ads<a-intnam-linux.ads \
1908 s-inmaop.adb<s-inmaop-posix.adb \
1909 s-intman.adb<s-intman-posix.adb \
1910 s-linux.ads<s-linux-sparc.ads \
1911 s-osinte.adb<s-osinte-posix.adb \
1912 s-osinte.ads<s-osinte-linux.ads \
1913 s-osprim.adb<s-osprim-posix.adb \
1914 s-taprop.adb<s-taprop-linux.adb \
1915 s-tasinf.ads<s-tasinf-linux.ads \
1916 s-tasinf.adb<s-tasinf-linux.adb \
1917 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1918 s-tpopsp.adb<s-tpopsp-tls.adb
1920 LIBGNAT_TARGET_PAIRS_32 = \
1921 system.ads<system-linux-sparc.ads
1923 LIBGNAT_TARGET_PAIRS_64 = \
1924 system.ads<system-linux-sparcv9.ads
1926 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1927 LIBGNAT_TARGET_PAIRS = \
1928 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1930 LIBGNAT_TARGET_PAIRS = \
1931 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1934 TOOLS_TARGET_PAIRS = \
1935 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1936 indepsw.adb<indepsw-gnu.adb
1938 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1940 THREADSLIB = -lpthread
1941 GNATLIB_SHARED = gnatlib-shared-dual
1943 LIBRARY_VERSION := $(LIB_VERSION)
1946 ifeq ($(strip $(filter-out hppa% linux%,$(arch) $(osys))),)
1947 LIBGNAT_TARGET_PAIRS = \
1948 a-intnam.ads<a-intnam-linux.ads \
1949 s-inmaop.adb<s-inmaop-posix.adb \
1950 s-intman.adb<s-intman-posix.adb \
1951 s-linux.ads<s-linux-hppa.ads \
1952 s-osinte.adb<s-osinte-posix.adb \
1953 s-osinte.ads<s-osinte-linux.ads \
1954 s-osprim.adb<s-osprim-posix.adb \
1955 s-taprop.adb<s-taprop-linux.adb \
1956 s-tasinf.ads<s-tasinf-linux.ads \
1957 s-tasinf.adb<s-tasinf-linux.adb \
1958 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1959 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1960 system.ads<system-linux-hppa.ads
1962 TOOLS_TARGET_PAIRS = \
1963 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1964 indepsw.adb<indepsw-gnu.adb
1966 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1968 THREADSLIB = -lpthread
1969 GNATLIB_SHARED = gnatlib-shared-dual
1971 LIBRARY_VERSION := $(LIB_VERSION)
1974 ifeq ($(strip $(filter-out sh4% linux%,$(arch) $(osys))),)
1975 LIBGNAT_TARGET_PAIRS = \
1976 a-intnam.ads<a-intnam-linux.ads \
1977 s-inmaop.adb<s-inmaop-posix.adb \
1978 s-intman.adb<s-intman-posix.adb \
1979 s-linux.ads<s-linux.ads \
1980 s-osinte.adb<s-osinte-posix.adb \
1981 s-osinte.ads<s-osinte-linux.ads \
1982 s-osprim.adb<s-osprim-posix.adb \
1983 s-taprop.adb<s-taprop-linux.adb \
1984 s-tasinf.ads<s-tasinf-linux.ads \
1985 s-tasinf.adb<s-tasinf-linux.adb \
1986 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1987 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1988 system.ads<system-linux-sh4.ads
1990 TOOLS_TARGET_PAIRS = \
1991 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1992 indepsw.adb<indepsw-linux.adb
1994 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1997 THREADSLIB = -lpthread
1998 GNATLIB_SHARED = gnatlib-shared-dual
2000 LIBRARY_VERSION := $(LIB_VERSION)
2003 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
2004 LIBGNAT_TARGET_PAIRS = \
2005 a-exetim.adb<a-exetim-posix.adb \
2006 a-exetim.ads<a-exetim-default.ads \
2007 a-intnam.ads<a-intnam-linux.ads \
2008 a-numaux.ads<a-numaux-libc-x86.ads \
2009 a-synbar.adb<a-synbar-posix.adb \
2010 a-synbar.ads<a-synbar-posix.ads \
2011 s-inmaop.adb<s-inmaop-posix.adb \
2012 s-intman.adb<s-intman-posix.adb \
2013 s-linux.ads<s-linux.ads \
2014 s-mudido.adb<s-mudido-affinity.adb \
2015 s-osinte.ads<s-osinte-linux.ads \
2016 s-osinte.adb<s-osinte-posix.adb \
2017 s-osprim.adb<s-osprim-posix.adb \
2018 s-taprop.adb<s-taprop-linux.adb \
2019 s-tasinf.ads<s-tasinf-linux.ads \
2020 s-tasinf.adb<s-tasinf-linux.adb \
2021 s-tpopsp.adb<s-tpopsp-tls.adb \
2022 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2023 g-sercom.adb<g-sercom-linux.adb \
2024 system.ads<system-linux-ia64.ads \
2025 $(ATOMICS_TARGET_PAIRS) \
2026 $(ATOMICS_BUILTINS_TARGET_PAIRS)
2028 TOOLS_TARGET_PAIRS = \
2029 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2030 indepsw.adb<indepsw-gnu.adb
2032 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
2035 THREADSLIB=-lpthread -lrt
2036 GNATLIB_SHARED=gnatlib-shared-dual
2038 LIBRARY_VERSION := $(LIB_VERSION)
2041 ifeq ($(strip $(filter-out ia64% hp hpux%,$(targ))),)
2042 LIBGNAT_TARGET_PAIRS = \
2043 a-intnam.ads<a-intnam-hpux.ads \
2044 s-inmaop.adb<s-inmaop-posix.adb \
2045 s-intman.adb<s-intman-posix.adb \
2046 s-osinte.adb<s-osinte-posix.adb \
2047 s-osinte.ads<s-osinte-hpux.ads \
2048 s-osprim.adb<s-osprim-posix.adb \
2049 s-taprop.adb<s-taprop-posix.adb \
2050 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2051 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2052 system.ads<system-hpux-ia64.ads \
2053 $(ATOMICS_TARGET_PAIRS) \
2054 $(ATOMICS_BUILTINS_TARGET_PAIRS)
2056 TOOLS_TARGET_PAIRS = \
2057 mlib-tgt-specific.adb<mlib-tgt-specific-ia64-hpux.adb
2060 THREADSLIB=-lpthread
2061 GNATLIB_SHARED=gnatlib-shared-dual
2065 LIBRARY_VERSION := $(LIB_VERSION)
2068 ifeq ($(strip $(filter-out alpha% linux%,$(arch) $(osys))),)
2069 LIBGNAT_TARGET_PAIRS = \
2070 a-intnam.ads<a-intnam-linux.ads \
2071 s-inmaop.adb<s-inmaop-posix.adb \
2072 s-intman.adb<s-intman-posix.adb \
2073 s-linux.ads<s-linux-alpha.ads \
2074 s-osinte.ads<s-osinte-linux.ads \
2075 s-osinte.adb<s-osinte-posix.adb \
2076 s-osprim.adb<s-osprim-posix.adb \
2077 s-taprop.adb<s-taprop-linux.adb \
2078 s-tasinf.ads<s-tasinf-linux.ads \
2079 s-tasinf.adb<s-tasinf-linux.adb \
2080 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2081 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2082 system.ads<system-linux-alpha.ads \
2083 $(ATOMICS_TARGET_PAIRS) \
2084 $(ATOMICS_BUILTINS_TARGET_PAIRS)
2086 TOOLS_TARGET_PAIRS = \
2087 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2088 indepsw.adb<indepsw-gnu.adb
2090 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
2093 THREADSLIB=-lpthread
2094 GNATLIB_SHARED=gnatlib-shared-dual
2095 LIBRARY_VERSION := $(LIB_VERSION)
2098 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
2099 LIBGNAT_TARGET_PAIRS = \
2100 a-exetim.adb<a-exetim-posix.adb \
2101 a-exetim.ads<a-exetim-default.ads \
2102 a-intnam.ads<a-intnam-linux.ads \
2103 a-synbar.adb<a-synbar-posix.adb \
2104 a-synbar.ads<a-synbar-posix.ads \
2105 s-inmaop.adb<s-inmaop-posix.adb \
2106 s-intman.adb<s-intman-posix.adb \
2107 s-linux.ads<s-linux.ads \
2108 s-mudido.adb<s-mudido-affinity.adb \
2109 s-osinte.ads<s-osinte-linux.ads \
2110 s-osinte.adb<s-osinte-posix.adb \
2111 s-osprim.adb<s-osprim-posix.adb \
2112 s-taprop.adb<s-taprop-linux.adb \
2113 s-tasinf.ads<s-tasinf-linux.ads \
2114 s-tasinf.adb<s-tasinf-linux.adb \
2115 s-tpopsp.adb<s-tpopsp-tls.adb \
2116 s-taspri.ads<s-taspri-posix.ads \
2117 g-sercom.adb<g-sercom-linux.adb \
2118 $(ATOMICS_TARGET_PAIRS) \
2119 $(X86_64_TARGET_PAIRS) \
2120 system.ads<system-linux-x86_64.ads
2122 TOOLS_TARGET_PAIRS = \
2123 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2124 indepsw.adb<indepsw-gnu.adb
2126 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
2127 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
2129 THREADSLIB=-lpthread -lrt
2130 GNATLIB_SHARED=gnatlib-shared-dual
2132 LIBRARY_VERSION := $(LIB_VERSION)
2135 ifeq ($(strip $(filter-out darwin%,$(osys))),)
2136 SO_OPTS = -shared-libgcc
2137 LIBGNAT_TARGET_PAIRS = \
2138 a-intnam.ads<a-intnam-darwin.ads \
2139 s-inmaop.adb<s-inmaop-posix.adb \
2140 s-osinte.adb<s-osinte-darwin.adb \
2141 s-osinte.ads<s-osinte-darwin.ads \
2142 s-taprop.adb<s-taprop-posix.adb \
2143 s-taspri.ads<s-taspri-posix.ads \
2144 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
2146 ifeq ($(strip $(filter-out %86,$(arch))),)
2147 LIBGNAT_TARGET_PAIRS += \
2148 s-intman.adb<s-intman-susv3.adb \
2149 s-osprim.adb<s-osprim-darwin.adb \
2150 $(ATOMICS_TARGET_PAIRS)
2152 ifeq ($(strip $(MULTISUBDIR)),/x86_64)
2153 LIBGNAT_TARGET_PAIRS += \
2154 $(X86_64_TARGET_PAIRS) \
2155 system.ads<system-darwin-x86_64.ads
2158 LIBGNAT_TARGET_PAIRS += \
2159 $(X86_TARGET_PAIRS) \
2160 system.ads<system-darwin-x86.ads
2164 ifeq ($(strip $(filter-out %x86_64,$(arch))),)
2165 LIBGNAT_TARGET_PAIRS += \
2166 s-intman.adb<s-intman-susv3.adb \
2167 s-osprim.adb<s-osprim-darwin.adb \
2168 $(ATOMICS_TARGET_PAIRS)
2170 ifeq ($(strip $(MULTISUBDIR)),/i386)
2171 LIBGNAT_TARGET_PAIRS += \
2172 $(X86_TARGET_PAIRS) \
2173 system.ads<system-darwin-x86.ads
2176 LIBGNAT_TARGET_PAIRS += \
2177 $(X86_64_TARGET_PAIRS) \
2178 system.ads<system-darwin-x86_64.ads
2182 ifeq ($(strip $(filter-out powerpc%,$(arch))),)
2183 LIBGNAT_TARGET_PAIRS += \
2184 s-intman.adb<s-intman-posix.adb \
2185 s-osprim.adb<s-osprim-posix.adb \
2186 a-numaux.ads<a-numaux-darwin.ads \
2187 a-numaux.adb<a-numaux-darwin.adb
2189 ifeq ($(strip $(MULTISUBDIR)),/ppc64)
2190 LIBGNAT_TARGET_PAIRS += \
2191 system.ads<system-darwin-ppc64.ads
2194 LIBGNAT_TARGET_PAIRS += \
2195 system.ads<system-darwin-ppc.ads
2199 TOOLS_TARGET_PAIRS = \
2200 mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb \
2201 indepsw.adb<indepsw-darwin.adb
2204 GNATLIB_SHARED = gnatlib-shared-darwin
2206 LIBRARY_VERSION := $(LIB_VERSION)
2211 ifneq ($(EH_MECHANISM),)
2212 LIBGNAT_TARGET_PAIRS += a-exexpr.adb<a-exexpr$(EH_MECHANISM).adb
2213 EXTRA_LIBGNAT_SRCS+=raise$(EH_MECHANISM).c
2214 EXTRA_LIBGNAT_OBJS+=raise$(EH_MECHANISM).o
2217 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
2218 # explicitly already. The base files (a-except.ad?) are used only for building
2219 # the compiler and other basic tools.
2220 # These base versions lack Ada 2005 additions which would cause bootstrap
2221 # problems if included in the compiler and other basic tools.
2223 ifeq ($(filter a-except%,$(LIBGNAT_TARGET_PAIRS)),)
2224 LIBGNAT_TARGET_PAIRS += \
2225 a-except.ads<a-except-2005.ads \
2226 a-except.adb<a-except-2005.adb
2229 # The runtime library for gnat comprises two directories. One contains the
2230 # Ada source files that the compiler (gnat1) needs -- these files are listed
2231 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
2232 # corresponding .ali files for the parts written in Ada, libgnat.a for
2233 # the parts of the runtime written in C, and libgthreads.a for the pthreads
2234 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
2235 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
2236 # go into the directory. The pthreads emulation is built in the threads
2237 # subdirectory and copied.
2238 LIBGNAT_SRCS = adadecode.c adadecode.h adaint.c adaint.h \
2239 argv.c cio.c cstreams.c errno.c exit.c cal.c ctrl_c.c env.c env.h \
2240 arit64.c raise.h raise.c sysdep.c aux-io.c init.c initialize.c \
2241 locales.c seh_init.c final.c tracebak.c tb-alvms.c tb-alvxw.c \
2242 tb-gcc.c expect.c mkdir.c socket.c gsocket.h targext.c terminals.c \
2243 thread.c $(EXTRA_LIBGNAT_SRCS)
2245 LIBGNAT_OBJS = adadecode.o adaint.o argv.o cio.o cstreams.o ctrl_c.o \
2246 errno.o exit.o env.o raise.o sysdep.o aux-io.o init.o initialize.o \
2247 locales.o seh_init.o cal.o arit64.o final.o tracebak.o expect.o \
2248 mkdir.o socket.o targext.o terminals.o $(EXTRA_LIBGNAT_OBJS)
2250 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2251 # the library installation will change and there will be a
2252 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2253 # from ADA_INCLUDE_SRCS.
2255 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2256 # the following include file:
2258 include $(fsrcdir)/ada/Makefile.rtl
2260 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
2263 # Default run time files
2266 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2267 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2268 sequenio.ads system.ads memtrack.adb \
2269 a-[a-o]*.adb a-[p-z]*.adb a-[a-o]*.ads a-[p-z]*.ads g-*.ad? i-*.ad? \
2270 s-[a-o]*.adb s-[p-z]*.adb s-[a-o]*.ads s-[p-z]*.ads
2272 LIBGNAT=../$(RTSDIR)/libgnat.a
2274 TOOLS_FLAGS_TO_PASS= \
2276 "CFLAGS=$(CFLAGS)" \
2277 "LDFLAGS=$(LDFLAGS)" \
2278 "ADAFLAGS=$(ADAFLAGS)" \
2279 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
2280 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
2281 "libsubdir=$(libsubdir)" \
2282 "exeext=$(exeext)" \
2283 "fsrcdir=$(fsrcdir)" \
2284 "srcdir=$(fsrcdir)" \
2285 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
2286 "GNATMAKE=$(GNATMAKE)" \
2287 "GNATLINK=$(GNATLINK)" \
2288 "GNATBIND=$(GNATBIND)"
2290 GCC_LINK=$(CC) $(GCC_LINK_FLAGS) $(ADA_INCLUDES)
2292 # Build directory for the tools. Let's copy the target-dependent
2293 # sources using the same mechanism as for gnatlib. The other sources are
2294 # accessed using the vpath directive below
2295 # Note: dummy target, stamp-tools is mainly handled by gnattools.
2298 touch ../stamp-tools
2300 # when compiling the tools, the runtime has to be first on the path so that
2301 # it hides the runtime files lying with the rest of the sources
2302 ifeq ($(TOOLSCASE),native)
2303 vpath %.ads ../$(RTSDIR) ../
2304 vpath %.adb ../$(RTSDIR) ../
2305 vpath %.c ../$(RTSDIR) ../
2306 vpath %.h ../$(RTSDIR) ../
2309 # in the cross tools case, everything is compiled with the native
2310 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2311 ifeq ($(TOOLSCASE),cross)
2318 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
2319 # reasons: gnatmake should be built with a recent compiler, a recent compiler
2320 # may not generate ALI files compatible with an old gnatmake so it is important
2321 # to be able to build gnatmake without a version of gnatmake around. Once
2322 # everything has been compiled once, gnatmake can be recompiled with itself
2323 # (see target gnattools1-re)
2324 gnattools1: ../stamp-tools ../stamp-gnatlib-$(RTSDIR)
2325 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2327 ../../gnatmake$(exeext) ../../gnatlink$(exeext)
2329 # gnatmake/link can be built with recent gnatmake/link if they are available.
2330 # This is especially convenient for building cross tools or for rebuilding
2331 # the tools when the original bootstrap has already be done.
2332 gnattools1-re: ../stamp-tools
2333 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2334 TOOLSCASE=cross INCLUDES="" gnatmake-re gnatlink-re
2336 # these tools are built with gnatmake & are common to native and cross
2337 gnattools2: ../stamp-tools
2338 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2339 TOOLSCASE=native common-tools $(EXTRA_GNATTOOLS)
2341 # those tools are only built for the cross version
2342 gnattools4: ../stamp-tools
2343 ifeq ($(ENABLE_VXADDR2LINE),true)
2344 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2345 TOOLSCASE=cross top_buildir=../../.. \
2346 ../../vxaddr2line$(exeext)
2349 common-tools: ../stamp-tools
2350 $(GNATMAKE) -j0 -c -b $(ADA_INCLUDES) \
2351 --GNATBIND="$(GNATBIND)" --GCC="$(CC) $(ALL_ADAFLAGS)" \
2352 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2353 gnatclean -bargs $(ADA_INCLUDES) $(GNATBIND_FLAGS)
2354 $(GNATLINK) -v gnatcmd -o ../../gnat$(exeext) \
2355 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2356 $(GNATLINK) -v gnatchop -o ../../gnatchop$(exeext) \
2357 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2358 $(GNATLINK) -v gnatkr -o ../../gnatkr$(exeext) \
2359 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2360 $(GNATLINK) -v gnatls -o ../../gnatls$(exeext) \
2361 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2362 $(GNATLINK) -v gnatprep -o ../../gnatprep$(exeext) \
2363 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2364 $(GNATLINK) -v gnatxref -o ../../gnatxref$(exeext) \
2365 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2366 $(GNATLINK) -v gnatfind -o ../../gnatfind$(exeext) \
2367 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2368 $(GNATLINK) -v gnatname -o ../../gnatname$(exeext) \
2369 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2370 $(GNATLINK) -v gnatclean -o ../../gnatclean$(exeext) \
2371 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2373 ../../gnatsym$(exeext): ../stamp-tools
2374 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
2375 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
2376 $(GNATLINK) -v gnatsym -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2378 ../../gnatdll$(exeext): ../stamp-tools
2379 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
2380 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatdll
2381 $(GNATLINK) -v gnatdll -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2383 ../../vxaddr2line$(exeext): ../stamp-tools targext.o
2384 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
2385 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
2386 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(GCC_LINK)" targext.o $(CLIB)
2388 gnatmake-re: ../stamp-tools link.o targext.o
2389 $(GNATMAKE) -j0 $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
2390 $(GNATMAKE) -j0 -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
2391 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
2392 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
2393 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2395 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2396 # with the former version of gnatlink itself which cannot override itself.
2397 # gnatlink-re cannot be run at the same time as gnatmake-re, hence the
2399 gnatlink-re: ../stamp-tools link.o targext.o gnatmake-re
2400 $(GNATMAKE) -j0 -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
2401 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
2402 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
2403 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2404 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
2406 # Needs to be built with CC=gcc
2407 # Since the RTL should be built with the latest compiler, remove the
2408 # stamp target in the parent directory whenever gnat1 is rebuilt
2410 # Likewise for the tools
2411 ../../gnatmake$(exeext): $(P) b_gnatm.o link.o targext.o $(GNATMAKE_OBJS)
2412 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
2415 ../../gnatlink$(exeext): $(P) b_gnatl.o link.o targext.o $(GNATLINK_OBJS)
2416 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
2419 ../stamp-gnatlib-$(RTSDIR):
2420 @if [ ! -f stamp-gnatlib-$(RTSDIR) ] ; \
2422 $(ECHO) You must first build the GNAT library: make gnatlib; \
2428 install-gnatlib: ../stamp-gnatlib-$(RTSDIR)
2429 # Create the directory before deleting it, in case the directory is
2430 # a list of directories (as it may be on VMS). This ensures we are
2431 # deleting the right one.
2432 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2433 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2434 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2435 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2436 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2437 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2438 for file in $(RTSDIR)/*.ali; do \
2439 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2441 -cd $(RTSDIR); for file in *$(arext);do \
2442 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2443 $(RANLIB_FOR_TARGET) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
2445 -$(foreach file, $(EXTRA_ADALIB_FILES), \
2446 $(INSTALL_DATA_DATE) $(RTSDIR)/$(file) $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
2448 # Install the shared libraries, if any, using $(INSTALL) instead
2449 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2450 # for shared libraries on some targets, e.g. on HP-UX where the x
2451 # permission is required.
2452 # Also install the .dSYM directories if they exist (these directories
2453 # contain the debug information for the shared libraries on darwin)
2454 for file in gnat gnarl; do \
2455 if [ -f $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
2456 $(INSTALL) $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2457 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2459 if [ -f $(RTSDIR)/lib$${file}$(soext) ]; then \
2460 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2461 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
2463 if [ -d $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM ]; then \
2464 $(CP) -r $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM \
2465 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2468 # This copy must be done preserving the date on the original file.
2469 for file in $(RTSDIR)/*.ad?; do \
2470 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
2472 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
2473 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
2475 ../stamp-gnatlib2-$(RTSDIR):
2476 $(RM) $(RTSDIR)/s-*.ali
2477 $(RM) $(RTSDIR)/s-*$(objext)
2478 $(RM) $(RTSDIR)/a-*.ali
2479 $(RM) $(RTSDIR)/a-*$(objext)
2480 $(RM) $(RTSDIR)/*.ali
2481 $(RM) $(RTSDIR)/*$(objext)
2482 $(RM) $(RTSDIR)/*$(arext)
2483 $(RM) $(RTSDIR)/*$(soext)
2484 touch ../stamp-gnatlib2-$(RTSDIR)
2485 $(RM) ../stamp-gnatlib-$(RTSDIR)
2487 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
2488 # successive target commands. Although the Gnu make documentation
2489 # implies this is true on all systems, I suspect it may not be, So care
2490 # has been taken to allow a sed script to look for ";)" and substitue
2491 # for ";" the appropriate character in the range of lines below
2492 # beginning with "GNULLI Begin" and ending with "GNULLI End"
2494 # GNULLI Begin ###########################################################
2496 ../stamp-gnatlib1-$(RTSDIR): Makefile ../stamp-gnatlib2-$(RTSDIR)
2499 $(CHMOD) u+w $(RTSDIR)
2500 # Copy target independent sources
2501 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
2502 $(LN_S) $(fsrcpfx)ada/$(f) $(RTSDIR) ;) true
2503 # Remove files to be replaced by target dependent sources
2504 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2505 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR))))
2506 for f in $(RTSDIR)/*-*-*.ads $(RTSDIR)/*-*-*.adb; do \
2508 $(RTSDIR)/s-stratt-*) ;; \
2512 # Copy new target dependent sources
2513 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2514 $(LN_S) $(fsrcpfx)ada/$(word 2,$(subst <, ,$(PAIR))) \
2515 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)));)
2517 $(CP) $(srcdir)/tsystem.h $(RTSDIR)
2518 $(RM) ../stamp-gnatlib-$(RTSDIR)
2519 touch ../stamp-gnatlib1-$(RTSDIR)
2521 # GNULLI End #############################################################
2523 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(subst -, ,$(host)))),)
2524 OSCONS_CPP=../../$(DECC) -E /comment=as_is -DNATIVE \
2525 -DTARGET='""$(target)""' $(fsrcpfx)ada/s-oscons-tmplt.c
2527 OSCONS_EXTRACT=../../$(DECC) -DNATIVE \
2528 -DTARGET='""$(target)""' $(fsrcpfx)ada/s-oscons-tmplt.c ; \
2529 ld -o s-oscons-tmplt.exe s-oscons-tmplt.obj; \
2530 ./s-oscons-tmplt.exe > s-oscons-tmplt.s
2533 # GCC_FOR_TARGET has paths relative to the gcc directory, so we need to adjust
2534 # for running it from $(RTSDIR)
2535 OSCONS_CC=`echo "$(GCC_FOR_TARGET)" \
2536 | sed -e 's^\./xgcc^../../xgcc^' -e 's^-B./^-B../../^'`
2537 OSCONS_CPP=$(OSCONS_CC) $(GNATLIBCFLAGS) -E -C \
2538 -DTARGET=\"$(target)\" $(fsrcpfx)ada/s-oscons-tmplt.c > s-oscons-tmplt.i
2539 OSCONS_EXTRACT=$(OSCONS_CC) $(GNATLIBCFLAGS) -S s-oscons-tmplt.i
2542 ./bldtools/oscons/xoscons: xoscons.adb xutil.ads xutil.adb
2543 -$(MKDIR) ./bldtools/oscons
2544 $(RM) $(addprefix ./bldtools/oscons/,$(notdir $^))
2545 $(CP) $^ ./bldtools/oscons
2546 (cd ./bldtools/oscons ; gnatmake -q xoscons)
2548 $(RTSDIR)/s-oscons.ads: ../stamp-gnatlib1-$(RTSDIR) s-oscons-tmplt.c gsocket.h ./bldtools/oscons/xoscons
2549 $(RM) $(RTSDIR)/s-oscons-tmplt.i $(RTSDIR)/s-oscons-tmplt.s
2552 $(OSCONS_EXTRACT) ; \
2553 ../bldtools/oscons/xoscons)
2555 # Don't use semicolon separated shell commands that involve list expansions.
2556 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
2557 # line lengths in excess of 256 characters.
2558 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
2559 # is guaranteed to overflow the buffer.
2561 gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../stamp-gnatlib2-$(RTSDIR) $(RTSDIR)/s-oscons.ads
2562 $(MAKE) -C $(RTSDIR) \
2563 CC="`echo \"$(GCC_FOR_TARGET)\" \
2564 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2565 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2566 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
2567 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2569 -f ../Makefile $(LIBGNAT_OBJS)
2570 $(MAKE) -C $(RTSDIR) \
2571 CC="`echo \"$(GCC_FOR_TARGET)\" \
2572 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2574 CFLAGS="$(GNATLIBCFLAGS)" \
2575 ADAFLAGS="$(GNATLIBFLAGS)" \
2576 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2580 $(RM) $(RTSDIR)/libgnat$(arext) $(RTSDIR)/libgnarl$(arext)
2581 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnat$(arext) \
2582 $(addprefix $(RTSDIR)/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
2583 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnat$(arext)
2584 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnarl$(arext) \
2585 $(addprefix $(RTSDIR)/,$(GNATRTL_TASKING_OBJS))
2586 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnarl$(arext)
2587 ifeq ($(GMEM_LIB),gmemlib)
2588 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgmem$(arext) \
2589 $(RTSDIR)/memtrack.o
2590 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgmem$(arext)
2592 $(CHMOD) a-wx $(RTSDIR)/*.ali
2593 touch ../stamp-gnatlib-$(RTSDIR)
2595 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2596 gnatlib-shared-default:
2597 $(MAKE) $(FLAGS_TO_PASS) \
2598 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2599 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2600 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2601 MULTISUBDIR="$(MULTISUBDIR)" \
2602 THREAD_KIND="$(THREAD_KIND)" \
2604 $(RM) $(RTSDIR)/libgna*$(soext)
2605 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2606 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared $(GNATLIBCFLAGS) \
2607 $(PICFLAG_FOR_TARGET) \
2608 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2609 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2610 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2612 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2613 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared $(GNATLIBCFLAGS) \
2614 $(PICFLAG_FOR_TARGET) \
2615 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2616 $(GNATRTL_TASKING_OBJS) \
2617 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2619 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2621 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2624 gnatlib-shared-dual:
2625 $(MAKE) $(FLAGS_TO_PASS) \
2626 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2627 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2628 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2629 MULTISUBDIR="$(MULTISUBDIR)" \
2630 THREAD_KIND="$(THREAD_KIND)" \
2631 gnatlib-shared-default
2632 $(MV) $(RTSDIR)/libgna*$(soext) .
2633 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2634 $(MAKE) $(FLAGS_TO_PASS) \
2635 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2636 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2637 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2638 MULTISUBDIR="$(MULTISUBDIR)" \
2639 THREAD_KIND="$(THREAD_KIND)" \
2641 $(MV) libgna*$(soext) $(RTSDIR)
2643 gnatlib-shared-dual-win32:
2644 $(MAKE) $(FLAGS_TO_PASS) \
2645 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2646 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2647 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2648 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" \
2649 MULTISUBDIR="$(MULTISUBDIR)" \
2650 THREAD_KIND="$(THREAD_KIND)" \
2651 gnatlib-shared-win32
2652 $(MV) $(RTSDIR)/libgna*$(soext) .
2653 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2654 $(MAKE) $(FLAGS_TO_PASS) \
2655 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2656 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2657 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2658 MULTISUBDIR="$(MULTISUBDIR)" \
2659 THREAD_KIND="$(THREAD_KIND)" \
2661 $(MV) libgna*$(soext) $(RTSDIR)
2663 # ??? we need to add the option to support auto-import of arrays/records to
2664 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2665 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2667 gnatlib-shared-win32:
2668 $(MAKE) $(FLAGS_TO_PASS) \
2669 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2670 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2671 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \
2672 MULTISUBDIR="$(MULTISUBDIR)" \
2673 THREAD_KIND="$(THREAD_KIND)" \
2675 $(RM) $(RTSDIR)/libgna*$(soext)
2676 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2677 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared -shared-libgcc \
2678 $(PICFLAG_FOR_TARGET) \
2679 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2680 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2681 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
2682 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2683 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared -shared-libgcc \
2684 $(PICFLAG_FOR_TARGET) \
2685 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2686 $(GNATRTL_TASKING_OBJS) \
2687 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2688 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2690 gnatlib-shared-darwin:
2691 $(MAKE) $(FLAGS_TO_PASS) \
2692 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2693 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2694 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET) -fno-common" \
2695 MULTISUBDIR="$(MULTISUBDIR)" \
2696 THREAD_KIND="$(THREAD_KIND)" \
2698 $(RM) $(RTSDIR)/libgnat$(soext) $(RTSDIR)/libgnarl$(soext)
2699 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2700 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib $(PICFLAG_FOR_TARGET) \
2701 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2702 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2704 -Wl,-install_name,@rpath/libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2706 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2707 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib $(PICFLAG_FOR_TARGET) \
2708 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2709 $(GNATRTL_TASKING_OBJS) \
2711 -Wl,-install_name,@rpath/libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2712 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2713 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2715 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2717 cd $(RTSDIR); dsymutil libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2718 cd $(RTSDIR); dsymutil libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext)
2721 $(MAKE) $(FLAGS_TO_PASS) \
2722 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2723 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2724 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2725 MULTISUBDIR="$(MULTISUBDIR)" \
2726 THREAD_KIND="$(THREAD_KIND)" \
2728 $(RM) $(RTSDIR)/libgna*$(soext)
2730 ../../gnatsym -s SYMVEC_$$$$.opt \
2731 $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) && \
2732 ../../xgcc -g -B../../ -shared -shared-libgcc \
2733 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
2734 sys\$$library:trace.exe \
2735 --for-linker=/noinform \
2736 --for-linker=SYMVEC_$$$$.opt \
2737 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2739 ../../gnatsym -s SYMVEC_$$$$.opt \
2740 $(GNATRTL_TASKING_OBJS) && \
2741 ../../xgcc -g -B../../ -shared -shared-libgcc \
2742 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2743 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2744 sys\$$library:trace.exe \
2745 --for-linker=/noinform \
2746 --for-linker=SYMVEC_$$$$.opt \
2747 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2750 $(MAKE) $(FLAGS_TO_PASS) \
2751 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2752 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2753 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2754 MULTISUBDIR="$(MULTISUBDIR)" \
2755 THREAD_KIND="$(THREAD_KIND)" \
2756 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" \
2759 # When building a SJLJ runtime for VxWorks, in addition to forcing
2760 # ZCX_By_default to True, we need to ensure that -crtbe linker options
2761 # is not passed. Otherwise we will end with weak symbols on
2762 # __register_frame_info and __deregister_frame_info. The VxWorks 5.x
2763 # will issue an error on weak symbols.
2765 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="" \
2766 THREAD_KIND="$(THREAD_KIND)" ../stamp-gnatlib1-$(RTSDIR)
2767 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2768 cat $(RTSDIR)/s.ads | grep -v "Linker_Options.*-crtbe" > $(RTSDIR)/s2.ads
2769 $(RM) $(RTSDIR)/s.ads
2770 $(MV) $(RTSDIR)/s2.ads $(RTSDIR)/system.ads
2771 $(MAKE) $(FLAGS_TO_PASS) \
2773 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2774 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2775 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2776 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2777 MULTISUBDIR="$(MULTISUBDIR)" \
2778 THREAD_KIND="$(THREAD_KIND)" \
2779 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" gnatlib
2782 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="-gcc" \
2783 THREAD_KIND="$(THREAD_KIND)" ../stamp-gnatlib1-$(RTSDIR)
2784 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2785 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2786 $(MAKE) $(FLAGS_TO_PASS) \
2787 EH_MECHANISM="-gcc" \
2788 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2789 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2790 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2791 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2792 MULTISUBDIR="$(MULTISUBDIR)" \
2793 THREAD_KIND="$(THREAD_KIND)" \
2794 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" gnatlib
2796 # Compiling object files from source files.
2798 # Note that dependencies on obstack.h are not written
2799 # because that file is not part of GCC.
2800 # Dependencies on gvarargs.h are not written
2801 # because all that file does, when not compiling with GCC,
2802 # is include the system varargs.h.
2804 b_gnatl.adb : $(GNATLINK_OBJS)
2805 $(GNATBIND) $(ADA_INCLUDES) -o b_gnatl.adb gnatlink.ali
2807 b_gnatl.o : b_gnatl.adb
2808 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) -gnatws -gnatyN \
2811 b_gnatm.adb : $(GNATMAKE_OBJS)
2812 $(GNATBIND) $(ADA_INCLUDES) -o b_gnatm.adb gnatmake.ali
2814 b_gnatm.o : b_gnatm.adb
2815 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) -gnatws -gnatyN \
2818 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2819 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2823 # force no sibling call optimization on s-traceb.o so the number of stack
2824 # frames to be skipped when computing a call chain is not modified by
2827 s-traceb.o : s-traceb.adb s-traceb.ads
2828 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2829 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
2831 # force debugging information on s-tasdeb.o so that it is always
2832 # possible to set conditional breakpoints on tasks.
2834 s-tasdeb.o : s-tasdeb.adb s-tasdeb.ads
2835 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2838 # force debugging information on s-vaflop.o so that it is always
2839 # possible to call the VAX float debug print routines.
2840 # force at least -O so that the inline assembly works.
2842 s-vaflop.o : s-vaflop.adb s-vaflop.ads
2843 $(CC) -c -O $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
2846 # force no function reordering on a-except.o because of the exclusion bounds
2847 # mechanism (see the source file for more detailed information).
2848 # force debugging information on a-except.o so that it is always
2849 # possible to set conditional breakpoints on exceptions.
2850 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2852 a-except.o : a-except.adb a-except.ads
2853 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O1 -fno-inline \
2854 $(NO_REORDER_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
2856 # compile s-excdeb.o without optimization and with debug info to let the
2857 # debugger set breakpoints and inspect subprogram parameters on exception
2860 s-excdeb.o : s-excdeb.adb s-excdeb.ads s-except.ads
2861 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2864 # force debugging information on s-assert.o so that it is always
2865 # possible to set breakpoint on assert failures.
2867 s-assert.o : s-assert.adb s-assert.ads
2868 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
2871 # force debugging information on a-tags.o so that the debugger can find
2872 # the description of Ada.Tags.Type_Specific_Data.
2874 a-tags.o : a-tags.adb a-tags.ads
2875 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
2878 # need to keep the frame pointer in this file to pop the stack properly on
2880 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2881 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
2882 $(INCLUDES) -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2884 adadecode.o : adadecode.c adadecode.h
2888 deftarg.o : deftarg.c
2890 exit.o : adaint.h exit.c
2893 locales.o : locales.c
2895 socket.o : socket.c gsocket.h
2897 raise.o : raise.c raise.h
2898 sigtramp-ppcvxw.o : sigtramp-ppcvxw.c sigtramp.h
2899 terminals.o : terminals.c
2900 vx_stack_info.o : vx_stack_info.c
2902 raise-gcc.o : raise-gcc.c raise.h
2903 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2904 -iquote $(srcdir) -iquote $(srcdir)/../libgcc \
2905 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2908 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2909 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2911 init.o : init.c adaint.h raise.h
2912 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2913 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2915 initialize.o : initialize.c raise.h
2916 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2917 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2920 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2921 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
2924 targext.o : targext.c
2925 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2927 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
2930 # In GNU Make, ignore whether `stage*' exists.
2931 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2932 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4