1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2011 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 SOME_ADAFLAGS =-gnata
109 FORCE_DEBUG_ADAFLAGS = -g
110 NO_SIBLING_ADAFLAGS=-fno-optimize-sibling-calls
111 NO_REORDER_ADAFLAGS=-fno-toplevel-reorder
112 GNATLIBFLAGS = -gnatpg -nostdinc
113 GNATLIBCFLAGS = -g -O2
114 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 = $(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET) -fexceptions \
119 -DIN_RTS -DHAVE_GETIPINFO
120 ALL_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(ADAFLAGS)
121 MOST_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(SOME_ADAFLAGS)
126 SYMDEPS = $(LIBINTL_DEP)
127 OUTPUT_OPTION = @OUTPUT_OPTION@
136 # Define this as & to perform parallel make on a Sequent.
137 # Note that this has some bugs, and it seems currently necessary
138 # to compile all the gen* files first by hand to avoid erroneous results.
141 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
143 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
144 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS)
146 # Tools to use when building a cross-compiler.
147 # These are used because `configure' appends `cross-make'
148 # to the makefile when making a cross-compiler.
150 # We don't use cross-make. Instead we use the tools from the build tree,
151 # if they are available.
152 # program_transform_name and objdir are set by configure.in.
153 program_transform_name =
156 target_alias=@target_alias@
158 xmake_file = @xmake_file@
159 tmake_file = @tmake_file@
160 host_canonical=@host@
161 target_cpu_default=@target_cpu_default@
162 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
163 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
165 # Directory where sources are, from where we are.
166 VPATH = $(srcdir)/ada
168 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
169 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
170 fcurdir := $(shell ${PWD_COMMAND})
171 fcurpfx := $(shell ${PWD_COMMAND})/
173 # Top build directory, relative to here.
176 # Internationalization library.
178 LIBINTL_DEP = @LIBINTL_DEP@
180 # Any system libraries needed just for GNAT.
181 SYSLIBS = @GNAT_LIBEXC@
183 # List of extra object files linked in with various programs.
184 EXTRA_GNATTOOLS_OBJS = ../../libcommon-target.a ../../libcommon.a \
185 ../../../libcpp/libcpp.a
187 # List extra gnattools
190 # List of target dependent sources, overridden below as necessary
193 # Type of tools build we are doing; default is not compiling tools.
198 RTSDIR = rts$(subst /,_,$(MULTISUBDIR))
200 # Link flags used to build gnat tools. By default we prefer to statically
201 # link with libgcc to avoid a dependency on shared libgcc (which is tricky
202 # to deal with as it may conflict with the libgcc provided by the system).
203 GCC_LINK_FLAGS=-static-libgcc
205 # End of variables for you to override.
209 # This tells GNU Make version 3 not to put all variables in the environment.
213 ifneq ($(tmake_file),)
214 include $(tmake_file)
218 ifneq ($(xmake_file),)
219 include $(xmake_file)
222 # Now figure out from those variables how to compile and link.
224 all.indirect: Makefile ../gnat1$(exeext)
226 # IN_GCC distinguishes between code compiled into GCC itself and other
227 # programs built during a bootstrap.
228 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
229 # compiler which does not use the native libraries and headers.
230 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
232 # This is the variable actually used when we compile.
233 LOOSE_CFLAGS = `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
234 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(T_CFLAGS) $(LOOSE_CFLAGS)
237 ALL_CPPFLAGS = $(CPPFLAGS)
239 # Used with $(COMPILER).
240 ALL_COMPILERFLAGS = $(ALL_CFLAGS)
242 # This is where we get libiberty.a from.
243 LIBIBERTY = ../../libiberty/libiberty.a
245 # How to link with both our special library facilities
246 # and the system's installed libraries.
247 LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
248 LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
249 # Default is no TGT_LIB; one might be passed down or something
251 TOOLS_LIBS = $(EXTRA_GNATTOOLS_OBJS) targext.o link.o $(LIBGNAT) $(LIBINTL) ../../../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
257 host:=$(subst -, ,$(host_canonical))
258 targ:=$(subst -, ,$(target))
259 arch:=$(word 1,$(targ))
260 ifeq ($(words $(targ)),2)
262 osys:=$(word 2,$(targ))
264 manu:=$(word 2,$(targ))
265 osys:=$(word 3,$(targ))
268 # Specify the directories to be searched for header files.
269 # Both . and srcdir are used, in that order,
270 # so that tm.h and config.h will be found in the compilation
271 # subdirectory rather than in the source directory.
272 INCLUDES = -I- -I. -I.. -I$(srcdir)/ada -I$(srcdir) -I$(srcdir)/config \
273 -I$(srcdir)/../include
275 ADA_INCLUDES = -I- -I. -I$(srcdir)/ada
277 INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. -iquote $(fsrcdir)/ada \
278 -I$(fsrcdir)/../include
280 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
281 # On Windows native the tconfig.h files used by C runtime files needs to have
282 # the gcc source dir in its include dir list
283 INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. -iquote $(fsrcdir)/ada \
284 -I$(fsrcdir)/../include -I$(fsrcdir)
287 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada
289 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
292 # Say how to compile Ada programs.
293 .SUFFIXES: .ada .adb .ads .asm
295 # Always use -I$(srcdir)/config when compiling.
297 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
300 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
301 $(INCLUDES) $< $(OUTPUT_OPTION)
304 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
307 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
309 # how to regenerate this file
310 Makefile: ../config.status $(srcdir)/ada/gcc-interface/Makefile.in $(srcdir)/ada/Makefile.in $(srcdir)/version.c
312 LANGUAGES="$(CONFIG_LANGUAGES)" \
314 CONFIG_FILES="ada/gcc-interface/Makefile ada/Makefile" $(SHELL) config.status
316 # This tells GNU make version 3 not to export all the variables
317 # defined in this file into the environment.
320 # Lists of files for various purposes.
322 GNATLINK_OBJS = gnatlink.o \
323 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
324 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
325 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
326 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
327 types.o validsw.o widechar.o
329 GNATMAKE_OBJS = a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o \
330 atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o errout.o \
331 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
332 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
333 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
334 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o \
335 output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o \
336 prj-conf.o prj-pp.o prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o \
337 prj-proc.o prj-strt.o prj-tree.o prj-util.o restrict.o rident.o s-exctab.o \
338 s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o \
339 s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o \
340 sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o \
341 switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o uintp.o \
342 uname.o urealp.o usage.o widechar.o \
343 $(EXTRA_GNATMAKE_OBJS)
345 # Make arch match the current multilib so that the RTS selection code
346 # picks up the right files. For a given target this must be coherent
347 # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*.
349 ifeq ($(strip $(filter-out %x86_64, $(arch))),)
350 ifeq ($(strip $(MULTISUBDIR)),/32)
355 # ???: handle more multilib targets
357 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
358 # The members of each pair must be separated by a '<' and no whitespace.
359 # Each pair must be separated by some amount of whitespace from the following
364 LIBGNAT_TARGET_PAIRS = \
365 a-intnam.ads<a-intnam-dummy.ads \
366 s-inmaop.adb<s-inmaop-dummy.adb \
367 s-intman.adb<s-intman-dummy.adb \
368 s-osinte.ads<s-osinte-dummy.ads \
369 s-osprim.adb<s-osprim-posix.adb \
370 s-taprop.adb<s-taprop-dummy.adb \
371 s-taspri.ads<s-taspri-dummy.ads
373 # When using the GCC exception handling mechanism, we need to use an
374 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
378 # Default shared object option. Note that we rely on the fact that the "soname"
379 # option will always be present and last in this flag, so that we can have
380 # $(SO_OPTS)libgnat-x.xx
382 SO_OPTS = -Wl,-soname,
384 # Default gnatlib-shared target.
385 # By default, equivalent to gnatlib.
386 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
387 # target when supported.
388 GNATLIB_SHARED = gnatlib
390 # default value for gnatmake's target dependent file
393 # By default, build socket support units. On platforms that do not support
394 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
395 # to LIBGNAT_TARGET_PAIRS.
397 GNATRTL_SOCKETS_OBJS = g-soccon$(objext) g-socket$(objext) g-socthi$(objext) \
398 g-soliop$(objext) g-sothco$(objext)
400 DUMMY_SOCKETS_TARGET_PAIRS = \
401 g-socket.adb<g-socket-dummy.adb \
402 g-socket.ads<g-socket-dummy.ads \
403 g-socthi.adb<g-socthi-dummy.adb \
404 g-socthi.ads<g-socthi-dummy.ads \
405 g-sothco.adb<g-sothco-dummy.adb \
406 g-sothco.ads<g-sothco-dummy.ads
408 # On platform where atomic increment/decrement operations are supported
409 # special version of Ada.Strings.Unbounded package can be used.
411 ATOMICS_TARGET_PAIRS += \
412 a-stunau.adb<a-stunau-shared.adb \
413 a-suteio.adb<a-suteio-shared.adb \
414 a-strunb.ads<a-strunb-shared.ads \
415 a-strunb.adb<a-strunb-shared.adb \
416 a-stwiun.adb<a-stwiun-shared.adb \
417 a-stwiun.ads<a-stwiun-shared.ads \
418 a-swunau.adb<a-swunau-shared.adb \
419 a-swuwti.adb<a-swuwti-shared.adb \
420 a-stzunb.adb<a-stzunb-shared.adb \
421 a-stzunb.ads<a-stzunb-shared.ads \
422 a-szunau.adb<a-szunau-shared.adb \
423 a-szuzti.adb<a-szuzti-shared.adb \
424 s-atocou.adb<s-atocou-builtin.adb
426 LIB_VERSION = $(strip $(shell grep ' Library_Version :' $(fsrcpfx)ada/gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
428 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
429 # $(strip STRING) removes leading and trailing spaces from STRING.
430 # If what's left is null then it's a match.
432 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
433 LIBGNAT_TARGET_PAIRS = \
434 a-intnam.ads<a-intnam-vxworks.ads \
435 a-numaux.ads<a-numaux-vxworks.ads \
436 s-inmaop.adb<s-inmaop-vxworks.adb \
437 s-interr.adb<s-interr-hwint.adb \
438 s-intman.ads<s-intman-vxworks.ads \
439 s-intman.adb<s-intman-vxworks.adb \
440 s-osinte.adb<s-osinte-vxworks.adb \
441 s-osinte.ads<s-osinte-vxworks.ads \
442 s-osprim.adb<s-osprim-vxworks.adb \
443 s-parame.ads<s-parame-vxworks.ads \
444 s-parame.adb<s-parame-vxworks.adb \
445 s-stchop.ads<s-stchop-limit.ads \
446 s-stchop.adb<s-stchop-vxworks.adb \
447 s-taprop.adb<s-taprop-vxworks.adb \
448 s-tasinf.ads<s-tasinf-vxworks.ads \
449 s-taspri.ads<s-taspri-vxworks.ads \
450 s-tpopsp.adb<s-tpopsp-vxworks.adb \
451 s-vxwork.ads<s-vxwork-m68k.ads \
452 g-socthi.ads<g-socthi-vxworks.ads \
453 g-socthi.adb<g-socthi-vxworks.adb \
454 g-stsifd.adb<g-stsifd-sockets.adb \
455 g-trasym.ads<g-trasym-unimplemented.ads \
456 g-trasym.adb<g-trasym-unimplemented.adb \
457 system.ads<system-vxworks-m68k.ads
459 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb
461 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
462 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
464 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
465 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
467 ifeq ($(strip $(filter-out yes,$(TRACE))),)
468 LIBGNAT_TARGET_PAIRS += \
469 s-traces.adb<s-traces-default.adb \
470 s-tratas.adb<s-tratas-default.adb \
471 s-trafor.adb<s-trafor-default.adb \
472 s-trafor.ads<s-trafor-default.ads \
473 s-tfsetr.adb<s-tfsetr-vxworks.adb
477 ifeq ($(strip $(filter-out e500% powerpc% wrs vxworks,$(targ))),)
478 LIBGNAT_TARGET_PAIRS = \
479 a-intnam.ads<a-intnam-vxworks.ads \
480 a-numaux.ads<a-numaux-vxworks.ads \
481 s-inmaop.adb<s-inmaop-vxworks.adb \
482 s-intman.ads<s-intman-vxworks.ads \
483 s-intman.adb<s-intman-vxworks.adb \
484 s-osinte.ads<s-osinte-vxworks.ads \
485 s-osinte.adb<s-osinte-vxworks.adb \
486 s-osprim.adb<s-osprim-vxworks.adb \
487 s-parame.ads<s-parame-vxworks.ads \
488 s-parame.adb<s-parame-vxworks.adb \
489 s-stchop.ads<s-stchop-limit.ads \
490 s-stchop.adb<s-stchop-vxworks.adb \
491 s-taprop.adb<s-taprop-vxworks.adb \
492 s-tasinf.ads<s-tasinf-vxworks.ads \
493 s-taspri.ads<s-taspri-vxworks.ads \
494 s-vxwork.ads<s-vxwork-ppc.ads \
495 g-socthi.ads<g-socthi-vxworks.ads \
496 g-socthi.adb<g-socthi-vxworks.adb \
497 g-stsifd.adb<g-stsifd-sockets.adb \
498 g-trasym.ads<g-trasym-unimplemented.ads \
499 g-trasym.adb<g-trasym-unimplemented.adb \
500 $(ATOMICS_TARGET_PAIRS)
503 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
504 indepsw.adb<indepsw-gnu.adb
506 ifeq ($(strip $(filter-out yes,$(TRACE))),)
507 LIBGNAT_TARGET_PAIRS += \
508 s-traces.adb<s-traces-default.adb \
509 s-trafor.adb<s-trafor-default.adb \
510 s-trafor.ads<s-trafor-default.ads \
511 s-tratas.adb<s-tratas-default.adb \
512 s-tfsetr.adb<s-tfsetr-vxworks.adb
515 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
516 LIBGNAT_TARGET_PAIRS += \
517 s-vxwext.ads<s-vxwext-rtp.ads \
518 s-vxwext.adb<s-vxwext-rtp.adb \
519 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
520 system.ads<system-vxworks-ppc-rtp.ads
522 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
524 ifeq ($(strip $(filter-out rtp-smp,$(THREAD_KIND))),)
525 LIBGNAT_TARGET_PAIRS += \
526 s-vxwext.ads<s-vxwext-rtp.ads \
527 s-vxwext.adb<s-vxwext-rtp-smp.adb \
528 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
529 system.ads<system-vxworks-ppc-rtp.ads
531 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
532 EXTRA_LIBGNAT_OBJS+=affinity.o
533 EXTRA_LIBGNAT_SRCS+=affinity.c
535 ifeq ($(strip $(filter-out kernel-smp,$(THREAD_KIND))),)
536 LIBGNAT_TARGET_PAIRS += \
537 s-interr.adb<s-interr-hwint.adb \
538 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
539 s-vxwext.ads<s-vxwext-kernel.ads \
540 s-vxwext.adb<s-vxwext-kernel-smp.adb \
541 system.ads<system-vxworks-ppc-kernel.ads
544 EXTRA_LIBGNAT_OBJS+=affinity.o
545 EXTRA_LIBGNAT_SRCS+=affinity.c
547 LIBGNAT_TARGET_PAIRS += \
548 s-interr.adb<s-interr-hwint.adb \
549 s-tpopsp.adb<s-tpopsp-vxworks.adb
551 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
553 LIBGNAT_TARGET_PAIRS += \
554 s-vxwext.ads<s-vxwext-kernel.ads \
555 s-vxwext.adb<s-vxwext-kernel.adb \
556 system.ads<system-vxworks-ppc-kernel.ads
558 LIBGNAT_TARGET_PAIRS += \
559 system.ads<system-vxworks-ppc.ads
562 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
566 EXTRA_GNATRTL_TASKING_OBJS += s-vxwork.o s-vxwext.o
568 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
569 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
573 ifeq ($(strip $(filter-out powerpc% wrs vxworksae,$(targ))),)
574 # target pairs for vthreads runtime
575 LIBGNAT_TARGET_PAIRS = \
576 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
577 a-intnam.ads<a-intnam-vxworks.ads \
578 a-numaux.ads<a-numaux-vxworks.ads \
579 g-io.adb<g-io-vxworks-ppc-cert.adb \
580 g-io.ads<g-io-vxworks-ppc-cert.ads \
581 s-inmaop.adb<s-inmaop-vxworks.adb \
582 s-interr.adb<s-interr-hwint.adb \
583 s-intman.ads<s-intman-vxworks.ads \
584 s-intman.adb<s-intman-vxworks.adb \
585 s-osinte.adb<s-osinte-vxworks.adb \
586 s-osinte.ads<s-osinte-vxworks.ads \
587 s-osprim.adb<s-osprim-vxworks.adb \
588 s-parame.ads<s-parame-ae653.ads \
589 s-parame.adb<s-parame-vxworks.adb \
590 s-taprop.adb<s-taprop-vxworks.adb \
591 s-tasinf.ads<s-tasinf-vxworks.ads \
592 s-taspri.ads<s-taspri-vxworks.ads \
593 s-tpopsp.adb<s-tpopsp-vxworks.adb \
594 s-vxwext.adb<s-vxwext-noints.adb \
595 s-vxwext.ads<s-vxwext-vthreads.ads \
596 s-vxwork.ads<s-vxwork-ppc.ads \
597 g-trasym.ads<g-trasym-unimplemented.ads \
598 g-trasym.adb<g-trasym-unimplemented.adb \
599 system.ads<system-vxworks-ppc-vthread.ads \
600 $(ATOMICS_TARGET_PAIRS)
603 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
604 indepsw.adb<indepsw-gnu.adb
606 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
607 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
609 # Extra pairs for the vthreads runtime
610 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
611 LIBGNAT_TARGET_PAIRS += \
612 s-thread.adb<s-thread-ae653.adb \
613 $(DUMMY_SOCKETS_TARGET_PAIRS)
615 GNATRTL_SOCKETS_OBJS =
616 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o
618 LIBGNAT_TARGET_PAIRS += \
619 g-socthi.ads<g-socthi-vxworks.ads \
620 g-socthi.adb<g-socthi-vxworks.adb \
621 g-stsifd.adb<g-stsifd-sockets.adb
624 ifeq ($(strip $(filter-out yes,$(TRACE))),)
625 LIBGNAT_TARGET_PAIRS += \
626 s-traces.adb<s-traces-default.adb \
627 s-trafor.adb<s-trafor-default.adb \
628 s-trafor.ads<s-trafor-default.ads \
629 s-tratas.adb<s-tratas-default.adb \
630 s-tfsetr.adb<s-tfsetr-vxworks.adb
635 ifeq ($(strip $(filter-out e500% powerpc% wrs vxworksmils,$(targ))),)
636 # target pairs for vthreads runtime
637 LIBGNAT_TARGET_PAIRS = \
638 a-elchha.adb<a-elchha-vx6-raven-cert.adb \
639 a-intnam.ads<a-intnam-vxworks.ads \
640 a-numaux.ads<a-numaux-vxworks.ads \
641 g-io.adb<g-io-vxworks-ppc-cert.adb \
642 g-io.ads<g-io-vxworks-ppc-cert.ads \
643 s-inmaop.adb<s-inmaop-vxworks.adb \
644 s-interr.adb<s-interr-hwint.adb \
645 s-intman.ads<s-intman-vxworks.ads \
646 s-intman.adb<s-intman-vxworks.adb \
647 s-osinte.adb<s-osinte-vxworks.adb \
648 s-osinte.ads<s-osinte-vxworks.ads \
649 s-osprim.adb<s-osprim-vxworks.adb \
650 s-parame.ads<s-parame-ae653.ads \
651 s-parame.adb<s-parame-vxworks.adb \
652 s-stchop.adb<s-stchop-vxworks.adb \
653 s-stchop.ads<s-stchop-limit.ads \
654 s-taprop.adb<s-taprop-vxworks.adb \
655 s-tasinf.ads<s-tasinf-vxworks.ads \
656 s-taspri.ads<s-taspri-vxworks.ads \
657 s-thread.adb<s-thread-ae653.adb \
658 s-tpopsp.adb<s-tpopsp-vxworks.adb \
659 s-vxwork.ads<s-vxwork-ppc.ads \
660 g-trasym.ads<g-trasym-unimplemented.ads \
661 g-trasym.adb<g-trasym-unimplemented.adb \
662 system.ads<system-vxworks-ppc.ads \
663 $(ATOMICS_TARGET_PAIRS) \
664 $(DUMMY_SOCKETS_TARGET_PAIRS)
667 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
668 indepsw.adb<indepsw-gnu.adb
670 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-thread.o s-vxwexc.o
671 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
673 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
674 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
675 GNATRTL_SOCKETS_OBJS =
677 ifeq ($(strip $(filter-out yes,$(TRACE))),)
678 LIBGNAT_TARGET_PAIRS += \
679 s-traces.adb<s-traces-default.adb \
680 s-trafor.adb<s-trafor-default.adb \
681 s-trafor.ads<s-trafor-default.ads \
682 s-tratas.adb<s-tratas-default.adb \
683 s-tfsetr.adb<s-tfsetr-vxworks.adb
687 # vxworksae / vxworks 653 for x86 (vxsim) - ?? vxworksmils not implemented
688 ifeq ($(strip $(filter-out %86 wrs vxworksae vxworksmils,$(targ))),)
689 # target pairs for kernel + vthreads runtime
690 LIBGNAT_TARGET_PAIRS = \
691 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
692 a-intnam.ads<a-intnam-vxworks.ads \
693 a-numaux.ads<a-numaux-x86.ads \
694 a-numaux.adb<a-numaux-x86.adb \
695 a-sytaco.ads<1asytaco.ads \
696 a-sytaco.adb<1asytaco.adb \
697 g-bytswa.adb<g-bytswa-x86.adb \
698 g-io.adb<g-io-vxworks-ppc-cert.adb \
699 g-io.ads<g-io-vxworks-ppc-cert.ads \
700 s-inmaop.adb<s-inmaop-vxworks.adb \
701 s-interr.adb<s-interr-hwint.adb \
702 s-intman.ads<s-intman-vxworks.ads \
703 s-intman.adb<s-intman-vxworks.adb \
704 s-osinte.adb<s-osinte-vxworks.adb \
705 s-osinte.ads<s-osinte-vxworks.ads \
706 s-osprim.adb<s-osprim-vxworks.adb \
707 s-parame.ads<s-parame-ae653.ads \
708 s-taprop.adb<s-taprop-vxworks.adb \
709 s-tasinf.ads<s-tasinf-vxworks.ads \
710 s-taspri.ads<s-taspri-vxworks.ads \
711 s-tpopsp.adb<s-tpopsp-vxworks.adb \
712 s-vxwext.adb<s-vxwext-noints.adb \
713 s-vxwext.ads<s-vxwext-vthreads.ads \
714 s-vxwork.ads<s-vxwork-x86.ads \
715 g-trasym.ads<g-trasym-unimplemented.ads \
716 g-trasym.adb<g-trasym-unimplemented.adb \
717 system.ads<system-vxworks-x86.ads \
718 $(ATOMICS_TARGET_PAIRS) \
719 s-atocou.adb<s-atocou-x86.adb
722 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
723 indepsw.adb<indepsw-gnu.adb
725 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
726 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
728 # Extra pairs for the vthreads runtime
729 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
730 LIBGNAT_TARGET_PAIRS += \
731 s-thread.adb<s-thread-ae653.adb \
732 $(DUMMY_SOCKETS_TARGET_PAIRS)
734 GNATRTL_SOCKETS_OBJS =
735 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o
737 LIBGNAT_TARGET_PAIRS += \
738 g-socthi.ads<g-socthi-vxworks.ads \
739 g-socthi.adb<g-socthi-vxworks.adb \
740 g-stsifd.adb<g-stsifd-sockets.adb
743 ifeq ($(strip $(filter-out yes,$(TRACE))),)
744 LIBGNAT_TARGET_PAIRS += \
745 s-traces.adb<s-traces-default.adb \
746 s-trafor.adb<s-trafor-default.adb \
747 s-trafor.ads<s-trafor-default.ads \
748 s-tratas.adb<s-tratas-default.adb \
749 s-tfsetr.adb<s-tfsetr-vxworks.adb
753 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
754 LIBGNAT_TARGET_PAIRS = \
755 a-intnam.ads<a-intnam-vxworks.ads \
756 a-numaux.ads<a-numaux-vxworks.ads \
757 s-inmaop.adb<s-inmaop-vxworks.adb \
758 s-interr.adb<s-interr-hwint.adb \
759 s-intman.ads<s-intman-vxworks.ads \
760 s-intman.adb<s-intman-vxworks.adb \
761 s-osinte.adb<s-osinte-vxworks.adb \
762 s-osinte.ads<s-osinte-vxworks.ads \
763 s-osprim.adb<s-osprim-vxworks.adb \
764 s-parame.ads<s-parame-vxworks.ads \
765 s-parame.adb<s-parame-vxworks.adb \
766 s-stchop.ads<s-stchop-limit.ads \
767 s-stchop.adb<s-stchop-vxworks.adb \
768 s-taprop.adb<s-taprop-vxworks.adb \
769 s-tasinf.ads<s-tasinf-vxworks.ads \
770 s-taspri.ads<s-taspri-vxworks.ads \
771 s-tpopsp.adb<s-tpopsp-vxworks.adb \
772 s-vxwork.ads<s-vxwork-sparcv9.ads \
773 g-socthi.ads<g-socthi-vxworks.ads \
774 g-socthi.adb<g-socthi-vxworks.adb \
775 g-stsifd.adb<g-stsifd-sockets.adb \
776 g-trasym.ads<g-trasym-unimplemented.ads \
777 g-trasym.adb<g-trasym-unimplemented.adb \
778 system.ads<system-vxworks-sparcv9.ads \
781 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
782 indepsw.adb<indepsw-gnu.adb
784 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
785 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
787 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
788 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
791 ifeq ($(strip $(filter-out %86 wrs vxworks,$(targ))),)
792 LIBGNAT_TARGET_PAIRS = \
793 a-intnam.ads<a-intnam-vxworks.ads \
794 i-vxwork.ads<i-vxwork-x86.ads \
795 s-osinte.adb<s-osinte-vxworks.adb \
796 s-osinte.ads<s-osinte-vxworks.ads \
797 s-inmaop.adb<s-inmaop-vxworks.adb \
798 s-intman.ads<s-intman-vxworks.ads \
799 s-intman.adb<s-intman-vxworks.adb \
800 a-numaux.adb<a-numaux-x86.adb \
801 a-numaux.ads<a-numaux-x86.ads \
802 s-osprim.adb<s-osprim-vxworks.adb \
803 s-parame.ads<s-parame-vxworks.ads \
804 s-parame.adb<s-parame-vxworks.adb \
805 s-stchop.ads<s-stchop-limit.ads \
806 s-stchop.adb<s-stchop-vxworks.adb \
807 s-taprop.adb<s-taprop-vxworks.adb \
808 s-tasinf.ads<s-tasinf-vxworks.ads \
809 s-taspri.ads<s-taspri-vxworks.ads \
810 s-vxwork.ads<s-vxwork-x86.ads \
811 g-bytswa.adb<g-bytswa-x86.adb \
812 g-socthi.ads<g-socthi-vxworks.ads \
813 g-socthi.adb<g-socthi-vxworks.adb \
814 g-stsifd.adb<g-stsifd-sockets.adb \
815 g-trasym.ads<g-trasym-unimplemented.ads \
816 g-trasym.adb<g-trasym-unimplemented.adb \
817 $(ATOMICS_TARGET_PAIRS) \
818 s-atocou.adb<s-atocou-x86.adb
821 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
822 indepsw.adb<indepsw-gnu.adb
824 ifeq ($(strip $(filter-out yes,$(TRACE))),)
825 LIBGNAT_TARGET_PAIRS += \
826 s-traces.adb<s-traces-default.adb \
827 s-trafor.adb<s-trafor-default.adb \
828 s-trafor.ads<s-trafor-default.ads \
829 s-tratas.adb<s-tratas-default.adb \
830 s-tfsetr.adb<s-tfsetr-vxworks.adb
833 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
834 LIBGNAT_TARGET_PAIRS += \
835 s-vxwext.ads<s-vxwext-rtp.ads \
836 s-vxwext.adb<s-vxwext-rtp.adb \
837 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
838 system.ads<system-vxworks-x86-rtp.ads
840 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
842 ifeq ($(strip $(filter-out rtp-smp, $(THREAD_KIND))),)
843 LIBGNAT_TARGET_PAIRS += \
844 s-vxwext.ads<s-vxwext-rtp.ads \
845 s-vxwext.adb<s-vxwext-rtp-smp.adb \
846 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
847 system.ads<system-vxworks-x86-rtp.ads
849 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
850 EXTRA_LIBGNAT_SRCS+=affinity.o
851 EXTRA_LIBGNAT_SRCS+=affinity.c
853 ifeq ($(strip $(filter-out kernel-smp, $(THREAD_KIND))),)
854 LIBGNAT_TARGET_PAIRS += \
855 s-interr.adb<s-interr-hwint.adb \
856 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
857 s-vxwext.ads<s-vxwext-kernel.ads \
858 s-vxwext.adb<s-vxwext-kernel-smp.adb \
859 system.ads<system-vxworks-x86-kernel.ads
860 EXTRA_LIBGNAT_OBJS+=affinity.o
861 EXTRA_LIBGNAT_SRCS+=affinity.c
863 LIBGNAT_TARGET_PAIRS += \
864 s-interr.adb<s-interr-hwint.adb \
865 s-tpopsp.adb<s-tpopsp-vxworks.adb
867 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
868 LIBGNAT_TARGET_PAIRS += \
869 s-vxwext.ads<s-vxwext-kernel.ads \
870 s-vxwext.adb<s-vxwext-kernel.adb \
871 system.ads<system-vxworks-x86-kernel.ads
873 LIBGNAT_TARGET_PAIRS += \
874 system.ads<system-vxworks-x86.ads
878 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
881 EXTRA_GNATRTL_TASKING_OBJS += s-vxwork.o s-vxwext.o
883 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
884 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
887 ifeq ($(strip $(filter-out arm% coff wrs vx%,$(targ))),)
888 LIBGNAT_TARGET_PAIRS = \
889 a-intnam.ads<a-intnam-vxworks.ads \
890 a-numaux.ads<a-numaux-vxworks.ads \
891 s-inmaop.adb<s-inmaop-vxworks.adb \
892 s-interr.adb<s-interr-hwint.adb \
893 s-intman.ads<s-intman-vxworks.ads \
894 s-intman.adb<s-intman-vxworks.adb \
895 s-osinte.adb<s-osinte-vxworks.adb \
896 s-osinte.ads<s-osinte-vxworks.ads \
897 s-osprim.adb<s-osprim-vxworks.adb \
898 s-parame.ads<s-parame-vxworks.ads \
899 s-parame.adb<s-parame-vxworks.adb \
900 s-stchop.ads<s-stchop-limit.ads \
901 s-stchop.adb<s-stchop-vxworks.adb \
902 s-taprop.adb<s-taprop-vxworks.adb \
903 s-tasinf.ads<s-tasinf-vxworks.ads \
904 s-taspri.ads<s-taspri-vxworks.ads \
905 s-tpopsp.adb<s-tpopsp-vxworks.adb \
906 s-vxwork.ads<s-vxwork-arm.ads \
907 g-socthi.ads<g-socthi-vxworks.ads \
908 g-socthi.adb<g-socthi-vxworks.adb \
909 g-stsifd.adb<g-stsifd-sockets.adb \
910 g-trasym.ads<g-trasym-unimplemented.ads \
911 g-trasym.adb<g-trasym-unimplemented.adb \
912 system.ads<system-vxworks-arm.ads
915 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
916 indepsw.adb<indepsw-gnu.adb
918 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
919 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
921 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
922 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
925 ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)
926 LIBGNAT_TARGET_PAIRS = \
927 a-intnam.ads<a-intnam-vxworks.ads \
928 a-numaux.ads<a-numaux-vxworks.ads \
929 s-inmaop.adb<s-inmaop-vxworks.adb \
930 s-interr.adb<s-interr-hwint.adb \
931 s-intman.ads<s-intman-vxworks.ads \
932 s-intman.adb<s-intman-vxworks.adb \
933 s-osinte.adb<s-osinte-vxworks.adb \
934 s-osinte.ads<s-osinte-vxworks.ads \
935 s-osprim.adb<s-osprim-vxworks.adb \
936 s-parame.ads<s-parame-vxworks.ads \
937 s-parame.adb<s-parame-vxworks.adb \
938 s-stchop.ads<s-stchop-limit.ads \
939 s-stchop.adb<s-stchop-vxworks.adb \
940 s-taprop.adb<s-taprop-vxworks.adb \
941 s-tasinf.ads<s-tasinf-vxworks.ads \
942 s-taspri.ads<s-taspri-vxworks.ads \
943 s-tpopsp.adb<s-tpopsp-vxworks.adb \
944 s-vxwork.ads<s-vxwork-mips.ads \
945 g-socthi.ads<g-socthi-vxworks.ads \
946 g-socthi.adb<g-socthi-vxworks.adb \
947 g-stsifd.adb<g-stsifd-sockets.adb \
948 g-trasym.ads<g-trasym-unimplemented.ads \
949 g-trasym.adb<g-trasym-unimplemented.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-osinte.adb<s-osinte-solaris.adb \
969 s-osinte.ads<s-osinte-solaris.ads \
970 s-osprim.adb<s-osprim-solaris.adb \
971 s-taprop.adb<s-taprop-solaris.adb \
972 s-tasinf.adb<s-tasinf-solaris.adb \
973 s-tasinf.ads<s-tasinf-solaris.ads \
974 s-taspri.ads<s-taspri-solaris.ads \
975 s-tpopsp.adb<s-tpopsp-solaris.adb \
976 g-soliop.ads<g-soliop-solaris.ads
978 LIBGNAT_TARGET_PAIRS_32 = \
979 system.ads<system-solaris-sparc.ads
981 LIBGNAT_TARGET_PAIRS_64 = \
982 system.ads<system-solaris-sparcv9.ads \
983 $(ATOMICS_TARGET_PAIRS)
985 ifeq ($(strip $(filter-out sparc sun solaris%,$(targ))),)
986 ifeq ($(strip $(MULTISUBDIR)),/sparcv9)
987 LIBGNAT_TARGET_PAIRS = \
988 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
990 LIBGNAT_TARGET_PAIRS = \
991 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
994 ifeq ($(strip $(MULTISUBDIR)),/sparcv8plus)
995 LIBGNAT_TARGET_PAIRS = \
996 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
998 LIBGNAT_TARGET_PAIRS = \
999 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1003 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
1006 THREADSLIB = -lposix4 -lthread
1007 MISCLIB = -lposix4 -lnsl -lsocket
1009 GNATLIB_SHARED = gnatlib-shared-dual
1011 LIBRARY_VERSION := $(LIB_VERSION)
1013 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
1014 LIBGNAT_TARGET_PAIRS = \
1015 a-intnam.ads<a-intnam-solaris.ads \
1016 s-inmaop.adb<s-inmaop-posix.adb \
1017 s-intman.adb<s-intman-posix.adb \
1018 s-osinte.adb<s-osinte-posix.adb \
1019 s-osinte.ads<s-osinte-solaris-posix.ads \
1020 s-osprim.adb<s-osprim-solaris.adb \
1021 s-taprop.adb<s-taprop-posix.adb \
1022 s-taspri.ads<s-taspri-posix.ads \
1023 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1024 g-soliop.ads<g-soliop-solaris.ads \
1025 system.ads<system-solaris-sparc.ads
1027 THREADSLIB = -lposix4 -lpthread
1030 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
1031 LIBGNAT_TARGET_PAIRS = $(LIBGNAT_TARGET_PAIRS_64)
1035 ifeq ($(strip $(filter-out %86 %x86_64 solaris2%,$(arch) $(osys))),)
1036 LIBGNAT_TARGET_PAIRS_COMMON = \
1037 a-numaux.adb<a-numaux-x86.adb \
1038 a-numaux.ads<a-numaux-x86.ads \
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-osinte.adb<s-osinte-solaris.adb \
1043 s-osinte.ads<s-osinte-solaris.ads \
1044 s-osprim.adb<s-osprim-solaris.adb \
1045 s-taprop.adb<s-taprop-solaris.adb \
1046 s-tasinf.adb<s-tasinf-solaris.adb \
1047 s-tasinf.ads<s-tasinf-solaris.ads \
1048 s-taspri.ads<s-taspri-solaris.ads \
1049 s-tpopsp.adb<s-tpopsp-solaris.adb \
1050 g-soliop.ads<g-soliop-solaris.ads \
1051 $(ATOMICS_TARGET_PAIRS)
1053 LIBGNAT_TARGET_PAIRS_32 = \
1054 g-bytswa.adb<g-bytswa-x86.adb \
1055 s-atocou.adb<s-atocou-x86.adb \
1056 system.ads<system-solaris-x86.ads
1058 LIBGNAT_TARGET_PAIRS_64 = \
1059 system.ads<system-solaris-x86_64.ads
1061 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
1062 ifeq ($(strip $(MULTISUBDIR)),/amd64)
1063 LIBGNAT_TARGET_PAIRS = \
1064 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1066 LIBGNAT_TARGET_PAIRS = \
1067 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1070 ifeq ($(strip $(MULTISUBDIR)),/32)
1071 LIBGNAT_TARGET_PAIRS = \
1072 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1074 LIBGNAT_TARGET_PAIRS = \
1075 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1079 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
1082 THREADSLIB = -lposix4 -lthread
1083 MISCLIB = -lposix4 -lnsl -lsocket
1085 GNATLIB_SHARED = gnatlib-shared-dual
1087 LIBRARY_VERSION := $(LIB_VERSION)
1090 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
1091 LIBGNAT_TARGET_PAIRS = \
1092 a-intnam.ads<a-intnam-linux.ads \
1093 a-numaux.adb<a-numaux-x86.adb \
1094 a-numaux.ads<a-numaux-x86.ads \
1095 g-bytswa.adb<g-bytswa-x86.adb \
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 $(ATOMICS_TARGET_PAIRS) \
1101 s-atocou.adb<s-atocou-x86.adb
1103 ifeq ($(strip $(filter-out marte,$(THREAD_KIND))),)
1104 LIBGNAT_TARGET_PAIRS += \
1105 a-exetim.adb<a-exetim-linux-marte.adb \
1106 a-exetim.ads<a-exetim-linux-marte.ads \
1107 a-extiti.adb<a-extiti-linux-marte.adb \
1108 a-extiti.ads<a-extiti-linux-marte.ads \
1109 a-rttiev.adb<a-rttiev-linux-marte.adb \
1110 a-rttiev.ads<a-rttiev-linux-marte.ads \
1111 s-osinte.adb<s-osinte-linux-marte.adb \
1112 s-osinte.ads<s-osinte-linux-marte.ads \
1113 s-osprim.adb<s-osprim-posix.adb \
1114 s-taprop.adb<s-taprop-linux-marte.adb \
1115 s-taspri.ads<s-taspri-posix.ads \
1116 system.ads<system-linux-x86.ads
1118 EXTRA_GNATRTL_TASKING_OBJS=a-exetim.o a-extiti.o
1121 THREADSLIB = -lmarte
1123 LIBGNAT_TARGET_PAIRS += \
1124 a-exetim.adb<a-exetim-posix.adb \
1125 a-exetim.ads<a-exetim-default.ads \
1126 s-linux.ads<s-linux.ads \
1127 s-osinte.adb<s-osinte-posix.adb \
1128 system.ads<system-linux-x86.ads
1130 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
1131 LIBGNAT_TARGET_PAIRS += \
1132 s-osinte.ads<s-osinte-linux-xenomai.ads \
1133 s-osprim.adb<s-osprim-linux-xenomai.adb \
1134 s-taprop.adb<s-taprop-linux-xenomai.adb \
1135 s-taspri.ads<s-taspri-linux-xenomai.ads
1139 LIBGNAT_TARGET_PAIRS += \
1140 s-osinte.ads<s-osinte-linux.ads \
1141 s-osprim.adb<s-osprim-posix.adb \
1142 s-taprop.adb<s-taprop-linux.adb \
1143 s-tasinf.ads<s-tasinf-linux.ads \
1144 s-tasinf.adb<s-tasinf-linux.adb \
1145 s-taspri.ads<s-taspri-posix.ads
1150 THREADSLIB = -lpthread -lrt
1151 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
1152 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
1155 TOOLS_TARGET_PAIRS = \
1156 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1157 indepsw.adb<indepsw-gnu.adb
1159 GNATLIB_SHARED = gnatlib-shared-dual
1161 LIBRARY_VERSION := $(LIB_VERSION)
1164 ifeq ($(strip $(filter-out %86 kfreebsd%,$(arch) $(osys))),)
1165 LIBGNAT_TARGET_PAIRS = \
1166 a-intnam.ads<a-intnam-freebsd.ads \
1167 a-numaux.adb<a-numaux-x86.adb \
1168 a-numaux.ads<a-numaux-x86.ads \
1169 s-inmaop.adb<s-inmaop-posix.adb \
1170 s-intman.adb<s-intman-posix.adb \
1171 s-osinte.adb<s-osinte-posix.adb \
1172 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
1173 s-osprim.adb<s-osprim-posix.adb \
1174 s-taprop.adb<s-taprop-linux.adb \
1175 s-tasinf.ads<s-tasinf-linux.ads \
1176 s-tasinf.adb<s-tasinf-linux.adb \
1177 s-taspri.ads<s-taspri-posix.ads \
1178 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1179 system.ads<system-freebsd-x86.ads \
1180 $(ATOMICS_TARGET_PAIRS) \
1181 s-atocou.adb<s-atocou-x86.adb
1183 TOOLS_TARGET_PAIRS = \
1184 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1185 indepsw.adb<indepsw-gnu.adb
1188 THREADSLIB = -lpthread
1189 GNATLIB_SHARED = gnatlib-shared-dual
1191 LIBRARY_VERSION := $(LIB_VERSION)
1194 ifeq ($(strip $(filter-out x86_64 kfreebsd%,$(arch) $(osys))),)
1195 LIBGNAT_TARGET_PAIRS = \
1196 a-intnam.ads<a-intnam-freebsd.ads \
1197 a-numaux.adb<a-numaux-x86.adb \
1198 a-numaux.ads<a-numaux-x86.ads \
1199 s-inmaop.adb<s-inmaop-posix.adb \
1200 s-intman.adb<s-intman-posix.adb \
1201 s-osinte.adb<s-osinte-posix.adb \
1202 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
1203 s-osprim.adb<s-osprim-posix.adb \
1204 s-taprop.adb<s-taprop-linux.adb \
1205 s-tasinf.ads<s-tasinf-linux.ads \
1206 s-tasinf.adb<s-tasinf-linux.adb \
1207 s-taspri.ads<s-taspri-posix.ads \
1208 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1209 system.ads<system-freebsd-x86_64.ads
1211 TOOLS_TARGET_PAIRS = \
1212 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1213 indepsw.adb<indepsw-gnu.adb
1216 THREADSLIB = -lpthread
1217 GNATLIB_SHARED = gnatlib-shared-dual
1219 LIBRARY_VERSION := $(LIB_VERSION)
1222 ifeq ($(strip $(filter-out %86 freebsd%,$(arch) $(osys))),)
1223 LIBGNAT_TARGET_PAIRS = \
1224 a-intnam.ads<a-intnam-freebsd.ads \
1225 a-numaux.adb<a-numaux-x86.adb \
1226 a-numaux.ads<a-numaux-x86.ads \
1227 g-bytswa.adb<g-bytswa-x86.adb \
1228 s-inmaop.adb<s-inmaop-posix.adb \
1229 s-intman.adb<s-intman-posix.adb \
1230 s-osinte.adb<s-osinte-freebsd.adb \
1231 s-osinte.ads<s-osinte-freebsd.ads \
1232 s-osprim.adb<s-osprim-posix.adb \
1233 s-taprop.adb<s-taprop-posix.adb \
1234 s-taspri.ads<s-taspri-posix.ads \
1235 s-tpopsp.adb<s-tpopsp-posix.adb \
1236 system.ads<system-freebsd-x86.ads \
1237 $(ATOMICS_TARGET_PAIRS) \
1238 s-atocou.adb<s-atocou-x86.adb
1240 TOOLS_TARGET_PAIRS = \
1241 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
1242 GNATLIB_SHARED = gnatlib-shared-dual
1245 THREADSLIB= -lpthread
1247 LIBRARY_VERSION := $(LIB_VERSION)
1250 ifeq ($(strip $(filter-out s390% linux%,$(arch) $(osys))),)
1251 LIBGNAT_TARGET_PAIRS_COMMON = \
1252 a-intnam.ads<a-intnam-linux.ads \
1253 s-inmaop.adb<s-inmaop-posix.adb \
1254 s-intman.adb<s-intman-posix.adb \
1255 s-linux.ads<s-linux.ads \
1256 s-osinte.adb<s-osinte-posix.adb \
1257 s-osinte.ads<s-osinte-linux.ads \
1258 s-osprim.adb<s-osprim-posix.adb \
1259 s-taprop.adb<s-taprop-linux.adb \
1260 s-tasinf.ads<s-tasinf-linux.ads \
1261 s-tasinf.adb<s-tasinf-linux.adb \
1262 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1263 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1264 g-trasym.ads<g-trasym-unimplemented.ads \
1265 g-trasym.adb<g-trasym-unimplemented.adb
1267 LIBGNAT_TARGET_PAIRS_32 = \
1268 system.ads<system-linux-s390.ads
1270 LIBGNAT_TARGET_PAIRS_64 = \
1271 system.ads<system-linux-s390x.ads
1273 ifeq ($(strip $(filter-out s390x,$(arch))),)
1274 ifeq ($(strip $(MULTISUBDIR)),/32)
1275 LIBGNAT_TARGET_PAIRS = \
1276 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1278 LIBGNAT_TARGET_PAIRS = \
1279 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1282 LIBGNAT_TARGET_PAIRS = \
1283 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1286 TOOLS_TARGET_PAIRS = \
1287 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1288 indepsw.adb<indepsw-gnu.adb
1290 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1292 THREADSLIB = -lpthread
1293 GNATLIB_SHARED = gnatlib-shared-dual
1294 LIBRARY_VERSION := $(LIB_VERSION)
1297 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
1298 LIBGNAT_TARGET_PAIRS = \
1299 a-intnam.ads<a-intnam-irix.ads \
1300 s-inmaop.adb<s-inmaop-posix.adb \
1301 s-intman.adb<s-intman-irix.adb \
1302 s-mastop.adb<s-mastop-irix.adb \
1303 s-osinte.adb<s-osinte-irix.adb \
1304 s-osinte.ads<s-osinte-irix.ads \
1305 s-osprim.adb<s-osprim-posix.adb \
1306 s-proinf.adb<s-proinf-irix-athread.adb \
1307 s-proinf.ads<s-proinf-irix-athread.ads \
1308 s-taprop.adb<s-taprop-irix.adb \
1309 s-tasinf.ads<s-tasinf-irix.ads \
1310 s-taspri.ads<s-taspri-posix.ads \
1311 s-tpopsp.adb<s-tpopsp-posix.adb \
1312 s-traceb.adb<s-traceb-mastop.adb
1314 ifeq ($(strip $(MULTISUBDIR)),/64)
1315 LIBGNAT_TARGET_PAIRS += \
1316 system.ads<system-irix-n64.ads
1318 ifeq ($(strip $(MULTISUBDIR)),/32)
1319 LIBGNAT_TARGET_PAIRS += \
1320 system.ads<system-irix-o32.ads
1322 LIBGNAT_TARGET_PAIRS += \
1323 system.ads<system-irix-n32.ads
1327 THREADSLIB = -lpthread
1328 GNATLIB_SHARED = gnatlib-shared-default
1331 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-specific-irix.adb
1334 LIBRARY_VERSION := $(LIB_VERSION)
1338 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
1339 LIBGNAT_TARGET_PAIRS = \
1340 a-excpol.adb<a-excpol-abort.adb \
1341 a-intnam.ads<a-intnam-hpux.ads \
1342 s-inmaop.adb<s-inmaop-posix.adb \
1343 s-interr.adb<s-interr-sigaction.adb \
1344 s-intman.adb<s-intman-posix.adb \
1345 s-osinte.adb<s-osinte-hpux-dce.adb \
1346 s-osinte.ads<s-osinte-hpux-dce.ads \
1347 s-parame.ads<s-parame-hpux.ads \
1348 s-osprim.adb<s-osprim-posix.adb \
1349 s-taprop.adb<s-taprop-hpux-dce.adb \
1350 s-taspri.ads<s-taspri-hpux-dce.ads \
1351 s-tpopsp.adb<s-tpopsp-posix.adb \
1352 system.ads<system-hpux.ads
1357 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
1358 LIBGNAT_TARGET_PAIRS = \
1359 a-intnam.ads<a-intnam-hpux.ads \
1360 s-inmaop.adb<s-inmaop-posix.adb \
1361 s-intman.adb<s-intman-posix.adb \
1362 s-osinte.adb<s-osinte-posix.adb \
1363 s-osinte.ads<s-osinte-hpux.ads \
1364 s-parame.ads<s-parame-hpux.ads \
1365 s-osprim.adb<s-osprim-posix.adb \
1366 s-traceb.adb<s-traceb-hpux.adb \
1367 s-taprop.adb<s-taprop-posix.adb \
1368 s-taspri.ads<s-taspri-posix.ads \
1369 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1370 system.ads<system-hpux.ads
1372 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb
1374 TGT_LIB = /usr/lib/libcl.a
1375 THREADSLIB = -lpthread
1379 GNATLIB_SHARED = gnatlib-shared-dual
1380 LIBRARY_VERSION := $(LIB_VERSION)
1383 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
1384 LIBGNAT_TARGET_PAIRS_COMMON = \
1385 a-intnam.ads<a-intnam-aix.ads \
1386 s-inmaop.adb<s-inmaop-posix.adb \
1387 s-intman.adb<s-intman-posix.adb \
1388 s-osinte.adb<s-osinte-aix.adb \
1389 s-osinte.ads<s-osinte-aix.ads \
1390 s-osprim.adb<s-osprim-posix.adb \
1391 s-taprop.adb<s-taprop-posix.adb \
1392 s-taspri.ads<s-taspri-posix.ads \
1393 s-tpopsp.adb<s-tpopsp-posix.adb \
1394 $(ATOMICS_TARGET_PAIRS)
1396 LIBGNAT_TARGET_PAIRS_32 = \
1397 system.ads<system-aix.ads
1399 LIBGNAT_TARGET_PAIRS_64 = \
1400 system.ads<system-aix64.ads
1402 ifeq ($(findstring ppc64, \
1403 $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) \
1404 -print-multi-os-directory)), \
1406 LIBGNAT_TARGET_PAIRS = \
1407 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1409 LIBGNAT_TARGET_PAIRS = \
1410 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1413 THREADSLIB = -lpthreads
1415 TOOLS_TARGET_PAIRS = \
1416 mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb \
1417 indepsw.adb<indepsw-aix.adb
1422 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1423 LIBGNAT_TARGET_PAIRS = \
1424 system.ads<system-rtems.ads \
1425 a-intnam.ads<a-intnam-rtems.ads \
1426 s-inmaop.adb<s-inmaop-posix.adb \
1427 s-intman.adb<s-intman-posix.adb \
1428 s-osinte.adb<s-osinte-rtems.adb \
1429 s-osinte.ads<s-osinte-rtems.ads \
1430 s-osprim.adb<s-osprim-posix.adb \
1431 s-parame.adb<s-parame-rtems.adb \
1432 s-taprop.adb<s-taprop-posix.adb \
1433 s-taspri.ads<s-taspri-posix.ads \
1434 s-tpopsp.adb<s-tpopsp-rtems.adb \
1435 s-stchop.adb<s-stchop-rtems.adb \
1436 s-interr.adb<s-interr-hwint.adb \
1437 g-trasym.ads<g-trasym-unimplemented.ads \
1438 g-trasym.adb<g-trasym-unimplemented.adb
1441 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1442 LIBGNAT_TARGET_PAIRS = \
1443 a-intnam.ads<a-intnam-tru64.ads \
1444 s-inmaop.adb<s-inmaop-posix.adb \
1445 s-intman.adb<s-intman-posix.adb \
1446 s-mastop.adb<s-mastop-tru64.adb \
1447 s-osinte.adb<s-osinte-tru64.adb \
1448 s-osinte.ads<s-osinte-tru64.ads \
1449 s-osprim.adb<s-osprim-unix.adb \
1450 s-taprop.adb<s-taprop-tru64.adb \
1451 s-tasinf.ads<s-tasinf-tru64.ads \
1452 s-taspri.ads<s-taspri-tru64.ads \
1453 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1454 s-traceb.adb<s-traceb-mastop.adb \
1455 system.ads<system-tru64.ads \
1456 $(ATOMICS_TARGET_PAIRS)
1458 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-tru64.adb
1463 THREADSLIB = -lpthread -lmach -lexc -lrt
1464 GNATLIB_SHARED = gnatlib-shared-default
1465 LIBRARY_VERSION := $(LIB_VERSION)
1468 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(host))),)
1478 @ gnu:[bin]vmssymvec $<
1481 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1482 LIBGNAT_TARGET_PAIRS = \
1483 a-caldel.adb<a-caldel-vms.adb \
1484 a-calend.adb<a-calend-vms.adb \
1485 a-calend.ads<a-calend-vms.ads \
1486 a-dirval.adb<a-dirval-vms.adb \
1487 a-excpol.adb<a-excpol-abort.adb \
1488 a-intnam.ads<a-intnam-vms.ads \
1489 a-numaux.ads<a-numaux-vms.ads \
1490 g-expect.adb<g-expect-vms.adb \
1491 g-socthi.ads<g-socthi-vms.ads \
1492 g-socthi.adb<g-socthi-vms.adb \
1493 g-stsifd.adb<g-stsifd-sockets.adb \
1494 i-cstrea.adb<i-cstrea-vms.adb \
1495 memtrack.adb<memtrack-vms_64.adb \
1496 s-auxdec.ads<s-auxdec-vms_64.ads \
1497 s-inmaop.adb<s-inmaop-vms.adb \
1498 s-interr.adb<s-interr-vms.adb \
1499 s-intman.adb<s-intman-vms.adb \
1500 s-intman.ads<s-intman-vms.ads \
1501 s-memory.adb<s-memory-vms_64.adb \
1502 s-memory.ads<s-memory-vms_64.ads \
1503 s-osprim.adb<s-osprim-vms.adb \
1504 s-osprim.ads<s-osprim-vms.ads \
1505 s-taprop.adb<s-taprop-vms.adb \
1506 s-tasdeb.adb<s-tasdeb-vms.adb \
1507 s-taspri.ads<s-taspri-vms.ads \
1508 s-tpopsp.adb<s-tpopsp-vms.adb \
1509 s-tpopde.adb<s-tpopde-vms.adb \
1510 s-tpopde.ads<s-tpopde-vms.ads
1512 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1513 LIBGNAT_TARGET_PAIRS += \
1514 g-enblsp.adb<g-enblsp-vms-ia64.adb \
1515 g-trasym.adb<g-trasym-vms-ia64.adb \
1516 s-asthan.adb<s-asthan-vms-ia64.adb \
1517 s-auxdec.adb<s-auxdec-vms-ia64.adb \
1518 s-osinte.adb<s-osinte-vms-ia64.adb \
1519 s-osinte.ads<s-osinte-vms-ia64.ads \
1520 s-vaflop.adb<s-vaflop-vms-ia64.adb \
1521 system.ads<system-vms-ia64.ads \
1522 s-parame.ads<s-parame-vms-ia64.ads \
1523 $(ATOMICS_TARGET_PAIRS)
1525 TOOLS_TARGET_PAIRS= \
1526 mlib-tgt-specific.adb<mlib-tgt-specific-vms-ia64.adb \
1527 symbols.adb<symbols-vms.adb \
1528 symbols-processing.adb<symbols-processing-vms-ia64.adb
1530 ifeq ($(strip $(filter-out alpha64 dec vms% openvms% alphavms%,$(targ))),)
1531 LIBGNAT_TARGET_PAIRS += \
1532 g-enblsp.adb<g-enblsp-vms-alpha.adb \
1533 g-trasym.adb<g-trasym-vms-alpha.adb \
1534 s-asthan.adb<s-asthan-vms-alpha.adb \
1535 s-auxdec.adb<s-auxdec-vms-alpha.adb \
1536 s-osinte.adb<s-osinte-vms.adb \
1537 s-osinte.ads<s-osinte-vms.ads \
1538 s-traent.adb<s-traent-vms.adb \
1539 s-traent.ads<s-traent-vms.ads \
1540 s-vaflop.adb<s-vaflop-vms-alpha.adb \
1541 system.ads<system-vms_64.ads \
1542 s-parame.ads<s-parame-vms-alpha.ads \
1543 $(ATOMICS_TARGET_PAIRS)
1545 TOOLS_TARGET_PAIRS= \
1546 mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \
1547 symbols.adb<symbols-vms.adb \
1548 symbols-processing.adb<symbols-processing-vms-alpha.adb
1552 adamsg.o: adamsg.msg
1553 -$(DECC) --cc=message adamsg.msg -o adamsg.o
1555 EXTRA_GNATMAKE_OBJS = mlib-tgt-vms_common.o
1559 GNATLIB_SHARED=gnatlib-shared-vms
1560 EXTRA_LIBGNAT_SRCS+=adamsg.msg
1561 EXTRA_LIBGNAT_OBJS+=adamsg.o
1562 EXTRA_GNATRTL_NONTASKING_OBJS+=s-po32gl.o
1563 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1565 ../../gnatsym$(exeext)
1566 # This command transforms (YYYYMMDD) into YY,MMDD
1567 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)ada/gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\).*/\2,\3/')
1568 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1569 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1572 ifeq ($(strip $(filter-out avr none powerpc% eabispe leon% erc32% unknown elf,$(targ))),)
1573 TOOLS_TARGET_PAIRS=\
1574 mlib-tgt-specific.adb<mlib-tgt-specific-xi.adb \
1575 indepsw.adb<indepsw-gnu.adb
1578 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1579 LIBGNAT_TARGET_PAIRS = \
1580 a-dirval.adb<a-dirval-mingw.adb \
1581 a-excpol.adb<a-excpol-abort.adb \
1582 a-numaux.adb<a-numaux-x86.adb \
1583 a-numaux.ads<a-numaux-x86.ads \
1584 s-gloloc.adb<s-gloloc-mingw.adb \
1585 s-inmaop.adb<s-inmaop-dummy.adb \
1586 s-memory.adb<s-memory-mingw.adb \
1587 s-taspri.ads<s-taspri-mingw.ads \
1588 s-tasinf.adb<s-tasinf-mingw.adb \
1589 s-tasinf.ads<s-tasinf-mingw.ads \
1590 g-bytswa.adb<g-bytswa-x86.adb \
1591 g-socthi.ads<g-socthi-mingw.ads \
1592 g-socthi.adb<g-socthi-mingw.adb \
1593 g-stsifd.adb<g-stsifd-sockets.adb \
1594 g-soliop.ads<g-soliop-mingw.ads \
1595 $(ATOMICS_TARGET_PAIRS) \
1596 s-atocou.adb<s-atocou-x86.adb
1598 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss,$(THREAD_KIND))),)
1599 LIBGNAT_TARGET_PAIRS += \
1600 s-intman.adb<s-intman-dummy.adb \
1601 s-osinte.ads<s-osinte-rtx.ads \
1602 s-osprim.adb<s-osprim-rtx.adb \
1603 s-taprop.adb<s-taprop-rtx.adb
1605 EXTRA_GNATRTL_NONTASKING_OBJS = s-win32.o
1607 ifeq ($(strip $(filter-out rtx_w32,$(THREAD_KIND))),)
1608 LIBGNAT_TARGET_PAIRS += system.ads<system-rtx.ads
1612 LIBGNAT_TARGET_PAIRS += \
1613 system.ads<system-rtx-rtss.ads \
1614 s-parame.adb<s-parame-vxworks.adb
1620 LIBGNAT_TARGET_PAIRS += \
1621 a-exetim.adb<a-exetim-mingw.adb \
1622 a-exetim.ads<a-exetim-mingw.ads \
1623 a-intnam.ads<a-intnam-mingw.ads \
1624 g-sercom.adb<g-sercom-mingw.adb \
1625 s-interr.adb<s-interr-sigaction.adb \
1626 s-intman.adb<s-intman-mingw.adb \
1627 s-osinte.ads<s-osinte-mingw.ads \
1628 s-osprim.adb<s-osprim-mingw.adb \
1629 s-taprop.adb<s-taprop-mingw.adb
1631 ifeq ($(strip $(filter-out x86_64%,$(arch))),)
1632 ifeq ($(strip $(MULTISUBDIR)),/32)
1633 LIBGNAT_TARGET_PAIRS += \
1634 system.ads<system-mingw.ads
1635 SO_OPTS= -m32 -Wl,-soname,
1637 LIBGNAT_TARGET_PAIRS += \
1638 system.ads<system-mingw-x86_64.ads
1639 SO_OPTS = -m64 -Wl,-soname,
1642 ifeq ($(strip $(MULTISUBDIR)),/64)
1643 LIBGNAT_TARGET_PAIRS += \
1644 system.ads<system-mingw-x86_64.ads
1645 SO_OPTS = -m64 -Wl,-soname,
1647 LIBGNAT_TARGET_PAIRS += \
1648 system.ads<system-mingw.ads
1649 SO_OPTS = -m32 -Wl,-soname,
1653 EXTRA_GNATRTL_NONTASKING_OBJS = \
1654 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1655 EXTRA_GNATRTL_TASKING_OBJS = a-exetim.o
1659 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1660 # auto-import support for array/record will be done.
1661 GNATLIB_SHARED = gnatlib-shared-win32
1666 TOOLS_TARGET_PAIRS= \
1667 mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb \
1668 indepsw.adb<indepsw-mingw.adb
1671 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1672 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1674 LIBRARY_VERSION := $(LIB_VERSION)
1677 ifeq ($(strip $(filter-out mips linux%,$(arch) $(osys))),)
1678 LIBGNAT_TARGET_PAIRS = \
1679 a-intnam.ads<a-intnam-linux.ads \
1680 s-inmaop.adb<s-inmaop-posix.adb \
1681 s-intman.adb<s-intman-posix.adb \
1682 s-linux.ads<s-linux.ads \
1683 s-osinte.adb<s-osinte-posix.adb \
1684 s-osinte.ads<s-osinte-linux.ads \
1685 s-osprim.adb<s-osprim-posix.adb \
1686 s-taprop.adb<s-taprop-linux.adb \
1687 s-tasinf.ads<s-tasinf-linux.ads \
1688 s-tasinf.adb<s-tasinf-linux.adb \
1689 s-taspri.ads<s-taspri-posix.ads \
1690 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1691 system.ads<system-linux-mips.ads
1694 THREADSLIB = -lpthread
1695 GNATLIB_SHARED = gnatlib-shared-dual
1697 LIBRARY_VERSION := $(LIB_VERSION)
1700 ifeq ($(strip $(filter-out mipsel linux%,$(arch) $(osys))),)
1701 LIBGNAT_TARGET_PAIRS_COMMON = \
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-mipsel.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-noaltstack.ads \
1713 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1714 g-sercom.adb<g-sercom-linux.adb
1716 LIBGNAT_TARGET_PAIRS_32 = \
1717 system.ads<system-linux-mipsel.ads
1719 LIBGNAT_TARGET_PAIRS_64 = \
1720 system.ads<system-linux-mips64el.ads
1722 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1723 LIBGNAT_TARGET_PAIRS = \
1724 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1726 LIBGNAT_TARGET_PAIRS = \
1727 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1730 TOOLS_TARGET_PAIRS = \
1731 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1732 indepsw.adb<indepsw-gnu.adb
1734 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1736 THREADSLIB = -lpthread
1737 GNATLIB_SHARED = gnatlib-shared-dual
1739 LIBRARY_VERSION := $(LIB_VERSION)
1742 ifeq ($(strip $(filter-out mips64el linux%,$(arch) $(osys))),)
1743 LIBGNAT_TARGET_PAIRS_COMMON = \
1744 a-intnam.ads<a-intnam-linux.ads \
1745 s-inmaop.adb<s-inmaop-posix.adb \
1746 s-intman.adb<s-intman-posix.adb \
1747 s-linux.ads<s-linux-mipsel.ads \
1748 s-osinte.adb<s-osinte-posix.adb \
1749 s-osinte.ads<s-osinte-linux.ads \
1750 s-osprim.adb<s-osprim-posix.adb \
1751 s-taprop.adb<s-taprop-linux.adb \
1752 s-tasinf.ads<s-tasinf-linux.ads \
1753 s-tasinf.adb<s-tasinf-linux.adb \
1754 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1755 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1756 g-sercom.adb<g-sercom-linux.adb
1758 LIBGNAT_TARGET_PAIRS_32 = \
1759 system.ads<system-linux-mipsel.ads
1761 LIBGNAT_TARGET_PAIRS_64 = \
1762 system.ads<system-linux-mips64el.ads
1764 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1765 LIBGNAT_TARGET_PAIRS = \
1766 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1768 LIBGNAT_TARGET_PAIRS = \
1769 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1772 TOOLS_TARGET_PAIRS = \
1773 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1774 indepsw.adb<indepsw-gnu.adb
1776 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1778 THREADSLIB = -lpthread
1779 GNATLIB_SHARED = gnatlib-shared-dual
1781 LIBRARY_VERSION := $(LIB_VERSION)
1784 ifeq ($(strip $(filter-out powerpc% linux%,$(arch) $(osys))),)
1785 LIBGNAT_TARGET_PAIRS_COMMON = \
1786 a-exetim.adb<a-exetim-posix.adb \
1787 a-exetim.ads<a-exetim-default.ads \
1788 a-intnam.ads<a-intnam-linux.ads \
1789 s-inmaop.adb<s-inmaop-posix.adb \
1790 s-intman.adb<s-intman-posix.adb \
1791 s-linux.ads<s-linux.ads \
1792 s-osinte.adb<s-osinte-posix.adb \
1793 s-tpopsp.adb<s-tpopsp-tls.adb \
1794 g-sercom.adb<g-sercom-linux.adb \
1795 $(ATOMICS_TARGET_PAIRS)
1797 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
1798 LIBGNAT_TARGET_PAIRS = \
1799 $(LIBGNAT_TARGET_PAIRS_COMMON)
1801 LIBGNAT_TARGET_PAIRS += \
1802 s-osinte.ads<s-osinte-linux-xenomai.ads \
1803 s-osprim.adb<s-osprim-linux-xenomai.adb \
1804 s-taprop.adb<s-taprop-linux-xenomai.adb \
1805 s-taspri.ads<s-taspri-linux-xenomai.ads \
1806 system.ads<system-linux-ppc.ads
1808 LIBGNAT_TARGET_PAIRS_32 = \
1809 system.ads<system-linux-ppc.ads
1811 LIBGNAT_TARGET_PAIRS_64 = \
1812 system.ads<system-linux-ppc64.ads
1814 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1815 LIBGNAT_TARGET_PAIRS = \
1816 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1818 LIBGNAT_TARGET_PAIRS = \
1819 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1822 LIBGNAT_TARGET_PAIRS += \
1823 s-osinte.ads<s-osinte-linux.ads \
1824 s-osprim.adb<s-osprim-posix.adb \
1825 s-taprop.adb<s-taprop-linux.adb \
1826 s-tasinf.ads<s-tasinf-linux.ads \
1827 s-tasinf.adb<s-tasinf-linux.adb \
1828 s-taspri.ads<s-taspri-posix-noaltstack.ads
1831 TOOLS_TARGET_PAIRS = \
1832 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1833 indepsw.adb<indepsw-gnu.adb
1835 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
1837 THREADSLIB = -lpthread -lrt
1838 GNATLIB_SHARED = gnatlib-shared-dual
1840 LIBRARY_VERSION := $(LIB_VERSION)
1843 ifeq ($(strip $(filter-out arm% linux-gnueabi,$(arch) $(osys)-$(word 4,$(targ)))),)
1844 LIBGNAT_TARGET_PAIRS = \
1845 a-intnam.ads<a-intnam-linux.ads \
1846 s-inmaop.adb<s-inmaop-posix.adb \
1847 s-intman.adb<s-intman-posix.adb \
1848 s-linux.ads<s-linux.ads \
1849 s-osinte.adb<s-osinte-posix.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 \
1856 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
1858 ifeq ($(strip $(filter-out arm%b,$(arch))),)
1859 LIBGNAT_TARGET_PAIRS += \
1860 system.ads<system-linux-armeb.ads
1862 LIBGNAT_TARGET_PAIRS += \
1863 system.ads<system-linux-armel.ads
1866 TOOLS_TARGET_PAIRS = \
1867 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1868 indepsw.adb<indepsw-gnu.adb
1870 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1872 THREADSLIB = -lpthread
1873 GNATLIB_SHARED = gnatlib-shared-dual
1875 LIBRARY_VERSION := $(LIB_VERSION)
1878 ifeq ($(strip $(filter-out sparc% linux%,$(arch) $(osys))),)
1879 LIBGNAT_TARGET_PAIRS_COMMON = \
1880 a-intnam.ads<a-intnam-linux.ads \
1881 s-inmaop.adb<s-inmaop-posix.adb \
1882 s-intman.adb<s-intman-posix.adb \
1883 s-linux.ads<s-linux-sparc.ads \
1884 s-osinte.adb<s-osinte-posix.adb \
1885 s-osinte.ads<s-osinte-linux.ads \
1886 s-osprim.adb<s-osprim-posix.adb \
1887 s-taprop.adb<s-taprop-linux.adb \
1888 s-tasinf.ads<s-tasinf-linux.ads \
1889 s-tasinf.adb<s-tasinf-linux.adb \
1890 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1891 s-tpopsp.adb<s-tpopsp-tls.adb
1893 LIBGNAT_TARGET_PAIRS_32 = \
1894 g-trasym.ads<g-trasym-unimplemented.ads \
1895 g-trasym.adb<g-trasym-unimplemented.adb \
1896 system.ads<system-linux-sparc.ads
1898 LIBGNAT_TARGET_PAIRS_64 = \
1899 system.ads<system-linux-sparcv9.ads
1901 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1902 LIBGNAT_TARGET_PAIRS = \
1903 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1905 LIBGNAT_TARGET_PAIRS = \
1906 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1909 TOOLS_TARGET_PAIRS = \
1910 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1911 indepsw.adb<indepsw-gnu.adb
1913 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1915 THREADSLIB = -lpthread
1916 GNATLIB_SHARED = gnatlib-shared-dual
1918 LIBRARY_VERSION := $(LIB_VERSION)
1921 ifeq ($(strip $(filter-out hppa% linux%,$(arch) $(osys))),)
1922 LIBGNAT_TARGET_PAIRS = \
1923 a-intnam.ads<a-intnam-linux.ads \
1924 s-inmaop.adb<s-inmaop-posix.adb \
1925 s-intman.adb<s-intman-posix.adb \
1926 s-linux.ads<s-linux-hppa.ads \
1927 s-osinte.adb<s-osinte-posix.adb \
1928 s-osinte.ads<s-osinte-linux.ads \
1929 s-osprim.adb<s-osprim-posix.adb \
1930 s-taprop.adb<s-taprop-linux.adb \
1931 s-tasinf.ads<s-tasinf-linux.ads \
1932 s-tasinf.adb<s-tasinf-linux.adb \
1933 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1934 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1935 g-trasym.ads<g-trasym-unimplemented.ads \
1936 g-trasym.adb<g-trasym-unimplemented.adb \
1937 system.ads<system-linux-hppa.ads
1939 TOOLS_TARGET_PAIRS = \
1940 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1941 indepsw.adb<indepsw-gnu.adb
1943 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1945 THREADSLIB = -lpthread
1946 GNATLIB_SHARED = gnatlib-shared-dual
1948 LIBRARY_VERSION := $(LIB_VERSION)
1951 ifeq ($(strip $(filter-out sh4% linux%,$(arch) $(osys))),)
1952 LIBGNAT_TARGET_PAIRS = \
1953 a-intnam.ads<a-intnam-linux.ads \
1954 s-inmaop.adb<s-inmaop-posix.adb \
1955 s-intman.adb<s-intman-posix.adb \
1956 s-linux.ads<s-linux.ads \
1957 s-osinte.adb<s-osinte-posix.adb \
1958 s-osinte.ads<s-osinte-linux.ads \
1959 s-osprim.adb<s-osprim-posix.adb \
1960 s-taprop.adb<s-taprop-linux.adb \
1961 s-tasinf.ads<s-tasinf-linux.ads \
1962 s-tasinf.adb<s-tasinf-linux.adb \
1963 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1964 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1965 system.ads<system-linux-sh4.ads
1967 TOOLS_TARGET_PAIRS = \
1968 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1969 indepsw.adb<indepsw-linux.adb
1971 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1974 THREADSLIB = -lpthread
1975 GNATLIB_SHARED = gnatlib-shared-dual
1977 LIBRARY_VERSION := $(LIB_VERSION)
1980 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1981 LIBGNAT_TARGET_PAIRS = \
1982 a-exetim.adb<a-exetim-posix.adb \
1983 a-exetim.ads<a-exetim-default.ads \
1984 a-intnam.ads<a-intnam-linux.ads \
1985 a-numaux.ads<a-numaux-libc-x86.ads \
1986 s-inmaop.adb<s-inmaop-posix.adb \
1987 s-intman.adb<s-intman-posix.adb \
1988 s-linux.ads<s-linux.ads \
1989 s-osinte.ads<s-osinte-linux.ads \
1990 s-osinte.adb<s-osinte-posix.adb \
1991 s-osprim.adb<s-osprim-posix.adb \
1992 s-taprop.adb<s-taprop-linux.adb \
1993 s-tasinf.ads<s-tasinf-linux.ads \
1994 s-tasinf.adb<s-tasinf-linux.adb \
1995 s-tpopsp.adb<s-tpopsp-tls.adb \
1996 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1997 g-sercom.adb<g-sercom-linux.adb \
1998 system.ads<system-linux-ia64.ads \
1999 $(ATOMICS_TARGET_PAIRS)
2001 TOOLS_TARGET_PAIRS = \
2002 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2003 indepsw.adb<indepsw-gnu.adb
2005 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
2008 THREADSLIB=-lpthread -lrt
2009 GNATLIB_SHARED=gnatlib-shared-dual
2011 LIBRARY_VERSION := $(LIB_VERSION)
2014 ifeq ($(strip $(filter-out ia64% hp hpux%,$(targ))),)
2015 LIBGNAT_TARGET_PAIRS = \
2016 a-intnam.ads<a-intnam-hpux.ads \
2017 s-inmaop.adb<s-inmaop-posix.adb \
2018 s-intman.adb<s-intman-posix.adb \
2019 s-osinte.adb<s-osinte-posix.adb \
2020 s-osinte.ads<s-osinte-hpux.ads \
2021 s-osprim.adb<s-osprim-posix.adb \
2022 s-taprop.adb<s-taprop-posix.adb \
2023 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2024 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2025 system.ads<system-hpux-ia64.ads \
2026 $(ATOMICS_TARGET_PAIRS)
2028 TOOLS_TARGET_PAIRS = \
2029 mlib-tgt-specific.adb<mlib-tgt-specific-ia64-hpux.adb
2032 THREADSLIB=-lpthread
2033 GNATLIB_SHARED=gnatlib-shared-dual
2037 LIBRARY_VERSION := $(LIB_VERSION)
2040 ifeq ($(strip $(filter-out alpha% linux%,$(arch) $(osys))),)
2041 LIBGNAT_TARGET_PAIRS = \
2042 a-intnam.ads<a-intnam-linux.ads \
2043 s-inmaop.adb<s-inmaop-posix.adb \
2044 s-intman.adb<s-intman-posix.adb \
2045 s-linux.ads<s-linux-alpha.ads \
2046 s-osinte.ads<s-osinte-linux.ads \
2047 s-osinte.adb<s-osinte-posix.adb \
2048 s-osprim.adb<s-osprim-posix.adb \
2049 s-taprop.adb<s-taprop-linux.adb \
2050 s-tasinf.ads<s-tasinf-linux.ads \
2051 s-tasinf.adb<s-tasinf-linux.adb \
2052 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2053 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2054 g-trasym.ads<g-trasym-unimplemented.ads \
2055 g-trasym.adb<g-trasym-unimplemented.adb \
2056 system.ads<system-linux-alpha.ads \
2057 $(ATOMICS_TARGET_PAIRS)
2059 TOOLS_TARGET_PAIRS = \
2060 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2061 indepsw.adb<indepsw-gnu.adb
2063 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
2066 THREADSLIB=-lpthread
2067 GNATLIB_SHARED=gnatlib-shared-dual
2068 LIBRARY_VERSION := $(LIB_VERSION)
2071 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
2072 LIBGNAT_TARGET_PAIRS = \
2073 a-exetim.adb<a-exetim-posix.adb \
2074 a-exetim.ads<a-exetim-default.ads \
2075 a-intnam.ads<a-intnam-linux.ads \
2076 a-numaux.adb<a-numaux-x86.adb \
2077 a-numaux.ads<a-numaux-x86.ads \
2078 s-inmaop.adb<s-inmaop-posix.adb \
2079 s-intman.adb<s-intman-posix.adb \
2080 s-linux.ads<s-linux.ads \
2081 s-osinte.ads<s-osinte-linux.ads \
2082 s-osinte.adb<s-osinte-posix.adb \
2083 s-osprim.adb<s-osprim-posix.adb \
2084 s-taprop.adb<s-taprop-linux.adb \
2085 s-tasinf.ads<s-tasinf-linux.ads \
2086 s-tasinf.adb<s-tasinf-linux.adb \
2087 s-tpopsp.adb<s-tpopsp-tls.adb \
2088 s-taspri.ads<s-taspri-posix.ads \
2089 g-sercom.adb<g-sercom-linux.adb \
2090 system.ads<system-linux-x86_64.ads \
2091 $(ATOMICS_TARGET_PAIRS)
2093 TOOLS_TARGET_PAIRS = \
2094 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2095 indepsw.adb<indepsw-gnu.adb
2097 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
2098 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
2100 THREADSLIB=-lpthread -lrt
2101 GNATLIB_SHARED=gnatlib-shared-dual
2103 LIBRARY_VERSION := $(LIB_VERSION)
2106 ifeq ($(strip $(filter-out darwin%,$(osys))),)
2107 ifeq ($(strip $(filter-out %86,$(arch))),)
2108 LIBGNAT_TARGET_PAIRS = \
2109 a-intnam.ads<a-intnam-darwin.ads \
2110 i-forbla.adb<i-forbla-darwin.adb \
2111 s-inmaop.adb<s-inmaop-posix.adb \
2112 s-intman.adb<s-intman-susv3.adb \
2113 s-osinte.adb<s-osinte-darwin.adb \
2114 s-osinte.ads<s-osinte-darwin.ads \
2115 s-osprim.adb<s-osprim-darwin.adb \
2116 s-taprop.adb<s-taprop-posix.adb \
2117 s-taspri.ads<s-taspri-posix.ads \
2118 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2119 g-trasym.ads<g-trasym-unimplemented.ads \
2120 g-trasym.adb<g-trasym-unimplemented.adb \
2121 a-numaux.ads<a-numaux-x86.ads \
2122 a-numaux.adb<a-numaux-x86.adb
2123 ifeq ($(strip $(MULTISUBDIR)),/x86_64)
2124 LIBGNAT_TARGET_PAIRS += \
2125 system.ads<system-darwin-x86_64.ads
2127 LIBGNAT_TARGET_PAIRS += \
2128 system.ads<system-darwin-x86.ads
2132 ifeq ($(strip $(filter-out %x86_64,$(arch))),)
2133 LIBGNAT_TARGET_PAIRS = \
2134 a-intnam.ads<a-intnam-darwin.ads \
2135 i-forbla.adb<i-forbla-darwin.adb \
2136 s-inmaop.adb<s-inmaop-posix.adb \
2137 s-intman.adb<s-intman-susv3.adb \
2138 s-osinte.adb<s-osinte-darwin.adb \
2139 s-osinte.ads<s-osinte-darwin.ads \
2140 s-osprim.adb<s-osprim-darwin.adb \
2141 s-taprop.adb<s-taprop-posix.adb \
2142 s-taspri.ads<s-taspri-posix.ads \
2143 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2144 g-trasym.ads<g-trasym-unimplemented.ads \
2145 g-trasym.adb<g-trasym-unimplemented.adb \
2146 a-numaux.ads<a-numaux-x86.ads \
2147 a-numaux.adb<a-numaux-x86.adb \
2148 $(ATOMICS_TARGET_PAIRS)
2149 ifeq ($(strip $(MULTISUBDIR)),/i386)
2150 LIBGNAT_TARGET_PAIRS += \
2151 system.ads<system-darwin-x86.ads
2153 LIBGNAT_TARGET_PAIRS += \
2154 system.ads<system-darwin-x86_64.ads
2158 ifeq ($(strip $(filter-out powerpc%,$(arch))),)
2159 LIBGNAT_TARGET_PAIRS = \
2160 a-intnam.ads<a-intnam-darwin.ads \
2161 i-forbla.adb<i-forbla-darwin.adb \
2162 s-inmaop.adb<s-inmaop-posix.adb \
2163 s-intman.adb<s-intman-posix.adb \
2164 s-osinte.adb<s-osinte-darwin.adb \
2165 s-osinte.ads<s-osinte-darwin.ads \
2166 s-osprim.adb<s-osprim-posix.adb \
2167 s-taprop.adb<s-taprop-posix.adb \
2168 s-taspri.ads<s-taspri-posix.ads \
2169 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2170 a-numaux.ads<a-numaux-darwin.ads \
2171 a-numaux.adb<a-numaux-darwin.adb \
2172 g-trasym.ads<g-trasym-unimplemented.ads \
2173 g-trasym.adb<g-trasym-unimplemented.adb \
2174 system.ads<system-darwin-ppc.ads
2177 TOOLS_TARGET_PAIRS = \
2178 mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb \
2179 indepsw.adb<indepsw-darwin.adb
2182 GNATLIB_SHARED = gnatlib-shared-darwin
2183 SO_OPTS = -Wl,-flat_namespace -shared-libgcc
2186 LIBRARY_VERSION := $(LIB_VERSION)
2191 ifneq ($(EH_MECHANISM),)
2192 LIBGNAT_TARGET_PAIRS += a-exexpr.adb<a-exexpr$(EH_MECHANISM).adb
2193 EXTRA_LIBGNAT_SRCS+=raise$(EH_MECHANISM).c
2194 EXTRA_LIBGNAT_OBJS+=raise$(EH_MECHANISM).o
2197 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
2198 # explicitly already. The base files (a-except.ad?) are used only for building
2199 # the compiler and other basic tools.
2200 # These base versions lack Ada 2005 additions which would cause bootstrap
2201 # problems if included in the compiler and other basic tools.
2203 ifeq ($(filter a-except%,$(LIBGNAT_TARGET_PAIRS)),)
2204 LIBGNAT_TARGET_PAIRS += \
2205 a-except.ads<a-except-2005.ads \
2206 a-except.adb<a-except-2005.adb
2209 # The runtime library for gnat comprises two directories. One contains the
2210 # Ada source files that the compiler (gnat1) needs -- these files are listed
2211 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
2212 # corresponding .ali files for the parts written in Ada, libgnat.a for
2213 # the parts of the runtime written in C, and libgthreads.a for the pthreads
2214 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
2215 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
2216 # go into the directory. The pthreads emulation is built in the threads
2217 # subdirectory and copied.
2218 LIBGNAT_SRCS = adadecode.c adadecode.h adaint.c adaint.h \
2219 argv.c cio.c cstreams.c errno.c exit.c cal.c ctrl_c.c env.c env.h \
2220 arit64.c raise.h raise.c sysdep.c aux-io.c init.c initialize.c \
2221 locales.c seh_init.c final.c tracebak.c tb-alvms.c tb-alvxw.c \
2222 tb-gcc.c expect.c mkdir.c socket.c gsocket.h targext.c $(EXTRA_LIBGNAT_SRCS)
2224 LIBGNAT_OBJS = adadecode.o adaint.o argv.o cio.o cstreams.o ctrl_c.o \
2225 errno.o exit.o env.o raise.o sysdep.o aux-io.o init.o initialize.o \
2226 locales.o seh_init.o cal.o arit64.o final.o tracebak.o expect.o \
2227 mkdir.o socket.o targext.o $(EXTRA_LIBGNAT_OBJS)
2229 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2230 # the library installation will change and there will be a
2231 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2232 # from ADA_INCLUDE_SRCS.
2234 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2235 # the following include file:
2237 include $(fsrcdir)/ada/Makefile.rtl
2239 GNATRTL_LINEARALGEBRA_OBJS = a-nlcoar.o a-nllcar.o a-nllrar.o a-nlrear.o \
2240 a-nucoar.o a-nurear.o i-forbla.o i-forlap.o s-gearop.o
2242 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
2243 $(GNATRTL_LINEARALGEBRA_OBJS) g-trasym.o memtrack.o
2245 # Default run time files
2248 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2249 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2250 sequenio.ads system.ads memtrack.adb \
2251 a-[a-o]*.adb a-[p-z]*.adb a-[a-o]*.ads a-[p-z]*.ads g-*.ad? i-*.ad? \
2252 s-[a-o]*.adb s-[p-z]*.adb s-[a-o]*.ads s-[p-z]*.ads
2254 LIBGNAT=../$(RTSDIR)/libgnat.a
2256 GCC_LINK=$(CC) $(GCC_LINK_FLAGS) $(ADA_INCLUDES)
2258 # when compiling the tools, the runtime has to be first on the path so that
2259 # it hides the runtime files lying with the rest of the sources
2260 ifeq ($(TOOLSCASE),native)
2261 vpath %.ads ../$(RTSDIR) ../
2262 vpath %.adb ../$(RTSDIR) ../
2263 vpath %.c ../$(RTSDIR) ../
2264 vpath %.h ../$(RTSDIR) ../
2267 # in the cross tools case, everything is compiled with the native
2268 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2269 ifeq ($(TOOLSCASE),cross)
2277 $(GNATMAKE) -c -b $(ADA_INCLUDES) \
2278 --GNATBIND="$(GNATBIND)" --GCC="$(CC) $(ALL_ADAFLAGS)" \
2279 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2280 gnatclean -bargs $(ADA_INCLUDES) $(GNATBIND_FLAGS)
2281 $(GNATLINK) -v gnatcmd -o ../../gnat$(exeext) \
2282 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2283 $(GNATLINK) -v gnatchop -o ../../gnatchop$(exeext) \
2284 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2285 $(GNATLINK) -v gnatkr -o ../../gnatkr$(exeext) \
2286 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2287 $(GNATLINK) -v gnatls -o ../../gnatls$(exeext) \
2288 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2289 $(GNATLINK) -v gnatprep -o ../../gnatprep$(exeext) \
2290 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2291 $(GNATLINK) -v gnatxref -o ../../gnatxref$(exeext) \
2292 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2293 $(GNATLINK) -v gnatfind -o ../../gnatfind$(exeext) \
2294 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2295 $(GNATLINK) -v gnatname -o ../../gnatname$(exeext) \
2296 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2297 $(GNATLINK) -v gnatclean -o ../../gnatclean$(exeext) \
2298 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2300 ../../gnatsym$(exeext):
2301 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
2302 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
2303 $(GNATLINK) -v gnatsym -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2305 ../../gnatdll$(exeext):
2306 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
2307 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatdll
2308 $(GNATLINK) -v gnatdll -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2310 ../../vxaddr2line$(exeext): targext.o
2311 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
2312 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
2313 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(GCC_LINK)" targext.o $(CLIB)
2315 gnatmake-re: link.o targext.o
2316 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
2317 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
2318 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
2319 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
2320 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2322 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2323 # with the former version of gnatlink itself which cannot override itself.
2324 gnatlink-re: link.o targext.o
2325 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
2326 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
2327 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
2328 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2329 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
2331 # Needs to be built with CC=gcc
2332 # Since the RTL should be built with the latest compiler, remove the
2333 # stamp target in the parent directory whenever gnat1 is rebuilt
2335 # Likewise for the tools
2336 ../../gnatmake$(exeext): $(P) b_gnatm.o link.o targext.o $(GNATMAKE_OBJS)
2337 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
2340 ../../gnatlink$(exeext): $(P) b_gnatl.o link.o targext.o $(GNATLINK_OBJS)
2341 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
2344 ../stamp-gnatlib-$(RTSDIR):
2345 @if [ ! -f stamp-gnatlib-$(RTSDIR) ] ; \
2347 $(ECHO) You must first build the GNAT library: make gnatlib; \
2353 install-gnatlib: ../stamp-gnatlib-$(RTSDIR)
2354 # Create the directory before deleting it, in case the directory is
2355 # a list of directories (as it may be on VMS). This ensures we are
2356 # deleting the right one.
2357 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2358 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2359 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2360 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2361 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2362 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2363 for file in $(RTSDIR)/*.ali; do \
2364 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2366 -$(INSTALL_DATA) $(RTSDIR)/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2367 -cd $(RTSDIR); for file in *$(arext);do \
2368 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2369 $(RANLIB_FOR_TARGET) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
2371 -$(foreach file, $(EXTRA_ADALIB_FILES), \
2372 $(INSTALL_DATA_DATE) $(RTSDIR)/$(file) $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
2374 # Install the shared libraries, if any, using $(INSTALL) instead
2375 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2376 # for shared libraries on some targets, e.g. on HP-UX where the x
2377 # permission is required.
2378 # Also install the .dSYM directories if they exist (these directories
2379 # contain the debug information for the shared libraries on darwin)
2380 for file in gnat gnarl; do \
2381 if [ -f $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
2382 $(INSTALL) $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2383 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2385 if [ -f $(RTSDIR)/lib$${file}$(soext) ]; then \
2386 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2387 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
2389 if [ -d $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM ]; then \
2390 $(CP) -r $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM \
2391 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2394 # This copy must be done preserving the date on the original file.
2395 for file in $(RTSDIR)/*.ad?; do \
2396 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
2398 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
2399 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
2401 ../stamp-gnatlib2-$(RTSDIR):
2402 $(RM) $(RTSDIR)/s-*.ali
2403 $(RM) $(RTSDIR)/s-*$(objext)
2404 $(RM) $(RTSDIR)/a-*.ali
2405 $(RM) $(RTSDIR)/a-*$(objext)
2406 $(RM) $(RTSDIR)/*.ali
2407 $(RM) $(RTSDIR)/*$(objext)
2408 $(RM) $(RTSDIR)/*$(arext)
2409 $(RM) $(RTSDIR)/*$(soext)
2410 touch ../stamp-gnatlib2-$(RTSDIR)
2411 $(RM) ../stamp-gnatlib-$(RTSDIR)
2413 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
2414 # successive target commands. Although the Gnu make documentation
2415 # implies this is true on all systems, I suspect it may not be, So care
2416 # has been taken to allow a sed script to look for ";)" and substitue
2417 # for ";" the appropriate character in the range of lines below
2418 # beginning with "GNULLI Begin" and ending with "GNULLI End"
2420 # GNULLI Begin ###########################################################
2422 ../stamp-gnatlib1-$(RTSDIR): Makefile ../stamp-gnatlib2-$(RTSDIR)
2425 $(CHMOD) u+w $(RTSDIR)
2426 # Copy target independent sources
2427 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
2428 $(LN_S) $(fsrcpfx)ada/$(f) $(RTSDIR) ;) true
2429 # Remove files to be replaced by target dependent sources
2430 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2431 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR))))
2432 for f in $(RTSDIR)/*-*-*.ads $(RTSDIR)/*-*-*.adb; do \
2434 $(RTSDIR)/s-stratt-*) ;; \
2438 # Copy new target dependent sources
2439 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2440 $(LN_S) $(fsrcpfx)ada/$(word 2,$(subst <, ,$(PAIR))) \
2441 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)));)
2443 $(CP) $(srcdir)/tsystem.h rts
2444 # Copy generated target dependent sources
2445 $(RM) $(RTSDIR)/s-oscons.ads
2446 (cd $(RTSDIR); $(LN_S) ../s-oscons.ads s-oscons.ads)
2447 $(RM) ../stamp-gnatlib-$(RTSDIR)
2448 touch ../stamp-gnatlib1-$(RTSDIR)
2450 # GNULLI End #############################################################
2452 # Don't use semicolon separated shell commands that involve list expansions.
2453 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
2454 # line lengths in excess of 256 characters.
2455 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
2456 # is guaranteed to overflow the buffer.
2458 gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../stamp-gnatlib2-$(RTSDIR)
2459 $(MAKE) -C $(RTSDIR) \
2460 CC="`echo \"$(GCC_FOR_TARGET)\" \
2461 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2462 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2463 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
2464 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2466 -f ../Makefile $(LIBGNAT_OBJS)
2467 $(MAKE) -C $(RTSDIR) \
2468 CC="`echo \"$(GCC_FOR_TARGET)\" \
2469 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2471 CFLAGS="$(GNATLIBCFLAGS)" \
2472 ADAFLAGS="$(GNATLIBFLAGS)" \
2473 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2477 $(RM) $(RTSDIR)/libgnat$(arext) $(RTSDIR)/libgnarl$(arext)
2478 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnat$(arext) \
2479 $(addprefix $(RTSDIR)/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
2480 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnat$(arext)
2481 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnarl$(arext) \
2482 $(addprefix $(RTSDIR)/,$(GNATRTL_TASKING_OBJS))
2483 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnarl$(arext)
2484 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnala$(arext) \
2485 $(addprefix $(RTSDIR)/,$(GNATRTL_LINEARALGEBRA_OBJS))
2486 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnala$(arext)
2487 ifeq ($(GMEM_LIB),gmemlib)
2488 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgmem$(arext) \
2489 $(RTSDIR)/memtrack.o
2490 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgmem$(arext)
2492 $(CHMOD) a-wx $(RTSDIR)/*.ali
2493 touch ../stamp-gnatlib-$(RTSDIR)
2495 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2496 gnatlib-shared-default:
2497 $(MAKE) $(FLAGS_TO_PASS) \
2498 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2499 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2500 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2501 MULTISUBDIR="$(MULTISUBDIR)" \
2502 THREAD_KIND="$(THREAD_KIND)" \
2504 $(RM) $(RTSDIR)/libgna*$(soext)
2505 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2506 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared $(GNATLIBCFLAGS) \
2507 $(PICFLAG_FOR_TARGET) \
2508 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2509 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2510 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2512 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2513 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared $(GNATLIBCFLAGS) \
2514 $(PICFLAG_FOR_TARGET) \
2515 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2516 $(GNATRTL_TASKING_OBJS) \
2517 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2519 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2521 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2524 gnatlib-shared-dual:
2525 $(MAKE) $(FLAGS_TO_PASS) \
2526 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2527 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2528 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2529 MULTISUBDIR="$(MULTISUBDIR)" \
2530 THREAD_KIND="$(THREAD_KIND)" \
2531 gnatlib-shared-default
2532 $(MV) $(RTSDIR)/libgna*$(soext) .
2533 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2534 $(MAKE) $(FLAGS_TO_PASS) \
2535 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2536 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2537 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2538 MULTISUBDIR="$(MULTISUBDIR)" \
2539 THREAD_KIND="$(THREAD_KIND)" \
2541 $(MV) libgna*$(soext) $(RTSDIR)
2543 gnatlib-shared-dual-win32:
2544 $(MAKE) $(FLAGS_TO_PASS) \
2545 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2546 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2547 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2548 MULTISUBDIR="$(MULTISUBDIR)" \
2549 THREAD_KIND="$(THREAD_KIND)" \
2550 gnatlib-shared-win32
2551 $(MV) $(RTSDIR)/libgna*$(soext) .
2552 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2553 $(MAKE) $(FLAGS_TO_PASS) \
2554 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2555 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2556 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2557 MULTISUBDIR="$(MULTISUBDIR)" \
2558 THREAD_KIND="$(THREAD_KIND)" \
2560 $(MV) libgna*$(soext) $(RTSDIR)
2562 # ??? we need to add the option to support auto-import of arrays/records to
2563 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2564 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2566 gnatlib-shared-win32:
2567 $(MAKE) $(FLAGS_TO_PASS) \
2568 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2569 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2570 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2571 MULTISUBDIR="$(MULTISUBDIR)" \
2572 THREAD_KIND="$(THREAD_KIND)" \
2574 $(RM) $(RTSDIR)/libgna*$(soext)
2575 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2576 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared -shared-libgcc \
2577 $(PICFLAG_FOR_TARGET) \
2578 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2579 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2580 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
2581 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2582 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared -shared-libgcc \
2583 $(PICFLAG_FOR_TARGET) \
2584 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2585 $(GNATRTL_TASKING_OBJS) \
2586 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2587 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2589 gnatlib-shared-darwin:
2590 $(MAKE) $(FLAGS_TO_PASS) \
2591 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2592 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2593 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) -fno-common" \
2594 MULTISUBDIR="$(MULTISUBDIR)" \
2595 THREAD_KIND="$(THREAD_KIND)" \
2597 $(RM) $(RTSDIR)/libgnat$(soext) $(RTSDIR)/libgnarl$(soext)
2598 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2599 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib $(PICFLAG_FOR_TARGET) \
2600 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2601 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2603 -Wl,-install_name,@rpath/libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2605 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2606 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib $(PICFLAG_FOR_TARGET) \
2607 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2608 $(GNATRTL_TASKING_OBJS) \
2610 -Wl,-install_name,@rpath/libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2611 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2612 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2614 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2616 cd $(RTSDIR); dsymutil libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2617 cd $(RTSDIR); dsymutil libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext)
2620 $(MAKE) $(FLAGS_TO_PASS) \
2621 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2622 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2623 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2624 MULTISUBDIR="$(MULTISUBDIR)" \
2625 THREAD_KIND="$(THREAD_KIND)" \
2627 $(RM) $(RTSDIR)/libgna*$(soext)
2629 ../../gnatsym -s SYMVEC_$$$$.opt \
2630 $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) && \
2631 ../../xgcc -g -B../../ -shared -shared-libgcc \
2632 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
2633 sys\$$library:trace.exe \
2634 --for-linker=/noinform \
2635 --for-linker=SYMVEC_$$$$.opt \
2636 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2638 ../../gnatsym -s SYMVEC_$$$$.opt \
2639 $(GNATRTL_TASKING_OBJS) && \
2640 ../../xgcc -g -B../../ -shared -shared-libgcc \
2641 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2642 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2643 sys\$$library:trace.exe \
2644 --for-linker=/noinform \
2645 --for-linker=SYMVEC_$$$$.opt \
2646 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2649 $(MAKE) $(FLAGS_TO_PASS) \
2650 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2651 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2652 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2653 MULTISUBDIR="$(MULTISUBDIR)" \
2654 THREAD_KIND="$(THREAD_KIND)" \
2655 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" \
2659 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="" \
2660 THREAD_KIND="$(THREAD_KIND)" ../stamp-gnatlib1-$(RTSDIR)
2661 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2662 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2663 $(MAKE) $(FLAGS_TO_PASS) \
2665 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2666 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2667 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2668 MULTISUBDIR="$(MULTISUBDIR)" \
2669 THREAD_KIND="$(THREAD_KIND)" \
2670 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" gnatlib
2673 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="-gcc" \
2674 THREAD_KIND="$(THREAD_KIND)" ../stamp-gnatlib1-$(RTSDIR)
2675 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2676 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2677 $(MAKE) $(FLAGS_TO_PASS) \
2678 EH_MECHANISM="-gcc" \
2679 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2680 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2681 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2682 MULTISUBDIR="$(MULTISUBDIR)" \
2683 THREAD_KIND="$(THREAD_KIND)" \
2684 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" gnatlib
2686 # .s files for cross-building
2688 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
2690 # Compiling object files from source files.
2692 # Note that dependencies on obstack.h are not written
2693 # because that file is not part of GCC.
2694 # Dependencies on gvarargs.h are not written
2695 # because all that file does, when not compiling with GCC,
2696 # is include the system varargs.h.
2698 b_gnatl.adb : $(GNATLINK_OBJS)
2699 $(GNATBIND) $(ADA_INCLUDES) -o b_gnatl.adb gnatlink.ali
2701 b_gnatl.o : b_gnatl.adb
2702 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) -gnatws -gnatyN \
2705 b_gnatm.adb : $(GNATMAKE_OBJS)
2706 $(GNATBIND) $(ADA_INCLUDES) -o b_gnatm.adb gnatmake.ali
2708 b_gnatm.o : b_gnatm.adb
2709 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) -gnatws -gnatyN \
2712 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2713 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2717 # force no sibling call optimization on s-traceb.o so the number of stack
2718 # frames to be skipped when computing a call chain is not modified by
2721 s-traceb.o : s-traceb.adb s-traceb.ads
2722 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2723 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
2725 # force debugging information on s-tasdeb.o so that it is always
2726 # possible to set conditional breakpoints on tasks.
2728 s-tasdeb.o : s-tasdeb.adb s-tasdeb.ads
2729 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2732 # force debugging information on s-vaflop.o so that it is always
2733 # possible to call the VAX float debug print routines.
2734 # force at least -O so that the inline assembly works.
2736 s-vaflop.o : s-vaflop.adb s-vaflop.ads
2737 $(CC) -c -O $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
2740 # force no function reordering on a-except.o because of the exclusion bounds
2741 # mechanism (see the source file for more detailed information).
2742 # force debugging information on a-except.o so that it is always
2743 # possible to set conditional breakpoints on exceptions.
2744 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2746 a-except.o : a-except.adb a-except.ads
2747 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O1 -fno-inline \
2748 $(NO_REORDER_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
2750 # compile s-except.o without optimization and with debug info to let the
2751 # debugger set breakpoints and inspect subprogram parameters on exception
2754 s-except.o : s-except.adb s-except.ads
2755 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2758 # force debugging information on s-assert.o so that it is always
2759 # possible to set breakpoint on assert failures.
2761 s-assert.o : s-assert.adb s-assert.ads
2762 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
2765 # force debugging information on a-tags.o so that the debugger can find
2766 # the description of Ada.Tags.Type_Specific_Data.
2768 a-tags.o : a-tags.adb a-tags.ads
2769 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
2772 # need to keep the frame pointer in this file to pop the stack properly on
2774 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2775 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
2776 $(INCLUDES) -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2778 adadecode.o : adadecode.c adadecode.h
2782 deftarg.o : deftarg.c
2784 exit.o : adaint.h exit.c
2787 locales.o : locales.c
2789 socket.o : socket.c gsocket.h
2791 raise.o : raise.c raise.h
2792 vx_stack_info.o : vx_stack_info.c
2794 raise-gcc.o : raise-gcc.c raise.h
2795 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2796 -iquote $(srcdir) -iquote $(srcdir)/../libgcc \
2797 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2800 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2801 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2803 init.o : init.c adaint.h raise.h
2804 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2805 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2807 initialize.o : initialize.c raise.h
2808 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2809 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2812 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2813 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
2816 targext.o : targext.c
2817 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2819 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
2822 # In GNU Make, ignore whether `stage*' exists.
2823 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2824 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4