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 # Pretend that _Unwind_GetIPInfo is available for the target by default. This
115 # should be autodetected during the configuration of libada and passed down to
116 # here, but we need something for --disable-libada and hope for the best.
117 GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
118 -DIN_RTS -DHAVE_GETIPINFO
119 ALL_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(ADAFLAGS)
120 MOST_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(SOME_ADAFLAGS)
125 SYMDEPS = $(LIBINTL_DEP)
126 OUTPUT_OPTION = @OUTPUT_OPTION@
135 # Define this as & to perform parallel make on a Sequent.
136 # Note that this has some bugs, and it seems currently necessary
137 # to compile all the gen* files first by hand to avoid erroneous results.
140 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
142 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
143 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS)
145 # Tools to use when building a cross-compiler.
146 # These are used because `configure' appends `cross-make'
147 # to the makefile when making a cross-compiler.
149 # We don't use cross-make. Instead we use the tools from the build tree,
150 # if they are available.
151 # program_transform_name and objdir are set by configure.in.
152 program_transform_name =
155 target_alias=@target_alias@
157 xmake_file = @xmake_file@
158 tmake_file = @tmake_file@
159 host_canonical=@host@
160 target_cpu_default=@target_cpu_default@
161 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
162 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
164 # Directory where sources are, from where we are.
165 VPATH = $(srcdir)/ada
167 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
168 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
169 fcurdir := $(shell ${PWD_COMMAND})
170 fcurpfx := $(shell ${PWD_COMMAND})/
172 # Top build directory, relative to here.
175 # Internationalization library.
177 LIBINTL_DEP = @LIBINTL_DEP@
179 # Any system libraries needed just for GNAT.
180 SYSLIBS = @GNAT_LIBEXC@
182 # List of extra object files linked in with various programs.
183 EXTRA_GNATTOOLS_OBJS = ../../libcommon-target.a ../../libcommon.a \
184 ../../../libcpp/libcpp.a
186 # List extra gnattools
189 # List of target dependent sources, overridden below as necessary
192 # Type of tools build we are doing; default is not compiling tools.
197 RTSDIR = rts$(subst /,_,$(MULTISUBDIR))
199 # Link flags used to build gnat tools. By default we prefer to statically
200 # link with libgcc to avoid a dependency on shared libgcc (which is tricky
201 # to deal with as it may conflict with the libgcc provided by the system).
202 GCC_LINK_FLAGS=-static-libgcc
204 # End of variables for you to override.
208 # This tells GNU Make version 3 not to put all variables in the environment.
212 ifneq ($(tmake_file),)
213 include $(tmake_file)
217 ifneq ($(xmake_file),)
218 include $(xmake_file)
221 # Now figure out from those variables how to compile and link.
223 all.indirect: Makefile ../gnat1$(exeext)
225 # IN_GCC distinguishes between code compiled into GCC itself and other
226 # programs built during a bootstrap.
227 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
228 # compiler which does not use the native libraries and headers.
229 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
231 # This is the variable actually used when we compile.
232 LOOSE_CFLAGS = `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
233 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(T_CFLAGS) $(LOOSE_CFLAGS)
236 ALL_CPPFLAGS = $(CPPFLAGS)
238 # Used with $(COMPILER).
239 ALL_COMPILERFLAGS = $(ALL_CFLAGS)
241 # This is where we get libiberty.a from.
242 LIBIBERTY = ../../libiberty/libiberty.a
244 # How to link with both our special library facilities
245 # and the system's installed libraries.
246 LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
247 LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
248 # Default is no TGT_LIB; one might be passed down or something
250 TOOLS_LIBS = $(EXTRA_GNATTOOLS_OBJS) targext.o link.o $(LIBGNAT) $(LIBINTL) ../../../libiberty/libiberty.a $(SYSLIBS) $(TGT_LIB)
252 # Convert the target variable into a space separated list of architecture,
253 # manufacturer, and operating system and assign each of those to its own
256 host:=$(subst -, ,$(host_canonical))
257 targ:=$(subst -, ,$(target))
258 arch:=$(word 1,$(targ))
259 ifeq ($(words $(targ)),2)
261 osys:=$(word 2,$(targ))
263 manu:=$(word 2,$(targ))
264 osys:=$(word 3,$(targ))
267 # Specify the directories to be searched for header files.
268 # Both . and srcdir are used, in that order,
269 # so that tm.h and config.h will be found in the compilation
270 # subdirectory rather than in the source directory.
271 INCLUDES = -I- -I. -I.. -I$(srcdir)/ada -I$(srcdir) -I$(srcdir)/config \
272 -I$(srcdir)/../include
274 ADA_INCLUDES = -I- -I. -I$(srcdir)/ada
276 INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir)/ada \
277 -I$(fsrcdir)/../include -I$(fsrcdir)
278 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada
280 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
283 # Say how to compile Ada programs.
284 .SUFFIXES: .ada .adb .ads .asm
286 # Always use -I$(srcdir)/config when compiling.
288 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
291 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
292 $(INCLUDES) $< $(OUTPUT_OPTION)
295 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
298 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
300 # how to regenerate this file
301 Makefile: ../config.status $(srcdir)/ada/gcc-interface/Makefile.in $(srcdir)/ada/Makefile.in $(srcdir)/version.c
303 LANGUAGES="$(CONFIG_LANGUAGES)" \
305 CONFIG_FILES="ada/gcc-interface/Makefile ada/Makefile" $(SHELL) config.status
307 # This tells GNU make version 3 not to export all the variables
308 # defined in this file into the environment.
311 # Lists of files for various purposes.
313 GNATLINK_OBJS = gnatlink.o \
314 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
315 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
316 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
317 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
318 types.o validsw.o widechar.o
320 GNATMAKE_OBJS = a-except.o ali.o ali-util.o aspects.o s-casuti.o \
321 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
322 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
323 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
324 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
325 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o \
326 output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o \
327 prj-conf.o prj-pp.o \
328 prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o prj-proc.o prj-strt.o \
329 prj-tree.o prj-util.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
330 scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o sinfo.o sinput.o \
331 sinput-c.o sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o \
332 validsw.o switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o \
333 uintp.o uname.o urealp.o usage.o widechar.o scil_ll.o \
334 $(EXTRA_GNATMAKE_OBJS)
336 # Make arch match the current multilib so that the RTS selection code
337 # picks up the right files. For a given target this must be coherent
338 # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*.
340 ifeq ($(strip $(filter-out %x86_64, $(arch))),)
341 ifeq ($(strip $(MULTISUBDIR)),/32)
346 # ???: handle more multilib targets
348 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
349 # The members of each pair must be separated by a '<' and no whitespace.
350 # Each pair must be separated by some amount of whitespace from the following
355 LIBGNAT_TARGET_PAIRS = \
356 a-intnam.ads<a-intnam-dummy.ads \
357 s-inmaop.adb<s-inmaop-dummy.adb \
358 s-intman.adb<s-intman-dummy.adb \
359 s-osinte.ads<s-osinte-dummy.ads \
360 s-osprim.adb<s-osprim-posix.adb \
361 s-taprop.adb<s-taprop-dummy.adb \
362 s-taspri.ads<s-taspri-dummy.ads
364 # When using the GCC exception handling mechanism, we need to use an
365 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
369 # Default shared object option. Note that we rely on the fact that the "soname"
370 # option will always be present and last in this flag, so that we can have
371 # $(SO_OPTS)libgnat-x.xx
373 SO_OPTS = -Wl,-soname,
375 # Default gnatlib-shared target.
376 # By default, equivalent to gnatlib.
377 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
378 # target when supported.
379 GNATLIB_SHARED = gnatlib
381 # default value for gnatmake's target dependent file
384 # By default, build socket support units. On platforms that do not support
385 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
386 # to LIBGNAT_TARGET_PAIRS.
388 GNATRTL_SOCKETS_OBJS = g-soccon$(objext) g-socket$(objext) g-socthi$(objext) \
389 g-soliop$(objext) g-sothco$(objext)
391 DUMMY_SOCKETS_TARGET_PAIRS = \
392 g-socket.adb<g-socket-dummy.adb \
393 g-socket.ads<g-socket-dummy.ads \
394 g-socthi.adb<g-socthi-dummy.adb \
395 g-socthi.ads<g-socthi-dummy.ads \
396 g-sothco.adb<g-sothco-dummy.adb \
397 g-sothco.ads<g-sothco-dummy.ads
399 # On platform where atomic increment/decrement operations are supported
400 # special version of Ada.Strings.Unbounded package can be used.
402 ATOMICS_TARGET_PAIRS += \
403 a-stunau.adb<a-stunau-shared.adb \
404 a-suteio.adb<a-suteio-shared.adb \
405 a-strunb.ads<a-strunb-shared.ads \
406 a-strunb.adb<a-strunb-shared.adb \
407 a-stwiun.adb<a-stwiun-shared.adb \
408 a-stwiun.ads<a-stwiun-shared.ads \
409 a-swunau.adb<a-swunau-shared.adb \
410 a-swuwti.adb<a-swuwti-shared.adb \
411 a-stzunb.adb<a-stzunb-shared.adb \
412 a-stzunb.ads<a-stzunb-shared.ads \
413 a-szunau.adb<a-szunau-shared.adb \
414 a-szuzti.adb<a-szuzti-shared.adb
416 LIB_VERSION = $(strip $(shell grep ' Library_Version :' $(fsrcpfx)ada/gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
418 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
419 # $(strip STRING) removes leading and trailing spaces from STRING.
420 # If what's left is null then it's a match.
422 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
423 LIBGNAT_TARGET_PAIRS = \
424 a-intnam.ads<a-intnam-vxworks.ads \
425 a-numaux.ads<a-numaux-vxworks.ads \
426 s-inmaop.adb<s-inmaop-posix.adb \
427 s-interr.adb<s-interr-hwint.adb \
428 s-intman.ads<s-intman-vxworks.ads \
429 s-intman.adb<s-intman-vxworks.adb \
430 s-osinte.adb<s-osinte-vxworks.adb \
431 s-osinte.ads<s-osinte-vxworks.ads \
432 s-osprim.adb<s-osprim-vxworks.adb \
433 s-parame.ads<s-parame-vxworks.ads \
434 s-parame.adb<s-parame-vxworks.adb \
435 s-stchop.ads<s-stchop-limit.ads \
436 s-stchop.adb<s-stchop-vxworks.adb \
437 s-taprop.adb<s-taprop-vxworks.adb \
438 s-tasinf.ads<s-tasinf-vxworks.ads \
439 s-taspri.ads<s-taspri-vxworks.ads \
440 s-tpopsp.adb<s-tpopsp-vxworks.adb \
441 s-vxwork.ads<s-vxwork-m68k.ads \
442 g-socthi.ads<g-socthi-vxworks.ads \
443 g-socthi.adb<g-socthi-vxworks.adb \
444 g-stsifd.adb<g-stsifd-sockets.adb \
445 g-trasym.ads<g-trasym-unimplemented.ads \
446 g-trasym.adb<g-trasym-unimplemented.adb \
447 system.ads<system-vxworks-m68k.ads
449 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb
451 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
452 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
454 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
455 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
457 ifeq ($(strip $(filter-out yes,$(TRACE))),)
458 LIBGNAT_TARGET_PAIRS += \
459 s-traces.adb<s-traces-default.adb \
460 s-tratas.adb<s-tratas-default.adb \
461 s-trafor.adb<s-trafor-default.adb \
462 s-trafor.ads<s-trafor-default.ads \
463 s-tfsetr.adb<s-tfsetr-vxworks.adb
467 ifeq ($(strip $(filter-out powerpc% wrs vxworks,$(targ))),)
468 LIBGNAT_TARGET_PAIRS = \
469 a-intnam.ads<a-intnam-vxworks.ads \
470 a-numaux.ads<a-numaux-vxworks.ads \
471 s-inmaop.adb<s-inmaop-posix.adb \
472 s-intman.ads<s-intman-vxworks.ads \
473 s-intman.adb<s-intman-vxworks.adb \
474 s-osinte.ads<s-osinte-vxworks.ads \
475 s-osinte.adb<s-osinte-vxworks.adb \
476 s-osprim.adb<s-osprim-vxworks.adb \
477 s-parame.ads<s-parame-vxworks.ads \
478 s-parame.adb<s-parame-vxworks.adb \
479 s-stchop.ads<s-stchop-limit.ads \
480 s-stchop.adb<s-stchop-vxworks.adb \
481 s-taprop.adb<s-taprop-vxworks.adb \
482 s-tasinf.ads<s-tasinf-vxworks.ads \
483 s-taspri.ads<s-taspri-vxworks.ads \
484 s-vxwork.ads<s-vxwork-ppc.ads \
485 g-socthi.ads<g-socthi-vxworks.ads \
486 g-socthi.adb<g-socthi-vxworks.adb \
487 g-stsifd.adb<g-stsifd-sockets.adb \
488 g-trasym.ads<g-trasym-unimplemented.ads \
489 g-trasym.adb<g-trasym-unimplemented.adb \
490 $(ATOMICS_TARGET_PAIRS)
493 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
494 indepsw.adb<indepsw-gnu.adb
496 ifeq ($(strip $(filter-out yes,$(TRACE))),)
497 LIBGNAT_TARGET_PAIRS += \
498 s-traces.adb<s-traces-default.adb \
499 s-trafor.adb<s-trafor-default.adb \
500 s-trafor.ads<s-trafor-default.ads \
501 s-tratas.adb<s-tratas-default.adb \
502 s-tfsetr.adb<s-tfsetr-vxworks.adb
505 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
506 LIBGNAT_TARGET_PAIRS += \
507 s-vxwext.ads<s-vxwext-rtp.ads \
508 s-vxwext.adb<s-vxwext-rtp.adb \
509 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
510 system.ads<system-vxworks-ppc-rtp.ads
512 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
514 ifeq ($(strip $(filter-out rtp-smp,$(THREAD_KIND))),)
515 LIBGNAT_TARGET_PAIRS += \
516 s-vxwext.ads<s-vxwext-rtp.ads \
517 s-vxwext.adb<s-vxwext-rtp-smp.adb \
518 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
519 system.ads<system-vxworks-ppc-rtp.ads
521 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
522 EXTRA_GNATRTL_TASKING_OBJS=affinity.o
524 ifeq ($(strip $(filter-out kernel-smp,$(THREAD_KIND))),)
525 LIBGNAT_TARGET_PAIRS += \
526 s-interr.adb<s-interr-hwint.adb \
527 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
528 s-vxwext.ads<s-vxwext-kernel.ads \
529 s-vxwext.adb<s-vxwext-kernel-smp.adb \
530 system.ads<system-vxworks-ppc-kernel.ads
532 EXTRA_GNATRTL_TASKING_OBJS=affinity.o
534 LIBGNAT_TARGET_PAIRS += \
535 s-interr.adb<s-interr-hwint.adb \
536 s-tpopsp.adb<s-tpopsp-vxworks.adb
538 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
539 LIBGNAT_TARGET_PAIRS += \
540 s-vxwext.ads<s-vxwext-kernel.ads \
541 s-vxwext.adb<s-vxwext-kernel.adb \
542 system.ads<system-vxworks-ppc-kernel.ads
544 LIBGNAT_TARGET_PAIRS += \
545 system.ads<system-vxworks-ppc.ads
548 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
552 EXTRA_GNATRTL_TASKING_OBJS += s-vxwork.o s-vxwext.o
554 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
555 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
559 ifeq ($(strip $(filter-out powerpc% wrs vxworksae,$(targ))),)
560 # target pairs for vthreads runtime
561 LIBGNAT_TARGET_PAIRS = \
562 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
563 a-intnam.ads<a-intnam-vxworks.ads \
564 a-numaux.ads<a-numaux-vxworks.ads \
565 g-io.adb<g-io-vxworks-ppc-cert.adb \
566 g-io.ads<g-io-vxworks-ppc-cert.ads \
567 s-inmaop.adb<s-inmaop-posix.adb \
568 s-interr.adb<s-interr-hwint.adb \
569 s-intman.ads<s-intman-vxworks.ads \
570 s-intman.adb<s-intman-vxworks.adb \
571 s-osinte.adb<s-osinte-vxworks.adb \
572 s-osinte.ads<s-osinte-vxworks.ads \
573 s-osprim.adb<s-osprim-vxworks.adb \
574 s-parame.ads<s-parame-ae653.ads \
575 s-parame.adb<s-parame-vxworks.adb \
576 s-taprop.adb<s-taprop-vxworks.adb \
577 s-tasinf.ads<s-tasinf-vxworks.ads \
578 s-taspri.ads<s-taspri-vxworks.ads \
579 s-tpopsp.adb<s-tpopsp-vxworks.adb \
580 s-vxwext.adb<s-vxwext-noints.adb \
581 s-vxwext.ads<s-vxwext-vthreads.ads \
582 s-vxwork.ads<s-vxwork-ppc.ads \
583 g-trasym.ads<g-trasym-unimplemented.ads \
584 g-trasym.adb<g-trasym-unimplemented.adb \
585 system.ads<system-vxworks-ppc-vthread.ads \
586 $(ATOMICS_TARGET_PAIRS)
589 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
590 indepsw.adb<indepsw-gnu.adb
592 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
593 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
595 # Extra pairs for the vthreads runtime
596 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
597 LIBGNAT_TARGET_PAIRS += \
598 s-thread.adb<s-thread-ae653.adb \
599 $(DUMMY_SOCKETS_TARGET_PAIRS)
601 GNATRTL_SOCKETS_OBJS =
602 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o
604 LIBGNAT_TARGET_PAIRS += \
605 g-socthi.ads<g-socthi-vxworks.ads \
606 g-socthi.adb<g-socthi-vxworks.adb \
607 g-stsifd.adb<g-stsifd-sockets.adb
610 ifeq ($(strip $(filter-out yes,$(TRACE))),)
611 LIBGNAT_TARGET_PAIRS += \
612 s-traces.adb<s-traces-default.adb \
613 s-trafor.adb<s-trafor-default.adb \
614 s-trafor.ads<s-trafor-default.ads \
615 s-tratas.adb<s-tratas-default.adb \
616 s-tfsetr.adb<s-tfsetr-vxworks.adb
621 ifeq ($(strip $(filter-out powerpc% wrs vxworksmils,$(targ))),)
622 # target pairs for vthreads runtime
623 LIBGNAT_TARGET_PAIRS = \
624 a-intnam.ads<a-intnam-vxworks.ads \
625 a-numaux.ads<a-numaux-vxworks.ads \
626 g-io.adb<g-io-vxworks-ppc-cert.adb \
627 g-io.ads<g-io-vxworks-ppc-cert.ads \
628 s-inmaop.adb<s-inmaop-posix.adb \
629 s-interr.adb<s-interr-hwint.adb \
630 s-intman.ads<s-intman-vxworks.ads \
631 s-intman.adb<s-intman-vxworks.adb \
632 s-osinte.adb<s-osinte-vxworks.adb \
633 s-osinte.ads<s-osinte-vxworks.ads \
634 s-osprim.adb<s-osprim-vxworks.adb \
635 s-parame.ads<s-parame-ae653.ads \
636 s-parame.adb<s-parame-vxworks.adb \
637 s-stchop.adb<s-stchop-vxworks.adb \
638 s-stchop.ads<s-stchop-limit.ads \
639 s-taprop.adb<s-taprop-vxworks.adb \
640 s-tasinf.ads<s-tasinf-vxworks.ads \
641 s-taspri.ads<s-taspri-vxworks.ads \
642 s-thread.adb<s-thread-ae653.adb \
643 s-tpopsp.adb<s-tpopsp-vxworks.adb \
644 s-vxwork.ads<s-vxwork-ppc.ads \
645 g-trasym.ads<g-trasym-unimplemented.ads \
646 g-trasym.adb<g-trasym-unimplemented.adb \
647 system.ads<system-vxworks-ppc.ads \
648 $(ATOMICS_TARGET_PAIRS) \
649 $(DUMMY_SOCKETS_TARGET_PAIRS)
652 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
653 indepsw.adb<indepsw-gnu.adb
655 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-thread.o s-vxwexc.o
656 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
658 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
659 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
660 GNATRTL_SOCKETS_OBJS =
662 ifeq ($(strip $(filter-out yes,$(TRACE))),)
663 LIBGNAT_TARGET_PAIRS += \
664 s-traces.adb<s-traces-default.adb \
665 s-trafor.adb<s-trafor-default.adb \
666 s-trafor.ads<s-trafor-default.ads \
667 s-tratas.adb<s-tratas-default.adb \
668 s-tfsetr.adb<s-tfsetr-vxworks.adb
672 # vxworksae / vxworks 653 for x86 (vxsim) - ?? vxworksmils not implemented
673 ifeq ($(strip $(filter-out %86 wrs vxworksae vxworksmils,$(targ))),)
674 # target pairs for kernel + vthreads runtime
675 LIBGNAT_TARGET_PAIRS = \
676 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
677 a-intnam.ads<a-intnam-vxworks.ads \
678 a-numaux.ads<a-numaux-x86.ads \
679 a-numaux.adb<a-numaux-x86.adb \
680 a-sytaco.ads<1asytaco.ads \
681 a-sytaco.adb<1asytaco.adb \
682 g-bytswa.adb<g-bytswa-x86.adb \
683 g-io.adb<g-io-vxworks-ppc-cert.adb \
684 g-io.ads<g-io-vxworks-ppc-cert.ads \
685 s-inmaop.adb<s-inmaop-posix.adb \
686 s-interr.adb<s-interr-hwint.adb \
687 s-intman.ads<s-intman-vxworks.ads \
688 s-intman.adb<s-intman-vxworks.adb \
689 s-osinte.adb<s-osinte-vxworks.adb \
690 s-osinte.ads<s-osinte-vxworks.ads \
691 s-osprim.adb<s-osprim-vxworks.adb \
692 s-parame.ads<s-parame-ae653.ads \
693 s-taprop.adb<s-taprop-vxworks.adb \
694 s-tasinf.ads<s-tasinf-vxworks.ads \
695 s-taspri.ads<s-taspri-vxworks.ads \
696 s-tpopsp.adb<s-tpopsp-vxworks.adb \
697 s-vxwext.adb<s-vxwext-noints.adb \
698 s-vxwext.ads<s-vxwext-vthreads.ads \
699 s-vxwork.ads<s-vxwork-x86.ads \
700 g-trasym.ads<g-trasym-unimplemented.ads \
701 g-trasym.adb<g-trasym-unimplemented.adb \
702 system.ads<system-vxworks-x86.ads
705 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
706 indepsw.adb<indepsw-gnu.adb
708 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
709 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
711 # Extra pairs for the vthreads runtime
712 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
713 LIBGNAT_TARGET_PAIRS += \
714 s-thread.adb<s-thread-ae653.adb \
715 $(DUMMY_SOCKETS_TARGET_PAIRS)
717 GNATRTL_SOCKETS_OBJS =
718 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o
720 LIBGNAT_TARGET_PAIRS += \
721 g-socthi.ads<g-socthi-vxworks.ads \
722 g-socthi.adb<g-socthi-vxworks.adb \
723 g-stsifd.adb<g-stsifd-sockets.adb
726 ifeq ($(strip $(filter-out yes,$(TRACE))),)
727 LIBGNAT_TARGET_PAIRS += \
728 s-traces.adb<s-traces-default.adb \
729 s-trafor.adb<s-trafor-default.adb \
730 s-trafor.ads<s-trafor-default.ads \
731 s-tratas.adb<s-tratas-default.adb \
732 s-tfsetr.adb<s-tfsetr-vxworks.adb
736 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
737 LIBGNAT_TARGET_PAIRS = \
738 a-intnam.ads<a-intnam-vxworks.ads \
739 a-numaux.ads<a-numaux-vxworks.ads \
740 s-inmaop.adb<s-inmaop-posix.adb \
741 s-interr.adb<s-interr-hwint.adb \
742 s-intman.ads<s-intman-vxworks.ads \
743 s-intman.adb<s-intman-vxworks.adb \
744 s-osinte.adb<s-osinte-vxworks.adb \
745 s-osinte.ads<s-osinte-vxworks.ads \
746 s-osprim.adb<s-osprim-vxworks.adb \
747 s-parame.ads<s-parame-vxworks.ads \
748 s-parame.adb<s-parame-vxworks.adb \
749 s-stchop.ads<s-stchop-limit.ads \
750 s-stchop.adb<s-stchop-vxworks.adb \
751 s-taprop.adb<s-taprop-vxworks.adb \
752 s-tasinf.ads<s-tasinf-vxworks.ads \
753 s-taspri.ads<s-taspri-vxworks.ads \
754 s-tpopsp.adb<s-tpopsp-vxworks.adb \
755 s-vxwork.ads<s-vxwork-sparcv9.ads \
756 g-socthi.ads<g-socthi-vxworks.ads \
757 g-socthi.adb<g-socthi-vxworks.adb \
758 g-stsifd.adb<g-stsifd-sockets.adb \
759 g-trasym.ads<g-trasym-unimplemented.ads \
760 g-trasym.adb<g-trasym-unimplemented.adb \
761 system.ads<system-vxworks-sparcv9.ads \
764 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
765 indepsw.adb<indepsw-gnu.adb
767 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
768 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
770 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
771 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
774 ifeq ($(strip $(filter-out %86 wrs vxworks,$(targ))),)
775 LIBGNAT_TARGET_PAIRS = \
776 a-intnam.ads<a-intnam-vxworks.ads \
777 i-vxwork.ads<i-vxwork-x86.ads \
778 s-osinte.adb<s-osinte-vxworks.adb \
779 s-osinte.ads<s-osinte-vxworks.ads \
780 s-inmaop.adb<s-inmaop-posix.adb \
781 s-intman.ads<s-intman-vxworks.ads \
782 s-intman.adb<s-intman-vxworks.adb \
783 a-numaux.adb<a-numaux-x86.adb \
784 a-numaux.ads<a-numaux-x86.ads \
785 s-osprim.adb<s-osprim-vxworks.adb \
786 s-parame.ads<s-parame-vxworks.ads \
787 s-parame.adb<s-parame-vxworks.adb \
788 s-stchop.ads<s-stchop-limit.ads \
789 s-stchop.adb<s-stchop-vxworks.adb \
790 s-taprop.adb<s-taprop-vxworks.adb \
791 s-tasinf.ads<s-tasinf-vxworks.ads \
792 s-taspri.ads<s-taspri-vxworks.ads \
793 s-vxwork.ads<s-vxwork-x86.ads \
794 g-bytswa.adb<g-bytswa-x86.adb \
795 g-socthi.ads<g-socthi-vxworks.ads \
796 g-socthi.adb<g-socthi-vxworks.adb \
797 g-stsifd.adb<g-stsifd-sockets.adb \
798 g-trasym.ads<g-trasym-unimplemented.ads \
799 g-trasym.adb<g-trasym-unimplemented.adb
802 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
803 indepsw.adb<indepsw-gnu.adb
805 ifeq ($(strip $(filter-out yes,$(TRACE))),)
806 LIBGNAT_TARGET_PAIRS += \
807 s-traces.adb<s-traces-default.adb \
808 s-trafor.adb<s-trafor-default.adb \
809 s-trafor.ads<s-trafor-default.ads \
810 s-tratas.adb<s-tratas-default.adb \
811 s-tfsetr.adb<s-tfsetr-vxworks.adb
814 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
815 LIBGNAT_TARGET_PAIRS += \
816 s-vxwext.ads<s-vxwext-rtp.ads \
817 s-vxwext.adb<s-vxwext-rtp.adb \
818 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
819 system.ads<system-vxworks-x86-rtp.ads
821 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
823 ifeq ($(strip $(filter-out rtp-smp, $(THREAD_KIND))),)
824 LIBGNAT_TARGET_PAIRS += \
825 s-vxwext.ads<s-vxwext-rtp.ads \
826 s-vxwext.adb<s-vxwext-rtp-smp.adb \
827 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
828 system.ads<system-vxworks-x86-rtp.ads
830 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
831 EXTRA_GNATRTL_TASKING_OBJS=affinity.o
833 ifeq ($(strip $(filter-out kernel-smp, $(THREAD_KIND))),)
834 LIBGNAT_TARGET_PAIRS += \
835 s-interr.adb<s-interr-hwint.adb \
836 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
837 s-vxwext.ads<s-vxwext-kernel.ads \
838 s-vxwext.adb<s-vxwext-kernel-smp.adb \
839 system.ads<system-vxworks-x86-kernel.ads
840 EXTRA_GNATRTL_TASKING_OBJS=affinity.o
842 LIBGNAT_TARGET_PAIRS += \
843 s-interr.adb<s-interr-hwint.adb \
844 s-tpopsp.adb<s-tpopsp-vxworks.adb
846 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
847 LIBGNAT_TARGET_PAIRS += \
848 s-vxwext.ads<s-vxwext-kernel.ads \
849 s-vxwext.adb<s-vxwext-kernel.adb \
850 system.ads<system-vxworks-x86-kernel.ads
852 LIBGNAT_TARGET_PAIRS += \
853 system.ads<system-vxworks-x86.ads
857 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
860 EXTRA_GNATRTL_TASKING_OBJS += s-vxwork.o s-vxwext.o
862 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
863 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
866 ifeq ($(strip $(filter-out arm% coff wrs vx%,$(targ))),)
867 LIBGNAT_TARGET_PAIRS = \
868 a-intnam.ads<a-intnam-vxworks.ads \
869 a-numaux.ads<a-numaux-vxworks.ads \
870 s-inmaop.adb<s-inmaop-posix.adb \
871 s-interr.adb<s-interr-hwint.adb \
872 s-intman.ads<s-intman-vxworks.ads \
873 s-intman.adb<s-intman-vxworks.adb \
874 s-osinte.adb<s-osinte-vxworks.adb \
875 s-osinte.ads<s-osinte-vxworks.ads \
876 s-osprim.adb<s-osprim-vxworks.adb \
877 s-parame.ads<s-parame-vxworks.ads \
878 s-parame.adb<s-parame-vxworks.adb \
879 s-stchop.ads<s-stchop-limit.ads \
880 s-stchop.adb<s-stchop-vxworks.adb \
881 s-taprop.adb<s-taprop-vxworks.adb \
882 s-tasinf.ads<s-tasinf-vxworks.ads \
883 s-taspri.ads<s-taspri-vxworks.ads \
884 s-tpopsp.adb<s-tpopsp-vxworks.adb \
885 s-vxwork.ads<s-vxwork-arm.ads \
886 g-socthi.ads<g-socthi-vxworks.ads \
887 g-socthi.adb<g-socthi-vxworks.adb \
888 g-stsifd.adb<g-stsifd-sockets.adb \
889 g-trasym.ads<g-trasym-unimplemented.ads \
890 g-trasym.adb<g-trasym-unimplemented.adb \
891 system.ads<system-vxworks-arm.ads
894 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
895 indepsw.adb<indepsw-gnu.adb
897 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
898 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
900 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
901 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
904 ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)
905 LIBGNAT_TARGET_PAIRS = \
906 a-intnam.ads<a-intnam-vxworks.ads \
907 a-numaux.ads<a-numaux-vxworks.ads \
908 s-inmaop.adb<s-inmaop-posix.adb \
909 s-interr.adb<s-interr-hwint.adb \
910 s-intman.ads<s-intman-vxworks.ads \
911 s-intman.adb<s-intman-vxworks.adb \
912 s-osinte.adb<s-osinte-vxworks.adb \
913 s-osinte.ads<s-osinte-vxworks.ads \
914 s-osprim.adb<s-osprim-vxworks.adb \
915 s-parame.ads<s-parame-vxworks.ads \
916 s-parame.adb<s-parame-vxworks.adb \
917 s-stchop.ads<s-stchop-limit.ads \
918 s-stchop.adb<s-stchop-vxworks.adb \
919 s-taprop.adb<s-taprop-vxworks.adb \
920 s-tasinf.ads<s-tasinf-vxworks.ads \
921 s-taspri.ads<s-taspri-vxworks.ads \
922 s-tpopsp.adb<s-tpopsp-vxworks.adb \
923 s-vxwork.ads<s-vxwork-mips.ads \
924 g-socthi.ads<g-socthi-vxworks.ads \
925 g-socthi.adb<g-socthi-vxworks.adb \
926 g-stsifd.adb<g-stsifd-sockets.adb \
927 g-trasym.ads<g-trasym-unimplemented.ads \
928 g-trasym.adb<g-trasym-unimplemented.adb \
929 system.ads<system-vxworks-mips.ads
932 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
933 indepsw.adb<indepsw-gnu.adb
935 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
936 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
938 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
939 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
942 ifeq ($(strip $(filter-out sparc% sun solaris%,$(targ))),)
943 LIBGNAT_TARGET_PAIRS_COMMON = \
944 a-intnam.ads<a-intnam-solaris.ads \
945 s-inmaop.adb<s-inmaop-posix.adb \
946 s-intman.adb<s-intman-solaris.adb \
947 s-osinte.adb<s-osinte-solaris.adb \
948 s-osinte.ads<s-osinte-solaris.ads \
949 s-osprim.adb<s-osprim-solaris.adb \
950 s-taprop.adb<s-taprop-solaris.adb \
951 s-tasinf.adb<s-tasinf-solaris.adb \
952 s-tasinf.ads<s-tasinf-solaris.ads \
953 s-taspri.ads<s-taspri-solaris.ads \
954 s-tpopsp.adb<s-tpopsp-solaris.adb \
955 g-soliop.ads<g-soliop-solaris.ads
957 LIBGNAT_TARGET_PAIRS_32 = \
958 system.ads<system-solaris-sparc.ads
960 LIBGNAT_TARGET_PAIRS_64 = \
961 system.ads<system-solaris-sparcv9.ads \
962 $(ATOMICS_TARGET_PAIRS)
964 ifeq ($(strip $(filter-out sparc sun solaris%,$(targ))),)
965 ifeq ($(strip $(MULTISUBDIR)),/sparcv9)
966 LIBGNAT_TARGET_PAIRS = \
967 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
969 LIBGNAT_TARGET_PAIRS = \
970 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
973 ifeq ($(strip $(MULTISUBDIR)),/sparcv8plus)
974 LIBGNAT_TARGET_PAIRS = \
975 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
977 LIBGNAT_TARGET_PAIRS = \
978 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
982 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
985 THREADSLIB = -lposix4 -lthread
986 MISCLIB = -lposix4 -lnsl -lsocket
988 GNATLIB_SHARED = gnatlib-shared-dual
990 LIBRARY_VERSION := $(LIB_VERSION)
992 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
993 LIBGNAT_TARGET_PAIRS = \
994 a-intnam.ads<a-intnam-solaris.ads \
995 s-inmaop.adb<s-inmaop-posix.adb \
996 s-intman.adb<s-intman-posix.adb \
997 s-osinte.adb<s-osinte-posix.adb \
998 s-osinte.ads<s-osinte-solaris-posix.ads \
999 s-osprim.adb<s-osprim-solaris.adb \
1000 s-taprop.adb<s-taprop-posix.adb \
1001 s-taspri.ads<s-taspri-posix.ads \
1002 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1003 g-soliop.ads<g-soliop-solaris.ads \
1004 system.ads<system-solaris-sparc.ads
1006 THREADSLIB = -lposix4 -lpthread
1009 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
1010 LIBGNAT_TARGET_PAIRS = $(LIBGNAT_TARGET_PAIRS_64)
1014 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
1015 LIBGNAT_TARGET_PAIRS = \
1016 a-numaux.adb<a-numaux-x86.adb \
1017 a-numaux.ads<a-numaux-x86.ads \
1018 a-intnam.ads<a-intnam-solaris.ads \
1019 s-inmaop.adb<s-inmaop-posix.adb \
1020 s-intman.adb<s-intman-solaris.adb \
1021 s-osinte.adb<s-osinte-solaris.adb \
1022 s-osinte.ads<s-osinte-solaris.ads \
1023 s-osprim.adb<s-osprim-solaris.adb \
1024 s-taprop.adb<s-taprop-solaris.adb \
1025 s-tasinf.adb<s-tasinf-solaris.adb \
1026 s-tasinf.ads<s-tasinf-solaris.ads \
1027 s-taspri.ads<s-taspri-solaris.ads \
1028 s-tpopsp.adb<s-tpopsp-solaris.adb \
1029 g-soliop.ads<g-soliop-solaris.ads
1031 ifeq ($(strip $(MULTISUBDIR)),/amd64)
1032 LIBGNAT_TARGET_PAIRS += \
1033 system.ads<system-solaris-x86_64.ads
1035 LIBGNAT_TARGET_PAIRS += \
1036 g-bytswa.adb<g-bytswa-x86.adb \
1037 system.ads<system-solaris-x86.ads
1040 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
1043 THREADSLIB = -lposix4 -lthread
1044 MISCLIB = -lposix4 -lnsl -lsocket
1046 GNATLIB_SHARED = gnatlib-shared-dual
1048 LIBRARY_VERSION := $(LIB_VERSION)
1051 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
1052 LIBGNAT_TARGET_PAIRS = \
1053 a-intnam.ads<a-intnam-linux.ads \
1054 a-numaux.adb<a-numaux-x86.adb \
1055 a-numaux.ads<a-numaux-x86.ads \
1056 g-bytswa.adb<g-bytswa-x86.adb \
1057 s-inmaop.adb<s-inmaop-posix.adb \
1058 s-intman.adb<s-intman-posix.adb \
1059 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1060 g-sercom.adb<g-sercom-linux.adb
1062 ifeq ($(strip $(filter-out marte,$(THREAD_KIND))),)
1063 LIBGNAT_TARGET_PAIRS += \
1064 a-exetim.adb<a-exetim-linux-marte.adb \
1065 a-exetim.ads<a-exetim-linux-marte.ads \
1066 a-extiti.adb<a-extiti-linux-marte.adb \
1067 a-extiti.ads<a-extiti-linux-marte.ads \
1068 a-rttiev.adb<a-rttiev-linux-marte.adb \
1069 a-rttiev.ads<a-rttiev-linux-marte.ads \
1070 s-osinte.adb<s-osinte-linux-marte.adb \
1071 s-osinte.ads<s-osinte-linux-marte.ads \
1072 s-osprim.adb<s-osprim-posix.adb \
1073 s-taprop.adb<s-taprop-linux-marte.adb \
1074 s-taspri.ads<s-taspri-posix.ads \
1075 system.ads<system-linux-x86.ads
1077 EXTRA_GNATRTL_TASKING_OBJS=a-exetim.o a-extiti.o
1080 THREADSLIB = -lmarte
1082 LIBGNAT_TARGET_PAIRS += \
1083 a-exetim.adb<a-exetim-posix.adb \
1084 a-exetim.ads<a-exetim-default.ads \
1085 s-linux.ads<s-linux.ads \
1086 s-osinte.adb<s-osinte-posix.adb
1088 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
1089 LIBGNAT_TARGET_PAIRS += \
1090 s-osinte.ads<s-osinte-linux-xenomai.ads \
1091 s-osprim.adb<s-osprim-linux-xenomai.adb \
1092 s-taprop.adb<s-taprop-linux-xenomai.adb \
1093 s-taspri.ads<s-taspri-linux-xenomai.ads \
1094 system.ads<system-linux-x86-xenomai.ads
1098 LIBGNAT_TARGET_PAIRS += \
1099 s-osinte.ads<s-osinte-linux.ads \
1100 s-osprim.adb<s-osprim-posix.adb \
1101 s-taprop.adb<s-taprop-linux.adb \
1102 s-tasinf.ads<s-tasinf-linux.ads \
1103 s-tasinf.adb<s-tasinf-linux.adb \
1104 s-taspri.ads<s-taspri-posix.ads \
1105 system.ads<system-linux-x86.ads
1110 THREADSLIB = -lpthread -lrt
1111 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
1112 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
1115 TOOLS_TARGET_PAIRS = \
1116 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1117 indepsw.adb<indepsw-gnu.adb
1119 GNATLIB_SHARED = gnatlib-shared-dual
1121 LIBRARY_VERSION := $(LIB_VERSION)
1124 ifeq ($(strip $(filter-out %86 kfreebsd%,$(arch) $(osys))),)
1125 LIBGNAT_TARGET_PAIRS = \
1126 a-intnam.ads<a-intnam-freebsd.ads \
1127 a-numaux.adb<a-numaux-x86.adb \
1128 a-numaux.ads<a-numaux-x86.ads \
1129 s-inmaop.adb<s-inmaop-posix.adb \
1130 s-intman.adb<s-intman-posix.adb \
1131 s-osinte.adb<s-osinte-posix.adb \
1132 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
1133 s-osprim.adb<s-osprim-posix.adb \
1134 s-taprop.adb<s-taprop-linux.adb \
1135 s-tasinf.ads<s-tasinf-linux.ads \
1136 s-tasinf.adb<s-tasinf-linux.adb \
1137 s-taspri.ads<s-taspri-posix.ads \
1138 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1139 system.ads<system-freebsd-x86.ads
1141 TOOLS_TARGET_PAIRS = \
1142 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1143 indepsw.adb<indepsw-gnu.adb
1146 THREADSLIB = -lpthread
1147 GNATLIB_SHARED = gnatlib-shared-dual
1149 LIBRARY_VERSION := $(LIB_VERSION)
1152 ifeq ($(strip $(filter-out x86_64 kfreebsd%,$(arch) $(osys))),)
1153 LIBGNAT_TARGET_PAIRS = \
1154 a-intnam.ads<a-intnam-freebsd.ads \
1155 a-numaux.adb<a-numaux-x86.adb \
1156 a-numaux.ads<a-numaux-x86.ads \
1157 s-inmaop.adb<s-inmaop-posix.adb \
1158 s-intman.adb<s-intman-posix.adb \
1159 s-osinte.adb<s-osinte-posix.adb \
1160 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
1161 s-osprim.adb<s-osprim-posix.adb \
1162 s-taprop.adb<s-taprop-linux.adb \
1163 s-tasinf.ads<s-tasinf-linux.ads \
1164 s-tasinf.adb<s-tasinf-linux.adb \
1165 s-taspri.ads<s-taspri-posix.ads \
1166 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1167 system.ads<system-freebsd-x86_64.ads
1169 TOOLS_TARGET_PAIRS = \
1170 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1171 indepsw.adb<indepsw-gnu.adb
1174 THREADSLIB = -lpthread
1175 GNATLIB_SHARED = gnatlib-shared-dual
1177 LIBRARY_VERSION := $(LIB_VERSION)
1180 ifeq ($(strip $(filter-out %86 freebsd%,$(arch) $(osys))),)
1181 LIBGNAT_TARGET_PAIRS = \
1182 a-intnam.ads<a-intnam-freebsd.ads \
1183 a-numaux.adb<a-numaux-x86.adb \
1184 a-numaux.ads<a-numaux-x86.ads \
1185 g-bytswa.adb<g-bytswa-x86.adb \
1186 s-inmaop.adb<s-inmaop-posix.adb \
1187 s-intman.adb<s-intman-posix.adb \
1188 s-osinte.adb<s-osinte-freebsd.adb \
1189 s-osinte.ads<s-osinte-freebsd.ads \
1190 s-osprim.adb<s-osprim-posix.adb \
1191 s-taprop.adb<s-taprop-posix.adb \
1192 s-taspri.ads<s-taspri-posix.ads \
1193 s-tpopsp.adb<s-tpopsp-posix.adb \
1194 system.ads<system-freebsd-x86.ads
1196 TOOLS_TARGET_PAIRS = \
1197 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
1198 GNATLIB_SHARED = gnatlib-shared-dual
1201 THREADSLIB= -lpthread
1203 LIBRARY_VERSION := $(LIB_VERSION)
1206 ifeq ($(strip $(filter-out s390% linux%,$(arch) $(osys))),)
1207 LIBGNAT_TARGET_PAIRS_COMMON = \
1208 a-intnam.ads<a-intnam-linux.ads \
1209 s-inmaop.adb<s-inmaop-posix.adb \
1210 s-intman.adb<s-intman-posix.adb \
1211 s-linux.ads<s-linux.ads \
1212 s-osinte.adb<s-osinte-posix.adb \
1213 s-osinte.ads<s-osinte-linux.ads \
1214 s-osprim.adb<s-osprim-posix.adb \
1215 s-taprop.adb<s-taprop-linux.adb \
1216 s-tasinf.ads<s-tasinf-linux.ads \
1217 s-tasinf.adb<s-tasinf-linux.adb \
1218 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1219 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1220 g-trasym.ads<g-trasym-unimplemented.ads \
1221 g-trasym.adb<g-trasym-unimplemented.adb
1223 LIBGNAT_TARGET_PAIRS_32 = \
1224 system.ads<system-linux-s390.ads
1226 LIBGNAT_TARGET_PAIRS_64 = \
1227 system.ads<system-linux-s390x.ads
1229 ifeq ($(strip $(filter-out s390x,$(arch))),)
1230 ifeq ($(strip $(MULTISUBDIR)),/32)
1231 LIBGNAT_TARGET_PAIRS = \
1232 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1234 LIBGNAT_TARGET_PAIRS = \
1235 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1238 LIBGNAT_TARGET_PAIRS = \
1239 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1242 TOOLS_TARGET_PAIRS = \
1243 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1244 indepsw.adb<indepsw-gnu.adb
1246 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1248 THREADSLIB = -lpthread
1249 GNATLIB_SHARED = gnatlib-shared-dual
1250 LIBRARY_VERSION := $(LIB_VERSION)
1253 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
1254 LIBGNAT_TARGET_PAIRS = \
1255 a-intnam.ads<a-intnam-irix.ads \
1256 s-inmaop.adb<s-inmaop-posix.adb \
1257 s-intman.adb<s-intman-irix.adb \
1258 s-mastop.adb<s-mastop-irix.adb \
1259 s-osinte.adb<s-osinte-irix.adb \
1260 s-osinte.ads<s-osinte-irix.ads \
1261 s-osprim.adb<s-osprim-posix.adb \
1262 s-proinf.adb<s-proinf-irix-athread.adb \
1263 s-proinf.ads<s-proinf-irix-athread.ads \
1264 s-taprop.adb<s-taprop-irix.adb \
1265 s-tasinf.ads<s-tasinf-irix.ads \
1266 s-taspri.ads<s-taspri-posix.ads \
1267 s-tpopsp.adb<s-tpopsp-posix.adb \
1268 s-traceb.adb<s-traceb-mastop.adb
1270 ifeq ($(strip $(MULTISUBDIR)),/64)
1271 LIBGNAT_TARGET_PAIRS += \
1272 system.ads<system-irix-n64.ads
1274 ifeq ($(strip $(MULTISUBDIR)),/32)
1275 LIBGNAT_TARGET_PAIRS += \
1276 system.ads<system-irix-o32.ads
1278 LIBGNAT_TARGET_PAIRS += \
1279 system.ads<system-irix-n32.ads
1283 THREADSLIB = -lpthread
1284 GNATLIB_SHARED = gnatlib-shared-default
1287 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-specific-irix.adb
1290 LIBRARY_VERSION := $(LIB_VERSION)
1294 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
1295 LIBGNAT_TARGET_PAIRS = \
1296 a-excpol.adb<a-excpol-abort.adb \
1297 a-intnam.ads<a-intnam-hpux.ads \
1298 s-inmaop.adb<s-inmaop-posix.adb \
1299 s-interr.adb<s-interr-sigaction.adb \
1300 s-intman.adb<s-intman-posix.adb \
1301 s-osinte.adb<s-osinte-hpux-dce.adb \
1302 s-osinte.ads<s-osinte-hpux-dce.ads \
1303 s-parame.ads<s-parame-hpux.ads \
1304 s-osprim.adb<s-osprim-posix.adb \
1305 s-taprop.adb<s-taprop-hpux-dce.adb \
1306 s-taspri.ads<s-taspri-hpux-dce.ads \
1307 s-tpopsp.adb<s-tpopsp-posix.adb \
1308 system.ads<system-hpux.ads
1313 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
1314 LIBGNAT_TARGET_PAIRS = \
1315 a-intnam.ads<a-intnam-hpux.ads \
1316 s-inmaop.adb<s-inmaop-posix.adb \
1317 s-intman.adb<s-intman-posix.adb \
1318 s-osinte.adb<s-osinte-posix.adb \
1319 s-osinte.ads<s-osinte-hpux.ads \
1320 s-parame.ads<s-parame-hpux.ads \
1321 s-osprim.adb<s-osprim-posix.adb \
1322 s-traceb.adb<s-traceb-hpux.adb \
1323 s-taprop.adb<s-taprop-posix.adb \
1324 s-taspri.ads<s-taspri-posix.ads \
1325 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1326 system.ads<system-hpux.ads
1328 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb
1330 TGT_LIB = /usr/lib/libcl.a
1331 THREADSLIB = -lpthread
1335 GNATLIB_SHARED = gnatlib-shared-dual
1336 LIBRARY_VERSION := $(LIB_VERSION)
1339 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
1340 LIBGNAT_TARGET_PAIRS_COMMON = \
1341 a-intnam.ads<a-intnam-aix.ads \
1342 s-inmaop.adb<s-inmaop-posix.adb \
1343 s-intman.adb<s-intman-posix.adb \
1344 s-osinte.adb<s-osinte-aix.adb \
1345 s-osinte.ads<s-osinte-aix.ads \
1346 s-osprim.adb<s-osprim-posix.adb \
1347 s-taprop.adb<s-taprop-posix.adb \
1348 s-taspri.ads<s-taspri-posix.ads \
1349 s-tpopsp.adb<s-tpopsp-posix.adb \
1350 $(ATOMICS_TARGET_PAIRS)
1352 LIBGNAT_TARGET_PAIRS_32 = \
1353 system.ads<system-aix.ads
1355 LIBGNAT_TARGET_PAIRS_64 = \
1356 system.ads<system-aix64.ads
1358 ifeq ($(findstring ppc64, \
1359 $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) \
1360 -print-multi-os-directory)), \
1362 LIBGNAT_TARGET_PAIRS = \
1363 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1365 LIBGNAT_TARGET_PAIRS = \
1366 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1369 THREADSLIB = -lpthreads
1371 TOOLS_TARGET_PAIRS = \
1372 mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb \
1373 indepsw.adb<indepsw-aix.adb
1378 ifeq ($(strip $(filter-out lynxos,$(osys))),)
1379 TOOLS_TARGET_PAIRS = \
1380 mlib-tgt-specific.adb<mlib-tgt-specific-lynxos.adb \
1381 indepsw.adb<indepsw-gnu.adb
1383 ifeq ($(strip $(filter-out %86 lynxos,$(arch) $(osys))),)
1384 LIBGNAT_TARGET_PAIRS = \
1385 a-numaux.adb<a-numaux-x86.adb \
1386 a-numaux.ads<a-numaux-x86.ads \
1387 a-intnam.ads<a-intnam-lynxos.ads \
1388 g-bytswa.adb<g-bytswa-x86.adb \
1389 s-inmaop.adb<s-inmaop-posix.adb \
1390 s-intman.adb<s-intman-posix.adb \
1391 s-osinte.adb<s-osinte-lynxos.adb \
1392 s-osinte.ads<s-osinte-lynxos.ads \
1393 s-osprim.adb<s-osprim-posix.adb \
1394 s-taprop.adb<s-taprop-lynxos.adb \
1395 s-taspri.ads<s-taspri-lynxos.ads \
1396 s-tpopsp.adb<s-tpopsp-lynxos.adb \
1397 g-trasym.ads<g-trasym-unimplemented.ads \
1398 g-trasym.adb<g-trasym-unimplemented.adb \
1399 system.ads<system-lynxos-x86.ads
1403 LIBGNAT_TARGET_PAIRS = \
1404 a-intnam.ads<a-intnam-lynxos.ads \
1405 s-inmaop.adb<s-inmaop-posix.adb \
1406 s-intman.adb<s-intman-posix.adb \
1407 s-osinte.adb<s-osinte-lynxos.adb \
1408 s-osinte.ads<s-osinte-lynxos.ads \
1409 s-osprim.adb<s-osprim-posix.adb \
1410 s-taprop.adb<s-taprop-lynxos.adb \
1411 s-taspri.ads<s-taspri-lynxos.ads \
1412 s-tpopsp.adb<s-tpopsp-lynxos.adb \
1413 g-trasym.ads<g-trasym-unimplemented.ads \
1414 g-trasym.adb<g-trasym-unimplemented.adb \
1415 system.ads<system-lynxos-ppc.ads
1419 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1420 LIBGNAT_TARGET_PAIRS = \
1421 system.ads<system-rtems.ads \
1422 a-intnam.ads<a-intnam-rtems.ads \
1423 s-inmaop.adb<s-inmaop-posix.adb \
1424 s-intman.adb<s-intman-posix.adb \
1425 s-osinte.adb<s-osinte-rtems.adb \
1426 s-osinte.ads<s-osinte-rtems.ads \
1427 s-osprim.adb<s-osprim-posix.adb \
1428 s-parame.adb<s-parame-rtems.adb \
1429 s-taprop.adb<s-taprop-posix.adb \
1430 s-taspri.ads<s-taspri-posix.ads \
1431 s-tpopsp.adb<s-tpopsp-rtems.adb \
1432 s-stchop.adb<s-stchop-rtems.adb \
1433 s-interr.adb<s-interr-hwint.adb \
1434 g-trasym.ads<g-trasym-unimplemented.ads \
1435 g-trasym.adb<g-trasym-unimplemented.adb
1438 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1439 LIBGNAT_TARGET_PAIRS = \
1440 a-intnam.ads<a-intnam-tru64.ads \
1441 s-inmaop.adb<s-inmaop-posix.adb \
1442 s-intman.adb<s-intman-posix.adb \
1443 s-mastop.adb<s-mastop-tru64.adb \
1444 s-osinte.adb<s-osinte-tru64.adb \
1445 s-osinte.ads<s-osinte-tru64.ads \
1446 s-osprim.adb<s-osprim-unix.adb \
1447 s-taprop.adb<s-taprop-tru64.adb \
1448 s-tasinf.ads<s-tasinf-tru64.ads \
1449 s-taspri.ads<s-taspri-tru64.ads \
1450 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1451 s-traceb.adb<s-traceb-mastop.adb \
1452 system.ads<system-tru64.ads \
1453 $(ATOMICS_TARGET_PAIRS)
1455 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-tru64.adb
1460 THREADSLIB = -lpthread -lmach -lexc -lrt
1461 GNATLIB_SHARED = gnatlib-shared-default
1462 LIBRARY_VERSION := $(LIB_VERSION)
1465 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(host))),)
1475 @ gnu:[bin]vmssymvec $<
1478 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1479 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1480 LIBGNAT_TARGET_PAIRS_AUX1 = \
1481 g-enblsp.adb<g-enblsp-vms-ia64.adb \
1482 g-trasym.adb<g-trasym-vms-ia64.adb \
1483 s-asthan.adb<s-asthan-vms-ia64.adb \
1484 s-auxdec.adb<s-auxdec-vms-ia64.adb \
1485 s-osinte.adb<s-osinte-vms-ia64.adb \
1486 s-osinte.ads<s-osinte-vms-ia64.ads \
1487 s-vaflop.adb<s-vaflop-vms-ia64.adb \
1488 system.ads<system-vms-ia64.ads
1490 LIBGNAT_TARGET_PAIRS_AUX2 = \
1491 s-parame.ads<s-parame-vms-ia64.ads \
1492 $(ATOMICS_TARGET_PAIRS)
1494 ifeq ($(strip $(filter-out alpha64 dec vms% openvms% alphavms%,$(targ))),)
1495 LIBGNAT_TARGET_PAIRS_AUX1 = \
1496 g-enblsp.adb<g-enblsp-vms-alpha.adb \
1497 g-trasym.adb<g-trasym-vms-alpha.adb \
1498 s-asthan.adb<s-asthan-vms-alpha.adb \
1499 s-auxdec.adb<s-auxdec-vms-alpha.adb \
1500 s-osinte.adb<s-osinte-vms.adb \
1501 s-osinte.ads<s-osinte-vms.ads \
1502 s-traent.adb<s-traent-vms.adb \
1503 s-traent.ads<s-traent-vms.ads \
1504 s-vaflop.adb<s-vaflop-vms-alpha.adb \
1505 system.ads<system-vms_64.ads
1507 ifeq ($(strip $(filter-out express EXPRESS,$(THREAD_KIND))),)
1508 LIBGNAT_TARGET_PAIRS_AUX2 = \
1509 s-parame.ads<s-parame-vms-restrict.ads
1511 LIBGNAT_TARGET_PAIRS_AUX2 = \
1512 s-parame.ads<s-parame-vms-alpha.ads \
1513 $(ATOMICS_TARGET_PAIRS)
1518 LIBGNAT_TARGET_PAIRS = \
1519 a-caldel.adb<a-caldel-vms.adb \
1520 a-calend.adb<a-calend-vms.adb \
1521 a-calend.ads<a-calend-vms.ads \
1522 a-dirval.adb<a-dirval-vms.adb \
1523 a-excpol.adb<a-excpol-abort.adb \
1524 a-intnam.ads<a-intnam-vms.ads \
1525 a-numaux.ads<a-numaux-vms.ads \
1526 g-expect.adb<g-expect-vms.adb \
1527 g-socthi.ads<g-socthi-vms.ads \
1528 g-socthi.adb<g-socthi-vms.adb \
1529 g-stsifd.adb<g-stsifd-sockets.adb \
1530 i-c.ads<i-c-vms_64.ads \
1531 i-cstrin.ads<i-cstrin-vms_64.ads \
1532 i-cstrin.adb<i-cstrin-vms_64.adb \
1533 i-cpoint.ads<i-cpoint-vms_64.ads \
1534 i-cpoint.adb<i-cpoint-vms_64.adb \
1535 i-cstrea.adb<i-cstrea-vms.adb \
1536 memtrack.adb<memtrack-vms_64.adb \
1537 s-auxdec.ads<s-auxdec-vms_64.ads \
1538 s-inmaop.adb<s-inmaop-vms.adb \
1539 s-interr.adb<s-interr-vms.adb \
1540 s-intman.adb<s-intman-vms.adb \
1541 s-intman.ads<s-intman-vms.ads \
1542 s-memory.adb<s-memory-vms_64.adb \
1543 s-memory.ads<s-memory-vms_64.ads \
1544 s-osprim.adb<s-osprim-vms.adb \
1545 s-osprim.ads<s-osprim-vms.ads \
1546 s-taprop.adb<s-taprop-vms.adb \
1547 s-tasdeb.adb<s-tasdeb-vms.adb \
1548 s-taspri.ads<s-taspri-vms.ads \
1549 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1550 s-tpopde.adb<s-tpopde-vms.adb \
1551 s-tpopde.ads<s-tpopde-vms.ads \
1552 $(LIBGNAT_TARGET_PAIRS_AUX1) \
1553 $(LIBGNAT_TARGET_PAIRS_AUX2)
1555 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1556 TOOLS_TARGET_PAIRS= \
1557 mlib-tgt-specific.adb<mlib-tgt-specific-vms-ia64.adb \
1558 symbols.adb<symbols-vms.adb \
1559 symbols-processing.adb<symbols-processing-vms-ia64.adb
1561 TOOLS_TARGET_PAIRS= \
1562 mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \
1563 symbols.adb<symbols-vms.adb \
1564 symbols-processing.adb<symbols-processing-vms-alpha.adb
1567 adamsg.o: adamsg.msg
1568 -$(DECC) --cc=message adamsg.msg -o adamsg.o
1570 EXTRA_GNATMAKE_OBJS = mlib-tgt-vms_common.o
1574 GNATLIB_SHARED=gnatlib-shared-vms
1575 EXTRA_LIBGNAT_SRCS+=adamsg.msg
1576 EXTRA_LIBGNAT_OBJS+=adamsg.o
1577 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1579 ../../gnatsym$(exeext)
1580 # This command transforms (YYYYMMDD) into YY,MMDD
1581 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)ada/gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\).*/\2,\3/')
1582 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1583 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1586 ifeq ($(strip $(filter-out avr none powerpc% eabispe leon% erc32% unknown elf,$(targ))),)
1587 TOOLS_TARGET_PAIRS=\
1588 mlib-tgt-specific.adb<mlib-tgt-specific-xi.adb \
1589 indepsw.adb<indepsw-gnu.adb
1592 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1593 LIBGNAT_TARGET_PAIRS = \
1594 a-dirval.adb<a-dirval-mingw.adb \
1595 a-excpol.adb<a-excpol-abort.adb \
1596 a-numaux.adb<a-numaux-x86.adb \
1597 a-numaux.ads<a-numaux-x86.ads \
1598 s-gloloc.adb<s-gloloc-mingw.adb \
1599 s-inmaop.adb<s-inmaop-dummy.adb \
1600 s-memory.adb<s-memory-mingw.adb \
1601 s-taspri.ads<s-taspri-mingw.ads \
1602 s-tasinf.adb<s-tasinf-mingw.adb \
1603 s-tasinf.ads<s-tasinf-mingw.ads \
1604 g-bytswa.adb<g-bytswa-x86.adb \
1605 g-socthi.ads<g-socthi-mingw.ads \
1606 g-socthi.adb<g-socthi-mingw.adb \
1607 g-stsifd.adb<g-stsifd-sockets.adb \
1608 g-soliop.ads<g-soliop-mingw.ads
1610 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss,$(THREAD_KIND))),)
1611 LIBGNAT_TARGET_PAIRS += \
1612 s-intman.adb<s-intman-dummy.adb \
1613 s-osinte.ads<s-osinte-rtx.ads \
1614 s-osprim.adb<s-osprim-rtx.adb \
1615 s-taprop.adb<s-taprop-rtx.adb
1617 EXTRA_GNATRTL_NONTASKING_OBJS = s-win32.o
1619 ifeq ($(strip $(filter-out rtx_w32,$(THREAD_KIND))),)
1620 LIBGNAT_TARGET_PAIRS += system.ads<system-rtx.ads
1624 LIBGNAT_TARGET_PAIRS += \
1625 system.ads<system-rtx-rtss.ads \
1626 s-parame.adb<s-parame-vxworks.adb
1632 LIBGNAT_TARGET_PAIRS += \
1633 a-exetim.adb<a-exetim-mingw.adb \
1634 a-exetim.ads<a-exetim-mingw.ads \
1635 a-intnam.ads<a-intnam-mingw.ads \
1636 g-sercom.adb<g-sercom-mingw.adb \
1637 s-interr.adb<s-interr-sigaction.adb \
1638 s-intman.adb<s-intman-mingw.adb \
1639 s-osinte.ads<s-osinte-mingw.ads \
1640 s-osprim.adb<s-osprim-mingw.adb \
1641 s-taprop.adb<s-taprop-mingw.adb
1643 ifeq ($(strip $(filter-out x86_64%,$(arch))),)
1644 ifeq ($(strip $(MULTISUBDIR)),/32)
1645 LIBGNAT_TARGET_PAIRS += \
1646 system.ads<system-mingw.ads
1647 SO_OPTS= -m32 -Wl,-soname,
1649 LIBGNAT_TARGET_PAIRS += \
1650 system.ads<system-mingw-x86_64.ads
1651 SO_OPTS = -m64 -Wl,-soname,
1654 ifeq ($(strip $(MULTISUBDIR)),/64)
1655 LIBGNAT_TARGET_PAIRS += \
1656 system.ads<system-mingw-x86_64.ads
1657 SO_OPTS = -m64 -Wl,-soname,
1659 LIBGNAT_TARGET_PAIRS += \
1660 system.ads<system-mingw.ads
1661 SO_OPTS = -m32 -Wl,-soname,
1665 EXTRA_GNATRTL_NONTASKING_OBJS = \
1666 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1667 EXTRA_GNATRTL_TASKING_OBJS = a-exetim.o
1671 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1672 # auto-import support for array/record will be done.
1673 GNATLIB_SHARED = gnatlib-shared-win32
1678 TOOLS_TARGET_PAIRS= \
1679 mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb \
1680 indepsw.adb<indepsw-mingw.adb
1683 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1684 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1686 LIBRARY_VERSION := $(LIB_VERSION)
1689 ifeq ($(strip $(filter-out mips linux%,$(arch) $(osys))),)
1690 LIBGNAT_TARGET_PAIRS = \
1691 a-intnam.ads<a-intnam-linux.ads \
1692 s-inmaop.adb<s-inmaop-posix.adb \
1693 s-intman.adb<s-intman-posix.adb \
1694 s-linux.ads<s-linux.ads \
1695 s-osinte.adb<s-osinte-posix.adb \
1696 s-osinte.ads<s-osinte-linux.ads \
1697 s-osprim.adb<s-osprim-posix.adb \
1698 s-taprop.adb<s-taprop-linux.adb \
1699 s-tasinf.ads<s-tasinf-linux.ads \
1700 s-tasinf.adb<s-tasinf-linux.adb \
1701 s-taspri.ads<s-taspri-posix.ads \
1702 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1703 system.ads<system-linux-mips.ads
1706 THREADSLIB = -lpthread
1707 GNATLIB_SHARED = gnatlib-shared-dual
1709 LIBRARY_VERSION := $(LIB_VERSION)
1712 ifeq ($(strip $(filter-out mipsel linux%,$(arch) $(osys))),)
1713 LIBGNAT_TARGET_PAIRS_COMMON = \
1714 a-intnam.ads<a-intnam-linux.ads \
1715 s-inmaop.adb<s-inmaop-posix.adb \
1716 s-intman.adb<s-intman-posix.adb \
1717 s-linux.ads<s-linux-mipsel.ads \
1718 s-osinte.adb<s-osinte-posix.adb \
1719 s-osinte.ads<s-osinte-linux.ads \
1720 s-osprim.adb<s-osprim-posix.adb \
1721 s-taprop.adb<s-taprop-linux.adb \
1722 s-tasinf.ads<s-tasinf-linux.ads \
1723 s-tasinf.adb<s-tasinf-linux.adb \
1724 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1725 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1726 g-sercom.adb<g-sercom-linux.adb
1728 LIBGNAT_TARGET_PAIRS_32 = \
1729 system.ads<system-linux-mipsel.ads
1731 LIBGNAT_TARGET_PAIRS_64 = \
1732 system.ads<system-linux-mips64el.ads
1734 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1735 LIBGNAT_TARGET_PAIRS = \
1736 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1738 LIBGNAT_TARGET_PAIRS = \
1739 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1742 TOOLS_TARGET_PAIRS = \
1743 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1744 indepsw.adb<indepsw-gnu.adb
1746 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1748 THREADSLIB = -lpthread
1749 GNATLIB_SHARED = gnatlib-shared-dual
1751 LIBRARY_VERSION := $(LIB_VERSION)
1754 ifeq ($(strip $(filter-out mips64el linux%,$(arch) $(osys))),)
1755 LIBGNAT_TARGET_PAIRS_COMMON = \
1756 a-intnam.ads<a-intnam-linux.ads \
1757 s-inmaop.adb<s-inmaop-posix.adb \
1758 s-intman.adb<s-intman-posix.adb \
1759 s-linux.ads<s-linux-mipsel.ads \
1760 s-osinte.adb<s-osinte-posix.adb \
1761 s-osinte.ads<s-osinte-linux.ads \
1762 s-osprim.adb<s-osprim-posix.adb \
1763 s-taprop.adb<s-taprop-linux.adb \
1764 s-tasinf.ads<s-tasinf-linux.ads \
1765 s-tasinf.adb<s-tasinf-linux.adb \
1766 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1767 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1768 g-sercom.adb<g-sercom-linux.adb
1770 LIBGNAT_TARGET_PAIRS_32 = \
1771 system.ads<system-linux-mipsel.ads
1773 LIBGNAT_TARGET_PAIRS_64 = \
1774 system.ads<system-linux-mips64el.ads
1776 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1777 LIBGNAT_TARGET_PAIRS = \
1778 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1780 LIBGNAT_TARGET_PAIRS = \
1781 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1784 TOOLS_TARGET_PAIRS = \
1785 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1786 indepsw.adb<indepsw-gnu.adb
1788 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1790 THREADSLIB = -lpthread
1791 GNATLIB_SHARED = gnatlib-shared-dual
1793 LIBRARY_VERSION := $(LIB_VERSION)
1796 ifeq ($(strip $(filter-out powerpc% linux%,$(arch) $(osys))),)
1797 LIBGNAT_TARGET_PAIRS_COMMON = \
1798 a-exetim.adb<a-exetim-posix.adb \
1799 a-exetim.ads<a-exetim-default.ads \
1800 a-intnam.ads<a-intnam-linux.ads \
1801 s-inmaop.adb<s-inmaop-posix.adb \
1802 s-intman.adb<s-intman-posix.adb \
1803 s-linux.ads<s-linux.ads \
1804 s-osinte.adb<s-osinte-posix.adb \
1805 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1806 g-sercom.adb<g-sercom-linux.adb \
1807 g-trasym.adb<g-trasym-dwarf.adb \
1808 $(ATOMICS_TARGET_PAIRS)
1810 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
1811 LIBGNAT_TARGET_PAIRS = \
1812 $(LIBGNAT_TARGET_PAIRS_COMMON)
1814 LIBGNAT_TARGET_PAIRS += \
1815 s-osinte.ads<s-osinte-linux-xenomai.ads \
1816 s-osprim.adb<s-osprim-linux-xenomai.adb \
1817 s-taprop.adb<s-taprop-linux-xenomai.adb \
1818 s-taspri.ads<s-taspri-linux-xenomai.ads \
1819 system.ads<system-linux-ppc-xenomai.ads
1821 LIBGNAT_TARGET_PAIRS_32 = \
1822 system.ads<system-linux-ppc.ads
1824 LIBGNAT_TARGET_PAIRS_64 = \
1825 system.ads<system-linux-ppc64.ads
1827 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1828 LIBGNAT_TARGET_PAIRS = \
1829 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1831 LIBGNAT_TARGET_PAIRS = \
1832 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1835 LIBGNAT_TARGET_PAIRS += \
1836 s-osinte.ads<s-osinte-linux.ads \
1837 s-osprim.adb<s-osprim-posix.adb \
1838 s-taprop.adb<s-taprop-linux.adb \
1839 s-tasinf.ads<s-tasinf-linux.ads \
1840 s-tasinf.adb<s-tasinf-linux.adb \
1841 s-taspri.ads<s-taspri-posix-noaltstack.ads
1844 TOOLS_TARGET_PAIRS = \
1845 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1846 indepsw.adb<indepsw-gnu.adb
1848 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
1850 THREADSLIB = -lpthread -lrt
1851 GNATLIB_SHARED = gnatlib-shared-dual
1853 LIBRARY_VERSION := $(LIB_VERSION)
1856 ifeq ($(strip $(filter-out arm% linux-gnueabi,$(arch) $(osys)-$(word 4,$(targ)))),)
1857 LIBGNAT_TARGET_PAIRS = \
1858 a-intnam.ads<a-intnam-linux.ads \
1859 s-inmaop.adb<s-inmaop-posix.adb \
1860 s-intman.adb<s-intman-posix.adb \
1861 s-linux.ads<s-linux.ads \
1862 s-osinte.adb<s-osinte-posix.adb \
1863 s-osinte.ads<s-osinte-linux.ads \
1864 s-osprim.adb<s-osprim-posix.adb \
1865 s-taprop.adb<s-taprop-linux.adb \
1866 s-tasinf.ads<s-tasinf-linux.ads \
1867 s-tasinf.adb<s-tasinf-linux.adb \
1868 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1869 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
1871 ifeq ($(strip $(filter-out arm%b,$(arch))),)
1872 LIBGNAT_TARGET_PAIRS += \
1873 system.ads<system-linux-armeb.ads
1875 LIBGNAT_TARGET_PAIRS += \
1876 system.ads<system-linux-armel.ads
1879 TOOLS_TARGET_PAIRS = \
1880 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1881 indepsw.adb<indepsw-gnu.adb
1883 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1885 THREADSLIB = -lpthread
1886 GNATLIB_SHARED = gnatlib-shared-dual
1888 LIBRARY_VERSION := $(LIB_VERSION)
1891 ifeq ($(strip $(filter-out sparc% linux%,$(arch) $(osys))),)
1892 LIBGNAT_TARGET_PAIRS_COMMON = \
1893 a-intnam.ads<a-intnam-linux.ads \
1894 s-inmaop.adb<s-inmaop-posix.adb \
1895 s-intman.adb<s-intman-posix.adb \
1896 s-linux.ads<s-linux-sparc.ads \
1897 s-osinte.adb<s-osinte-posix.adb \
1898 s-osinte.ads<s-osinte-linux.ads \
1899 s-osprim.adb<s-osprim-posix.adb \
1900 s-taprop.adb<s-taprop-linux.adb \
1901 s-tasinf.ads<s-tasinf-linux.ads \
1902 s-tasinf.adb<s-tasinf-linux.adb \
1903 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1904 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
1906 LIBGNAT_TARGET_PAIRS_32 = \
1907 g-trasym.ads<g-trasym-unimplemented.ads \
1908 g-trasym.adb<g-trasym-unimplemented.adb \
1909 system.ads<system-linux-sparc.ads
1911 LIBGNAT_TARGET_PAIRS_64 = \
1912 system.ads<system-linux-sparcv9.ads
1914 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1915 LIBGNAT_TARGET_PAIRS = \
1916 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1918 LIBGNAT_TARGET_PAIRS = \
1919 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1922 TOOLS_TARGET_PAIRS = \
1923 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1924 indepsw.adb<indepsw-gnu.adb
1926 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1928 THREADSLIB = -lpthread
1929 GNATLIB_SHARED = gnatlib-shared-dual
1931 LIBRARY_VERSION := $(LIB_VERSION)
1934 ifeq ($(strip $(filter-out hppa% linux%,$(arch) $(osys))),)
1935 LIBGNAT_TARGET_PAIRS = \
1936 a-intnam.ads<a-intnam-linux.ads \
1937 s-inmaop.adb<s-inmaop-posix.adb \
1938 s-intman.adb<s-intman-posix.adb \
1939 s-linux.ads<s-linux-hppa.ads \
1940 s-osinte.adb<s-osinte-posix.adb \
1941 s-osinte.ads<s-osinte-linux.ads \
1942 s-osprim.adb<s-osprim-posix.adb \
1943 s-taprop.adb<s-taprop-linux.adb \
1944 s-tasinf.ads<s-tasinf-linux.ads \
1945 s-tasinf.adb<s-tasinf-linux.adb \
1946 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1947 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1948 g-trasym.ads<g-trasym-unimplemented.ads \
1949 g-trasym.adb<g-trasym-unimplemented.adb \
1950 system.ads<system-linux-hppa.ads
1952 TOOLS_TARGET_PAIRS = \
1953 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1954 indepsw.adb<indepsw-gnu.adb
1956 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1958 THREADSLIB = -lpthread
1959 GNATLIB_SHARED = gnatlib-shared-dual
1961 LIBRARY_VERSION := $(LIB_VERSION)
1964 ifeq ($(strip $(filter-out sh4% linux%,$(arch) $(osys))),)
1965 LIBGNAT_TARGET_PAIRS = \
1966 a-intnam.ads<a-intnam-linux.ads \
1967 s-inmaop.adb<s-inmaop-posix.adb \
1968 s-intman.adb<s-intman-posix.adb \
1969 s-linux.ads<s-linux.ads \
1970 s-osinte.adb<s-osinte-posix.adb \
1971 s-osinte.ads<s-osinte-linux.ads \
1972 s-osprim.adb<s-osprim-posix.adb \
1973 s-taprop.adb<s-taprop-linux.adb \
1974 s-tasinf.ads<s-tasinf-linux.ads \
1975 s-tasinf.adb<s-tasinf-linux.adb \
1976 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1977 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1978 system.ads<system-linux-sh4.ads
1980 TOOLS_TARGET_PAIRS = \
1981 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1982 indepsw.adb<indepsw-linux.adb
1984 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1987 THREADSLIB = -lpthread
1988 GNATLIB_SHARED = gnatlib-shared-dual
1990 LIBRARY_VERSION := $(LIB_VERSION)
1993 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1994 LIBGNAT_TARGET_PAIRS = \
1995 a-exetim.adb<a-exetim-posix.adb \
1996 a-exetim.ads<a-exetim-default.ads \
1997 a-intnam.ads<a-intnam-linux.ads \
1998 a-numaux.ads<a-numaux-libc-x86.ads \
1999 s-inmaop.adb<s-inmaop-posix.adb \
2000 s-intman.adb<s-intman-posix.adb \
2001 s-linux.ads<s-linux.ads \
2002 s-osinte.ads<s-osinte-linux.ads \
2003 s-osinte.adb<s-osinte-posix.adb \
2004 s-osprim.adb<s-osprim-posix.adb \
2005 s-taprop.adb<s-taprop-linux.adb \
2006 s-tasinf.ads<s-tasinf-linux.ads \
2007 s-tasinf.adb<s-tasinf-linux.adb \
2008 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2009 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2010 g-sercom.adb<g-sercom-linux.adb \
2011 system.ads<system-linux-ia64.ads \
2012 $(ATOMICS_TARGET_PAIRS)
2014 TOOLS_TARGET_PAIRS = \
2015 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2016 indepsw.adb<indepsw-gnu.adb
2018 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
2021 THREADSLIB=-lpthread -lrt
2022 GNATLIB_SHARED=gnatlib-shared-dual
2024 LIBRARY_VERSION := $(LIB_VERSION)
2027 ifeq ($(strip $(filter-out ia64% hp hpux%,$(targ))),)
2028 LIBGNAT_TARGET_PAIRS = \
2029 a-intnam.ads<a-intnam-hpux.ads \
2030 s-inmaop.adb<s-inmaop-posix.adb \
2031 s-intman.adb<s-intman-posix.adb \
2032 s-osinte.adb<s-osinte-posix.adb \
2033 s-osinte.ads<s-osinte-hpux.ads \
2034 s-osprim.adb<s-osprim-posix.adb \
2035 s-taprop.adb<s-taprop-posix.adb \
2036 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2037 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2038 system.ads<system-hpux-ia64.ads \
2039 $(ATOMICS_TARGET_PAIRS)
2041 TOOLS_TARGET_PAIRS = \
2042 mlib-tgt-specific.adb<mlib-tgt-specific-ia64-hpux.adb
2045 THREADSLIB=-lpthread
2046 GNATLIB_SHARED=gnatlib-shared-dual
2050 LIBRARY_VERSION := $(LIB_VERSION)
2053 ifeq ($(strip $(filter-out alpha% linux%,$(arch) $(osys))),)
2054 LIBGNAT_TARGET_PAIRS = \
2055 a-intnam.ads<a-intnam-linux.ads \
2056 s-inmaop.adb<s-inmaop-posix.adb \
2057 s-intman.adb<s-intman-posix.adb \
2058 s-linux.ads<s-linux-alpha.ads \
2059 s-osinte.ads<s-osinte-linux.ads \
2060 s-osinte.adb<s-osinte-posix.adb \
2061 s-osprim.adb<s-osprim-posix.adb \
2062 s-taprop.adb<s-taprop-linux.adb \
2063 s-tasinf.ads<s-tasinf-linux.ads \
2064 s-tasinf.adb<s-tasinf-linux.adb \
2065 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2066 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2067 g-trasym.ads<g-trasym-unimplemented.ads \
2068 g-trasym.adb<g-trasym-unimplemented.adb \
2069 system.ads<system-linux-alpha.ads \
2070 $(ATOMICS_TARGET_PAIRS)
2072 TOOLS_TARGET_PAIRS = \
2073 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2074 indepsw.adb<indepsw-gnu.adb
2076 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
2079 THREADSLIB=-lpthread
2080 GNATLIB_SHARED=gnatlib-shared-dual
2081 LIBRARY_VERSION := $(LIB_VERSION)
2084 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
2085 LIBGNAT_TARGET_PAIRS = \
2086 a-exetim.adb<a-exetim-posix.adb \
2087 a-exetim.ads<a-exetim-default.ads \
2088 a-intnam.ads<a-intnam-linux.ads \
2089 a-numaux.adb<a-numaux-x86.adb \
2090 a-numaux.ads<a-numaux-x86.ads \
2091 s-inmaop.adb<s-inmaop-posix.adb \
2092 s-intman.adb<s-intman-posix.adb \
2093 s-linux.ads<s-linux.ads \
2094 s-osinte.ads<s-osinte-linux.ads \
2095 s-osinte.adb<s-osinte-posix.adb \
2096 s-osprim.adb<s-osprim-posix.adb \
2097 s-taprop.adb<s-taprop-linux.adb \
2098 s-tasinf.ads<s-tasinf-linux.ads \
2099 s-tasinf.adb<s-tasinf-linux.adb \
2100 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2101 s-taspri.ads<s-taspri-posix.ads \
2102 g-sercom.adb<g-sercom-linux.adb \
2103 system.ads<system-linux-x86_64.ads \
2104 $(ATOMICS_TARGET_PAIRS)
2106 TOOLS_TARGET_PAIRS = \
2107 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2108 indepsw.adb<indepsw-gnu.adb
2110 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
2111 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
2113 THREADSLIB=-lpthread -lrt
2114 GNATLIB_SHARED=gnatlib-shared-dual
2116 LIBRARY_VERSION := $(LIB_VERSION)
2119 ifeq ($(strip $(filter-out darwin%,$(osys))),)
2120 ifeq ($(strip $(filter-out %86,$(arch))),)
2121 LIBGNAT_TARGET_PAIRS = \
2122 a-intnam.ads<a-intnam-darwin.ads \
2123 i-forbla.adb<i-forbla-darwin.adb \
2124 s-inmaop.adb<s-inmaop-posix.adb \
2125 s-intman.adb<s-intman-susv3.adb \
2126 s-osinte.adb<s-osinte-darwin.adb \
2127 s-osinte.ads<s-osinte-darwin.ads \
2128 s-osprim.adb<s-osprim-darwin.adb \
2129 s-taprop.adb<s-taprop-posix.adb \
2130 s-taspri.ads<s-taspri-posix.ads \
2131 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2132 g-trasym.ads<g-trasym-unimplemented.ads \
2133 g-trasym.adb<g-trasym-unimplemented.adb \
2134 a-numaux.ads<a-numaux-x86.ads \
2135 a-numaux.adb<a-numaux-x86.adb
2136 ifeq ($(strip $(MULTISUBDIR)),/x86_64)
2137 LIBGNAT_TARGET_PAIRS += \
2138 system.ads<system-darwin-x86_64.ads
2140 LIBGNAT_TARGET_PAIRS += \
2141 system.ads<system-darwin-x86.ads
2145 ifeq ($(strip $(filter-out %x86_64,$(arch))),)
2146 LIBGNAT_TARGET_PAIRS = \
2147 a-intnam.ads<a-intnam-darwin.ads \
2148 i-forbla.adb<i-forbla-darwin.adb \
2149 s-inmaop.adb<s-inmaop-posix.adb \
2150 s-intman.adb<s-intman-susv3.adb \
2151 s-osinte.adb<s-osinte-darwin.adb \
2152 s-osinte.ads<s-osinte-darwin.ads \
2153 s-osprim.adb<s-osprim-darwin.adb \
2154 s-taprop.adb<s-taprop-posix.adb \
2155 s-taspri.ads<s-taspri-posix.ads \
2156 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2157 g-trasym.ads<g-trasym-unimplemented.ads \
2158 g-trasym.adb<g-trasym-unimplemented.adb \
2159 a-numaux.ads<a-numaux-x86.ads \
2160 a-numaux.adb<a-numaux-x86.adb \
2161 $(ATOMICS_TARGET_PAIRS)
2162 ifeq ($(strip $(MULTISUBDIR)),/i386)
2163 LIBGNAT_TARGET_PAIRS += \
2164 system.ads<system-darwin-x86.ads
2166 LIBGNAT_TARGET_PAIRS += \
2167 system.ads<system-darwin-x86_64.ads
2171 ifeq ($(strip $(filter-out powerpc%,$(arch))),)
2172 LIBGNAT_TARGET_PAIRS = \
2173 a-intnam.ads<a-intnam-darwin.ads \
2174 i-forbla.adb<i-forbla-darwin.adb \
2175 s-inmaop.adb<s-inmaop-posix.adb \
2176 s-intman.adb<s-intman-posix.adb \
2177 s-osinte.adb<s-osinte-darwin.adb \
2178 s-osinte.ads<s-osinte-darwin.ads \
2179 s-osprim.adb<s-osprim-posix.adb \
2180 s-taprop.adb<s-taprop-posix.adb \
2181 s-taspri.ads<s-taspri-posix.ads \
2182 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2183 a-numaux.ads<a-numaux-darwin.ads \
2184 a-numaux.adb<a-numaux-darwin.adb \
2185 g-trasym.ads<g-trasym-unimplemented.ads \
2186 g-trasym.adb<g-trasym-unimplemented.adb \
2187 system.ads<system-darwin-ppc.ads
2190 TOOLS_TARGET_PAIRS = \
2191 mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb
2194 GNATLIB_SHARED = gnatlib-shared-darwin
2195 SO_OPTS = -Wl,-flat_namespace -shared-libgcc
2198 LIBRARY_VERSION := $(LIB_VERSION)
2203 ifneq ($(EH_MECHANISM),)
2204 LIBGNAT_TARGET_PAIRS += a-exexpr.adb<a-exexpr$(EH_MECHANISM).adb
2205 EXTRA_LIBGNAT_SRCS+=raise$(EH_MECHANISM).c
2206 EXTRA_LIBGNAT_OBJS+=raise$(EH_MECHANISM).o
2209 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
2210 # explicitly already. The base files (a-except.ad?) are used only for building
2211 # the compiler and other basic tools.
2212 # These base versions lack Ada 2005 additions which would cause bootstrap
2213 # problems if included in the compiler and other basic tools.
2215 ifeq ($(filter a-except%,$(LIBGNAT_TARGET_PAIRS)),)
2216 LIBGNAT_TARGET_PAIRS += \
2217 a-except.ads<a-except-2005.ads \
2218 a-except.adb<a-except-2005.adb
2221 # The runtime library for gnat comprises two directories. One contains the
2222 # Ada source files that the compiler (gnat1) needs -- these files are listed
2223 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
2224 # corresponding .ali files for the parts written in Ada, libgnat.a for
2225 # the parts of the runtime written in C, and libgthreads.a for the pthreads
2226 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
2227 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
2228 # go into the directory. The pthreads emulation is built in the threads
2229 # subdirectory and copied.
2230 LIBGNAT_SRCS = adadecode.c adadecode.h adaint.c adaint.h \
2231 argv.c cio.c cstreams.c errno.c exit.c cal.c ctrl_c.c env.c env.h \
2232 arit64.c raise.h raise.c sysdep.c aux-io.c init.c initialize.c \
2233 locales.c seh_init.c final.c tracebak.c tb-alvms.c tb-alvxw.c \
2234 tb-gcc.c expect.c mkdir.c socket.c gsocket.h targext.c $(EXTRA_LIBGNAT_SRCS)
2236 LIBGNAT_OBJS = adadecode.o adaint.o argv.o cio.o cstreams.o ctrl_c.o \
2237 errno.o exit.o env.o raise.o sysdep.o aux-io.o init.o initialize.o \
2238 locales.o seh_init.o cal.o arit64.o final.o tracebak.o expect.o \
2239 mkdir.o socket.o targext.o $(EXTRA_LIBGNAT_OBJS)
2241 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2242 # the library installation will change and there will be a
2243 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2244 # from ADA_INCLUDE_SRCS.
2246 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2247 # the following include file:
2249 include $(fsrcdir)/ada/Makefile.rtl
2251 GNATRTL_LINEARALGEBRA_OBJS = a-nlcoar.o a-nllcar.o a-nllrar.o a-nlrear.o \
2252 a-nucoar.o a-nurear.o i-forbla.o i-forlap.o s-gearop.o
2254 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
2255 $(GNATRTL_LINEARALGEBRA_OBJS) g-trasym.o memtrack.o
2257 # Default run time files
2260 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2261 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2262 sequenio.ads system.ads memtrack.adb \
2263 a-[a-o]*.adb a-[p-z]*.adb a-[a-o]*.ads a-[p-z]*.ads g-*.ad? i-*.ad? \
2264 s-[a-o]*.adb s-[p-z]*.adb s-[a-o]*.ads s-[p-z]*.ads
2266 LIBGNAT=../$(RTSDIR)/libgnat.a
2268 GCC_LINK=$(CC) $(GCC_LINK_FLAGS) $(ADA_INCLUDES)
2270 # when compiling the tools, the runtime has to be first on the path so that
2271 # it hides the runtime files lying with the rest of the sources
2272 ifeq ($(TOOLSCASE),native)
2273 vpath %.ads ../$(RTSDIR) ../
2274 vpath %.adb ../$(RTSDIR) ../
2275 vpath %.c ../$(RTSDIR) ../
2276 vpath %.h ../$(RTSDIR) ../
2279 # in the cross tools case, everything is compiled with the native
2280 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2281 ifeq ($(TOOLSCASE),cross)
2289 $(GNATMAKE) -c -b $(ADA_INCLUDES) \
2290 --GNATBIND="$(GNATBIND)" --GCC="$(CC) $(ALL_ADAFLAGS)" \
2291 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2292 gnatclean -bargs $(ADA_INCLUDES) $(GNATBIND_FLAGS)
2293 $(GNATLINK) -v gnatcmd -o ../../gnat$(exeext) \
2294 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2295 $(GNATLINK) -v gnatchop -o ../../gnatchop$(exeext) \
2296 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2297 $(GNATLINK) -v gnatkr -o ../../gnatkr$(exeext) \
2298 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2299 $(GNATLINK) -v gnatls -o ../../gnatls$(exeext) \
2300 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2301 $(GNATLINK) -v gnatprep -o ../../gnatprep$(exeext) \
2302 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2303 $(GNATLINK) -v gnatxref -o ../../gnatxref$(exeext) \
2304 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2305 $(GNATLINK) -v gnatfind -o ../../gnatfind$(exeext) \
2306 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2307 $(GNATLINK) -v gnatname -o ../../gnatname$(exeext) \
2308 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2309 $(GNATLINK) -v gnatclean -o ../../gnatclean$(exeext) \
2310 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2312 ../../gnatsym$(exeext):
2313 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
2314 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
2315 $(GNATLINK) -v gnatsym -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2317 ../../gnatdll$(exeext):
2318 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
2319 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatdll
2320 $(GNATLINK) -v gnatdll -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2322 ../../vxaddr2line$(exeext): targext.o
2323 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
2324 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
2325 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(GCC_LINK)" targext.o $(CLIB)
2327 gnatmake-re: link.o targext.o
2328 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
2329 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
2330 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
2331 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
2332 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2334 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2335 # with the former version of gnatlink itself which cannot override itself.
2336 gnatlink-re: link.o targext.o
2337 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
2338 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
2339 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
2340 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2341 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
2343 # Needs to be built with CC=gcc
2344 # Since the RTL should be built with the latest compiler, remove the
2345 # stamp target in the parent directory whenever gnat1 is rebuilt
2347 # Likewise for the tools
2348 ../../gnatmake$(exeext): $(P) b_gnatm.o link.o targext.o $(GNATMAKE_OBJS)
2349 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
2352 ../../gnatlink$(exeext): $(P) b_gnatl.o link.o targext.o $(GNATLINK_OBJS)
2353 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
2356 ../stamp-gnatlib-$(RTSDIR):
2357 @if [ ! -f stamp-gnatlib-$(RTSDIR) ] ; \
2359 $(ECHO) You must first build the GNAT library: make gnatlib; \
2365 install-gnatlib: ../stamp-gnatlib-$(RTSDIR)
2366 # Create the directory before deleting it, in case the directory is
2367 # a list of directories (as it may be on VMS). This ensures we are
2368 # deleting the right one.
2369 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2370 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2371 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2372 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2373 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2374 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2375 for file in $(RTSDIR)/*.ali; do \
2376 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2378 -$(INSTALL_DATA) $(RTSDIR)/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2379 -cd $(RTSDIR); for file in *$(arext);do \
2380 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2381 $(RANLIB_FOR_TARGET) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
2383 -$(foreach file, $(EXTRA_ADALIB_FILES), \
2384 $(INSTALL_DATA_DATE) $(RTSDIR)/$(file) $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
2386 # Install the shared libraries, if any, using $(INSTALL) instead
2387 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2388 # for shared libraries on some targets, e.g. on HP-UX where the x
2389 # permission is required.
2390 # Also install the .dSYM directories if they exist (these directories
2391 # contain the debug information for the shared libraries on darwin)
2392 for file in gnat gnarl; do \
2393 if [ -f $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
2394 $(INSTALL) $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2395 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2397 if [ -f $(RTSDIR)/lib$${file}$(soext) ]; then \
2398 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2399 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
2401 if [ -d $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM ]; then \
2402 $(CP) -r $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM \
2403 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2406 # This copy must be done preserving the date on the original file.
2407 for file in $(RTSDIR)/*.ad?; do \
2408 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
2410 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
2411 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
2413 ../stamp-gnatlib2-$(RTSDIR):
2414 $(RM) $(RTSDIR)/s-*.ali
2415 $(RM) $(RTSDIR)/s-*$(objext)
2416 $(RM) $(RTSDIR)/a-*.ali
2417 $(RM) $(RTSDIR)/a-*$(objext)
2418 $(RM) $(RTSDIR)/*.ali
2419 $(RM) $(RTSDIR)/*$(objext)
2420 $(RM) $(RTSDIR)/*$(arext)
2421 $(RM) $(RTSDIR)/*$(soext)
2422 touch ../stamp-gnatlib2-$(RTSDIR)
2423 $(RM) ../stamp-gnatlib-$(RTSDIR)
2425 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
2426 # successive target commands. Although the Gnu make documentation
2427 # implies this is true on all systems, I suspect it may not be, So care
2428 # has been taken to allow a sed script to look for ";)" and substitue
2429 # for ";" the appropriate character in the range of lines below
2430 # beginning with "GNULLI Begin" and ending with "GNULLI End"
2432 # GNULLI Begin ###########################################################
2434 ../stamp-gnatlib1-$(RTSDIR): Makefile ../stamp-gnatlib2-$(RTSDIR)
2437 $(CHMOD) u+w $(RTSDIR)
2438 # Copy target independent sources
2439 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
2440 $(LN_S) $(fsrcpfx)ada/$(f) $(RTSDIR) ;) true
2441 # Remove files to be replaced by target dependent sources
2442 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2443 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR))))
2444 for f in $(RTSDIR)/*-*-*.ads $(RTSDIR)/*-*-*.adb; do \
2446 $(RTSDIR)/s-stratt-*) ;; \
2450 # Copy new target dependent sources
2451 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2452 $(LN_S) $(fsrcpfx)ada/$(word 2,$(subst <, ,$(PAIR))) \
2453 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)));)
2455 $(CP) $(srcdir)/tsystem.h rts
2456 # Copy generated target dependent sources
2457 $(RM) $(RTSDIR)/s-oscons.ads
2458 (cd $(RTSDIR); $(LN_S) ../s-oscons.ads s-oscons.ads)
2459 $(RM) ../stamp-gnatlib-$(RTSDIR)
2460 touch ../stamp-gnatlib1-$(RTSDIR)
2462 # GNULLI End #############################################################
2464 # Don't use semicolon separated shell commands that involve list expansions.
2465 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
2466 # line lengths in excess of 256 characters.
2467 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
2468 # is guaranteed to overflow the buffer.
2470 gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../stamp-gnatlib2-$(RTSDIR)
2471 $(MAKE) -C $(RTSDIR) \
2472 CC="`echo \"$(GCC_FOR_TARGET)\" \
2473 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2474 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2475 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
2476 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2478 -f ../Makefile $(LIBGNAT_OBJS)
2479 $(MAKE) -C $(RTSDIR) \
2480 CC="`echo \"$(GCC_FOR_TARGET)\" \
2481 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2483 CFLAGS="$(GNATLIBCFLAGS)" \
2484 ADAFLAGS="$(GNATLIBFLAGS)" \
2485 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2489 $(RM) $(RTSDIR)/libgnat$(arext) $(RTSDIR)/libgnarl$(arext)
2490 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnat$(arext) \
2491 $(addprefix $(RTSDIR)/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
2492 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnat$(arext)
2493 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnarl$(arext) \
2494 $(addprefix $(RTSDIR)/,$(GNATRTL_TASKING_OBJS))
2495 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnarl$(arext)
2496 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnala$(arext) \
2497 $(addprefix $(RTSDIR)/,$(GNATRTL_LINEARALGEBRA_OBJS))
2498 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnala$(arext)
2499 ifeq ($(GMEM_LIB),gmemlib)
2500 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgmem$(arext) \
2501 $(RTSDIR)/memtrack.o
2502 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgmem$(arext)
2504 $(CHMOD) a-wx $(RTSDIR)/*.ali
2505 touch ../stamp-gnatlib-$(RTSDIR)
2507 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2508 gnatlib-shared-default:
2509 $(MAKE) $(FLAGS_TO_PASS) \
2510 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2511 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2512 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2513 MULTISUBDIR="$(MULTISUBDIR)" \
2514 THREAD_KIND="$(THREAD_KIND)" \
2516 $(RM) $(RTSDIR)/libgna*$(soext)
2517 cd $(RTSDIR); ../../xgcc -B../../ -shared $(GNATLIBCFLAGS) \
2518 $(TARGET_LIBGCC2_CFLAGS) \
2519 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2520 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2521 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2523 cd $(RTSDIR); ../../xgcc -B../../ -shared $(GNATLIBCFLAGS) \
2524 $(TARGET_LIBGCC2_CFLAGS) \
2525 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2526 $(GNATRTL_TASKING_OBJS) \
2527 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2529 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2531 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2534 gnatlib-shared-dual:
2535 $(MAKE) $(FLAGS_TO_PASS) \
2536 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2537 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2538 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2539 MULTISUBDIR="$(MULTISUBDIR)" \
2540 THREAD_KIND="$(THREAD_KIND)" \
2541 gnatlib-shared-default
2542 $(MV) $(RTSDIR)/libgna*$(soext) .
2543 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2544 $(MAKE) $(FLAGS_TO_PASS) \
2545 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2546 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2547 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2548 MULTISUBDIR="$(MULTISUBDIR)" \
2549 THREAD_KIND="$(THREAD_KIND)" \
2551 $(MV) libgna*$(soext) $(RTSDIR)
2553 gnatlib-shared-dual-win32:
2554 $(MAKE) $(FLAGS_TO_PASS) \
2555 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2556 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2557 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2558 MULTISUBDIR="$(MULTISUBDIR)" \
2559 THREAD_KIND="$(THREAD_KIND)" \
2560 gnatlib-shared-win32
2561 $(MV) $(RTSDIR)/libgna*$(soext) .
2562 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2563 $(MAKE) $(FLAGS_TO_PASS) \
2564 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2565 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2566 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2567 MULTISUBDIR="$(MULTISUBDIR)" \
2568 THREAD_KIND="$(THREAD_KIND)" \
2570 $(MV) libgna*$(soext) $(RTSDIR)
2572 # ??? we need to add the option to support auto-import of arrays/records to
2573 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2574 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2576 gnatlib-shared-win32:
2577 $(MAKE) $(FLAGS_TO_PASS) \
2578 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2579 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2580 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2581 MULTISUBDIR="$(MULTISUBDIR)" \
2582 THREAD_KIND="$(THREAD_KIND)" \
2584 $(RM) $(RTSDIR)/libgna*$(soext)
2585 cd $(RTSDIR); ../../xgcc -B../../ -shared -shared-libgcc \
2586 $(TARGET_LIBGCC2_CFLAGS) \
2587 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2588 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2589 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
2590 cd $(RTSDIR); ../../xgcc -B../../ -shared -shared-libgcc \
2591 $(TARGET_LIBGCC2_CFLAGS) \
2592 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2593 $(GNATRTL_TASKING_OBJS) \
2594 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2595 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2597 gnatlib-shared-darwin:
2598 $(MAKE) $(FLAGS_TO_PASS) \
2599 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2600 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2601 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) -fno-common" \
2602 MULTISUBDIR="$(MULTISUBDIR)" \
2603 THREAD_KIND="$(THREAD_KIND)" \
2605 $(RM) $(RTSDIR)/libgnat$(soext) $(RTSDIR)/libgnarl$(soext)
2606 cd $(RTSDIR); ../../xgcc -B../../ -dynamiclib $(TARGET_LIBGCC2_CFLAGS) \
2607 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2608 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2610 -Wl,-install_name,@rpath/libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2612 cd $(RTSDIR); ../../xgcc -B../../ -dynamiclib $(TARGET_LIBGCC2_CFLAGS) \
2613 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2614 $(GNATRTL_TASKING_OBJS) \
2616 -Wl,-install_name,@rpath/libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2617 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2618 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2620 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2622 cd $(RTSDIR); dsymutil libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2623 cd $(RTSDIR); dsymutil libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext)
2626 $(MAKE) $(FLAGS_TO_PASS) \
2627 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2628 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2629 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2630 MULTISUBDIR="$(MULTISUBDIR)" \
2631 THREAD_KIND="$(THREAD_KIND)" \
2633 $(RM) $(RTSDIR)/libgna*$(soext)
2635 ../../gnatsym -s SYMVEC_$$$$.opt \
2636 $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) && \
2637 ../../xgcc -g -B../../ -shared -shared-libgcc \
2638 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
2639 sys\$$library:trace.exe \
2640 --for-linker=/noinform \
2641 --for-linker=SYMVEC_$$$$.opt \
2642 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2644 ../../gnatsym -s SYMVEC_$$$$.opt \
2645 $(GNATRTL_TASKING_OBJS) && \
2646 ../../xgcc -g -B../../ -shared -shared-libgcc \
2647 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2648 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2649 sys\$$library:trace.exe \
2650 --for-linker=/noinform \
2651 --for-linker=SYMVEC_$$$$.opt \
2652 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2655 $(MAKE) $(FLAGS_TO_PASS) \
2656 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2657 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2658 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2659 MULTISUBDIR="$(MULTISUBDIR)" \
2660 THREAD_KIND="$(THREAD_KIND)" \
2661 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
2665 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="" \
2666 THREAD_KIND="$(THREAD_KIND)" ../stamp-gnatlib1-$(RTSDIR)
2667 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2668 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2669 $(MAKE) $(FLAGS_TO_PASS) \
2671 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2672 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2673 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2674 MULTISUBDIR="$(MULTISUBDIR)" \
2675 THREAD_KIND="$(THREAD_KIND)" \
2676 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2679 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="-gcc" \
2680 THREAD_KIND="$(THREAD_KIND)" ../stamp-gnatlib1-$(RTSDIR)
2681 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2682 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2683 $(MAKE) $(FLAGS_TO_PASS) \
2684 EH_MECHANISM="-gcc" \
2685 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2686 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2687 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2688 MULTISUBDIR="$(MULTISUBDIR)" \
2689 THREAD_KIND="$(THREAD_KIND)" \
2690 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2692 # .s files for cross-building
2694 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
2696 # Compiling object files from source files.
2698 # Note that dependencies on obstack.h are not written
2699 # because that file is not part of GCC.
2700 # Dependencies on gvarargs.h are not written
2701 # because all that file does, when not compiling with GCC,
2702 # is include the system varargs.h.
2704 b_gnatl.adb : $(GNATLINK_OBJS)
2705 $(GNATBIND) $(ADA_INCLUDES) -o b_gnatl.adb gnatlink.ali
2707 b_gnatl.o : b_gnatl.adb
2708 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) -gnatws -gnatyN \
2711 b_gnatm.adb : $(GNATMAKE_OBJS)
2712 $(GNATBIND) $(ADA_INCLUDES) -o b_gnatm.adb gnatmake.ali
2714 b_gnatm.o : b_gnatm.adb
2715 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) -gnatws -gnatyN \
2718 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2719 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2723 # force no sibling call optimization on s-traceb.o so the number of stack
2724 # frames to be skipped when computing a call chain is not modified by
2727 s-traceb.o : s-traceb.adb s-traceb.ads
2728 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2729 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
2731 # force debugging information on s-tasdeb.o so that it is always
2732 # possible to set conditional breakpoints on tasks.
2734 s-tasdeb.o : s-tasdeb.adb s-tasdeb.ads
2735 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2738 # force debugging information on s-vaflop.o so that it is always
2739 # possible to call the VAX float debug print routines.
2740 # force at least -O so that the inline assembly works.
2742 s-vaflop.o : s-vaflop.adb s-vaflop.ads
2743 $(CC) -c -O $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
2746 # force no function reordering on a-except.o because of the exclusion bounds
2747 # mechanism (see the source file for more detailed information).
2748 # force debugging information on a-except.o so that it is always
2749 # possible to set conditional breakpoints on exceptions.
2750 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2752 a-except.o : a-except.adb a-except.ads
2753 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O1 -fno-inline \
2754 $(NO_REORDER_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
2756 # compile s-except.o without optimization and with debug info to let the
2757 # debugger set breakpoints and inspect subprogram parameters on exception
2760 s-except.o : s-except.adb s-except.ads
2761 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2764 # force debugging information on s-assert.o so that it is always
2765 # possible to set breakpoint on assert failures.
2767 s-assert.o : s-assert.adb s-assert.ads
2768 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
2771 # force debugging information on a-tags.o so that the debugger can find
2772 # the description of Ada.Tags.Type_Specific_Data.
2774 a-tags.o : a-tags.adb a-tags.ads
2775 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
2778 # need to keep the frame pointer in this file to pop the stack properly on
2780 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2781 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
2782 $(INCLUDES) -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2784 adadecode.o : adadecode.c adadecode.h
2788 deftarg.o : deftarg.c
2790 exit.o : adaint.h exit.c
2793 locales.o : locales.c
2795 socket.o : socket.c gsocket.h
2797 raise.o : raise.c raise.h
2798 vx_stack_info.o : vx_stack_info.c
2800 raise-gcc.o : raise-gcc.c raise.h
2801 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2803 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2806 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2807 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2809 init.o : init.c adaint.h raise.h
2810 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2811 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2813 initialize.o : initialize.c raise.h
2814 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2815 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2818 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2819 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
2822 targext.o : targext.c
2823 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2825 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
2828 # In GNU Make, ignore whether `stage*' exists.
2829 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2830 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4