1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2014 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_SIBLING_ADAFLAGS
= -fno-optimize-sibling-calls
111 NO_REORDER_ADAFLAGS
= -fno-toplevel-reorder
112 GNATLIBFLAGS
= -W
-Wall
-gnatpg
-nostdinc
113 GNATLIBCFLAGS
= -g
-O2
114 PICFLAG_FOR_TARGET
= @PICFLAG_FOR_TARGET@
116 # Pretend that _Unwind_GetIPInfo is available for the target by default. This
117 # should be autodetected during the configuration of libada and passed down to
118 # here, but we need something for --disable-libada and hope for the best.
119 GNATLIBCFLAGS_FOR_C
= -W
-Wall
$(GNATLIBCFLAGS
) \
120 -fexceptions
-DIN_RTS
-DHAVE_GETIPINFO
121 ALL_ADAFLAGS
= $(CFLAGS
) $(ADA_CFLAGS
) $(ADAFLAGS
)
126 OUTPUT_OPTION
= -o
$@
135 # Define this as & to perform parallel make on a Sequent.
136 # Note that this has some bugs, and it seems currently necessary
137 # to compile all the gen* files first by hand to avoid erroneous results.
140 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
142 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
143 GCC_CFLAGS
= $(INTERNAL_CFLAGS
) $(T_CFLAGS
) $(CFLAGS
)
145 # Tools to use when building a cross-compiler.
146 # These are used because `configure' appends `cross-make'
147 # to the makefile when making a cross-compiler.
149 # We don't use cross-make. Instead we use the tools from the build tree,
150 # if they are available.
151 # program_transform_name and objdir are set by configure.in.
152 program_transform_name
=
155 target_alias
=@target_alias@
157 target_cpu
=@target_cpu@
158 target_vendor
=@target_vendor@
159 target_os
=@target_os@
161 host_vendor
=@host_vendor@
163 target_cpu_default
= @target_cpu_default@
164 xmake_file
= @xmake_file@
165 tmake_file
= @tmake_file@
166 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
167 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
169 # Directory where sources are, from where we are.
170 VPATH
= $(srcdir)/ada
172 # Full path to top source directory
173 # In particular this is used to access libgcc headers, so that references to
174 # these headers from GNAT runtime objects have path names in debugging info
175 # that are consistent with libgcc objects. Also used for other references to
176 # the top source directory for consistency.
177 ftop_srcdir
:= $(shell cd
$(srcdir)/..
;${PWD_COMMAND})
179 fsrcdir
:= $(shell cd
$(srcdir);${PWD_COMMAND})
180 fsrcpfx
:= $(shell cd
$(srcdir);${PWD_COMMAND})/
181 fcurdir
:= $(shell ${PWD_COMMAND})
182 fcurpfx
:= $(shell ${PWD_COMMAND})/
184 # Top build directory, relative to here.
187 # Internationalization library.
189 LIBINTL_DEP
= @LIBINTL_DEP@
191 # Character encoding conversion library.
192 LIBICONV
= @LIBICONV@
193 LIBICONV_DEP
= @LIBICONV_DEP@
195 # Any system libraries needed just for GNAT.
196 SYSLIBS
= @GNAT_LIBEXC@
198 # List extra gnattools
201 # List of target dependent sources, overridden below as necessary
204 # Type of tools build we are doing; default is not compiling tools.
209 RTSDIR
= rts
$(subst /,_
,$(MULTISUBDIR
))
211 # Link flags used to build gnat tools. By default we prefer to statically
212 # link with libgcc to avoid a dependency on shared libgcc (which is tricky
213 # to deal with as it may conflict with the libgcc provided by the system).
214 GCC_LINK_FLAGS
=-static-libstdc
++ -static-libgcc
216 # End of variables for you to override.
220 # This tells GNU Make version 3 not to put all variables in the environment.
224 ifneq ($(tmake_file
),)
225 include $(tmake_file
)
229 ifneq ($(xmake_file
),)
230 include $(xmake_file
)
233 # Now figure out from those variables how to compile and link.
235 all.indirect
: Makefile ..
/gnat1
$(exeext
)
237 # IN_GCC is meant to distinguish between code compiled into GCC itself, i.e.
238 # for the host, and the rest. But we also use it for the tools (link.c) and
239 # even break the host/target wall by using it for the library (targext.c).
240 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
241 # compiler which does not use the native libraries and headers.
242 INTERNAL_CFLAGS
= @CROSS@
-DIN_GCC
244 # This is the variable actually used when we compile.
245 ALL_CFLAGS
= $(INTERNAL_CFLAGS
) $(T_CFLAGS
) $(CFLAGS
)
248 ALL_CPPFLAGS
= $(CPPFLAGS
)
250 # Used with $(COMPILER).
251 ALL_COMPILERFLAGS
= $(ALL_CFLAGS
)
253 # This is where we get libiberty.a from.
254 LIBIBERTY
= ..
/..
/libiberty
/libiberty.a
256 # We need to link against libbacktrace because diagnostic.c in
257 # libcommon.a uses it.
258 LIBBACKTRACE
= ..
/..
/libbacktrace
/.libs
/libbacktrace.a
260 # How to link with both our special library facilities
261 # and the system's installed libraries.
262 LIBS
= $(LIBINTL
) $(LIBICONV
) $(LIBBACKTRACE
) $(LIBIBERTY
) $(SYSLIBS
)
263 LIBDEPS
= $(LIBINTL_DEP
) $(LIBICONV_DEP
) $(LIBBACKTRACE
) $(LIBIBERTY
)
264 # Default is no TGT_LIB; one might be passed down or something
266 TOOLS_LIBS
= ..
/link.o ..
/targext.o ..
/..
/ggc-none.o ..
/..
/libcommon-target.a \
267 ..
/..
/libcommon.a ..
/..
/..
/libcpp
/libcpp.a
$(LIBGNAT
) $(LIBINTL
) $(LIBICONV
) \
268 ..
/$(LIBBACKTRACE
) ..
/$(LIBIBERTY
) $(SYSLIBS
) $(TGT_LIB
)
270 # Specify the directories to be searched for header files.
271 # Both . and srcdir are used, in that order,
272 # so that tm.h and config.h will be found in the compilation
273 # subdirectory rather than in the source directory.
274 INCLUDES
= -I-
-I.
-I..
-I
$(srcdir)/ada
-I
$(srcdir) -I
$(ftop_srcdir
)/include $(GMPINC
)
276 ADA_INCLUDES
= -I-
-I.
-I
$(srcdir)/ada
278 # Likewise, but valid for subdirectories of the current dir.
279 # FIXME: for VxWorks, we cannot add $(fsrcdir) because the regs.h file in
280 # that directory conflicts with a system header file.
281 ifneq ($(findstring vxworks
,$(target_os
)),)
282 INCLUDES_FOR_SUBDIR
= -iquote .
-iquote ..
-iquote ..
/.. \
283 -iquote
$(fsrcdir
)/ada \
284 -I
$(ftop_srcdir
)/include $(GMPINC
)
286 INCLUDES_FOR_SUBDIR
= -iquote .
-iquote ..
-iquote ..
/.. \
287 -iquote
$(fsrcdir
)/ada
-iquote
$(fsrcdir
) \
288 -I
$(ftop_srcdir
)/include $(GMPINC
)
291 ADA_INCLUDES_FOR_SUBDIR
= -I.
-I
$(fsrcdir
)/ada
293 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
296 # Say how to compile Ada programs.
297 .SUFFIXES
: .ada .adb .ads .asm
299 # Always use -I$(srcdir)/config when compiling.
301 $(CC
) -c
-x assembler
$< $(OUTPUT_OPTION
)
304 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
305 $(INCLUDES
) $< $(OUTPUT_OPTION
)
308 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
311 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
313 # how to regenerate this file
314 Makefile
: ..
/config.status
$(srcdir)/ada
/gcc-interface
/Makefile.in
$(srcdir)/ada
/Makefile.in
$(srcdir)/version.c
316 LANGUAGES
="$(CONFIG_LANGUAGES)" \
318 CONFIG_FILES
="ada/gcc-interface/Makefile ada/Makefile" $(SHELL
) config.status
320 # This tells GNU make version 3 not to export all the variables
321 # defined in this file into the environment.
324 # Lists of files for various purposes.
326 GNATLINK_OBJS
= gnatlink.o \
327 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
328 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
329 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
330 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
331 types.o validsw.o widechar.o
333 GNATMAKE_OBJS
= a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o \
334 atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o errout.o \
335 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
336 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
337 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
338 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o \
339 output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o \
340 prj-conf.o prj-pp.o prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o \
341 prj-proc.o prj-strt.o prj-tree.o prj-util.o restrict.o rident.o s-exctab.o \
342 s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o \
343 s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o \
344 sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o \
345 switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o uintp.o \
346 uname.o urealp.o usage.o widechar.o \
347 $(EXTRA_GNATMAKE_OBJS
)
349 # Make arch match the current multilib so that the RTS selection code
350 # picks up the right files. For a given target this must be coherent
351 # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*.
353 ifeq ($(strip $(filter-out %x86_64
, $(target_cpu
))),)
354 ifeq ($(strip $(MULTISUBDIR
)),/32)
357 ifeq ($(strip $(MULTISUBDIR
)),/x32
)
363 # ???: handle more multilib targets
365 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
366 # The members of each pair must be separated by a '<' and no whitespace.
367 # Each pair must be separated by some amount of whitespace from the following
372 LIBGNAT_TARGET_PAIRS
= \
373 a-intnam.ads
<a-intnam-dummy.ads \
374 s-inmaop.adb
<s-inmaop-dummy.adb \
375 s-intman.adb
<s-intman-dummy.adb \
376 s-osinte.ads
<s-osinte-dummy.ads \
377 s-osprim.adb
<s-osprim-posix.adb \
378 s-taprop.adb
<s-taprop-dummy.adb \
379 s-taspri.ads
<s-taspri-dummy.ads
381 # When using the GCC exception handling mechanism, we need to use an
382 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
386 # Default shared object option. Note that we rely on the fact that the "soname"
387 # option will always be present and last in this flag, so that we can have
388 # $(SO_OPTS)libgnat-x.xx
390 SO_OPTS
= -Wl
,-soname
,
392 # Default gnatlib-shared target.
393 # By default, equivalent to gnatlib.
394 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
395 # target when supported.
396 GNATLIB_SHARED
= gnatlib
398 # default value for gnatmake's target dependent file
401 # By default, build socket support units. On platforms that do not support
402 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
403 # to LIBGNAT_TARGET_PAIRS.
405 GNATRTL_SOCKETS_OBJS
= g-soccon
$(objext
) g-socket
$(objext
) g-socthi
$(objext
) \
406 g-soliop
$(objext
) g-sothco
$(objext
)
408 DUMMY_SOCKETS_TARGET_PAIRS
= \
409 g-socket.adb
<g-socket-dummy.adb \
410 g-socket.ads
<g-socket-dummy.ads \
411 g-socthi.adb
<g-socthi-dummy.adb \
412 g-socthi.ads
<g-socthi-dummy.ads \
413 g-sothco.adb
<g-sothco-dummy.adb \
414 g-sothco.ads
<g-sothco-dummy.ads
416 # On platforms where atomic increment/decrement operations are supported,
417 # special version of Ada.Strings.Unbounded package can be used.
419 ATOMICS_TARGET_PAIRS
= \
420 a-coinho.adb
<a-coinho-shared.adb \
421 a-coinho.ads
<a-coinho-shared.ads \
422 a-stunau.adb
<a-stunau-shared.adb \
423 a-suteio.adb
<a-suteio-shared.adb \
424 a-strunb.ads
<a-strunb-shared.ads \
425 a-strunb.adb
<a-strunb-shared.adb \
426 a-stwiun.adb
<a-stwiun-shared.adb \
427 a-stwiun.ads
<a-stwiun-shared.ads \
428 a-swunau.adb
<a-swunau-shared.adb \
429 a-swuwti.adb
<a-swuwti-shared.adb \
430 a-stzunb.adb
<a-stzunb-shared.adb \
431 a-stzunb.ads
<a-stzunb-shared.ads \
432 a-szunau.adb
<a-szunau-shared.adb \
433 a-szuzti.adb
<a-szuzti-shared.adb
435 ATOMICS_BUILTINS_TARGET_PAIRS
= \
436 s-atocou.adb
<s-atocou-builtin.adb
438 # Special version of units for x86 and x86-64 platforms.
441 a-numaux.ads
<a-numaux-x86.ads \
442 a-numaux.adb
<a-numaux-x86.adb \
443 s-atocou.adb
<s-atocou-x86.adb
445 X86_64_TARGET_PAIRS
= \
446 a-numaux.ads
<a-numaux-x86.ads \
447 a-numaux.adb
<a-numaux-x86.adb \
448 s-atocou.adb
<s-atocou-builtin.adb
450 LIB_VERSION
= $(strip $(shell grep
' Library_Version :' $(fsrcpfx
)ada
/gnatvsn.ads | sed
-e
's/.*"\(.*\)".*/\1/'))
452 # Additionnal object files from C source to be added to libgnat.
455 # Additionnal C source files to be added to libgnat without corresponding
456 # object file (#included files). This should include at least the GNAT
457 # specific header files required to rebuild the runtime library from sources.
460 # GCC spec files to be installed in $(libsubdir), so --specs=<spec-filename>
461 # finds them at runtime. Sequences of alphanum characters prefixed with '_' in
462 # the filename are stripped off at installation time. This is used to strip
463 # the architecture indications in vxsim spec filenames, installing e.g.
464 # vxsim_ppc.spec as vxsim.spec. This allows setting up pretty general self
465 # specs to perform -vxsim -> --specs=<...> translations without causing
466 # conflicts since the specs are installed in a target specific subdirectory.
470 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
471 # $(strip STRING) removes leading and trailing spaces from STRING.
472 # If what's left is null then it's a match.
475 ifeq ($(strip $(filter-out m68k
% wrs vx
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
476 LIBGNAT_TARGET_PAIRS
= \
477 a-intnam.ads
<a-intnam-vxworks.ads \
478 a-numaux.ads
<a-numaux-vxworks.ads \
479 s-inmaop.adb
<s-inmaop-vxworks.adb \
480 s-interr.adb
<s-interr-hwint.adb \
481 s-intman.ads
<s-intman-vxworks.ads \
482 s-intman.adb
<s-intman-vxworks.adb \
483 s-osinte.adb
<s-osinte-vxworks.adb \
484 s-osinte.ads
<s-osinte-vxworks.ads \
485 s-osprim.adb
<s-osprim-vxworks.adb \
486 s-parame.ads
<s-parame-vxworks.ads \
487 s-parame.adb
<s-parame-vxworks.adb \
488 s-stchop.ads
<s-stchop-limit.ads \
489 s-stchop.adb
<s-stchop-vxworks.adb \
490 s-taprop.adb
<s-taprop-vxworks.adb \
491 s-tasinf.ads
<s-tasinf-vxworks.ads \
492 s-taspri.ads
<s-taspri-vxworks.ads \
493 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
494 s-vxwork.ads
<s-vxwork-m68k.ads \
495 g-socthi.ads
<g-socthi-vxworks.ads \
496 g-socthi.adb
<g-socthi-vxworks.adb \
497 g-stsifd.adb
<g-stsifd-sockets.adb \
498 system.ads
<system-vxworks-m68k.ads
500 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb
502 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
503 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
505 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
507 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
508 LIBGNAT_TARGET_PAIRS
+= \
509 s-traces.adb
<s-traces-default.adb \
510 s-tratas.adb
<s-tratas-default.adb \
511 s-trafor.adb
<s-trafor-default.adb \
512 s-trafor.ads
<s-trafor-default.ads \
513 s-tfsetr.adb
<s-tfsetr-vxworks.adb
517 # PowerPC and e500v2 VxWorks
518 ifeq ($(strip $(filter-out powerpc
% wrs vxworks vxworks7
,$(target_cpu
) $(target_vendor
) $(target_os
))),)
520 ifeq ($(strip $(filter-out e500
%, $(target_alias
))),)
526 ifeq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
532 LIBGNAT_TARGET_PAIRS
= \
533 a-intnam.ads
<a-intnam-vxworks.ads \
534 a-numaux.ads
<a-numaux-vxworks.ads \
535 s-inmaop.adb
<s-inmaop-vxworks.adb \
536 s-intman.ads
<s-intman-vxworks.ads \
537 s-intman.adb
<s-intman-vxworks.adb \
538 s-osinte.ads
<s-osinte-vxworks.ads \
539 s-osinte.adb
<s-osinte-vxworks.adb \
540 s-osprim.adb
<s-osprim-vxworks.adb \
541 s-parame.ads
<s-parame-vxworks.ads \
542 s-parame.adb
<s-parame-vxworks.adb \
543 s-taprop.adb
<s-taprop-vxworks.adb \
544 s-tasinf.ads
<s-tasinf-vxworks.ads \
545 s-taspri.ads
<s-taspri-vxworks.ads \
546 s-vxwork.ads
<s-vxwork-ppc.ads \
547 g-socthi.ads
<g-socthi-vxworks.ads \
548 g-socthi.adb
<g-socthi-vxworks.adb \
549 g-stsifd.adb
<g-stsifd-sockets.adb \
550 $(ATOMICS_TARGET_PAIRS
) \
551 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
553 # VxWorks 5 and 6 both use the same target triplet making them
554 # indistinguishable in the context of this make file. Package
555 # System.Stack_Checking.Operations is not needed on VxWorks 6 as it leads to
556 # an undefined symbol when building a dynamic shared library. To alleviate
557 # this problem and distinguish this case, we use the THREAD_KIND and include
558 # the package only in default mode.
560 ifeq ($(strip $(filter-out default
,$(THREAD_KIND
))),)
561 LIBGNAT_TARGET_PAIRS
+= \
562 s-stchop.ads
<s-stchop-limit.ads \
563 s-stchop.adb
<s-stchop-vxworks.adb
567 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
568 indepsw.adb
<indepsw-gnu.adb
570 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
571 LIBGNAT_TARGET_PAIRS
+= \
572 s-traces.adb
<s-traces-default.adb \
573 s-trafor.adb
<s-trafor-default.adb \
574 s-trafor.ads
<s-trafor-default.ads \
575 s-tratas.adb
<s-tratas-default.adb \
576 s-tfsetr.adb
<s-tfsetr-vxworks.adb
579 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
580 LIBGNAT_TARGET_PAIRS
+= \
581 s-vxwext.ads
<s-vxwext-rtp.ads \
582 s-vxwext.adb
<s-vxwext-rtp.adb \
583 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
584 system.ads
<system-vxworks-
$(ARCH_STR
)-rtp.ads
587 EXTRA_LIBGNAT_OBJS
+=sigtramp-vxworks.o
589 ifeq ($(strip $(filter-out rtp-smp
,$(THREAD_KIND
))),)
590 LIBGNAT_TARGET_PAIRS
+= \
591 s-mudido.adb
<s-mudido-affinity.adb \
592 s-vxwext.ads
<s-vxwext-rtp.ads \
593 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
594 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
595 system.ads
<$(SVX
)-$(ARCH_STR
)-rtp-smp.ads
598 EXTRA_LIBGNAT_OBJS
+=affinity.o sigtramp-vxworks.o
599 EXTRA_LIBGNAT_SRCS
+=sigtramp.h
601 ifeq ($(strip $(filter-out kernel-smp
,$(THREAD_KIND
))),)
602 LIBGNAT_TARGET_PAIRS
+= \
603 s-interr.adb
<s-interr-hwint.adb \
604 s-mudido.adb
<s-mudido-affinity.adb \
605 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
606 s-vxwext.ads
<s-vxwext-kernel.ads \
607 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
608 system.ads
<system-vxworks-
$(ARCH_STR
)-kernel.ads
611 EXTRA_LIBGNAT_OBJS
+=affinity.o
613 LIBGNAT_TARGET_PAIRS
+= \
614 s-interr.adb
<s-interr-hwint.adb \
615 s-tpopsp.adb
<s-tpopsp-vxworks.adb
617 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
619 LIBGNAT_TARGET_PAIRS
+= \
620 s-vxwext.ads
<s-vxwext-kernel.ads \
621 s-vxwext.adb
<s-vxwext-kernel.adb \
622 system.ads
<system-vxworks-
$(ARCH_STR
)-kernel.ads
624 LIBGNAT_TARGET_PAIRS
+= \
625 system.ads
<system-vxworks-ppc.ads
628 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
629 EXTRA_LIBGNAT_OBJS
+=sigtramp-vxworks.o
630 EXTRA_LIBGNAT_SRCS
+=sigtramp.h
634 EXTRA_GNATRTL_TASKING_OBJS
+= s-vxwork.o s-vxwext.o
636 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
638 GCC_SPEC_FILES
+=vxworks-
$(ARCH_STR
)-link.spec
639 GCC_SPEC_FILES
+=vxworks-crtbe-link.spec
642 # PowerPC and e500v2 VxWorks 653
643 ifeq ($(strip $(filter-out powerpc
% wrs vxworksae
,$(target_cpu
) $(target_vendor
) $(target_os
))),)
645 ifeq ($(strip $(filter-out e500
%, $(target_alias
))),)
651 # target pairs for vthreads runtime
652 LIBGNAT_TARGET_PAIRS
= \
653 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
654 a-intnam.ads
<a-intnam-vxworks.ads \
655 a-numaux.ads
<a-numaux-vxworks.ads \
656 g-io.adb
<g-io-vxworks-ppc-cert.adb \
657 s-inmaop.adb
<s-inmaop-vxworks.adb \
658 s-interr.adb
<s-interr-hwint.adb \
659 s-intman.ads
<s-intman-vxworks.ads \
660 s-intman.adb
<s-intman-vxworks.adb \
661 s-osinte.adb
<s-osinte-vxworks.adb \
662 s-osinte.ads
<s-osinte-vxworks.ads \
663 s-osprim.adb
<s-osprim-vxworks.adb \
664 s-parame.ads
<s-parame-ae653.ads \
665 s-parame.adb
<s-parame-vxworks.adb \
666 s-taprop.adb
<s-taprop-vxworks.adb \
667 s-tasinf.ads
<s-tasinf-vxworks.ads \
668 s-taspri.ads
<s-taspri-vxworks.ads \
669 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
670 s-vxwext.adb
<s-vxwext-noints.adb \
671 s-vxwext.ads
<s-vxwext-vthreads.ads \
672 s-vxwork.ads
<s-vxwork-ppc.ads \
673 system.ads
<system-vxworks-
$(ARCH_STR
)-vthread.ads \
674 $(ATOMICS_TARGET_PAIRS
) \
675 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
678 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
679 indepsw.adb
<indepsw-gnu.adb
681 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
682 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
684 EXTRA_LIBGNAT_OBJS
+=sigtramp-vxworks.o
685 EXTRA_LIBGNAT_SRCS
+=sigtramp.h
687 # Extra pairs for the vthreads runtime
688 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
689 LIBGNAT_TARGET_PAIRS
+= \
690 s-thread.adb
<s-thread-ae653.adb \
691 $(DUMMY_SOCKETS_TARGET_PAIRS
)
693 GNATRTL_SOCKETS_OBJS
=
694 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
696 LIBGNAT_TARGET_PAIRS
+= \
697 g-socthi.ads
<g-socthi-vxworks.ads \
698 g-socthi.adb
<g-socthi-vxworks.adb \
699 g-stsifd.adb
<g-stsifd-sockets.adb
702 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
703 LIBGNAT_TARGET_PAIRS
+= \
704 s-traces.adb
<s-traces-default.adb \
705 s-trafor.adb
<s-trafor-default.adb \
706 s-trafor.ads
<s-trafor-default.ads \
707 s-tratas.adb
<s-tratas-default.adb \
708 s-tfsetr.adb
<s-tfsetr-vxworks.adb
712 # PowerPC and e500v2 VxWorks MILS
713 ifeq ($(strip $(filter-out powerpc
% wrs vxworksmils
,$(target_cpu
) $(target_vendor
) $(target_os
))),)
714 # target pairs for vthreads runtime
715 LIBGNAT_TARGET_PAIRS
= \
716 a-elchha.adb
<a-elchha-vx6-raven-cert.adb \
717 a-intnam.ads
<a-intnam-vxworks.ads \
718 a-numaux.ads
<a-numaux-vxworks.ads \
719 g-io.adb
<g-io-vxworks-ppc-cert.adb \
720 s-inmaop.adb
<s-inmaop-vxworks.adb \
721 s-interr.adb
<s-interr-hwint.adb \
722 s-intman.ads
<s-intman-vxworks.ads \
723 s-intman.adb
<s-intman-vxworks.adb \
724 s-osinte.adb
<s-osinte-vxworks.adb \
725 s-osinte.ads
<s-osinte-vxworks.ads \
726 s-osprim.adb
<s-osprim-vxworks.adb \
727 s-parame.ads
<s-parame-ae653.ads \
728 s-parame.adb
<s-parame-vxworks.adb \
729 s-stchop.adb
<s-stchop-vxworks.adb \
730 s-stchop.ads
<s-stchop-limit.ads \
731 s-taprop.adb
<s-taprop-vxworks.adb \
732 s-tasinf.ads
<s-tasinf-vxworks.ads \
733 s-taspri.ads
<s-taspri-vxworks.ads \
734 s-thread.adb
<s-thread-ae653.adb \
735 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
736 s-vxwork.ads
<s-vxwork-ppc.ads \
737 system.ads
<system-vxworks-ppc-mils.ads \
738 $(ATOMICS_TARGET_PAIRS
) \
739 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
740 $(DUMMY_SOCKETS_TARGET_PAIRS
)
743 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
744 indepsw.adb
<indepsw-gnu.adb
746 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-thread.o
747 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
749 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o sigtramp-vxworks.o
750 EXTRA_LIBGNAT_SRCS
+=sigtramp.h
751 GNATRTL_SOCKETS_OBJS
=
753 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
754 LIBGNAT_TARGET_PAIRS
+= \
755 s-traces.adb
<s-traces-default.adb \
756 s-trafor.adb
<s-trafor-default.adb \
757 s-trafor.ads
<s-trafor-default.ads \
758 s-tratas.adb
<s-tratas-default.adb \
759 s-tfsetr.adb
<s-tfsetr-vxworks.adb
763 # VxWorksae / VxWorks 653 for x86 (vxsim) - ?? VxWorks mils not implemented
764 ifeq ($(strip $(filter-out %86 wrs vxworksae vxworksmils
,$(target_cpu
) $(target_vendor
) $(target_os
))),)
765 # target pairs for kernel + vthreads runtime
766 LIBGNAT_TARGET_PAIRS
= \
767 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
768 a-intnam.ads
<a-intnam-vxworks.ads \
769 a-numaux.ads
<a-numaux-vxworks.ads \
770 g-io.adb
<g-io-vxworks-ppc-cert.adb \
771 s-inmaop.adb
<s-inmaop-vxworks.adb \
772 s-interr.adb
<s-interr-hwint.adb \
773 s-intman.ads
<s-intman-vxworks.ads \
774 s-intman.adb
<s-intman-vxworks.adb \
775 s-osinte.adb
<s-osinte-vxworks.adb \
776 s-osinte.ads
<s-osinte-vxworks.ads \
777 s-osprim.adb
<s-osprim-vxworks.adb \
778 s-parame.ads
<s-parame-ae653.ads \
779 s-parame.adb
<s-parame-vxworks.adb \
780 s-taprop.adb
<s-taprop-vxworks.adb \
781 s-tasinf.ads
<s-tasinf-vxworks.ads \
782 s-taspri.ads
<s-taspri-vxworks.ads \
783 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
784 s-vxwext.adb
<s-vxwext-noints.adb \
785 s-vxwext.ads
<s-vxwext-vthreads.ads \
786 s-vxwork.ads
<s-vxwork-x86.ads \
787 system.ads
<system-vxworks-x86-vthread.ads \
788 $(ATOMICS_TARGET_PAIRS
) \
789 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
792 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
793 indepsw.adb
<indepsw-gnu.adb
795 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-thread.o
796 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
798 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
799 GNATRTL_SOCKETS_OBJS
=
801 # Extra pairs for the vthreads runtime
802 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
803 LIBGNAT_TARGET_PAIRS
+= \
804 s-thread.adb
<s-thread-ae653.adb \
805 $(DUMMY_SOCKETS_TARGET_PAIRS
)
807 GNATRTL_SOCKETS_OBJS
=
808 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
810 LIBGNAT_TARGET_PAIRS
+= \
811 g-socthi.ads
<g-socthi-vxworks.ads \
812 g-socthi.adb
<g-socthi-vxworks.adb \
813 g-stsifd.adb
<g-stsifd-sockets.adb
816 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
817 LIBGNAT_TARGET_PAIRS
+= \
818 s-traces.adb
<s-traces-default.adb \
819 s-trafor.adb
<s-trafor-default.adb \
820 s-trafor.ads
<s-trafor-default.ads \
821 s-tratas.adb
<s-tratas-default.adb \
822 s-tfsetr.adb
<s-tfsetr-vxworks.adb
827 ifeq ($(strip $(filter-out sparc
% wrs vx
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
828 LIBGNAT_TARGET_PAIRS
= \
829 a-intnam.ads
<a-intnam-vxworks.ads \
830 a-numaux.ads
<a-numaux-vxworks.ads \
831 s-inmaop.adb
<s-inmaop-vxworks.adb \
832 s-interr.adb
<s-interr-hwint.adb \
833 s-intman.ads
<s-intman-vxworks.ads \
834 s-intman.adb
<s-intman-vxworks.adb \
835 s-osinte.adb
<s-osinte-vxworks.adb \
836 s-osinte.ads
<s-osinte-vxworks.ads \
837 s-osprim.adb
<s-osprim-vxworks.adb \
838 s-parame.ads
<s-parame-vxworks.ads \
839 s-parame.adb
<s-parame-vxworks.adb \
840 s-stchop.ads
<s-stchop-limit.ads \
841 s-stchop.adb
<s-stchop-vxworks.adb \
842 s-taprop.adb
<s-taprop-vxworks.adb \
843 s-tasinf.ads
<s-tasinf-vxworks.ads \
844 s-taspri.ads
<s-taspri-vxworks.ads \
845 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
846 g-socthi.ads
<g-socthi-vxworks.ads \
847 g-socthi.adb
<g-socthi-vxworks.adb \
848 g-stsifd.adb
<g-stsifd-sockets.adb
851 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
852 indepsw.adb
<indepsw-gnu.adb
854 ifeq ($(strip $(filter-out sparc64 sparcv9
, $(target_cpu
))),)
856 LIBGNAT_TARGET_PAIRS
+= \
857 s-vxwork.ads
<s-vxwork-sparcv9.ads \
858 system.ads
<system-vxworks-sparcv9.ads
861 LIBGNAT_TARGET_PAIRS
+= \
862 s-vxwork.ads
<s-vxwork-sparc.ads \
863 system.ads
<system-vxworks-sparc-kernel.ads
866 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
867 LIBGNAT_TARGET_PAIRS
+= \
868 s-vxwext.ads
<s-vxwext-kernel.ads \
869 s-vxwext.adb
<s-vxwext-kernel.adb
872 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
873 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
875 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
879 ifeq ($(strip $(filter-out %86 wrs vxworks vxworks7
,$(target_cpu
) $(target_vendor
) $(target_os
))),)
881 ifeq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
887 LIBGNAT_TARGET_PAIRS
= \
888 a-intnam.ads
<a-intnam-vxworks.ads \
889 i-vxwork.ads
<i-vxwork-x86.ads \
890 s-osinte.adb
<s-osinte-vxworks.adb \
891 s-osinte.ads
<s-osinte-vxworks.ads \
892 s-inmaop.adb
<s-inmaop-vxworks.adb \
893 s-intman.ads
<s-intman-vxworks.ads \
894 s-intman.adb
<s-intman-vxworks.adb \
895 s-osprim.adb
<s-osprim-vxworks.adb \
896 s-parame.ads
<s-parame-vxworks.ads \
897 s-parame.adb
<s-parame-vxworks.adb \
898 s-stchop.ads
<s-stchop-limit.ads \
899 s-stchop.adb
<s-stchop-vxworks.adb \
900 s-taprop.adb
<s-taprop-vxworks.adb \
901 s-tasinf.ads
<s-tasinf-vxworks.ads \
902 s-taspri.ads
<s-taspri-vxworks.ads \
903 s-vxwork.ads
<s-vxwork-x86.ads \
904 g-socthi.ads
<g-socthi-vxworks.ads \
905 g-socthi.adb
<g-socthi-vxworks.adb \
906 g-stsifd.adb
<g-stsifd-sockets.adb \
907 $(ATOMICS_TARGET_PAIRS
) \
911 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
912 indepsw.adb
<indepsw-gnu.adb
914 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
915 LIBGNAT_TARGET_PAIRS
+= \
916 s-traces.adb
<s-traces-default.adb \
917 s-trafor.adb
<s-trafor-default.adb \
918 s-trafor.ads
<s-trafor-default.ads \
919 s-tratas.adb
<s-tratas-default.adb \
920 s-tfsetr.adb
<s-tfsetr-vxworks.adb
923 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
924 LIBGNAT_TARGET_PAIRS
+= \
925 s-vxwext.ads
<s-vxwext-rtp.ads \
926 s-vxwext.adb
<s-vxwext-rtp.adb \
927 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
928 system.ads
<system-vxworks-x86-rtp.ads
931 ifeq ($(strip $(filter-out rtp-smp
, $(THREAD_KIND
))),)
932 LIBGNAT_TARGET_PAIRS
+= \
933 s-mudido.adb
<s-mudido-affinity.adb \
934 s-vxwext.ads
<s-vxwext-rtp.ads \
935 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
936 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
937 system.ads
<$(SVX
)-x86-rtp-smp.ads
939 EXTRA_LIBGNAT_OBJS
+=affinity.o
941 ifeq ($(strip $(filter-out kernel-smp
, $(THREAD_KIND
))),)
942 LIBGNAT_TARGET_PAIRS
+= \
943 s-interr.adb
<s-interr-hwint.adb \
944 s-mudido.adb
<s-mudido-affinity.adb \
945 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
946 s-vxwext.ads
<s-vxwext-kernel.ads \
947 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
948 system.ads
<$(SVX
)-x86-kernel.ads
949 EXTRA_LIBGNAT_OBJS
+=affinity.o
951 LIBGNAT_TARGET_PAIRS
+= \
952 s-interr.adb
<s-interr-hwint.adb \
953 s-tpopsp.adb
<s-tpopsp-vxworks.adb
955 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
956 LIBGNAT_TARGET_PAIRS
+= \
957 s-vxwext.ads
<s-vxwext-kernel.ads \
958 s-vxwext.adb
<s-vxwext-kernel.adb \
959 system.ads
<system-vxworks-x86-kernel.ads
961 LIBGNAT_TARGET_PAIRS
+= \
962 system.ads
<system-vxworks-x86.ads
966 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
969 EXTRA_GNATRTL_TASKING_OBJS
+= s-vxwork.o s-vxwext.o
971 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
973 ifneq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
974 GCC_SPEC_FILES
+=vxworks-x86-link.spec
975 GCC_SPEC_FILES
+=vxworks-smp-x86-link.spec
980 ifeq ($(strip $(filter-out arm
% coff wrs vx
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
982 ifeq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
988 LIBGNAT_TARGET_PAIRS
= \
989 a-intnam.ads
<a-intnam-vxworks.ads \
990 a-numaux.ads
<a-numaux-vxworks.ads \
991 s-inmaop.adb
<s-inmaop-vxworks.adb \
992 s-interr.adb
<s-interr-hwint.adb \
993 s-intman.ads
<s-intman-vxworks.ads \
994 s-intman.adb
<s-intman-vxworks.adb \
995 s-osinte.adb
<s-osinte-vxworks.adb \
996 s-osinte.ads
<s-osinte-vxworks.ads \
997 s-osprim.adb
<s-osprim-vxworks.adb \
998 s-parame.ads
<s-parame-vxworks.ads \
999 s-parame.adb
<s-parame-vxworks.adb \
1000 s-stchop.ads
<s-stchop-limit.ads \
1001 s-stchop.adb
<s-stchop-vxworks.adb \
1002 s-taprop.adb
<s-taprop-vxworks.adb \
1003 s-tasinf.ads
<s-tasinf-vxworks.ads \
1004 s-taspri.ads
<s-taspri-vxworks.ads \
1005 s-vxwork.ads
<s-vxwork-arm.ads \
1006 g-socthi.ads
<g-socthi-vxworks.ads \
1007 g-socthi.adb
<g-socthi-vxworks.adb \
1008 g-stsifd.adb
<g-stsifd-sockets.adb
1010 TOOLS_TARGET_PAIRS
=\
1011 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
1012 indepsw.adb
<indepsw-gnu.adb
1014 ifeq ($(strip $(filter-out rtp-smp
,$(THREAD_KIND
))),)
1017 LIBGNAT_TARGET_PAIRS
+= \
1018 s-mudido.adb
<s-mudido-affinity.adb \
1019 s-vxwext.ads
<s-vxwext-rtp.ads \
1020 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
1021 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
1022 system.ads
<$(SVX
)-arm-rtp-smp.ads
1024 EXTRA_LIBGNAT_OBJS
+=affinity.o sigtramp-vxworks.o
1025 EXTRA_LIBGNAT_SRCS
+=sigtramp.h
1027 ifeq ($(strip $(filter-out kernel-smp
,$(THREAD_KIND
))),)
1030 LIBGNAT_TARGET_PAIRS
+= \
1031 s-mudido.adb
<s-mudido-affinity.adb \
1032 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
1033 s-vxwext.ads
<s-vxwext-kernel.ads \
1034 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
1035 system.ads
<system-vxworks-arm.ads
1037 EXTRA_LIBGNAT_OBJS
+=affinity.o sigtramp-vxworks.o
1038 EXTRA_LIBGNAT_SRCS
+=sigtramp.h
1040 LIBGNAT_TARGET_PAIRS
+= \
1041 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
1042 system.ads
<system-vxworks-arm.ads
1044 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
1047 LIBGNAT_TARGET_PAIRS
+= \
1048 s-vxwext.ads
<s-vxwext-kernel.ads \
1049 s-vxwext.adb
<s-vxwext-kernel.adb
1051 EXTRA_LIBGNAT_OBJS
+=sigtramp-vxworks.o
1052 EXTRA_LIBGNAT_SRCS
+=sigtramp.h
1057 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
1058 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
1060 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
1062 GCC_SPEC_FILES
+=vxworks-crtbe-link.spec
1063 GCC_SPEC_FILES
+=vxworks-arm-link.spec
1064 GCC_SPEC_FILES
+=vxworks-smp-arm-link.spec
1068 ifeq ($(strip $(filter-out mips
% wrs vx
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1069 LIBGNAT_TARGET_PAIRS
= \
1070 a-intnam.ads
<a-intnam-vxworks.ads \
1071 a-numaux.ads
<a-numaux-vxworks.ads \
1072 s-inmaop.adb
<s-inmaop-vxworks.adb \
1073 s-interr.adb
<s-interr-hwint.adb \
1074 s-intman.ads
<s-intman-vxworks.ads \
1075 s-intman.adb
<s-intman-vxworks.adb \
1076 s-osinte.adb
<s-osinte-vxworks.adb \
1077 s-osinte.ads
<s-osinte-vxworks.ads \
1078 s-osprim.adb
<s-osprim-vxworks.adb \
1079 s-parame.ads
<s-parame-vxworks.ads \
1080 s-parame.adb
<s-parame-vxworks.adb \
1081 s-stchop.ads
<s-stchop-limit.ads \
1082 s-stchop.adb
<s-stchop-vxworks.adb \
1083 s-taprop.adb
<s-taprop-vxworks.adb \
1084 s-tasinf.ads
<s-tasinf-vxworks.ads \
1085 s-taspri.ads
<s-taspri-vxworks.ads \
1086 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
1087 s-vxwork.ads
<s-vxwork-mips.ads \
1088 g-socthi.ads
<g-socthi-vxworks.ads \
1089 g-socthi.adb
<g-socthi-vxworks.adb \
1090 g-stsifd.adb
<g-stsifd-sockets.adb \
1091 system.ads
<system-vxworks-mips.ads
1093 TOOLS_TARGET_PAIRS
=\
1094 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
1095 indepsw.adb
<indepsw-gnu.adb
1097 ifeq ($(strip $(filter-out rtp-smp
,$(THREAD_KIND
))),)
1100 LIBGNAT_TARGET_PAIRS
+= \
1101 s-mudido.adb
<s-mudido-affinity.adb \
1102 s-vxwext.ads
<s-vxwext-rtp.ads \
1103 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
1104 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb
1106 EXTRA_LIBGNAT_OBJS
+=affinity.o sigtramp-vxworks.o
1108 ifeq ($(strip $(filter-out kernel-smp
,$(THREAD_KIND
))),)
1109 LIBGNAT_TARGET_PAIRS
+= \
1110 s-mudido.adb
<s-mudido-affinity.adb \
1111 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
1112 s-vxwext.ads
<s-vxwext-kernel.ads \
1113 s-vxwext.adb
<s-vxwext-kernel-smp.adb
1115 EXTRA_LIBGNAT_OBJS
+=affinity.o
1117 LIBGNAT_TARGET_PAIRS
+= \
1118 s-tpopsp.adb
<s-tpopsp-vxworks.adb
1120 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
1121 LIBGNAT_TARGET_PAIRS
+= \
1122 s-vxwext.ads
<s-vxwext-kernel.ads \
1123 s-vxwext.adb
<s-vxwext-kernel.adb
1128 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
1129 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
1131 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
1135 ifeq ($(strip $(filter-out arm
% linux-androideabi
,$(target_cpu
) $(target_os
))),)
1136 LIBGNAT_TARGET_PAIRS
= \
1137 a-intnam.ads
<a-intnam-linux.ads \
1138 s-inmaop.adb
<s-inmaop-posix.adb \
1139 s-intman.adb
<s-intman-android.adb \
1140 s-linux.ads
<s-linux-android.ads \
1141 s-osinte.adb
<s-osinte-android.adb \
1142 s-osinte.ads
<s-osinte-android.ads \
1143 s-osprim.adb
<s-osprim-posix.adb \
1144 s-taprop.adb
<s-taprop-posix.adb \
1145 s-taspri.ads
<s-taspri-posix.ads \
1146 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1147 system.ads
<system-linux-armel.ads \
1148 a-exexpr.adb
<a-exexpr-gcc.adb \
1149 s-excmac.ads
<s-excmac-arm.ads
1151 TOOLS_TARGET_PAIRS
= \
1152 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1153 indepsw.adb
<indepsw-gnu.adb
1155 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1156 EXTRA_LIBGNAT_OBJS
+=raise-gcc.o sigtramp-armdroid.o
1157 EXTRA_GNATRTL_NONTASKING_OBJS
+=g-cppexc.o s-excmac.o
1160 GNATLIB_SHARED
= gnatlib-shared-dual
1161 LIBRARY_VERSION
:= $(LIB_VERSION
)
1165 ifeq ($(strip $(filter-out sparc
% sun solaris
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1166 LIBGNAT_TARGET_PAIRS_COMMON
= \
1167 a-intnam.ads
<a-intnam-solaris.ads \
1168 s-inmaop.adb
<s-inmaop-posix.adb \
1169 s-intman.adb
<s-intman-solaris.adb \
1170 s-mudido.adb
<s-mudido-affinity.adb \
1171 s-osinte.adb
<s-osinte-solaris.adb \
1172 s-osinte.ads
<s-osinte-solaris.ads \
1173 s-osprim.adb
<s-osprim-solaris.adb \
1174 s-taprop.adb
<s-taprop-solaris.adb \
1175 s-tasinf.adb
<s-tasinf-solaris.adb \
1176 s-tasinf.ads
<s-tasinf-solaris.ads \
1177 s-taspri.ads
<s-taspri-solaris.ads \
1178 s-tpopsp.adb
<s-tpopsp-solaris.adb \
1179 g-soliop.ads
<g-soliop-solaris.ads \
1180 $(ATOMICS_TARGET_PAIRS
) \
1181 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
1183 LIBGNAT_TARGET_PAIRS_32
= \
1184 system.ads
<system-solaris-sparc.ads
1186 LIBGNAT_TARGET_PAIRS_64
= \
1187 system.ads
<system-solaris-sparcv9.ads
1189 ifeq ($(strip $(filter-out sparc sun solaris
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1190 ifeq ($(strip $(MULTISUBDIR
)),/sparcv9
)
1191 LIBGNAT_TARGET_PAIRS
= \
1192 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1194 LIBGNAT_TARGET_PAIRS
= \
1195 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1198 ifeq ($(strip $(MULTISUBDIR
)),/sparcv8plus
)
1199 LIBGNAT_TARGET_PAIRS
= \
1200 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1202 LIBGNAT_TARGET_PAIRS
= \
1203 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1207 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
1210 THREADSLIB
= -lposix4
-lthread
1211 MISCLIB
= -lposix4
-lnsl
-lsocket
1213 GNATLIB_SHARED
= gnatlib-shared-dual
1215 LIBRARY_VERSION
:= $(LIB_VERSION
)
1217 ifeq ($(strip $(filter-out pthread PTHREAD
,$(THREAD_KIND
))),)
1218 LIBGNAT_TARGET_PAIRS
= \
1219 a-intnam.ads
<a-intnam-solaris.ads \
1220 s-inmaop.adb
<s-inmaop-posix.adb \
1221 s-intman.adb
<s-intman-posix.adb \
1222 s-osinte.adb
<s-osinte-posix.adb \
1223 s-osinte.ads
<s-osinte-solaris-posix.ads \
1224 s-osprim.adb
<s-osprim-solaris.adb \
1225 s-taprop.adb
<s-taprop-posix.adb \
1226 s-taspri.ads
<s-taspri-posix.ads \
1227 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1228 g-soliop.ads
<g-soliop-solaris.ads \
1229 system.ads
<system-solaris-sparc.ads
1231 THREADSLIB
= -lposix4
-lpthread
1234 ifeq ($(strip $(filter-out m64
,$(THREAD_KIND
))),)
1235 LIBGNAT_TARGET_PAIRS
= $(LIBGNAT_TARGET_PAIRS_64
)
1239 # x86 and x86-64 solaris
1240 ifeq ($(strip $(filter-out %86 %x86_64 solaris2
%,$(target_cpu
) $(target_os
))),)
1241 LIBGNAT_TARGET_PAIRS_COMMON
= \
1242 a-intnam.ads
<a-intnam-solaris.ads \
1243 s-inmaop.adb
<s-inmaop-posix.adb \
1244 s-intman.adb
<s-intman-solaris.adb \
1245 s-mudido.adb
<s-mudido-affinity.adb \
1246 s-osinte.adb
<s-osinte-solaris.adb \
1247 s-osinte.ads
<s-osinte-solaris.ads \
1248 s-osprim.adb
<s-osprim-solaris.adb \
1249 s-taprop.adb
<s-taprop-solaris.adb \
1250 s-tasinf.adb
<s-tasinf-solaris.adb \
1251 s-tasinf.ads
<s-tasinf-solaris.ads \
1252 s-taspri.ads
<s-taspri-solaris.ads \
1253 s-tpopsp.adb
<s-tpopsp-solaris.adb \
1254 g-soliop.ads
<g-soliop-solaris.ads \
1255 $(ATOMICS_TARGET_PAIRS
)
1257 LIBGNAT_TARGET_PAIRS_32
= \
1258 $(X86_TARGET_PAIRS
) \
1259 system.ads
<system-solaris-x86.ads
1261 LIBGNAT_TARGET_PAIRS_64
= \
1262 $(X86_64_TARGET_PAIRS
) \
1263 system.ads
<system-solaris-x86_64.ads
1265 ifeq ($(strip $(filter-out %86 solaris2
%,$(target_cpu
) $(target_os
))),)
1266 ifeq ($(strip $(MULTISUBDIR
)),/amd64
)
1267 LIBGNAT_TARGET_PAIRS
= \
1268 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1270 LIBGNAT_TARGET_PAIRS
= \
1271 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1274 ifeq ($(strip $(MULTISUBDIR
)),/32)
1275 LIBGNAT_TARGET_PAIRS
= \
1276 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1278 LIBGNAT_TARGET_PAIRS
= \
1279 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1283 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
1285 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1288 THREADSLIB
= -lposix4
-lthread
1289 MISCLIB
= -lposix4
-lnsl
-lsocket
1291 GNATLIB_SHARED
= gnatlib-shared-dual
1293 LIBRARY_VERSION
:= $(LIB_VERSION
)
1297 ifeq ($(strip $(filter-out %86 linux
%,$(target_cpu
) $(target_os
))),)
1298 LIBGNAT_TARGET_PAIRS
= \
1299 a-intnam.ads
<a-intnam-linux.ads \
1300 a-synbar.adb
<a-synbar-posix.adb \
1301 a-synbar.ads
<a-synbar-posix.ads \
1302 s-inmaop.adb
<s-inmaop-posix.adb \
1303 s-intman.adb
<s-intman-posix.adb \
1304 s-tpopsp.adb
<s-tpopsp-tls.adb \
1305 g-sercom.adb
<g-sercom-linux.adb \
1306 a-exetim.adb
<a-exetim-posix.adb \
1307 a-exetim.ads
<a-exetim-default.ads \
1308 s-linux.ads
<s-linux.ads \
1309 s-osinte.adb
<s-osinte-posix.adb \
1310 $(ATOMICS_TARGET_PAIRS
)
1312 LIBGNAT_TARGET_PAIRS_32
= \
1313 $(X86_TARGET_PAIRS
) \
1314 system.ads
<system-linux-x86.ads
1316 LIBGNAT_TARGET_PAIRS_64
= \
1317 $(X86_64_TARGET_PAIRS
) \
1318 system.ads
<system-linux-x86_64.ads
1320 ifeq ($(strip $(MULTISUBDIR
)),/64)
1321 LIBGNAT_TARGET_PAIRS
+= $(LIBGNAT_TARGET_PAIRS_64
)
1323 LIBGNAT_TARGET_PAIRS
+= $(LIBGNAT_TARGET_PAIRS_32
)
1326 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1327 LIBGNAT_TARGET_PAIRS
+= \
1328 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1329 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1330 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1331 s-taspri.ads
<s-taspri-linux-xenomai.ads
1333 LIBGNAT_TARGET_PAIRS
+= \
1334 s-mudido.adb
<s-mudido-affinity.adb \
1335 s-osinte.ads
<s-osinte-linux.ads \
1336 s-osprim.adb
<s-osprim-posix.adb \
1337 s-taprop.adb
<s-taprop-linux.adb \
1338 s-tasinf.ads
<s-tasinf-linux.ads \
1339 s-tasinf.adb
<s-tasinf-linux.adb \
1340 s-taspri.ads
<s-taspri-posix.ads
1344 THREADSLIB
= -lpthread
-lrt
1345 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1346 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1348 TOOLS_TARGET_PAIRS
= \
1349 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1350 indepsw.adb
<indepsw-gnu.adb
1352 GNATLIB_SHARED
= gnatlib-shared-dual
1355 LIBRARY_VERSION
:= $(LIB_VERSION
)
1359 ifeq ($(strip $(filter-out %86 kfreebsd
%,$(target_cpu
) $(target_os
))),)
1360 LIBGNAT_TARGET_PAIRS
= \
1361 a-intnam.ads
<a-intnam-freebsd.ads \
1362 s-inmaop.adb
<s-inmaop-posix.adb \
1363 s-intman.adb
<s-intman-posix.adb \
1364 s-osinte.adb
<s-osinte-posix.adb \
1365 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1366 s-osprim.adb
<s-osprim-posix.adb \
1367 s-taprop.adb
<s-taprop-linux.adb \
1368 s-tasinf.ads
<s-tasinf-linux.ads \
1369 s-tasinf.adb
<s-tasinf-linux.adb \
1370 s-taspri.ads
<s-taspri-posix.ads \
1371 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1372 $(ATOMICS_TARGET_PAIRS
) \
1373 $(X86_TARGET_PAIRS
) \
1374 system.ads
<system-freebsd-x86.ads
1376 TOOLS_TARGET_PAIRS
= \
1377 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1378 indepsw.adb
<indepsw-gnu.adb
1380 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1383 THREADSLIB
= -lpthread
1384 GNATLIB_SHARED
= gnatlib-shared-dual
1386 LIBRARY_VERSION
:= $(LIB_VERSION
)
1390 ifeq ($(strip $(filter-out x86_64 kfreebsd
%,$(target_cpu
) $(target_os
))),)
1391 LIBGNAT_TARGET_PAIRS
= \
1392 a-intnam.ads
<a-intnam-freebsd.ads \
1393 a-numaux.adb
<a-numaux-x86.adb \
1394 a-numaux.ads
<a-numaux-x86.ads \
1395 s-inmaop.adb
<s-inmaop-posix.adb \
1396 s-intman.adb
<s-intman-posix.adb \
1397 s-osinte.adb
<s-osinte-posix.adb \
1398 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1399 s-osprim.adb
<s-osprim-posix.adb \
1400 s-taprop.adb
<s-taprop-linux.adb \
1401 s-tasinf.ads
<s-tasinf-linux.ads \
1402 s-tasinf.adb
<s-tasinf-linux.adb \
1403 s-taspri.ads
<s-taspri-posix.ads \
1404 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1405 system.ads
<system-freebsd-x86_64.ads
1407 TOOLS_TARGET_PAIRS
= \
1408 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1409 indepsw.adb
<indepsw-gnu.adb
1412 THREADSLIB
= -lpthread
1413 GNATLIB_SHARED
= gnatlib-shared-dual
1415 LIBRARY_VERSION
:= $(LIB_VERSION
)
1419 ifeq ($(strip $(filter-out %86 freebsd
%,$(target_cpu
) $(target_os
))),)
1420 LIBGNAT_TARGET_PAIRS
= \
1421 a-intnam.ads
<a-intnam-freebsd.ads \
1422 s-inmaop.adb
<s-inmaop-posix.adb \
1423 s-intman.adb
<s-intman-posix.adb \
1424 s-osinte.adb
<s-osinte-freebsd.adb \
1425 s-osinte.ads
<s-osinte-freebsd.ads \
1426 s-osprim.adb
<s-osprim-posix.adb \
1427 s-taprop.adb
<s-taprop-posix.adb \
1428 s-taspri.ads
<s-taspri-posix.ads \
1429 s-tpopsp.adb
<s-tpopsp-posix.adb \
1430 $(ATOMICS_TARGET_PAIRS
) \
1431 $(X86_TARGET_PAIRS
) \
1432 system.ads
<system-freebsd-x86.ads
1434 TOOLS_TARGET_PAIRS
= \
1435 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
1436 GNATLIB_SHARED
= gnatlib-shared-dual
1438 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1441 THREADSLIB
= -lpthread
1443 LIBRARY_VERSION
:= $(LIB_VERSION
)
1448 ifeq ($(strip $(filter-out %86_64 freebsd
%,$(target_cpu
) $(target_os
))),)
1449 LIBGNAT_TARGET_PAIRS
= \
1450 a-intnam.ads
<a-intnam-freebsd.ads \
1451 s-inmaop.adb
<s-inmaop-posix.adb \
1452 s-intman.adb
<s-intman-posix.adb \
1453 s-osinte.adb
<s-osinte-freebsd.adb \
1454 s-osinte.ads
<s-osinte-freebsd.ads \
1455 s-osprim.adb
<s-osprim-posix.adb \
1456 s-taprop.adb
<s-taprop-posix.adb \
1457 s-taspri.ads
<s-taspri-posix.ads \
1458 s-tpopsp.adb
<s-tpopsp-posix.adb \
1459 $(ATOMICS_TARGET_PAIRS
) \
1460 $(X86_64_TARGET_PAIRS
) \
1461 system.ads
<system-freebsd-x86_64.ads
1463 TOOLS_TARGET_PAIRS
= \
1464 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
1465 GNATLIB_SHARED
= gnatlib-shared-dual
1467 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1470 THREADSLIB
= -lpthread
1472 LIBRARY_VERSION
:= $(LIB_VERSION
)
1477 ifeq ($(strip $(filter-out s390
% linux
%,$(target_cpu
) $(target_os
))),)
1478 LIBGNAT_TARGET_PAIRS_COMMON
= \
1479 a-intnam.ads
<a-intnam-linux.ads \
1480 s-inmaop.adb
<s-inmaop-posix.adb \
1481 s-intman.adb
<s-intman-posix.adb \
1482 s-linux.ads
<s-linux.ads \
1483 s-osinte.adb
<s-osinte-posix.adb \
1484 s-osinte.ads
<s-osinte-linux.ads \
1485 s-osprim.adb
<s-osprim-posix.adb \
1486 s-taprop.adb
<s-taprop-linux.adb \
1487 s-tasinf.ads
<s-tasinf-linux.ads \
1488 s-tasinf.adb
<s-tasinf-linux.adb \
1489 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1490 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
1492 LIBGNAT_TARGET_PAIRS_32
= \
1493 system.ads
<system-linux-s390.ads
1495 LIBGNAT_TARGET_PAIRS_64
= \
1496 system.ads
<system-linux-s390x.ads
1498 ifeq ($(strip $(filter-out s390x
,$(target_cpu
))),)
1499 ifeq ($(strip $(MULTISUBDIR
)),/32)
1500 LIBGNAT_TARGET_PAIRS
= \
1501 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1503 LIBGNAT_TARGET_PAIRS
= \
1504 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1507 LIBGNAT_TARGET_PAIRS
= \
1508 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1511 TOOLS_TARGET_PAIRS
= \
1512 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1513 indepsw.adb
<indepsw-gnu.adb
1515 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1517 THREADSLIB
= -lpthread
1518 GNATLIB_SHARED
= gnatlib-shared-dual
1519 LIBRARY_VERSION
:= $(LIB_VERSION
)
1523 ifeq ($(strip $(filter-out hppa
% hp hpux10
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1524 LIBGNAT_TARGET_PAIRS
= \
1525 a-excpol.adb
<a-excpol-abort.adb \
1526 a-intnam.ads
<a-intnam-hpux.ads \
1527 s-inmaop.adb
<s-inmaop-posix.adb \
1528 s-interr.adb
<s-interr-sigaction.adb \
1529 s-intman.adb
<s-intman-posix.adb \
1530 s-osinte.adb
<s-osinte-hpux-dce.adb \
1531 s-osinte.ads
<s-osinte-hpux-dce.ads \
1532 s-parame.ads
<s-parame-hpux.ads \
1533 s-osprim.adb
<s-osprim-posix.adb \
1534 s-taprop.adb
<s-taprop-hpux-dce.adb \
1535 s-taspri.ads
<s-taspri-hpux-dce.ads \
1536 s-tpopsp.adb
<s-tpopsp-posix.adb \
1537 system.ads
<system-hpux.ads
1543 ifeq ($(strip $(filter-out hppa
% hp hpux11
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1544 LIBGNAT_TARGET_PAIRS
= \
1545 a-intnam.ads
<a-intnam-hpux.ads \
1546 s-inmaop.adb
<s-inmaop-posix.adb \
1547 s-intman.adb
<s-intman-posix.adb \
1548 s-osinte.adb
<s-osinte-posix.adb \
1549 s-osinte.ads
<s-osinte-hpux.ads \
1550 s-parame.ads
<s-parame-hpux.ads \
1551 s-osprim.adb
<s-osprim-posix.adb \
1552 s-traceb.adb
<s-traceb-hpux.adb \
1553 s-taprop.adb
<s-taprop-posix.adb \
1554 s-taspri.ads
<s-taspri-posix.ads \
1555 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1556 system.ads
<system-hpux.ads
1558 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-hpux.adb
1560 TGT_LIB
= /usr
/lib
/libcl.a
1561 THREADSLIB
= -lpthread
1565 GNATLIB_SHARED
= gnatlib-shared-dual
1566 LIBRARY_VERSION
:= $(LIB_VERSION
)
1570 ifeq ($(strip $(filter-out ibm aix
%,$(target_vendor
) $(target_os
))),)
1571 LIBGNAT_TARGET_PAIRS_COMMON
= \
1572 a-intnam.ads
<a-intnam-aix.ads \
1573 s-inmaop.adb
<s-inmaop-posix.adb \
1574 s-intman.adb
<s-intman-posix.adb \
1575 s-osinte.adb
<s-osinte-aix.adb \
1576 s-osinte.ads
<s-osinte-aix.ads \
1577 s-osprim.adb
<s-osprim-posix.adb \
1578 s-taprop.adb
<s-taprop-posix.adb \
1579 s-taspri.ads
<s-taspri-posix.ads \
1580 s-tpopsp.adb
<s-tpopsp-posix.adb \
1581 $(ATOMICS_TARGET_PAIRS
) \
1582 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
1584 LIBGNAT_TARGET_PAIRS_32
= \
1585 system.ads
<system-aix.ads
1587 LIBGNAT_TARGET_PAIRS_64
= \
1588 system.ads
<system-aix64.ads
1590 ifeq ($(findstring ppc64
, \
1591 $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) \
1592 -print-multi-os-directory
)), \
1594 LIBGNAT_TARGET_PAIRS
= \
1595 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1596 TOOLS_TARGET_PAIRS
= \
1597 indepsw.adb
<indepsw-aix.adb
1599 LIBGNAT_TARGET_PAIRS
= \
1600 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1601 TOOLS_TARGET_PAIRS
= \
1602 indepsw.adb
<indepsw-gnu.adb
1605 THREADSLIB
= -lpthreads
1607 TOOLS_TARGET_PAIRS
+= \
1608 mlib-tgt-specific.adb
<mlib-tgt-specific-aix.adb
1614 ifeq ($(strip $(filter-out rtems
%,$(target_os
))),)
1615 LIBGNAT_TARGET_PAIRS
= \
1616 system.ads
<system-rtems.ads \
1617 a-intnam.ads
<a-intnam-rtems.ads \
1618 s-inmaop.adb
<s-inmaop-posix.adb \
1619 s-intman.adb
<s-intman-posix.adb \
1620 s-osinte.adb
<s-osinte-rtems.adb \
1621 s-osinte.ads
<s-osinte-rtems.ads \
1622 s-osprim.adb
<s-osprim-posix.adb \
1623 s-parame.adb
<s-parame-rtems.adb \
1624 s-taprop.adb
<s-taprop-posix.adb \
1625 s-taspri.ads
<s-taspri-posix.ads \
1626 s-tpopsp.adb
<s-tpopsp-rtems.adb \
1627 s-stchop.adb
<s-stchop-rtems.adb \
1628 s-interr.adb
<s-interr-hwint.adb
1632 ifeq ($(strip $(filter-out powerpc
% %86 sysgo pikeos
,$(target_cpu
) $(target_vendor
) $(target_os
)))),)
1633 TOOLS_TARGET_PAIRS
=\
1634 mlib-tgt-specific.adb
<mlib-tgt-specific-xi.adb \
1635 indepsw.adb
<indepsw-gnu.adb
1638 # *-elf, *-eabi, or *-eabispe
1639 ifeq ($(strip $(filter-out elf eabi eabispe
,$(target_os
))),)
1640 TOOLS_TARGET_PAIRS
=\
1641 mlib-tgt-specific.adb
<mlib-tgt-specific-xi.adb \
1642 indepsw.adb
<indepsw-gnu.adb
1646 ifeq ($(strip $(filter-out cygwin
% mingw32
% pe
,$(target_os
))),)
1647 # Cygwin provides a full Posix environment, and so we use the default
1648 # versions of s-memory and g-socthi rather than the Windows-specific
1649 # MinGW versions. Ideally we would use all the default versions for
1650 # Cygwin and none of the MinGW versions, but for historical reasons
1651 # the Cygwin port has always been a CygMing frankenhybrid and it is
1652 # a long-term project to disentangle them.
1653 ifeq ($(strip $(filter-out cygwin
%,$(target_os
))),)
1654 LIBGNAT_TARGET_PAIRS
= \
1655 s-memory.adb
<s-memory.adb \
1656 g-socthi.ads
<g-socthi.ads \
1657 g-socthi.adb
<g-socthi.adb
1659 LIBGNAT_TARGET_PAIRS
= \
1660 s-memory.adb
<s-memory-mingw.adb \
1661 g-socthi.ads
<g-socthi-mingw.ads \
1662 g-socthi.adb
<g-socthi-mingw.adb
1664 LIBGNAT_TARGET_PAIRS
+= \
1665 a-dirval.adb
<a-dirval-mingw.adb \
1666 a-excpol.adb
<a-excpol-abort.adb \
1667 s-gloloc.adb
<s-gloloc-mingw.adb \
1668 s-inmaop.adb
<s-inmaop-dummy.adb \
1669 s-taspri.ads
<s-taspri-mingw.ads \
1670 s-tasinf.adb
<s-tasinf-mingw.adb \
1671 s-tasinf.ads
<s-tasinf-mingw.ads \
1672 g-stsifd.adb
<g-stsifd-sockets.adb \
1673 g-soliop.ads
<g-soliop-mingw.ads \
1674 $(ATOMICS_TARGET_PAIRS
)
1676 LIBGNAT_TARGET_PAIRS
+= \
1677 a-exetim.adb
<a-exetim-mingw.adb \
1678 a-exetim.ads
<a-exetim-mingw.ads \
1679 a-intnam.ads
<a-intnam-mingw.ads \
1680 g-sercom.adb
<g-sercom-mingw.adb \
1681 s-interr.adb
<s-interr-sigaction.adb \
1682 s-intman.adb
<s-intman-mingw.adb \
1683 s-mudido.adb
<s-mudido-affinity.adb \
1684 s-osinte.ads
<s-osinte-mingw.ads \
1685 s-osprim.adb
<s-osprim-mingw.adb \
1686 s-taprop.adb
<s-taprop-mingw.adb
1688 ifeq ($(strip $(filter-out x86_64
%,$(target_cpu
))),)
1689 ifeq ($(strip $(MULTISUBDIR
)),/32)
1690 LIBGNAT_TARGET_PAIRS
+= \
1691 $(X86_TARGET_PAIRS
) \
1692 system.ads
<system-mingw.ads
1693 SO_OPTS
= -m32
-Wl
,-soname
,
1695 LIBGNAT_TARGET_PAIRS
+= \
1696 $(X86_64_TARGET_PAIRS
) \
1697 system.ads
<system-mingw-x86_64.ads
1698 SO_OPTS
= -m64
-Wl
,-soname
,
1701 ifeq ($(strip $(MULTISUBDIR
)),/64)
1702 LIBGNAT_TARGET_PAIRS
+= \
1703 $(X86_64_TARGET_PAIRS
) \
1704 system.ads
<system-mingw-x86_64.ads
1705 SO_OPTS
= -m64
-Wl
,-soname
,
1707 LIBGNAT_TARGET_PAIRS
+= \
1708 $(X86_TARGET_PAIRS
) \
1709 system.ads
<system-mingw.ads
1710 SO_OPTS
= -m32
-Wl
,-soname
,
1714 EXTRA_GNATRTL_NONTASKING_OBJS
= \
1715 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1716 EXTRA_GNATRTL_TASKING_OBJS
= a-exetim.o
1717 EXTRA_LIBGNAT_SRCS
+=mingw32.h
1720 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1721 # auto-import support for array/record will be done.
1722 GNATLIB_SHARED
= gnatlib-shared-win32
1726 TOOLS_TARGET_PAIRS
= \
1727 mlib-tgt-specific.adb
<mlib-tgt-specific-mingw.adb \
1728 indepsw.adb
<indepsw-mingw.adb
1731 EXTRA_GNATTOOLS
= ..
/..
/gnatdll
$(exeext
)
1732 EXTRA_GNATMAKE_OBJS
= mdll.o mdll-utl.o mdll-fil.o
1734 LIBRARY_VERSION
:= $(LIB_VERSION
)
1738 ifeq ($(strip $(filter-out mips linux
%,$(target_cpu
) $(target_os
))),)
1739 LIBGNAT_TARGET_PAIRS
= \
1740 a-intnam.ads
<a-intnam-linux.ads \
1741 s-inmaop.adb
<s-inmaop-posix.adb \
1742 s-intman.adb
<s-intman-posix.adb \
1743 s-linux.ads
<s-linux.ads \
1744 s-osinte.adb
<s-osinte-posix.adb \
1745 s-osinte.ads
<s-osinte-linux.ads \
1746 s-osprim.adb
<s-osprim-posix.adb \
1747 s-taprop.adb
<s-taprop-linux.adb \
1748 s-tasinf.ads
<s-tasinf-linux.ads \
1749 s-tasinf.adb
<s-tasinf-linux.adb \
1750 s-taspri.ads
<s-taspri-posix.ads \
1751 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1752 system.ads
<system-linux-mips.ads
1755 THREADSLIB
= -lpthread
1756 GNATLIB_SHARED
= gnatlib-shared-dual
1758 LIBRARY_VERSION
:= $(LIB_VERSION
)
1762 ifeq ($(strip $(filter-out mipsel linux
%,$(target_cpu
) $(target_os
))),)
1763 LIBGNAT_TARGET_PAIRS_COMMON
= \
1764 a-intnam.ads
<a-intnam-linux.ads \
1765 s-inmaop.adb
<s-inmaop-posix.adb \
1766 s-intman.adb
<s-intman-posix.adb \
1767 s-linux.ads
<s-linux-mipsel.ads \
1768 s-osinte.adb
<s-osinte-posix.adb \
1769 s-osinte.ads
<s-osinte-linux.ads \
1770 s-osprim.adb
<s-osprim-posix.adb \
1771 s-taprop.adb
<s-taprop-linux.adb \
1772 s-tasinf.ads
<s-tasinf-linux.ads \
1773 s-tasinf.adb
<s-tasinf-linux.adb \
1774 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1775 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1776 g-sercom.adb
<g-sercom-linux.adb
1778 LIBGNAT_TARGET_PAIRS_32
= \
1779 system.ads
<system-linux-mipsel.ads
1781 LIBGNAT_TARGET_PAIRS_64
= \
1782 system.ads
<system-linux-mips64el.ads
1784 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1785 LIBGNAT_TARGET_PAIRS
= \
1786 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1788 LIBGNAT_TARGET_PAIRS
= \
1789 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1792 TOOLS_TARGET_PAIRS
= \
1793 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1794 indepsw.adb
<indepsw-gnu.adb
1796 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1798 THREADSLIB
= -lpthread
1799 GNATLIB_SHARED
= gnatlib-shared-dual
1801 LIBRARY_VERSION
:= $(LIB_VERSION
)
1805 ifeq ($(strip $(filter-out mips64el linux
%,$(target_cpu
) $(target_os
))),)
1806 LIBGNAT_TARGET_PAIRS_COMMON
= \
1807 a-intnam.ads
<a-intnam-linux.ads \
1808 s-inmaop.adb
<s-inmaop-posix.adb \
1809 s-intman.adb
<s-intman-posix.adb \
1810 s-linux.ads
<s-linux-mipsel.ads \
1811 s-osinte.adb
<s-osinte-posix.adb \
1812 s-osinte.ads
<s-osinte-linux.ads \
1813 s-osprim.adb
<s-osprim-posix.adb \
1814 s-taprop.adb
<s-taprop-linux.adb \
1815 s-tasinf.ads
<s-tasinf-linux.ads \
1816 s-tasinf.adb
<s-tasinf-linux.adb \
1817 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1818 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1819 g-sercom.adb
<g-sercom-linux.adb
1821 LIBGNAT_TARGET_PAIRS_32
= \
1822 system.ads
<system-linux-mipsel.ads
1824 LIBGNAT_TARGET_PAIRS_64
= \
1825 system.ads
<system-linux-mips64el.ads
1827 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1828 LIBGNAT_TARGET_PAIRS
= \
1829 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1831 LIBGNAT_TARGET_PAIRS
= \
1832 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1835 TOOLS_TARGET_PAIRS
= \
1836 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1837 indepsw.adb
<indepsw-gnu.adb
1839 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1841 THREADSLIB
= -lpthread
1842 GNATLIB_SHARED
= gnatlib-shared-dual
1844 LIBRARY_VERSION
:= $(LIB_VERSION
)
1847 # PowerPC and e500v2 Linux
1848 ifeq ($(strip $(filter-out powerpc
% linux
%,$(target_cpu
) $(target_os
))),)
1849 LIBGNAT_TARGET_PAIRS_COMMON
= \
1850 a-exetim.adb
<a-exetim-posix.adb \
1851 a-exetim.ads
<a-exetim-default.ads \
1852 a-intnam.ads
<a-intnam-linux.ads \
1853 a-synbar.adb
<a-synbar-posix.adb \
1854 a-synbar.ads
<a-synbar-posix.ads \
1855 s-inmaop.adb
<s-inmaop-posix.adb \
1856 s-intman.adb
<s-intman-posix.adb \
1857 s-linux.ads
<s-linux.ads \
1858 s-osinte.adb
<s-osinte-posix.adb \
1859 s-tpopsp.adb
<s-tpopsp-tls.adb \
1860 g-sercom.adb
<g-sercom-linux.adb \
1861 $(ATOMICS_TARGET_PAIRS
) \
1862 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
1864 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1865 LIBGNAT_TARGET_PAIRS
= \
1866 $(LIBGNAT_TARGET_PAIRS_COMMON
)
1868 LIBGNAT_TARGET_PAIRS
+= \
1869 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1870 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1871 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1872 s-taspri.ads
<s-taspri-linux-xenomai.ads \
1873 system.ads
<system-linux-ppc.ads
1875 LIBGNAT_TARGET_PAIRS_32
= \
1876 system.ads
<system-linux-ppc.ads
1878 LIBGNAT_TARGET_PAIRS_64
= \
1879 system.ads
<system-linux-ppc64.ads
1881 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1882 LIBGNAT_TARGET_PAIRS
= \
1883 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1885 LIBGNAT_TARGET_PAIRS
= \
1886 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1889 LIBGNAT_TARGET_PAIRS
+= \
1890 s-mudido.adb
<s-mudido-affinity.adb \
1891 s-osinte.ads
<s-osinte-linux.ads \
1892 s-osprim.adb
<s-osprim-posix.adb \
1893 s-taprop.adb
<s-taprop-linux.adb \
1894 s-tasinf.ads
<s-tasinf-linux.ads \
1895 s-tasinf.adb
<s-tasinf-linux.adb \
1896 s-taspri.ads
<s-taspri-posix-noaltstack.ads
1899 TOOLS_TARGET_PAIRS
= \
1900 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1901 indepsw.adb
<indepsw-gnu.adb
1903 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1905 THREADSLIB
= -lpthread
-lrt
1906 GNATLIB_SHARED
= gnatlib-shared-dual
1908 LIBRARY_VERSION
:= $(LIB_VERSION
)
1911 # ARM linux, GNU eabi
1912 ifeq ($(strip $(filter-out arm
% linux-gnueabi
%,$(target_cpu
) $(target_os
))),)
1913 LIBGNAT_TARGET_PAIRS
= \
1914 a-intnam.ads
<a-intnam-linux.ads \
1915 s-inmaop.adb
<s-inmaop-posix.adb \
1916 s-intman.adb
<s-intman-posix.adb \
1917 s-linux.ads
<s-linux.ads \
1918 s-osinte.adb
<s-osinte-posix.adb \
1919 s-osinte.ads
<s-osinte-linux.ads \
1920 s-osprim.adb
<s-osprim-posix.adb \
1921 s-taprop.adb
<s-taprop-linux.adb \
1922 s-tasinf.ads
<s-tasinf-linux.ads \
1923 s-tasinf.adb
<s-tasinf-linux.adb \
1924 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1925 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
1927 ifeq ($(strip $(filter-out arm
%b
,$(target_cpu
))),)
1929 LIBGNAT_TARGET_PAIRS
+= \
1930 system.ads
<system-linux-armeb.ads
1933 LIBGNAT_TARGET_PAIRS
+= \
1934 system.ads
<system-linux-armel.ads \
1935 a-exexpr.adb
<a-exexpr-gcc.adb \
1936 s-excmac.ads
<s-excmac-arm.ads
1939 TOOLS_TARGET_PAIRS
= \
1940 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1941 indepsw.adb
<indepsw-gnu.adb
1943 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1944 EXTRA_LIBGNAT_OBJS
+=raise-gcc.o
1945 EXTRA_GNATRTL_NONTASKING_OBJS
+=g-cppexc.o s-excmac.o
1946 THREADSLIB
= -lpthread
1947 GNATLIB_SHARED
= gnatlib-shared-dual
1949 LIBRARY_VERSION
:= $(LIB_VERSION
)
1953 ifeq ($(strip $(filter-out aarch64
% linux
%,$(target_cpu
) $(target_os
))),)
1954 LIBGNAT_TARGET_PAIRS
= \
1955 a-exetim.adb
<a-exetim-posix.adb \
1956 a-exetim.ads
<a-exetim-default.ads \
1957 a-intnam.ads
<a-intnam-linux.ads \
1958 a-synbar.adb
<a-synbar-posix.adb \
1959 a-synbar.ads
<a-synbar-posix.ads \
1960 s-inmaop.adb
<s-inmaop-posix.adb \
1961 s-intman.adb
<s-intman-posix.adb \
1962 s-linux.ads
<s-linux.ads \
1963 s-mudido.adb
<s-mudido-affinity.adb \
1964 s-osinte.ads
<s-osinte-linux.ads \
1965 s-osinte.adb
<s-osinte-posix.adb \
1966 s-osprim.adb
<s-osprim-posix.adb \
1967 s-taprop.adb
<s-taprop-linux.adb \
1968 s-tasinf.ads
<s-tasinf-linux.ads \
1969 s-tasinf.adb
<s-tasinf-linux.adb \
1970 s-tpopsp.adb
<s-tpopsp-tls.adb \
1971 s-taspri.ads
<s-taspri-posix.ads \
1972 g-sercom.adb
<g-sercom-linux.adb \
1973 $(ATOMICS_TARGET_PAIRS
) \
1974 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1975 system.ads
<system-linux-x86_64.ads
1976 ## ^^ Note the above is a pretty-close placeholder.
1978 TOOLS_TARGET_PAIRS
= \
1979 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1980 indepsw.adb
<indepsw-gnu.adb
1982 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1984 THREADSLIB
=-lpthread
-lrt
1985 GNATLIB_SHARED
=gnatlib-shared-dual
1987 LIBRARY_VERSION
:= $(LIB_VERSION
)
1991 ifeq ($(strip $(filter-out sparc
% linux
%,$(target_cpu
) $(target_os
))),)
1992 LIBGNAT_TARGET_PAIRS_COMMON
= \
1993 a-intnam.ads
<a-intnam-linux.ads \
1994 s-inmaop.adb
<s-inmaop-posix.adb \
1995 s-intman.adb
<s-intman-posix.adb \
1996 s-linux.ads
<s-linux-sparc.ads \
1997 s-osinte.adb
<s-osinte-posix.adb \
1998 s-osinte.ads
<s-osinte-linux.ads \
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-taspri.ads
<s-taspri-posix-noaltstack.ads \
2004 s-tpopsp.adb
<s-tpopsp-tls.adb
2006 LIBGNAT_TARGET_PAIRS_32
= \
2007 system.ads
<system-linux-sparc.ads
2009 LIBGNAT_TARGET_PAIRS_64
= \
2010 system.ads
<system-linux-sparcv9.ads
2012 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
2013 LIBGNAT_TARGET_PAIRS
= \
2014 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
2016 LIBGNAT_TARGET_PAIRS
= \
2017 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
2020 TOOLS_TARGET_PAIRS
= \
2021 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2022 indepsw.adb
<indepsw-gnu.adb
2024 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2026 THREADSLIB
= -lpthread
2027 GNATLIB_SHARED
= gnatlib-shared-dual
2029 LIBRARY_VERSION
:= $(LIB_VERSION
)
2033 ifeq ($(strip $(filter-out hppa
% linux
%,$(target_cpu
) $(target_os
))),)
2034 LIBGNAT_TARGET_PAIRS
= \
2035 a-intnam.ads
<a-intnam-linux.ads \
2036 s-inmaop.adb
<s-inmaop-posix.adb \
2037 s-intman.adb
<s-intman-posix.adb \
2038 s-linux.ads
<s-linux-hppa.ads \
2039 s-osinte.adb
<s-osinte-posix.adb \
2040 s-osinte.ads
<s-osinte-linux.ads \
2041 s-osprim.adb
<s-osprim-posix.adb \
2042 s-taprop.adb
<s-taprop-linux.adb \
2043 s-tasinf.ads
<s-tasinf-linux.ads \
2044 s-tasinf.adb
<s-tasinf-linux.adb \
2045 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2046 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2047 system.ads
<system-linux-hppa.ads
2049 TOOLS_TARGET_PAIRS
= \
2050 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2051 indepsw.adb
<indepsw-gnu.adb
2053 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2055 THREADSLIB
= -lpthread
2056 GNATLIB_SHARED
= gnatlib-shared-dual
2058 LIBRARY_VERSION
:= $(LIB_VERSION
)
2062 ifeq ($(strip $(filter-out sh4
% linux
%,$(target_cpu
) $(target_os
))),)
2063 LIBGNAT_TARGET_PAIRS
= \
2064 a-intnam.ads
<a-intnam-linux.ads \
2065 s-inmaop.adb
<s-inmaop-posix.adb \
2066 s-intman.adb
<s-intman-posix.adb \
2067 s-linux.ads
<s-linux.ads \
2068 s-osinte.adb
<s-osinte-posix.adb \
2069 s-osinte.ads
<s-osinte-linux.ads \
2070 s-osprim.adb
<s-osprim-posix.adb \
2071 s-taprop.adb
<s-taprop-linux.adb \
2072 s-tasinf.ads
<s-tasinf-linux.ads \
2073 s-tasinf.adb
<s-tasinf-linux.adb \
2074 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2075 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2076 system.ads
<system-linux-sh4.ads
2078 TOOLS_TARGET_PAIRS
= \
2079 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2080 indepsw.adb
<indepsw-linux.adb
2082 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2085 THREADSLIB
= -lpthread
2086 GNATLIB_SHARED
= gnatlib-shared-dual
2088 LIBRARY_VERSION
:= $(LIB_VERSION
)
2092 ifeq ($(strip $(filter-out %ia64 linux
%,$(target_cpu
) $(target_os
))),)
2093 LIBGNAT_TARGET_PAIRS
= \
2094 a-exetim.adb
<a-exetim-posix.adb \
2095 a-exetim.ads
<a-exetim-default.ads \
2096 a-intnam.ads
<a-intnam-linux.ads \
2097 a-numaux.ads
<a-numaux-libc-x86.ads \
2098 a-synbar.adb
<a-synbar-posix.adb \
2099 a-synbar.ads
<a-synbar-posix.ads \
2100 s-inmaop.adb
<s-inmaop-posix.adb \
2101 s-intman.adb
<s-intman-posix.adb \
2102 s-linux.ads
<s-linux.ads \
2103 s-mudido.adb
<s-mudido-affinity.adb \
2104 s-osinte.ads
<s-osinte-linux.ads \
2105 s-osinte.adb
<s-osinte-posix.adb \
2106 s-osprim.adb
<s-osprim-posix.adb \
2107 s-taprop.adb
<s-taprop-linux.adb \
2108 s-tasinf.ads
<s-tasinf-linux.ads \
2109 s-tasinf.adb
<s-tasinf-linux.adb \
2110 s-tpopsp.adb
<s-tpopsp-tls.adb \
2111 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2112 g-sercom.adb
<g-sercom-linux.adb \
2113 system.ads
<system-linux-ia64.ads \
2114 $(ATOMICS_TARGET_PAIRS
) \
2115 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
2117 TOOLS_TARGET_PAIRS
= \
2118 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2119 indepsw.adb
<indepsw-gnu.adb
2121 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2124 THREADSLIB
=-lpthread
-lrt
2125 GNATLIB_SHARED
=gnatlib-shared-dual
2127 LIBRARY_VERSION
:= $(LIB_VERSION
)
2131 ifeq ($(strip $(filter-out ia64
% hp hpux
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
2132 LIBGNAT_TARGET_PAIRS
= \
2133 a-intnam.ads
<a-intnam-hpux.ads \
2134 s-inmaop.adb
<s-inmaop-posix.adb \
2135 s-intman.adb
<s-intman-posix.adb \
2136 s-osinte.adb
<s-osinte-posix.adb \
2137 s-osinte.ads
<s-osinte-hpux.ads \
2138 s-osprim.adb
<s-osprim-posix.adb \
2139 s-taprop.adb
<s-taprop-posix.adb \
2140 s-taspri.ads
<s-taspri-posix.ads \
2141 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2142 system.ads
<system-hpux-ia64.ads \
2143 $(ATOMICS_TARGET_PAIRS
) \
2144 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
2146 TOOLS_TARGET_PAIRS
= \
2147 mlib-tgt-specific.adb
<mlib-tgt-specific-ia64-hpux.adb
2151 THREADSLIB
=-lpthread
2152 GNATLIB_SHARED
=gnatlib-shared-dual
2156 LIBRARY_VERSION
:= $(LIB_VERSION
)
2160 ifeq ($(strip $(filter-out alpha
% linux
%,$(target_cpu
) $(target_os
))),)
2161 LIBGNAT_TARGET_PAIRS
= \
2162 a-intnam.ads
<a-intnam-linux.ads \
2163 s-inmaop.adb
<s-inmaop-posix.adb \
2164 s-intman.adb
<s-intman-posix.adb \
2165 s-linux.ads
<s-linux-alpha.ads \
2166 s-osinte.ads
<s-osinte-linux.ads \
2167 s-osinte.adb
<s-osinte-posix.adb \
2168 s-osprim.adb
<s-osprim-posix.adb \
2169 s-taprop.adb
<s-taprop-linux.adb \
2170 s-tasinf.ads
<s-tasinf-linux.ads \
2171 s-tasinf.adb
<s-tasinf-linux.adb \
2172 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2173 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2174 system.ads
<system-linux-alpha.ads \
2175 $(ATOMICS_TARGET_PAIRS
) \
2176 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
2178 TOOLS_TARGET_PAIRS
= \
2179 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2180 indepsw.adb
<indepsw-gnu.adb
2182 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2185 THREADSLIB
=-lpthread
2186 GNATLIB_SHARED
=gnatlib-shared-dual
2187 LIBRARY_VERSION
:= $(LIB_VERSION
)
2191 ifeq ($(strip $(filter-out %x86_64 linux
%,$(target_cpu
) $(target_os
))),)
2192 LIBGNAT_TARGET_PAIRS
= \
2193 a-exetim.adb
<a-exetim-posix.adb \
2194 a-exetim.ads
<a-exetim-default.ads \
2195 a-intnam.ads
<a-intnam-linux.ads \
2196 a-synbar.adb
<a-synbar-posix.adb \
2197 a-synbar.ads
<a-synbar-posix.ads \
2198 s-inmaop.adb
<s-inmaop-posix.adb \
2199 s-intman.adb
<s-intman-posix.adb \
2200 s-linux.ads
<s-linux.ads \
2201 s-mudido.adb
<s-mudido-affinity.adb \
2202 s-osinte.ads
<s-osinte-linux.ads \
2203 s-osinte.adb
<s-osinte-posix.adb \
2204 s-osprim.adb
<s-osprim-posix.adb \
2205 s-taprop.adb
<s-taprop-linux.adb \
2206 s-tasinf.ads
<s-tasinf-linux.ads \
2207 s-tasinf.adb
<s-tasinf-linux.adb \
2208 s-tpopsp.adb
<s-tpopsp-tls.adb \
2209 s-taspri.ads
<s-taspri-posix.ads \
2210 g-sercom.adb
<g-sercom-linux.adb \
2211 $(ATOMICS_TARGET_PAIRS
) \
2212 $(X86_64_TARGET_PAIRS
) \
2213 system.ads
<system-linux-x86_64.ads
2215 TOOLS_TARGET_PAIRS
= \
2216 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2217 indepsw.adb
<indepsw-gnu.adb
2219 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
2220 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2222 THREADSLIB
=-lpthread
-lrt
2224 GNATLIB_SHARED
=gnatlib-shared-dual
2226 LIBRARY_VERSION
:= $(LIB_VERSION
)
2229 ifeq ($(strip $(filter-out %x32 linux
%,$(target_cpu
) $(target_os
))),)
2230 LIBGNAT_TARGET_PAIRS
= \
2231 a-exetim.adb
<a-exetim-posix.adb \
2232 a-exetim.ads
<a-exetim-default.ads \
2233 a-intnam.ads
<a-intnam-linux.ads \
2234 a-synbar.adb
<a-synbar-posix.adb \
2235 a-synbar.ads
<a-synbar-posix.ads \
2236 s-inmaop.adb
<s-inmaop-posix.adb \
2237 s-intman.adb
<s-intman-posix.adb \
2238 s-linux.ads
<s-linux-x32.ads \
2239 s-mudido.adb
<s-mudido-affinity.adb \
2240 s-osinte.ads
<s-osinte-linux.ads \
2241 s-osinte.adb
<s-osinte-x32.adb \
2242 s-osprim.adb
<s-osprim-x32.adb \
2243 s-taprop.adb
<s-taprop-linux.adb \
2244 s-tasinf.ads
<s-tasinf-linux.ads \
2245 s-tasinf.adb
<s-tasinf-linux.adb \
2246 s-tpopsp.adb
<s-tpopsp-tls.adb \
2247 s-taspri.ads
<s-taspri-posix.ads \
2248 g-sercom.adb
<g-sercom-linux.adb \
2249 $(ATOMICS_TARGET_PAIRS
) \
2250 $(X86_64_TARGET_PAIRS
) \
2251 system.ads
<system-linux-x86.ads
2253 TOOLS_TARGET_PAIRS
= \
2254 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2255 indepsw.adb
<indepsw-gnu.adb
2257 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
2258 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2260 THREADSLIB
=-lpthread
-lrt
2261 GNATLIB_SHARED
=gnatlib-shared-dual
2263 LIBRARY_VERSION
:= $(LIB_VERSION
)
2267 ifeq ($(strip $(filter-out darwin
%,$(target_os
))),)
2268 SO_OPTS
= -shared-libgcc
2269 LIBGNAT_TARGET_PAIRS
= \
2270 a-intnam.ads
<a-intnam-darwin.ads \
2271 s-inmaop.adb
<s-inmaop-posix.adb \
2272 s-osinte.adb
<s-osinte-darwin.adb \
2273 s-osinte.ads
<s-osinte-darwin.ads \
2274 s-taprop.adb
<s-taprop-posix.adb \
2275 s-taspri.ads
<s-taspri-posix.ads \
2276 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
2278 ifeq ($(strip $(filter-out %86,$(target_cpu
))),)
2279 LIBGNAT_TARGET_PAIRS
+= \
2280 s-intman.adb
<s-intman-susv3.adb \
2281 s-osprim.adb
<s-osprim-darwin.adb \
2282 $(ATOMICS_TARGET_PAIRS
)
2284 ifeq ($(strip $(MULTISUBDIR
)),/x86_64
)
2285 LIBGNAT_TARGET_PAIRS
+= \
2286 $(X86_64_TARGET_PAIRS
) \
2287 system.ads
<system-darwin-x86_64.ads
2290 LIBGNAT_TARGET_PAIRS
+= \
2291 $(X86_TARGET_PAIRS
) \
2292 system.ads
<system-darwin-x86.ads
2295 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
2298 ifeq ($(strip $(filter-out %x86_64
,$(target_cpu
))),)
2299 LIBGNAT_TARGET_PAIRS
+= \
2300 s-intman.adb
<s-intman-susv3.adb \
2301 s-osprim.adb
<s-osprim-darwin.adb \
2302 $(ATOMICS_TARGET_PAIRS
)
2304 ifeq ($(strip $(MULTISUBDIR
)),/i386
)
2305 LIBGNAT_TARGET_PAIRS
+= \
2306 $(X86_TARGET_PAIRS
) \
2307 system.ads
<system-darwin-x86.ads
2310 LIBGNAT_TARGET_PAIRS
+= \
2311 $(X86_64_TARGET_PAIRS
) \
2312 system.ads
<system-darwin-x86_64.ads
2315 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
2318 ifeq ($(strip $(filter-out powerpc
%,$(target_cpu
))),)
2319 LIBGNAT_TARGET_PAIRS
+= \
2320 s-intman.adb
<s-intman-posix.adb \
2321 s-osprim.adb
<s-osprim-posix.adb \
2322 a-numaux.ads
<a-numaux-darwin.ads \
2323 a-numaux.adb
<a-numaux-darwin.adb
2325 ifeq ($(strip $(MULTISUBDIR
)),/ppc64
)
2326 LIBGNAT_TARGET_PAIRS
+= \
2327 system.ads
<system-darwin-ppc64.ads
2330 LIBGNAT_TARGET_PAIRS
+= \
2331 system.ads
<system-darwin-ppc.ads
2335 ifeq ($(strip $(filter-out arm
,$(arch
))),)
2336 LIBGNAT_TARGET_PAIRS
+= \
2337 s-intman.adb
<s-intman-susv3.adb \
2338 s-osprim.adb
<s-osprim-darwin.adb \
2339 $(ATOMICS_TARGET_PAIRS
)
2341 LIBGNAT_TARGET_PAIRS
+= \
2342 system.ads
<system-darwin-arm.ads
2345 TOOLS_TARGET_PAIRS
= \
2346 mlib-tgt-specific.adb
<mlib-tgt-specific-darwin.adb \
2347 indepsw.adb
<indepsw-darwin.adb
2350 GNATLIB_SHARED
= gnatlib-shared-darwin
2352 LIBRARY_VERSION
:= $(LIB_VERSION
)
2354 GCC_LINK_FLAGS
=-static-libstdc
++
2358 ifeq ($(strip $(filter-out arm nucleus
%,$(target_cpu
) $(target_os
))),)
2359 LIBGNAT_TARGET_PAIRS
= \
2360 system.ads
<system-nucleus-arm.ads \
2361 a-numaux.ads
<a-numaux-vxworks.ads \
2362 a-intnam.ads
<a-intnam-nucleus.ads \
2363 s-inmaop.adb
<s-inmaop-posix.adb \
2364 s-intman.adb
<s-intman-posix.adb \
2365 s-osinte.ads
<s-osinte-nucleus.ads \
2366 s-osinte.adb
<s-osinte-nucleus.adb \
2367 s-osprim.adb
<s-osprim-nucleus.adb \
2368 s-parame.adb
<s-parame-vxworks.adb \
2369 s-taprop.adb
<s-taprop-posix.adb \
2370 s-taspri.ads
<s-taspri-posix.ads \
2371 s-tpopsp.adb
<s-tpopsp-posix.adb \
2372 $(DUMMY_SOCKETS_TARGET_PAIRS
)
2374 LIBRARY_VERSION
:= $(LIB_VERSION
)
2375 GNATRTL_SOCKETS_OBJS
=
2378 ifeq ($(EH_MECHANISM
),-gcc
)
2379 LIBGNAT_TARGET_PAIRS
+= \
2380 a-exexpr.adb
<a-exexpr-gcc.adb \
2381 s-excmac.ads
<s-excmac-gcc.ads
2382 EXTRA_LIBGNAT_OBJS
+=raise-gcc.o
2383 EXTRA_GNATRTL_NONTASKING_OBJS
+=g-cppexc.o s-excmac.o
2386 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
2387 # explicitly already. The base files (a-except.ad?) are used only for building
2388 # the compiler and other basic tools.
2389 # These base versions lack Ada 2005 additions which would cause bootstrap
2390 # problems if included in the compiler and other basic tools.
2392 ifeq ($(filter a-except
%,$(LIBGNAT_TARGET_PAIRS
)),)
2393 LIBGNAT_TARGET_PAIRS
+= \
2394 a-except.ads
<a-except-2005.ads \
2395 a-except.adb
<a-except-2005.adb
2398 # LIBGNAT_SRCS is the list of all C files (including headers) of the runtime
2399 # library. LIBGNAT_OBJS is the list of object files for libgnat.
2400 # thread.c is special as put into GNATRTL_TASKING_OBJS by Makefile.rtl
2401 LIBGNAT_OBJS
= adadecode.o adaint.o argv.o aux-io.o \
2402 cal.o cio.o cstreams.o ctrl_c.o \
2403 env.o errno.o exit.o expect.o final.o rtfinal.o rtinit.o \
2404 init.o initialize.o locales.o mkdir.o \
2405 raise.o seh_init.o socket.o sysdep.o \
2406 targext.o terminals.o tracebak.o \
2407 $(EXTRA_LIBGNAT_OBJS
)
2409 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2410 # the library installation will change and there will be a
2411 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2412 # from ADA_INCLUDE_SRCS.
2414 LIBGNAT_SRCS
= $(patsubst %.o
,%.c
,$(LIBGNAT_OBJS
)) \
2415 adadecode.h adaint.h env.h gsocket.h raise.h \
2416 tb-gcc.c thread.c
$(EXTRA_LIBGNAT_SRCS
)
2418 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2419 # the following include file:
2421 include $(fsrcdir
)/ada
/Makefile.rtl
2423 # memtrack.o is special as not put into libgnat.
2424 GNATRTL_OBJS
= $(GNATRTL_NONTASKING_OBJS
) $(GNATRTL_TASKING_OBJS
) \
2427 # Run time source files
2429 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2430 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2431 sequenio.ads system.ads memtrack.adb \
2432 a-
[a-o
]*.adb a-
[p-z
]*.adb a-
[a-o
]*.ads a-
[p-z
]*.ads g-
*.ad? i-
*.ad? \
2433 s-
[a-o
]*.adb s-
[p-z
]*.adb s-
[a-o
]*.ads s-
[p-z
]*.ads
2435 # Files that are in ADA_INCLUDE_SRCS but not in all configurations.
2436 # They will be removed from the run time if not used.
2439 s-bbbosu.ads s-bbcaco.ads s-bbcppr.ads s-bbexti.adb s-bbexti.ads \
2440 s-bbinte.adb s-bbinte.ads s-bbprot.adb s-bbprot.ads s-bbsle3.ads \
2441 s-bbsuer.ads s-bbsule.ads s-bbthqu.adb s-bbthqu.ads s-bbthre.adb \
2442 s-bbthre.ads s-bbtiev.adb s-bbtiev.ads s-bbtime.adb s-bbtime.ads \
2443 s-bcprmu.adb s-bcprmu.ads s-btstch.adb s-btstch.ads \
2444 s-init.ads s-init.adb \
2445 s-stache.adb s-stache.ads \
2447 s-vxwext.adb s-vxwext.ads \
2448 s-vxwexc.adb s-vxwexc.ads \
2449 s-win32.ads s-winext.ads \
2450 g-regist.adb g-regist.ads g-sse.ads g-ssvety.ads \
2451 i-vxwoio.adb i-vxwoio.ads i-vxwork.ads \
2452 g-allein.ads g-alleve.ads g-altcon.ads g-alveop.adb g-alvety.ads \
2453 g-alleve.adb g-altcon.adb g-altive.ads g-alveop.ads g-alvevi.ads
2455 # ADA_EXCLUDE_SRCS without the sources used by the target
2456 ADA_EXCLUDE_FILES
=$(filter-out \
2457 $(patsubst %$(objext
),%.ads
,$(GNATRTL_OBJS
)) \
2458 $(patsubst %$(objext
),%.adb
,$(GNATRTL_OBJS
)), \
2459 $(ADA_EXCLUDE_SRCS
))
2461 LIBGNAT
=..
/$(RTSDIR
)/libgnat.a
2463 TOOLS_FLAGS_TO_PASS
= \
2465 "CFLAGS=$(CFLAGS)" \
2466 "LDFLAGS=$(LDFLAGS)" \
2467 "ADAFLAGS=$(ADAFLAGS)" \
2468 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
2469 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
2470 "libsubdir=$(libsubdir)" \
2471 "exeext=$(exeext)" \
2472 "fsrcdir=$(fsrcdir)" \
2473 "srcdir=$(fsrcdir)" \
2474 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
2475 "GNATMAKE=$(GNATMAKE)" \
2476 "GNATLINK=$(GNATLINK)" \
2477 "GNATBIND=$(GNATBIND)"
2479 GCC_LINK
=$(CXX
) $(GCC_LINK_FLAGS
) $(ADA_INCLUDES
) $(LDFLAGS
)
2481 # Build directory for the tools. Let's copy the target-dependent
2482 # sources using the same mechanism as for gnatlib. The other sources are
2483 # accessed using the vpath directive below
2489 -(cd tools
; $(LN_S
) ..
/sdefault.adb ..
/snames.ads ..
/snames.adb .
)
2490 -$(foreach PAIR
,$(TOOLS_TARGET_PAIRS
), \
2491 $(RM
) tools
/$(word 1,$(subst <, ,$(PAIR
)));\
2492 $(LN_S
) $(fsrcpfx
)ada
/$(word 2,$(subst <, ,$(PAIR
))) \
2493 tools
/$(word 1,$(subst <, ,$(PAIR
)));)
2494 touch ..
/stamp-tools
2496 # when compiling the tools, the runtime has to be first on the path so that
2497 # it hides the runtime files lying with the rest of the sources
2498 ifeq ($(TOOLSCASE
),native
)
2499 vpath
%.ads ..
/$(RTSDIR
) ..
/
2500 vpath
%.adb ..
/$(RTSDIR
) ..
/
2501 vpath
%.c ..
/$(RTSDIR
) ..
/
2502 vpath
%.h ..
/$(RTSDIR
) ..
/
2505 # in the cross tools case, everything is compiled with the native
2506 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2507 ifeq ($(TOOLSCASE
),cross
)
2514 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
2515 # reasons: gnatmake should be built with a recent compiler, a recent compiler
2516 # may not generate ALI files compatible with an old gnatmake so it is important
2517 # to be able to build gnatmake without a version of gnatmake around. Once
2518 # everything has been compiled once, gnatmake can be recompiled with itself
2519 # (see target gnattools1-re)
2520 gnattools1
: ..
/stamp-tools ..
/stamp-gnatlib-
$(RTSDIR
)
2521 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2523 ..
/..
/gnatmake
$(exeext
) ..
/..
/gnatlink
$(exeext
)
2525 # gnatmake/link can be built with recent gnatmake/link if they are available.
2526 # This is especially convenient for building cross tools or for rebuilding
2527 # the tools when the original bootstrap has already be done.
2528 gnattools1-re
: ..
/stamp-tools
2529 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2530 TOOLSCASE
=cross INCLUDES
="" gnatmake-re gnatlink-re
2532 # these tools are built with gnatmake & are common to native and cross
2533 gnattools2
: ..
/stamp-tools
2534 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2535 TOOLSCASE
=native common-tools
$(EXTRA_GNATTOOLS
)
2537 # those tools are only built for the cross version
2538 gnattools4
: ..
/stamp-tools
2539 ifeq ($(ENABLE_VXADDR2LINE
),true
)
2540 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2541 TOOLSCASE
=cross top_buildir
=..
/..
/.. \
2542 ..
/..
/vxaddr2line
$(exeext
)
2545 common-tools
: ..
/stamp-tools
2546 $(GNATMAKE
) -j0
-c
-b
$(ADA_INCLUDES
) \
2547 --GNATBIND
="$(GNATBIND)" --GCC
="$(CC) $(ALL_ADAFLAGS)" \
2548 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2549 gnatclean
-bargs
$(ADA_INCLUDES
) $(GNATBIND_FLAGS
)
2550 $(GNATLINK
) -v gnatcmd
-o ..
/..
/gnat
$(exeext
) \
2551 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2552 $(GNATLINK
) -v gnatchop
-o ..
/..
/gnatchop
$(exeext
) \
2553 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2554 $(GNATLINK
) -v gnatkr
-o ..
/..
/gnatkr
$(exeext
) \
2555 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2556 $(GNATLINK
) -v gnatls
-o ..
/..
/gnatls
$(exeext
) \
2557 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2558 $(GNATLINK
) -v gnatprep
-o ..
/..
/gnatprep
$(exeext
) \
2559 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2560 $(GNATLINK
) -v gnatxref
-o ..
/..
/gnatxref
$(exeext
) \
2561 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2562 $(GNATLINK
) -v gnatfind
-o ..
/..
/gnatfind
$(exeext
) \
2563 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2564 $(GNATLINK
) -v gnatname
-o ..
/..
/gnatname
$(exeext
) \
2565 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2566 $(GNATLINK
) -v gnatclean
-o ..
/..
/gnatclean
$(exeext
) \
2567 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2569 ..
/..
/gnatdll
$(exeext
): ..
/stamp-tools
2570 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatdll
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2571 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatdll
2572 $(GNATLINK
) -v gnatdll
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2574 ..
/..
/vxaddr2line
$(exeext
): ..
/stamp-tools
2575 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vxaddr2line
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2576 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vxaddr2line
2577 $(GNATLINK
) -v vxaddr2line
-o
$@
--GCC
="$(GCC_LINK)" ..
/targext.o
$(CLIB
)
2579 gnatmake-re
: ..
/stamp-tools
2580 $(GNATMAKE
) -j0
$(ADA_INCLUDES
) -u sdefault
--GCC
="$(CC) $(MOST_ADA_FLAGS)"
2581 $(GNATMAKE
) -j0
-c
$(ADA_INCLUDES
) gnatmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2582 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmake
2583 $(GNATLINK
) -v gnatmake
-o ..
/..
/gnatmake
$(exeext
) \
2584 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2586 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2587 # with the former version of gnatlink itself which cannot override itself.
2588 # gnatlink-re cannot be run at the same time as gnatmake-re, hence the
2590 gnatlink-re
: ..
/stamp-tools gnatmake-re
2591 $(GNATMAKE
) -j0
-c
$(ADA_INCLUDES
) gnatlink
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2592 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlink
2593 $(GNATLINK
) -v gnatlink
-o ..
/..
/gnatlinknew
$(exeext
) \
2594 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2595 $(MV
) ..
/..
/gnatlinknew
$(exeext
) ..
/..
/gnatlink
$(exeext
)
2597 # Needs to be built with CC=gcc
2598 # Since the RTL should be built with the latest compiler, remove the
2599 # stamp target in the parent directory whenever gnat1 is rebuilt
2601 # Likewise for the tools
2602 ..
/..
/gnatmake
$(exeext
): $(P
) b_gnatm.o
$(GNATMAKE_OBJS
)
2603 +$(GCC_LINK
) $(ALL_CFLAGS
) -o
$@ b_gnatm.o
$(GNATMAKE_OBJS
) $(TOOLS_LIBS
)
2605 ..
/..
/gnatlink
$(exeext
): $(P
) b_gnatl.o
$(GNATLINK_OBJS
)
2606 +$(GCC_LINK
) $(ALL_CFLAGS
) -o
$@ b_gnatl.o
$(GNATLINK_OBJS
) $(TOOLS_LIBS
)
2608 ..
/stamp-gnatlib-
$(RTSDIR
):
2609 @if
[ ! -f stamp-gnatlib-
$(RTSDIR
) ] ; \
2611 $(ECHO
) You must first build the GNAT library
: make gnatlib
; \
2618 # Install all the requested GCC spec files.
2620 for f in
$(GCC_SPEC_FILES
); do \
2621 $(INSTALL_DATA_DATE
) $(srcdir)/ada
/$$f \
2622 $(libsubdir
)/$$(echo
$$f|sed
-e
's#_[a-zA-Z0-9]*##g'); \
2625 install-gnatlib
: ..
/stamp-gnatlib-
$(RTSDIR
) install-gcc-specs
2626 # Create the directory before deleting it, in case the directory is
2627 # a list of directories (as it may be on VMS). This ensures we are
2628 # deleting the right one.
2629 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2630 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2631 $(RMDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2632 $(RMDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2633 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2634 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2635 for file in
$(RTSDIR
)/*.ali
; do \
2636 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2638 -cd
$(RTSDIR
); for file in
*$(arext
);do \
2639 $(INSTALL_DATA
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2640 $(RANLIB_FOR_TARGET
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/$$file; \
2642 -$(foreach file
, $(EXTRA_ADALIB_FILES
), \
2643 $(INSTALL_DATA_DATE
) $(RTSDIR
)/$(file
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
) && \
2645 # Install the shared libraries, if any, using $(INSTALL) instead
2646 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2647 # for shared libraries on some targets, e.g. on HP-UX where the x
2648 # permission is required.
2649 # Also install the .dSYM directories if they exist (these directories
2650 # contain the debug information for the shared libraries on darwin)
2651 for file in gnat gnarl
; do \
2652 if
[ -f
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) ]; then \
2653 $(INSTALL
) $(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2654 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2656 if
[ -f
$(RTSDIR
)/lib
$${file}$(soext
) ]; then \
2657 $(LN_S
) lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2658 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/lib
$${file}$(soext
); \
2660 if
[ -d
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM
]; then \
2661 $(CP
) -r
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM \
2662 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2665 # This copy must be done preserving the date on the original file.
2666 for file in
$(RTSDIR
)/*.ad?
; do \
2667 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_INCLUDE_DIR
); \
2669 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.adb
2670 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.ads
2672 ..
/stamp-gnatlib2-
$(RTSDIR
):
2673 $(RM
) $(RTSDIR
)/s-
*.ali
2674 $(RM
) $(RTSDIR
)/s-
*$(objext
)
2675 $(RM
) $(RTSDIR
)/a-
*.ali
2676 $(RM
) $(RTSDIR
)/a-
*$(objext
)
2677 $(RM
) $(RTSDIR
)/*.ali
2678 $(RM
) $(RTSDIR
)/*$(objext
)
2679 $(RM
) $(RTSDIR
)/*$(arext
)
2680 $(RM
) $(RTSDIR
)/*$(soext
)
2681 touch ..
/stamp-gnatlib2-
$(RTSDIR
)
2682 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2684 ..
/stamp-gnatlib1-
$(RTSDIR
): Makefile ..
/stamp-gnatlib2-
$(RTSDIR
)
2687 $(CHMOD
) u
+w
$(RTSDIR
)
2688 # Copy target independent sources
2689 $(foreach f
,$(ADA_INCLUDE_SRCS
) $(LIBGNAT_SRCS
), \
2690 $(LN_S
) $(fsrcpfx
)ada
/$(f
) $(RTSDIR
) ;) true
2691 # Remove files not used
2692 $(RM
) $(patsubst %,$(RTSDIR
)/%,$(ADA_EXCLUDE_FILES
))
2693 # Remove files to be replaced by target dependent sources
2694 $(RM
) $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2695 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
))))
2696 for f in
$(RTSDIR
)/*-*-*.ads
$(RTSDIR
)/*-*-*.adb
; do \
2698 $(RTSDIR
)/s-stratt-
*) ;; \
2702 # Copy new target dependent sources
2703 $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2704 $(LN_S
) $(fsrcpfx
)ada
/$(word 2,$(subst <, ,$(PAIR
))) \
2705 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
)));)
2707 $(CP
) $(srcdir)/tsystem.h
$(RTSDIR
)
2708 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2709 touch ..
/stamp-gnatlib1-
$(RTSDIR
)
2711 # GCC_FOR_TARGET has paths relative to the gcc directory, so we need to adjust
2712 # for running it from ada/rts
2714 OSCONS_CC
=$(subst .
/xgcc
,..
/..
/xgcc
,$(subst -B.
/, -B..
/..
/,$(GCC_FOR_TARGET
)))
2716 # The main ada source directory must be on the include path for #include "..."
2717 # because s-oscons-tmplt.c requires adaint.h, gsocket.h, and any file included
2718 # by these headers. However note that we must use -iquote, not -I, so that
2719 # ada/types.h does not conflict with a same-named system header (VxWorks
2720 # has a <types.h> header).
2722 OSCONS_CPP
=$(OSCONS_CC
) $(GNATLIBCFLAGS
) $(GNATLIBCFLAGS_FOR_C
) -E
-C \
2723 -DTARGET
=\"$(target
)\" -iquote
$(fsrcpfx
)ada
$(fsrcpfx
)ada
/s-oscons-tmplt.c
> s-oscons-tmplt.i
2724 OSCONS_EXTRACT
=$(OSCONS_CC
) -S s-oscons-tmplt.i
2726 # Note: if you need to build with a non-GNU compiler, you could adapt the
2727 # following definitions (written for VMS DEC-C)
2728 #OSCONS_CPP=../../../$(DECC) -E /comment=as_is -DNATIVE \
2729 # -DTARGET='""$(target)""' -I$(OSCONS_SRCDIR) s-oscons-tmplt.c
2731 #OSCONS_EXTRACT=../../../$(DECC) -DNATIVE \
2732 # -DTARGET='""$(target)""' -I$(OSCONS_SRCDIR) s-oscons-tmplt.c ; \
2733 # ld -o s-oscons-tmplt.exe s-oscons-tmplt.obj; \
2734 # ./s-oscons-tmplt.exe > s-oscons-tmplt.s
2736 .
/bldtools
/oscons
/xoscons
: xoscons.adb xutil.ads xutil.adb
2737 -$(MKDIR
) .
/bldtools
/oscons
2738 $(RM
) $(addprefix .
/bldtools
/oscons
/,$(notdir $^
))
2739 $(CP
) $^ .
/bldtools
/oscons
2740 (cd .
/bldtools
/oscons
; gnatmake
-q xoscons
)
2742 $(RTSDIR
)/s-oscons.ads
: ..
/stamp-gnatlib1-
$(RTSDIR
) s-oscons-tmplt.c gsocket.h .
/bldtools
/oscons
/xoscons
2743 $(RM
) $(RTSDIR
)/s-oscons-tmplt.i
$(RTSDIR
)/s-oscons-tmplt.s
2746 $(OSCONS_EXTRACT
) ; \
2747 ..
/bldtools
/oscons
/xoscons s-oscons
)
2749 gnatlib
: ..
/stamp-gnatlib1-
$(RTSDIR
) ..
/stamp-gnatlib2-
$(RTSDIR
) $(RTSDIR
)/s-oscons.ads
2750 test -f
$(RTSDIR
)/s-oscons.ads || exit
1
2752 $(MAKE
) -C
$(RTSDIR
) \
2753 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2754 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2755 INCLUDES
="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2756 CFLAGS
="$(GNATLIBCFLAGS_FOR_C)" \
2757 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2759 -f ..
/Makefile
$(LIBGNAT_OBJS
)
2761 $(MAKE
) -C
$(RTSDIR
) \
2762 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2763 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2765 CFLAGS
="$(GNATLIBCFLAGS)" \
2766 ADAFLAGS
="$(GNATLIBFLAGS)" \
2767 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2769 -f ..
/Makefile
$(GNATRTL_OBJS
)
2770 $(RM
) $(RTSDIR
)/libgnat
$(arext
) $(RTSDIR
)/libgnarl
$(arext
)
2771 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnat
$(arext
) \
2772 $(addprefix $(RTSDIR
)/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
2773 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnat
$(arext
)
2774 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnarl
$(arext
) \
2775 $(addprefix $(RTSDIR
)/,$(GNATRTL_TASKING_OBJS
))
2776 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnarl
$(arext
)
2777 ifeq ($(GMEM_LIB
),gmemlib
)
2778 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgmem
$(arext
) \
2779 $(RTSDIR
)/memtrack.o
2780 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgmem
$(arext
)
2782 $(CHMOD
) a-wx
$(RTSDIR
)/*.ali
2783 touch ..
/stamp-gnatlib-
$(RTSDIR
)
2785 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2786 gnatlib-shared-default
:
2787 $(MAKE
) $(FLAGS_TO_PASS
) \
2788 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2789 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2790 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \
2791 MULTISUBDIR
="$(MULTISUBDIR)" \
2792 THREAD_KIND
="$(THREAD_KIND)" \
2794 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2795 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2796 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
$(GNATLIBCFLAGS
) \
2797 $(PICFLAG_FOR_TARGET
) \
2798 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2799 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2800 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2802 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2803 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
$(GNATLIBCFLAGS
) \
2804 $(PICFLAG_FOR_TARGET
) \
2805 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2806 $(GNATRTL_TASKING_OBJS
) \
2807 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2809 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2811 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2814 gnatlib-shared-dual
:
2815 $(MAKE
) $(FLAGS_TO_PASS
) \
2816 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2817 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2818 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2819 MULTISUBDIR
="$(MULTISUBDIR)" \
2820 THREAD_KIND
="$(THREAD_KIND)" \
2821 gnatlib-shared-default
2822 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2823 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2824 $(MAKE
) $(FLAGS_TO_PASS
) \
2825 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2826 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2827 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2828 MULTISUBDIR
="$(MULTISUBDIR)" \
2829 THREAD_KIND
="$(THREAD_KIND)" \
2831 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2833 gnatlib-shared-dual-win32
:
2834 $(MAKE
) $(FLAGS_TO_PASS
) \
2835 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2836 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2837 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2838 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" \
2839 MULTISUBDIR
="$(MULTISUBDIR)" \
2840 THREAD_KIND
="$(THREAD_KIND)" \
2841 gnatlib-shared-win32
2842 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2843 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2844 $(MAKE
) $(FLAGS_TO_PASS
) \
2845 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2846 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2847 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2848 MULTISUBDIR
="$(MULTISUBDIR)" \
2849 THREAD_KIND
="$(THREAD_KIND)" \
2851 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2853 # ??? we need to add the option to support auto-import of arrays/records to
2854 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2855 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2857 gnatlib-shared-win32
:
2858 $(MAKE
) $(FLAGS_TO_PASS
) \
2859 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2860 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2861 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \
2862 MULTISUBDIR
="$(MULTISUBDIR)" \
2863 THREAD_KIND
="$(THREAD_KIND)" \
2865 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2866 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2867 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
-shared-libgcc \
2868 $(PICFLAG_FOR_TARGET
) \
2869 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2870 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2871 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) $(MISCLIB
)
2872 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2873 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
-shared-libgcc \
2874 $(PICFLAG_FOR_TARGET
) \
2875 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2876 $(GNATRTL_TASKING_OBJS
) \
2877 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2878 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2880 gnatlib-shared-darwin
:
2881 $(MAKE
) $(FLAGS_TO_PASS
) \
2882 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2883 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2884 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET) -fno-common" \
2885 MULTISUBDIR
="$(MULTISUBDIR)" \
2886 THREAD_KIND
="$(THREAD_KIND)" \
2888 $(RM
) $(RTSDIR
)/libgnat
$(soext
) $(RTSDIR
)/libgnarl
$(soext
)
2889 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2890 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib
$(PICFLAG_FOR_TARGET
) \
2891 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2892 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2894 -Wl
,-install_name
,@rpath
/libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2896 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2897 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib
$(PICFLAG_FOR_TARGET
) \
2898 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2899 $(GNATRTL_TASKING_OBJS
) \
2901 -Wl
,-install_name
,@rpath
/libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2902 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2903 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2905 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2907 cd
$(RTSDIR
); dsymutil libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2908 cd
$(RTSDIR
); dsymutil libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2911 $(MAKE
) $(FLAGS_TO_PASS
) \
2912 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2913 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2914 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2915 MULTISUBDIR
="$(MULTISUBDIR)" \
2916 THREAD_KIND
="$(THREAD_KIND)" \
2917 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" \
2920 # When building a SJLJ runtime for VxWorks, in addition to forcing
2921 # ZCX_By_default to False, we need to ensure that extra linker options
2922 # are not passed to prevent the inclusion of useless objects and
2923 # potential troubles from the presence of extra symbols and references
2924 # in some configurations. The inhibition is performed by commenting
2925 # the pragma instead of deleting the line, as the latter might result
2926 # in getting multiple blank lines, hence a style check error, as a
2929 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="" \
2930 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2931 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2932 sed
-e
's/\(pragma Linker.*crtbe.*\)/-- \1/' $(RTSDIR
)/s.ads
> $(RTSDIR
)/s2.ads
2933 $(RM
) $(RTSDIR
)/s.ads
2934 $(MV
) $(RTSDIR
)/s2.ads
$(RTSDIR
)/system.ads
2935 $(MAKE
) $(FLAGS_TO_PASS
) \
2937 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2938 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2939 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2940 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2941 MULTISUBDIR
="$(MULTISUBDIR)" \
2942 THREAD_KIND
="$(THREAD_KIND)" \
2943 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" gnatlib
2946 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="-gcc" \
2947 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2948 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2949 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2950 $(MAKE
) $(FLAGS_TO_PASS
) \
2951 EH_MECHANISM
="-gcc" \
2952 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2953 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2954 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2955 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2956 MULTISUBDIR
="$(MULTISUBDIR)" \
2957 THREAD_KIND
="$(THREAD_KIND)" \
2958 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" gnatlib
2960 # Compiling object files from source files.
2962 # Note that dependencies on obstack.h are not written
2963 # because that file is not part of GCC.
2964 # Dependencies on gvarargs.h are not written
2965 # because all that file does, when not compiling with GCC,
2966 # is include the system varargs.h.
2968 b_gnatl.adb
: $(GNATLINK_OBJS
)
2969 $(GNATBIND
) $(ADA_INCLUDES
) -o b_gnatl.adb gnatlink.ali
2971 b_gnatl.o
: b_gnatl.adb
2972 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) -gnatws
-gnatyN \
2975 b_gnatm.adb
: $(GNATMAKE_OBJS
)
2976 $(GNATBIND
) $(ADA_INCLUDES
) -o b_gnatm.adb gnatmake.ali
2978 b_gnatm.o
: b_gnatm.adb
2979 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) -gnatws
-gnatyN \
2982 ADA_INCLUDE_DIR
= $(libsubdir
)/adainclude
2983 ADA_RTL_OBJ_DIR
= $(libsubdir
)/adalib
2987 # force no sibling call optimization on s-traceb.o so the number of stack
2988 # frames to be skipped when computing a call chain is not modified by
2989 # optimization. We don't want inlining, either.
2991 s-traceb.o
: s-traceb.adb s-traceb.ads
2992 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(NO_INLINE_ADAFLAGS
) \
2993 $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2995 # compile s-tasdeb.o without optimization and with debug info so that it is
2996 # always possible to set conditional breakpoints on tasks.
2998 s-tasdeb.o
: s-tasdeb.adb s-tasdeb.ads
2999 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
3002 # force no function reordering on a-except.o because of the exclusion bounds
3003 # mechanism (see the source file for more detailed information).
3004 # force debugging information on a-except.o so that it is always
3005 # possible to set conditional breakpoints on exceptions.
3006 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
3008 a-except.o
: a-except.adb a-except.ads
3009 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O1
-fno-inline \
3010 $(NO_REORDER_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
3012 # compile s-excdeb.o without optimization and with debug info to let the
3013 # debugger set breakpoints and inspect subprogram parameters on exception
3016 s-excdeb.o
: s-excdeb.adb s-excdeb.ads s-except.ads
3017 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
3020 # force debugging information on s-assert.o so that it is always
3021 # possible to set breakpoint on assert failures.
3023 s-assert.o
: s-assert.adb s-assert.ads
3024 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
3027 # force debugging information on a-tags.o so that the debugger can find
3028 # the description of Ada.Tags.Type_Specific_Data.
3030 a-tags.o
: a-tags.adb a-tags.ads
3031 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
3034 # need to keep the frame pointer in this file to pop the stack properly on
3036 tracebak.o
: tracebak.c tb-gcc.c
3037 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
3038 $(INCLUDES
) -fno-omit-frame-pointer
$< $(OUTPUT_OPTION
)
3040 adadecode.o
: adadecode.c adadecode.h
3044 deftarg.o
: deftarg.c
3046 exit.o
: adaint.h exit.c
3049 rtfinal.o
: rtfinal.c
3051 locales.o
: locales.c
3053 socket.o
: socket.c gsocket.h
3055 raise.o
: raise.c raise.h
3056 sigtramp-armdroid.o
: sigtramp-armdroid.c sigtramp.h
3057 sigtramp-vxworks.o
: sigtramp-vxworks.c sigtramp.h
3058 terminals.o
: terminals.c
3059 vx_stack_info.o
: vx_stack_info.c
3061 raise-gcc.o
: raise-gcc.c raise.h
3062 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3063 -iquote
$(srcdir) -iquote
$(ftop_srcdir
)/libgcc \
3064 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
3067 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3068 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
3070 init.o
: init.c adaint.h raise.h
3071 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3072 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
3074 initialize.o
: initialize.c raise.h
3075 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3076 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
3079 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3080 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
3083 targext.o
: targext.c
3084 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
3086 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
3089 # In GNU Make, ignore whether `stage*' exists.
3090 .PHONY
: stage1 stage2 stage3 stage4
clean realclean TAGS bootstrap
3091 .PHONY
: risky-stage1 risky-stage2 risky-stage3 risky-stage4