1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2016 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 3, or (at your option)
11 #GCC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING3. If not see
18 #<http://www.gnu.org/licenses/>.
20 # The makefile built from this file lives in the language subdirectory.
21 # Its purpose is to provide support for:
23 # 1) recursion where necessary, and only then (building .o's), and
24 # 2) building and debugging cc1 from the language subdirectory, and
27 # The parent makefile handles all other chores, with help from the
28 # language makefile fragment, of course.
30 # The targets for external use are:
31 # all, TAGS, ???mostlyclean, ???clean.
33 # This makefile will only work with Gnu make.
34 # The rules are written assuming a minimum subset of tools are available:
37 # MAKE: Only Gnu make will work.
38 # MV: Must accept (at least) one, maybe wildcard, source argument,
39 # a file or directory destination, and support creation/
40 # modification date preservation. Gnu mv -f works.
41 # RM: Must accept an arbitrary number of space separated file
42 # arguments, or one wildcard argument. Gnu rm works.
43 # RMDIR: Must delete a directory and all its contents. Gnu rm -rf works.
44 # ECHO: Must support command line redirection. Any Unix-like
45 # shell will typically provide this, otherwise a custom version
46 # is trivial to write.
48 # MKDIR: Gnu mkdir works.
49 # CHMOD: Gnu chmod works.
50 # true: Does nothing and returns a normal successful return code.
51 # pwd: Prints the current directory on stdout.
52 # cd: Change directory.
55 # BISON: Gnu bison works.
56 # FLEX: Gnu flex works.
57 # Other miscellaneous tools for obscure targets.
59 # Suppress smart makes who think they know how to automake Yacc files
62 # Variables that exist for you to override.
63 # See below for how to change them for certain systems.
65 # Various ways of specifying flags for compilations:
66 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
67 # BOOT_CFLAGS is the value of CFLAGS to pass
68 # to the stage2 and stage3 compilations
70 BOOT_CFLAGS
= -O
$(CFLAGS
)
71 # These exists to be overridden by the t-* files, respectively.
92 RANLIB_FLAGS
= @ranlib_flags@
96 COMPILER_FLAGS
= $(CFLAGS
)
99 PWD_COMMAND
= $${PWDCMD-pwd
}
100 # How to copy preserving the date
101 INSTALL_DATA_DATE
= cp
-p
105 GNATBIND_FLAGS
= -static
-x
107 ADAFLAGS
= -W
-Wall
-gnatpg
-gnata
108 FORCE_DEBUG_ADAFLAGS
= -g
109 NO_INLINE_ADAFLAGS
= -fno-inline
110 NO_OMIT_ADAFLAGS
= -fno-omit-frame-pointer
111 NO_SIBLING_ADAFLAGS
= -fno-optimize-sibling-calls
112 NO_REORDER_ADAFLAGS
= -fno-toplevel-reorder
113 GNATLIBFLAGS
= -W
-Wall
-gnatpg
-nostdinc
114 GNATLIBCFLAGS
= -g
-O2
115 # Pretend that _Unwind_GetIPInfo is available for the target by default. This
116 # should be autodetected during the configuration of libada and passed down to
117 # here, but we need something for --disable-libada and hope for the best.
118 GNATLIBCFLAGS_FOR_C
= \
119 -W
-Wall
$(GNATLIBCFLAGS
) -fexceptions
-DIN_RTS
-DHAVE_GETIPINFO
120 PICFLAG_FOR_TARGET
= @PICFLAG_FOR_TARGET@
121 ALL_ADAFLAGS
= $(CFLAGS
) $(ADA_CFLAGS
) $(ADAFLAGS
)
126 OUTPUT_OPTION
= -o
$@
135 # program_transform_name and objdir are set by configure.ac.
136 program_transform_name
=
139 target_alias
=@target_alias@
141 target_cpu
=@target_cpu@
142 target_vendor
=@target_vendor@
143 target_os
=@target_os@
145 host_vendor
=@host_vendor@
147 target_cpu_default
= @target_cpu_default@
148 xmake_file
= @xmake_file@
149 tmake_file
= @tmake_file@
150 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
151 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
153 # Directory where sources are, from where we are.
154 VPATH
= $(srcdir)/ada
156 # Full path to top source directory
157 # In particular this is used to access libgcc headers, so that references to
158 # these headers from GNAT runtime objects have path names in debugging info
159 # that are consistent with libgcc objects. Also used for other references to
160 # the top source directory for consistency.
161 ftop_srcdir
:= $(shell cd
$(srcdir)/..
;${PWD_COMMAND})
163 fsrcdir
:= $(shell cd
$(srcdir);${PWD_COMMAND})
164 fsrcpfx
:= $(shell cd
$(srcdir);${PWD_COMMAND})/
165 fcurdir
:= $(shell ${PWD_COMMAND})
166 fcurpfx
:= $(shell ${PWD_COMMAND})/
168 # Top build directory, relative to here.
171 # Internationalization library.
173 LIBINTL_DEP
= @LIBINTL_DEP@
175 # Character encoding conversion library.
176 LIBICONV
= @LIBICONV@
177 LIBICONV_DEP
= @LIBICONV_DEP@
179 # Any system libraries needed just for GNAT.
180 SYSLIBS
= @GNAT_LIBEXC@
182 # List extra gnattools
185 # List of target dependent sources, overridden below as necessary
188 # Type of tools build we are doing; default is not compiling tools.
193 RTSDIR
= rts
$(subst /,_
,$(MULTISUBDIR
))
195 # Link flags used to build gnat tools. By default we prefer to statically
196 # link with libgcc to avoid a dependency on shared libgcc (which is tricky
197 # to deal with as it may conflict with the libgcc provided by the system).
198 GCC_LINK_FLAGS
=-static-libstdc
++ -static-libgcc
200 # End of variables for you to override.
204 # This tells GNU Make version 3 not to put all variables in the environment.
208 ifneq ($(tmake_file
),)
209 include $(tmake_file
)
213 ifneq ($(xmake_file
),)
214 include $(xmake_file
)
217 # Now figure out from those variables how to compile and link.
219 all.indirect
: Makefile ..
/gnat1
$(exeext
)
221 # IN_GCC is meant to distinguish between code compiled into GCC itself, i.e.
222 # for the host, and the rest. But we also use it for the tools (link.c) and
223 # even break the host/target wall by using it for the library (targext.c).
224 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
225 # compiler which does not use the native libraries and headers.
226 INTERNAL_CFLAGS
= @CROSS@
-DIN_GCC
228 # This is the variable actually used when we compile.
229 ALL_CFLAGS
= $(INTERNAL_CFLAGS
) $(T_CFLAGS
) $(CFLAGS
)
232 ALL_CPPFLAGS
= $(CPPFLAGS
)
234 # Used with $(COMPILER).
235 ALL_COMPILERFLAGS
= $(ALL_CFLAGS
)
237 # This is where we get libiberty.a from.
238 LIBIBERTY
= ..
/..
/libiberty
/libiberty.a
240 # We need to link against libbacktrace because diagnostic.c in
241 # libcommon.a uses it.
242 LIBBACKTRACE
= ..
/..
/libbacktrace
/.libs
/libbacktrace.a
244 # How to link with both our special library facilities
245 # and the system's installed libraries.
246 LIBS
= $(LIBINTL
) $(LIBICONV
) $(LIBBACKTRACE
) $(LIBIBERTY
) $(SYSLIBS
)
247 LIBDEPS
= $(LIBINTL_DEP
) $(LIBICONV_DEP
) $(LIBBACKTRACE
) $(LIBIBERTY
)
248 # Default is no TGT_LIB; one might be passed down or something
250 TOOLS_LIBS
= ..
/link.o ..
/targext.o ..
/..
/ggc-none.o ..
/..
/libcommon-target.a \
251 ..
/..
/libcommon.a ..
/..
/..
/libcpp
/libcpp.a
$(LIBGNAT
) $(LIBINTL
) $(LIBICONV
) \
252 ..
/$(LIBBACKTRACE
) ..
/$(LIBIBERTY
) $(SYSLIBS
) $(TGT_LIB
)
254 # Add -no-pie to TOOLS_LIBS since some of them are compiled with -fno-PIE.
255 TOOLS_LIBS
+= @NO_PIE_FLAG@
257 # Specify the directories to be searched for header files.
258 # Both . and srcdir are used, in that order,
259 # so that tm.h and config.h will be found in the compilation
260 # subdirectory rather than in the source directory.
261 INCLUDES
= -iquote .
-iquote ..
-iquote
$(srcdir)/ada
-iquote
$(srcdir) \
262 -I
$(ftop_srcdir
)/include $(GMPINC
)
264 ADA_INCLUDES
= -I-
-I.
-I
$(srcdir)/ada
266 # Likewise, but valid for subdirectories of the current dir.
267 # FIXME: for VxWorks, we cannot add $(fsrcdir) because the regs.h file in
268 # that directory conflicts with a system header file.
269 ifneq ($(findstring vxworks
,$(target_os
)),)
270 INCLUDES_FOR_SUBDIR
= -iquote .
-iquote ..
-iquote ..
/.. \
271 -iquote
$(fsrcdir
)/ada \
272 -I
$(ftop_srcdir
)/include $(GMPINC
)
274 INCLUDES_FOR_SUBDIR
= -iquote .
-iquote ..
-iquote ..
/.. \
275 -iquote
$(fsrcdir
)/ada
-iquote
$(fsrcdir
) \
276 -I
$(ftop_srcdir
)/include $(GMPINC
)
279 ADA_INCLUDES_FOR_SUBDIR
= -I.
-I
$(fsrcdir
)/ada
281 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
284 # Say how to compile Ada programs.
285 .SUFFIXES
: .ada .adb .ads .asm
287 # Always use -I$(srcdir)/config when compiling.
289 $(CC
) -c
-x assembler
$< $(OUTPUT_OPTION
)
292 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
293 $(INCLUDES
) $< $(OUTPUT_OPTION
)
296 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
299 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
301 # how to regenerate this file
302 Makefile
: ..
/config.status
$(srcdir)/ada
/gcc-interface
/Makefile.in
$(srcdir)/ada
/Makefile.in
$(srcdir)/version.c
304 LANGUAGES
="$(CONFIG_LANGUAGES)" \
306 CONFIG_FILES
="ada/gcc-interface/Makefile ada/Makefile" $(SHELL
) config.status
308 # This tells GNU make version 3 not to export all the variables
309 # defined in this file into the environment.
312 # Lists of files for various purposes.
314 GNATLINK_OBJS
= gnatlink.o \
315 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
316 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
317 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
318 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
319 types.o validsw.o widechar.o
321 GNATMAKE_OBJS
= a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o \
322 atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o errout.o \
323 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
324 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
325 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
326 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o \
327 output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o \
328 prj-conf.o prj-pp.o prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o \
329 prj-proc.o prj-strt.o prj-tree.o prj-util.o restrict.o rident.o s-exctab.o \
330 s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o \
331 s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o \
332 sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o \
333 switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o uintp.o \
334 uname.o urealp.o usage.o widechar.o \
335 $(EXTRA_GNATMAKE_OBJS
)
337 # Make arch match the current multilib so that the RTS selection code
338 # picks up the right files. For a given target this must be coherent
339 # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*.
341 ifeq ($(strip $(filter-out %x86_64
, $(target_cpu
))),)
342 ifeq ($(strip $(MULTISUBDIR
)),/32)
345 ifeq ($(strip $(MULTISUBDIR
)),/x32
)
351 # ???: handle more multilib targets
353 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
354 # The members of each pair must be separated by a '<' and no whitespace.
355 # Each pair must be separated by some amount of whitespace from the following
360 LIBGNAT_TARGET_PAIRS
= \
361 a-intnam.ads
<a-intnam-dummy.ads \
362 s-inmaop.adb
<s-inmaop-dummy.adb \
363 s-intman.adb
<s-intman-dummy.adb \
364 s-osinte.ads
<s-osinte-dummy.ads \
365 s-osprim.adb
<s-osprim-posix.adb \
366 s-taprop.adb
<s-taprop-dummy.adb \
367 s-taspri.ads
<s-taspri-dummy.ads
369 # When using the GCC exception handling mechanism, we need to use an
370 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
374 # Default shared object option. Note that we rely on the fact that the "soname"
375 # option will always be present and last in this flag, so that we can have
376 # $(SO_OPTS)libgnat-x.xx
378 SO_OPTS
= -Wl
,-soname
,
380 # Default gnatlib-shared target.
381 # By default, equivalent to gnatlib.
382 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
383 # target when supported.
384 GNATLIB_SHARED
= gnatlib
386 # default value for gnatmake's target dependent file
389 # By default, build socket support units. On platforms that do not support
390 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
391 # to LIBGNAT_TARGET_PAIRS.
393 GNATRTL_SOCKETS_OBJS
= g-soccon
$(objext
) g-socket
$(objext
) g-socthi
$(objext
) \
394 g-soliop
$(objext
) g-sothco
$(objext
)
396 DUMMY_SOCKETS_TARGET_PAIRS
= \
397 g-socket.adb
<g-socket-dummy.adb \
398 g-socket.ads
<g-socket-dummy.ads \
399 g-socthi.adb
<g-socthi-dummy.adb \
400 g-socthi.ads
<g-socthi-dummy.ads \
401 g-sothco.adb
<g-sothco-dummy.adb \
402 g-sothco.ads
<g-sothco-dummy.ads
404 # On platforms where atomic increment/decrement operations are supported,
405 # special version of Ada.Strings.Unbounded package can be used.
407 ATOMICS_TARGET_PAIRS
= \
408 a-coinho.adb
<a-coinho-shared.adb \
409 a-coinho.ads
<a-coinho-shared.ads \
410 a-stunau.adb
<a-stunau-shared.adb \
411 a-suteio.adb
<a-suteio-shared.adb \
412 a-strunb.ads
<a-strunb-shared.ads \
413 a-strunb.adb
<a-strunb-shared.adb \
414 a-stwiun.adb
<a-stwiun-shared.adb \
415 a-stwiun.ads
<a-stwiun-shared.ads \
416 a-swunau.adb
<a-swunau-shared.adb \
417 a-swuwti.adb
<a-swuwti-shared.adb \
418 a-stzunb.adb
<a-stzunb-shared.adb \
419 a-stzunb.ads
<a-stzunb-shared.ads \
420 a-szunau.adb
<a-szunau-shared.adb \
421 a-szuzti.adb
<a-szuzti-shared.adb
423 ATOMICS_BUILTINS_TARGET_PAIRS
= \
424 s-atocou.adb
<s-atocou-builtin.adb
426 # Special version of units for x86 and x86-64 platforms.
429 a-numaux.ads
<a-numaux-x86.ads \
430 a-numaux.adb
<a-numaux-x86.adb \
431 s-atocou.adb
<s-atocou-x86.adb
433 X86_64_TARGET_PAIRS
= \
434 a-numaux.ads
<a-numaux-x86.ads \
435 a-numaux.adb
<a-numaux-x86.adb \
436 s-atocou.adb
<s-atocou-builtin.adb
438 # Shared library version
439 LIB_VERSION
= $(strip $(shell grep
' Library_Version :' $(fsrcpfx
)ada
/gnatvsn.ads | sed
-e
's/.*"\(.*\)".*/\1/'))
441 # Additionnal object files from C source to be added to libgnat.
444 # Additionnal C source files to be added to libgnat without corresponding
445 # object file (#included files). This should include at least the GNAT
446 # specific header files required to rebuild the runtime library from sources.
449 # Additionnal object files from Ada sources to be added in libgnat
450 EXTRA_GNATRTL_NONTASKING_OBJS
=
452 # Additionnal object files from Ada sources to be added in libgnarl
453 EXTRA_GNATRTL_TASKING_OBJS
=
455 # Subsets of extra libgnat sources that always go together
456 VX_SIGTRAMP_EXTRA_SRCS
=sigtramp.h sigtramp-vxworks-target.inc
458 # Additional object files that should go in the same directory as libgnat,
459 # aside the library itself. Typically useful for crtbegin/crtend kind of files.
462 VX_CRTBE_EXTRA_ADALIB_OBJS
=vx_crtbegin.o vx_crtbegin_auto.o vx_crtend.o
464 # GCC spec files to be installed in $(libsubdir), so --specs=<spec-filename>
465 # finds them at runtime.
468 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
469 # $(strip STRING) removes leading and trailing spaces from STRING.
470 # If what's left is null then it's a match.
473 ifeq ($(strip $(filter-out m68k
% wrs vx
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
474 LIBGNAT_TARGET_PAIRS
= \
475 a-intnam.ads
<a-intnam-vxworks.ads \
476 a-numaux.ads
<a-numaux-vxworks.ads \
477 s-inmaop.adb
<s-inmaop-vxworks.adb \
478 s-interr.adb
<s-interr-vxworks.adb \
479 s-intman.ads
<s-intman-vxworks.ads \
480 s-intman.adb
<s-intman-vxworks.adb \
481 s-osinte.adb
<s-osinte-vxworks.adb \
482 s-osinte.ads
<s-osinte-vxworks.ads \
483 s-osprim.adb
<s-osprim-vxworks.adb \
484 s-parame.ads
<s-parame-vxworks.ads \
485 s-parame.adb
<s-parame-vxworks.adb \
486 s-stchop.ads
<s-stchop-limit.ads \
487 s-stchop.adb
<s-stchop-vxworks.adb \
488 s-taprop.adb
<s-taprop-vxworks.adb \
489 s-tasinf.ads
<s-tasinf-vxworks.ads \
490 s-taspri.ads
<s-taspri-vxworks.ads \
491 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
492 s-vxwork.ads
<s-vxwork-m68k.ads \
493 g-socthi.ads
<g-socthi-vxworks.ads \
494 g-socthi.adb
<g-socthi-vxworks.adb \
495 g-stsifd.adb
<g-stsifd-sockets.adb \
496 system.ads
<system-vxworks-m68k.ads
498 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb
500 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-stchop.o
501 EXTRA_GNATRTL_TASKING_OBJS
=i-vxinco.o s-vxwork.o s-vxwext.o
503 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
505 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
506 LIBGNAT_TARGET_PAIRS
+= \
507 s-traces.adb
<s-traces-default.adb \
508 s-tratas.adb
<s-tratas-default.adb \
509 s-trafor.adb
<s-trafor-default.adb \
510 s-trafor.ads
<s-trafor-default.ads \
511 s-tfsetr.adb
<s-tfsetr-vxworks.adb
515 # PowerPC and e500v2 VxWorks
516 ifeq ($(strip $(filter-out powerpc
% wrs vxworks vxworksspe vxworks7 vxworks7spe
,$(target_cpu
) $(target_vendor
) $(target_os
))),)
518 ifeq ($(strip $(filter-out e500
%, $(target_alias
))),)
520 # gcc config translates the target e500v2-wrs-vxworks to
521 # powerpc-wrs-vxworksspe. Let's keep the original alias here when
522 # generating s-oscons.ads.
523 target
=$(target_alias
)
525 ifeq ($(strip $(filter-out powerpc64
, $(target_cpu
))),)
532 ifeq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
538 LIBGNAT_TARGET_PAIRS
= \
539 a-intnam.ads
<a-intnam-vxworks.ads \
540 a-numaux.ads
<a-numaux-vxworks.ads \
541 s-inmaop.adb
<s-inmaop-vxworks.adb \
542 s-intman.ads
<s-intman-vxworks.ads \
543 s-intman.adb
<s-intman-vxworks.adb \
544 s-osinte.ads
<s-osinte-vxworks.ads \
545 s-osinte.adb
<s-osinte-vxworks.adb \
546 s-osprim.adb
<s-osprim-vxworks.adb \
547 s-parame.ads
<s-parame-vxworks.ads \
548 s-parame.adb
<s-parame-vxworks.adb \
549 s-taprop.adb
<s-taprop-vxworks.adb \
550 s-tasinf.ads
<s-tasinf-vxworks.ads \
551 s-taspri.ads
<s-taspri-vxworks.ads \
552 s-vxwork.ads
<s-vxwork-ppc.ads \
553 g-socthi.ads
<g-socthi-vxworks.ads \
554 g-socthi.adb
<g-socthi-vxworks.adb \
555 g-stsifd.adb
<g-stsifd-sockets.adb \
556 $(ATOMICS_TARGET_PAIRS
) \
557 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
559 # VxWorks 5 and 6 both use the same target triplet making them
560 # indistinguishable in the context of this make file. Package
561 # System.Stack_Checking.Operations is not needed on VxWorks 6 as it leads to
562 # an undefined symbol when building a dynamic shared library. To alleviate
563 # this problem and distinguish this case, we use the THREAD_KIND and include
564 # the package only in default mode.
566 ifeq ($(strip $(filter-out default
,$(THREAD_KIND
))),)
567 LIBGNAT_TARGET_PAIRS
+= \
568 s-stchop.ads
<s-stchop-limit.ads \
569 s-stchop.adb
<s-stchop-vxworks.adb
570 EXTRA_GNATRTL_NONTASKING_OBJS
+=s-stchop.o
574 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
575 indepsw.adb
<indepsw-gnu.adb
577 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
578 LIBGNAT_TARGET_PAIRS
+= \
579 s-traces.adb
<s-traces-default.adb \
580 s-trafor.adb
<s-trafor-default.adb \
581 s-trafor.ads
<s-trafor-default.ads \
582 s-tratas.adb
<s-tratas-default.adb \
583 s-tfsetr.adb
<s-tfsetr-vxworks.adb
586 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
587 LIBGNAT_TARGET_PAIRS
+= \
588 s-vxwext.ads
<s-vxwext-rtp.ads \
589 s-vxwext.adb
<s-vxwext-rtp.adb \
590 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
591 system.ads
<system-vxworks-
$(ARCH_STR
)-rtp.ads
595 ifeq ($(strip $(filter-out rtp-smp
,$(THREAD_KIND
))),)
596 LIBGNAT_TARGET_PAIRS
+= \
597 s-mudido.adb
<s-mudido-affinity.adb \
598 s-vxwext.ads
<s-vxwext-rtp.ads \
599 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
600 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
601 system.ads
<$(SVX
)-$(ARCH_STR
)-rtp-smp.ads
604 EXTRA_LIBGNAT_OBJS
+=affinity.o
606 ifeq ($(strip $(filter-out kernel-smp
,$(THREAD_KIND
))),)
607 LIBGNAT_TARGET_PAIRS
+= \
608 s-interr.adb
<s-interr-vxworks.adb \
609 s-mudido.adb
<s-mudido-affinity.adb \
610 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
611 s-vxwext.ads
<s-vxwext-kernel.ads \
612 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
613 system.ads
<system-vxworks-
$(ARCH_STR
)-kernel.ads
616 EXTRA_LIBGNAT_OBJS
+=affinity.o
618 LIBGNAT_TARGET_PAIRS
+= \
619 s-interr.adb
<s-interr-vxworks.adb \
620 s-tpopsp.adb
<s-tpopsp-vxworks.adb
622 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
624 LIBGNAT_TARGET_PAIRS
+= \
625 s-vxwext.ads
<s-vxwext-kernel.ads \
626 s-vxwext.adb
<s-vxwext-kernel.adb \
627 system.ads
<system-vxworks-
$(ARCH_STR
)-kernel.ads
629 LIBGNAT_TARGET_PAIRS
+= \
630 system.ads
<system-vxworks-ppc.ads
633 EXTRA_GNATRTL_NONTASKING_OBJS
+=i-vxinco.o i-vxwork.o i-vxwoio.o
637 EXTRA_GNATRTL_TASKING_OBJS
+= s-vxwork.o s-vxwext.o
639 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
641 EXTRA_ADALIB_OBJS
+=$(VX_CRTBE_EXTRA_ADALIB_OBJS
)
642 EXTRA_LIBGNAT_SRCS
+=vx_crtbegin.inc
643 GCC_SPEC_FILES
+=vxworks-gnat-crtbe-link.spec
645 ifeq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
646 GCC_SPEC_FILES
+=vxworks7-rtp-base-link.spec
648 GCC_SPEC_FILES
+=vxworks-
$(ARCH_STR
)-link.spec
649 GCC_SPEC_FILES
+=vxworks-cert-
$(ARCH_STR
)-link.spec
650 GCC_SPEC_FILES
+=vxworks-smp-
$(ARCH_STR
)-link.spec
654 # PowerPC and e500v2 VxWorks 653
655 ifeq ($(strip $(filter-out powerpc
% wrs vxworksae vxworksaespe
,$(target_cpu
) $(target_vendor
) $(target_os
))),)
657 ifeq ($(strip $(filter-out e500
%, $(target_alias
))),)
659 # gcc config translates the target e500v2-wrs-vxworks to
660 # powerpc-wrs-vxworksspe. Let's keep the original alias here when
661 # generating s-oscons.ads.
662 target
=$(target_alias
)
667 # target pairs for vthreads runtime
668 LIBGNAT_TARGET_PAIRS
= \
669 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
670 a-intnam.ads
<a-intnam-vxworks.ads \
671 a-numaux.ads
<a-numaux-vxworks.ads \
672 g-io.adb
<g-io-vxworks-ppc-cert.adb \
673 s-inmaop.adb
<s-inmaop-vxworks.adb \
674 s-interr.adb
<s-interr-vxworks.adb \
675 s-intman.ads
<s-intman-vxworks.ads \
676 s-intman.adb
<s-intman-vxworks.adb \
677 s-osinte.adb
<s-osinte-vxworks.adb \
678 s-osinte.ads
<s-osinte-vxworks.ads \
679 s-osprim.adb
<s-osprim-vxworks.adb \
680 s-parame.ads
<s-parame-ae653.ads \
681 s-parame.adb
<s-parame-vxworks.adb \
682 s-taprop.adb
<s-taprop-vxworks.adb \
683 s-tasinf.ads
<s-tasinf-vxworks.ads \
684 s-taspri.ads
<s-taspri-vxworks.ads \
685 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
686 s-vxwext.adb
<s-vxwext-noints.adb \
687 s-vxwext.ads
<s-vxwext-vthreads.ads \
688 s-vxwork.ads
<s-vxwork-ppc.ads \
689 system.ads
<system-vxworks-
$(ARCH_STR
)-vthread.ads \
690 $(ATOMICS_TARGET_PAIRS
) \
691 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
696 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
697 indepsw.adb
<indepsw-gnu.adb
699 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
700 EXTRA_GNATRTL_TASKING_OBJS
=i-vxinco.o s-vxwork.o s-vxwext.o
702 EXTRA_LIBGNAT_OBJS
+=sigtramp-vxworks.o
703 EXTRA_LIBGNAT_SRCS
+=$(VX_SIGTRAMP_EXTRA_SRCS
)
705 # Extra pairs for the vthreads runtime
706 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
707 LIBGNAT_TARGET_PAIRS
+= \
708 s-thread.adb
<s-thread-ae653.adb \
709 s-osvers.ads
<s-osvers-vxworks-653.ads \
710 $(DUMMY_SOCKETS_TARGET_PAIRS
)
712 GNATRTL_SOCKETS_OBJS
=
713 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o s-osvers.o
715 LIBGNAT_TARGET_PAIRS
+= \
716 g-socthi.ads
<g-socthi-vxworks.ads \
717 g-socthi.adb
<g-socthi-vxworks.adb \
718 g-stsifd.adb
<g-stsifd-sockets.adb
721 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
722 LIBGNAT_TARGET_PAIRS
+= \
723 s-traces.adb
<s-traces-default.adb \
724 s-trafor.adb
<s-trafor-default.adb \
725 s-trafor.ads
<s-trafor-default.ads \
726 s-tratas.adb
<s-tratas-default.adb \
727 s-tfsetr.adb
<s-tfsetr-vxworks.adb
731 # PowerPC and e500v2 VxWorks MILS
732 ifeq ($(strip $(filter-out powerpc
% wrs vxworksmils
,$(target_cpu
) $(target_vendor
) $(target_os
))),)
733 # target pairs for vthreads runtime
734 LIBGNAT_TARGET_PAIRS
= \
735 a-elchha.adb
<a-elchha-vx6-raven-cert.adb \
736 a-intnam.ads
<a-intnam-vxworks.ads \
737 a-numaux.ads
<a-numaux-vxworks.ads \
738 g-io.adb
<g-io-vxworks-ppc-cert.adb \
739 s-inmaop.adb
<s-inmaop-vxworks.adb \
740 s-interr.adb
<s-interr-vxworks.adb \
741 s-intman.ads
<s-intman-vxworks.ads \
742 s-intman.adb
<s-intman-vxworks.adb \
743 s-osinte.adb
<s-osinte-vxworks.adb \
744 s-osinte.ads
<s-osinte-vxworks.ads \
745 s-osprim.adb
<s-osprim-vxworks.adb \
746 s-osvers.ads
<s-osvers-vxworks-mils.ads \
747 s-parame.ads
<s-parame-ae653.ads \
748 s-parame.adb
<s-parame-vxworks.adb \
749 s-stchop.adb
<s-stchop-vxworks.adb \
750 s-stchop.ads
<s-stchop-limit.ads \
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-thread.adb
<s-thread-ae653.adb \
755 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
756 s-vxwork.ads
<s-vxwork-ppc.ads \
757 system.ads
<system-vxworks-ppc-mils.ads \
758 $(ATOMICS_TARGET_PAIRS
) \
759 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
760 $(DUMMY_SOCKETS_TARGET_PAIRS
)
763 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
764 indepsw.adb
<indepsw-gnu.adb
766 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o \
767 s-thread.o s-osvers.o s-stchop.o
768 EXTRA_GNATRTL_TASKING_OBJS
=i-vxinco.o s-vxwork.o s-vxwext.o
770 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
772 EXTRA_LIBGNAT_OBJS
+=sigtramp-vxworks.o
773 EXTRA_LIBGNAT_SRCS
+=$(VX_SIGTRAMP_EXTRA_SRCS
)
775 GNATRTL_SOCKETS_OBJS
=
777 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
778 LIBGNAT_TARGET_PAIRS
+= \
779 s-traces.adb
<s-traces-default.adb \
780 s-trafor.adb
<s-trafor-default.adb \
781 s-trafor.ads
<s-trafor-default.ads \
782 s-tratas.adb
<s-tratas-default.adb \
783 s-tfsetr.adb
<s-tfsetr-vxworks.adb
787 # VxWorksae / VxWorks 653 for x86 (vxsim) - ?? VxWorks mils not implemented
788 ifeq ($(strip $(filter-out %86 wrs vxworksae
,$(target_cpu
) $(target_vendor
) $(target_os
))),)
789 # target pairs for kernel + vthreads runtime
790 LIBGNAT_TARGET_PAIRS
= \
791 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
792 a-intnam.ads
<a-intnam-vxworks.ads \
793 a-numaux.ads
<a-numaux-vxworks.ads \
794 g-io.adb
<g-io-vxworks-ppc-cert.adb \
795 s-inmaop.adb
<s-inmaop-vxworks.adb \
796 s-interr.adb
<s-interr-vxworks.adb \
797 s-intman.ads
<s-intman-vxworks.ads \
798 s-intman.adb
<s-intman-vxworks.adb \
799 s-osinte.adb
<s-osinte-vxworks.adb \
800 s-osinte.ads
<s-osinte-vxworks.ads \
801 s-osprim.adb
<s-osprim-vxworks.adb \
802 s-parame.ads
<s-parame-ae653.ads \
803 s-parame.adb
<s-parame-vxworks.adb \
804 s-taprop.adb
<s-taprop-vxworks.adb \
805 s-tasinf.ads
<s-tasinf-vxworks.ads \
806 s-taspri.ads
<s-taspri-vxworks.ads \
807 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
808 s-vxwext.adb
<s-vxwext-noints.adb \
809 s-vxwext.ads
<s-vxwext-vthreads.ads \
810 s-vxwork.ads
<s-vxwork-x86.ads \
811 system.ads
<system-vxworks-x86-vthread.ads \
812 $(ATOMICS_TARGET_PAIRS
) \
813 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
818 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
819 indepsw.adb
<indepsw-gnu.adb
821 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-thread.o
822 EXTRA_GNATRTL_TASKING_OBJS
=i-vxinco.o s-vxwork.o s-vxwext.o
824 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
825 GNATRTL_SOCKETS_OBJS
=
827 # Extra pairs for the vthreads runtime
828 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
829 LIBGNAT_TARGET_PAIRS
+= \
830 s-thread.adb
<s-thread-ae653.adb \
831 s-osvers.ads
<s-osvers-vxworks-653.ads \
832 $(DUMMY_SOCKETS_TARGET_PAIRS
)
834 GNATRTL_SOCKETS_OBJS
=
835 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o s-osvers.o
837 LIBGNAT_TARGET_PAIRS
+= \
838 g-socthi.ads
<g-socthi-vxworks.ads \
839 g-socthi.adb
<g-socthi-vxworks.adb \
840 g-stsifd.adb
<g-stsifd-sockets.adb
843 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
844 LIBGNAT_TARGET_PAIRS
+= \
845 s-traces.adb
<s-traces-default.adb \
846 s-trafor.adb
<s-trafor-default.adb \
847 s-trafor.ads
<s-trafor-default.ads \
848 s-tratas.adb
<s-tratas-default.adb \
849 s-tfsetr.adb
<s-tfsetr-vxworks.adb
854 ifeq ($(strip $(filter-out sparc
% wrs vx
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
855 LIBGNAT_TARGET_PAIRS
= \
856 a-intnam.ads
<a-intnam-vxworks.ads \
857 a-numaux.ads
<a-numaux-vxworks.ads \
858 s-inmaop.adb
<s-inmaop-vxworks.adb \
859 s-interr.adb
<s-interr-vxworks.adb \
860 s-intman.ads
<s-intman-vxworks.ads \
861 s-intman.adb
<s-intman-vxworks.adb \
862 s-osinte.adb
<s-osinte-vxworks.adb \
863 s-osinte.ads
<s-osinte-vxworks.ads \
864 s-osprim.adb
<s-osprim-vxworks.adb \
865 s-parame.ads
<s-parame-vxworks.ads \
866 s-parame.adb
<s-parame-vxworks.adb \
867 s-stchop.ads
<s-stchop-limit.ads \
868 s-stchop.adb
<s-stchop-vxworks.adb \
869 s-taprop.adb
<s-taprop-vxworks.adb \
870 s-tasinf.ads
<s-tasinf-vxworks.ads \
871 s-taspri.ads
<s-taspri-vxworks.ads \
872 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
873 g-socthi.ads
<g-socthi-vxworks.ads \
874 g-socthi.adb
<g-socthi-vxworks.adb \
875 g-stsifd.adb
<g-stsifd-sockets.adb
878 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
879 indepsw.adb
<indepsw-gnu.adb
881 ifeq ($(strip $(filter-out sparc64 sparcv9
, $(target_cpu
))),)
883 LIBGNAT_TARGET_PAIRS
+= \
884 s-vxwork.ads
<s-vxwork-sparcv9.ads \
885 system.ads
<system-vxworks-sparcv9.ads
888 LIBGNAT_TARGET_PAIRS
+= \
889 s-vxwork.ads
<s-vxwork-sparc.ads \
890 system.ads
<system-vxworks-sparc-kernel.ads
893 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
894 LIBGNAT_TARGET_PAIRS
+= \
895 s-vxwext.ads
<s-vxwext-kernel.ads \
896 s-vxwext.adb
<s-vxwext-kernel.adb
899 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-stchop.o
900 EXTRA_GNATRTL_TASKING_OBJS
=i-vxinco.o s-vxwork.o s-vxwext.o
902 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
906 ifeq ($(strip $(filter-out %86 x86_64 wrs vxworks vxworks7
,$(target_cpu
) $(target_vendor
) $(target_os
))),)
910 ifeq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
916 ifeq ($(strip $(filter-out x86_64
, $(target_cpu
))),)
918 LIBGNAT_TARGET_PAIRS
=s-atocou.adb
<s-atocou-builtin.adb
921 LIBGNAT_TARGET_PAIRS
=s-atocou.adb
<s-atocou-x86.adb
924 LIBGNAT_TARGET_PAIRS
+= \
925 a-intnam.ads
<a-intnam-vxworks.ads \
926 i-vxwork.ads
<i-vxwork-x86.ads \
927 s-osinte.adb
<s-osinte-vxworks.adb \
928 s-osinte.ads
<s-osinte-vxworks.ads \
929 s-inmaop.adb
<s-inmaop-vxworks.adb \
930 s-intman.ads
<s-intman-vxworks.ads \
931 s-intman.adb
<s-intman-vxworks.adb \
932 s-osprim.adb
<s-osprim-vxworks.adb \
933 s-parame.ads
<s-parame-vxworks.ads \
934 s-parame.adb
<s-parame-vxworks.adb \
935 s-stchop.ads
<s-stchop-limit.ads \
936 s-stchop.adb
<s-stchop-vxworks.adb \
937 s-taprop.adb
<s-taprop-vxworks.adb \
938 s-tasinf.ads
<s-tasinf-vxworks.ads \
939 s-taspri.ads
<s-taspri-vxworks.ads \
940 s-vxwork.ads
<s-vxwork-x86.ads \
941 g-socthi.ads
<g-socthi-vxworks.ads \
942 g-socthi.adb
<g-socthi-vxworks.adb \
943 g-stsifd.adb
<g-stsifd-sockets.adb \
944 $(ATOMICS_TARGET_PAIRS
) \
945 $(CERTMATH_TARGET_PAIRS
) \
946 $(CERTMATH_TARGET_PAIRS_SQRT_FPU
) \
947 $(CERTMATH_TARGET_PAIRS_X86TRA
)
950 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
951 indepsw.adb
<indepsw-gnu.adb
953 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
954 LIBGNAT_TARGET_PAIRS
+= \
955 s-traces.adb
<s-traces-default.adb \
956 s-trafor.adb
<s-trafor-default.adb \
957 s-trafor.ads
<s-trafor-default.ads \
958 s-tratas.adb
<s-tratas-default.adb \
959 s-tfsetr.adb
<s-tfsetr-vxworks.adb
962 # The CPU setting for VxSim varies with the
963 # host (Windows or Linux)
964 # target (VxWorks6 or VxWorks7)
965 # runtime (rtp or kernel)
966 # -------------------------------------------------------------
968 # Windows (host_os = mingw32)
970 # rtp SIMPENTIUM SIMNT
971 # Linux (host_os = linux-gnu)
972 # kernel SIMLINUX SIMLINUX
973 # rtp SIMPENTIUM SIMLINUX
974 # -------------------------------------------------------------
975 # It is overridden by VXSIM_CPU only in files init-vxsim.c and
976 # sigtramp-vxworks-vxsim.c which contain functions determined at
977 # runtime to be called if a program is running on VxSim vs real hardware
978 # (due to differences in signal context for unwinding).
980 ifneq ($(strip $(filter-out vxworks7
, $(target_os
))),)
981 ifeq ($(strip $(filter-out vxworks rtp rtp-smp
,$(target_os
) $(THREAD_KIND
))),)
982 VXSIM_CPU
= SIMPENTIUM
984 ifeq ($(strip $(filter-out kernel kernel-smp rtp rtp-smp
,$(THREAD_KIND
))),)
985 ifeq ($(strip $(filter-out linux
%,$(host_os
))),)
995 GNATLIBCFLAGS_FOR_C
:= $(GNATLIBCFLAGS_FOR_C
) -D__VXSIM_CPU__
=$(VXSIM_CPU
)
998 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
999 # Runtime N/A for VxWorks7 (non-existent system file)
1000 LIBGNAT_TARGET_PAIRS
+= \
1001 s-vxwext.ads
<s-vxwext-rtp.ads \
1002 s-vxwext.adb
<s-vxwext-rtp.adb \
1003 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
1004 system.ads
<system-vxworks-x86-rtp.ads
1006 ifeq ($(strip $(filter-out rtp-smp
, $(THREAD_KIND
))),)
1007 LIBGNAT_TARGET_PAIRS
+= \
1008 s-mudido.adb
<s-mudido-affinity.adb \
1009 s-vxwext.ads
<s-vxwext-rtp.ads \
1010 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
1011 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
1012 system.ads
<$(SVX
)-$(X86CPU
)-rtp-smp.ads
1014 EXTRA_LIBGNAT_OBJS
+=affinity.o
1016 ifeq ($(strip $(filter-out kernel-smp
, $(THREAD_KIND
))),)
1017 LIBGNAT_TARGET_PAIRS
+= \
1018 s-interr.adb
<s-interr-vxworks.adb \
1019 s-mudido.adb
<s-mudido-affinity.adb \
1020 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
1021 s-vxwext.ads
<s-vxwext-kernel.ads \
1022 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
1023 system.ads
<$(SVX
)-$(X86CPU
)-kernel.ads
1025 EXTRA_LIBGNAT_OBJS
+=affinity.o
1027 LIBGNAT_TARGET_PAIRS
+= \
1028 s-interr.adb
<s-interr-vxworks.adb \
1029 s-tpopsp.adb
<s-tpopsp-vxworks.adb
1031 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
1032 # Runtime N/A for VxWorks7 (non-existent system file)
1033 LIBGNAT_TARGET_PAIRS
+= \
1034 s-vxwext.ads
<s-vxwext-kernel.ads \
1035 s-vxwext.adb
<s-vxwext-kernel.adb \
1036 system.ads
<$(SVX
)-x86-kernel.ads
1038 LIBGNAT_TARGET_PAIRS
+= \
1039 system.ads
<system-vxworks-x86.ads
1043 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
1047 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-stchop.o \
1048 $(CERTMATH_GNATRTL_OBJS
) $(CERTMATH_GNATRTL_X86TRA_OBJS
)
1049 EXTRA_GNATRTL_TASKING_OBJS
+= i-vxinco.o s-vxwork.o s-vxwext.o
1051 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
1053 EXTRA_LIBGNAT_OBJS
+=sigtramp-vxworks.o
1054 EXTRA_LIBGNAT_SRCS
+=$(VX_SIGTRAMP_EXTRA_SRCS
)
1056 EXTRA_ADALIB_OBJS
+=$(VX_CRTBE_EXTRA_ADALIB_OBJS
)
1057 EXTRA_LIBGNAT_SRCS
+=vx_crtbegin.inc
1058 GCC_SPEC_FILES
+=vxworks-gnat-crtbe-link.spec
1060 ifeq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
1061 GCC_SPEC_FILES
+=vxworks7-
$(X86CPU
)-rtp-base-link.spec
1063 GCC_SPEC_FILES
+=vxworks-x86-link.spec
1064 GCC_SPEC_FILES
+=vxworks-cert-x86-link.spec
1065 GCC_SPEC_FILES
+=vxworks-smp-x86-link.spec
1070 ifeq ($(strip $(filter-out arm
% coff wrs vx
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1072 ifeq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
1075 SIGTRAMP_OBJ
=sigtramp-armvxworks.o
1079 SIGTRAMP_OBJ
=sigtramp-vxworks.o
1082 LIBGNAT_TARGET_PAIRS
= \
1083 a-intnam.ads
<a-intnam-vxworks.ads \
1084 a-numaux.ads
<a-numaux-vxworks.ads \
1085 s-inmaop.adb
<s-inmaop-vxworks.adb \
1086 s-interr.adb
<s-interr-vxworks.adb \
1087 s-intman.ads
<s-intman-vxworks.ads \
1088 s-intman.adb
<s-intman-vxworks.adb \
1089 s-osinte.adb
<s-osinte-vxworks.adb \
1090 s-osinte.ads
<s-osinte-vxworks.ads \
1091 s-osprim.adb
<s-osprim-vxworks.adb \
1092 s-parame.ads
<s-parame-vxworks.ads \
1093 s-parame.adb
<s-parame-vxworks.adb \
1094 s-stchop.ads
<s-stchop-limit.ads \
1095 s-stchop.adb
<s-stchop-vxworks.adb \
1096 s-taprop.adb
<s-taprop-vxworks.adb \
1097 s-tasinf.ads
<s-tasinf-vxworks.ads \
1098 s-taspri.ads
<s-taspri-vxworks.ads \
1099 s-vxwork.ads
<s-vxwork-arm.ads \
1100 g-socthi.ads
<g-socthi-vxworks.ads \
1101 g-socthi.adb
<g-socthi-vxworks.adb \
1102 g-stsifd.adb
<g-stsifd-sockets.adb
1104 TOOLS_TARGET_PAIRS
=\
1105 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
1106 indepsw.adb
<indepsw-gnu.adb
1108 ifeq ($(strip $(filter-out rtp-smp
,$(THREAD_KIND
))),)
1109 LIBGNAT_TARGET_PAIRS
+= \
1110 s-mudido.adb
<s-mudido-affinity.adb \
1111 s-vxwext.ads
<s-vxwext-rtp.ads \
1112 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
1113 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
1114 system.ads
<$(SVX
)-arm-rtp-smp.ads
1116 EXTRA_LIBGNAT_OBJS
+=affinity.o
1118 EXTRA_LIBGNAT_OBJS
+=$(SIGTRAMP_OBJ
)
1119 EXTRA_LIBGNAT_SRCS
+=$(VX_SIGTRAMP_EXTRA_SRCS
)
1121 ifeq ($(strip $(filter-out kernel-smp
,$(THREAD_KIND
))),)
1122 LIBGNAT_TARGET_PAIRS
+= \
1123 s-mudido.adb
<s-mudido-affinity.adb \
1124 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
1125 s-vxwext.ads
<s-vxwext-kernel.ads \
1126 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
1127 system.ads
<$(SVX
)-arm.ads
1129 EXTRA_LIBGNAT_OBJS
+=affinity.o
1131 EXTRA_LIBGNAT_OBJS
+=$(SIGTRAMP_OBJ
)
1132 EXTRA_LIBGNAT_SRCS
+=$(VX_SIGTRAMP_EXTRA_SRCS
)
1134 LIBGNAT_TARGET_PAIRS
+= \
1135 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
1136 system.ads
<$(SVX
)-arm.ads
1138 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
1139 LIBGNAT_TARGET_PAIRS
+= \
1140 s-vxwext.ads
<s-vxwext-kernel.ads \
1141 s-vxwext.adb
<s-vxwext-kernel.adb
1143 EXTRA_LIBGNAT_OBJS
+=$(SIGTRAMP_OBJ
)
1144 EXTRA_LIBGNAT_SRCS
+=$(VX_SIGTRAMP_EXTRA_SRCS
)
1149 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
$(CERTMATH_GNATRTL_OBJS
) \
1151 EXTRA_GNATRTL_TASKING_OBJS
=i-vxinco.o s-vxwork.o s-vxwext.o
1153 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
1155 ifeq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
1156 GCC_SPEC_FILES
+=vxworks7-rtp-base-link.spec
1158 EXTRA_ADALIB_OBJS
+=$(VX_CRTBE_EXTRA_ADALIB_OBJS
)
1159 EXTRA_LIBGNAT_SRCS
+=vx_crtbegin.inc
1160 GCC_SPEC_FILES
+=vxworks-gnat-crtbe-link.spec
1162 GCC_SPEC_FILES
+=vxworks-arm-link.spec
1163 GCC_SPEC_FILES
+=vxworks-smp-arm-link.spec
1168 ifeq ($(strip $(filter-out mips
% wrs vx
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1169 LIBGNAT_TARGET_PAIRS
= \
1170 a-intnam.ads
<a-intnam-vxworks.ads \
1171 a-numaux.ads
<a-numaux-vxworks.ads \
1172 s-inmaop.adb
<s-inmaop-vxworks.adb \
1173 s-interr.adb
<s-interr-vxworks.adb \
1174 s-intman.ads
<s-intman-vxworks.ads \
1175 s-intman.adb
<s-intman-vxworks.adb \
1176 s-osinte.adb
<s-osinte-vxworks.adb \
1177 s-osinte.ads
<s-osinte-vxworks.ads \
1178 s-osprim.adb
<s-osprim-vxworks.adb \
1179 s-parame.ads
<s-parame-vxworks.ads \
1180 s-parame.adb
<s-parame-vxworks.adb \
1181 s-stchop.ads
<s-stchop-limit.ads \
1182 s-stchop.adb
<s-stchop-vxworks.adb \
1183 s-taprop.adb
<s-taprop-vxworks.adb \
1184 s-tasinf.ads
<s-tasinf-vxworks.ads \
1185 s-taspri.ads
<s-taspri-vxworks.ads \
1186 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
1187 s-vxwork.ads
<s-vxwork-mips.ads \
1188 g-socthi.ads
<g-socthi-vxworks.ads \
1189 g-socthi.adb
<g-socthi-vxworks.adb \
1190 g-stsifd.adb
<g-stsifd-sockets.adb \
1191 system.ads
<system-vxworks-mips.ads
1193 TOOLS_TARGET_PAIRS
=\
1194 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
1195 indepsw.adb
<indepsw-gnu.adb
1197 ifeq ($(strip $(filter-out rtp-smp
,$(THREAD_KIND
))),)
1200 LIBGNAT_TARGET_PAIRS
+= \
1201 s-mudido.adb
<s-mudido-affinity.adb \
1202 s-vxwext.ads
<s-vxwext-rtp.ads \
1203 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
1204 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb
1206 EXTRA_LIBGNAT_OBJS
+=affinity.o
1208 EXTRA_LIBGNAT_OBJS
+=sigtramp-vxworks.o
1209 EXTRA_LIBGNAT_SRCS
+=$(VX_SIGTRAMP_EXTRA_SRCS
)
1211 ifeq ($(strip $(filter-out kernel-smp
,$(THREAD_KIND
))),)
1212 LIBGNAT_TARGET_PAIRS
+= \
1213 s-mudido.adb
<s-mudido-affinity.adb \
1214 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
1215 s-vxwext.ads
<s-vxwext-kernel.ads \
1216 s-vxwext.adb
<s-vxwext-kernel-smp.adb
1218 EXTRA_LIBGNAT_OBJS
+=affinity.o
1220 LIBGNAT_TARGET_PAIRS
+= \
1221 s-tpopsp.adb
<s-tpopsp-vxworks.adb
1223 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
1224 LIBGNAT_TARGET_PAIRS
+= \
1225 s-vxwext.ads
<s-vxwext-kernel.ads \
1226 s-vxwext.adb
<s-vxwext-kernel.adb
1231 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-stchop.o
1232 EXTRA_GNATRTL_TASKING_OBJS
=i-vxinco.o s-vxwork.o s-vxwext.o
1234 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
1238 ifeq ($(strip $(filter-out arm
% linux-androideabi
,$(target_cpu
) $(target_os
))),)
1239 LIBGNAT_TARGET_PAIRS
= \
1240 a-intnam.ads
<a-intnam-linux.ads \
1241 s-inmaop.adb
<s-inmaop-posix.adb \
1242 s-intman.adb
<s-intman-android.adb \
1243 s-linux.ads
<s-linux-android.ads \
1244 s-osinte.adb
<s-osinte-android.adb \
1245 s-osinte.ads
<s-osinte-android.ads \
1246 s-osprim.adb
<s-osprim-posix.adb \
1247 s-taprop.adb
<s-taprop-posix.adb \
1248 s-taspri.ads
<s-taspri-posix.ads \
1249 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1250 $(ATOMICS_TARGET_PAIRS
) \
1251 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1252 system.ads
<system-linux-arm.ads
1254 TOOLS_TARGET_PAIRS
= \
1255 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1256 indepsw.adb
<indepsw-gnu.adb
1258 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1259 EXTRA_LIBGNAT_OBJS
+=sigtramp-armdroid.o
1260 EXTRA_LIBGNAT_SRCS
+=sigtramp.h
1263 GNATLIB_SHARED
= gnatlib-shared-dual
1264 LIBRARY_VERSION
:= $(LIB_VERSION
)
1268 ifeq ($(strip $(filter-out sparc
% sun solaris
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1269 LIBGNAT_TARGET_PAIRS
= \
1270 a-intnam.ads
<a-intnam-solaris.ads \
1271 s-inmaop.adb
<s-inmaop-posix.adb \
1272 s-intman.adb
<s-intman-solaris.adb \
1273 s-mudido.adb
<s-mudido-affinity.adb \
1274 s-osinte.adb
<s-osinte-solaris.adb \
1275 s-osinte.ads
<s-osinte-solaris.ads \
1276 s-osprim.adb
<s-osprim-solaris.adb \
1277 s-taprop.adb
<s-taprop-solaris.adb \
1278 s-tasinf.adb
<s-tasinf-solaris.adb \
1279 s-tasinf.ads
<s-tasinf-solaris.ads \
1280 s-taspri.ads
<s-taspri-solaris.ads \
1281 s-tpopsp.adb
<s-tpopsp-solaris.adb \
1282 g-soliop.ads
<g-soliop-solaris.ads \
1283 $(ATOMICS_TARGET_PAIRS
) \
1284 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1285 system.ads
<system-solaris-sparc.ads
1287 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
1290 THREADSLIB
= -lposix4
-lthread
1291 MISCLIB
= -lposix4
-lnsl
-lsocket
1293 GNATLIB_SHARED
= gnatlib-shared-dual
1295 LIBRARY_VERSION
:= $(LIB_VERSION
)
1297 ifeq ($(strip $(filter-out pthread PTHREAD
,$(THREAD_KIND
))),)
1298 LIBGNAT_TARGET_PAIRS
= \
1299 a-intnam.ads
<a-intnam-solaris.ads \
1300 s-inmaop.adb
<s-inmaop-posix.adb \
1301 s-intman.adb
<s-intman-posix.adb \
1302 s-osinte.adb
<s-osinte-posix.adb \
1303 s-osinte.ads
<s-osinte-solaris-posix.ads \
1304 s-osprim.adb
<s-osprim-solaris.adb \
1305 s-taprop.adb
<s-taprop-posix.adb \
1306 s-taspri.ads
<s-taspri-posix.ads \
1307 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1308 g-soliop.ads
<g-soliop-solaris.ads \
1309 system.ads
<system-solaris-sparc.ads
1311 THREADSLIB
= -lposix4
-lpthread
1314 ifeq ($(strip $(filter-out m64
,$(THREAD_KIND
))),)
1315 LIBGNAT_TARGET_PAIRS
= $(LIBGNAT_TARGET_PAIRS_64
)
1319 # x86 and x86-64 solaris
1320 ifeq ($(strip $(filter-out %86 %x86_64 solaris2
%,$(target_cpu
) $(target_os
))),)
1321 LIBGNAT_TARGET_PAIRS_COMMON
= \
1322 a-intnam.ads
<a-intnam-solaris.ads \
1323 s-inmaop.adb
<s-inmaop-posix.adb \
1324 s-intman.adb
<s-intman-solaris.adb \
1325 s-mudido.adb
<s-mudido-affinity.adb \
1326 s-osinte.adb
<s-osinte-solaris.adb \
1327 s-osinte.ads
<s-osinte-solaris.ads \
1328 s-osprim.adb
<s-osprim-solaris.adb \
1329 s-taprop.adb
<s-taprop-solaris.adb \
1330 s-tasinf.adb
<s-tasinf-solaris.adb \
1331 s-tasinf.ads
<s-tasinf-solaris.ads \
1332 s-taspri.ads
<s-taspri-solaris.ads \
1333 s-tpopsp.adb
<s-tpopsp-solaris.adb \
1334 g-soliop.ads
<g-soliop-solaris.ads \
1335 $(ATOMICS_TARGET_PAIRS
) \
1336 system.ads
<system-solaris-x86.ads
1338 ifeq ($(strip $(filter-out %86 solaris2
%,$(target_cpu
) $(target_os
))),)
1339 ifeq ($(strip $(MULTISUBDIR
)),/amd64
)
1340 LIBGNAT_TARGET_PAIRS
= \
1341 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(X86_64_TARGET_PAIRS
)
1343 LIBGNAT_TARGET_PAIRS
= \
1344 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(X86_TARGET_PAIRS
)
1347 ifeq ($(strip $(MULTISUBDIR
)),/32)
1348 LIBGNAT_TARGET_PAIRS
= \
1349 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(X86_TARGET_PAIRS
)
1351 LIBGNAT_TARGET_PAIRS
= \
1352 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(X86_64_TARGET_PAIRS
)
1356 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
1358 EXTRA_GNATRTL_NONTASKING_OBJS
+= g-sse.o g-ssvety.o
1361 THREADSLIB
= -lposix4
-lthread
1362 MISCLIB
= -lposix4
-lnsl
-lsocket
1364 GNATLIB_SHARED
= gnatlib-shared-dual
1366 LIBRARY_VERSION
:= $(LIB_VERSION
)
1370 ifeq ($(strip $(filter-out %86 linux
%,$(target_cpu
) $(target_os
))),)
1371 LIBGNAT_TARGET_PAIRS
= \
1372 a-intnam.ads
<a-intnam-linux.ads \
1373 a-synbar.adb
<a-synbar-posix.adb \
1374 a-synbar.ads
<a-synbar-posix.ads \
1375 s-inmaop.adb
<s-inmaop-posix.adb \
1376 s-intman.adb
<s-intman-posix.adb \
1377 s-tpopsp.adb
<s-tpopsp-tls.adb \
1378 g-sercom.adb
<g-sercom-linux.adb \
1379 a-exetim.adb
<a-exetim-posix.adb \
1380 a-exetim.ads
<a-exetim-default.ads \
1381 s-linux.ads
<s-linux.ads \
1382 s-osinte.adb
<s-osinte-posix.adb \
1383 $(ATOMICS_TARGET_PAIRS
) \
1384 system.ads
<system-linux-x86.ads
1386 ifeq ($(strip $(MULTISUBDIR
)),/64)
1387 LIBGNAT_TARGET_PAIRS
+= $(X86_64_TARGET_PAIRS
)
1389 LIBGNAT_TARGET_PAIRS
+= $(X86_TARGET_PAIRS
)
1392 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1393 LIBGNAT_TARGET_PAIRS
+= \
1394 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1395 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1396 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1397 s-taspri.ads
<s-taspri-linux-xenomai.ads
1399 LIBGNAT_TARGET_PAIRS
+= \
1400 s-mudido.adb
<s-mudido-affinity.adb \
1401 s-osinte.ads
<s-osinte-linux.ads \
1402 s-osprim.adb
<s-osprim-posix.adb \
1403 s-taprop.adb
<s-taprop-linux.adb \
1404 s-tasinf.ads
<s-tasinf-linux.ads \
1405 s-tasinf.adb
<s-tasinf-linux.adb \
1406 s-taspri.ads
<s-taspri-posix.ads
1410 THREADSLIB
= -lpthread
-lrt
1411 EXTRA_GNATRTL_NONTASKING_OBJS
+= g-sse.o g-ssvety.o
1412 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1414 TOOLS_TARGET_PAIRS
= \
1415 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1416 indepsw.adb
<indepsw-gnu.adb
1418 GNATLIB_SHARED
= gnatlib-shared-dual
1421 LIBRARY_VERSION
:= $(LIB_VERSION
)
1425 ifeq ($(strip $(filter-out %86 kfreebsd
%,$(target_cpu
) $(target_os
))),)
1426 LIBGNAT_TARGET_PAIRS
= \
1427 a-intnam.ads
<a-intnam-freebsd.ads \
1428 s-inmaop.adb
<s-inmaop-posix.adb \
1429 s-intman.adb
<s-intman-posix.adb \
1430 s-osinte.adb
<s-osinte-posix.adb \
1431 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1432 s-osprim.adb
<s-osprim-posix.adb \
1433 s-taprop.adb
<s-taprop-posix.adb \
1434 s-taspri.ads
<s-taspri-posix.ads \
1435 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1436 $(ATOMICS_TARGET_PAIRS
) \
1437 $(X86_TARGET_PAIRS
) \
1438 system.ads
<system-freebsd-x86.ads
1440 TOOLS_TARGET_PAIRS
= \
1441 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1442 indepsw.adb
<indepsw-gnu.adb
1444 EXTRA_GNATRTL_NONTASKING_OBJS
+= g-sse.o g-ssvety.o
1447 THREADSLIB
= -lpthread
1448 GNATLIB_SHARED
= gnatlib-shared-dual
1450 LIBRARY_VERSION
:= $(LIB_VERSION
)
1454 # i[3456]86-pc-gnu i.e. GNU Hurd
1455 ifeq ($(strip $(filter-out %86 pc gnu
,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1456 LIBGNAT_TARGET_PAIRS
= \
1457 a-intnam.ads
<a-intnam-freebsd.ads \
1458 s-inmaop.adb
<s-inmaop-posix.adb \
1459 s-intman.adb
<s-intman-posix.adb \
1460 s-osinte.adb
<s-osinte-gnu.adb \
1461 s-osinte.ads
<s-osinte-gnu.ads \
1462 s-osprim.adb
<s-osprim-posix.adb \
1463 s-taprop.adb
<s-taprop-posix.adb \
1464 s-taspri.ads
<s-taspri-posix.ads \
1465 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1466 $(ATOMICS_TARGET_PAIRS
) \
1467 $(X86_TARGET_PAIRS
) \
1468 system.ads
<system-freebsd-x86.ads
1470 TOOLS_TARGET_PAIRS
= \
1471 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1472 indepsw.adb
<indepsw-gnu.adb
1474 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1477 THREADSLIB
= -lpthread
1478 GNATLIB_SHARED
= gnatlib-shared-dual
1480 LIBRARY_VERSION
:= $(LIB_VERSION
)
1483 ifeq ($(strip $(filter-out x86_64 kfreebsd
%,$(target_cpu
) $(target_os
))),)
1484 LIBGNAT_TARGET_PAIRS
= \
1485 a-intnam.ads
<a-intnam-freebsd.ads \
1486 a-numaux.adb
<a-numaux-x86.adb \
1487 a-numaux.ads
<a-numaux-x86.ads \
1488 s-inmaop.adb
<s-inmaop-posix.adb \
1489 s-intman.adb
<s-intman-posix.adb \
1490 s-osinte.adb
<s-osinte-posix.adb \
1491 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1492 s-osprim.adb
<s-osprim-posix.adb \
1493 s-taprop.adb
<s-taprop-posix.adb \
1494 s-taspri.ads
<s-taspri-posix.ads \
1495 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1496 system.ads
<system-freebsd-x86.ads
1498 TOOLS_TARGET_PAIRS
= \
1499 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1500 indepsw.adb
<indepsw-gnu.adb
1503 THREADSLIB
= -lpthread
1504 GNATLIB_SHARED
= gnatlib-shared-dual
1506 LIBRARY_VERSION
:= $(LIB_VERSION
)
1510 ifeq ($(strip $(filter-out %aarch64 freebsd
%,$(target_cpu
) $(target_os
))),)
1511 LIBGNAT_TARGET_PAIRS
= \
1512 a-intnam.ads
<a-intnam-freebsd.ads \
1513 s-inmaop.adb
<s-inmaop-posix.adb \
1514 s-intman.adb
<s-intman-posix.adb \
1515 s-mudido.adb
<s-mudido-affinity.adb \
1516 s-osinte.adb
<s-osinte-freebsd.adb \
1517 s-osinte.ads
<s-osinte-freebsd.ads \
1518 s-osprim.adb
<s-osprim-posix.adb \
1519 s-taprop.adb
<s-taprop-posix.adb \
1520 s-taspri.ads
<s-taspri-posix.ads \
1521 s-tpopsp.adb
<s-tpopsp-posix.adb \
1522 $(ATOMICS_TARGET_PAIRS
) \
1523 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1524 system.ads
<system-freebsd.ads
1526 TOOLS_TARGET_PAIRS
= \
1527 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
1528 GNATLIB_SHARED
= gnatlib-shared-dual
1531 THREADSLIB
= -lpthread
1533 LIBRARY_VERSION
:= $(LIB_VERSION
)
1538 ifeq ($(strip $(filter-out %86 freebsd
%,$(target_cpu
) $(target_os
))),)
1539 LIBGNAT_TARGET_PAIRS
= \
1540 a-intnam.ads
<a-intnam-freebsd.ads \
1541 s-inmaop.adb
<s-inmaop-posix.adb \
1542 s-intman.adb
<s-intman-posix.adb \
1543 s-mudido.adb
<s-mudido-affinity.adb \
1544 s-osinte.adb
<s-osinte-freebsd.adb \
1545 s-osinte.ads
<s-osinte-freebsd.ads \
1546 s-osprim.adb
<s-osprim-posix.adb \
1547 s-taprop.adb
<s-taprop-posix.adb \
1548 s-taspri.ads
<s-taspri-posix.ads \
1549 s-tpopsp.adb
<s-tpopsp-posix.adb \
1550 $(ATOMICS_TARGET_PAIRS
) \
1551 $(X86_TARGET_PAIRS
) \
1552 system.ads
<system-freebsd.ads
1554 TOOLS_TARGET_PAIRS
= \
1555 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
1556 GNATLIB_SHARED
= gnatlib-shared-dual
1558 EXTRA_GNATRTL_NONTASKING_OBJS
+= g-sse.o g-ssvety.o
1561 THREADSLIB
= -lpthread
1563 LIBRARY_VERSION
:= $(LIB_VERSION
)
1568 ifeq ($(strip $(filter-out %86_64 freebsd
%,$(target_cpu
) $(target_os
))),)
1569 LIBGNAT_TARGET_PAIRS
= \
1570 a-intnam.ads
<a-intnam-freebsd.ads \
1571 s-inmaop.adb
<s-inmaop-posix.adb \
1572 s-intman.adb
<s-intman-posix.adb \
1573 s-mudido.adb
<s-mudido-affinity.adb \
1574 s-osinte.adb
<s-osinte-freebsd.adb \
1575 s-osinte.ads
<s-osinte-freebsd.ads \
1576 s-osprim.adb
<s-osprim-posix.adb \
1577 s-taprop.adb
<s-taprop-posix.adb \
1578 s-taspri.ads
<s-taspri-posix.ads \
1579 s-tpopsp.adb
<s-tpopsp-posix.adb \
1580 $(ATOMICS_TARGET_PAIRS
) \
1581 $(X86_64_TARGET_PAIRS
) \
1582 system.ads
<system-freebsd.ads
1584 TOOLS_TARGET_PAIRS
= \
1585 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
1586 GNATLIB_SHARED
= gnatlib-shared-dual
1588 EXTRA_GNATRTL_NONTASKING_OBJS
+= g-sse.o g-ssvety.o
1591 THREADSLIB
= -lpthread
1593 LIBRARY_VERSION
:= $(LIB_VERSION
)
1598 ifeq ($(strip $(filter-out %86_64 dragonfly
%,$(target_cpu
) $(target_os
))),)
1599 LIBGNAT_TARGET_PAIRS
= \
1600 a-intnam.ads
<a-intnam-dragonfly.ads \
1601 s-inmaop.adb
<s-inmaop-posix.adb \
1602 s-intman.adb
<s-intman-posix.adb \
1603 s-mudido.adb
<s-mudido-affinity.adb \
1604 s-osinte.adb
<s-osinte-dragonfly.adb \
1605 s-osinte.ads
<s-osinte-dragonfly.ads \
1606 s-osprim.adb
<s-osprim-posix.adb \
1607 s-taprop.adb
<s-taprop-posix.adb \
1608 s-taspri.ads
<s-taspri-posix.ads \
1609 s-tpopsp.adb
<s-tpopsp-posix.adb \
1610 $(ATOMICS_TARGET_PAIRS
) \
1611 $(X86_64_TARGET_PAIRS
) \
1612 system.ads
<system-dragonfly-x86_64.ads
1614 TOOLS_TARGET_PAIRS
= \
1615 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
1616 GNATLIB_SHARED
= gnatlib-shared-dual
1618 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1621 THREADSLIB
= -lpthread
1623 LIBRARY_VERSION
:= $(LIB_VERSION
)
1628 ifeq ($(strip $(filter-out s390
% linux
%,$(target_cpu
) $(target_os
))),)
1629 LIBGNAT_TARGET_PAIRS
= \
1630 a-intnam.ads
<a-intnam-linux.ads \
1631 s-inmaop.adb
<s-inmaop-posix.adb \
1632 s-intman.adb
<s-intman-posix.adb \
1633 s-linux.ads
<s-linux.ads \
1634 s-osinte.adb
<s-osinte-posix.adb \
1635 s-osinte.ads
<s-osinte-linux.ads \
1636 s-osprim.adb
<s-osprim-posix.adb \
1637 s-taprop.adb
<s-taprop-linux.adb \
1638 s-tasinf.ads
<s-tasinf-linux.ads \
1639 s-tasinf.adb
<s-tasinf-linux.adb \
1640 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1641 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1642 system.ads
<system-linux-s390.ads
1644 TOOLS_TARGET_PAIRS
= \
1645 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1646 indepsw.adb
<indepsw-gnu.adb
1648 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1650 THREADSLIB
= -lpthread
1651 GNATLIB_SHARED
= gnatlib-shared-dual
1652 LIBRARY_VERSION
:= $(LIB_VERSION
)
1656 ifeq ($(strip $(filter-out hppa
% hp hpux10
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1657 LIBGNAT_TARGET_PAIRS
= \
1658 a-excpol.adb
<a-excpol-abort.adb \
1659 a-intnam.ads
<a-intnam-hpux.ads \
1660 s-inmaop.adb
<s-inmaop-posix.adb \
1661 s-interr.adb
<s-interr-sigaction.adb \
1662 s-intman.adb
<s-intman-posix.adb \
1663 s-osinte.adb
<s-osinte-hpux-dce.adb \
1664 s-osinte.ads
<s-osinte-hpux-dce.ads \
1665 s-parame.ads
<s-parame-hpux.ads \
1666 s-osprim.adb
<s-osprim-posix.adb \
1667 s-taprop.adb
<s-taprop-hpux-dce.adb \
1668 s-taspri.ads
<s-taspri-hpux-dce.ads \
1669 s-tpopsp.adb
<s-tpopsp-posix.adb \
1670 system.ads
<system-hpux.ads
1676 ifeq ($(strip $(filter-out hppa
% hp hpux11
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1677 LIBGNAT_TARGET_PAIRS
= \
1678 a-intnam.ads
<a-intnam-hpux.ads \
1679 s-inmaop.adb
<s-inmaop-posix.adb \
1680 s-intman.adb
<s-intman-posix.adb \
1681 s-osinte.adb
<s-osinte-posix.adb \
1682 s-osinte.ads
<s-osinte-hpux.ads \
1683 s-parame.ads
<s-parame-hpux.ads \
1684 s-osprim.adb
<s-osprim-posix.adb \
1685 s-traceb.adb
<s-traceb-hpux.adb \
1686 s-taprop.adb
<s-taprop-posix.adb \
1687 s-taspri.ads
<s-taspri-posix.ads \
1688 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1689 system.ads
<system-hpux.ads
1691 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-hpux.adb
1693 TGT_LIB
= /usr
/lib
/libcl.a
1694 THREADSLIB
= -lpthread
1698 GNATLIB_SHARED
= gnatlib-shared-dual
1699 LIBRARY_VERSION
:= $(LIB_VERSION
)
1703 ifeq ($(strip $(filter-out ibm aix
%,$(target_vendor
) $(target_os
))),)
1704 LIBGNAT_TARGET_PAIRS
= \
1705 a-intnam.ads
<a-intnam-aix.ads \
1706 s-inmaop.adb
<s-inmaop-posix.adb \
1707 s-intman.adb
<s-intman-posix.adb \
1708 s-osinte.adb
<s-osinte-aix.adb \
1709 s-osinte.ads
<s-osinte-aix.ads \
1710 s-osprim.adb
<s-osprim-posix.adb \
1711 s-taprop.adb
<s-taprop-posix.adb \
1712 s-taspri.ads
<s-taspri-posix.ads \
1713 s-tpopsp.adb
<s-tpopsp-posix.adb \
1714 $(ATOMICS_TARGET_PAIRS
) \
1715 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1716 system.ads
<system-aix.ads
1718 ifeq ($(findstring ppc64
, \
1719 $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) \
1720 -print-multi-os-directory
)), \
1722 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-aix.adb
1724 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1727 THREADSLIB
= -lpthreads
1729 TOOLS_TARGET_PAIRS
+= \
1730 mlib-tgt-specific.adb
<mlib-tgt-specific-aix.adb
1736 ifeq ($(strip $(filter-out rtems
%,$(target_os
))),)
1737 LIBGNAT_TARGET_PAIRS
= \
1738 system.ads
<system-rtems.ads \
1739 a-intnam.ads
<a-intnam-rtems.ads \
1740 s-inmaop.adb
<s-inmaop-posix.adb \
1741 s-intman.adb
<s-intman-posix.adb \
1742 s-osinte.adb
<s-osinte-rtems.adb \
1743 s-osinte.ads
<s-osinte-rtems.ads \
1744 s-osprim.adb
<s-osprim-posix.adb \
1745 s-parame.adb
<s-parame-rtems.adb \
1746 s-taprop.adb
<s-taprop-posix.adb \
1747 s-taspri.ads
<s-taspri-posix.ads \
1748 s-tpopsp.adb
<s-tpopsp-tls.adb \
1749 s-stchop.adb
<s-stchop-rtems.adb \
1750 s-interr.adb
<s-interr-hwint.adb
1754 ifeq ($(strip $(filter-out powerpc
% %86 sysgo pikeos
,$(target_cpu
) $(target_vendor
) $(target_os
)))),)
1755 TOOLS_TARGET_PAIRS
=\
1756 mlib-tgt-specific.adb
<mlib-tgt-specific-xi.adb \
1757 indepsw.adb
<indepsw-gnu.adb
1760 # *-elf, *-eabi, or *-eabispe
1761 ifeq ($(strip $(filter-out elf eabi eabispe
,$(target_os
))),)
1762 TOOLS_TARGET_PAIRS
=\
1763 mlib-tgt-specific.adb
<mlib-tgt-specific-xi.adb \
1764 indepsw.adb
<indepsw-gnu.adb
1767 ifeq ($(strip $(filter-out %djgpp
,$(target_os
))),)
1768 GNATRTL_SOCKETS_OBJS
=
1770 LIBGNAT_TARGET_PAIRS
= \
1771 a-intnam.ads
<a-intnam-dummy.ads \
1772 s-inmaop.adb
<s-inmaop-dummy.adb \
1773 s-intman.adb
<s-intman-dummy.adb \
1774 s-osinte.ads
<s-osinte-dummy.ads \
1775 s-osprim.adb
<s-osprim-unix.adb \
1776 s-taprop.adb
<s-taprop-dummy.adb \
1777 s-taspri.ads
<s-taspri-dummy.ads \
1778 system.ads
<system-djgpp.ads \
1779 $(DUMMY_SOCKETS_TARGET_PAIRS
)
1785 ifeq ($(strip $(filter-out cygwin
% mingw32
% pe
,$(target_os
))),)
1786 # Cygwin provides a full Posix environment, and so we use the default
1787 # versions of s-memory and g-socthi rather than the Windows-specific
1788 # MinGW versions. Ideally we would use all the default versions for
1789 # Cygwin and none of the MinGW versions, but for historical reasons
1790 # the Cygwin port has always been a CygMing frankenhybrid and it is
1791 # a long-term project to disentangle them.
1792 ifeq ($(strip $(filter-out cygwin
%,$(target_os
))),)
1793 LIBGNAT_TARGET_PAIRS
= \
1794 s-memory.adb
<s-memory.adb \
1795 g-socthi.ads
<g-socthi.ads \
1796 g-socthi.adb
<g-socthi.adb
1798 LIBGNAT_TARGET_PAIRS
= \
1799 s-memory.adb
<s-memory-mingw.adb \
1800 g-socthi.ads
<g-socthi-mingw.ads \
1801 g-socthi.adb
<g-socthi-mingw.adb
1803 LIBGNAT_TARGET_PAIRS
+= \
1804 a-dirval.adb
<a-dirval-mingw.adb \
1805 a-excpol.adb
<a-excpol-abort.adb \
1806 s-gloloc.adb
<s-gloloc-mingw.adb \
1807 s-inmaop.adb
<s-inmaop-dummy.adb \
1808 s-taspri.ads
<s-taspri-mingw.ads \
1809 s-tasinf.adb
<s-tasinf-mingw.adb \
1810 s-tasinf.ads
<s-tasinf-mingw.ads \
1811 g-stsifd.adb
<g-stsifd-sockets.adb \
1812 g-soliop.ads
<g-soliop-mingw.ads \
1813 $(ATOMICS_TARGET_PAIRS
) \
1814 system.ads
<system-mingw.ads
1816 LIBGNAT_TARGET_PAIRS
+= \
1817 a-exetim.adb
<a-exetim-mingw.adb \
1818 a-exetim.ads
<a-exetim-mingw.ads \
1819 a-intnam.ads
<a-intnam-mingw.ads \
1820 g-sercom.adb
<g-sercom-mingw.adb \
1821 s-interr.adb
<s-interr-sigaction.adb \
1822 s-intman.adb
<s-intman-mingw.adb \
1823 s-mudido.adb
<s-mudido-affinity.adb \
1824 s-osinte.ads
<s-osinte-mingw.ads \
1825 s-osprim.adb
<s-osprim-mingw.adb \
1826 s-taprop.adb
<s-taprop-mingw.adb
1828 ifeq ($(strip $(filter-out x86_64
%,$(target_cpu
))),)
1829 ifeq ($(strip $(MULTISUBDIR
)),/32)
1830 LIBGNAT_TARGET_PAIRS
+= $(X86_TARGET_PAIRS
)
1831 SO_OPTS
= -m32
-Wl
,-soname
,
1833 LIBGNAT_TARGET_PAIRS
+= $(X86_64_TARGET_PAIRS
)
1834 SO_OPTS
= -m64
-Wl
,-soname
,
1837 ifeq ($(strip $(MULTISUBDIR
)),/64)
1838 LIBGNAT_TARGET_PAIRS
+= $(X86_64_TARGET_PAIRS
)
1839 SO_OPTS
= -m64
-Wl
,-soname
,
1841 LIBGNAT_TARGET_PAIRS
+= $(X86_TARGET_PAIRS
)
1842 SO_OPTS
= -m32
-Wl
,-soname
,
1846 EXTRA_GNATRTL_NONTASKING_OBJS
+= \
1847 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1848 EXTRA_GNATRTL_TASKING_OBJS
= a-exetim.o
1849 EXTRA_LIBGNAT_SRCS
+=mingw32.h
1852 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1853 # auto-import support for array/record will be done.
1854 GNATLIB_SHARED
= gnatlib-shared-win32
1858 TOOLS_TARGET_PAIRS
= \
1859 mlib-tgt-specific.adb
<mlib-tgt-specific-mingw.adb \
1860 indepsw.adb
<indepsw-mingw.adb
1863 EXTRA_GNATTOOLS
= ..
/..
/gnatdll
$(exeext
)
1864 EXTRA_GNATMAKE_OBJS
= mdll.o mdll-utl.o mdll-fil.o
1866 LIBRARY_VERSION
:= $(LIB_VERSION
)
1870 ifeq ($(strip $(filter-out mips
% linux
%,$(target_cpu
) $(target_os
))),)
1871 LIBGNAT_TARGET_PAIRS
= \
1872 a-intnam.ads
<a-intnam-linux.ads \
1873 s-inmaop.adb
<s-inmaop-posix.adb \
1874 s-intman.adb
<s-intman-posix.adb \
1875 s-linux.ads
<s-linux-mips.ads \
1876 s-osinte.adb
<s-osinte-posix.adb \
1877 s-osinte.ads
<s-osinte-linux.ads \
1878 s-osprim.adb
<s-osprim-posix.adb \
1879 s-taprop.adb
<s-taprop-linux.adb \
1880 s-tasinf.ads
<s-tasinf-linux.ads \
1881 s-tasinf.adb
<s-tasinf-linux.adb \
1882 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1883 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1884 g-sercom.adb
<g-sercom-linux.adb \
1885 system.ads
<system-linux-mips.ads
1887 TOOLS_TARGET_PAIRS
= \
1888 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1889 indepsw.adb
<indepsw-gnu.adb
1891 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1893 THREADSLIB
= -lpthread
1894 GNATLIB_SHARED
= gnatlib-shared-dual
1896 LIBRARY_VERSION
:= $(LIB_VERSION
)
1899 # PowerPC and e500v2 Linux
1900 ifeq ($(strip $(filter-out powerpc
% linux
%,$(target_cpu
) $(target_os
))),)
1901 LIBGNAT_TARGET_PAIRS_COMMON
= \
1902 a-exetim.adb
<a-exetim-posix.adb \
1903 a-exetim.ads
<a-exetim-default.ads \
1904 a-intnam.ads
<a-intnam-linux.ads \
1905 a-synbar.adb
<a-synbar-posix.adb \
1906 a-synbar.ads
<a-synbar-posix.ads \
1907 s-inmaop.adb
<s-inmaop-posix.adb \
1908 s-intman.adb
<s-intman-posix.adb \
1909 s-linux.ads
<s-linux.ads \
1910 s-osinte.adb
<s-osinte-posix.adb \
1911 s-tpopsp.adb
<s-tpopsp-tls.adb \
1912 g-sercom.adb
<g-sercom-linux.adb \
1913 $(ATOMICS_TARGET_PAIRS
) \
1914 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1915 system.ads
<system-linux-ppc.ads
1917 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1918 LIBGNAT_TARGET_PAIRS
= \
1919 $(LIBGNAT_TARGET_PAIRS_COMMON
) \
1920 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1921 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1922 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1923 s-taspri.ads
<s-taspri-linux-xenomai.ads
1925 LIBGNAT_TARGET_PAIRS
= \
1926 $(LIBGNAT_TARGET_PAIRS_COMMON
) \
1927 s-mudido.adb
<s-mudido-affinity.adb \
1928 s-osinte.ads
<s-osinte-linux.ads \
1929 s-osprim.adb
<s-osprim-posix.adb \
1930 s-taprop.adb
<s-taprop-linux.adb \
1931 s-tasinf.ads
<s-tasinf-linux.ads \
1932 s-tasinf.adb
<s-tasinf-linux.adb \
1933 s-taspri.ads
<s-taspri-posix-noaltstack.ads
1936 TOOLS_TARGET_PAIRS
= \
1937 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1938 indepsw.adb
<indepsw-gnu.adb
1940 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1943 THREADSLIB
= -lpthread
-lrt
1944 GNATLIB_SHARED
= gnatlib-shared-dual
1946 LIBRARY_VERSION
:= $(LIB_VERSION
)
1949 # ARM linux, GNU eabi
1950 ifeq ($(strip $(filter-out arm
% linux-gnueabi
%,$(target_cpu
) $(target_os
))),)
1951 LIBGNAT_TARGET_PAIRS
= \
1952 a-intnam.ads
<a-intnam-linux.ads \
1953 s-inmaop.adb
<s-inmaop-posix.adb \
1954 s-intman.adb
<s-intman-posix.adb \
1955 s-linux.ads
<s-linux.ads \
1956 s-osinte.adb
<s-osinte-posix.adb \
1957 s-osinte.ads
<s-osinte-linux.ads \
1958 s-osprim.adb
<s-osprim-posix.adb \
1959 s-taprop.adb
<s-taprop-linux.adb \
1960 s-tasinf.ads
<s-tasinf-linux.ads \
1961 s-tasinf.adb
<s-tasinf-linux.adb \
1962 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1963 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1964 $(ATOMICS_TARGET_PAIRS
) \
1965 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1966 system.ads
<system-linux-arm.ads
1968 ifeq ($(strip $(filter-out arm
%b
,$(target_cpu
))),)
1974 TOOLS_TARGET_PAIRS
= \
1975 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1976 indepsw.adb
<indepsw-gnu.adb
1978 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1979 THREADSLIB
= -lpthread
1980 GNATLIB_SHARED
= gnatlib-shared-dual
1982 LIBRARY_VERSION
:= $(LIB_VERSION
)
1986 ifeq ($(strip $(filter-out aarch64
% linux
%,$(target_cpu
) $(target_os
))),)
1987 LIBGNAT_TARGET_PAIRS
= \
1988 a-exetim.adb
<a-exetim-posix.adb \
1989 a-exetim.ads
<a-exetim-default.ads \
1990 a-intnam.ads
<a-intnam-linux.ads \
1991 a-synbar.adb
<a-synbar-posix.adb \
1992 a-synbar.ads
<a-synbar-posix.ads \
1993 s-inmaop.adb
<s-inmaop-posix.adb \
1994 s-intman.adb
<s-intman-posix.adb \
1995 s-linux.ads
<s-linux.ads \
1996 s-mudido.adb
<s-mudido-affinity.adb \
1997 s-osinte.ads
<s-osinte-linux.ads \
1998 s-osinte.adb
<s-osinte-posix.adb \
1999 s-osprim.adb
<s-osprim-posix.adb \
2000 s-taprop.adb
<s-taprop-linux.adb \
2001 s-tasinf.ads
<s-tasinf-linux.ads \
2002 s-tasinf.adb
<s-tasinf-linux.adb \
2003 s-tpopsp.adb
<s-tpopsp-tls.adb \
2004 s-taspri.ads
<s-taspri-posix.ads \
2005 g-sercom.adb
<g-sercom-linux.adb \
2006 $(ATOMICS_TARGET_PAIRS
) \
2007 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
2008 system.ads
<system-linux-arm.ads
2010 TOOLS_TARGET_PAIRS
= \
2011 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2012 indepsw.adb
<indepsw-gnu.adb
2014 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2016 THREADSLIB
=-lpthread
-lrt
2017 GNATLIB_SHARED
=gnatlib-shared-dual
2019 LIBRARY_VERSION
:= $(LIB_VERSION
)
2023 ifeq ($(strip $(filter-out sparc
% linux
%,$(target_cpu
) $(target_os
))),)
2024 LIBGNAT_TARGET_PAIRS
= \
2025 a-intnam.ads
<a-intnam-linux.ads \
2026 s-inmaop.adb
<s-inmaop-posix.adb \
2027 s-intman.adb
<s-intman-posix.adb \
2028 s-linux.ads
<s-linux-sparc.ads \
2029 s-osinte.adb
<s-osinte-posix.adb \
2030 s-osinte.ads
<s-osinte-linux.ads \
2031 s-osprim.adb
<s-osprim-posix.adb \
2032 s-taprop.adb
<s-taprop-linux.adb \
2033 s-tasinf.ads
<s-tasinf-linux.ads \
2034 s-tasinf.adb
<s-tasinf-linux.adb \
2035 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2036 s-tpopsp.adb
<s-tpopsp-tls.adb \
2037 system.ads
<system-linux-sparc.ads
2039 TOOLS_TARGET_PAIRS
= \
2040 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2041 indepsw.adb
<indepsw-gnu.adb
2043 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2045 THREADSLIB
= -lpthread
2046 GNATLIB_SHARED
= gnatlib-shared-dual
2048 LIBRARY_VERSION
:= $(LIB_VERSION
)
2052 ifeq ($(strip $(filter-out hppa
% linux
%,$(target_cpu
) $(target_os
))),)
2053 LIBGNAT_TARGET_PAIRS
= \
2054 a-intnam.ads
<a-intnam-linux.ads \
2055 s-inmaop.adb
<s-inmaop-posix.adb \
2056 s-intman.adb
<s-intman-posix.adb \
2057 s-linux.ads
<s-linux-hppa.ads \
2058 s-osinte.adb
<s-osinte-posix.adb \
2059 s-osinte.ads
<s-osinte-linux.ads \
2060 s-osprim.adb
<s-osprim-posix.adb \
2061 s-taprop.adb
<s-taprop-linux.adb \
2062 s-tasinf.ads
<s-tasinf-linux.ads \
2063 s-tasinf.adb
<s-tasinf-linux.adb \
2064 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2065 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2066 system.ads
<system-linux-hppa.ads
2068 TOOLS_TARGET_PAIRS
= \
2069 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2070 indepsw.adb
<indepsw-gnu.adb
2072 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2074 THREADSLIB
= -lpthread
2075 GNATLIB_SHARED
= gnatlib-shared-dual
2077 LIBRARY_VERSION
:= $(LIB_VERSION
)
2081 ifeq ($(strip $(filter-out m68k
% linux
%,$(target_cpu
) $(target_os
))),)
2082 LIBGNAT_TARGET_PAIRS
= \
2083 a-intnam.ads
<a-intnam-linux.ads \
2084 s-inmaop.adb
<s-inmaop-posix.adb \
2085 s-intman.adb
<s-intman-posix.adb \
2086 s-linux.ads
<s-linux.ads \
2087 s-osinte.adb
<s-osinte-posix.adb \
2088 s-osinte.ads
<s-osinte-linux.ads \
2089 s-osprim.adb
<s-osprim-posix.adb \
2090 s-taprop.adb
<s-taprop-linux.adb \
2091 s-tasinf.ads
<s-tasinf-linux.ads \
2092 s-tasinf.adb
<s-tasinf-linux.adb \
2093 s-taspri.ads
<s-taspri-posix.ads \
2094 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2095 system.ads
<system-linux-m68k.ads
2097 TOOLS_TARGET_PAIRS
= \
2098 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2099 indepsw.adb
<indepsw-gnu.adb
2101 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2103 THREADSLIB
= -lpthread
2104 GNATLIB_SHARED
= gnatlib-shared-dual
2106 LIBRARY_VERSION
:= $(LIB_VERSION
)
2110 ifeq ($(strip $(filter-out sh4
% linux
%,$(target_cpu
) $(target_os
))),)
2111 LIBGNAT_TARGET_PAIRS
= \
2112 a-intnam.ads
<a-intnam-linux.ads \
2113 s-inmaop.adb
<s-inmaop-posix.adb \
2114 s-intman.adb
<s-intman-posix.adb \
2115 s-linux.ads
<s-linux.ads \
2116 s-osinte.adb
<s-osinte-posix.adb \
2117 s-osinte.ads
<s-osinte-linux.ads \
2118 s-osprim.adb
<s-osprim-posix.adb \
2119 s-taprop.adb
<s-taprop-linux.adb \
2120 s-tasinf.ads
<s-tasinf-linux.ads \
2121 s-tasinf.adb
<s-tasinf-linux.adb \
2122 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2123 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2124 system.ads
<system-linux-sh4.ads
2126 TOOLS_TARGET_PAIRS
= \
2127 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2128 indepsw.adb
<indepsw-linux.adb
2130 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2133 THREADSLIB
= -lpthread
2134 GNATLIB_SHARED
= gnatlib-shared-dual
2136 LIBRARY_VERSION
:= $(LIB_VERSION
)
2140 ifeq ($(strip $(filter-out %ia64 linux
%,$(target_cpu
) $(target_os
))),)
2141 LIBGNAT_TARGET_PAIRS
= \
2142 a-exetim.adb
<a-exetim-posix.adb \
2143 a-exetim.ads
<a-exetim-default.ads \
2144 a-intnam.ads
<a-intnam-linux.ads \
2145 a-numaux.ads
<a-numaux-libc-x86.ads \
2146 a-synbar.adb
<a-synbar-posix.adb \
2147 a-synbar.ads
<a-synbar-posix.ads \
2148 s-inmaop.adb
<s-inmaop-posix.adb \
2149 s-intman.adb
<s-intman-posix.adb \
2150 s-linux.ads
<s-linux.ads \
2151 s-mudido.adb
<s-mudido-affinity.adb \
2152 s-osinte.ads
<s-osinte-linux.ads \
2153 s-osinte.adb
<s-osinte-posix.adb \
2154 s-osprim.adb
<s-osprim-posix.adb \
2155 s-taprop.adb
<s-taprop-linux.adb \
2156 s-tasinf.ads
<s-tasinf-linux.ads \
2157 s-tasinf.adb
<s-tasinf-linux.adb \
2158 s-tpopsp.adb
<s-tpopsp-tls.adb \
2159 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2160 g-sercom.adb
<g-sercom-linux.adb \
2161 $(ATOMICS_TARGET_PAIRS
) \
2162 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
2163 system.ads
<system-linux-ia64.ads
2165 TOOLS_TARGET_PAIRS
= \
2166 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2167 indepsw.adb
<indepsw-gnu.adb
2169 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2172 THREADSLIB
=-lpthread
-lrt
2173 GNATLIB_SHARED
=gnatlib-shared-dual
2175 LIBRARY_VERSION
:= $(LIB_VERSION
)
2179 ifeq ($(strip $(filter-out ia64
% hp hpux
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
2180 LIBGNAT_TARGET_PAIRS
= \
2181 a-intnam.ads
<a-intnam-hpux.ads \
2182 s-inmaop.adb
<s-inmaop-posix.adb \
2183 s-intman.adb
<s-intman-posix.adb \
2184 s-osinte.adb
<s-osinte-posix.adb \
2185 s-osinte.ads
<s-osinte-hpux.ads \
2186 s-osprim.adb
<s-osprim-posix.adb \
2187 s-taprop.adb
<s-taprop-posix.adb \
2188 s-taspri.ads
<s-taspri-posix.ads \
2189 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2190 $(ATOMICS_TARGET_PAIRS
) \
2191 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
2192 system.ads
<system-hpux-ia64.ads
2194 TOOLS_TARGET_PAIRS
= \
2195 mlib-tgt-specific.adb
<mlib-tgt-specific-ia64-hpux.adb
2199 THREADSLIB
=-lpthread
2200 GNATLIB_SHARED
=gnatlib-shared-dual
2204 LIBRARY_VERSION
:= $(LIB_VERSION
)
2208 ifeq ($(strip $(filter-out alpha
% linux
%,$(target_cpu
) $(target_os
))),)
2209 LIBGNAT_TARGET_PAIRS
= \
2210 a-intnam.ads
<a-intnam-linux.ads \
2211 s-inmaop.adb
<s-inmaop-posix.adb \
2212 s-intman.adb
<s-intman-posix.adb \
2213 s-linux.ads
<s-linux-alpha.ads \
2214 s-osinte.ads
<s-osinte-linux.ads \
2215 s-osinte.adb
<s-osinte-posix.adb \
2216 s-osprim.adb
<s-osprim-posix.adb \
2217 s-taprop.adb
<s-taprop-linux.adb \
2218 s-tasinf.ads
<s-tasinf-linux.ads \
2219 s-tasinf.adb
<s-tasinf-linux.adb \
2220 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2221 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2222 $(ATOMICS_TARGET_PAIRS
) \
2223 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
2224 system.ads
<system-linux-alpha.ads
2226 TOOLS_TARGET_PAIRS
= \
2227 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2228 indepsw.adb
<indepsw-gnu.adb
2230 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2233 THREADSLIB
=-lpthread
2234 GNATLIB_SHARED
=gnatlib-shared-dual
2235 LIBRARY_VERSION
:= $(LIB_VERSION
)
2239 ifeq ($(strip $(filter-out %x86_64 linux
%,$(target_cpu
) $(target_os
))),)
2240 LIBGNAT_TARGET_PAIRS
= \
2241 a-exetim.adb
<a-exetim-posix.adb \
2242 a-exetim.ads
<a-exetim-default.ads \
2243 a-intnam.ads
<a-intnam-linux.ads \
2244 a-synbar.adb
<a-synbar-posix.adb \
2245 a-synbar.ads
<a-synbar-posix.ads \
2246 s-inmaop.adb
<s-inmaop-posix.adb \
2247 s-intman.adb
<s-intman-posix.adb \
2248 s-linux.ads
<s-linux.ads \
2249 s-mudido.adb
<s-mudido-affinity.adb \
2250 s-osinte.ads
<s-osinte-linux.ads \
2251 s-osinte.adb
<s-osinte-posix.adb \
2252 s-osprim.adb
<s-osprim-posix.adb \
2253 s-taprop.adb
<s-taprop-linux.adb \
2254 s-tasinf.ads
<s-tasinf-linux.ads \
2255 s-tasinf.adb
<s-tasinf-linux.adb \
2256 s-tpopsp.adb
<s-tpopsp-tls.adb \
2257 s-taspri.ads
<s-taspri-posix.ads \
2258 g-sercom.adb
<g-sercom-linux.adb \
2259 $(ATOMICS_TARGET_PAIRS
) \
2260 $(X86_64_TARGET_PAIRS
) \
2261 system.ads
<system-linux-x86.ads
2263 TOOLS_TARGET_PAIRS
= \
2264 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2265 indepsw.adb
<indepsw-gnu.adb
2267 EXTRA_GNATRTL_NONTASKING_OBJS
+= g-sse.o g-ssvety.o
2268 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2271 THREADSLIB
=-lpthread
-lrt
2273 GNATLIB_SHARED
=gnatlib-shared-dual
2275 LIBRARY_VERSION
:= $(LIB_VERSION
)
2278 ifeq ($(strip $(filter-out %x32 linux
%,$(target_cpu
) $(target_os
))),)
2279 LIBGNAT_TARGET_PAIRS
= \
2280 a-exetim.adb
<a-exetim-posix.adb \
2281 a-exetim.ads
<a-exetim-default.ads \
2282 a-intnam.ads
<a-intnam-linux.ads \
2283 a-synbar.adb
<a-synbar-posix.adb \
2284 a-synbar.ads
<a-synbar-posix.ads \
2285 s-inmaop.adb
<s-inmaop-posix.adb \
2286 s-intman.adb
<s-intman-posix.adb \
2287 s-linux.ads
<s-linux-x32.ads \
2288 s-mudido.adb
<s-mudido-affinity.adb \
2289 s-osinte.ads
<s-osinte-linux.ads \
2290 s-osinte.adb
<s-osinte-x32.adb \
2291 s-osprim.adb
<s-osprim-x32.adb \
2292 s-taprop.adb
<s-taprop-linux.adb \
2293 s-tasinf.ads
<s-tasinf-linux.ads \
2294 s-tasinf.adb
<s-tasinf-linux.adb \
2295 s-tpopsp.adb
<s-tpopsp-tls.adb \
2296 s-taspri.ads
<s-taspri-posix.ads \
2297 g-sercom.adb
<g-sercom-linux.adb \
2298 $(ATOMICS_TARGET_PAIRS
) \
2299 $(X86_64_TARGET_PAIRS
) \
2300 system.ads
<system-linux-x86.ads
2302 TOOLS_TARGET_PAIRS
= \
2303 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2304 indepsw.adb
<indepsw-gnu.adb
2306 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
2307 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2309 THREADSLIB
=-lpthread
-lrt
2310 GNATLIB_SHARED
=gnatlib-shared-dual
2312 LIBRARY_VERSION
:= $(LIB_VERSION
)
2316 ifeq ($(strip $(filter-out darwin
%,$(target_os
))),)
2317 SO_OPTS
= -shared-libgcc
2318 LIBGNAT_TARGET_PAIRS
= \
2319 a-intnam.ads
<a-intnam-darwin.ads \
2320 s-inmaop.adb
<s-inmaop-posix.adb \
2321 s-osinte.adb
<s-osinte-darwin.adb \
2322 s-osinte.ads
<s-osinte-darwin.ads \
2323 s-taprop.adb
<s-taprop-posix.adb \
2324 s-taspri.ads
<s-taspri-posix.ads \
2325 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
2327 ifeq ($(strip $(filter-out %86,$(target_cpu
))),)
2328 LIBGNAT_TARGET_PAIRS
+= \
2329 s-intman.adb
<s-intman-susv3.adb \
2330 s-osprim.adb
<s-osprim-darwin.adb \
2331 $(ATOMICS_TARGET_PAIRS
) \
2332 system.ads
<system-darwin-x86.ads
2334 ifeq ($(strip $(MULTISUBDIR
)),/x86_64
)
2336 LIBGNAT_TARGET_PAIRS
+= $(X86_64_TARGET_PAIRS
)
2338 LIBGNAT_TARGET_PAIRS
+= $(X86_TARGET_PAIRS
)
2341 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
2344 ifeq ($(strip $(filter-out %x86_64
,$(target_cpu
))),)
2345 LIBGNAT_TARGET_PAIRS
+= \
2346 s-intman.adb
<s-intman-susv3.adb \
2347 s-osprim.adb
<s-osprim-darwin.adb \
2348 a-exetim.ads
<a-exetim-default.ads \
2349 a-exetim.adb
<a-exetim-darwin.adb \
2350 $(ATOMICS_TARGET_PAIRS
) \
2351 system.ads
<system-darwin-x86.ads
2353 ifeq ($(strip $(MULTISUBDIR
)),/i386
)
2355 LIBGNAT_TARGET_PAIRS
+= $(X86_TARGET_PAIRS
)
2357 LIBGNAT_TARGET_PAIRS
+= $(X86_64_TARGET_PAIRS
)
2360 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
2361 EXTRA_GNATRTL_TASKING_OBJS
=a-exetim.o
2364 ifeq ($(strip $(filter-out powerpc
%,$(target_cpu
))),)
2365 LIBGNAT_TARGET_PAIRS
+= \
2366 s-intman.adb
<s-intman-posix.adb \
2367 s-osprim.adb
<s-osprim-posix.adb \
2368 a-numaux.ads
<a-numaux-darwin.ads \
2369 a-numaux.adb
<a-numaux-darwin.adb \
2370 $(ATOMICS_TARGET_PAIRS
) \
2371 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
2372 system.ads
<system-darwin-ppc.ads
2374 ifeq ($(strip $(MULTISUBDIR
)),/ppc64
)
2379 ifeq ($(strip $(filter-out arm
,$(target_cpu
))),)
2380 LIBGNAT_TARGET_PAIRS
+= \
2381 s-intman.adb
<s-intman-susv3.adb \
2382 s-osprim.adb
<s-osprim-darwin.adb \
2383 $(ATOMICS_TARGET_PAIRS
) \
2384 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
2386 LIBGNAT_TARGET_PAIRS
+= \
2387 system.ads
<system-darwin-arm.ads
2390 ifeq ($(strip $(filter-out arm64 aarch64
,$(target_cpu
))),)
2391 LIBGNAT_TARGET_PAIRS
+= \
2392 s-intman.adb
<s-intman-susv3.adb \
2393 s-osprim.adb
<s-osprim-darwin.adb \
2394 $(ATOMICS_TARGET_PAIRS
) \
2395 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
2397 EXTRA_LIBGNAT_OBJS
+=sigtramp-ios.o
2398 EXTRA_LIBGNAT_SRCS
+=sigtramp.h
2399 LIBGNAT_TARGET_PAIRS
+= \
2400 system.ads
<system-darwin-arm.ads
2403 TOOLS_TARGET_PAIRS
= \
2404 mlib-tgt-specific.adb
<mlib-tgt-specific-darwin.adb \
2405 indepsw.adb
<indepsw-darwin.adb
2408 GNATLIB_SHARED
= gnatlib-shared-darwin
2410 LIBRARY_VERSION
:= $(LIB_VERSION
)
2412 GCC_LINK_FLAGS
=-static-libstdc
++
2415 ifeq ($(EH_MECHANISM
),-gcc
)
2416 LIBGNAT_TARGET_PAIRS
+= \
2417 s-excmac.ads
<s-excmac-gcc.ads \
2418 s-excmac.adb
<s-excmac-gcc.adb
2419 EXTRA_LIBGNAT_OBJS
+=raise-gcc.o
2420 EXTRA_GNATRTL_NONTASKING_OBJS
+=g-cppexc.o s-excmac.o
2423 ifeq ($(EH_MECHANISM
),-arm
)
2424 LIBGNAT_TARGET_PAIRS
+= \
2425 s-excmac.ads
<s-excmac-arm.ads \
2426 s-excmac.adb
<s-excmac-arm.adb
2427 EXTRA_LIBGNAT_OBJS
+=raise-gcc.o
2428 EXTRA_GNATRTL_NONTASKING_OBJS
+=g-cppexc.o s-excmac.o
2431 # Configuration of host tools
2433 # Under linux, host tools need to be linked with -ldl
2435 ifeq ($(strip $(filter-out linux
%,$(host_os
))),)
2439 # LIBGNAT_SRCS is the list of all C files (including headers) of the runtime
2440 # library. LIBGNAT_OBJS is the list of object files for libgnat.
2441 # thread.c is special as put into GNATRTL_TASKING_OBJS by Makefile.rtl
2442 LIBGNAT_OBJS
= adadecode.o adaint.o argv.o aux-io.o \
2443 cal.o cio.o cstreams.o ctrl_c.o \
2444 env.o errno.o exit.o expect.o final.o rtfinal.o rtinit.o \
2445 init.o initialize.o locales.o mkdir.o \
2446 raise.o seh_init.o socket.o sysdep.o \
2447 targext.o terminals.o tracebak.o \
2448 $(EXTRA_LIBGNAT_OBJS
)
2450 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2451 # the library installation will change and there will be a
2452 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2453 # from ADA_INCLUDE_SRCS.
2455 LIBGNAT_SRCS
= $(patsubst %.o
,%.c
,$(LIBGNAT_OBJS
)) \
2456 adadecode.h adaint.h env.h gsocket.h raise.h standard.ads.h \
2457 tb-gcc.c thread.c
$(EXTRA_LIBGNAT_SRCS
)
2459 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2460 # the following include file:
2462 include $(fsrcdir
)/ada
/Makefile.rtl
2464 # memtrack.o is special as not put into libgnat.
2465 GNATRTL_OBJS
= $(GNATRTL_NONTASKING_OBJS
) $(GNATRTL_TASKING_OBJS
) \
2468 # Run time source files
2470 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2471 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2472 sequenio.ads system.ads memtrack.adb \
2473 a-
[a-o
]*.adb a-
[p-z
]*.adb a-
[a-o
]*.ads a-
[p-z
]*.ads g-
*.ad? i-
*.ad? \
2474 s-
[a-o
]*.adb s-
[p-z
]*.adb s-
[a-o
]*.ads s-
[p-z
]*.ads
2476 # Files that are in ADA_INCLUDE_SRCS but not in all configurations.
2477 # They will be removed from the run time if not used.
2479 g-allein.ads g-alleve.adb g-alleve.ads g-altcon.adb g-altcon.ads \
2480 g-altive.ads g-alveop.adb g-alveop.ads g-alvety.ads g-alvevi.ads \
2481 g-intpri.ads g-regist.adb g-regist.ads g-sse.ads g-ssvety.ads \
2482 i-vxinco.adb i-vxinco.ads i-vxwoio.adb i-vxwoio.ads i-vxwork.ads \
2483 s-bb.ads s-bbbosu.ads s-bbcaco.ads s-bbcppr.ads s-bbexti.adb \
2484 s-bbexti.ads s-bbinte.adb s-bbinte.ads s-bbprot.adb s-bbprot.ads \
2485 s-bbsle3.ads s-bbsuer.ads s-bbsule.ads s-bbthqu.adb s-bbthqu.ads \
2486 s-bbthre.adb s-bbthre.ads s-bbtiev.adb s-bbtiev.ads s-bbtime.adb \
2487 s-bbtime.ads s-bcprmu.adb s-bcprmu.ads s-btstch.adb s-btstch.ads \
2488 s-gcc.adb s-gcc.ads s-gccdiv.adb s-gccdiv.ads \
2489 s-gccshi.adb s-gccshi.ads \
2490 s-init.ads s-init.adb s-linux.ads s-macres.ads \
2491 s-memcom.adb s-memcom.ads s-memmov.adb s-memmov.ads s-memset.adb \
2492 s-memset.ads s-mufalo.adb s-mufalo.ads s-musplo.adb s-musplo.ads \
2493 s-sam4.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb s-sopco4.ads \
2494 s-sopco5.adb s-sopco5.ads s-stchop.ads s-stchop.adb s-stm32.ads \
2495 s-strcom.adb s-strcom.ads s-thread.ads \
2496 s-vxwexc.adb s-vxwexc.ads s-vxwext.adb s-vxwext.ads \
2497 s-win32.ads s-winext.ads
2499 # ADA_EXCLUDE_SRCS without the sources used by the target
2500 ADA_EXCLUDE_FILES
=$(filter-out \
2501 $(patsubst %$(objext
),%.ads
,$(GNATRTL_OBJS
)) \
2502 $(patsubst %$(objext
),%.adb
,$(GNATRTL_OBJS
)), \
2503 $(ADA_EXCLUDE_SRCS
))
2505 LIBGNAT
=..
/$(RTSDIR
)/libgnat.a
2507 TOOLS_FLAGS_TO_PASS
= \
2509 "CFLAGS=$(CFLAGS)" \
2510 "LDFLAGS=$(LDFLAGS)" \
2511 "ADAFLAGS=$(ADAFLAGS)" \
2512 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
2513 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
2514 "libsubdir=$(libsubdir)" \
2515 "exeext=$(exeext)" \
2516 "fsrcdir=$(fsrcdir)" \
2517 "srcdir=$(fsrcdir)" \
2518 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
2519 "GNATMAKE=$(GNATMAKE)" \
2520 "GNATLINK=$(GNATLINK)" \
2521 "GNATBIND=$(GNATBIND)"
2523 GCC_LINK
=$(CXX
) $(GCC_LINK_FLAGS
) $(ADA_INCLUDES
) $(LDFLAGS
)
2525 # Build directory for the tools. Let's copy the target-dependent
2526 # sources using the same mechanism as for gnatlib. The other sources are
2527 # accessed using the vpath directive below
2533 -(cd tools
; $(LN_S
) ..
/sdefault.adb ..
/snames.ads ..
/snames.adb .
)
2534 -$(foreach PAIR
,$(TOOLS_TARGET_PAIRS
), \
2535 $(RM
) tools
/$(word 1,$(subst <, ,$(PAIR
)));\
2536 $(LN_S
) $(fsrcpfx
)ada
/$(word 2,$(subst <, ,$(PAIR
))) \
2537 tools
/$(word 1,$(subst <, ,$(PAIR
)));)
2538 touch ..
/stamp-tools
2540 # when compiling the tools, the runtime has to be first on the path so that
2541 # it hides the runtime files lying with the rest of the sources
2542 ifeq ($(TOOLSCASE
),native
)
2543 vpath
%.ads ..
/$(RTSDIR
) ..
/
2544 vpath
%.adb ..
/$(RTSDIR
) ..
/
2545 vpath
%.c ..
/$(RTSDIR
) ..
/
2546 vpath
%.h ..
/$(RTSDIR
) ..
/
2549 # in the cross tools case, everything is compiled with the native
2550 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2551 ifeq ($(TOOLSCASE
),cross
)
2558 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
2559 # reasons: gnatmake should be built with a recent compiler, a recent compiler
2560 # may not generate ALI files compatible with an old gnatmake so it is important
2561 # to be able to build gnatmake without a version of gnatmake around. Once
2562 # everything has been compiled once, gnatmake can be recompiled with itself
2563 # (see target gnattools1-re)
2564 gnattools1
: ..
/stamp-tools ..
/stamp-gnatlib-
$(RTSDIR
)
2565 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2567 ..
/..
/gnatmake
$(exeext
) ..
/..
/gnatlink
$(exeext
)
2569 # gnatmake/link can be built with recent gnatmake/link if they are available.
2570 # This is especially convenient for building cross tools or for rebuilding
2571 # the tools when the original bootstrap has already be done.
2572 gnattools1-re
: ..
/stamp-tools
2573 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2574 TOOLSCASE
=cross INCLUDES
="" gnatmake-re gnatlink-re
2576 # these tools are built with gnatmake & are common to native and cross
2577 gnattools2
: ..
/stamp-tools
2578 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2579 TOOLSCASE
=native common-tools
$(EXTRA_GNATTOOLS
)
2581 # those tools are only built for the cross version
2582 gnattools4
: ..
/stamp-tools
2583 ifeq ($(ENABLE_VXADDR2LINE
),true
)
2584 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2585 TOOLSCASE
=cross top_buildir
=..
/..
/.. \
2586 ..
/..
/vxaddr2line
$(exeext
)
2589 common-tools
: ..
/stamp-tools
2590 $(GNATMAKE
) -j0
-c
-b
$(ADA_INCLUDES
) \
2591 --GNATBIND
="$(GNATBIND)" --GCC
="$(CC) $(ALL_ADAFLAGS)" \
2592 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2593 gnatclean
-bargs
$(ADA_INCLUDES
) $(GNATBIND_FLAGS
)
2594 $(GNATLINK
) -v gnatcmd
-o ..
/..
/gnat
$(exeext
) \
2595 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2596 $(GNATLINK
) -v gnatchop
-o ..
/..
/gnatchop
$(exeext
) \
2597 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2598 $(GNATLINK
) -v gnatkr
-o ..
/..
/gnatkr
$(exeext
) \
2599 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2600 $(GNATLINK
) -v gnatls
-o ..
/..
/gnatls
$(exeext
) \
2601 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2602 $(GNATLINK
) -v gnatprep
-o ..
/..
/gnatprep
$(exeext
) \
2603 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2604 $(GNATLINK
) -v gnatxref
-o ..
/..
/gnatxref
$(exeext
) \
2605 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2606 $(GNATLINK
) -v gnatfind
-o ..
/..
/gnatfind
$(exeext
) \
2607 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2608 $(GNATLINK
) -v gnatname
-o ..
/..
/gnatname
$(exeext
) \
2609 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2610 $(GNATLINK
) -v gnatclean
-o ..
/..
/gnatclean
$(exeext
) \
2611 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2613 ..
/..
/gnatdll
$(exeext
): ..
/stamp-tools
2614 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatdll
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2615 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatdll
2616 $(GNATLINK
) -v gnatdll
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2618 ..
/..
/vxaddr2line
$(exeext
): ..
/stamp-tools
2619 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vxaddr2line
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2620 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vxaddr2line
2621 $(GNATLINK
) -v vxaddr2line
-o
$@
--GCC
="$(GCC_LINK)" ..
/targext.o
$(CLIB
)
2623 gnatmake-re
: ..
/stamp-tools
2624 $(GNATMAKE
) -j0
$(ADA_INCLUDES
) -u sdefault
--GCC
="$(CC) $(MOST_ADA_FLAGS)"
2625 $(GNATMAKE
) -j0
-c
$(ADA_INCLUDES
) gnatmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2626 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmake
2627 $(GNATLINK
) -v gnatmake
-o ..
/..
/gnatmake
$(exeext
) \
2628 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2630 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2631 # with the former version of gnatlink itself which cannot override itself.
2632 # gnatlink-re cannot be run at the same time as gnatmake-re, hence the
2634 gnatlink-re
: ..
/stamp-tools gnatmake-re
2635 $(GNATMAKE
) -j0
-c
$(ADA_INCLUDES
) gnatlink
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2636 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlink
2637 $(GNATLINK
) -v gnatlink
-o ..
/..
/gnatlinknew
$(exeext
) \
2638 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2639 $(MV
) ..
/..
/gnatlinknew
$(exeext
) ..
/..
/gnatlink
$(exeext
)
2641 # Needs to be built with CC=gcc
2642 # Since the RTL should be built with the latest compiler, remove the
2643 # stamp target in the parent directory whenever gnat1 is rebuilt
2645 # Likewise for the tools
2646 ..
/..
/gnatmake
$(exeext
): $(P
) b_gnatm.o
$(GNATMAKE_OBJS
)
2647 +$(GCC_LINK
) $(ALL_CFLAGS
) -o
$@ b_gnatm.o
$(GNATMAKE_OBJS
) $(TOOLS_LIBS
) $(TOOLS1_LIBS
)
2649 ..
/..
/gnatlink
$(exeext
): $(P
) b_gnatl.o
$(GNATLINK_OBJS
)
2650 +$(GCC_LINK
) $(ALL_CFLAGS
) -o
$@ b_gnatl.o
$(GNATLINK_OBJS
) $(TOOLS_LIBS
) $(TOOLS1_LIBS
)
2652 ..
/stamp-gnatlib-
$(RTSDIR
):
2653 @if
[ ! -f stamp-gnatlib-
$(RTSDIR
) ] ; \
2655 $(ECHO
) You must first build the GNAT library
: make gnatlib
; \
2662 # Install all the requested GCC spec files.
2664 for f in
$(GCC_SPEC_FILES
); do \
2665 $(INSTALL_DATA_DATE
) $(srcdir)/ada
/$$f $(libsubdir
)/; \
2668 install-gnatlib
: ..
/stamp-gnatlib-
$(RTSDIR
) install-gcc-specs
2669 $(RMDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2670 $(RMDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2671 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2672 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2673 for file in
$(RTSDIR
)/*.ali
; do \
2674 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2676 -cd
$(RTSDIR
); for file in
*$(arext
);do \
2677 $(INSTALL_DATA
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2678 $(RANLIB_FOR_TARGET
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/$$file; \
2680 -$(foreach file
, $(EXTRA_ADALIB_OBJS
), \
2681 $(INSTALL_DATA_DATE
) $(RTSDIR
)/$(file
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
) && \
2683 # Install the shared libraries, if any, using $(INSTALL) instead
2684 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2685 # for shared libraries on some targets, e.g. on HP-UX where the x
2686 # permission is required.
2687 # Also install the .dSYM directories if they exist (these directories
2688 # contain the debug information for the shared libraries on darwin)
2689 for file in gnat gnarl
; do \
2690 if
[ -f
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) ]; then \
2691 $(INSTALL
) $(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2692 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2694 if
[ -f
$(RTSDIR
)/lib
$${file}$(soext
) ]; then \
2695 $(LN_S
) lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2696 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/lib
$${file}$(soext
); \
2698 if
[ -d
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM
]; then \
2699 $(CP
) -r
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM \
2700 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2703 # This copy must be done preserving the date on the original file.
2704 for file in
$(RTSDIR
)/*.ad
[sb
]*; do \
2705 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_INCLUDE_DIR
); \
2707 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.adb
2708 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.ads
2710 ..
/stamp-gnatlib2-
$(RTSDIR
):
2711 $(RM
) $(RTSDIR
)/s-
*.ali
2712 $(RM
) $(RTSDIR
)/s-
*$(objext
)
2713 $(RM
) $(RTSDIR
)/a-
*.ali
2714 $(RM
) $(RTSDIR
)/a-
*$(objext
)
2715 $(RM
) $(RTSDIR
)/*.ali
2716 $(RM
) $(RTSDIR
)/*$(objext
)
2717 $(RM
) $(RTSDIR
)/*$(arext
)
2718 $(RM
) $(RTSDIR
)/*$(soext
)
2719 touch ..
/stamp-gnatlib2-
$(RTSDIR
)
2720 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2722 ..
/stamp-gnatlib1-
$(RTSDIR
): Makefile ..
/stamp-gnatlib2-
$(RTSDIR
)
2725 $(CHMOD
) u
+w
$(RTSDIR
)
2726 # Copy target independent sources
2727 $(foreach f
,$(ADA_INCLUDE_SRCS
) $(LIBGNAT_SRCS
), \
2728 $(LN_S
) $(fsrcpfx
)ada
/$(f
) $(RTSDIR
) ;) true
2729 # Remove files not used
2730 $(RM
) $(patsubst %,$(RTSDIR
)/%,$(ADA_EXCLUDE_FILES
))
2731 # Remove files to be replaced by target dependent sources
2732 $(RM
) $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2733 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
))))
2734 for f in
$(RTSDIR
)/*-*-*.ads
$(RTSDIR
)/*-*-*.adb
; do \
2736 $(RTSDIR
)/s-stratt-
*) ;; \
2740 # Copy new target dependent sources
2741 $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2742 $(LN_S
) $(fsrcpfx
)ada
/$(word 2,$(subst <, ,$(PAIR
))) \
2743 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
)));)
2745 $(CP
) $(srcdir)/tsystem.h
$(RTSDIR
)
2746 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2747 touch ..
/stamp-gnatlib1-
$(RTSDIR
)
2749 # GCC_FOR_TARGET has paths relative to the gcc directory, so we need to adjust
2750 # for running it from ada/rts
2752 OSCONS_CC
=$(subst .
/xgcc
,..
/..
/xgcc
,$(subst -B.
/, -B..
/..
/,$(GCC_FOR_TARGET
)))
2754 # The main ada source directory must be on the include path for #include "..."
2755 # because s-oscons-tmplt.c requires adaint.h, gsocket.h, and any file included
2756 # by these headers. However note that we must use -iquote, not -I, so that
2757 # ada/types.h does not conflict with a same-named system header (VxWorks
2758 # has a <types.h> header).
2760 OSCONS_CPP
=$(OSCONS_CC
) $(GNATLIBCFLAGS
) $(GNATLIBCFLAGS_FOR_C
) -E
-C \
2761 -DTARGET
=\"$(target
)\" -iquote
$(fsrcpfx
)ada
$(fsrcpfx
)ada
/s-oscons-tmplt.c
> s-oscons-tmplt.i
2762 OSCONS_EXTRACT
=$(OSCONS_CC
) -S s-oscons-tmplt.i
2764 # Note: if you need to build with a non-GNU compiler, you could adapt the
2765 # following definitions (written for VMS DEC-C)
2766 #OSCONS_CPP=../../../$(DECC) -E /comment=as_is -DNATIVE \
2767 # -DTARGET='""$(target)""' -I$(OSCONS_SRCDIR) s-oscons-tmplt.c
2769 #OSCONS_EXTRACT=../../../$(DECC) -DNATIVE \
2770 # -DTARGET='""$(target)""' -I$(OSCONS_SRCDIR) s-oscons-tmplt.c ; \
2771 # ld -o s-oscons-tmplt.exe s-oscons-tmplt.obj; \
2772 # ./s-oscons-tmplt.exe > s-oscons-tmplt.s
2774 .
/bldtools
/oscons
/xoscons
: xoscons.adb xutil.ads xutil.adb
2775 -$(MKDIR
) .
/bldtools
/oscons
2776 $(RM
) $(addprefix .
/bldtools
/oscons
/,$(notdir $^
))
2777 $(CP
) $^ .
/bldtools
/oscons
2778 (cd .
/bldtools
/oscons
; gnatmake
-q xoscons
)
2780 $(RTSDIR
)/s-oscons.ads
: ..
/stamp-gnatlib1-
$(RTSDIR
) s-oscons-tmplt.c gsocket.h .
/bldtools
/oscons
/xoscons
2781 $(RM
) $(RTSDIR
)/s-oscons-tmplt.i
$(RTSDIR
)/s-oscons-tmplt.s
2784 $(OSCONS_EXTRACT
) ; \
2785 ..
/bldtools
/oscons
/xoscons s-oscons
)
2787 gnatlib
: ..
/stamp-gnatlib1-
$(RTSDIR
) ..
/stamp-gnatlib2-
$(RTSDIR
) $(RTSDIR
)/s-oscons.ads
2788 test -f
$(RTSDIR
)/s-oscons.ads || exit
1
2790 $(MAKE
) -C
$(RTSDIR
) \
2791 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2792 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2793 INCLUDES
="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2794 CFLAGS
="$(GNATLIBCFLAGS_FOR_C)" \
2795 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2797 -f ..
/Makefile
$(LIBGNAT_OBJS
) $(EXTRA_ADALIB_OBJS
)
2799 $(MAKE
) -C
$(RTSDIR
) \
2800 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2801 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2803 CFLAGS
="$(GNATLIBCFLAGS)" \
2804 ADAFLAGS
="$(GNATLIBFLAGS)" \
2805 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2807 -f ..
/Makefile
$(GNATRTL_OBJS
)
2808 $(RM
) $(RTSDIR
)/libgnat
$(arext
) $(RTSDIR
)/libgnarl
$(arext
)
2809 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnat
$(arext
) \
2810 $(addprefix $(RTSDIR
)/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
2811 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnat
$(arext
)
2812 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnarl
$(arext
) \
2813 $(addprefix $(RTSDIR
)/,$(GNATRTL_TASKING_OBJS
))
2814 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnarl
$(arext
)
2815 ifeq ($(GMEM_LIB
),gmemlib
)
2816 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgmem
$(arext
) \
2817 $(RTSDIR
)/memtrack.o
2818 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgmem
$(arext
)
2820 $(CHMOD
) a-wx
$(RTSDIR
)/*.ali
2821 touch ..
/stamp-gnatlib-
$(RTSDIR
)
2823 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2824 gnatlib-shared-default
:
2825 $(MAKE
) $(FLAGS_TO_PASS
) \
2826 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2827 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2828 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \
2829 MULTISUBDIR
="$(MULTISUBDIR)" \
2830 THREAD_KIND
="$(THREAD_KIND)" \
2832 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2833 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2834 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
$(GNATLIBCFLAGS
) \
2835 $(PICFLAG_FOR_TARGET
) \
2836 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2837 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2838 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2840 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2841 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
$(GNATLIBCFLAGS
) \
2842 $(PICFLAG_FOR_TARGET
) \
2843 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2844 $(GNATRTL_TASKING_OBJS
) \
2845 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2847 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2849 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2852 # Create static libgnat and libgnarl compiled with -fPIC
2853 $(RM
) $(RTSDIR
)/libgnat_pic
$(arext
) $(RTSDIR
)/libgnarl_pic
$(arext
)
2854 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnat_pic
$(arext
) \
2855 $(addprefix $(RTSDIR
)/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
2856 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnat_pic
$(arext
)
2857 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnarl_pic
$(arext
) \
2858 $(addprefix $(RTSDIR
)/,$(GNATRTL_TASKING_OBJS
))
2859 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnarl_pic
$(arext
)
2862 gnatlib-shared-dual
:
2863 $(MAKE
) $(FLAGS_TO_PASS
) \
2864 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2865 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2866 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2867 MULTISUBDIR
="$(MULTISUBDIR)" \
2868 THREAD_KIND
="$(THREAD_KIND)" \
2869 gnatlib-shared-default
2870 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2871 $(MV
) $(RTSDIR
)/libgnat_pic
$(arext
) .
2872 $(MV
) $(RTSDIR
)/libgnarl_pic
$(arext
) .
2873 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2874 $(MAKE
) $(FLAGS_TO_PASS
) \
2875 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2876 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2877 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2878 MULTISUBDIR
="$(MULTISUBDIR)" \
2879 THREAD_KIND
="$(THREAD_KIND)" \
2881 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2882 $(MV
) libgnat_pic
$(arext
) $(RTSDIR
)
2883 $(MV
) libgnarl_pic
$(arext
) $(RTSDIR
)
2885 gnatlib-shared-dual-win32
:
2886 $(MAKE
) $(FLAGS_TO_PASS
) \
2887 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2888 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2889 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2890 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" \
2891 MULTISUBDIR
="$(MULTISUBDIR)" \
2892 THREAD_KIND
="$(THREAD_KIND)" \
2893 gnatlib-shared-win32
2894 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2895 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2896 $(MAKE
) $(FLAGS_TO_PASS
) \
2897 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2898 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2899 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2900 MULTISUBDIR
="$(MULTISUBDIR)" \
2901 THREAD_KIND
="$(THREAD_KIND)" \
2903 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2905 # ??? we need to add the option to support auto-import of arrays/records to
2906 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2907 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2909 gnatlib-shared-win32
:
2910 $(MAKE
) $(FLAGS_TO_PASS
) \
2911 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2912 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2913 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \
2914 MULTISUBDIR
="$(MULTISUBDIR)" \
2915 THREAD_KIND
="$(THREAD_KIND)" \
2917 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2918 $(CP
) $(RTSDIR
)/libgnat
$(arext
) $(RTSDIR
)/libgnat_pic
$(arext
)
2919 $(CP
) $(RTSDIR
)/libgnarl
$(arext
) $(RTSDIR
)/libgnarl_pic
$(arext
)
2920 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2921 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
-shared-libgcc \
2922 $(PICFLAG_FOR_TARGET
) \
2923 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2924 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2925 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) $(MISCLIB
)
2926 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2927 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
-shared-libgcc \
2928 $(PICFLAG_FOR_TARGET
) \
2929 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2930 $(GNATRTL_TASKING_OBJS
) \
2931 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2932 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2934 gnatlib-shared-darwin
:
2935 $(MAKE
) $(FLAGS_TO_PASS
) \
2936 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2937 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2938 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET) -fno-common" \
2939 MULTISUBDIR
="$(MULTISUBDIR)" \
2940 THREAD_KIND
="$(THREAD_KIND)" \
2942 $(RM
) $(RTSDIR
)/libgnat
$(soext
) $(RTSDIR
)/libgnarl
$(soext
)
2943 $(CP
) $(RTSDIR
)/libgnat
$(arext
) $(RTSDIR
)/libgnat_pic
$(arext
)
2944 $(CP
) $(RTSDIR
)/libgnarl
$(arext
) $(RTSDIR
)/libgnarl_pic
$(arext
)
2945 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2946 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib
$(PICFLAG_FOR_TARGET
) \
2947 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2948 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2950 -Wl
,-install_name
,@rpath
/libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2952 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2953 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib
$(PICFLAG_FOR_TARGET
) \
2954 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2955 $(GNATRTL_TASKING_OBJS
) \
2957 -Wl
,-install_name
,@rpath
/libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2958 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2959 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2961 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2963 cd
$(RTSDIR
); dsymutil libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2964 cd
$(RTSDIR
); dsymutil libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2967 $(MAKE
) $(FLAGS_TO_PASS
) \
2968 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2969 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2970 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2971 MULTISUBDIR
="$(MULTISUBDIR)" \
2972 THREAD_KIND
="$(THREAD_KIND)" \
2973 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" \
2976 # When building a SJLJ runtime for VxWorks, we need to ensure that the extra
2977 # linker options needed for ZCX are not passed to prevent the inclusion of
2978 # useless objects and potential troubles from the presence of extra symbols
2979 # and references in some configurations. The inhibition is performed by
2980 # commenting the pragma instead of deleting the line, as the latter might
2981 # result in getting multiple blank lines, hence possible style check errors.
2983 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="" \
2984 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2986 -e
's/Frontend_Exceptions.*/Frontend_Exceptions : constant Boolean := True;/' \
2987 -e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' \
2988 -e
's/\(pragma Linker.*crtbe.*\)/-- \1/' \
2989 $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2990 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2991 $(MAKE
) $(FLAGS_TO_PASS
) \
2993 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2994 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2995 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2996 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2997 MULTISUBDIR
="$(MULTISUBDIR)" \
2998 THREAD_KIND
="$(THREAD_KIND)" \
2999 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" gnatlib
3002 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="-gcc" \
3003 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
3005 -e
's/Frontend_Exceptions.*/Frontend_Exceptions : constant Boolean := False;/' \
3006 -e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' \
3007 $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
3008 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
3009 $(MAKE
) $(FLAGS_TO_PASS
) \
3010 EH_MECHANISM
="-gcc" \
3011 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
3012 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
3013 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
3014 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
3015 MULTISUBDIR
="$(MULTISUBDIR)" \
3016 THREAD_KIND
="$(THREAD_KIND)" \
3017 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" gnatlib
3019 # Compiling object files from source files.
3021 # Note that dependencies on obstack.h are not written
3022 # because that file is not part of GCC.
3023 # Dependencies on gvarargs.h are not written
3024 # because all that file does, when not compiling with GCC,
3025 # is include the system varargs.h.
3027 b_gnatl.adb
: $(GNATLINK_OBJS
)
3028 $(GNATBIND
) $(ADA_INCLUDES
) -o b_gnatl.adb gnatlink.ali
3030 b_gnatl.o
: b_gnatl.adb
3031 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) -gnatws
-gnatyN \
3034 b_gnatm.adb
: $(GNATMAKE_OBJS
)
3035 $(GNATBIND
) $(ADA_INCLUDES
) -o b_gnatm.adb gnatmake.ali
3037 b_gnatm.o
: b_gnatm.adb
3038 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) -gnatws
-gnatyN \
3041 ADA_INCLUDE_DIR
= $(libsubdir
)/adainclude
3042 ADA_RTL_OBJ_DIR
= $(libsubdir
)/adalib
3046 # force no sibling call optimization on s-traceb.o so the number of stack
3047 # frames to be skipped when computing a call chain is not modified by
3048 # optimization. We don't want inlining, either.
3050 s-traceb.o
: s-traceb.adb s-traceb.ads
3051 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(NO_INLINE_ADAFLAGS
) \
3052 $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
3054 # compile s-tasdeb.o without optimization and with debug info so that it is
3055 # always possible to set conditional breakpoints on tasks.
3057 s-tasdeb.o
: s-tasdeb.adb s-tasdeb.ads
3058 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
3061 # force no function reordering on a-except.o because of the exclusion bounds
3062 # mechanism (see the source file for more detailed information).
3063 # force debugging information on a-except.o so that it is always
3064 # possible to set conditional breakpoints on exceptions.
3065 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
3067 a-except.o
: a-except.adb a-except.ads
3068 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(NO_INLINE_ADAFLAGS
) \
3069 $(NO_REORDER_ADAFLAGS
) -O1
$(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
3071 # compile s-excdeb.o without optimization and with debug info to let the
3072 # debugger set breakpoints and inspect subprogram parameters on exception
3075 s-excdeb.o
: s-excdeb.adb s-excdeb.ads s-except.ads
3076 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
3079 # force debugging information on s-assert.o so that it is always
3080 # possible to set breakpoint on assert failures.
3082 s-assert.o
: s-assert.adb s-assert.ads
3083 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
3086 # force debugging information on a-tags.o so that the debugger can find
3087 # the description of Ada.Tags.Type_Specific_Data.
3089 a-tags.o
: a-tags.adb a-tags.ads
3090 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
3093 # force no sibling call optimization on s-memory.o to avoid turning the
3094 # tail recursion in Alloc into a loop that confuses branch prediction.
3096 s-memory.o
: s-memory.adb s-memory.ads
3097 $(CC
) -c
$(ALL_ADAFLAGS
) $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) \
3100 # need to keep the frame pointer in tracebak.o to pop the stack properly on
3103 tracebak.o
: tracebak.c tb-gcc.c
3104 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
3105 $(INCLUDES
) $(NO_OMIT_ADAFLAGS
) $< $(OUTPUT_OPTION
)
3107 adadecode.o
: adadecode.c adadecode.h
3111 deftarg.o
: deftarg.c
3113 exit.o
: adaint.h exit.c
3116 rtfinal.o
: rtfinal.c
3118 locales.o
: locales.c
3120 socket.o
: socket.c gsocket.h
3122 raise.o
: raise.c raise.h
3123 sigtramp-armdroid.o
: sigtramp-armdroid.c sigtramp.h
3124 sigtramp-armvxworks.o
: sigtramp-armvxworks.c sigtramp.h
3125 sigtramp-ios.o
: sigtramp-ios.c sigtramp.h
3126 sigtramp-vxworks.o
: sigtramp-vxworks.c
$(VX_SIGTRAMP_EXTRA_SRCS
)
3127 sigtramp-vxworks-vxsim.o
: sigtramp-vxworks-vxsim.c
$(VX_SIGTRAMP_EXTRA_SRCS
)
3128 terminals.o
: terminals.c
3129 vx_stack_info.o
: vx_stack_info.c
3131 raise-gcc.o
: raise-gcc.c raise.h
3132 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3133 -iquote
$(srcdir) -iquote
$(ftop_srcdir
)/libgcc \
3134 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
3137 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3138 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
3140 init.o
: init.c adaint.h raise.h
3141 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3142 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
3144 vx_crtbegin.o
: vx_crtbegin.c vx_crtbegin.inc
3145 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3146 -iquote
$(srcdir) -iquote
$(ftop_srcdir
)/libgcc \
3147 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
3149 vx_crtbegin_auto.o
: vx_crtbegin_auto.c vx_crtbegin.inc
3150 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3151 -iquote
$(srcdir) -iquote
$(ftop_srcdir
)/libgcc \
3152 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
3154 vx_crtend.o
: vx_crtend.c
3155 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3156 -iquote
$(srcdir) -iquote
$(ftop_srcdir
)/libgcc \
3157 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
3159 init-vxsim.o
: init-vxsim.c
3160 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3161 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
3163 initialize.o
: initialize.c raise.h
3164 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3165 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
3168 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3169 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
3172 targext.o
: targext.c
3173 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3175 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
3178 # In GNU Make, ignore whether `stage*' exists.
3179 .PHONY
: stage1 stage2 stage3 stage4
clean realclean TAGS bootstrap
3180 .PHONY
: risky-stage1 risky-stage2 risky-stage3 risky-stage4