1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 3, or (at your option)
11 #GCC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING3. If not see
18 #<http://www.gnu.org/licenses/>.
20 # The makefile built from this file lives in the language subdirectory.
21 # Its purpose is to provide support for:
23 # 1) recursion where necessary, and only then (building .o's), and
24 # 2) building and debugging cc1 from the language subdirectory, and
27 # The parent makefile handles all other chores, with help from the
28 # language makefile fragment, of course.
30 # The targets for external use are:
31 # all, TAGS, ???mostlyclean, ???clean.
33 # This makefile will only work with Gnu make.
34 # The rules are written assuming a minimum subset of tools are available:
37 # MAKE: Only Gnu make will work.
38 # MV: Must accept (at least) one, maybe wildcard, source argument,
39 # a file or directory destination, and support creation/
40 # modification date preservation. Gnu mv -f works.
41 # RM: Must accept an arbitrary number of space separated file
42 # arguments, or one wildcard argument. Gnu rm works.
43 # RMDIR: Must delete a directory and all its contents. Gnu rm -rf works.
44 # ECHO: Must support command line redirection. Any Unix-like
45 # shell will typically provide this, otherwise a custom version
46 # is trivial to write.
48 # MKDIR: Gnu mkdir works.
49 # CHMOD: Gnu chmod works.
50 # true: Does nothing and returns a normal successful return code.
51 # pwd: Prints the current directory on stdout.
52 # cd: Change directory.
55 # BISON: Gnu bison works.
56 # FLEX: Gnu flex works.
57 # Other miscellaneous tools for obscure targets.
59 # Suppress smart makes who think they know how to automake Yacc files
62 # Variables that exist for you to override.
63 # See below for how to change them for certain systems.
65 # Various ways of specifying flags for compilations:
66 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
67 # BOOT_CFLAGS is the value of CFLAGS to pass
68 # to the stage2 and stage3 compilations
70 BOOT_CFLAGS
= -O
$(CFLAGS
)
71 # These exists to be overridden by the t-* files, respectively.
92 RANLIB_FLAGS
= @ranlib_flags@
96 COMPILER_FLAGS
= $(CFLAGS
)
99 PWD_COMMAND
= $${PWDCMD-pwd
}
100 # How to copy preserving the date
101 INSTALL_DATA_DATE
= cp
-p
105 GNATBIND_FLAGS
= -static
-x
107 ADAFLAGS
= -W
-Wall
-gnatpg
-gnata
108 FORCE_DEBUG_ADAFLAGS
= -g
109 NO_INLINE_ADAFLAGS
= -fno-inline
110 NO_OMIT_ADAFLAGS
= -fno-omit-frame-pointer
111 NO_SIBLING_ADAFLAGS
= -fno-optimize-sibling-calls
112 NO_REORDER_ADAFLAGS
= -fno-toplevel-reorder
113 GNATLIBFLAGS
= -W
-Wall
-gnatpg
-nostdinc
114 GNATLIBCFLAGS
= -g
-O2
115 # Pretend that _Unwind_GetIPInfo is available for the target by default. This
116 # should be autodetected during the configuration of libada and passed down to
117 # here, but we need something for --disable-libada and hope for the best.
118 GNATLIBCFLAGS_FOR_C
= \
119 -W
-Wall
$(GNATLIBCFLAGS
) -fexceptions
-DIN_RTS
-DHAVE_GETIPINFO
120 PICFLAG_FOR_TARGET
= @PICFLAG_FOR_TARGET@
121 ALL_ADAFLAGS
= $(CFLAGS
) $(ADA_CFLAGS
) $(ADAFLAGS
)
126 OUTPUT_OPTION
= -o
$@
135 # program_transform_name and objdir are set by configure.ac.
136 program_transform_name
=
139 target_alias
=@target_alias@
141 target_cpu
=@target_cpu@
142 target_vendor
=@target_vendor@
143 target_os
=@target_os@
145 host_vendor
=@host_vendor@
147 target_cpu_default
= @target_cpu_default@
148 xmake_file
= @xmake_file@
149 tmake_file
= @tmake_file@
150 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
151 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
153 # Directory where sources are, from where we are.
154 VPATH
= $(srcdir)/ada
156 # Full path to top source directory
157 # In particular this is used to access libgcc headers, so that references to
158 # these headers from GNAT runtime objects have path names in debugging info
159 # that are consistent with libgcc objects. Also used for other references to
160 # the top source directory for consistency.
161 ftop_srcdir
:= $(shell cd
$(srcdir)/..
;${PWD_COMMAND})
163 fsrcdir
:= $(shell cd
$(srcdir);${PWD_COMMAND})
164 fsrcpfx
:= $(shell cd
$(srcdir);${PWD_COMMAND})/
165 fcurdir
:= $(shell ${PWD_COMMAND})
166 fcurpfx
:= $(shell ${PWD_COMMAND})/
168 # Top build directory, relative to here.
171 # Internationalization library.
173 LIBINTL_DEP
= @LIBINTL_DEP@
175 # Character encoding conversion library.
176 LIBICONV
= @LIBICONV@
177 LIBICONV_DEP
= @LIBICONV_DEP@
179 # Any system libraries needed just for GNAT.
180 SYSLIBS
= @GNAT_LIBEXC@
182 # List extra gnattools
185 # List of target dependent sources, overridden below as necessary
188 # Type of tools build we are doing; default is not compiling tools.
193 RTSDIR
= rts
$(subst /,_
,$(MULTISUBDIR
))
195 # Link flags used to build gnat tools. By default we prefer to statically
196 # link with libgcc to avoid a dependency on shared libgcc (which is tricky
197 # to deal with as it may conflict with the libgcc provided by the system).
198 GCC_LINK_FLAGS
=-static-libstdc
++ -static-libgcc
200 # End of variables for you to override.
204 # This tells GNU Make version 3 not to put all variables in the environment.
208 ifneq ($(tmake_file
),)
209 include $(tmake_file
)
213 ifneq ($(xmake_file
),)
214 include $(xmake_file
)
217 # Now figure out from those variables how to compile and link.
219 all.indirect
: Makefile ..
/gnat1
$(exeext
)
221 # IN_GCC is meant to distinguish between code compiled into GCC itself, i.e.
222 # for the host, and the rest. But we also use it for the tools (link.c) and
223 # even break the host/target wall by using it for the library (targext.c).
224 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
225 # compiler which does not use the native libraries and headers.
226 INTERNAL_CFLAGS
= @CROSS@
-DIN_GCC
228 # This is the variable actually used when we compile.
229 ALL_CFLAGS
= $(INTERNAL_CFLAGS
) $(T_CFLAGS
) $(CFLAGS
)
232 ALL_CPPFLAGS
= $(CPPFLAGS
)
234 # Used with $(COMPILER).
235 ALL_COMPILERFLAGS
= $(ALL_CFLAGS
)
237 # This is where we get libiberty.a from.
238 LIBIBERTY
= ..
/..
/libiberty
/libiberty.a
240 # We need to link against libbacktrace because diagnostic.c in
241 # libcommon.a uses it.
242 LIBBACKTRACE
= ..
/..
/libbacktrace
/.libs
/libbacktrace.a
244 # How to link with both our special library facilities
245 # and the system's installed libraries.
246 LIBS
= $(LIBINTL
) $(LIBICONV
) $(LIBBACKTRACE
) $(LIBIBERTY
) $(SYSLIBS
)
247 LIBDEPS
= $(LIBINTL_DEP
) $(LIBICONV_DEP
) $(LIBBACKTRACE
) $(LIBIBERTY
)
248 # Default is no TGT_LIB; one might be passed down or something
250 TOOLS_LIBS
= ..
/link.o ..
/targext.o ..
/..
/ggc-none.o ..
/..
/libcommon-target.a \
251 ..
/..
/libcommon.a ..
/..
/..
/libcpp
/libcpp.a
$(LIBGNAT
) $(LIBINTL
) $(LIBICONV
) \
252 ..
/$(LIBBACKTRACE
) ..
/$(LIBIBERTY
) $(SYSLIBS
) $(TGT_LIB
)
254 # Add -no-pie to TOOLS_LIBS since some of them are compiled with -fno-PIE.
255 TOOLS_LIBS
+= @NO_PIE_FLAG@
257 # Specify the directories to be searched for header files.
258 # Both . and srcdir are used, in that order,
259 # so that tm.h and config.h will be found in the compilation
260 # subdirectory rather than in the source directory.
261 INCLUDES
= -iquote .
-iquote ..
-iquote
$(srcdir)/ada
-iquote
$(srcdir) \
262 -I
$(ftop_srcdir
)/include $(GMPINC
)
264 ADA_INCLUDES
= -I-
-I.
-I
$(srcdir)/ada
266 # Likewise, but valid for subdirectories of the current dir.
267 # FIXME: for VxWorks, we cannot add $(fsrcdir) because the regs.h file in
268 # that directory conflicts with a system header file.
269 ifneq ($(findstring vxworks
,$(target_os
)),)
270 INCLUDES_FOR_SUBDIR
= -iquote .
-iquote ..
-iquote ..
/.. \
271 -iquote
$(fsrcdir
)/ada \
272 -I
$(ftop_srcdir
)/include $(GMPINC
)
274 INCLUDES_FOR_SUBDIR
= -iquote .
-iquote ..
-iquote ..
/.. \
275 -iquote
$(fsrcdir
)/ada
-iquote
$(fsrcdir
) \
276 -I
$(ftop_srcdir
)/include $(GMPINC
)
279 ADA_INCLUDES_FOR_SUBDIR
= -I.
-I
$(fsrcdir
)/ada
281 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
284 # Say how to compile Ada programs.
285 .SUFFIXES
: .ada .adb .ads .asm
287 # Always use -I$(srcdir)/config when compiling.
289 $(CC
) -c
-x assembler
$< $(OUTPUT_OPTION
)
292 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
293 $(INCLUDES
) $< $(OUTPUT_OPTION
)
296 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
299 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
301 # how to regenerate this file
302 Makefile
: ..
/config.status
$(srcdir)/ada
/gcc-interface
/Makefile.in
$(srcdir)/ada
/Makefile.in
$(srcdir)/version.c
304 LANGUAGES
="$(CONFIG_LANGUAGES)" \
306 CONFIG_FILES
="ada/gcc-interface/Makefile ada/Makefile" $(SHELL
) config.status
308 # This tells GNU make version 3 not to export all the variables
309 # defined in this file into the environment.
312 # Lists of files for various purposes.
314 GNATLINK_OBJS
= gnatlink.o \
315 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
316 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
317 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
318 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
319 types.o validsw.o widechar.o
321 GNATMAKE_OBJS
= a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o \
322 atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o errout.o \
323 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
324 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
325 make.o makeusg.o make_util.o namet.o nlists.o opt.o osint.o osint-m.o \
326 output.o restrict.o rident.o s-exctab.o \
327 s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o \
328 s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o \
329 snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o \
330 switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o uintp.o \
331 uname.o urealp.o usage.o widechar.o \
332 $(EXTRA_GNATMAKE_OBJS
)
334 # Make arch match the current multilib so that the RTS selection code
335 # picks up the right files. For a given target this must be coherent
336 # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*.
338 ifeq ($(strip $(filter-out %x86_64
, $(target_cpu
))),)
339 ifeq ($(strip $(MULTISUBDIR
)),/32)
342 ifeq ($(strip $(MULTISUBDIR
)),/x32
)
348 # ???: handle more multilib targets
350 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
351 # The members of each pair must be separated by a '<' and no whitespace.
352 # Each pair must be separated by some amount of whitespace from the following
357 LIBGNAT_TARGET_PAIRS
= \
358 a-intnam.ads
<libgnarl
/a-intnam__dummy.ads \
359 s-inmaop.adb
<libgnarl
/s-inmaop__dummy.adb \
360 s-intman.adb
<libgnarl
/s-intman__dummy.adb \
361 s-osinte.ads
<libgnarl
/s-osinte__dummy.ads \
362 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
363 s-taprop.adb
<libgnarl
/s-taprop__dummy.adb \
364 s-taspri.ads
<libgnarl
/s-taspri__dummy.ads
366 # When using the GCC exception handling mechanism, we need to use an
367 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
371 # Default shared object option. Note that we rely on the fact that the "soname"
372 # option will always be present and last in this flag, so that we can have
373 # $(SO_OPTS)libgnat-x.xx
375 SO_OPTS
= -Wl
,-soname
,
377 # Default gnatlib-shared target.
378 # By default, equivalent to gnatlib.
379 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
380 # target when supported.
381 GNATLIB_SHARED
= gnatlib
383 # By default, build socket support units. On platforms that do not support
384 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
385 # to LIBGNAT_TARGET_PAIRS.
387 GNATRTL_SOCKETS_OBJS
= g-soccon
$(objext
) g-socket
$(objext
) g-socthi
$(objext
) \
388 g-soliop
$(objext
) g-sothco
$(objext
)
390 DUMMY_SOCKETS_TARGET_PAIRS
= \
391 g-socket.adb
<libgnat
/g-socket__dummy.adb \
392 g-socket.ads
<libgnat
/g-socket__dummy.ads \
393 g-socthi.adb
<libgnat
/g-socthi__dummy.adb \
394 g-socthi.ads
<libgnat
/g-socthi__dummy.ads \
395 g-sothco.adb
<libgnat
/g-sothco__dummy.adb \
396 g-sothco.ads
<libgnat
/g-sothco__dummy.ads
398 # On platforms where atomic increment/decrement operations are supported,
399 # special version of Ada.Strings.Unbounded package can be used.
401 ATOMICS_TARGET_PAIRS
= \
402 a-coinho.adb
<libgnat
/a-coinho__shared.adb \
403 a-coinho.ads
<libgnat
/a-coinho__shared.ads \
404 a-stunau.adb
<libgnat
/a-stunau__shared.adb \
405 a-suteio.adb
<libgnat
/a-suteio__shared.adb \
406 a-strunb.ads
<libgnat
/a-strunb__shared.ads \
407 a-strunb.adb
<libgnat
/a-strunb__shared.adb \
408 a-stwiun.adb
<libgnat
/a-stwiun__shared.adb \
409 a-stwiun.ads
<libgnat
/a-stwiun__shared.ads \
410 a-swunau.adb
<libgnat
/a-swunau__shared.adb \
411 a-swuwti.adb
<libgnat
/a-swuwti__shared.adb \
412 a-stzunb.adb
<libgnat
/a-stzunb__shared.adb \
413 a-stzunb.ads
<libgnat
/a-stzunb__shared.ads \
414 a-szunau.adb
<libgnat
/a-szunau__shared.adb \
415 a-szuzti.adb
<libgnat
/a-szuzti__shared.adb
417 ATOMICS_BUILTINS_TARGET_PAIRS
= \
418 s-atocou.adb
<libgnat
/s-atocou__builtin.adb
420 # Special version of units for x86 and x86-64 platforms.
423 a-numaux.ads
<libgnat
/a-numaux__x86.ads \
424 a-numaux.adb
<libgnat
/a-numaux__x86.adb \
425 s-atocou.adb
<libgnat
/s-atocou__x86.adb
427 X86_64_TARGET_PAIRS
= \
428 a-numaux.ads
<libgnat
/a-numaux__x86.ads \
429 a-numaux.adb
<libgnat
/a-numaux__x86.adb \
430 s-atocou.adb
<libgnat
/s-atocou__builtin.adb
432 # Implementation of symbolic traceback based on dwarf
433 TRASYM_DWARF_UNIX_PAIRS
= \
434 s-trasym.adb
<libgnat
/s-trasym__dwarf.adb \
435 s-mmosin.ads
<libgnat
/s-mmosin__unix.ads \
436 s-mmosin.adb
<libgnat
/s-mmosin__unix.adb \
437 s-mmauni.ads
<libgnat
/s-mmauni__long.ads
439 TRASYM_DWARF_MINGW_PAIRS
= \
440 s-trasym.adb
<libgnat
/s-trasym__dwarf.adb \
441 s-mmosin.ads
<libgnat
/s-mmosin__mingw.ads \
442 s-mmosin.adb
<libgnat
/s-mmosin__mingw.adb
444 TRASYM_DWARF_COMMON_OBJS
= s-objrea
$(objext
) s-dwalin
$(objext
) s-mmap
$(objext
) \
447 TRASYM_DWARF_UNIX_OBJS
= $(TRASYM_DWARF_COMMON_OBJS
) s-mmauni
$(objext
)
449 TRASYM_DWARF_MINGW_OBJS
= $(TRASYM_DWARF_COMMON_OBJS
)
451 # Shared library version
452 LIB_VERSION
= $(strip $(shell grep
' Library_Version :' $(fsrcpfx
)ada
/gnatvsn.ads | sed
-e
's/.*"\(.*\)".*/\1/'))
454 # Additionnal object files from C source to be added to libgnat.
457 # Additionnal C source files to be added to libgnat without corresponding
458 # object file (#included files). This should include at least the GNAT
459 # specific header files required to rebuild the runtime library from sources.
462 # Additionnal object files from Ada sources to be added in libgnat
463 EXTRA_GNATRTL_NONTASKING_OBJS
=
465 # Additionnal object files from Ada sources to be added in libgnarl
466 EXTRA_GNATRTL_TASKING_OBJS
=
468 # Subsets of extra libgnat sources that always go together
469 VX_SIGTRAMP_EXTRA_SRCS
=sigtramp.h sigtramp-vxworks-target.inc
471 # Additional object files that should go in the same directory as libgnat,
472 # aside the library itself. Typically useful for crtbegin/crtend kind of files.
475 VX_CRTBE_EXTRA_ADALIB_OBJS
=vx_crtbegin.o vx_crtbegin_auto.o vx_crtend.o
477 # GCC spec files to be installed in $(libsubdir), so --specs=<spec-filename>
478 # finds them at runtime.
481 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
482 # $(strip STRING) removes leading and trailing spaces from STRING.
483 # If what's left is null then it's a match.
485 # PowerPC and e500v2 VxWorks
486 ifeq ($(strip $(filter-out powerpc
% wrs vxworks vxworksspe vxworks7 vxworks7spe
,$(target_cpu
) $(target_vendor
) $(target_os
))),)
488 ifeq ($(strip $(filter-out e500
%, $(target_alias
))),)
490 # gcc config translates the target e500v2-wrs-vxworks to
491 # powerpc-wrs-vxworksspe. Let's keep the original alias here when
492 # generating s-oscons.ads.
493 target
=$(target_alias
)
495 ifeq ($(strip $(filter-out powerpc64
, $(target_cpu
))),)
502 ifeq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
508 LIBGNAT_TARGET_PAIRS
= \
509 a-intnam.ads
<libgnarl
/a-intnam__vxworks.ads \
510 a-numaux.ads
<libgnat
/a-numaux__vxworks.ads \
511 s-inmaop.adb
<libgnarl
/s-inmaop__vxworks.adb \
512 s-intman.ads
<libgnarl
/s-intman__vxworks.ads \
513 s-intman.adb
<libgnarl
/s-intman__vxworks.adb \
514 s-osinte.ads
<libgnarl
/s-osinte__vxworks.ads \
515 s-osinte.adb
<libgnarl
/s-osinte__vxworks.adb \
516 s-osprim.adb
<libgnat
/s-osprim__vxworks.adb \
517 s-parame.ads
<libgnat
/s-parame__vxworks.ads \
518 s-parame.adb
<libgnat
/s-parame__vxworks.adb \
519 s-taprop.adb
<libgnarl
/s-taprop__vxworks.adb \
520 s-tasinf.ads
<libgnarl
/s-tasinf__vxworks.ads \
521 s-taspri.ads
<libgnarl
/s-taspri__vxworks.ads \
522 s-vxwork.ads
<libgnarl
/s-vxwork__ppc.ads \
523 g-socthi.ads
<libgnat
/g-socthi__vxworks.ads \
524 g-socthi.adb
<libgnat
/g-socthi__vxworks.adb \
525 g-stsifd.adb
<libgnat
/g-stsifd__sockets.adb \
526 $(ATOMICS_TARGET_PAIRS
) \
527 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
529 # VxWorks 5 and 6 both use the same target triplet making them
530 # indistinguishable in the context of this make file. Package
531 # System.Stack_Checking.Operations is not needed on VxWorks 6 as it leads to
532 # an undefined symbol when building a dynamic shared library. To alleviate
533 # this problem and distinguish this case, we use the THREAD_KIND and include
534 # the package only in default mode.
536 ifeq ($(strip $(filter-out default
,$(THREAD_KIND
))),)
537 LIBGNAT_TARGET_PAIRS
+= \
538 s-stchop.ads
<libgnat
/s-stchop__limit.ads \
539 s-stchop.adb
<libgnat
/s-stchop__vxworks.adb
540 EXTRA_GNATRTL_NONTASKING_OBJS
+=s-stchop.o
543 TOOLS_TARGET_PAIRS
=indepsw.adb
<indepsw-gnu.adb
545 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
546 LIBGNAT_TARGET_PAIRS
+= \
547 s-vxwext.ads
<libgnarl
/s-vxwext__rtp.ads \
548 s-vxwext.adb
<libgnarl
/s-vxwext__rtp.adb \
549 s-tpopsp.adb
<libgnarl
/s-tpopsp__vxworks-rtp.adb \
550 system.ads
<libgnat
/system-vxworks-
$(ARCH_STR
)-rtp.ads
554 ifeq ($(strip $(filter-out rtp-smp
,$(THREAD_KIND
))),)
555 LIBGNAT_TARGET_PAIRS
+= \
556 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
557 s-vxwext.ads
<libgnarl
/s-vxwext__rtp.ads \
558 s-vxwext.adb
<libgnarl
/s-vxwext__rtp-smp.adb \
559 s-tpopsp.adb
<libgnarl
/s-tpopsp__vxworks-tls.adb \
560 system.ads
<libgnat
/$(SVX
)-$(ARCH_STR
)-rtp-smp.ads
563 EXTRA_LIBGNAT_OBJS
+=affinity.o
565 ifeq ($(strip $(filter-out kernel-smp
,$(THREAD_KIND
))),)
566 LIBGNAT_TARGET_PAIRS
+= \
567 s-interr.adb
<libgnarl
/s-interr__vxworks.adb \
568 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
569 s-tpopsp.adb
<libgnarl
/s-tpopsp__vxworks-tls.adb \
570 s-vxwext.ads
<libgnarl
/s-vxwext__kernel.ads \
571 s-vxwext.adb
<libgnarl
/s-vxwext__kernel-smp.adb \
572 system.ads
<libgnat
/system-vxworks-
$(ARCH_STR
)-kernel.ads
575 EXTRA_LIBGNAT_OBJS
+=affinity.o
577 LIBGNAT_TARGET_PAIRS
+= \
578 s-interr.adb
<libgnarl
/s-interr__vxworks.adb \
579 s-tpopsp.adb
<libgnarl
/s-tpopsp__vxworks.adb
581 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
583 LIBGNAT_TARGET_PAIRS
+= \
584 s-vxwext.ads
<libgnarl
/s-vxwext__kernel.ads \
585 s-vxwext.adb
<libgnarl
/s-vxwext__kernel.adb \
586 system.ads
<libgnat
/system-vxworks-
$(ARCH_STR
)-kernel.ads
588 LIBGNAT_TARGET_PAIRS
+= \
589 system.ads
<libgnat
/system-vxworks-ppc.ads
592 EXTRA_GNATRTL_NONTASKING_OBJS
+=i-vxinco.o i-vxwork.o i-vxwoio.o
596 EXTRA_GNATRTL_TASKING_OBJS
+= s-vxwork.o s-vxwext.o
598 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
600 EXTRA_ADALIB_OBJS
+=$(VX_CRTBE_EXTRA_ADALIB_OBJS
)
601 EXTRA_LIBGNAT_SRCS
+=vx_crtbegin.inc
602 GCC_SPEC_FILES
+=vxworks-gnat-crtbe-link.spec
604 ifeq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
605 ifeq ($(strip $(filter-out powerpc64
, $(target_cpu
))),)
606 GCC_SPEC_FILES
+=vxworks7-ppc64-rtp-base-link.spec
608 GCC_SPEC_FILES
+=vxworks7-rtp-base-link.spec
611 GCC_SPEC_FILES
+=vxworks-
$(ARCH_STR
)-link.spec
612 GCC_SPEC_FILES
+=vxworks-cert-
$(ARCH_STR
)-link.spec
613 GCC_SPEC_FILES
+=vxworks-smp-
$(ARCH_STR
)-link.spec
618 ifeq ($(strip $(filter-out %86 x86_64 wrs vxworks vxworks7
,$(target_cpu
) $(target_vendor
) $(target_os
))),)
622 ifeq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
628 ifeq ($(strip $(filter-out x86_64
, $(target_cpu
))),)
630 LIBGNAT_TARGET_PAIRS
=$(X86_64_TARGET_PAIRS
)
633 LIBGNAT_TARGET_PAIRS
=$(X86_TARGET_PAIRS
)
636 LIBGNAT_TARGET_PAIRS
+= \
637 a-intnam.ads
<libgnarl
/a-intnam__vxworks.ads \
638 i-vxwork.ads
<libgnat
/i-vxwork__x86.ads \
639 s-osinte.adb
<libgnarl
/s-osinte__vxworks.adb \
640 s-osinte.ads
<libgnarl
/s-osinte__vxworks.ads \
641 s-inmaop.adb
<libgnarl
/s-inmaop__vxworks.adb \
642 s-intman.ads
<libgnarl
/s-intman__vxworks.ads \
643 s-intman.adb
<libgnarl
/s-intman__vxworks.adb \
644 s-osprim.adb
<libgnat
/s-osprim__vxworks.adb \
645 s-parame.ads
<libgnat
/s-parame__vxworks.ads \
646 s-parame.adb
<libgnat
/s-parame__vxworks.adb \
647 s-stchop.ads
<libgnat
/s-stchop__limit.ads \
648 s-stchop.adb
<libgnat
/s-stchop__vxworks.adb \
649 s-taprop.adb
<libgnarl
/s-taprop__vxworks.adb \
650 s-tasinf.ads
<libgnarl
/s-tasinf__vxworks.ads \
651 s-taspri.ads
<libgnarl
/s-taspri__vxworks.ads \
652 s-vxwork.ads
<libgnarl
/s-vxwork__x86.ads \
653 g-socthi.ads
<libgnat
/g-socthi__vxworks.ads \
654 g-socthi.adb
<libgnat
/g-socthi__vxworks.adb \
655 g-stsifd.adb
<libgnat
/g-stsifd__sockets.adb \
656 $(ATOMICS_TARGET_PAIRS
)
658 TOOLS_TARGET_PAIRS
=indepsw.adb
<indepsw-gnu.adb
660 # The CPU setting for VxSim varies with the
661 # host (Windows or Linux)
662 # target (VxWorks6 or VxWorks7)
663 # runtime (rtp or kernel)
664 # -------------------------------------------------------------
666 # Windows (host_os = mingw32)
668 # rtp SIMPENTIUM SIMNT
669 # Linux (host_os = linux-gnu)
670 # kernel SIMLINUX SIMLINUX
671 # rtp SIMPENTIUM SIMLINUX
672 # -------------------------------------------------------------
673 # It is overridden by VXSIM_CPU only in files init-vxsim.c and
674 # sigtramp-vxworks-vxsim.c which contain functions determined at
675 # runtime to be called if a program is running on VxSim vs real hardware
676 # (due to differences in signal context for unwinding).
678 ifneq ($(strip $(filter-out vxworks7
, $(target_os
))),)
679 ifeq ($(strip $(filter-out vxworks rtp rtp-smp
,$(target_os
) $(THREAD_KIND
))),)
680 VXSIM_CPU
= SIMPENTIUM
682 ifeq ($(strip $(filter-out kernel kernel-smp rtp rtp-smp
,$(THREAD_KIND
))),)
683 ifeq ($(strip $(filter-out linux
%,$(host_os
))),)
693 GNATLIBCFLAGS_FOR_C
:= $(GNATLIBCFLAGS_FOR_C
) -D__VXSIM_CPU__
=$(VXSIM_CPU
)
696 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
697 # Runtime N/A for VxWorks7 (non-existent system file)
698 LIBGNAT_TARGET_PAIRS
+= \
699 s-vxwext.ads
<libgnarl
/s-vxwext__rtp.ads \
700 s-vxwext.adb
<libgnarl
/s-vxwext__rtp.adb \
701 s-tpopsp.adb
<libgnarl
/s-tpopsp__vxworks-rtp.adb \
702 system.ads
<libgnat
/system-vxworks-x86-rtp.ads
704 ifeq ($(strip $(filter-out rtp-smp
, $(THREAD_KIND
))),)
705 LIBGNAT_TARGET_PAIRS
+= \
706 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
707 s-vxwext.ads
<libgnarl
/s-vxwext__rtp.ads \
708 s-vxwext.adb
<libgnarl
/s-vxwext__rtp-smp.adb \
709 s-tpopsp.adb
<libgnarl
/s-tpopsp__vxworks-tls.adb \
710 system.ads
<libgnat
/$(SVX
)-$(X86CPU
)-rtp-smp.ads
712 EXTRA_LIBGNAT_OBJS
+=affinity.o
714 ifeq ($(strip $(filter-out kernel-smp
, $(THREAD_KIND
))),)
715 LIBGNAT_TARGET_PAIRS
+= \
716 s-interr.adb
<libgnarl
/s-interr__vxworks.adb \
717 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
718 s-tpopsp.adb
<libgnarl
/s-tpopsp__vxworks-tls.adb \
719 s-vxwext.ads
<libgnarl
/s-vxwext__kernel.ads \
720 s-vxwext.adb
<libgnarl
/s-vxwext__kernel-smp.adb \
721 system.ads
<libgnat
/$(SVX
)-$(X86CPU
)-kernel.ads
723 EXTRA_LIBGNAT_OBJS
+=affinity.o
725 LIBGNAT_TARGET_PAIRS
+= \
726 s-interr.adb
<libgnarl
/s-interr__vxworks.adb \
727 s-tpopsp.adb
<libgnarl
/s-tpopsp__vxworks.adb
729 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
730 # Runtime N/A for VxWorks7 (non-existent system file)
731 LIBGNAT_TARGET_PAIRS
+= \
732 s-vxwext.ads
<libgnarl
/s-vxwext__kernel.ads \
733 s-vxwext.adb
<libgnarl
/s-vxwext__kernel.adb \
734 system.ads
<libgnat
/$(SVX
)-x86-kernel.ads
736 LIBGNAT_TARGET_PAIRS
+= \
737 system.ads
<libgnat
/system-vxworks-x86.ads
741 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
745 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-stchop.o
746 EXTRA_GNATRTL_TASKING_OBJS
+= i-vxinco.o s-vxwork.o s-vxwext.o
748 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
750 EXTRA_LIBGNAT_OBJS
+=sigtramp-vxworks.o
751 EXTRA_LIBGNAT_SRCS
+=$(VX_SIGTRAMP_EXTRA_SRCS
)
753 EXTRA_ADALIB_OBJS
+=$(VX_CRTBE_EXTRA_ADALIB_OBJS
)
754 EXTRA_LIBGNAT_SRCS
+=vx_crtbegin.inc
755 GCC_SPEC_FILES
+=vxworks-gnat-crtbe-link.spec
757 ifeq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
758 GCC_SPEC_FILES
+=vxworks7-
$(X86CPU
)-rtp-base-link.spec
760 GCC_SPEC_FILES
+=vxworks-x86-link.spec
761 GCC_SPEC_FILES
+=vxworks-cert-x86-link.spec
762 GCC_SPEC_FILES
+=vxworks-smp-x86-link.spec
766 # ARM and Aarch64 VxWorks
767 ifeq ($(strip $(filter-out aarch64 arm
% coff wrs vx
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
769 ifeq ($(strip $(filter-out aarch64
, $(target_cpu
))),)
773 SIGTRAMP_OBJ
=sigtramp-vxworks.o
775 ifeq ($(strip $(filter-out arm
%, $(target_cpu
))),)
777 ifeq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
780 SIGTRAMP_OBJ
=sigtramp-armvxworks.o
784 SIGTRAMP_OBJ
=sigtramp-vxworks.o
791 LIBGNAT_TARGET_PAIRS
= \
792 a-intnam.ads
<libgnarl
/a-intnam__vxworks.ads \
793 a-numaux.ads
<libgnat
/a-numaux__vxworks.ads \
794 s-inmaop.adb
<libgnarl
/s-inmaop__vxworks.adb \
795 s-interr.adb
<libgnarl
/s-interr__vxworks.adb \
796 s-intman.ads
<libgnarl
/s-intman__vxworks.ads \
797 s-intman.adb
<libgnarl
/s-intman__vxworks.adb \
798 s-osinte.adb
<libgnarl
/s-osinte__vxworks.adb \
799 s-osinte.ads
<libgnarl
/s-osinte__vxworks.ads \
800 s-osprim.adb
<libgnat
/s-osprim__vxworks.adb \
801 s-parame.ads
<libgnat
/s-parame__vxworks.ads \
802 s-parame.adb
<libgnat
/s-parame__vxworks.adb \
803 s-stchop.ads
<libgnat
/s-stchop__limit.ads \
804 s-stchop.adb
<libgnat
/s-stchop__vxworks.adb \
805 s-taprop.adb
<libgnarl
/s-taprop__vxworks.adb \
806 s-tasinf.ads
<libgnarl
/s-tasinf__vxworks.ads \
807 s-taspri.ads
<libgnarl
/s-taspri__vxworks.ads \
808 s-vxwork.ads
<libgnarl
/s-vxwork__
$(ARCH_STR
).ads \
809 g-socthi.ads
<libgnat
/g-socthi__vxworks.ads \
810 g-socthi.adb
<libgnat
/g-socthi__vxworks.adb \
811 g-stsifd.adb
<libgnat
/g-stsifd__sockets.adb
813 TOOLS_TARGET_PAIRS
=indepsw.adb
<indepsw-gnu.adb
815 ifeq ($(strip $(filter-out rtp-smp
,$(THREAD_KIND
))),)
816 LIBGNAT_TARGET_PAIRS
+= \
817 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
818 s-vxwext.ads
<libgnarl
/s-vxwext__rtp.ads \
819 s-vxwext.adb
<libgnarl
/s-vxwext__rtp-smp.adb \
820 s-tpopsp.adb
<libgnarl
/s-tpopsp__vxworks-tls.adb \
821 system.ads
<libgnat
/$(SVX
)-$(ARCH_STR
)-rtp-smp.ads
823 EXTRA_LIBGNAT_OBJS
+=affinity.o
825 EXTRA_LIBGNAT_OBJS
+=$(SIGTRAMP_OBJ
)
826 EXTRA_LIBGNAT_SRCS
+=$(VX_SIGTRAMP_EXTRA_SRCS
)
828 ifeq ($(strip $(filter-out kernel-smp
,$(THREAD_KIND
))),)
829 LIBGNAT_TARGET_PAIRS
+= \
830 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
831 s-tpopsp.adb
<libgnarl
/s-tpopsp__vxworks-tls.adb \
832 s-vxwext.ads
<libgnarl
/s-vxwext__kernel.ads \
833 s-vxwext.adb
<libgnarl
/s-vxwext__kernel-smp.adb \
834 system.ads
<libgnat
/$(SVX
)-$(ARCH_STR
).ads
836 EXTRA_LIBGNAT_OBJS
+=affinity.o
838 EXTRA_LIBGNAT_OBJS
+=$(SIGTRAMP_OBJ
)
839 EXTRA_LIBGNAT_SRCS
+=$(VX_SIGTRAMP_EXTRA_SRCS
)
841 LIBGNAT_TARGET_PAIRS
+= \
842 s-tpopsp.adb
<libgnarl
/s-tpopsp__vxworks.adb \
843 system.ads
<libgnat
/$(SVX
)-$(ARCH_STR
).ads
845 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
846 LIBGNAT_TARGET_PAIRS
+= \
847 s-vxwext.ads
<libgnarl
/s-vxwext__kernel.ads \
848 s-vxwext.adb
<libgnarl
/s-vxwext__kernel.adb
850 EXTRA_LIBGNAT_OBJS
+=$(SIGTRAMP_OBJ
)
851 EXTRA_LIBGNAT_SRCS
+=$(VX_SIGTRAMP_EXTRA_SRCS
)
856 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o \
858 EXTRA_GNATRTL_TASKING_OBJS
=i-vxinco.o s-vxwork.o s-vxwext.o
860 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
862 ifeq ($(strip $(filter-out arm vxworks7
%, $(target_cpu
) $(target_os
))),)
863 GCC_SPEC_FILES
+=vxworks7-rtp-base-link.spec
865 ifeq ($(strip $(filter-out aarch64
, $(target_cpu
))),)
866 GCC_SPEC_FILES
+=vxworks7-rtp-base-link.spec
868 EXTRA_ADALIB_OBJS
+=$(VX_CRTBE_EXTRA_ADALIB_OBJS
)
869 EXTRA_LIBGNAT_SRCS
+=vx_crtbegin.inc
870 GCC_SPEC_FILES
+=vxworks-gnat-crtbe-link.spec
872 ifneq ($(strip $(filter-out vxworks7
%, $(target_os
))),)
873 GCC_SPEC_FILES
+=vxworks-arm-link.spec
874 GCC_SPEC_FILES
+=vxworks-smp-arm-link.spec
880 ifeq ($(strip $(filter-out arm
% linux-androideabi
,$(target_cpu
) $(target_os
))),)
881 LIBGNAT_TARGET_PAIRS
= \
882 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
883 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
884 s-intman.adb
<libgnarl
/s-intman__android.adb \
885 s-linux.ads
<libgnarl
/s-linux__android.ads \
886 s-osinte.adb
<libgnarl
/s-osinte__android.adb \
887 s-osinte.ads
<libgnarl
/s-osinte__android.ads \
888 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
889 s-taprop.adb
<libgnarl
/s-taprop__posix.adb \
890 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
891 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb \
892 $(ATOMICS_TARGET_PAIRS
) \
893 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
894 system.ads
<libgnat
/system-linux-arm.ads
896 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
898 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
899 EXTRA_LIBGNAT_OBJS
+=sigtramp-armdroid.o
900 EXTRA_LIBGNAT_SRCS
+=sigtramp.h
903 GNATLIB_SHARED
= gnatlib-shared-dual
904 LIBRARY_VERSION
:= $(LIB_VERSION
)
908 ifeq ($(strip $(filter-out aarch64
%qnx
,$(target_cpu
) $(target_os
))),)
909 LIBGNAT_TARGET_PAIRS
= \
910 a-intnam.ads
<libgnarl
/a-intnam__qnx.ads \
911 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
912 s-intman.adb
<libgnarl
/s-intman__qnx.adb \
913 s-osinte.adb
<libgnarl
/s-osinte__qnx.adb \
914 s-osinte.ads
<libgnarl
/s-osinte__qnx.ads \
915 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
916 s-qnx.ads
<libgnarl
/s-qnx.ads \
917 s-taprop.adb
<libgnarl
/s-taprop__qnx.adb \
918 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
919 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb \
920 $(ATOMICS_TARGET_PAIRS
) \
921 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
922 system.ads
<libgnat
/system-qnx-aarch64.ads
924 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
926 EXTRA_GNATRTL_TASKING_OBJS
=s-qnx.o
927 EXTRA_LIBGNAT_OBJS
+=sigtramp-qnx.o
928 EXTRA_LIBGNAT_SRCS
+=sigtramp.h
931 SO_OPTS
= -shared-libgcc
-Wl
,-soname
,
934 GNATLIB_SHARED
= gnatlib-shared-dual
935 LIBRARY_VERSION
:= $(LIB_VERSION
)
939 ifeq ($(strip $(filter-out sparc
% sun solaris
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
940 LIBGNAT_TARGET_PAIRS
= \
941 a-intnam.ads
<libgnarl
/a-intnam__solaris.ads \
942 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
943 s-intman.adb
<libgnarl
/s-intman__solaris.adb \
944 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
945 s-osinte.adb
<libgnarl
/s-osinte__solaris.adb \
946 s-osinte.ads
<libgnarl
/s-osinte__solaris.ads \
947 s-osprim.adb
<libgnat
/s-osprim__solaris.adb \
948 s-taprop.adb
<libgnarl
/s-taprop__solaris.adb \
949 s-tasinf.adb
<libgnarl
/s-tasinf__solaris.adb \
950 s-tasinf.ads
<libgnarl
/s-tasinf__solaris.ads \
951 s-taspri.ads
<libgnarl
/s-taspri__solaris.ads \
952 s-tpopsp.adb
<libgnarl
/s-tpopsp__solaris.adb \
953 g-soliop.ads
<libgnat
/g-soliop__solaris.ads \
954 $(ATOMICS_TARGET_PAIRS
) \
955 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
956 system.ads
<libgnat
/system-solaris-sparc.ads
959 THREADSLIB
= -lposix4
-lthread
960 MISCLIB
= -lposix4
-lnsl
-lsocket
962 GNATLIB_SHARED
= gnatlib-shared-dual
964 LIBRARY_VERSION
:= $(LIB_VERSION
)
967 # x86 and x86-64 solaris
968 ifeq ($(strip $(filter-out %86 %x86_64 solaris2
%,$(target_cpu
) $(target_os
))),)
969 LIBGNAT_TARGET_PAIRS_COMMON
= \
970 a-intnam.ads
<libgnarl
/a-intnam__solaris.ads \
971 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
972 s-intman.adb
<libgnarl
/s-intman__solaris.adb \
973 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
974 s-osinte.adb
<libgnarl
/s-osinte__solaris.adb \
975 s-osinte.ads
<libgnarl
/s-osinte__solaris.ads \
976 s-osprim.adb
<libgnat
/s-osprim__solaris.adb \
977 s-taprop.adb
<libgnarl
/s-taprop__solaris.adb \
978 s-tasinf.adb
<libgnarl
/s-tasinf__solaris.adb \
979 s-tasinf.ads
<libgnarl
/s-tasinf__solaris.ads \
980 s-taspri.ads
<libgnarl
/s-taspri__solaris.ads \
981 s-tpopsp.adb
<libgnarl
/s-tpopsp__solaris.adb \
982 g-soliop.ads
<libgnat
/g-soliop__solaris.ads \
983 $(ATOMICS_TARGET_PAIRS
) \
984 system.ads
<libgnat
/system-solaris-x86.ads
986 ifeq ($(strip $(filter-out %86 solaris2
%,$(target_cpu
) $(target_os
))),)
987 ifeq ($(strip $(MULTISUBDIR
)),/amd64
)
988 LIBGNAT_TARGET_PAIRS
= \
989 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(X86_64_TARGET_PAIRS
)
991 LIBGNAT_TARGET_PAIRS
= \
992 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(X86_TARGET_PAIRS
)
995 ifeq ($(strip $(MULTISUBDIR
)),/32)
996 LIBGNAT_TARGET_PAIRS
= \
997 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(X86_TARGET_PAIRS
)
999 LIBGNAT_TARGET_PAIRS
= \
1000 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(X86_64_TARGET_PAIRS
)
1004 EXTRA_GNATRTL_NONTASKING_OBJS
+= g-sse.o g-ssvety.o
1007 THREADSLIB
= -lposix4
-lthread
1008 MISCLIB
= -lposix4
-lnsl
-lsocket
1010 GNATLIB_SHARED
= gnatlib-shared-dual
1012 LIBRARY_VERSION
:= $(LIB_VERSION
)
1016 ifeq ($(strip $(filter-out %86 linux
%,$(target_cpu
) $(target_os
))),)
1017 LIBGNAT_TARGET_PAIRS
= \
1018 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
1019 a-synbar.adb
<libgnarl
/a-synbar__posix.adb \
1020 a-synbar.ads
<libgnarl
/a-synbar__posix.ads \
1021 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1022 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1023 s-tpopsp.adb
<libgnarl
/s-tpopsp__tls.adb \
1024 $(TRASYM_DWARF_UNIX_PAIRS
) \
1025 g-sercom.adb
<libgnat
/g-sercom__linux.adb \
1026 s-tsmona.adb
<libgnat
/s-tsmona__linux.adb \
1027 a-exetim.adb
<libgnarl
/a-exetim__posix.adb \
1028 a-exetim.ads
<libgnarl
/a-exetim__default.ads \
1029 s-linux.ads
<libgnarl
/s-linux.ads \
1030 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1031 $(ATOMICS_TARGET_PAIRS
) \
1032 system.ads
<libgnat
/system-linux-x86.ads
1034 ifeq ($(strip $(MULTISUBDIR
)),/64)
1035 LIBGNAT_TARGET_PAIRS
+= $(X86_64_TARGET_PAIRS
)
1037 LIBGNAT_TARGET_PAIRS
+= $(X86_TARGET_PAIRS
)
1040 LIBGNAT_TARGET_PAIRS
+= \
1041 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
1042 s-osinte.ads
<libgnarl
/s-osinte__linux.ads \
1043 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1044 s-taprop.adb
<libgnarl
/s-taprop__linux.adb \
1045 s-tasinf.ads
<libgnarl
/s-tasinf__linux.ads \
1046 s-tasinf.adb
<libgnarl
/s-tasinf__linux.adb \
1047 s-taspri.ads
<libgnarl
/s-taspri__posix.ads
1050 THREADSLIB
= -lpthread
-lrt
1051 EXTRA_GNATRTL_NONTASKING_OBJS
+= g-sse.o g-ssvety.o
1052 EXTRA_GNATRTL_NONTASKING_OBJS
+= $(TRASYM_DWARF_UNIX_OBJS
)
1053 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1055 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1057 GNATLIB_SHARED
= gnatlib-shared-dual
1060 LIBRARY_VERSION
:= $(LIB_VERSION
)
1064 ifeq ($(strip $(filter-out %86 kfreebsd
%,$(target_cpu
) $(target_os
))),)
1065 LIBGNAT_TARGET_PAIRS
= \
1066 a-intnam.ads
<libgnarl
/a-intnam__freebsd.ads \
1067 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1068 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1069 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1070 s-osinte.ads
<libgnarl
/s-osinte__kfreebsd-gnu.ads \
1071 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1072 s-taprop.adb
<libgnarl
/s-taprop__posix.adb \
1073 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1074 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb \
1075 $(ATOMICS_TARGET_PAIRS
) \
1076 $(X86_TARGET_PAIRS
) \
1077 system.ads
<libgnat
/system-freebsd.ads
1079 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1081 EXTRA_GNATRTL_NONTASKING_OBJS
+= g-sse.o g-ssvety.o
1084 THREADSLIB
= -lpthread
1085 GNATLIB_SHARED
= gnatlib-shared-dual
1087 LIBRARY_VERSION
:= $(LIB_VERSION
)
1091 # i[3456]86-pc-gnu i.e. GNU Hurd
1092 ifeq ($(strip $(filter-out %86 pc gnu
,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1093 LIBGNAT_TARGET_PAIRS
= \
1094 a-intnam.ads
<libgnarl
/a-intnam__freebsd.ads \
1095 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1096 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1097 s-osinte.adb
<libgnarl
/s-osinte__gnu.adb \
1098 s-osinte.ads
<libgnarl
/s-osinte__gnu.ads \
1099 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1100 s-taprop.adb
<libgnarl
/s-taprop__posix.adb \
1101 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1102 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb \
1103 $(ATOMICS_TARGET_PAIRS
) \
1104 $(X86_TARGET_PAIRS
) \
1105 system.ads
<libgnat
/system-freebsd.ads
1107 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1109 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1112 THREADSLIB
= -lpthread
1113 GNATLIB_SHARED
= gnatlib-shared-dual
1115 LIBRARY_VERSION
:= $(LIB_VERSION
)
1118 ifeq ($(strip $(filter-out x86_64 kfreebsd
%,$(target_cpu
) $(target_os
))),)
1119 LIBGNAT_TARGET_PAIRS
= \
1120 a-intnam.ads
<libgnarl
/a-intnam__freebsd.ads \
1121 a-numaux.adb
<libgnat
/a-numaux__x86.adb \
1122 a-numaux.ads
<libgnat
/a-numaux__x86.ads \
1123 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1124 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1125 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1126 s-osinte.ads
<libgnarl
/s-osinte__kfreebsd-gnu.ads \
1127 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1128 s-taprop.adb
<libgnarl
/s-taprop__posix.adb \
1129 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1130 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb \
1131 system.ads
<libgnat
/system-freebsd.ads
1133 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1136 THREADSLIB
= -lpthread
1137 GNATLIB_SHARED
= gnatlib-shared-dual
1139 LIBRARY_VERSION
:= $(LIB_VERSION
)
1143 ifeq ($(strip $(filter-out %aarch64 freebsd
%,$(target_cpu
) $(target_os
))),)
1144 LIBGNAT_TARGET_PAIRS
= \
1145 a-intnam.ads
<libgnarl
/a-intnam__freebsd.ads \
1146 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1147 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1148 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
1149 s-osinte.adb
<libgnarl
/s-osinte__freebsd.adb \
1150 s-osinte.ads
<libgnarl
/s-osinte__freebsd.ads \
1151 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1152 s-taprop.adb
<libgnarl
/s-taprop__posix.adb \
1153 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1154 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix.adb \
1155 $(ATOMICS_TARGET_PAIRS
) \
1156 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1157 system.ads
<libgnat
/system-freebsd.ads
1159 GNATLIB_SHARED
= gnatlib-shared-dual
1162 THREADSLIB
= -lpthread
1164 LIBRARY_VERSION
:= $(LIB_VERSION
)
1169 ifeq ($(strip $(filter-out %86 freebsd
%,$(target_cpu
) $(target_os
))),)
1170 LIBGNAT_TARGET_PAIRS
= \
1171 a-intnam.ads
<libgnarl
/a-intnam__freebsd.ads \
1172 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1173 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1174 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
1175 s-osinte.adb
<libgnarl
/s-osinte__freebsd.adb \
1176 s-osinte.ads
<libgnarl
/s-osinte__freebsd.ads \
1177 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1178 s-taprop.adb
<libgnarl
/s-taprop__posix.adb \
1179 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1180 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix.adb \
1181 $(ATOMICS_TARGET_PAIRS
) \
1182 $(X86_TARGET_PAIRS
) \
1183 system.ads
<libgnat
/system-freebsd.ads
1185 GNATLIB_SHARED
= gnatlib-shared-dual
1187 EXTRA_GNATRTL_NONTASKING_OBJS
+= g-sse.o g-ssvety.o
1190 THREADSLIB
= -lpthread
1192 LIBRARY_VERSION
:= $(LIB_VERSION
)
1197 ifeq ($(strip $(filter-out %86_64 freebsd
%,$(target_cpu
) $(target_os
))),)
1198 LIBGNAT_TARGET_PAIRS
= \
1199 a-intnam.ads
<libgnarl
/a-intnam__freebsd.ads \
1200 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1201 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1202 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
1203 s-osinte.adb
<libgnarl
/s-osinte__freebsd.adb \
1204 s-osinte.ads
<libgnarl
/s-osinte__freebsd.ads \
1205 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1206 s-taprop.adb
<libgnarl
/s-taprop__posix.adb \
1207 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1208 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix.adb \
1209 $(ATOMICS_TARGET_PAIRS
) \
1210 $(X86_64_TARGET_PAIRS
) \
1211 system.ads
<libgnat
/system-freebsd.ads
1213 GNATLIB_SHARED
= gnatlib-shared-dual
1215 EXTRA_GNATRTL_NONTASKING_OBJS
+= g-sse.o g-ssvety.o
1218 THREADSLIB
= -lpthread
1220 LIBRARY_VERSION
:= $(LIB_VERSION
)
1225 ifeq ($(strip $(filter-out %86_64 dragonfly
%,$(target_cpu
) $(target_os
))),)
1226 LIBGNAT_TARGET_PAIRS
= \
1227 a-intnam.ads
<libgnarl
/a-intnam__dragonfly.ads \
1228 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1229 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1230 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
1231 s-osinte.adb
<libgnarl
/s-osinte__dragonfly.adb \
1232 s-osinte.ads
<libgnarl
/s-osinte__dragonfly.ads \
1233 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1234 s-taprop.adb
<libgnarl
/s-taprop__posix.adb \
1235 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1236 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix.adb \
1237 $(ATOMICS_TARGET_PAIRS
) \
1238 $(X86_64_TARGET_PAIRS
) \
1239 system.ads
<libgnat
/system-dragonfly-x86_64.ads
1241 GNATLIB_SHARED
= gnatlib-shared-dual
1243 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1246 THREADSLIB
= -lpthread
1248 LIBRARY_VERSION
:= $(LIB_VERSION
)
1253 ifeq ($(strip $(filter-out s390
% linux
%,$(target_cpu
) $(target_os
))),)
1254 LIBGNAT_TARGET_PAIRS
= \
1255 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
1256 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1257 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1258 s-linux.ads
<libgnarl
/s-linux.ads \
1259 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1260 s-osinte.ads
<libgnarl
/s-osinte__linux.ads \
1261 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1262 s-taprop.adb
<libgnarl
/s-taprop__linux.adb \
1263 s-tasinf.ads
<libgnarl
/s-tasinf__linux.ads \
1264 s-tasinf.adb
<libgnarl
/s-tasinf__linux.adb \
1265 s-taspri.ads
<libgnarl
/s-taspri__posix-noaltstack.ads \
1266 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb \
1267 system.ads
<libgnat
/system-linux-s390.ads
1269 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1271 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1273 THREADSLIB
= -lpthread
1274 GNATLIB_SHARED
= gnatlib-shared-dual
1275 LIBRARY_VERSION
:= $(LIB_VERSION
)
1279 ifeq ($(strip $(filter-out hppa
% hp hpux10
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1280 LIBGNAT_TARGET_PAIRS
= \
1281 a-excpol.adb
<libgnat
/a-excpol__abort.adb \
1282 a-intnam.ads
<libgnarl
/a-intnam__hpux.ads \
1283 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1284 s-interr.adb
<libgnarl
/s-interr__sigaction.adb \
1285 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1286 s-osinte.adb
<libgnarl
/s-osinte__hpux-dce.adb \
1287 s-osinte.ads
<libgnarl
/s-osinte__hpux-dce.ads \
1288 s-parame.ads
<libgnat
/s-parame__hpux.ads \
1289 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1290 s-taprop.adb
<libgnarl
/s-taprop__hpux-dce.adb \
1291 s-taspri.ads
<libgnarl
/s-taspri__hpux-dce.ads \
1292 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix.adb \
1293 system.ads
<libgnat
/system-hpux.ads
1299 ifeq ($(strip $(filter-out hppa
% hp hpux11
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1300 LIBGNAT_TARGET_PAIRS
= \
1301 a-intnam.ads
<libgnarl
/a-intnam__hpux.ads \
1302 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1303 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1304 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1305 s-osinte.ads
<libgnarl
/s-osinte__hpux.ads \
1306 s-parame.ads
<libgnat
/s-parame__hpux.ads \
1307 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1308 s-traceb.adb
<libgnat
/s-traceb__hpux.adb \
1309 s-taprop.adb
<libgnarl
/s-taprop__posix.adb \
1310 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1311 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb \
1312 system.ads
<libgnat
/system-hpux.ads
1315 TGT_LIB
= /usr
/lib
/libcl.a
1316 THREADSLIB
= -lpthread
1320 GNATLIB_SHARED
= gnatlib-shared-dual
1321 LIBRARY_VERSION
:= $(LIB_VERSION
)
1325 ifeq ($(strip $(filter-out ibm aix
%,$(target_vendor
) $(target_os
))),)
1326 LIBGNAT_TARGET_PAIRS
= \
1327 a-intnam.ads
<libgnarl
/a-intnam__aix.ads \
1328 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1329 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1330 s-osinte.adb
<libgnarl
/s-osinte__aix.adb \
1331 s-osinte.ads
<libgnarl
/s-osinte__aix.ads \
1332 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1333 s-taprop.adb
<libgnarl
/s-taprop__posix.adb \
1334 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1335 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix.adb \
1336 $(ATOMICS_TARGET_PAIRS
) \
1337 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1338 system.ads
<libgnat
/system-aix.ads
1340 ifeq ($(findstring ppc64
, \
1341 $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) \
1342 -print-multi-os-directory
)), \
1344 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-aix.adb
1346 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1349 THREADSLIB
= -lpthreads
1356 ifeq ($(strip $(filter-out rtems
%,$(target_os
))),)
1357 LIBGNAT_TARGET_PAIRS
= \
1358 system.ads
<libgnat
/system-rtems.ads \
1359 a-intnam.ads
<libgnarl
/a-intnam__rtems.ads \
1360 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1361 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1362 s-osinte.adb
<libgnarl
/s-osinte__rtems.adb \
1363 s-osinte.ads
<libgnarl
/s-osinte__rtems.ads \
1364 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1365 s-parame.adb
<libgnat
/s-parame__rtems.adb \
1366 s-taprop.adb
<libgnarl
/s-taprop__posix.adb \
1367 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1368 s-tpopsp.adb
<libgnarl
/s-tpopsp__tls.adb \
1369 s-stchop.adb
<libgnat
/s-stchop__rtems.adb \
1370 s-interr.adb
<libgnarl
/s-interr__hwint.adb
1374 ifeq ($(strip $(filter-out powerpc
% %86 sysgo pikeos
,$(target_cpu
) $(target_vendor
) $(target_os
)))),)
1375 TOOLS_TARGET_PAIRS
=indepsw.adb
<indepsw-gnu.adb
1378 # *-elf, *-eabi, or *-eabispe
1379 ifeq ($(strip $(filter-out elf eabi eabispe
,$(target_os
))),)
1380 TOOLS_TARGET_PAIRS
=indepsw.adb
<indepsw-gnu.adb
1383 ifeq ($(strip $(filter-out %djgpp
,$(target_os
))),)
1384 GNATRTL_SOCKETS_OBJS
=
1386 LIBGNAT_TARGET_PAIRS
= \
1387 a-intnam.ads
<libgnarl
/a-intnam__dummy.ads \
1388 s-inmaop.adb
<libgnarl
/s-inmaop__dummy.adb \
1389 s-intman.adb
<libgnarl
/s-intman__dummy.adb \
1390 s-osinte.ads
<libgnarl
/s-osinte__dummy.ads \
1391 s-osprim.adb
<libgnat
/s-osprim__unix.adb \
1392 s-taprop.adb
<libgnarl
/s-taprop__dummy.adb \
1393 s-taspri.ads
<libgnarl
/s-taspri__dummy.ads \
1394 system.ads
<libgnat
/system-djgpp.ads \
1395 $(DUMMY_SOCKETS_TARGET_PAIRS
)
1401 ifeq ($(strip $(filter-out cygwin
% mingw32
% pe
,$(target_os
))),)
1402 # Cygwin provides a full Posix environment, and so we use the default
1403 # versions of s-memory and g-socthi rather than the Windows-specific
1404 # MinGW versions. Ideally we would use all the default versions for
1405 # Cygwin and none of the MinGW versions, but for historical reasons
1406 # the Cygwin port has always been a CygMing frankenhybrid and it is
1407 # a long-term project to disentangle them.
1408 ifeq ($(strip $(filter-out cygwin
%,$(target_os
))),)
1409 LIBGNAT_TARGET_PAIRS
= \
1410 s-memory.adb
<libgnat
/s-memory.adb \
1411 g-socthi.ads
<libgnat
/g-socthi.ads \
1412 g-socthi.adb
<libgnat
/g-socthi.adb
1414 LIBGNAT_TARGET_PAIRS
= \
1415 s-memory.adb
<libgnat
/s-memory__mingw.adb \
1416 g-socthi.ads
<libgnat
/g-socthi__mingw.ads \
1417 g-socthi.adb
<libgnat
/g-socthi__mingw.adb
1419 LIBGNAT_TARGET_PAIRS
+= \
1420 a-dirval.adb
<libgnat
/a-dirval__mingw.adb \
1421 a-excpol.adb
<libgnat
/a-excpol__abort.adb \
1422 s-gloloc.adb
<libgnat
/s-gloloc__mingw.adb \
1423 s-inmaop.adb
<libgnarl
/s-inmaop__dummy.adb \
1424 s-taspri.ads
<libgnarl
/s-taspri__mingw.ads \
1425 s-tasinf.adb
<libgnarl
/s-tasinf__mingw.adb \
1426 s-tasinf.ads
<libgnarl
/s-tasinf__mingw.ads \
1427 g-stsifd.adb
<libgnat
/g-stsifd__sockets.adb \
1428 g-soliop.ads
<libgnat
/g-soliop__mingw.ads \
1429 $(ATOMICS_TARGET_PAIRS
) \
1430 system.ads
<libgnat
/system-mingw.ads
1432 LIBGNAT_TARGET_PAIRS
+= \
1433 a-exetim.adb
<libgnarl
/a-exetim__mingw.adb \
1434 a-exetim.ads
<libgnarl
/a-exetim__mingw.ads \
1435 a-intnam.ads
<libgnarl
/a-intnam__mingw.ads \
1436 g-sercom.adb
<libgnat
/g-sercom__mingw.adb \
1437 s-tsmona.adb
<libgnat
/s-tsmona__mingw.adb \
1438 s-interr.adb
<libgnarl
/s-interr__sigaction.adb \
1439 s-intman.adb
<libgnarl
/s-intman__mingw.adb \
1440 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
1441 s-osinte.ads
<libgnarl
/s-osinte__mingw.ads \
1442 s-osprim.adb
<libgnat
/s-osprim__mingw.adb \
1443 s-taprop.adb
<libgnarl
/s-taprop__mingw.adb
1445 ifeq ($(strip $(filter-out x86_64
%,$(target_cpu
))),)
1446 ifeq ($(strip $(MULTISUBDIR
)),/32)
1447 LIBGNAT_TARGET_PAIRS
+= $(X86_TARGET_PAIRS
)
1448 SO_OPTS
= -m32
-Wl
,-soname
,
1450 LIBGNAT_TARGET_PAIRS
+= $(X86_64_TARGET_PAIRS
)
1451 SO_OPTS
= -m64
-Wl
,-soname
,
1454 ifeq ($(strip $(MULTISUBDIR
)),/64)
1455 LIBGNAT_TARGET_PAIRS
+= $(X86_64_TARGET_PAIRS
)
1456 SO_OPTS
= -m64
-Wl
,-soname
,
1458 LIBGNAT_TARGET_PAIRS
+= $(X86_TARGET_PAIRS
)
1459 SO_OPTS
= -m32
-Wl
,-soname
,
1463 EXTRA_GNATRTL_NONTASKING_OBJS
+= \
1464 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1465 EXTRA_GNATRTL_TASKING_OBJS
= a-exetim.o
1466 EXTRA_LIBGNAT_SRCS
+=mingw32.h
1469 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1470 # auto-import support for array/record will be done.
1471 GNATLIB_SHARED
= gnatlib-shared-win32
1475 TOOLS_TARGET_PAIRS
=indepsw.adb
<indepsw-gnu.adb
1478 EXTRA_GNATTOOLS
= ..
/..
/gnatdll
$(exeext
)
1479 EXTRA_GNATMAKE_OBJS
= mdll.o mdll-utl.o mdll-fil.o
1481 LIBRARY_VERSION
:= $(LIB_VERSION
)
1485 ifeq ($(strip $(filter-out mips
% linux
%,$(target_cpu
) $(target_os
))),)
1486 LIBGNAT_TARGET_PAIRS
= \
1487 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
1488 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1489 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1490 s-linux.ads
<libgnarl
/s-linux__mips.ads \
1491 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1492 s-osinte.ads
<libgnarl
/s-osinte__linux.ads \
1493 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1494 s-taprop.adb
<libgnarl
/s-taprop__linux.adb \
1495 s-tasinf.ads
<libgnarl
/s-tasinf__linux.ads \
1496 s-tasinf.adb
<libgnarl
/s-tasinf__linux.adb \
1497 s-taspri.ads
<libgnarl
/s-taspri__posix-noaltstack.ads \
1498 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb \
1499 g-sercom.adb
<libgnat
/g-sercom__linux.adb \
1500 system.ads
<libgnat
/system-linux-mips.ads
1502 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1504 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1506 THREADSLIB
= -lpthread
1507 GNATLIB_SHARED
= gnatlib-shared-dual
1509 LIBRARY_VERSION
:= $(LIB_VERSION
)
1512 # PowerPC and e500v2 Linux
1513 ifeq ($(strip $(filter-out powerpc
% linux
%,$(target_cpu
) $(target_os
))),)
1514 LIBGNAT_TARGET_PAIRS_COMMON
= \
1515 a-exetim.adb
<libgnarl
/a-exetim__posix.adb \
1516 a-exetim.ads
<libgnarl
/a-exetim__default.ads \
1517 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
1518 a-synbar.adb
<libgnarl
/a-synbar__posix.adb \
1519 a-synbar.ads
<libgnarl
/a-synbar__posix.ads \
1520 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1521 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1522 s-linux.ads
<libgnarl
/s-linux.ads \
1523 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1524 s-tpopsp.adb
<libgnarl
/s-tpopsp__tls.adb \
1525 g-sercom.adb
<libgnat
/g-sercom__linux.adb \
1526 $(ATOMICS_TARGET_PAIRS
) \
1527 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1528 system.ads
<libgnat
/system-linux-ppc.ads
1530 LIBGNAT_TARGET_PAIRS
= \
1531 $(LIBGNAT_TARGET_PAIRS_COMMON
) \
1532 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
1533 s-osinte.ads
<libgnarl
/s-osinte__linux.ads \
1534 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1535 s-taprop.adb
<libgnarl
/s-taprop__linux.adb \
1536 s-tasinf.ads
<libgnarl
/s-tasinf__linux.ads \
1537 s-tasinf.adb
<libgnarl
/s-tasinf__linux.adb \
1538 s-taspri.ads
<libgnarl
/s-taspri__posix-noaltstack.ads
1540 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1542 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1545 THREADSLIB
= -lpthread
-lrt
1546 GNATLIB_SHARED
= gnatlib-shared-dual
1548 LIBRARY_VERSION
:= $(LIB_VERSION
)
1551 # ARM linux, GNU eabi
1552 ifeq ($(strip $(filter-out arm
% linux-gnueabi
%,$(target_cpu
) $(target_os
))),)
1553 LIBGNAT_TARGET_PAIRS
= \
1554 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
1555 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1556 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1557 s-linux.ads
<libgnarl
/s-linux.ads \
1558 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1559 s-osinte.ads
<libgnarl
/s-osinte__linux.ads \
1560 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1561 s-taprop.adb
<libgnarl
/s-taprop__linux.adb \
1562 s-tasinf.ads
<libgnarl
/s-tasinf__linux.ads \
1563 s-tasinf.adb
<libgnarl
/s-tasinf__linux.adb \
1564 s-taspri.ads
<libgnarl
/s-taspri__posix-noaltstack.ads \
1565 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb \
1566 $(ATOMICS_TARGET_PAIRS
) \
1567 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1568 system.ads
<libgnat
/system-linux-arm.ads
1570 ifeq ($(strip $(filter-out arm
%b
,$(target_cpu
))),)
1576 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1578 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1579 THREADSLIB
= -lpthread
1580 GNATLIB_SHARED
= gnatlib-shared-dual
1582 LIBRARY_VERSION
:= $(LIB_VERSION
)
1586 ifeq ($(strip $(filter-out aarch64
% linux
%,$(target_cpu
) $(target_os
))),)
1587 LIBGNAT_TARGET_PAIRS
= \
1588 a-exetim.adb
<libgnarl
/a-exetim__posix.adb \
1589 a-exetim.ads
<libgnarl
/a-exetim__default.ads \
1590 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
1591 a-synbar.adb
<libgnarl
/a-synbar__posix.adb \
1592 a-synbar.ads
<libgnarl
/a-synbar__posix.ads \
1593 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1594 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1595 s-linux.ads
<libgnarl
/s-linux.ads \
1596 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
1597 s-osinte.ads
<libgnarl
/s-osinte__linux.ads \
1598 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1599 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1600 s-taprop.adb
<libgnarl
/s-taprop__linux.adb \
1601 s-tasinf.ads
<libgnarl
/s-tasinf__linux.ads \
1602 s-tasinf.adb
<libgnarl
/s-tasinf__linux.adb \
1603 s-tpopsp.adb
<libgnarl
/s-tpopsp__tls.adb \
1604 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1605 g-sercom.adb
<libgnat
/g-sercom__linux.adb \
1606 $(ATOMICS_TARGET_PAIRS
) \
1607 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1608 system.ads
<libgnat
/system-linux-arm.ads
1610 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1612 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1614 THREADSLIB
=-lpthread
-lrt
1615 GNATLIB_SHARED
=gnatlib-shared-dual
1617 LIBRARY_VERSION
:= $(LIB_VERSION
)
1621 ifeq ($(strip $(filter-out sparc
% linux
%,$(target_cpu
) $(target_os
))),)
1622 LIBGNAT_TARGET_PAIRS
= \
1623 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
1624 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1625 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1626 s-linux.ads
<libgnarl
/s-linux__sparc.ads \
1627 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1628 s-osinte.ads
<libgnarl
/s-osinte__linux.ads \
1629 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1630 s-taprop.adb
<libgnarl
/s-taprop__linux.adb \
1631 s-tasinf.ads
<libgnarl
/s-tasinf__linux.ads \
1632 s-tasinf.adb
<libgnarl
/s-tasinf__linux.adb \
1633 s-taspri.ads
<libgnarl
/s-taspri__posix-noaltstack.ads \
1634 s-tpopsp.adb
<libgnarl
/s-tpopsp__tls.adb \
1635 system.ads
<libgnat
/system-linux-sparc.ads
1637 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1639 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1641 THREADSLIB
= -lpthread
1642 GNATLIB_SHARED
= gnatlib-shared-dual
1644 LIBRARY_VERSION
:= $(LIB_VERSION
)
1648 ifeq ($(strip $(filter-out hppa
% linux
%,$(target_cpu
) $(target_os
))),)
1649 LIBGNAT_TARGET_PAIRS
= \
1650 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
1651 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1652 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1653 s-linux.ads
<libgnarl
/s-linux__hppa.ads \
1654 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1655 s-osinte.ads
<libgnarl
/s-osinte__linux.ads \
1656 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1657 s-taprop.adb
<libgnarl
/s-taprop__linux.adb \
1658 s-tasinf.ads
<libgnarl
/s-tasinf__linux.ads \
1659 s-tasinf.adb
<libgnarl
/s-tasinf__linux.adb \
1660 s-taspri.ads
<libgnarl
/s-taspri__posix-noaltstack.ads \
1661 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb \
1662 system.ads
<libgnat
/system-linux-hppa.ads
1664 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1666 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1668 THREADSLIB
= -lpthread
1669 GNATLIB_SHARED
= gnatlib-shared-dual
1671 LIBRARY_VERSION
:= $(LIB_VERSION
)
1675 ifeq ($(strip $(filter-out m68k
% linux
%,$(target_cpu
) $(target_os
))),)
1676 LIBGNAT_TARGET_PAIRS
= \
1677 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
1678 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1679 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1680 s-linux.ads
<libgnarl
/s-linux.ads \
1681 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1682 s-osinte.ads
<libgnarl
/s-osinte__linux.ads \
1683 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1684 s-taprop.adb
<libgnarl
/s-taprop__linux.adb \
1685 s-tasinf.ads
<libgnarl
/s-tasinf__linux.ads \
1686 s-tasinf.adb
<libgnarl
/s-tasinf__linux.adb \
1687 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1688 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb \
1689 system.ads
<libgnat
/system-linux-m68k.ads
1691 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1693 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1695 THREADSLIB
= -lpthread
1696 GNATLIB_SHARED
= gnatlib-shared-dual
1698 LIBRARY_VERSION
:= $(LIB_VERSION
)
1702 ifeq ($(strip $(filter-out sh4
% linux
%,$(target_cpu
) $(target_os
))),)
1703 LIBGNAT_TARGET_PAIRS
= \
1704 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
1705 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1706 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1707 s-linux.ads
<libgnarl
/s-linux.ads \
1708 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1709 s-osinte.ads
<libgnarl
/s-osinte__linux.ads \
1710 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1711 s-taprop.adb
<libgnarl
/s-taprop__linux.adb \
1712 s-tasinf.ads
<libgnarl
/s-tasinf__linux.ads \
1713 s-tasinf.adb
<libgnarl
/s-tasinf__linux.adb \
1714 s-taspri.ads
<libgnarl
/s-taspri__posix-noaltstack.ads \
1715 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb \
1716 system.ads
<libgnat
/system-linux-sh4.ads
1718 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-linux.adb
1720 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1723 THREADSLIB
= -lpthread
1724 GNATLIB_SHARED
= gnatlib-shared-dual
1726 LIBRARY_VERSION
:= $(LIB_VERSION
)
1730 ifeq ($(strip $(filter-out %ia64 linux
%,$(target_cpu
) $(target_os
))),)
1731 LIBGNAT_TARGET_PAIRS
= \
1732 a-exetim.adb
<libgnarl
/a-exetim__posix.adb \
1733 a-exetim.ads
<libgnarl
/a-exetim__default.ads \
1734 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
1735 a-numaux.ads
<libgnat
/a-numaux__libc-x86.ads \
1736 a-synbar.adb
<libgnarl
/a-synbar__posix.adb \
1737 a-synbar.ads
<libgnarl
/a-synbar__posix.ads \
1738 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1739 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1740 s-linux.ads
<libgnarl
/s-linux.ads \
1741 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
1742 s-osinte.ads
<libgnarl
/s-osinte__linux.ads \
1743 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1744 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1745 s-taprop.adb
<libgnarl
/s-taprop__linux.adb \
1746 s-tasinf.ads
<libgnarl
/s-tasinf__linux.ads \
1747 s-tasinf.adb
<libgnarl
/s-tasinf__linux.adb \
1748 s-tpopsp.adb
<libgnarl
/s-tpopsp__tls.adb \
1749 s-taspri.ads
<libgnarl
/s-taspri__posix-noaltstack.ads \
1750 g-sercom.adb
<libgnat
/g-sercom__linux.adb \
1751 $(ATOMICS_TARGET_PAIRS
) \
1752 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1753 system.ads
<libgnat
/system-linux-ia64.ads
1755 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1757 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1760 THREADSLIB
=-lpthread
-lrt
1761 GNATLIB_SHARED
=gnatlib-shared-dual
1763 LIBRARY_VERSION
:= $(LIB_VERSION
)
1767 ifeq ($(strip $(filter-out ia64
% hp hpux
%,$(target_cpu
) $(target_vendor
) $(target_os
))),)
1768 LIBGNAT_TARGET_PAIRS
= \
1769 a-intnam.ads
<libgnarl
/a-intnam__hpux.ads \
1770 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1771 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1772 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1773 s-osinte.ads
<libgnarl
/s-osinte__hpux.ads \
1774 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1775 s-taprop.adb
<libgnarl
/s-taprop__posix.adb \
1776 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1777 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb \
1778 $(ATOMICS_TARGET_PAIRS
) \
1779 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1780 system.ads
<libgnat
/system-hpux-ia64.ads
1784 THREADSLIB
=-lpthread
1785 GNATLIB_SHARED
=gnatlib-shared-dual
1789 LIBRARY_VERSION
:= $(LIB_VERSION
)
1793 ifeq ($(strip $(filter-out alpha
% linux
%,$(target_cpu
) $(target_os
))),)
1794 LIBGNAT_TARGET_PAIRS
= \
1795 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
1796 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1797 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1798 s-linux.ads
<libgnarl
/s-linux__alpha.ads \
1799 s-osinte.ads
<libgnarl
/s-osinte__linux.ads \
1800 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1801 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1802 s-taprop.adb
<libgnarl
/s-taprop__linux.adb \
1803 s-tasinf.ads
<libgnarl
/s-tasinf__linux.ads \
1804 s-tasinf.adb
<libgnarl
/s-tasinf__linux.adb \
1805 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb \
1806 s-taspri.ads
<libgnarl
/s-taspri__posix-noaltstack.ads \
1807 $(ATOMICS_TARGET_PAIRS
) \
1808 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1809 system.ads
<libgnat
/system-linux-alpha.ads
1811 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1813 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1816 THREADSLIB
=-lpthread
1817 GNATLIB_SHARED
=gnatlib-shared-dual
1818 LIBRARY_VERSION
:= $(LIB_VERSION
)
1822 ifeq ($(strip $(filter-out %x86_64 linux
%,$(target_cpu
) $(target_os
))),)
1823 LIBGNAT_TARGET_PAIRS
= \
1824 a-exetim.adb
<libgnarl
/a-exetim__posix.adb \
1825 a-exetim.ads
<libgnarl
/a-exetim__default.ads \
1826 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
1827 a-synbar.adb
<libgnarl
/a-synbar__posix.adb \
1828 a-synbar.ads
<libgnarl
/a-synbar__posix.ads \
1829 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1830 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1831 s-linux.ads
<libgnarl
/s-linux.ads \
1832 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
1833 s-osinte.ads
<libgnarl
/s-osinte__linux.ads \
1834 s-osinte.adb
<libgnarl
/s-osinte__posix.adb \
1835 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1836 s-taprop.adb
<libgnarl
/s-taprop__linux.adb \
1837 s-tasinf.ads
<libgnarl
/s-tasinf__linux.ads \
1838 s-tasinf.adb
<libgnarl
/s-tasinf__linux.adb \
1839 s-tpopsp.adb
<libgnarl
/s-tpopsp__tls.adb \
1840 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1841 g-sercom.adb
<libgnat
/g-sercom__linux.adb \
1842 $(TRASYM_DWARF_UNIX_PAIRS
) \
1843 s-tsmona.adb
<libgnat
/s-tsmona__linux.adb \
1844 $(ATOMICS_TARGET_PAIRS
) \
1845 $(X86_64_TARGET_PAIRS
) \
1846 system.ads
<libgnat
/system-linux-x86.ads
1848 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1850 EXTRA_GNATRTL_NONTASKING_OBJS
+= g-sse.o g-ssvety.o
1851 EXTRA_GNATRTL_NONTASKING_OBJS
+= $(TRASYM_DWARF_UNIX_OBJS
)
1852 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1855 THREADSLIB
=-lpthread
-lrt
1857 GNATLIB_SHARED
=gnatlib-shared-dual
1859 LIBRARY_VERSION
:= $(LIB_VERSION
)
1862 ifeq ($(strip $(filter-out %x32 linux
%,$(target_cpu
) $(target_os
))),)
1863 LIBGNAT_TARGET_PAIRS
= \
1864 a-exetim.adb
<libgnarl
/a-exetim__posix.adb \
1865 a-exetim.ads
<libgnarl
/a-exetim__default.ads \
1866 a-intnam.ads
<libgnarl
/a-intnam__linux.ads \
1867 a-synbar.adb
<libgnarl
/a-synbar__posix.adb \
1868 a-synbar.ads
<libgnarl
/a-synbar__posix.ads \
1869 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1870 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1871 s-linux.ads
<libgnarl
/s-linux__x32.ads \
1872 s-mudido.adb
<libgnarl
/s-mudido__affinity.adb \
1873 s-osinte.ads
<libgnarl
/s-osinte__linux.ads \
1874 s-osinte.adb
<libgnarl
/s-osinte__x32.adb \
1875 s-osprim.adb
<libgnat
/s-osprim__x32.adb \
1876 s-taprop.adb
<libgnarl
/s-taprop__linux.adb \
1877 s-tasinf.ads
<libgnarl
/s-tasinf__linux.ads \
1878 s-tasinf.adb
<libgnarl
/s-tasinf__linux.adb \
1879 s-tpopsp.adb
<libgnarl
/s-tpopsp__tls.adb \
1880 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1881 g-sercom.adb
<libgnat
/g-sercom__linux.adb \
1882 $(ATOMICS_TARGET_PAIRS
) \
1883 $(X86_64_TARGET_PAIRS
) \
1884 system.ads
<libgnat
/system-linux-x86.ads
1886 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-gnu.adb
1888 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1889 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1891 THREADSLIB
=-lpthread
-lrt
1892 GNATLIB_SHARED
=gnatlib-shared-dual
1894 LIBRARY_VERSION
:= $(LIB_VERSION
)
1898 ifeq ($(strip $(filter-out darwin
%,$(target_os
))),)
1899 SO_OPTS
= -shared-libgcc
1900 LIBGNAT_TARGET_PAIRS
= \
1901 a-intnam.ads
<libgnarl
/a-intnam__darwin.ads \
1902 s-inmaop.adb
<libgnarl
/s-inmaop__posix.adb \
1903 s-osinte.adb
<libgnarl
/s-osinte__darwin.adb \
1904 s-osinte.ads
<libgnarl
/s-osinte__darwin.ads \
1905 s-taprop.adb
<libgnarl
/s-taprop__posix.adb \
1906 s-taspri.ads
<libgnarl
/s-taspri__posix.ads \
1907 g-sercom.adb
<libgnat
/g-sercom__linux.adb \
1908 s-tpopsp.adb
<libgnarl
/s-tpopsp__posix-foreign.adb
1910 ifeq ($(strip $(filter-out %86,$(target_cpu
))),)
1911 LIBGNAT_TARGET_PAIRS
+= \
1912 s-intman.adb
<libgnarl
/s-intman__susv3.adb \
1913 s-osprim.adb
<libgnat
/s-osprim__darwin.adb \
1914 $(ATOMICS_TARGET_PAIRS
) \
1915 system.ads
<libgnat
/system-darwin-x86.ads
1917 ifeq ($(strip $(MULTISUBDIR
)),/x86_64
)
1919 LIBGNAT_TARGET_PAIRS
+= $(X86_64_TARGET_PAIRS
)
1921 LIBGNAT_TARGET_PAIRS
+= $(X86_TARGET_PAIRS
)
1924 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1927 ifeq ($(strip $(filter-out %x86_64
,$(target_cpu
))),)
1928 LIBGNAT_TARGET_PAIRS
+= \
1929 s-intman.adb
<libgnarl
/s-intman__susv3.adb \
1930 s-osprim.adb
<libgnat
/s-osprim__darwin.adb \
1931 a-exetim.ads
<libgnarl
/a-exetim__default.ads \
1932 a-exetim.adb
<libgnarl
/a-exetim__darwin.adb \
1933 $(ATOMICS_TARGET_PAIRS
) \
1934 system.ads
<libgnat
/system-darwin-x86.ads
1936 ifeq ($(strip $(MULTISUBDIR
)),/i386
)
1938 LIBGNAT_TARGET_PAIRS
+= $(X86_TARGET_PAIRS
)
1940 LIBGNAT_TARGET_PAIRS
+= $(X86_64_TARGET_PAIRS
)
1943 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1944 EXTRA_GNATRTL_TASKING_OBJS
=a-exetim.o
1947 ifeq ($(strip $(filter-out powerpc
%,$(target_cpu
))),)
1948 LIBGNAT_TARGET_PAIRS
+= \
1949 s-intman.adb
<libgnarl
/s-intman__posix.adb \
1950 s-osprim.adb
<libgnat
/s-osprim__posix.adb \
1951 a-numaux.ads
<libgnat
/a-numaux__darwin.ads \
1952 a-numaux.adb
<libgnat
/a-numaux__darwin.adb \
1953 $(ATOMICS_TARGET_PAIRS
) \
1954 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
1955 system.ads
<libgnat
/system-darwin-ppc.ads
1957 ifeq ($(strip $(MULTISUBDIR
)),/ppc64
)
1962 ifeq ($(strip $(filter-out arm
,$(target_cpu
))),)
1963 LIBGNAT_TARGET_PAIRS
+= \
1964 s-intman.adb
<libgnarl
/s-intman__susv3.adb \
1965 s-osprim.adb
<libgnat
/s-osprim__darwin.adb \
1966 $(ATOMICS_TARGET_PAIRS
) \
1967 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
1969 LIBGNAT_TARGET_PAIRS
+= \
1970 system.ads
<libgnat
/system-darwin-arm.ads
1973 ifeq ($(strip $(filter-out arm64 aarch64
,$(target_cpu
))),)
1974 LIBGNAT_TARGET_PAIRS
+= \
1975 s-intman.adb
<libgnarl
/s-intman__susv3.adb \
1976 s-osprim.adb
<libgnat
/s-osprim__darwin.adb \
1977 $(ATOMICS_TARGET_PAIRS
) \
1978 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
1980 EXTRA_LIBGNAT_OBJS
+=sigtramp-ios.o
1981 EXTRA_LIBGNAT_SRCS
+=sigtramp.h
1982 LIBGNAT_TARGET_PAIRS
+= \
1983 system.ads
<libgnat
/system-darwin-arm.ads
1986 TOOLS_TARGET_PAIRS
= indepsw.adb
<indepsw-darwin.adb
1989 GNATLIB_SHARED
= gnatlib-shared-darwin
1991 LIBRARY_VERSION
:= $(LIB_VERSION
)
1993 GCC_LINK_FLAGS
=-static-libstdc
++
1996 ifeq ($(EH_MECHANISM
),-gcc
)
1997 LIBGNAT_TARGET_PAIRS
+= \
1998 s-excmac.ads
<libgnat
/s-excmac__gcc.ads \
1999 s-excmac.adb
<libgnat
/s-excmac__gcc.adb
2000 EXTRA_LIBGNAT_OBJS
+=raise-gcc.o
2001 EXTRA_GNATRTL_NONTASKING_OBJS
+=g-cppexc.o s-excmac.o
2004 ifeq ($(EH_MECHANISM
),-arm
)
2005 LIBGNAT_TARGET_PAIRS
+= \
2006 s-excmac.ads
<libgnat
/s-excmac__arm.ads \
2007 s-excmac.adb
<libgnat
/s-excmac__arm.adb
2008 EXTRA_LIBGNAT_OBJS
+=raise-gcc.o
2009 EXTRA_GNATRTL_NONTASKING_OBJS
+=g-cppexc.o s-excmac.o
2012 # Configuration of host tools
2014 # Under linux, host tools need to be linked with -ldl
2016 ifeq ($(strip $(filter-out linux
%,$(host_os
))),)
2020 # LIBGNAT_SRCS is the list of all C files (including headers) of the runtime
2021 # library. LIBGNAT_OBJS is the list of object files for libgnat.
2022 # thread.c is special as put into GNATRTL_TASKING_OBJS by Makefile.rtl
2023 LIBGNAT_OBJS
= adadecode.o adaint.o argv.o aux-io.o \
2024 cal.o cio.o cstreams.o ctrl_c.o \
2025 env.o errno.o exit.o expect.o final.o rtfinal.o rtinit.o \
2026 init.o initialize.o locales.o mkdir.o \
2027 raise.o seh_init.o socket.o sysdep.o \
2028 targext.o terminals.o tracebak.o \
2029 $(EXTRA_LIBGNAT_OBJS
)
2031 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2032 # the library installation will change and there will be a
2033 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2034 # from ADA_INCLUDE_SRCS.
2036 LIBGNAT_SRCS
= $(patsubst %.o
,%.c
,$(LIBGNAT_OBJS
)) \
2037 adadecode.h adaint.h env.h gsocket.h raise.h standard.ads.h \
2038 tb-gcc.c libgnarl
/thread.c
$(EXTRA_LIBGNAT_SRCS
)
2040 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2041 # the following include file:
2043 include $(fsrcdir
)/ada
/Makefile.rtl
2045 # memtrack.o is special as not put into libgnat.
2046 GNATRTL_OBJS
= $(GNATRTL_NONTASKING_OBJS
) $(GNATRTL_TASKING_OBJS
) \
2049 # Run time source files
2050 # Note that libgnat contains a significant number of files. In orde to avoid
2051 # command line length limitations the source regexp has been split for that
2054 libgnat
/ada.ads libgnat
/calendar.ads libgnat
/directio.ads libgnat
/gnat.ads libgnat
/interfac.ads libgnat
/ioexcept.ads \
2055 libgnat
/machcode.ads libgnat
/text_io.ads libgnat
/unchconv.ads libgnat
/unchdeal.ads \
2056 libgnat
/sequenio.ads libgnat
/system.ads libgnat
/memtrack.adb \
2057 libgnat
/a-
[a-o
]*.adb libgnat
/a-
[a-o
]*.ads \
2058 libgnat
/a-
[p-z
]*.adb libgnat
/a-
[p-z
]*.ads \
2059 libgnat
/g-
[a-o
]*.adb libgnat
/g-
[a-o
]*.ads \
2060 libgnat
/g-
[p-z
]*.adb libgnat
/g-
[p-z
]*.ads \
2061 libgnat
/s-
[a-o
]*.adb libgnat
/s-
[a-o
]*.ads \
2062 libgnat
/s-
[p-z
]*.adb libgnat
/s-
[p-z
]*.ads \
2063 libgnat
/i-
[a-o
]*.adb libgnat
/i-
[a-o
]*.ads \
2064 libgnat
/i-
[p-z
]*.adb libgnat
/i-
[p-z
]*.ads \
2065 libgnarl
/[agis
]-[a-z
]*.ad
[sb
]
2067 # Files that are in ADA_INCLUDE_SRCS but not in all configurations.
2068 # They will be removed from the run time if not used.
2070 g-allein.ads g-alleve.adb g-alleve.ads g-altcon.adb g-altcon.ads \
2071 g-altive.ads g-alveop.adb g-alveop.ads g-alvety.ads g-alvevi.ads \
2072 g-intpri.ads g-regist.adb g-regist.ads g-sse.ads g-ssvety.ads \
2073 i-vxinco.adb i-vxinco.ads i-vxwoio.adb i-vxwoio.ads i-vxwork.ads \
2074 s-bb.ads s-bbbosu.ads s-bbcaco.ads s-bbcppr.ads s-bbexti.adb \
2075 s-bbexti.ads s-bbinte.adb s-bbinte.ads s-bbprot.adb s-bbprot.ads \
2076 s-bbsle3.ads s-bbsuer.ads s-bbsule.ads s-bbthqu.adb s-bbthqu.ads \
2077 s-bbthre.adb s-bbthre.ads s-bbtiev.adb s-bbtiev.ads s-bbtime.adb \
2078 s-bbtime.ads s-bcprmu.adb s-bcprmu.ads s-btstch.adb s-btstch.ads \
2079 s-gcc.adb s-gcc.ads s-gccdiv.adb s-gccdiv.ads \
2080 s-gccshi.adb s-gccshi.ads \
2081 s-init.ads s-init.adb s-linux.ads s-macres.ads \
2082 s-memcom.adb s-memcom.ads s-memmov.adb s-memmov.ads s-memset.adb \
2083 s-memset.ads s-mufalo.adb s-mufalo.ads s-musplo.adb s-musplo.ads \
2084 s-sam4.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb s-sopco4.ads \
2085 s-sopco5.adb s-sopco5.ads s-stchop.ads s-stchop.adb s-stm32.ads \
2086 s-strcom.adb s-strcom.ads s-thread.ads \
2087 s-vxwext.adb s-vxwext.ads \
2088 s-win32.ads s-winext.ads
2090 # ADA_EXCLUDE_SRCS without the sources used by the target
2091 ADA_EXCLUDE_FILES
=$(filter-out \
2092 $(patsubst %$(objext
),%.ads
,$(GNATRTL_OBJS
)) \
2093 $(patsubst %$(objext
),%.adb
,$(GNATRTL_OBJS
)), \
2094 $(ADA_EXCLUDE_SRCS
))
2096 LIBGNAT
=..
/$(RTSDIR
)/libgnat.a
2098 TOOLS_FLAGS_TO_PASS
= \
2100 "CFLAGS=$(CFLAGS)" \
2101 "LDFLAGS=$(LDFLAGS)" \
2102 "ADAFLAGS=$(ADAFLAGS)" \
2103 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
2104 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
2105 "libsubdir=$(libsubdir)" \
2106 "exeext=$(exeext)" \
2107 "fsrcdir=$(fsrcdir)" \
2108 "srcdir=$(fsrcdir)" \
2109 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
2110 "GNATMAKE=$(GNATMAKE)" \
2111 "GNATLINK=$(GNATLINK)" \
2112 "GNATBIND=$(GNATBIND)"
2114 GCC_LINK
=$(CXX
) $(GCC_LINK_FLAGS
) $(LDFLAGS
)
2116 # Build directory for the tools. Let's copy the target-dependent
2117 # sources using the same mechanism as for gnatlib. The other sources are
2118 # accessed using the vpath directive below
2124 -(cd tools
; $(LN_S
) ..
/sdefault.adb ..
/snames.ads ..
/snames.adb .
)
2125 -$(foreach PAIR
,$(TOOLS_TARGET_PAIRS
), \
2126 $(RM
) tools
/$(word 1,$(subst <, ,$(PAIR
)));\
2127 $(LN_S
) $(fsrcpfx
)ada
/$(word 2,$(subst <, ,$(PAIR
))) \
2128 tools
/$(word 1,$(subst <, ,$(PAIR
)));)
2129 touch ..
/stamp-tools
2131 # when compiling the tools, the runtime has to be first on the path so that
2132 # it hides the runtime files lying with the rest of the sources
2133 ifeq ($(TOOLSCASE
),native
)
2134 vpath
%.ads ..
/$(RTSDIR
) ..
/
2135 vpath
%.adb ..
/$(RTSDIR
) ..
/
2136 vpath
%.c ..
/$(RTSDIR
) ..
/
2137 vpath
%.h ..
/$(RTSDIR
) ..
/
2140 # in the cross tools case, everything is compiled with the native
2141 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2142 ifeq ($(TOOLSCASE
),cross
)
2149 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
2150 # reasons: gnatmake should be built with a recent compiler, a recent compiler
2151 # may not generate ALI files compatible with an old gnatmake so it is important
2152 # to be able to build gnatmake without a version of gnatmake around. Once
2153 # everything has been compiled once, gnatmake can be recompiled with itself
2154 # (see target gnattools1-re)
2155 gnattools1
: ..
/stamp-tools ..
/stamp-gnatlib-
$(RTSDIR
)
2156 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2158 ..
/..
/gnatmake
$(exeext
) ..
/..
/gnatlink
$(exeext
)
2160 # gnatmake/link can be built with recent gnatmake/link if they are available.
2161 # This is especially convenient for building cross tools or for rebuilding
2162 # the tools when the original bootstrap has already be done.
2163 gnattools1-re
: ..
/stamp-tools
2164 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2165 TOOLSCASE
=cross INCLUDES
="" gnatmake-re gnatlink-re
2167 # these tools are built with gnatmake & are common to native and cross
2168 gnattools2
: ..
/stamp-tools
2169 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2170 TOOLSCASE
=native common-tools
$(EXTRA_GNATTOOLS
)
2172 # those tools are only built for the cross version
2173 gnattools4
: ..
/stamp-tools
2174 ifeq ($(ENABLE_VXADDR2LINE
),true
)
2175 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2176 TOOLSCASE
=cross top_buildir
=..
/..
/.. \
2177 ..
/..
/vxaddr2line
$(exeext
)
2180 common-tools
: ..
/stamp-tools
2181 $(GNATMAKE
) -j0
-c
-b
$(ADA_INCLUDES
) \
2182 --GNATBIND
="$(GNATBIND)" --GCC
="$(CC) $(ALL_ADAFLAGS)" \
2183 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2184 gnatclean
-bargs
$(ADA_INCLUDES
) $(GNATBIND_FLAGS
)
2185 $(GNATLINK
) -v gnatcmd
-o ..
/..
/gnat
$(exeext
) \
2186 --GCC
="$(CC) $(ADA_INCLUDES)" --LINK
="$(GCC_LINK)" $(TOOLS_LIBS
)
2187 $(GNATLINK
) -v gnatchop
-o ..
/..
/gnatchop
$(exeext
) \
2188 --GCC
="$(CC) $(ADA_INCLUDES)" --LINK
="$(GCC_LINK)" $(TOOLS_LIBS
)
2189 $(GNATLINK
) -v gnatkr
-o ..
/..
/gnatkr
$(exeext
) \
2190 --GCC
="$(CC) $(ADA_INCLUDES)" --LINK
="$(GCC_LINK)" $(TOOLS_LIBS
)
2191 $(GNATLINK
) -v gnatls
-o ..
/..
/gnatls
$(exeext
) \
2192 --GCC
="$(CC) $(ADA_INCLUDES)" --LINK
="$(GCC_LINK)" $(TOOLS_LIBS
)
2193 $(GNATLINK
) -v gnatprep
-o ..
/..
/gnatprep
$(exeext
) \
2194 --GCC
="$(CC) $(ADA_INCLUDES)" --LINK
="$(GCC_LINK)" $(TOOLS_LIBS
)
2195 $(GNATLINK
) -v gnatxref
-o ..
/..
/gnatxref
$(exeext
) \
2196 --GCC
="$(CC) $(ADA_INCLUDES)" --LINK
="$(GCC_LINK)" $(TOOLS_LIBS
)
2197 $(GNATLINK
) -v gnatfind
-o ..
/..
/gnatfind
$(exeext
) \
2198 --GCC
="$(CC) $(ADA_INCLUDES)" --LINK
="$(GCC_LINK)" $(TOOLS_LIBS
)
2199 $(GNATLINK
) -v gnatname
-o ..
/..
/gnatname
$(exeext
) \
2200 --GCC
="$(CC) $(ADA_INCLUDES)" --LINK
="$(GCC_LINK)" $(TOOLS_LIBS
)
2201 $(GNATLINK
) -v gnatclean
-o ..
/..
/gnatclean
$(exeext
) \
2202 --GCC
="$(CC) $(ADA_INCLUDES)" --LINK
="$(GCC_LINK)" $(TOOLS_LIBS
)
2204 ..
/..
/gnatdll
$(exeext
): ..
/stamp-tools
2205 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatdll
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2206 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatdll
2207 $(GNATLINK
) -v gnatdll
-o
$@ \
2208 --GCC
="$(CC) $(ADA_INCLUDES)" --LINK
="$(GCC_LINK)" $(TOOLS_LIBS
)
2210 ..
/..
/vxaddr2line
$(exeext
): ..
/stamp-tools
2211 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vxaddr2line
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2212 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vxaddr2line
2213 $(GNATLINK
) -v vxaddr2line
-o
$@ \
2214 --GCC
="$(CC) $(ADA_INCLUDES)" --LINK
="$(GCC_LINK)" ..
/targext.o
$(CLIB
)
2216 gnatmake-re
: ..
/stamp-tools
2217 $(GNATMAKE
) -j0
$(ADA_INCLUDES
) -u sdefault
--GCC
="$(CC) $(MOST_ADA_FLAGS)"
2218 $(GNATMAKE
) -j0
-c
$(ADA_INCLUDES
) gnatmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2219 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmake
2220 $(GNATLINK
) -v gnatmake
-o ..
/..
/gnatmake
$(exeext
) \
2221 --GCC
="$(CC) $(ADA_INCLUDES)" --LINK
="$(GCC_LINK)" $(TOOLS_LIBS
)
2223 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2224 # with the former version of gnatlink itself which cannot override itself.
2225 # gnatlink-re cannot be run at the same time as gnatmake-re, hence the
2227 gnatlink-re
: ..
/stamp-tools gnatmake-re
2228 $(GNATMAKE
) -j0
-c
$(ADA_INCLUDES
) gnatlink
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2229 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlink
2230 $(GNATLINK
) -v gnatlink
-o ..
/..
/gnatlinknew
$(exeext
) \
2231 --GCC
="$(CC) $(ADA_INCLUDES)" --LINK
="$(GCC_LINK)" $(TOOLS_LIBS
)
2232 $(MV
) ..
/..
/gnatlinknew
$(exeext
) ..
/..
/gnatlink
$(exeext
)
2234 # Needs to be built with CC=gcc
2235 # Since the RTL should be built with the latest compiler, remove the
2236 # stamp target in the parent directory whenever gnat1 is rebuilt
2238 # Likewise for the tools
2239 ..
/..
/gnatmake
$(exeext
): b_gnatm.o
$(GNATMAKE_OBJS
)
2240 +$(GCC_LINK
) $(ALL_CFLAGS
) -o
$@ b_gnatm.o
$(GNATMAKE_OBJS
) $(TOOLS_LIBS
) $(TOOLS1_LIBS
)
2242 ..
/..
/gnatlink
$(exeext
): b_gnatl.o
$(GNATLINK_OBJS
)
2243 +$(GCC_LINK
) $(ALL_CFLAGS
) -o
$@ b_gnatl.o
$(GNATLINK_OBJS
) $(TOOLS_LIBS
) $(TOOLS1_LIBS
)
2245 ..
/stamp-gnatlib-
$(RTSDIR
):
2246 @if
[ ! -f stamp-gnatlib-
$(RTSDIR
) ] ; \
2248 $(ECHO
) You must first build the GNAT library
: make gnatlib
; \
2255 # Install all the requested GCC spec files.
2257 for f in
$(GCC_SPEC_FILES
); do \
2258 $(INSTALL_DATA_DATE
) $(srcdir)/ada
/$$f $(libsubdir
)/; \
2261 install-gnatlib
: ..
/stamp-gnatlib-
$(RTSDIR
) install-gcc-specs
2262 $(RMDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2263 $(RMDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2264 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2265 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2266 for file in
$(RTSDIR
)/*.ali
; do \
2267 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2269 -cd
$(RTSDIR
); for file in
*$(arext
);do \
2270 $(INSTALL_DATA
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2271 $(RANLIB_FOR_TARGET
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/$$file; \
2273 -$(foreach file
, $(EXTRA_ADALIB_OBJS
), \
2274 $(INSTALL_DATA_DATE
) $(RTSDIR
)/$(file
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
) && \
2276 # Install the shared libraries, if any, using $(INSTALL) instead
2277 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2278 # for shared libraries on some targets, e.g. on HP-UX where the x
2279 # permission is required.
2280 # Also install the .dSYM directories if they exist (these directories
2281 # contain the debug information for the shared libraries on darwin)
2282 for file in gnat gnarl
; do \
2283 if
[ -f
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) ]; then \
2284 $(INSTALL
) $(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2285 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2287 if
[ -f
$(RTSDIR
)/lib
$${file}$(soext
) ]; then \
2288 $(LN_S
) lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2289 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/lib
$${file}$(soext
); \
2291 if
[ -d
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM
]; then \
2292 $(CP
) -r
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM \
2293 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2296 # This copy must be done preserving the date on the original file.
2297 for file in
$(RTSDIR
)/*.ad
[sb
]*; do \
2298 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_INCLUDE_DIR
); \
2300 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.adb
2301 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.ads
2303 ..
/stamp-gnatlib2-
$(RTSDIR
):
2304 $(RM
) $(RTSDIR
)/s-
*.ali
2305 $(RM
) $(RTSDIR
)/s-
*$(objext
)
2306 $(RM
) $(RTSDIR
)/a-
*.ali
2307 $(RM
) $(RTSDIR
)/a-
*$(objext
)
2308 $(RM
) $(RTSDIR
)/*.ali
2309 $(RM
) $(RTSDIR
)/*$(objext
)
2310 $(RM
) $(RTSDIR
)/*$(arext
)
2311 $(RM
) $(RTSDIR
)/*$(soext
)
2312 touch ..
/stamp-gnatlib2-
$(RTSDIR
)
2313 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2315 ..
/stamp-gnatlib1-
$(RTSDIR
): Makefile ..
/stamp-gnatlib2-
$(RTSDIR
)
2318 $(CHMOD
) u
+w
$(RTSDIR
)
2319 # Copy target independent sources
2320 $(foreach f
,$(ADA_INCLUDE_SRCS
) $(LIBGNAT_SRCS
), \
2321 $(LN_S
) $(fsrcpfx
)ada
/$(f
) $(RTSDIR
) ;) true
2322 # Remove files not used
2323 $(RM
) $(patsubst %,$(RTSDIR
)/%,$(ADA_EXCLUDE_FILES
))
2324 # Remove files to be replaced by target dependent sources
2325 $(RM
) $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2326 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
))))
2327 for f in
$(RTSDIR
)/*-*__
*.ads
$(RTSDIR
)/*-*__
*.adb
; do \
2329 $(RTSDIR
)/s-stratt__
*) ;; \
2333 # Copy new target dependent sources
2334 $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2335 $(LN_S
) $(fsrcpfx
)ada
/$(word 2,$(subst <, ,$(PAIR
))) \
2336 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
)));)
2338 $(CP
) $(srcdir)/tsystem.h
$(RTSDIR
)
2339 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2340 touch ..
/stamp-gnatlib1-
$(RTSDIR
)
2342 # GCC_FOR_TARGET has paths relative to the gcc directory, so we need to adjust
2343 # for running it from ada/rts
2345 OSCONS_CC
=$(subst .
/xgcc
,..
/..
/xgcc
,$(subst -B.
/, -B..
/..
/,$(GCC_FOR_TARGET
)))
2347 # The main ada source directory must be on the include path for #include "..."
2348 # because s-oscons-tmplt.c requires adaint.h, gsocket.h, and any file included
2349 # by these headers. However note that we must use -iquote, not -I, so that
2350 # ada/types.h does not conflict with a same-named system header (VxWorks
2351 # has a <types.h> header).
2353 OSCONS_CPP
=$(OSCONS_CC
) $(GNATLIBCFLAGS
) $(GNATLIBCFLAGS_FOR_C
) -E
-C \
2354 -DTARGET
=\"$(target
)\" -iquote
$(fsrcpfx
)ada
$(fsrcpfx
)ada
/s-oscons-tmplt.c
> s-oscons-tmplt.i
2355 OSCONS_EXTRACT
=$(OSCONS_CC
) -S s-oscons-tmplt.i
2357 # Note: if you need to build with a non-GNU compiler, you could adapt the
2358 # following definitions (written for VMS DEC-C)
2359 #OSCONS_CPP=../../../$(DECC) -E /comment=as_is -DNATIVE \
2360 # -DTARGET='""$(target)""' -I$(OSCONS_SRCDIR) s-oscons-tmplt.c
2362 #OSCONS_EXTRACT=../../../$(DECC) -DNATIVE \
2363 # -DTARGET='""$(target)""' -I$(OSCONS_SRCDIR) s-oscons-tmplt.c ; \
2364 # ld -o s-oscons-tmplt.exe s-oscons-tmplt.obj; \
2365 # ./s-oscons-tmplt.exe > s-oscons-tmplt.s
2367 .
/bldtools
/oscons
/xoscons
: xoscons.adb xutil.ads xutil.adb
2368 -$(MKDIR
) .
/bldtools
/oscons
2369 $(RM
) $(addprefix .
/bldtools
/oscons
/,$(notdir $^
))
2370 $(CP
) $^ .
/bldtools
/oscons
2371 (cd .
/bldtools
/oscons
; gnatmake
-q xoscons
)
2373 $(RTSDIR
)/s-oscons.ads
: ..
/stamp-gnatlib1-
$(RTSDIR
) s-oscons-tmplt.c gsocket.h .
/bldtools
/oscons
/xoscons
2374 $(RM
) $(RTSDIR
)/s-oscons-tmplt.i
$(RTSDIR
)/s-oscons-tmplt.s
2377 $(OSCONS_EXTRACT
) ; \
2378 ..
/bldtools
/oscons
/xoscons s-oscons
)
2380 gnatlib
: ..
/stamp-gnatlib1-
$(RTSDIR
) ..
/stamp-gnatlib2-
$(RTSDIR
) $(RTSDIR
)/s-oscons.ads
2381 test -f
$(RTSDIR
)/s-oscons.ads || exit
1
2383 $(MAKE
) -C
$(RTSDIR
) \
2384 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2385 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2386 INCLUDES
="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2387 CFLAGS
="$(GNATLIBCFLAGS_FOR_C)" \
2388 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2390 -f ..
/Makefile
$(LIBGNAT_OBJS
) $(EXTRA_ADALIB_OBJS
)
2392 $(MAKE
) -C
$(RTSDIR
) \
2393 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2394 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2396 CFLAGS
="$(GNATLIBCFLAGS)" \
2397 ADAFLAGS
="$(GNATLIBFLAGS)" \
2398 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2400 -f ..
/Makefile
$(GNATRTL_OBJS
)
2401 $(RM
) $(RTSDIR
)/libgnat
$(arext
) $(RTSDIR
)/libgnarl
$(arext
)
2402 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnat
$(arext
) \
2403 $(addprefix $(RTSDIR
)/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
2404 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnat
$(arext
)
2405 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnarl
$(arext
) \
2406 $(addprefix $(RTSDIR
)/,$(GNATRTL_TASKING_OBJS
))
2407 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnarl
$(arext
)
2408 ifeq ($(GMEM_LIB
),gmemlib
)
2409 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgmem
$(arext
) \
2410 $(RTSDIR
)/memtrack.o
2411 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgmem
$(arext
)
2413 $(CHMOD
) a-wx
$(RTSDIR
)/*.ali
2414 touch ..
/stamp-gnatlib-
$(RTSDIR
)
2416 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2417 gnatlib-shared-default
:
2418 $(MAKE
) $(FLAGS_TO_PASS
) \
2419 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2420 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2421 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \
2422 MULTISUBDIR
="$(MULTISUBDIR)" \
2423 THREAD_KIND
="$(THREAD_KIND)" \
2425 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2426 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2427 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
$(GNATLIBCFLAGS
) \
2428 $(PICFLAG_FOR_TARGET
) \
2429 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2430 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2431 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2433 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2434 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
$(GNATLIBCFLAGS
) \
2435 $(PICFLAG_FOR_TARGET
) \
2436 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2437 $(GNATRTL_TASKING_OBJS
) \
2438 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2440 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2442 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2445 # Create static libgnat and libgnarl compiled with -fPIC
2446 $(RM
) $(RTSDIR
)/libgnat_pic
$(arext
) $(RTSDIR
)/libgnarl_pic
$(arext
)
2447 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnat_pic
$(arext
) \
2448 $(addprefix $(RTSDIR
)/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
2449 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnat_pic
$(arext
)
2450 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnarl_pic
$(arext
) \
2451 $(addprefix $(RTSDIR
)/,$(GNATRTL_TASKING_OBJS
))
2452 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnarl_pic
$(arext
)
2455 gnatlib-shared-dual
:
2456 $(MAKE
) $(FLAGS_TO_PASS
) \
2457 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2458 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2459 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2460 MULTISUBDIR
="$(MULTISUBDIR)" \
2461 THREAD_KIND
="$(THREAD_KIND)" \
2462 gnatlib-shared-default
2463 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2464 $(MV
) $(RTSDIR
)/libgnat_pic
$(arext
) .
2465 $(MV
) $(RTSDIR
)/libgnarl_pic
$(arext
) .
2466 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2467 $(MAKE
) $(FLAGS_TO_PASS
) \
2468 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2469 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2470 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2471 MULTISUBDIR
="$(MULTISUBDIR)" \
2472 THREAD_KIND
="$(THREAD_KIND)" \
2474 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2475 $(MV
) libgnat_pic
$(arext
) $(RTSDIR
)
2476 $(MV
) libgnarl_pic
$(arext
) $(RTSDIR
)
2478 gnatlib-shared-dual-win32
:
2479 $(MAKE
) $(FLAGS_TO_PASS
) \
2480 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2481 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2482 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2483 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" \
2484 MULTISUBDIR
="$(MULTISUBDIR)" \
2485 THREAD_KIND
="$(THREAD_KIND)" \
2486 gnatlib-shared-win32
2487 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2488 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2489 $(MAKE
) $(FLAGS_TO_PASS
) \
2490 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2491 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2492 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2493 MULTISUBDIR
="$(MULTISUBDIR)" \
2494 THREAD_KIND
="$(THREAD_KIND)" \
2496 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2498 # ??? we need to add the option to support auto-import of arrays/records to
2499 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2500 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2502 gnatlib-shared-win32
:
2503 $(MAKE
) $(FLAGS_TO_PASS
) \
2504 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2505 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2506 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \
2507 MULTISUBDIR
="$(MULTISUBDIR)" \
2508 THREAD_KIND
="$(THREAD_KIND)" \
2510 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2511 $(CP
) $(RTSDIR
)/libgnat
$(arext
) $(RTSDIR
)/libgnat_pic
$(arext
)
2512 $(CP
) $(RTSDIR
)/libgnarl
$(arext
) $(RTSDIR
)/libgnarl_pic
$(arext
)
2513 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2514 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
-shared-libgcc \
2515 $(PICFLAG_FOR_TARGET
) \
2516 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2517 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2518 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) $(MISCLIB
)
2519 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2520 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
-shared-libgcc \
2521 $(PICFLAG_FOR_TARGET
) \
2522 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2523 $(GNATRTL_TASKING_OBJS
) \
2524 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2525 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2527 gnatlib-shared-darwin
:
2528 $(MAKE
) $(FLAGS_TO_PASS
) \
2529 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2530 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2531 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET) -fno-common" \
2532 MULTISUBDIR
="$(MULTISUBDIR)" \
2533 THREAD_KIND
="$(THREAD_KIND)" \
2535 $(RM
) $(RTSDIR
)/libgnat
$(soext
) $(RTSDIR
)/libgnarl
$(soext
)
2536 $(CP
) $(RTSDIR
)/libgnat
$(arext
) $(RTSDIR
)/libgnat_pic
$(arext
)
2537 $(CP
) $(RTSDIR
)/libgnarl
$(arext
) $(RTSDIR
)/libgnarl_pic
$(arext
)
2538 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2539 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib
$(PICFLAG_FOR_TARGET
) \
2540 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2541 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2543 -Wl
,-install_name
,@rpath
/libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2545 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2546 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib
$(PICFLAG_FOR_TARGET
) \
2547 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2548 $(GNATRTL_TASKING_OBJS
) \
2550 -Wl
,-install_name
,@rpath
/libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2551 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2552 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2554 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2556 cd
$(RTSDIR
); dsymutil libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2557 cd
$(RTSDIR
); dsymutil libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2560 $(MAKE
) $(FLAGS_TO_PASS
) \
2561 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2562 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2563 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2564 MULTISUBDIR
="$(MULTISUBDIR)" \
2565 THREAD_KIND
="$(THREAD_KIND)" \
2566 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" \
2569 # When building a SJLJ runtime for VxWorks, we need to ensure that the extra
2570 # linker options needed for ZCX are not passed to prevent the inclusion of
2571 # useless objects and potential troubles from the presence of extra symbols
2572 # and references in some configurations. The inhibition is performed by
2573 # commenting the pragma instead of deleting the line, as the latter might
2574 # result in getting multiple blank lines, hence possible style check errors.
2576 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="" \
2577 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2579 -e
's/Frontend_Exceptions.*/Frontend_Exceptions : constant Boolean := True;/' \
2580 -e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' \
2581 -e
's/\(pragma Linker.*crtbe.*\)/-- \1/' \
2582 $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2583 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2584 $(MAKE
) $(FLAGS_TO_PASS
) \
2586 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2587 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2588 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2589 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2590 MULTISUBDIR
="$(MULTISUBDIR)" \
2591 THREAD_KIND
="$(THREAD_KIND)" \
2592 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" gnatlib
2595 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="-gcc" \
2596 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2598 -e
's/Frontend_Exceptions.*/Frontend_Exceptions : constant Boolean := False;/' \
2599 -e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' \
2600 $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2601 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2602 $(MAKE
) $(FLAGS_TO_PASS
) \
2603 EH_MECHANISM
="-gcc" \
2604 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2605 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2606 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2607 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2608 MULTISUBDIR
="$(MULTISUBDIR)" \
2609 THREAD_KIND
="$(THREAD_KIND)" \
2610 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" gnatlib
2612 # Compiling object files from source files.
2614 # Note that dependencies on obstack.h are not written
2615 # because that file is not part of GCC.
2616 # Dependencies on gvarargs.h are not written
2617 # because all that file does, when not compiling with GCC,
2618 # is include the system varargs.h.
2620 b_gnatl.adb
: $(GNATLINK_OBJS
)
2621 $(GNATBIND
) $(ADA_INCLUDES
) -o b_gnatl.adb gnatlink.ali
2623 b_gnatl.o
: b_gnatl.adb
2624 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) -gnatws
-gnatyN \
2627 b_gnatm.adb
: $(GNATMAKE_OBJS
)
2628 $(GNATBIND
) $(ADA_INCLUDES
) -o b_gnatm.adb gnatmake.ali
2630 b_gnatm.o
: b_gnatm.adb
2631 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) -gnatws
-gnatyN \
2634 ADA_INCLUDE_DIR
= $(libsubdir
)/adainclude
2635 ADA_RTL_OBJ_DIR
= $(libsubdir
)/adalib
2639 # force no sibling call optimization on s-traceb.o so the number of stack
2640 # frames to be skipped when computing a call chain is not modified by
2641 # optimization. We don't want inlining, either.
2643 s-traceb.o
: s-traceb.adb s-traceb.ads
2644 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(NO_INLINE_ADAFLAGS
) \
2645 $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2647 # compile s-tasdeb.o without optimization and with debug info so that it is
2648 # always possible to set conditional breakpoints on tasks.
2650 s-tasdeb.o
: s-tasdeb.adb s-tasdeb.ads
2651 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2654 # force no function reordering on a-except.o because of the exclusion bounds
2655 # mechanism (see the source file for more detailed information).
2656 # force debugging information on a-except.o so that it is always
2657 # possible to set conditional breakpoints on exceptions.
2658 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2660 a-except.o
: a-except.adb a-except.ads
2661 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(NO_INLINE_ADAFLAGS
) \
2662 $(NO_REORDER_ADAFLAGS
) -O1
$(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2664 # compile s-excdeb.o without optimization and with debug info to let the
2665 # debugger set breakpoints and inspect subprogram parameters on exception
2668 s-excdeb.o
: s-excdeb.adb s-excdeb.ads s-except.ads
2669 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2672 # force debugging information on s-assert.o so that it is always
2673 # possible to set breakpoint on assert failures.
2675 s-assert.o
: s-assert.adb s-assert.ads
2676 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
2679 # force debugging information on a-tags.o so that the debugger can find
2680 # the description of Ada.Tags.Type_Specific_Data.
2682 a-tags.o
: a-tags.adb a-tags.ads
2683 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
2686 # force no sibling call optimization on s-memory.o to avoid turning the
2687 # tail recursion in Alloc into a loop that confuses branch prediction.
2689 s-memory.o
: s-memory.adb s-memory.ads
2690 $(CC
) -c
$(ALL_ADAFLAGS
) $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) \
2693 # need to keep the frame pointer in tracebak.o to pop the stack properly on
2696 tracebak.o
: tracebak.c tb-gcc.c
2697 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
2698 $(INCLUDES
) $(NO_OMIT_ADAFLAGS
) $< $(OUTPUT_OPTION
)
2700 adadecode.o
: adadecode.c adadecode.h
2704 deftarg.o
: deftarg.c
2706 exit.o
: adaint.h exit.c
2709 rtfinal.o
: rtfinal.c
2711 locales.o
: locales.c
2713 socket.o
: socket.c gsocket.h
2715 raise.o
: raise.c raise.h
2716 sigtramp-armdroid.o
: sigtramp-armdroid.c sigtramp.h
2717 sigtramp-armvxworks.o
: sigtramp-armvxworks.c sigtramp.h
2718 sigtramp-ios.o
: sigtramp-ios.c sigtramp.h
2719 sigtramp-vxworks.o
: sigtramp-vxworks.c
$(VX_SIGTRAMP_EXTRA_SRCS
)
2720 sigtramp-vxworks-vxsim.o
: sigtramp-vxworks-vxsim.c
$(VX_SIGTRAMP_EXTRA_SRCS
)
2721 terminals.o
: terminals.c
2722 vx_stack_info.o
: vx_stack_info.c
2724 raise-gcc.o
: raise-gcc.c raise.h
2725 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2726 -iquote
$(srcdir) -iquote
$(ftop_srcdir
)/libgcc \
2727 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2730 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2731 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2733 init.o
: init.c adaint.h raise.h
2734 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2735 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2737 vx_crtbegin.o
: vx_crtbegin.c vx_crtbegin.inc
2738 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2739 -iquote
$(srcdir) -iquote
$(ftop_srcdir
)/libgcc \
2740 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2742 vx_crtbegin_auto.o
: vx_crtbegin_auto.c vx_crtbegin.inc
2743 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2744 -iquote
$(srcdir) -iquote
$(ftop_srcdir
)/libgcc \
2745 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2747 vx_crtend.o
: vx_crtend.c
2748 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2749 -iquote
$(srcdir) -iquote
$(ftop_srcdir
)/libgcc \
2750 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2752 init-vxsim.o
: init-vxsim.c
2753 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2754 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2756 initialize.o
: initialize.c raise.h
2757 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2758 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2761 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2762 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
2765 targext.o
: targext.c
2766 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2768 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
2771 # In GNU Make, ignore whether `stage*' exists.
2772 .PHONY
: stage1 stage2 stage3 stage4
clean realclean TAGS bootstrap
2773 .PHONY
: risky-stage1 risky-stage2 risky-stage3 risky-stage4