1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2012 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_SIBLING_ADAFLAGS
= -fno-optimize-sibling-calls
110 NO_REORDER_ADAFLAGS
= -fno-toplevel-reorder
111 GNATLIBFLAGS
= -W
-Wall
-gnatpg
-nostdinc
112 GNATLIBCFLAGS
= -g
-O2
113 PICFLAG_FOR_TARGET
= @PICFLAG_FOR_TARGET@
114 # Pretend that _Unwind_GetIPInfo is available for the target by default. This
115 # should be autodetected during the configuration of libada and passed down to
116 # here, but we need something for --disable-libada and hope for the best.
117 GNATLIBCFLAGS_FOR_C
= -W
-Wall
$(GNATLIBCFLAGS
) $(PICFLAG_FOR_TARGET
) \
118 -fexceptions
-DIN_RTS
-DHAVE_GETIPINFO
119 ALL_ADAFLAGS
= $(CFLAGS
) $(ADA_CFLAGS
) $(ADAFLAGS
)
124 OUTPUT_OPTION
= @OUTPUT_OPTION@
133 # Define this as & to perform parallel make on a Sequent.
134 # Note that this has some bugs, and it seems currently necessary
135 # to compile all the gen* files first by hand to avoid erroneous results.
138 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
140 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
141 GCC_CFLAGS
= $(INTERNAL_CFLAGS
) $(T_CFLAGS
) $(CFLAGS
)
143 # Tools to use when building a cross-compiler.
144 # These are used because `configure' appends `cross-make'
145 # to the makefile when making a cross-compiler.
147 # We don't use cross-make. Instead we use the tools from the build tree,
148 # if they are available.
149 # program_transform_name and objdir are set by configure.in.
150 program_transform_name
=
153 target_alias
=@target_alias@
155 xmake_file
= @xmake_file@
156 tmake_file
= @tmake_file@
157 host_canonical
=@host@
158 target_cpu_default
=@target_cpu_default@
159 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
160 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
162 # Directory where sources are, from where we are.
163 VPATH
= $(srcdir)/ada
165 fsrcdir
:= $(shell cd
$(srcdir);${PWD_COMMAND})
166 fsrcpfx
:= $(shell cd
$(srcdir);${PWD_COMMAND})/
167 fcurdir
:= $(shell ${PWD_COMMAND})
168 fcurpfx
:= $(shell ${PWD_COMMAND})/
170 # Top build directory, relative to here.
173 # Internationalization library.
175 LIBINTL_DEP
= @LIBINTL_DEP@
177 # Character encoding conversion library.
178 LIBICONV
= @LIBICONV@
179 LIBICONV_DEP
= @LIBICONV_DEP@
181 # Any system libraries needed just for GNAT.
182 SYSLIBS
= @GNAT_LIBEXC@
184 # List extra gnattools
187 # List of target dependent sources, overridden below as necessary
190 # Type of tools build we are doing; default is not compiling tools.
195 RTSDIR
= rts
$(subst /,_
,$(MULTISUBDIR
))
197 # Link flags used to build gnat tools. By default we prefer to statically
198 # link with libgcc to avoid a dependency on shared libgcc (which is tricky
199 # to deal with as it may conflict with the libgcc provided by the system).
200 GCC_LINK_FLAGS
=-static-libgcc
202 # End of variables for you to override.
206 # This tells GNU Make version 3 not to put all variables in the environment.
210 ifneq ($(tmake_file
),)
211 include $(tmake_file
)
215 ifneq ($(xmake_file
),)
216 include $(xmake_file
)
219 # Now figure out from those variables how to compile and link.
221 all.indirect
: Makefile ..
/gnat1
$(exeext
)
223 # IN_GCC is meant to distinguish between code compiled into GCC itself, i.e.
224 # for the host, and the rest. But we also use it for the tools (link.c) and
225 # even break the host/target wall by using it for the library (targext.c).
226 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
227 # compiler which does not use the native libraries and headers.
228 INTERNAL_CFLAGS
= @CROSS@
-DIN_GCC
230 # This is the variable actually used when we compile.
231 ALL_CFLAGS
= $(INTERNAL_CFLAGS
) $(T_CFLAGS
) $(CFLAGS
)
234 ALL_CPPFLAGS
= $(CPPFLAGS
)
236 # Used with $(COMPILER).
237 ALL_COMPILERFLAGS
= $(ALL_CFLAGS
)
239 # This is where we get libiberty.a from.
240 LIBIBERTY
= ..
/..
/libiberty
/libiberty.a
242 # How to link with both our special library facilities
243 # and the system's installed libraries.
244 LIBS
= $(LIBINTL
) $(LIBICONV
) $(LIBIBERTY
) $(SYSLIBS
)
245 LIBDEPS
= $(LIBINTL_DEP
) $(LIBICONV_DEP
) $(LIBIBERTY
)
246 # Default is no TGT_LIB; one might be passed down or something
248 TOOLS_LIBS
= targext.o link.o ..
/..
/libcommon-target.a ..
/..
/libcommon.a \
249 ..
/..
/..
/libcpp
/libcpp.a
$(LIBGNAT
) $(LIBINTL
) $(LIBICONV
) \
250 ..
/..
/..
/libiberty
/libiberty.a
$(SYSLIBS
) $(TGT_LIB
)
252 # Convert the target variable into a space separated list of architecture,
253 # manufacturer, and operating system and assign each of those to its own
255 host
:=$(subst -, ,$(host_canonical
))
256 targ
:=$(subst -, ,$(target
))
257 arch
:=$(word 1,$(targ
))
258 ifeq ($(words $(targ
)),2)
260 osys
:=$(word 2,$(targ
))
262 manu
:=$(word 2,$(targ
))
263 osys
:=$(word 3,$(targ
))
266 # Specify the directories to be searched for header files.
267 # Both . and srcdir are used, in that order,
268 # so that tm.h and config.h will be found in the compilation
269 # subdirectory rather than in the source directory.
270 INCLUDES
= -I-
-I.
-I..
-I
$(srcdir)/ada
-I
$(srcdir) -I
$(srcdir)/..
/include
272 ADA_INCLUDES
= -I-
-I.
-I
$(srcdir)/ada
274 # Likewise, but valid for subdirectories of the current dir.
275 # FIXME: for VxWorks, we cannot add $(fsrcdir) because the regs.h file in
276 # that directory conflicts with a system header file.
277 ifneq ($(findstring vxworks
,$(osys
)),)
278 INCLUDES_FOR_SUBDIR
= -iquote .
-iquote ..
-iquote ..
/.. \
279 -iquote
$(fsrcdir
)/ada \
280 -I
$(fsrcdir
)/..
/include
282 INCLUDES_FOR_SUBDIR
= -iquote .
-iquote ..
-iquote ..
/.. \
283 -iquote
$(fsrcdir
)/ada
-iquote
$(fsrcdir
) \
284 -I
$(fsrcdir
)/..
/include
287 ADA_INCLUDES_FOR_SUBDIR
= -I.
-I
$(fsrcdir
)/ada
289 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
292 # Say how to compile Ada programs.
293 .SUFFIXES
: .ada .adb .ads .asm
295 # Always use -I$(srcdir)/config when compiling.
297 $(CC
) -c
-x assembler
$< $(OUTPUT_OPTION
)
300 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
301 $(INCLUDES
) $< $(OUTPUT_OPTION
)
304 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
307 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
309 # how to regenerate this file
310 Makefile
: ..
/config.status
$(srcdir)/ada
/gcc-interface
/Makefile.in
$(srcdir)/ada
/Makefile.in
$(srcdir)/version.c
312 LANGUAGES
="$(CONFIG_LANGUAGES)" \
314 CONFIG_FILES
="ada/gcc-interface/Makefile ada/Makefile" $(SHELL
) config.status
316 # This tells GNU make version 3 not to export all the variables
317 # defined in this file into the environment.
320 # Lists of files for various purposes.
322 GNATLINK_OBJS
= gnatlink.o \
323 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
324 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
325 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
326 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
327 types.o validsw.o widechar.o
329 GNATMAKE_OBJS
= a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o \
330 atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o errout.o \
331 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
332 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
333 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
334 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o \
335 output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o \
336 prj-conf.o prj-pp.o prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o \
337 prj-proc.o prj-strt.o prj-tree.o prj-util.o restrict.o rident.o s-exctab.o \
338 s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o \
339 s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o \
340 sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o \
341 switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o uintp.o \
342 uname.o urealp.o usage.o widechar.o \
343 $(EXTRA_GNATMAKE_OBJS
)
345 # Make arch match the current multilib so that the RTS selection code
346 # picks up the right files. For a given target this must be coherent
347 # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*.
349 ifeq ($(strip $(filter-out %x86_64
, $(arch
))),)
350 ifeq ($(strip $(MULTISUBDIR
)),/32)
353 ifeq ($(strip $(MULTISUBDIR
)),/x32
)
359 # ???: handle more multilib targets
361 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
362 # The members of each pair must be separated by a '<' and no whitespace.
363 # Each pair must be separated by some amount of whitespace from the following
368 LIBGNAT_TARGET_PAIRS
= \
369 a-intnam.ads
<a-intnam-dummy.ads \
370 s-inmaop.adb
<s-inmaop-dummy.adb \
371 s-intman.adb
<s-intman-dummy.adb \
372 s-osinte.ads
<s-osinte-dummy.ads \
373 s-osprim.adb
<s-osprim-posix.adb \
374 s-taprop.adb
<s-taprop-dummy.adb \
375 s-taspri.ads
<s-taspri-dummy.ads
377 # When using the GCC exception handling mechanism, we need to use an
378 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
382 # Default shared object option. Note that we rely on the fact that the "soname"
383 # option will always be present and last in this flag, so that we can have
384 # $(SO_OPTS)libgnat-x.xx
386 SO_OPTS
= -Wl
,-soname
,
388 # Default gnatlib-shared target.
389 # By default, equivalent to gnatlib.
390 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
391 # target when supported.
392 GNATLIB_SHARED
= gnatlib
394 # default value for gnatmake's target dependent file
397 # By default, build socket support units. On platforms that do not support
398 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
399 # to LIBGNAT_TARGET_PAIRS.
401 GNATRTL_SOCKETS_OBJS
= g-soccon
$(objext
) g-socket
$(objext
) g-socthi
$(objext
) \
402 g-soliop
$(objext
) g-sothco
$(objext
)
404 DUMMY_SOCKETS_TARGET_PAIRS
= \
405 g-socket.adb
<g-socket-dummy.adb \
406 g-socket.ads
<g-socket-dummy.ads \
407 g-socthi.adb
<g-socthi-dummy.adb \
408 g-socthi.ads
<g-socthi-dummy.ads \
409 g-sothco.adb
<g-sothco-dummy.adb \
410 g-sothco.ads
<g-sothco-dummy.ads
412 # On platforms where atomic increment/decrement operations are supported,
413 # special version of Ada.Strings.Unbounded package can be used.
415 ATOMICS_TARGET_PAIRS
= \
416 a-stunau.adb
<a-stunau-shared.adb \
417 a-suteio.adb
<a-suteio-shared.adb \
418 a-strunb.ads
<a-strunb-shared.ads \
419 a-strunb.adb
<a-strunb-shared.adb \
420 a-stwiun.adb
<a-stwiun-shared.adb \
421 a-stwiun.ads
<a-stwiun-shared.ads \
422 a-swunau.adb
<a-swunau-shared.adb \
423 a-swuwti.adb
<a-swuwti-shared.adb \
424 a-stzunb.adb
<a-stzunb-shared.adb \
425 a-stzunb.ads
<a-stzunb-shared.ads \
426 a-szunau.adb
<a-szunau-shared.adb \
427 a-szuzti.adb
<a-szuzti-shared.adb
429 ATOMICS_BUILTINS_TARGET_PAIRS
= \
430 s-atocou.adb
<s-atocou-builtin.adb
432 # Special version of units for x86 and x86-64 platforms.
435 a-numaux.ads
<a-numaux-x86.ads \
436 a-numaux.adb
<a-numaux-x86.adb \
437 s-atocou.adb
<s-atocou-x86.adb
439 X86_64_TARGET_PAIRS
= \
440 a-numaux.ads
<a-numaux-x86.ads \
441 a-numaux.adb
<a-numaux-x86.adb \
442 s-atocou.adb
<s-atocou-builtin.adb
444 LIB_VERSION
= $(strip $(shell grep
' Library_Version :' $(fsrcpfx
)ada
/gnatvsn.ads | sed
-e
's/.*"\(.*\)".*/\1/'))
446 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
447 # $(strip STRING) removes leading and trailing spaces from STRING.
448 # If what's left is null then it's a match.
450 ifeq ($(strip $(filter-out m68k
% wrs vx
%,$(targ
))),)
451 LIBGNAT_TARGET_PAIRS
= \
452 a-intnam.ads
<a-intnam-vxworks.ads \
453 a-numaux.ads
<a-numaux-vxworks.ads \
454 s-inmaop.adb
<s-inmaop-vxworks.adb \
455 s-interr.adb
<s-interr-hwint.adb \
456 s-intman.ads
<s-intman-vxworks.ads \
457 s-intman.adb
<s-intman-vxworks.adb \
458 s-osinte.adb
<s-osinte-vxworks.adb \
459 s-osinte.ads
<s-osinte-vxworks.ads \
460 s-osprim.adb
<s-osprim-vxworks.adb \
461 s-parame.ads
<s-parame-vxworks.ads \
462 s-parame.adb
<s-parame-vxworks.adb \
463 s-stchop.ads
<s-stchop-limit.ads \
464 s-stchop.adb
<s-stchop-vxworks.adb \
465 s-taprop.adb
<s-taprop-vxworks.adb \
466 s-tasinf.ads
<s-tasinf-vxworks.ads \
467 s-taspri.ads
<s-taspri-vxworks.ads \
468 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
469 s-vxwork.ads
<s-vxwork-m68k.ads \
470 g-socthi.ads
<g-socthi-vxworks.ads \
471 g-socthi.adb
<g-socthi-vxworks.adb \
472 g-stsifd.adb
<g-stsifd-sockets.adb \
473 system.ads
<system-vxworks-m68k.ads
475 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb
477 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
478 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
480 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
481 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
483 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
484 LIBGNAT_TARGET_PAIRS
+= \
485 s-traces.adb
<s-traces-default.adb \
486 s-tratas.adb
<s-tratas-default.adb \
487 s-trafor.adb
<s-trafor-default.adb \
488 s-trafor.ads
<s-trafor-default.ads \
489 s-tfsetr.adb
<s-tfsetr-vxworks.adb
493 ifeq ($(strip $(filter-out e500
% powerpc
% wrs vxworks
,$(targ
))),)
494 LIBGNAT_TARGET_PAIRS
= \
495 a-intnam.ads
<a-intnam-vxworks.ads \
496 a-numaux.ads
<a-numaux-vxworks.ads \
497 s-inmaop.adb
<s-inmaop-vxworks.adb \
498 s-intman.ads
<s-intman-vxworks.ads \
499 s-intman.adb
<s-intman-vxworks.adb \
500 s-osinte.ads
<s-osinte-vxworks.ads \
501 s-osinte.adb
<s-osinte-vxworks.adb \
502 s-osprim.adb
<s-osprim-vxworks.adb \
503 s-parame.ads
<s-parame-vxworks.ads \
504 s-parame.adb
<s-parame-vxworks.adb \
505 s-stchop.ads
<s-stchop-limit.ads \
506 s-stchop.adb
<s-stchop-vxworks.adb \
507 s-taprop.adb
<s-taprop-vxworks.adb \
508 s-tasinf.ads
<s-tasinf-vxworks.ads \
509 s-taspri.ads
<s-taspri-vxworks.ads \
510 s-vxwork.ads
<s-vxwork-ppc.ads \
511 g-socthi.ads
<g-socthi-vxworks.ads \
512 g-socthi.adb
<g-socthi-vxworks.adb \
513 g-stsifd.adb
<g-stsifd-sockets.adb \
514 $(ATOMICS_TARGET_PAIRS
) \
515 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
518 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
519 indepsw.adb
<indepsw-gnu.adb
521 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
522 LIBGNAT_TARGET_PAIRS
+= \
523 s-traces.adb
<s-traces-default.adb \
524 s-trafor.adb
<s-trafor-default.adb \
525 s-trafor.ads
<s-trafor-default.ads \
526 s-tratas.adb
<s-tratas-default.adb \
527 s-tfsetr.adb
<s-tfsetr-vxworks.adb
530 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
531 LIBGNAT_TARGET_PAIRS
+= \
532 s-vxwext.ads
<s-vxwext-rtp.ads \
533 s-vxwext.adb
<s-vxwext-rtp.adb \
534 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
535 system.ads
<system-vxworks-ppc-rtp.ads
537 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
539 ifeq ($(strip $(filter-out rtp-smp
,$(THREAD_KIND
))),)
540 LIBGNAT_TARGET_PAIRS
+= \
541 s-mudido.adb
<s-mudido-affinity.adb \
542 s-vxwext.ads
<s-vxwext-rtp.ads \
543 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
544 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
545 system.ads
<system-vxworks-ppc-rtp.ads
547 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
548 EXTRA_LIBGNAT_OBJS
+=affinity.o
549 EXTRA_LIBGNAT_SRCS
+=affinity.c
551 ifeq ($(strip $(filter-out kernel-smp
,$(THREAD_KIND
))),)
552 LIBGNAT_TARGET_PAIRS
+= \
553 s-interr.adb
<s-interr-hwint.adb \
554 s-mudido.adb
<s-mudido-affinity.adb \
555 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
556 s-vxwext.ads
<s-vxwext-kernel.ads \
557 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
558 system.ads
<system-vxworks-ppc-kernel.ads
561 EXTRA_LIBGNAT_OBJS
+=affinity.o
562 EXTRA_LIBGNAT_SRCS
+=affinity.c
564 LIBGNAT_TARGET_PAIRS
+= \
565 s-interr.adb
<s-interr-hwint.adb \
566 s-tpopsp.adb
<s-tpopsp-vxworks.adb
568 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
570 LIBGNAT_TARGET_PAIRS
+= \
571 s-vxwext.ads
<s-vxwext-kernel.ads \
572 s-vxwext.adb
<s-vxwext-kernel.adb \
573 system.ads
<system-vxworks-ppc-kernel.ads
575 LIBGNAT_TARGET_PAIRS
+= \
576 system.ads
<system-vxworks-ppc.ads
579 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
580 EXTRA_LIBGNAT_OBJS
+=sigtramp-ppcvxw.o
581 EXTRA_LIBGNAT_SRCS
+=sigtramp-ppcvxw.c
585 EXTRA_GNATRTL_TASKING_OBJS
+= s-vxwork.o s-vxwext.o
587 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
588 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
592 ifeq ($(strip $(filter-out powerpc
% e500v2 wrs vxworksae
,$(targ
))),)
593 # target pairs for vthreads runtime
594 LIBGNAT_TARGET_PAIRS
= \
595 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
596 a-intnam.ads
<a-intnam-vxworks.ads \
597 a-numaux.ads
<a-numaux-vxworks.ads \
598 g-io.adb
<g-io-vxworks-ppc-cert.adb \
599 s-inmaop.adb
<s-inmaop-vxworks.adb \
600 s-interr.adb
<s-interr-hwint.adb \
601 s-intman.ads
<s-intman-vxworks.ads \
602 s-intman.adb
<s-intman-vxworks.adb \
603 s-osinte.adb
<s-osinte-vxworks.adb \
604 s-osinte.ads
<s-osinte-vxworks.ads \
605 s-osprim.adb
<s-osprim-vxworks.adb \
606 s-parame.ads
<s-parame-ae653.ads \
607 s-parame.adb
<s-parame-vxworks.adb \
608 s-taprop.adb
<s-taprop-vxworks.adb \
609 s-tasinf.ads
<s-tasinf-vxworks.ads \
610 s-taspri.ads
<s-taspri-vxworks.ads \
611 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
612 s-vxwext.adb
<s-vxwext-noints.adb \
613 s-vxwext.ads
<s-vxwext-vthreads.ads \
614 s-vxwork.ads
<s-vxwork-ppc.ads \
615 system.ads
<system-vxworks-ppc-vthread.ads \
616 $(ATOMICS_TARGET_PAIRS
) \
617 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
620 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
621 indepsw.adb
<indepsw-gnu.adb
623 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
624 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
626 EXTRA_LIBGNAT_SRCS
+=sigtramp-ppcvxw.c
627 EXTRA_LIBGNAT_OBJS
+=sigtramp-ppcvxw.o
629 # Extra pairs for the vthreads runtime
630 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
631 LIBGNAT_TARGET_PAIRS
+= \
632 s-thread.adb
<s-thread-ae653.adb \
633 $(DUMMY_SOCKETS_TARGET_PAIRS
)
635 GNATRTL_SOCKETS_OBJS
=
636 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
638 LIBGNAT_TARGET_PAIRS
+= \
639 g-socthi.ads
<g-socthi-vxworks.ads \
640 g-socthi.adb
<g-socthi-vxworks.adb \
641 g-stsifd.adb
<g-stsifd-sockets.adb
644 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
645 LIBGNAT_TARGET_PAIRS
+= \
646 s-traces.adb
<s-traces-default.adb \
647 s-trafor.adb
<s-trafor-default.adb \
648 s-trafor.ads
<s-trafor-default.ads \
649 s-tratas.adb
<s-tratas-default.adb \
650 s-tfsetr.adb
<s-tfsetr-vxworks.adb
655 ifeq ($(strip $(filter-out e500
% powerpc
% wrs vxworksmils
,$(targ
))),)
656 # target pairs for vthreads runtime
657 LIBGNAT_TARGET_PAIRS
= \
658 a-elchha.adb
<a-elchha-vx6-raven-cert.adb \
659 a-intnam.ads
<a-intnam-vxworks.ads \
660 a-numaux.ads
<a-numaux-vxworks.ads \
661 g-io.adb
<g-io-vxworks-ppc-cert.adb \
662 s-inmaop.adb
<s-inmaop-vxworks.adb \
663 s-interr.adb
<s-interr-hwint.adb \
664 s-intman.ads
<s-intman-vxworks.ads \
665 s-intman.adb
<s-intman-vxworks.adb \
666 s-osinte.adb
<s-osinte-vxworks.adb \
667 s-osinte.ads
<s-osinte-vxworks.ads \
668 s-osprim.adb
<s-osprim-vxworks.adb \
669 s-parame.ads
<s-parame-ae653.ads \
670 s-parame.adb
<s-parame-vxworks.adb \
671 s-stchop.adb
<s-stchop-vxworks.adb \
672 s-stchop.ads
<s-stchop-limit.ads \
673 s-taprop.adb
<s-taprop-vxworks.adb \
674 s-tasinf.ads
<s-tasinf-vxworks.ads \
675 s-taspri.ads
<s-taspri-vxworks.ads \
676 s-thread.adb
<s-thread-ae653.adb \
677 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
678 s-vxwork.ads
<s-vxwork-ppc.ads \
679 system.ads
<system-vxworks-ppc-mils.ads \
680 $(ATOMICS_TARGET_PAIRS
) \
681 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
682 $(DUMMY_SOCKETS_TARGET_PAIRS
)
685 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
686 indepsw.adb
<indepsw-gnu.adb
688 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-thread.o s-vxwexc.o
689 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
691 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c sigtramp-ppcvxw.c
692 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o sigtramp-ppcvxw.o
693 GNATRTL_SOCKETS_OBJS
=
695 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
696 LIBGNAT_TARGET_PAIRS
+= \
697 s-traces.adb
<s-traces-default.adb \
698 s-trafor.adb
<s-trafor-default.adb \
699 s-trafor.ads
<s-trafor-default.ads \
700 s-tratas.adb
<s-tratas-default.adb \
701 s-tfsetr.adb
<s-tfsetr-vxworks.adb
705 # vxworksae / vxworks 653 for x86 (vxsim) - ?? vxworksmils not implemented
706 ifeq ($(strip $(filter-out %86 wrs vxworksae vxworksmils
,$(targ
))),)
707 # target pairs for kernel + vthreads runtime
708 LIBGNAT_TARGET_PAIRS
= \
709 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
710 a-intnam.ads
<a-intnam-vxworks.ads \
711 a-sytaco.ads
<1asytaco.ads \
712 a-sytaco.adb
<1asytaco.adb \
713 g-io.adb
<g-io-vxworks-ppc-cert.adb \
714 s-inmaop.adb
<s-inmaop-vxworks.adb \
715 s-interr.adb
<s-interr-hwint.adb \
716 s-intman.ads
<s-intman-vxworks.ads \
717 s-intman.adb
<s-intman-vxworks.adb \
718 s-osinte.adb
<s-osinte-vxworks.adb \
719 s-osinte.ads
<s-osinte-vxworks.ads \
720 s-osprim.adb
<s-osprim-vxworks.adb \
721 s-parame.ads
<s-parame-ae653.ads \
722 s-taprop.adb
<s-taprop-vxworks.adb \
723 s-tasinf.ads
<s-tasinf-vxworks.ads \
724 s-taspri.ads
<s-taspri-vxworks.ads \
725 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
726 s-vxwext.adb
<s-vxwext-noints.adb \
727 s-vxwext.ads
<s-vxwext-vthreads.ads \
728 s-vxwork.ads
<s-vxwork-x86.ads \
729 $(ATOMICS_TARGET_PAIRS
) \
730 $(X86_TARGET_PAIRS
) \
731 system.ads
<system-vxworks-x86.ads
734 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
735 indepsw.adb
<indepsw-gnu.adb
737 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
738 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
740 # Extra pairs for the vthreads runtime
741 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
742 LIBGNAT_TARGET_PAIRS
+= \
743 s-thread.adb
<s-thread-ae653.adb \
744 $(DUMMY_SOCKETS_TARGET_PAIRS
)
746 GNATRTL_SOCKETS_OBJS
=
747 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
749 LIBGNAT_TARGET_PAIRS
+= \
750 g-socthi.ads
<g-socthi-vxworks.ads \
751 g-socthi.adb
<g-socthi-vxworks.adb \
752 g-stsifd.adb
<g-stsifd-sockets.adb
755 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
756 LIBGNAT_TARGET_PAIRS
+= \
757 s-traces.adb
<s-traces-default.adb \
758 s-trafor.adb
<s-trafor-default.adb \
759 s-trafor.ads
<s-trafor-default.ads \
760 s-tratas.adb
<s-tratas-default.adb \
761 s-tfsetr.adb
<s-tfsetr-vxworks.adb
765 ifeq ($(strip $(filter-out sparc
% wrs vx
%,$(targ
))),)
766 LIBGNAT_TARGET_PAIRS
= \
767 a-intnam.ads
<a-intnam-vxworks.ads \
768 a-numaux.ads
<a-numaux-vxworks.ads \
769 s-inmaop.adb
<s-inmaop-vxworks.adb \
770 s-interr.adb
<s-interr-hwint.adb \
771 s-intman.ads
<s-intman-vxworks.ads \
772 s-intman.adb
<s-intman-vxworks.adb \
773 s-osinte.adb
<s-osinte-vxworks.adb \
774 s-osinte.ads
<s-osinte-vxworks.ads \
775 s-osprim.adb
<s-osprim-vxworks.adb \
776 s-parame.ads
<s-parame-vxworks.ads \
777 s-parame.adb
<s-parame-vxworks.adb \
778 s-stchop.ads
<s-stchop-limit.ads \
779 s-stchop.adb
<s-stchop-vxworks.adb \
780 s-taprop.adb
<s-taprop-vxworks.adb \
781 s-tasinf.ads
<s-tasinf-vxworks.ads \
782 s-taspri.ads
<s-taspri-vxworks.ads \
783 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
784 s-vxwork.ads
<s-vxwork-sparcv9.ads \
785 g-socthi.ads
<g-socthi-vxworks.ads \
786 g-socthi.adb
<g-socthi-vxworks.adb \
787 g-stsifd.adb
<g-stsifd-sockets.adb \
788 system.ads
<system-vxworks-sparcv9.ads \
791 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
792 indepsw.adb
<indepsw-gnu.adb
794 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
795 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
797 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
798 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
801 ifeq ($(strip $(filter-out %86 wrs vxworks
,$(targ
))),)
802 LIBGNAT_TARGET_PAIRS
= \
803 a-intnam.ads
<a-intnam-vxworks.ads \
804 i-vxwork.ads
<i-vxwork-x86.ads \
805 s-osinte.adb
<s-osinte-vxworks.adb \
806 s-osinte.ads
<s-osinte-vxworks.ads \
807 s-inmaop.adb
<s-inmaop-vxworks.adb \
808 s-intman.ads
<s-intman-vxworks.ads \
809 s-intman.adb
<s-intman-vxworks.adb \
810 s-osprim.adb
<s-osprim-vxworks.adb \
811 s-parame.ads
<s-parame-vxworks.ads \
812 s-parame.adb
<s-parame-vxworks.adb \
813 s-stchop.ads
<s-stchop-limit.ads \
814 s-stchop.adb
<s-stchop-vxworks.adb \
815 s-taprop.adb
<s-taprop-vxworks.adb \
816 s-tasinf.ads
<s-tasinf-vxworks.ads \
817 s-taspri.ads
<s-taspri-vxworks.ads \
818 s-vxwork.ads
<s-vxwork-x86.ads \
819 g-socthi.ads
<g-socthi-vxworks.ads \
820 g-socthi.adb
<g-socthi-vxworks.adb \
821 g-stsifd.adb
<g-stsifd-sockets.adb \
822 $(ATOMICS_TARGET_PAIRS
) \
826 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
827 indepsw.adb
<indepsw-gnu.adb
829 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
830 LIBGNAT_TARGET_PAIRS
+= \
831 s-traces.adb
<s-traces-default.adb \
832 s-trafor.adb
<s-trafor-default.adb \
833 s-trafor.ads
<s-trafor-default.ads \
834 s-tratas.adb
<s-tratas-default.adb \
835 s-tfsetr.adb
<s-tfsetr-vxworks.adb
838 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
839 LIBGNAT_TARGET_PAIRS
+= \
840 s-vxwext.ads
<s-vxwext-rtp.ads \
841 s-vxwext.adb
<s-vxwext-rtp.adb \
842 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
843 system.ads
<system-vxworks-x86-rtp.ads
845 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
847 ifeq ($(strip $(filter-out rtp-smp
, $(THREAD_KIND
))),)
848 LIBGNAT_TARGET_PAIRS
+= \
849 s-mudido.adb
<s-mudido-affinity.adb \
850 s-vxwext.ads
<s-vxwext-rtp.ads \
851 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
852 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
853 system.ads
<system-vxworks-x86-rtp.ads
855 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
856 EXTRA_LIBGNAT_OBJS
+=affinity.o
857 EXTRA_LIBGNAT_SRCS
+=affinity.c
859 ifeq ($(strip $(filter-out kernel-smp
, $(THREAD_KIND
))),)
860 LIBGNAT_TARGET_PAIRS
+= \
861 s-interr.adb
<s-interr-hwint.adb \
862 s-mudido.adb
<s-mudido-affinity.adb \
863 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
864 s-vxwext.ads
<s-vxwext-kernel.ads \
865 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
866 system.ads
<system-vxworks-x86-kernel.ads
867 EXTRA_LIBGNAT_OBJS
+=affinity.o
868 EXTRA_LIBGNAT_SRCS
+=affinity.c
870 LIBGNAT_TARGET_PAIRS
+= \
871 s-interr.adb
<s-interr-hwint.adb \
872 s-tpopsp.adb
<s-tpopsp-vxworks.adb
874 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
875 LIBGNAT_TARGET_PAIRS
+= \
876 s-vxwext.ads
<s-vxwext-kernel.ads \
877 s-vxwext.adb
<s-vxwext-kernel.adb \
878 system.ads
<system-vxworks-x86-kernel.ads
880 LIBGNAT_TARGET_PAIRS
+= \
881 system.ads
<system-vxworks-x86.ads
885 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
888 EXTRA_GNATRTL_TASKING_OBJS
+= s-vxwork.o s-vxwext.o
890 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
891 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
894 ifeq ($(strip $(filter-out arm
% coff wrs vx
%,$(targ
))),)
895 LIBGNAT_TARGET_PAIRS
= \
896 a-intnam.ads
<a-intnam-vxworks.ads \
897 a-numaux.ads
<a-numaux-vxworks.ads \
898 s-inmaop.adb
<s-inmaop-vxworks.adb \
899 s-interr.adb
<s-interr-hwint.adb \
900 s-intman.ads
<s-intman-vxworks.ads \
901 s-intman.adb
<s-intman-vxworks.adb \
902 s-osinte.adb
<s-osinte-vxworks.adb \
903 s-osinte.ads
<s-osinte-vxworks.ads \
904 s-osprim.adb
<s-osprim-vxworks.adb \
905 s-parame.ads
<s-parame-vxworks.ads \
906 s-parame.adb
<s-parame-vxworks.adb \
907 s-stchop.ads
<s-stchop-limit.ads \
908 s-stchop.adb
<s-stchop-vxworks.adb \
909 s-taprop.adb
<s-taprop-vxworks.adb \
910 s-tasinf.ads
<s-tasinf-vxworks.ads \
911 s-taspri.ads
<s-taspri-vxworks.ads \
912 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
913 s-vxwork.ads
<s-vxwork-arm.ads \
914 g-socthi.ads
<g-socthi-vxworks.ads \
915 g-socthi.adb
<g-socthi-vxworks.adb \
916 g-stsifd.adb
<g-stsifd-sockets.adb \
917 system.ads
<system-vxworks-arm.ads
920 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
921 indepsw.adb
<indepsw-gnu.adb
923 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
924 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
926 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
927 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
930 ifeq ($(strip $(filter-out mips
% wrs vx
%,$(targ
))),)
931 LIBGNAT_TARGET_PAIRS
= \
932 a-intnam.ads
<a-intnam-vxworks.ads \
933 a-numaux.ads
<a-numaux-vxworks.ads \
934 s-inmaop.adb
<s-inmaop-vxworks.adb \
935 s-interr.adb
<s-interr-hwint.adb \
936 s-intman.ads
<s-intman-vxworks.ads \
937 s-intman.adb
<s-intman-vxworks.adb \
938 s-osinte.adb
<s-osinte-vxworks.adb \
939 s-osinte.ads
<s-osinte-vxworks.ads \
940 s-osprim.adb
<s-osprim-vxworks.adb \
941 s-parame.ads
<s-parame-vxworks.ads \
942 s-parame.adb
<s-parame-vxworks.adb \
943 s-stchop.ads
<s-stchop-limit.ads \
944 s-stchop.adb
<s-stchop-vxworks.adb \
945 s-taprop.adb
<s-taprop-vxworks.adb \
946 s-tasinf.ads
<s-tasinf-vxworks.ads \
947 s-taspri.ads
<s-taspri-vxworks.ads \
948 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
949 s-vxwork.ads
<s-vxwork-mips.ads \
950 g-socthi.ads
<g-socthi-vxworks.ads \
951 g-socthi.adb
<g-socthi-vxworks.adb \
952 g-stsifd.adb
<g-stsifd-sockets.adb \
953 system.ads
<system-vxworks-mips.ads
956 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
957 indepsw.adb
<indepsw-gnu.adb
959 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
960 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
962 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
963 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
966 ifeq ($(strip $(filter-out sparc
% sun solaris
%,$(targ
))),)
967 LIBGNAT_TARGET_PAIRS_COMMON
= \
968 a-intnam.ads
<a-intnam-solaris.ads \
969 s-inmaop.adb
<s-inmaop-posix.adb \
970 s-intman.adb
<s-intman-solaris.adb \
971 s-mudido.adb
<s-mudido-affinity.adb \
972 s-osinte.adb
<s-osinte-solaris.adb \
973 s-osinte.ads
<s-osinte-solaris.ads \
974 s-osprim.adb
<s-osprim-solaris.adb \
975 s-taprop.adb
<s-taprop-solaris.adb \
976 s-tasinf.adb
<s-tasinf-solaris.adb \
977 s-tasinf.ads
<s-tasinf-solaris.ads \
978 s-taspri.ads
<s-taspri-solaris.ads \
979 s-tpopsp.adb
<s-tpopsp-solaris.adb \
980 g-soliop.ads
<g-soliop-solaris.ads
982 LIBGNAT_TARGET_PAIRS_32
= \
983 system.ads
<system-solaris-sparc.ads
985 LIBGNAT_TARGET_PAIRS_64
= \
986 system.ads
<system-solaris-sparcv9.ads \
987 $(ATOMICS_TARGET_PAIRS
) \
988 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
990 ifeq ($(strip $(filter-out sparc sun solaris
%,$(targ
))),)
991 ifeq ($(strip $(MULTISUBDIR
)),/sparcv9
)
992 LIBGNAT_TARGET_PAIRS
= \
993 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
995 LIBGNAT_TARGET_PAIRS
= \
996 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
999 ifeq ($(strip $(MULTISUBDIR
)),/sparcv8plus
)
1000 LIBGNAT_TARGET_PAIRS
= \
1001 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1003 LIBGNAT_TARGET_PAIRS
= \
1004 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1008 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
1011 THREADSLIB
= -lposix4
-lthread
1012 MISCLIB
= -lposix4
-lnsl
-lsocket
1014 GNATLIB_SHARED
= gnatlib-shared-dual
1016 LIBRARY_VERSION
:= $(LIB_VERSION
)
1018 ifeq ($(strip $(filter-out pthread PTHREAD
,$(THREAD_KIND
))),)
1019 LIBGNAT_TARGET_PAIRS
= \
1020 a-intnam.ads
<a-intnam-solaris.ads \
1021 s-inmaop.adb
<s-inmaop-posix.adb \
1022 s-intman.adb
<s-intman-posix.adb \
1023 s-osinte.adb
<s-osinte-posix.adb \
1024 s-osinte.ads
<s-osinte-solaris-posix.ads \
1025 s-osprim.adb
<s-osprim-solaris.adb \
1026 s-taprop.adb
<s-taprop-posix.adb \
1027 s-taspri.ads
<s-taspri-posix.ads \
1028 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1029 g-soliop.ads
<g-soliop-solaris.ads \
1030 system.ads
<system-solaris-sparc.ads
1032 THREADSLIB
= -lposix4
-lpthread
1035 ifeq ($(strip $(filter-out m64
,$(THREAD_KIND
))),)
1036 LIBGNAT_TARGET_PAIRS
= $(LIBGNAT_TARGET_PAIRS_64
)
1040 ifeq ($(strip $(filter-out %86 %x86_64 solaris2
%,$(arch
) $(osys
))),)
1041 LIBGNAT_TARGET_PAIRS_COMMON
= \
1042 a-intnam.ads
<a-intnam-solaris.ads \
1043 s-inmaop.adb
<s-inmaop-posix.adb \
1044 s-intman.adb
<s-intman-solaris.adb \
1045 s-mudido.adb
<s-mudido-affinity.adb \
1046 s-osinte.adb
<s-osinte-solaris.adb \
1047 s-osinte.ads
<s-osinte-solaris.ads \
1048 s-osprim.adb
<s-osprim-solaris.adb \
1049 s-taprop.adb
<s-taprop-solaris.adb \
1050 s-tasinf.adb
<s-tasinf-solaris.adb \
1051 s-tasinf.ads
<s-tasinf-solaris.ads \
1052 s-taspri.ads
<s-taspri-solaris.ads \
1053 s-tpopsp.adb
<s-tpopsp-solaris.adb \
1054 g-soliop.ads
<g-soliop-solaris.ads \
1055 $(ATOMICS_TARGET_PAIRS
)
1057 LIBGNAT_TARGET_PAIRS_32
= \
1058 $(X86_TARGET_PAIRS
) \
1059 system.ads
<system-solaris-x86.ads
1061 LIBGNAT_TARGET_PAIRS_64
= \
1062 $(X86_64_TARGET_PAIRS
) \
1063 system.ads
<system-solaris-x86_64.ads
1065 ifeq ($(strip $(filter-out %86 solaris2
%,$(arch
) $(osys
))),)
1066 ifeq ($(strip $(MULTISUBDIR
)),/amd64
)
1067 LIBGNAT_TARGET_PAIRS
= \
1068 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1070 LIBGNAT_TARGET_PAIRS
= \
1071 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1074 ifeq ($(strip $(MULTISUBDIR
)),/32)
1075 LIBGNAT_TARGET_PAIRS
= \
1076 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1078 LIBGNAT_TARGET_PAIRS
= \
1079 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1083 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
1086 THREADSLIB
= -lposix4
-lthread
1087 MISCLIB
= -lposix4
-lnsl
-lsocket
1089 GNATLIB_SHARED
= gnatlib-shared-dual
1091 LIBRARY_VERSION
:= $(LIB_VERSION
)
1094 ifeq ($(strip $(filter-out %86 linux
%,$(arch
) $(osys
))),)
1095 LIBGNAT_TARGET_PAIRS
= \
1096 a-intnam.ads
<a-intnam-linux.ads \
1097 a-synbar.adb
<a-synbar-posix.adb \
1098 a-synbar.ads
<a-synbar-posix.ads \
1099 s-inmaop.adb
<s-inmaop-posix.adb \
1100 s-intman.adb
<s-intman-posix.adb \
1101 s-tpopsp.adb
<s-tpopsp-tls.adb \
1102 g-sercom.adb
<g-sercom-linux.adb \
1103 a-exetim.adb
<a-exetim-posix.adb \
1104 a-exetim.ads
<a-exetim-default.ads \
1105 s-linux.ads
<s-linux.ads \
1106 s-osinte.adb
<s-osinte-posix.adb \
1107 $(ATOMICS_TARGET_PAIRS
)
1109 LIBGNAT_TARGET_PAIRS_32
= \
1110 $(X86_TARGET_PAIRS
) \
1111 system.ads
<system-linux-x86.ads
1113 LIBGNAT_TARGET_PAIRS_64
= \
1114 $(X86_64_TARGET_PAIRS
) \
1115 system.ads
<system-linux-x86_64.ads
1117 ifeq ($(strip $(MULTISUBDIR
)),/64)
1118 LIBGNAT_TARGET_PAIRS
+= $(LIBGNAT_TARGET_PAIRS_64
)
1120 LIBGNAT_TARGET_PAIRS
+= $(LIBGNAT_TARGET_PAIRS_32
)
1123 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1124 LIBGNAT_TARGET_PAIRS
+= \
1125 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1126 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1127 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1128 s-taspri.ads
<s-taspri-linux-xenomai.ads
1130 LIBGNAT_TARGET_PAIRS
+= \
1131 s-mudido.adb
<s-mudido-affinity.adb \
1132 s-osinte.ads
<s-osinte-linux.ads \
1133 s-osprim.adb
<s-osprim-posix.adb \
1134 s-taprop.adb
<s-taprop-linux.adb \
1135 s-tasinf.ads
<s-tasinf-linux.ads \
1136 s-tasinf.adb
<s-tasinf-linux.adb \
1137 s-taspri.ads
<s-taspri-posix.ads
1141 THREADSLIB
= -lpthread
-lrt
1142 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1143 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1145 TOOLS_TARGET_PAIRS
= \
1146 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1147 indepsw.adb
<indepsw-gnu.adb
1149 GNATLIB_SHARED
= gnatlib-shared-dual
1151 LIBRARY_VERSION
:= $(LIB_VERSION
)
1154 ifeq ($(strip $(filter-out %86 kfreebsd
%,$(arch
) $(osys
))),)
1155 LIBGNAT_TARGET_PAIRS
= \
1156 a-intnam.ads
<a-intnam-freebsd.ads \
1157 s-inmaop.adb
<s-inmaop-posix.adb \
1158 s-intman.adb
<s-intman-posix.adb \
1159 s-osinte.adb
<s-osinte-posix.adb \
1160 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1161 s-osprim.adb
<s-osprim-posix.adb \
1162 s-taprop.adb
<s-taprop-linux.adb \
1163 s-tasinf.ads
<s-tasinf-linux.ads \
1164 s-tasinf.adb
<s-tasinf-linux.adb \
1165 s-taspri.ads
<s-taspri-posix.ads \
1166 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1167 $(ATOMICS_TARGET_PAIRS
) \
1168 $(X86_TARGET_PAIRS
) \
1169 system.ads
<system-freebsd-x86.ads
1171 TOOLS_TARGET_PAIRS
= \
1172 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1173 indepsw.adb
<indepsw-gnu.adb
1176 THREADSLIB
= -lpthread
1177 GNATLIB_SHARED
= gnatlib-shared-dual
1179 LIBRARY_VERSION
:= $(LIB_VERSION
)
1183 ifeq ($(strip $(filter-out x86_64 kfreebsd
%,$(arch
) $(osys
))),)
1184 LIBGNAT_TARGET_PAIRS
= \
1185 a-intnam.ads
<a-intnam-freebsd.ads \
1186 a-numaux.adb
<a-numaux-x86.adb \
1187 a-numaux.ads
<a-numaux-x86.ads \
1188 s-inmaop.adb
<s-inmaop-posix.adb \
1189 s-intman.adb
<s-intman-posix.adb \
1190 s-osinte.adb
<s-osinte-posix.adb \
1191 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1192 s-osprim.adb
<s-osprim-posix.adb \
1193 s-taprop.adb
<s-taprop-linux.adb \
1194 s-tasinf.ads
<s-tasinf-linux.ads \
1195 s-tasinf.adb
<s-tasinf-linux.adb \
1196 s-taspri.ads
<s-taspri-posix.ads \
1197 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1198 system.ads
<system-freebsd-x86_64.ads
1200 TOOLS_TARGET_PAIRS
= \
1201 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1202 indepsw.adb
<indepsw-gnu.adb
1205 THREADSLIB
= -lpthread
1206 GNATLIB_SHARED
= gnatlib-shared-dual
1208 LIBRARY_VERSION
:= $(LIB_VERSION
)
1211 ifeq ($(strip $(filter-out %86 freebsd
%,$(arch
) $(osys
))),)
1212 LIBGNAT_TARGET_PAIRS
= \
1213 a-intnam.ads
<a-intnam-freebsd.ads \
1214 s-inmaop.adb
<s-inmaop-posix.adb \
1215 s-intman.adb
<s-intman-posix.adb \
1216 s-osinte.adb
<s-osinte-freebsd.adb \
1217 s-osinte.ads
<s-osinte-freebsd.ads \
1218 s-osprim.adb
<s-osprim-posix.adb \
1219 s-taprop.adb
<s-taprop-posix.adb \
1220 s-taspri.ads
<s-taspri-posix.ads \
1221 s-tpopsp.adb
<s-tpopsp-posix.adb \
1222 $(ATOMICS_TARGET_PAIRS
) \
1223 $(X86_TARGET_PAIRS
) \
1224 system.ads
<system-freebsd-x86.ads
1226 TOOLS_TARGET_PAIRS
= \
1227 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
1228 GNATLIB_SHARED
= gnatlib-shared-dual
1231 THREADSLIB
= -lpthread
1233 LIBRARY_VERSION
:= $(LIB_VERSION
)
1237 ifeq ($(strip $(filter-out %86_64 freebsd
%,$(arch
) $(osys
))),)
1238 LIBGNAT_TARGET_PAIRS
= \
1239 a-intnam.ads
<a-intnam-freebsd.ads \
1240 s-inmaop.adb
<s-inmaop-posix.adb \
1241 s-intman.adb
<s-intman-posix.adb \
1242 s-osinte.adb
<s-osinte-freebsd.adb \
1243 s-osinte.ads
<s-osinte-freebsd.ads \
1244 s-osprim.adb
<s-osprim-posix.adb \
1245 s-taprop.adb
<s-taprop-posix.adb \
1246 s-taspri.ads
<s-taspri-posix.ads \
1247 s-tpopsp.adb
<s-tpopsp-posix.adb \
1248 g-trasym.adb
<g-trasym-dwarf.adb \
1249 $(ATOMICS_TARGET_PAIRS
) \
1250 $(X86_64_TARGET_PAIRS
) \
1251 system.ads
<system-freebsd-x86_64.ads
1253 TOOLS_TARGET_PAIRS
= \
1254 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
1255 GNATLIB_SHARED
= gnatlib-shared-dual
1258 THREADSLIB
= -lpthread
1260 LIBRARY_VERSION
:= $(LIB_VERSION
)
1264 ifeq ($(strip $(filter-out s390
% linux
%,$(arch
) $(osys
))),)
1265 LIBGNAT_TARGET_PAIRS_COMMON
= \
1266 a-intnam.ads
<a-intnam-linux.ads \
1267 s-inmaop.adb
<s-inmaop-posix.adb \
1268 s-intman.adb
<s-intman-posix.adb \
1269 s-linux.ads
<s-linux.ads \
1270 s-osinte.adb
<s-osinte-posix.adb \
1271 s-osinte.ads
<s-osinte-linux.ads \
1272 s-osprim.adb
<s-osprim-posix.adb \
1273 s-taprop.adb
<s-taprop-linux.adb \
1274 s-tasinf.ads
<s-tasinf-linux.ads \
1275 s-tasinf.adb
<s-tasinf-linux.adb \
1276 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1277 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
1279 LIBGNAT_TARGET_PAIRS_32
= \
1280 system.ads
<system-linux-s390.ads
1282 LIBGNAT_TARGET_PAIRS_64
= \
1283 system.ads
<system-linux-s390x.ads
1285 ifeq ($(strip $(filter-out s390x
,$(arch
))),)
1286 ifeq ($(strip $(MULTISUBDIR
)),/32)
1287 LIBGNAT_TARGET_PAIRS
= \
1288 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1290 LIBGNAT_TARGET_PAIRS
= \
1291 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1294 LIBGNAT_TARGET_PAIRS
= \
1295 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1298 TOOLS_TARGET_PAIRS
= \
1299 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1300 indepsw.adb
<indepsw-gnu.adb
1302 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1304 THREADSLIB
= -lpthread
1305 GNATLIB_SHARED
= gnatlib-shared-dual
1306 LIBRARY_VERSION
:= $(LIB_VERSION
)
1309 ifeq ($(strip $(filter-out mips sgi irix6
%,$(targ
))),)
1310 LIBGNAT_TARGET_PAIRS
= \
1311 a-intnam.ads
<a-intnam-irix.ads \
1312 a-synbar.adb
<a-synbar-posix.adb \
1313 a-synbar.ads
<a-synbar-posix.ads \
1314 s-inmaop.adb
<s-inmaop-posix.adb \
1315 s-intman.adb
<s-intman-irix.adb \
1316 s-mastop.adb
<s-mastop-irix.adb \
1317 s-osinte.adb
<s-osinte-irix.adb \
1318 s-osinte.ads
<s-osinte-irix.ads \
1319 s-osprim.adb
<s-osprim-posix.adb \
1320 s-proinf.adb
<s-proinf-irix-athread.adb \
1321 s-proinf.ads
<s-proinf-irix-athread.ads \
1322 s-taprop.adb
<s-taprop-irix.adb \
1323 s-tasinf.ads
<s-tasinf-irix.ads \
1324 s-taspri.ads
<s-taspri-posix.ads \
1325 s-tpopsp.adb
<s-tpopsp-posix.adb \
1326 s-traceb.adb
<s-traceb-mastop.adb
1328 ifeq ($(strip $(MULTISUBDIR
)),/64)
1329 LIBGNAT_TARGET_PAIRS
+= \
1330 system.ads
<system-irix-n64.ads
1332 ifeq ($(strip $(MULTISUBDIR
)),/32)
1333 LIBGNAT_TARGET_PAIRS
+= \
1334 system.ads
<system-irix-o32.ads
1336 LIBGNAT_TARGET_PAIRS
+= \
1337 system.ads
<system-irix-n32.ads
1341 THREADSLIB
= -lpthread
1342 GNATLIB_SHARED
= gnatlib-shared-default
1345 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-irix.adb
1348 LIBRARY_VERSION
:= $(LIB_VERSION
)
1352 ifeq ($(strip $(filter-out hppa
% hp hpux10
%,$(targ
))),)
1353 LIBGNAT_TARGET_PAIRS
= \
1354 a-excpol.adb
<a-excpol-abort.adb \
1355 a-intnam.ads
<a-intnam-hpux.ads \
1356 s-inmaop.adb
<s-inmaop-posix.adb \
1357 s-interr.adb
<s-interr-sigaction.adb \
1358 s-intman.adb
<s-intman-posix.adb \
1359 s-osinte.adb
<s-osinte-hpux-dce.adb \
1360 s-osinte.ads
<s-osinte-hpux-dce.ads \
1361 s-parame.ads
<s-parame-hpux.ads \
1362 s-osprim.adb
<s-osprim-posix.adb \
1363 s-taprop.adb
<s-taprop-hpux-dce.adb \
1364 s-taspri.ads
<s-taspri-hpux-dce.ads \
1365 s-tpopsp.adb
<s-tpopsp-posix.adb \
1366 system.ads
<system-hpux.ads
1371 ifeq ($(strip $(filter-out hppa
% hp hpux11
%,$(targ
))),)
1372 LIBGNAT_TARGET_PAIRS
= \
1373 a-intnam.ads
<a-intnam-hpux.ads \
1374 s-inmaop.adb
<s-inmaop-posix.adb \
1375 s-intman.adb
<s-intman-posix.adb \
1376 s-osinte.adb
<s-osinte-posix.adb \
1377 s-osinte.ads
<s-osinte-hpux.ads \
1378 s-parame.ads
<s-parame-hpux.ads \
1379 s-osprim.adb
<s-osprim-posix.adb \
1380 s-traceb.adb
<s-traceb-hpux.adb \
1381 s-taprop.adb
<s-taprop-posix.adb \
1382 s-taspri.ads
<s-taspri-posix.ads \
1383 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1384 system.ads
<system-hpux.ads
1386 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-hpux.adb
1388 TGT_LIB
= /usr
/lib
/libcl.a
1389 THREADSLIB
= -lpthread
1393 GNATLIB_SHARED
= gnatlib-shared-dual
1394 LIBRARY_VERSION
:= $(LIB_VERSION
)
1397 ifeq ($(strip $(filter-out ibm aix
%,$(manu
) $(osys
))),)
1398 LIBGNAT_TARGET_PAIRS_COMMON
= \
1399 a-intnam.ads
<a-intnam-aix.ads \
1400 s-inmaop.adb
<s-inmaop-posix.adb \
1401 s-intman.adb
<s-intman-posix.adb \
1402 s-osinte.adb
<s-osinte-aix.adb \
1403 s-osinte.ads
<s-osinte-aix.ads \
1404 s-osprim.adb
<s-osprim-posix.adb \
1405 s-taprop.adb
<s-taprop-posix.adb \
1406 s-taspri.ads
<s-taspri-posix.ads \
1407 s-tpopsp.adb
<s-tpopsp-posix.adb \
1408 $(ATOMICS_TARGET_PAIRS
) \
1409 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
1411 LIBGNAT_TARGET_PAIRS_32
= \
1412 system.ads
<system-aix.ads
1414 LIBGNAT_TARGET_PAIRS_64
= \
1415 system.ads
<system-aix64.ads
1417 ifeq ($(findstring ppc64
, \
1418 $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) \
1419 -print-multi-os-directory
)), \
1421 LIBGNAT_TARGET_PAIRS
= \
1422 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1423 TOOLS_TARGET_PAIRS
= \
1424 indepsw.adb
<indepsw-aix.adb
1426 LIBGNAT_TARGET_PAIRS
= \
1427 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1428 TOOLS_TARGET_PAIRS
= \
1429 indepsw.adb
<indepsw-gnu.adb
1432 THREADSLIB
= -lpthreads
1434 TOOLS_TARGET_PAIRS
+= \
1435 mlib-tgt-specific.adb
<mlib-tgt-specific-aix.adb
1440 ifeq ($(strip $(filter-out rtems
%,$(osys
))),)
1441 LIBGNAT_TARGET_PAIRS
= \
1442 system.ads
<system-rtems.ads \
1443 a-intnam.ads
<a-intnam-rtems.ads \
1444 s-inmaop.adb
<s-inmaop-posix.adb \
1445 s-intman.adb
<s-intman-posix.adb \
1446 s-osinte.adb
<s-osinte-rtems.adb \
1447 s-osinte.ads
<s-osinte-rtems.ads \
1448 s-osprim.adb
<s-osprim-posix.adb \
1449 s-parame.adb
<s-parame-rtems.adb \
1450 s-taprop.adb
<s-taprop-posix.adb \
1451 s-taspri.ads
<s-taspri-posix.ads \
1452 s-tpopsp.adb
<s-tpopsp-rtems.adb \
1453 s-stchop.adb
<s-stchop-rtems.adb \
1454 s-interr.adb
<s-interr-hwint.adb
1457 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(host
))),)
1466 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(targ
))),)
1467 LIBGNAT_TARGET_PAIRS
= \
1468 a-caldel.adb
<a-caldel-vms.adb \
1469 a-calend.adb
<a-calend-vms.adb \
1470 a-calend.ads
<a-calend-vms.ads \
1471 a-dirval.adb
<a-dirval-vms.adb \
1472 a-excpol.adb
<a-excpol-abort.adb \
1473 a-intnam.ads
<a-intnam-vms.ads \
1474 a-numaux.ads
<a-numaux-vms.ads \
1475 g-expect.adb
<g-expect-vms.adb \
1476 g-socthi.ads
<g-socthi-vms.ads \
1477 g-socthi.adb
<g-socthi-vms.adb \
1478 g-stsifd.adb
<g-stsifd-sockets.adb \
1479 i-cstrea.adb
<i-cstrea-vms.adb \
1480 memtrack.adb
<memtrack-vms_64.adb \
1481 s-auxdec.ads
<s-auxdec-vms_64.ads \
1482 s-inmaop.adb
<s-inmaop-vms.adb \
1483 s-interr.adb
<s-interr-vms.adb \
1484 s-intman.adb
<s-intman-vms.adb \
1485 s-intman.ads
<s-intman-vms.ads \
1486 s-memory.adb
<s-memory-vms_64.adb \
1487 s-memory.ads
<s-memory-vms_64.ads \
1488 s-ransee.adb
<s-ransee-vms.adb \
1489 s-osprim.adb
<s-osprim-vms.adb \
1490 s-osprim.ads
<s-osprim-vms.ads \
1491 s-osinte.adb
<s-osinte-vms.adb \
1492 s-osinte.ads
<s-osinte-vms.ads \
1493 s-taprop.adb
<s-taprop-vms.adb \
1494 s-tasdeb.adb
<s-tasdeb-vms.adb \
1495 s-taspri.ads
<s-taspri-vms.ads \
1496 s-tpopsp.adb
<s-tpopsp-vms.adb \
1497 s-tpopde.adb
<s-tpopde-vms.adb \
1498 s-tpopde.ads
<s-tpopde-vms.ads
1500 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1501 LIBGNAT_TARGET_PAIRS
+= \
1502 g-enblsp.adb
<g-enblsp-vms-ia64.adb \
1503 g-trasym.adb
<g-trasym-vms-ia64.adb \
1504 s-asthan.adb
<s-asthan-vms-ia64.adb \
1505 s-auxdec.adb
<s-auxdec-vms-ia64.adb \
1506 s-vaflop.adb
<s-vaflop-vms-ia64.adb \
1507 system.ads
<system-vms-ia64.ads \
1508 s-parame.ads
<s-parame-vms-ia64.ads \
1509 $(ATOMICS_TARGET_PAIRS
) \
1510 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
1512 TOOLS_TARGET_PAIRS
= \
1513 mlib-tgt-specific.adb
<mlib-tgt-specific-vms-ia64.adb \
1514 symbols.adb
<symbols-vms.adb \
1515 symbols-processing.adb
<symbols-processing-vms-ia64.adb
1517 ifeq ($(strip $(filter-out alpha64 dec vms
% openvms
% alphavms
%,$(targ
))),)
1518 LIBGNAT_TARGET_PAIRS
+= \
1519 g-enblsp.adb
<g-enblsp-vms-alpha.adb \
1520 g-trasym.adb
<g-trasym-vms-alpha.adb \
1521 s-asthan.adb
<s-asthan-vms-alpha.adb \
1522 s-auxdec.adb
<s-auxdec-vms-alpha.adb \
1523 s-traent.adb
<s-traent-vms.adb \
1524 s-traent.ads
<s-traent-vms.ads \
1525 s-vaflop.adb
<s-vaflop-vms-alpha.adb \
1526 system.ads
<system-vms_64.ads \
1527 s-parame.ads
<s-parame-vms-alpha.ads \
1528 $(ATOMICS_TARGET_PAIRS
) \
1529 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
1531 TOOLS_TARGET_PAIRS
= \
1532 mlib-tgt-specific.adb
<mlib-tgt-specific-vms-alpha.adb \
1533 symbols.adb
<symbols-vms.adb \
1534 symbols-processing.adb
<symbols-processing-vms-alpha.adb
1538 EXTRA_GNATMAKE_OBJS
= mlib-tgt-vms_common.o
1542 GNATLIB_SHARED
=gnatlib-shared-vms
1543 EXTRA_GNATRTL_NONTASKING_OBJS
+=s-po32gl.o
1544 EXTRA_GNATRTL_TASKING_OBJS
=s-tpopde.o
1546 ..
/..
/gnatsym
$(exeext
)
1547 # This command transforms (YYYYMMDD) into YY,MMDD
1548 GSMATCH_VERSION
:= $(shell grep
"^ *Gnat_Static_Version_String" $(fsrcpfx
)ada
/gnatvsn.ads | sed
-e
's/.*(\(.*\)).*/\1/' -e
's/\(..\)\(..\)\(....\).*/\2,\3/')
1549 TOOLS_LIBS_LO
:= --for-linker
=sys
\\$$\
$$library:trace.exe
1550 LIBRARY_VERSION
:= $(subst .
,_
,$(LIB_VERSION
))
1553 ifeq ($(strip $(filter-out avr none powerpc
% eabispe leon
% erc32
% unknown elf
,$(targ
))),)
1554 TOOLS_TARGET_PAIRS
=\
1555 mlib-tgt-specific.adb
<mlib-tgt-specific-xi.adb \
1556 indepsw.adb
<indepsw-gnu.adb
1559 ifeq ($(strip $(filter-out cygwin
% mingw32
% pe
,$(osys
))),)
1560 # Cygwin provides a full Posix environment, and so we use the default
1561 # versions of s-memory and g-socthi rather than the Windows-specific
1562 # MinGW versions. Ideally we would use all the default versions for
1563 # Cygwin and none of the MinGW versions, but for historical reasons
1564 # the Cygwin port has always been a CygMing frankenhybrid and it is
1565 # a long-term project to disentangle them.
1566 ifeq ($(strip $(filter-out cygwin
%,$(osys
))),)
1568 LIBGNAT_TARGET_PAIRS
= \
1569 s-memory.adb
<s-memory.adb \
1570 g-socthi.ads
<g-socthi.ads \
1571 g-socthi.adb
<g-socthi.adb
1574 LIBGNAT_TARGET_PAIRS
= \
1575 s-memory.adb
<s-memory-mingw.adb \
1576 g-socthi.ads
<g-socthi-mingw.ads \
1577 g-socthi.adb
<g-socthi-mingw.adb
1579 WIN_SO_INSTALL_DIR
= $(bindir)
1580 LIBGNAT_TARGET_PAIRS
+= \
1581 a-dirval.adb
<a-dirval-mingw.adb \
1582 a-excpol.adb
<a-excpol-abort.adb \
1583 s-gloloc.adb
<s-gloloc-mingw.adb \
1584 s-inmaop.adb
<s-inmaop-dummy.adb \
1585 s-taspri.ads
<s-taspri-mingw.ads \
1586 s-tasinf.adb
<s-tasinf-mingw.adb \
1587 s-tasinf.ads
<s-tasinf-mingw.ads \
1588 g-stsifd.adb
<g-stsifd-sockets.adb \
1589 g-soliop.ads
<g-soliop-mingw.ads \
1590 $(ATOMICS_TARGET_PAIRS
)
1592 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss
,$(THREAD_KIND
))),)
1593 LIBGNAT_TARGET_PAIRS
+= \
1594 s-intman.adb
<s-intman-dummy.adb \
1595 s-osinte.ads
<s-osinte-rtx.ads \
1596 s-osprim.adb
<s-osprim-rtx.adb \
1597 s-taprop.adb
<s-taprop-rtx.adb \
1600 EXTRA_GNATRTL_NONTASKING_OBJS
= s-win32.o
1602 ifeq ($(strip $(filter-out rtx_w32
,$(THREAD_KIND
))),)
1603 LIBGNAT_TARGET_PAIRS
+= system.ads
<system-rtx.ads
1607 LIBGNAT_TARGET_PAIRS
+= \
1608 system.ads
<system-rtx-rtss.ads \
1609 s-parame.adb
<s-parame-vxworks.adb
1615 LIBGNAT_TARGET_PAIRS
+= \
1616 a-exetim.adb
<a-exetim-mingw.adb \
1617 a-exetim.ads
<a-exetim-mingw.ads \
1618 a-intnam.ads
<a-intnam-mingw.ads \
1619 g-sercom.adb
<g-sercom-mingw.adb \
1620 s-interr.adb
<s-interr-sigaction.adb \
1621 s-intman.adb
<s-intman-mingw.adb \
1622 s-mudido.adb
<s-mudido-affinity.adb \
1623 s-osinte.ads
<s-osinte-mingw.ads \
1624 s-osprim.adb
<s-osprim-mingw.adb \
1625 s-taprop.adb
<s-taprop-mingw.adb
1627 ifeq ($(strip $(filter-out x86_64
%,$(arch
))),)
1628 ifeq ($(strip $(MULTISUBDIR
)),/32)
1629 LIBGNAT_TARGET_PAIRS
+= \
1630 $(X86_TARGET_PAIRS
) \
1631 system.ads
<system-mingw.ads
1632 SO_OPTS
= -m32
-Wl
,-soname
,
1634 LIBGNAT_TARGET_PAIRS
+= \
1635 $(X86_64_TARGET_PAIRS
) \
1636 system.ads
<system-mingw-x86_64.ads
1637 SO_OPTS
= -m64
-Wl
,-soname
,
1640 ifeq ($(strip $(MULTISUBDIR
)),/64)
1641 LIBGNAT_TARGET_PAIRS
+= \
1642 $(X86_64_TARGET_PAIRS
) \
1643 system.ads
<system-mingw-x86_64.ads
1644 SO_OPTS
= -m64
-Wl
,-soname
,
1646 LIBGNAT_TARGET_PAIRS
+= \
1647 $(X86_TARGET_PAIRS
) \
1648 system.ads
<system-mingw.ads
1649 SO_OPTS
= -m32
-Wl
,-soname
,
1653 EXTRA_GNATRTL_NONTASKING_OBJS
= \
1654 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1655 EXTRA_GNATRTL_TASKING_OBJS
= a-exetim.o
1659 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1660 # auto-import support for array/record will be done.
1661 GNATLIB_SHARED
= gnatlib-shared-win32
1666 TOOLS_TARGET_PAIRS
= \
1667 mlib-tgt-specific.adb
<mlib-tgt-specific-mingw.adb \
1668 indepsw.adb
<indepsw-mingw.adb
1671 EXTRA_GNATTOOLS
= ..
/..
/gnatdll
$(exeext
)
1672 EXTRA_GNATMAKE_OBJS
= mdll.o mdll-utl.o mdll-fil.o
1674 LIBRARY_VERSION
:= $(LIB_VERSION
)
1677 ifeq ($(strip $(filter-out mips linux
%,$(arch
) $(osys
))),)
1678 LIBGNAT_TARGET_PAIRS
= \
1679 a-intnam.ads
<a-intnam-linux.ads \
1680 s-inmaop.adb
<s-inmaop-posix.adb \
1681 s-intman.adb
<s-intman-posix.adb \
1682 s-linux.ads
<s-linux.ads \
1683 s-osinte.adb
<s-osinte-posix.adb \
1684 s-osinte.ads
<s-osinte-linux.ads \
1685 s-osprim.adb
<s-osprim-posix.adb \
1686 s-taprop.adb
<s-taprop-linux.adb \
1687 s-tasinf.ads
<s-tasinf-linux.ads \
1688 s-tasinf.adb
<s-tasinf-linux.adb \
1689 s-taspri.ads
<s-taspri-posix.ads \
1690 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1691 system.ads
<system-linux-mips.ads
1694 THREADSLIB
= -lpthread
1695 GNATLIB_SHARED
= gnatlib-shared-dual
1697 LIBRARY_VERSION
:= $(LIB_VERSION
)
1700 ifeq ($(strip $(filter-out mipsel linux
%,$(arch
) $(osys
))),)
1701 LIBGNAT_TARGET_PAIRS_COMMON
= \
1702 a-intnam.ads
<a-intnam-linux.ads \
1703 s-inmaop.adb
<s-inmaop-posix.adb \
1704 s-intman.adb
<s-intman-posix.adb \
1705 s-linux.ads
<s-linux-mipsel.ads \
1706 s-osinte.adb
<s-osinte-posix.adb \
1707 s-osinte.ads
<s-osinte-linux.ads \
1708 s-osprim.adb
<s-osprim-posix.adb \
1709 s-taprop.adb
<s-taprop-linux.adb \
1710 s-tasinf.ads
<s-tasinf-linux.ads \
1711 s-tasinf.adb
<s-tasinf-linux.adb \
1712 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1713 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1714 g-sercom.adb
<g-sercom-linux.adb
1716 LIBGNAT_TARGET_PAIRS_32
= \
1717 system.ads
<system-linux-mipsel.ads
1719 LIBGNAT_TARGET_PAIRS_64
= \
1720 system.ads
<system-linux-mips64el.ads
1722 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1723 LIBGNAT_TARGET_PAIRS
= \
1724 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1726 LIBGNAT_TARGET_PAIRS
= \
1727 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1730 TOOLS_TARGET_PAIRS
= \
1731 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1732 indepsw.adb
<indepsw-gnu.adb
1734 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1736 THREADSLIB
= -lpthread
1737 GNATLIB_SHARED
= gnatlib-shared-dual
1739 LIBRARY_VERSION
:= $(LIB_VERSION
)
1742 ifeq ($(strip $(filter-out mips64el linux
%,$(arch
) $(osys
))),)
1743 LIBGNAT_TARGET_PAIRS_COMMON
= \
1744 a-intnam.ads
<a-intnam-linux.ads \
1745 s-inmaop.adb
<s-inmaop-posix.adb \
1746 s-intman.adb
<s-intman-posix.adb \
1747 s-linux.ads
<s-linux-mipsel.ads \
1748 s-osinte.adb
<s-osinte-posix.adb \
1749 s-osinte.ads
<s-osinte-linux.ads \
1750 s-osprim.adb
<s-osprim-posix.adb \
1751 s-taprop.adb
<s-taprop-linux.adb \
1752 s-tasinf.ads
<s-tasinf-linux.ads \
1753 s-tasinf.adb
<s-tasinf-linux.adb \
1754 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1755 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1756 g-sercom.adb
<g-sercom-linux.adb
1758 LIBGNAT_TARGET_PAIRS_32
= \
1759 system.ads
<system-linux-mipsel.ads
1761 LIBGNAT_TARGET_PAIRS_64
= \
1762 system.ads
<system-linux-mips64el.ads
1764 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1765 LIBGNAT_TARGET_PAIRS
= \
1766 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1768 LIBGNAT_TARGET_PAIRS
= \
1769 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1772 TOOLS_TARGET_PAIRS
= \
1773 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1774 indepsw.adb
<indepsw-gnu.adb
1776 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1778 THREADSLIB
= -lpthread
1779 GNATLIB_SHARED
= gnatlib-shared-dual
1781 LIBRARY_VERSION
:= $(LIB_VERSION
)
1784 ifeq ($(strip $(filter-out powerpc
% linux
%,$(arch
) $(osys
))),)
1785 LIBGNAT_TARGET_PAIRS_COMMON
= \
1786 a-exetim.adb
<a-exetim-posix.adb \
1787 a-exetim.ads
<a-exetim-default.ads \
1788 a-intnam.ads
<a-intnam-linux.ads \
1789 a-synbar.adb
<a-synbar-posix.adb \
1790 a-synbar.ads
<a-synbar-posix.ads \
1791 s-inmaop.adb
<s-inmaop-posix.adb \
1792 s-intman.adb
<s-intman-posix.adb \
1793 s-linux.ads
<s-linux.ads \
1794 s-osinte.adb
<s-osinte-posix.adb \
1795 s-tpopsp.adb
<s-tpopsp-tls.adb \
1796 g-sercom.adb
<g-sercom-linux.adb \
1797 $(ATOMICS_TARGET_PAIRS
) \
1798 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
1800 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1801 LIBGNAT_TARGET_PAIRS
= \
1802 $(LIBGNAT_TARGET_PAIRS_COMMON
)
1804 LIBGNAT_TARGET_PAIRS
+= \
1805 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1806 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1807 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1808 s-taspri.ads
<s-taspri-linux-xenomai.ads \
1809 system.ads
<system-linux-ppc.ads
1811 LIBGNAT_TARGET_PAIRS_32
= \
1812 system.ads
<system-linux-ppc.ads
1814 LIBGNAT_TARGET_PAIRS_64
= \
1815 system.ads
<system-linux-ppc64.ads
1817 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1818 LIBGNAT_TARGET_PAIRS
= \
1819 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1821 LIBGNAT_TARGET_PAIRS
= \
1822 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1825 LIBGNAT_TARGET_PAIRS
+= \
1826 s-mudido.adb
<s-mudido-affinity.adb \
1827 s-osinte.ads
<s-osinte-linux.ads \
1828 s-osprim.adb
<s-osprim-posix.adb \
1829 s-taprop.adb
<s-taprop-linux.adb \
1830 s-tasinf.ads
<s-tasinf-linux.ads \
1831 s-tasinf.adb
<s-tasinf-linux.adb \
1832 s-taspri.ads
<s-taspri-posix-noaltstack.ads
1835 TOOLS_TARGET_PAIRS
= \
1836 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1837 indepsw.adb
<indepsw-gnu.adb
1839 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1841 THREADSLIB
= -lpthread
-lrt
1842 GNATLIB_SHARED
= gnatlib-shared-dual
1844 LIBRARY_VERSION
:= $(LIB_VERSION
)
1847 ifeq ($(strip $(filter-out arm
% linux-gnueabi
,$(arch
) $(osys
)-$(word 4,$(targ
)))),)
1848 LIBGNAT_TARGET_PAIRS
= \
1849 a-intnam.ads
<a-intnam-linux.ads \
1850 s-inmaop.adb
<s-inmaop-posix.adb \
1851 s-intman.adb
<s-intman-posix.adb \
1852 s-linux.ads
<s-linux.ads \
1853 s-osinte.adb
<s-osinte-posix.adb \
1854 s-osinte.ads
<s-osinte-linux.ads \
1855 s-osprim.adb
<s-osprim-posix.adb \
1856 s-taprop.adb
<s-taprop-linux.adb \
1857 s-tasinf.ads
<s-tasinf-linux.ads \
1858 s-tasinf.adb
<s-tasinf-linux.adb \
1859 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1860 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
1862 ifeq ($(strip $(filter-out arm
%b
,$(arch
))),)
1863 LIBGNAT_TARGET_PAIRS
+= \
1864 system.ads
<system-linux-armeb.ads
1866 LIBGNAT_TARGET_PAIRS
+= \
1867 system.ads
<system-linux-armel.ads
1870 TOOLS_TARGET_PAIRS
= \
1871 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1872 indepsw.adb
<indepsw-gnu.adb
1874 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1876 THREADSLIB
= -lpthread
1877 GNATLIB_SHARED
= gnatlib-shared-dual
1879 LIBRARY_VERSION
:= $(LIB_VERSION
)
1882 ifeq ($(strip $(filter-out sparc
% linux
%,$(arch
) $(osys
))),)
1883 LIBGNAT_TARGET_PAIRS_COMMON
= \
1884 a-intnam.ads
<a-intnam-linux.ads \
1885 s-inmaop.adb
<s-inmaop-posix.adb \
1886 s-intman.adb
<s-intman-posix.adb \
1887 s-linux.ads
<s-linux-sparc.ads \
1888 s-osinte.adb
<s-osinte-posix.adb \
1889 s-osinte.ads
<s-osinte-linux.ads \
1890 s-osprim.adb
<s-osprim-posix.adb \
1891 s-taprop.adb
<s-taprop-linux.adb \
1892 s-tasinf.ads
<s-tasinf-linux.ads \
1893 s-tasinf.adb
<s-tasinf-linux.adb \
1894 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1895 s-tpopsp.adb
<s-tpopsp-tls.adb
1897 LIBGNAT_TARGET_PAIRS_32
= \
1898 system.ads
<system-linux-sparc.ads
1900 LIBGNAT_TARGET_PAIRS_64
= \
1901 system.ads
<system-linux-sparcv9.ads
1903 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1904 LIBGNAT_TARGET_PAIRS
= \
1905 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1907 LIBGNAT_TARGET_PAIRS
= \
1908 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1911 TOOLS_TARGET_PAIRS
= \
1912 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1913 indepsw.adb
<indepsw-gnu.adb
1915 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1917 THREADSLIB
= -lpthread
1918 GNATLIB_SHARED
= gnatlib-shared-dual
1920 LIBRARY_VERSION
:= $(LIB_VERSION
)
1923 ifeq ($(strip $(filter-out hppa
% linux
%,$(arch
) $(osys
))),)
1924 LIBGNAT_TARGET_PAIRS
= \
1925 a-intnam.ads
<a-intnam-linux.ads \
1926 s-inmaop.adb
<s-inmaop-posix.adb \
1927 s-intman.adb
<s-intman-posix.adb \
1928 s-linux.ads
<s-linux-hppa.ads \
1929 s-osinte.adb
<s-osinte-posix.adb \
1930 s-osinte.ads
<s-osinte-linux.ads \
1931 s-osprim.adb
<s-osprim-posix.adb \
1932 s-taprop.adb
<s-taprop-linux.adb \
1933 s-tasinf.ads
<s-tasinf-linux.ads \
1934 s-tasinf.adb
<s-tasinf-linux.adb \
1935 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1936 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1937 system.ads
<system-linux-hppa.ads
1939 TOOLS_TARGET_PAIRS
= \
1940 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1941 indepsw.adb
<indepsw-gnu.adb
1943 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1945 THREADSLIB
= -lpthread
1946 GNATLIB_SHARED
= gnatlib-shared-dual
1948 LIBRARY_VERSION
:= $(LIB_VERSION
)
1951 ifeq ($(strip $(filter-out sh4
% linux
%,$(arch
) $(osys
))),)
1952 LIBGNAT_TARGET_PAIRS
= \
1953 a-intnam.ads
<a-intnam-linux.ads \
1954 s-inmaop.adb
<s-inmaop-posix.adb \
1955 s-intman.adb
<s-intman-posix.adb \
1956 s-linux.ads
<s-linux.ads \
1957 s-osinte.adb
<s-osinte-posix.adb \
1958 s-osinte.ads
<s-osinte-linux.ads \
1959 s-osprim.adb
<s-osprim-posix.adb \
1960 s-taprop.adb
<s-taprop-linux.adb \
1961 s-tasinf.ads
<s-tasinf-linux.ads \
1962 s-tasinf.adb
<s-tasinf-linux.adb \
1963 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1964 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1965 system.ads
<system-linux-sh4.ads
1967 TOOLS_TARGET_PAIRS
= \
1968 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1969 indepsw.adb
<indepsw-linux.adb
1971 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1974 THREADSLIB
= -lpthread
1975 GNATLIB_SHARED
= gnatlib-shared-dual
1977 LIBRARY_VERSION
:= $(LIB_VERSION
)
1980 ifeq ($(strip $(filter-out %ia64 linux
%,$(arch
) $(osys
))),)
1981 LIBGNAT_TARGET_PAIRS
= \
1982 a-exetim.adb
<a-exetim-posix.adb \
1983 a-exetim.ads
<a-exetim-default.ads \
1984 a-intnam.ads
<a-intnam-linux.ads \
1985 a-numaux.ads
<a-numaux-libc-x86.ads \
1986 a-synbar.adb
<a-synbar-posix.adb \
1987 a-synbar.ads
<a-synbar-posix.ads \
1988 s-inmaop.adb
<s-inmaop-posix.adb \
1989 s-intman.adb
<s-intman-posix.adb \
1990 s-linux.ads
<s-linux.ads \
1991 s-mudido.adb
<s-mudido-affinity.adb \
1992 s-osinte.ads
<s-osinte-linux.ads \
1993 s-osinte.adb
<s-osinte-posix.adb \
1994 s-osprim.adb
<s-osprim-posix.adb \
1995 s-taprop.adb
<s-taprop-linux.adb \
1996 s-tasinf.ads
<s-tasinf-linux.ads \
1997 s-tasinf.adb
<s-tasinf-linux.adb \
1998 s-tpopsp.adb
<s-tpopsp-tls.adb \
1999 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2000 g-sercom.adb
<g-sercom-linux.adb \
2001 system.ads
<system-linux-ia64.ads \
2002 $(ATOMICS_TARGET_PAIRS
) \
2003 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
2005 TOOLS_TARGET_PAIRS
= \
2006 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2007 indepsw.adb
<indepsw-gnu.adb
2009 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2012 THREADSLIB
=-lpthread
-lrt
2013 GNATLIB_SHARED
=gnatlib-shared-dual
2015 LIBRARY_VERSION
:= $(LIB_VERSION
)
2018 ifeq ($(strip $(filter-out ia64
% hp hpux
%,$(targ
))),)
2019 LIBGNAT_TARGET_PAIRS
= \
2020 a-intnam.ads
<a-intnam-hpux.ads \
2021 s-inmaop.adb
<s-inmaop-posix.adb \
2022 s-intman.adb
<s-intman-posix.adb \
2023 s-osinte.adb
<s-osinte-posix.adb \
2024 s-osinte.ads
<s-osinte-hpux.ads \
2025 s-osprim.adb
<s-osprim-posix.adb \
2026 s-taprop.adb
<s-taprop-posix.adb \
2027 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2028 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2029 system.ads
<system-hpux-ia64.ads \
2030 $(ATOMICS_TARGET_PAIRS
) \
2031 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
2033 TOOLS_TARGET_PAIRS
= \
2034 mlib-tgt-specific.adb
<mlib-tgt-specific-ia64-hpux.adb
2037 THREADSLIB
=-lpthread
2038 GNATLIB_SHARED
=gnatlib-shared-dual
2042 LIBRARY_VERSION
:= $(LIB_VERSION
)
2045 ifeq ($(strip $(filter-out alpha
% linux
%,$(arch
) $(osys
))),)
2046 LIBGNAT_TARGET_PAIRS
= \
2047 a-intnam.ads
<a-intnam-linux.ads \
2048 s-inmaop.adb
<s-inmaop-posix.adb \
2049 s-intman.adb
<s-intman-posix.adb \
2050 s-linux.ads
<s-linux-alpha.ads \
2051 s-osinte.ads
<s-osinte-linux.ads \
2052 s-osinte.adb
<s-osinte-posix.adb \
2053 s-osprim.adb
<s-osprim-posix.adb \
2054 s-taprop.adb
<s-taprop-linux.adb \
2055 s-tasinf.ads
<s-tasinf-linux.ads \
2056 s-tasinf.adb
<s-tasinf-linux.adb \
2057 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2058 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2059 system.ads
<system-linux-alpha.ads \
2060 $(ATOMICS_TARGET_PAIRS
) \
2061 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
2063 TOOLS_TARGET_PAIRS
= \
2064 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2065 indepsw.adb
<indepsw-gnu.adb
2067 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2070 THREADSLIB
=-lpthread
2071 GNATLIB_SHARED
=gnatlib-shared-dual
2072 LIBRARY_VERSION
:= $(LIB_VERSION
)
2075 ifeq ($(strip $(filter-out %x86_64 linux
%,$(arch
) $(osys
))),)
2076 LIBGNAT_TARGET_PAIRS
= \
2077 a-exetim.adb
<a-exetim-posix.adb \
2078 a-exetim.ads
<a-exetim-default.ads \
2079 a-intnam.ads
<a-intnam-linux.ads \
2080 a-synbar.adb
<a-synbar-posix.adb \
2081 a-synbar.ads
<a-synbar-posix.ads \
2082 s-inmaop.adb
<s-inmaop-posix.adb \
2083 s-intman.adb
<s-intman-posix.adb \
2084 s-linux.ads
<s-linux.ads \
2085 s-mudido.adb
<s-mudido-affinity.adb \
2086 s-osinte.ads
<s-osinte-linux.ads \
2087 s-osinte.adb
<s-osinte-posix.adb \
2088 s-osprim.adb
<s-osprim-posix.adb \
2089 s-taprop.adb
<s-taprop-linux.adb \
2090 s-tasinf.ads
<s-tasinf-linux.ads \
2091 s-tasinf.adb
<s-tasinf-linux.adb \
2092 s-tpopsp.adb
<s-tpopsp-tls.adb \
2093 s-taspri.ads
<s-taspri-posix.ads \
2094 g-sercom.adb
<g-sercom-linux.adb \
2095 $(ATOMICS_TARGET_PAIRS
) \
2096 $(X86_64_TARGET_PAIRS
) \
2097 system.ads
<system-linux-x86_64.ads
2099 TOOLS_TARGET_PAIRS
= \
2100 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2101 indepsw.adb
<indepsw-gnu.adb
2103 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
2104 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2106 THREADSLIB
=-lpthread
-lrt
2107 GNATLIB_SHARED
=gnatlib-shared-dual
2109 LIBRARY_VERSION
:= $(LIB_VERSION
)
2112 ifeq ($(strip $(filter-out %x32 linux
%,$(arch
) $(osys
))),)
2113 LIBGNAT_TARGET_PAIRS
= \
2114 a-exetim.adb
<a-exetim-posix.adb \
2115 a-exetim.ads
<a-exetim-default.ads \
2116 a-intnam.ads
<a-intnam-linux.ads \
2117 a-synbar.adb
<a-synbar-posix.adb \
2118 a-synbar.ads
<a-synbar-posix.ads \
2119 s-inmaop.adb
<s-inmaop-posix.adb \
2120 s-intman.adb
<s-intman-posix.adb \
2121 s-linux.ads
<s-linux.ads \
2122 s-mudido.adb
<s-mudido-affinity.adb \
2123 s-osinte.ads
<s-osinte-linux.ads \
2124 s-osinte.adb
<s-osinte-posix.adb \
2125 s-osprim.adb
<s-osprim-posix.adb \
2126 s-taprop.adb
<s-taprop-linux.adb \
2127 s-tasinf.ads
<s-tasinf-linux.ads \
2128 s-tasinf.adb
<s-tasinf-linux.adb \
2129 s-tpopsp.adb
<s-tpopsp-tls.adb \
2130 s-taspri.ads
<s-taspri-posix.ads \
2131 g-sercom.adb
<g-sercom-linux.adb \
2132 $(ATOMICS_TARGET_PAIRS
) \
2133 $(X86_64_TARGET_PAIRS
) \
2134 system.ads
<system-linux-x86.ads
2136 TOOLS_TARGET_PAIRS
= \
2137 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2138 indepsw.adb
<indepsw-gnu.adb
2140 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
2141 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2143 THREADSLIB
=-lpthread
-lrt
2144 GNATLIB_SHARED
=gnatlib-shared-dual
2146 LIBRARY_VERSION
:= $(LIB_VERSION
)
2149 ifeq ($(strip $(filter-out darwin
%,$(osys
))),)
2150 SO_OPTS
= -shared-libgcc
2151 LIBGNAT_TARGET_PAIRS
= \
2152 a-intnam.ads
<a-intnam-darwin.ads \
2153 s-inmaop.adb
<s-inmaop-posix.adb \
2154 s-osinte.adb
<s-osinte-darwin.adb \
2155 s-osinte.ads
<s-osinte-darwin.ads \
2156 s-taprop.adb
<s-taprop-posix.adb \
2157 s-taspri.ads
<s-taspri-posix.ads \
2158 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
2160 ifeq ($(strip $(filter-out %86,$(arch
))),)
2161 LIBGNAT_TARGET_PAIRS
+= \
2162 s-intman.adb
<s-intman-susv3.adb \
2163 s-osprim.adb
<s-osprim-darwin.adb \
2164 $(ATOMICS_TARGET_PAIRS
)
2166 ifeq ($(strip $(MULTISUBDIR
)),/x86_64
)
2167 LIBGNAT_TARGET_PAIRS
+= \
2168 $(X86_64_TARGET_PAIRS
) \
2169 system.ads
<system-darwin-x86_64.ads
2172 LIBGNAT_TARGET_PAIRS
+= \
2173 $(X86_TARGET_PAIRS
) \
2174 system.ads
<system-darwin-x86.ads
2178 ifeq ($(strip $(filter-out %x86_64
,$(arch
))),)
2179 LIBGNAT_TARGET_PAIRS
+= \
2180 s-intman.adb
<s-intman-susv3.adb \
2181 s-osprim.adb
<s-osprim-darwin.adb \
2182 $(ATOMICS_TARGET_PAIRS
)
2184 ifeq ($(strip $(MULTISUBDIR
)),/i386
)
2185 LIBGNAT_TARGET_PAIRS
+= \
2186 $(X86_TARGET_PAIRS
) \
2187 system.ads
<system-darwin-x86.ads
2190 LIBGNAT_TARGET_PAIRS
+= \
2191 $(X86_64_TARGET_PAIRS
) \
2192 system.ads
<system-darwin-x86_64.ads
2196 ifeq ($(strip $(filter-out powerpc
%,$(arch
))),)
2197 LIBGNAT_TARGET_PAIRS
+= \
2198 s-intman.adb
<s-intman-posix.adb \
2199 s-osprim.adb
<s-osprim-posix.adb \
2200 a-numaux.ads
<a-numaux-darwin.ads \
2201 a-numaux.adb
<a-numaux-darwin.adb
2203 ifeq ($(strip $(MULTISUBDIR
)),/ppc64
)
2204 LIBGNAT_TARGET_PAIRS
+= \
2205 system.ads
<system-darwin-ppc64.ads
2208 LIBGNAT_TARGET_PAIRS
+= \
2209 system.ads
<system-darwin-ppc.ads
2213 TOOLS_TARGET_PAIRS
= \
2214 mlib-tgt-specific.adb
<mlib-tgt-specific-darwin.adb \
2215 indepsw.adb
<indepsw-darwin.adb
2218 GNATLIB_SHARED
= gnatlib-shared-darwin
2220 LIBRARY_VERSION
:= $(LIB_VERSION
)
2225 ifneq ($(EH_MECHANISM
),)
2226 LIBGNAT_TARGET_PAIRS
+= a-exexpr.adb
<a-exexpr
$(EH_MECHANISM
).adb
2227 EXTRA_LIBGNAT_SRCS
+=raise
$(EH_MECHANISM
).c
2228 EXTRA_LIBGNAT_OBJS
+=raise
$(EH_MECHANISM
).o
2231 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
2232 # explicitly already. The base files (a-except.ad?) are used only for building
2233 # the compiler and other basic tools.
2234 # These base versions lack Ada 2005 additions which would cause bootstrap
2235 # problems if included in the compiler and other basic tools.
2237 ifeq ($(filter a-except
%,$(LIBGNAT_TARGET_PAIRS
)),)
2238 LIBGNAT_TARGET_PAIRS
+= \
2239 a-except.ads
<a-except-2005.ads \
2240 a-except.adb
<a-except-2005.adb
2243 # The runtime library for gnat comprises two directories. One contains the
2244 # Ada source files that the compiler (gnat1) needs -- these files are listed
2245 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
2246 # corresponding .ali files for the parts written in Ada, libgnat.a for
2247 # the parts of the runtime written in C, and libgthreads.a for the pthreads
2248 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
2249 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
2250 # go into the directory. The pthreads emulation is built in the threads
2251 # subdirectory and copied.
2252 LIBGNAT_SRCS
= adadecode.c adadecode.h adaint.c adaint.h \
2253 argv.c cio.c cstreams.c errno.c exit.c cal.c ctrl_c.c env.c env.h \
2254 arit64.c raise.h raise.c sysdep.c aux-io.c init.c initialize.c \
2255 locales.c seh_init.c final.c tracebak.c tb-alvms.c tb-alvxw.c \
2256 tb-gcc.c expect.c mkdir.c socket.c gsocket.h targext.c terminals.c \
2257 thread.c
$(EXTRA_LIBGNAT_SRCS
)
2259 LIBGNAT_OBJS
= adadecode.o adaint.o argv.o cio.o cstreams.o ctrl_c.o \
2260 errno.o exit.o env.o raise.o sysdep.o aux-io.o init.o initialize.o \
2261 locales.o seh_init.o cal.o arit64.o final.o tracebak.o expect.o \
2262 mkdir.o socket.o targext.o terminals.o
$(EXTRA_LIBGNAT_OBJS
)
2264 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2265 # the library installation will change and there will be a
2266 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2267 # from ADA_INCLUDE_SRCS.
2269 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2270 # the following include file:
2272 include $(fsrcdir
)/ada
/Makefile.rtl
2274 GNATRTL_OBJS
= $(GNATRTL_NONTASKING_OBJS
) $(GNATRTL_TASKING_OBJS
) \
2277 # Default run time files
2280 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2281 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2282 sequenio.ads system.ads memtrack.adb \
2283 a-
[a-o
]*.adb a-
[p-z
]*.adb a-
[a-o
]*.ads a-
[p-z
]*.ads g-
*.ad? i-
*.ad? \
2284 s-
[a-o
]*.adb s-
[p-z
]*.adb s-
[a-o
]*.ads s-
[p-z
]*.ads
2286 LIBGNAT
=..
/$(RTSDIR
)/libgnat.a
2288 TOOLS_FLAGS_TO_PASS
= \
2290 "CFLAGS=$(CFLAGS)" \
2291 "LDFLAGS=$(LDFLAGS)" \
2292 "ADAFLAGS=$(ADAFLAGS)" \
2293 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
2294 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
2295 "libsubdir=$(libsubdir)" \
2296 "exeext=$(exeext)" \
2297 "fsrcdir=$(fsrcdir)" \
2298 "srcdir=$(fsrcdir)" \
2299 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
2300 "GNATMAKE=$(GNATMAKE)" \
2301 "GNATLINK=$(GNATLINK)" \
2302 "GNATBIND=$(GNATBIND)"
2304 GCC_LINK
=$(CC
) $(GCC_LINK_FLAGS
) $(ADA_INCLUDES
)
2306 # Build directory for the tools. Let's copy the target-dependent
2307 # sources using the same mechanism as for gnatlib. The other sources are
2308 # accessed using the vpath directive below
2309 # Note: dummy target, stamp-tools is mainly handled by gnattools.
2312 touch ..
/stamp-tools
2314 # when compiling the tools, the runtime has to be first on the path so that
2315 # it hides the runtime files lying with the rest of the sources
2316 ifeq ($(TOOLSCASE
),native
)
2317 vpath
%.ads ..
/$(RTSDIR
) ..
/
2318 vpath
%.adb ..
/$(RTSDIR
) ..
/
2319 vpath
%.c ..
/$(RTSDIR
) ..
/
2320 vpath
%.h ..
/$(RTSDIR
) ..
/
2323 # in the cross tools case, everything is compiled with the native
2324 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2325 ifeq ($(TOOLSCASE
),cross
)
2332 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
2333 # reasons: gnatmake should be built with a recent compiler, a recent compiler
2334 # may not generate ALI files compatible with an old gnatmake so it is important
2335 # to be able to build gnatmake without a version of gnatmake around. Once
2336 # everything has been compiled once, gnatmake can be recompiled with itself
2337 # (see target gnattools1-re)
2338 gnattools1
: ..
/stamp-tools ..
/stamp-gnatlib-
$(RTSDIR
)
2339 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2341 ..
/..
/gnatmake
$(exeext
) ..
/..
/gnatlink
$(exeext
)
2343 # gnatmake/link can be built with recent gnatmake/link if they are available.
2344 # This is especially convenient for building cross tools or for rebuilding
2345 # the tools when the original bootstrap has already be done.
2346 gnattools1-re
: ..
/stamp-tools
2347 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2348 TOOLSCASE
=cross INCLUDES
="" gnatmake-re gnatlink-re
2350 # these tools are built with gnatmake & are common to native and cross
2351 gnattools2
: ..
/stamp-tools
2352 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2353 TOOLSCASE
=native common-tools
$(EXTRA_GNATTOOLS
)
2355 # those tools are only built for the cross version
2356 gnattools4
: ..
/stamp-tools
2357 ifeq ($(ENABLE_VXADDR2LINE
),true
)
2358 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2359 TOOLSCASE
=cross top_buildir
=..
/..
/.. \
2360 ..
/..
/vxaddr2line
$(exeext
)
2363 common-tools
: ..
/stamp-tools
2364 $(GNATMAKE
) -j0
-c
-b
$(ADA_INCLUDES
) \
2365 --GNATBIND
="$(GNATBIND)" --GCC
="$(CC) $(ALL_ADAFLAGS)" \
2366 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2367 gnatclean
-bargs
$(ADA_INCLUDES
) $(GNATBIND_FLAGS
)
2368 $(GNATLINK
) -v gnatcmd
-o ..
/..
/gnat
$(exeext
) \
2369 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2370 $(GNATLINK
) -v gnatchop
-o ..
/..
/gnatchop
$(exeext
) \
2371 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2372 $(GNATLINK
) -v gnatkr
-o ..
/..
/gnatkr
$(exeext
) \
2373 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2374 $(GNATLINK
) -v gnatls
-o ..
/..
/gnatls
$(exeext
) \
2375 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2376 $(GNATLINK
) -v gnatprep
-o ..
/..
/gnatprep
$(exeext
) \
2377 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2378 $(GNATLINK
) -v gnatxref
-o ..
/..
/gnatxref
$(exeext
) \
2379 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2380 $(GNATLINK
) -v gnatfind
-o ..
/..
/gnatfind
$(exeext
) \
2381 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2382 $(GNATLINK
) -v gnatname
-o ..
/..
/gnatname
$(exeext
) \
2383 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2384 $(GNATLINK
) -v gnatclean
-o ..
/..
/gnatclean
$(exeext
) \
2385 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2387 ..
/..
/gnatsym
$(exeext
): ..
/stamp-tools
2388 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatsym
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2389 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatsym
2390 $(GNATLINK
) -v gnatsym
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2392 ..
/..
/gnatdll
$(exeext
): ..
/stamp-tools
2393 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatdll
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2394 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatdll
2395 $(GNATLINK
) -v gnatdll
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2397 ..
/..
/vxaddr2line
$(exeext
): ..
/stamp-tools targext.o
2398 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vxaddr2line
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2399 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vxaddr2line
2400 $(GNATLINK
) -v vxaddr2line
-o
$@
--GCC
="$(GCC_LINK)" targext.o
$(CLIB
)
2402 gnatmake-re
: ..
/stamp-tools link.o targext.o
2403 $(GNATMAKE
) -j0
$(ADA_INCLUDES
) -u sdefault
--GCC
="$(CC) $(MOST_ADA_FLAGS)"
2404 $(GNATMAKE
) -j0
-c
$(ADA_INCLUDES
) gnatmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2405 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmake
2406 $(GNATLINK
) -v gnatmake
-o ..
/..
/gnatmake
$(exeext
) \
2407 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2409 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2410 # with the former version of gnatlink itself which cannot override itself.
2411 # gnatlink-re cannot be run at the same time as gnatmake-re, hence the
2413 gnatlink-re
: ..
/stamp-tools link.o targext.o gnatmake-re
2414 $(GNATMAKE
) -j0
-c
$(ADA_INCLUDES
) gnatlink
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2415 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlink
2416 $(GNATLINK
) -v gnatlink
-o ..
/..
/gnatlinknew
$(exeext
) \
2417 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2418 $(MV
) ..
/..
/gnatlinknew
$(exeext
) ..
/..
/gnatlink
$(exeext
)
2420 # Needs to be built with CC=gcc
2421 # Since the RTL should be built with the latest compiler, remove the
2422 # stamp target in the parent directory whenever gnat1 is rebuilt
2424 # Likewise for the tools
2425 ..
/..
/gnatmake
$(exeext
): $(P
) b_gnatm.o link.o targext.o
$(GNATMAKE_OBJS
)
2426 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatm.o
$(GNATMAKE_OBJS
) \
2429 ..
/..
/gnatlink
$(exeext
): $(P
) b_gnatl.o link.o targext.o
$(GNATLINK_OBJS
)
2430 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatl.o
$(GNATLINK_OBJS
) \
2433 ..
/stamp-gnatlib-
$(RTSDIR
):
2434 @if
[ ! -f stamp-gnatlib-
$(RTSDIR
) ] ; \
2436 $(ECHO
) You must first build the GNAT library
: make gnatlib
; \
2442 install-gnatlib
: ..
/stamp-gnatlib-
$(RTSDIR
)
2443 # Create the directory before deleting it, in case the directory is
2444 # a list of directories (as it may be on VMS). This ensures we are
2445 # deleting the right one.
2446 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2447 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2448 $(RMDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2449 $(RMDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2450 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2451 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2452 for file in
$(RTSDIR
)/*.ali
; do \
2453 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2455 -cd
$(RTSDIR
); for file in
*$(arext
);do \
2456 $(INSTALL_DATA
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2457 $(RANLIB_FOR_TARGET
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/$$file; \
2459 -$(foreach file
, $(EXTRA_ADALIB_FILES
), \
2460 $(INSTALL_DATA_DATE
) $(RTSDIR
)/$(file
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
) && \
2462 # Install the shared libraries, if any, using $(INSTALL) instead
2463 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2464 # for shared libraries on some targets, e.g. on HP-UX where the x
2465 # permission is required.
2466 # Also install the .dSYM directories if they exist (these directories
2467 # contain the debug information for the shared libraries on darwin),
2468 # and the windows import libraries if they exist.
2469 libpfx
=$(if
$(WIN_SO_PREFIX
),$(WIN_SO_PREFIX
),lib
); \
2470 librtlobjdir
=$(if
$(WIN_SO_INSTALL_DIR
),$(WIN_SO_INSTALL_DIR
),$(ADA_RTL_OBJ_DIR
)); \
2471 for file in gnat gnarl
; do \
2472 if
[ -f
$(RTSDIR
)/$${libpfx}$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) ]; then \
2473 $(INSTALL
) $(RTSDIR
)/$${libpfx}$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2474 $(DESTDIR
)$${librtlobjdir}; \
2476 if
[ -f
$(RTSDIR
)/lib
$${file}$(soext
) ]; then \
2477 $(LN_S
) lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2478 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/lib
$${file}$(soext
); \
2480 if
[ -d
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM
]; then \
2481 $(CP
) -r
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM \
2482 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2484 if
[ -f
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
)$(arext
) ]; then \
2485 $(INSTALL_DATA
) $(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
)$(arext
) \
2486 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2489 # This copy must be done preserving the date on the original file.
2490 for file in
$(RTSDIR
)/*.ad?
; do \
2491 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_INCLUDE_DIR
); \
2493 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.adb
2494 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.ads
2496 ..
/stamp-gnatlib2-
$(RTSDIR
):
2497 $(RM
) $(RTSDIR
)/s-
*.ali
2498 $(RM
) $(RTSDIR
)/s-
*$(objext
)
2499 $(RM
) $(RTSDIR
)/a-
*.ali
2500 $(RM
) $(RTSDIR
)/a-
*$(objext
)
2501 $(RM
) $(RTSDIR
)/*.ali
2502 $(RM
) $(RTSDIR
)/*$(objext
)
2503 $(RM
) $(RTSDIR
)/*$(arext
)
2504 $(RM
) $(RTSDIR
)/*$(soext
)
2505 touch ..
/stamp-gnatlib2-
$(RTSDIR
)
2506 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2508 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
2509 # successive target commands. Although the Gnu make documentation
2510 # implies this is true on all systems, I suspect it may not be, So care
2511 # has been taken to allow a sed script to look for ";)" and substitue
2512 # for ";" the appropriate character in the range of lines below
2513 # beginning with "GNULLI Begin" and ending with "GNULLI End"
2515 # GNULLI Begin ###########################################################
2517 ..
/stamp-gnatlib1-
$(RTSDIR
): Makefile ..
/stamp-gnatlib2-
$(RTSDIR
)
2520 $(CHMOD
) u
+w
$(RTSDIR
)
2521 # Copy target independent sources
2522 $(foreach f
,$(ADA_INCLUDE_SRCS
) $(LIBGNAT_SRCS
), \
2523 $(LN_S
) $(fsrcpfx
)ada
/$(f
) $(RTSDIR
) ;) true
2524 # Remove files to be replaced by target dependent sources
2525 $(RM
) $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2526 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
))))
2527 for f in
$(RTSDIR
)/*-*-*.ads
$(RTSDIR
)/*-*-*.adb
; do \
2529 $(RTSDIR
)/s-stratt-
*) ;; \
2533 # Copy new target dependent sources
2534 $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2535 $(LN_S
) $(fsrcpfx
)ada
/$(word 2,$(subst <, ,$(PAIR
))) \
2536 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
)));)
2538 $(CP
) $(srcdir)/tsystem.h
$(RTSDIR
)
2539 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2540 touch ..
/stamp-gnatlib1-
$(RTSDIR
)
2542 # GNULLI End #############################################################
2544 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(subst -, ,$(host
)))),)
2545 OSCONS_CPP
=..
/..
/$(DECC
) -E
/comment
=as_is
-DNATIVE \
2546 -DTARGET
='""$(target)""' $(fsrcpfx
)ada
/s-oscons-tmplt.c
2548 OSCONS_EXTRACT
=..
/..
/$(DECC
) -DNATIVE \
2549 -DTARGET
='""$(target)""' $(fsrcpfx
)ada
/s-oscons-tmplt.c
; \
2550 ld -o s-oscons-tmplt.exe s-oscons-tmplt.obj
; \
2551 .
/s-oscons-tmplt.exe
> s-oscons-tmplt.s
2554 # GCC_FOR_TARGET has paths relative to the gcc directory, so we need to adjust
2555 # for running it from $(RTSDIR)
2556 OSCONS_CC
=`echo "$(GCC_FOR_TARGET)" \
2557 | sed -e 's^\./xgcc^../../xgcc^' -e 's^-B./^-B../../^'`
2558 OSCONS_CPP
=$(OSCONS_CC
) $(GNATLIBCFLAGS
) -E
-C \
2559 -DTARGET
=\"$(target
)\" $(fsrcpfx
)ada
/s-oscons-tmplt.c
> s-oscons-tmplt.i
2560 OSCONS_EXTRACT
=$(OSCONS_CC
) $(GNATLIBCFLAGS
) -S s-oscons-tmplt.i
2563 .
/bldtools
/oscons
/xoscons
: xoscons.adb xutil.ads xutil.adb
2564 -$(MKDIR
) .
/bldtools
/oscons
2565 $(RM
) $(addprefix .
/bldtools
/oscons
/,$(notdir $^
))
2566 $(CP
) $^ .
/bldtools
/oscons
2567 (cd .
/bldtools
/oscons
; gnatmake
-q xoscons
)
2569 $(RTSDIR
)/s-oscons.ads
: ..
/stamp-gnatlib1-
$(RTSDIR
) s-oscons-tmplt.c gsocket.h .
/bldtools
/oscons
/xoscons
2570 $(RM
) $(RTSDIR
)/s-oscons-tmplt.i
$(RTSDIR
)/s-oscons-tmplt.s
2573 $(OSCONS_EXTRACT
) ; \
2574 ..
/bldtools
/oscons
/xoscons
)
2576 # Don't use semicolon separated shell commands that involve list expansions.
2577 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
2578 # line lengths in excess of 256 characters.
2579 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
2580 # is guaranteed to overflow the buffer.
2582 gnatlib
: ..
/stamp-gnatlib1-
$(RTSDIR
) ..
/stamp-gnatlib2-
$(RTSDIR
) $(RTSDIR
)/s-oscons.ads
2583 $(MAKE
) -C
$(RTSDIR
) \
2584 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2585 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2586 INCLUDES
="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2587 CFLAGS
="$(GNATLIBCFLAGS_FOR_C)" \
2588 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2590 -f ..
/Makefile
$(LIBGNAT_OBJS
)
2591 $(MAKE
) -C
$(RTSDIR
) \
2592 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2593 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2595 CFLAGS
="$(GNATLIBCFLAGS)" \
2596 ADAFLAGS
="$(GNATLIBFLAGS)" \
2597 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2601 $(RM
) $(RTSDIR
)/libgnat
$(arext
) $(RTSDIR
)/libgnarl
$(arext
)
2602 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnat
$(arext
) \
2603 $(addprefix $(RTSDIR
)/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
2604 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnat
$(arext
)
2605 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnarl
$(arext
) \
2606 $(addprefix $(RTSDIR
)/,$(GNATRTL_TASKING_OBJS
))
2607 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnarl
$(arext
)
2608 ifeq ($(GMEM_LIB
),gmemlib
)
2609 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgmem
$(arext
) \
2610 $(RTSDIR
)/memtrack.o
2611 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgmem
$(arext
)
2613 $(CHMOD
) a-wx
$(RTSDIR
)/*.ali
2614 touch ..
/stamp-gnatlib-
$(RTSDIR
)
2616 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2617 gnatlib-shared-default
:
2618 $(MAKE
) $(FLAGS_TO_PASS
) \
2619 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2620 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2621 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2622 MULTISUBDIR
="$(MULTISUBDIR)" \
2623 THREAD_KIND
="$(THREAD_KIND)" \
2625 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2626 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2627 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
$(GNATLIBCFLAGS
) \
2628 $(PICFLAG_FOR_TARGET
) \
2629 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2630 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2631 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2633 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2634 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
$(GNATLIBCFLAGS
) \
2635 $(PICFLAG_FOR_TARGET
) \
2636 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2637 $(GNATRTL_TASKING_OBJS
) \
2638 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2640 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2642 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2645 gnatlib-shared-dual
:
2646 $(MAKE
) $(FLAGS_TO_PASS
) \
2647 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2648 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2649 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2650 MULTISUBDIR
="$(MULTISUBDIR)" \
2651 THREAD_KIND
="$(THREAD_KIND)" \
2652 gnatlib-shared-default
2653 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2654 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2655 $(MAKE
) $(FLAGS_TO_PASS
) \
2656 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2657 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2658 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2659 MULTISUBDIR
="$(MULTISUBDIR)" \
2660 THREAD_KIND
="$(THREAD_KIND)" \
2662 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2664 gnatlib-shared-dual-win32
:
2665 $(MAKE
) $(FLAGS_TO_PASS
) \
2666 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2667 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2668 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2669 MULTISUBDIR
="$(MULTISUBDIR)" \
2670 THREAD_KIND
="$(THREAD_KIND)" \
2671 gnatlib-shared-win32
2672 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2673 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2674 $(MAKE
) $(FLAGS_TO_PASS
) \
2675 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2676 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2677 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2678 MULTISUBDIR
="$(MULTISUBDIR)" \
2679 THREAD_KIND
="$(THREAD_KIND)" \
2681 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2683 # ??? we need to add the option to support auto-import of arrays/records to
2684 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2685 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2687 gnatlib-shared-win32
:
2688 $(MAKE
) $(FLAGS_TO_PASS
) \
2689 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2690 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2691 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2692 MULTISUBDIR
="$(MULTISUBDIR)" \
2693 THREAD_KIND
="$(THREAD_KIND)" \
2695 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2696 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2697 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
-shared-libgcc \
2698 $(PICFLAG_FOR_TARGET
) \
2699 -o
$(WIN_SO_PREFIX
)gnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2700 -Wl
,-out-implib
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)$(arext
) \
2701 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2702 $(SO_OPTS
)$(WIN_SO_PREFIX
)gnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) $(MISCLIB
)
2703 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2704 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
-shared-libgcc \
2705 $(PICFLAG_FOR_TARGET
) \
2706 -o
$(WIN_SO_PREFIX
)gnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2707 -Wl
,-out-implib
,libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)$(arext
) \
2708 $(GNATRTL_TASKING_OBJS
) \
2709 $(SO_OPTS
)$(WIN_SO_PREFIX
)gnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2710 $(THREADSLIB
) -L.
-lgnat
$(hyphen
)$(LIBRARY_VERSION
)
2712 gnatlib-shared-darwin
:
2713 $(MAKE
) $(FLAGS_TO_PASS
) \
2714 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2715 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2716 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) -fno-common" \
2717 MULTISUBDIR
="$(MULTISUBDIR)" \
2718 THREAD_KIND
="$(THREAD_KIND)" \
2720 $(RM
) $(RTSDIR
)/libgnat
$(soext
) $(RTSDIR
)/libgnarl
$(soext
)
2721 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2722 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib
$(PICFLAG_FOR_TARGET
) \
2723 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2724 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2726 -Wl
,-install_name
,@rpath
/libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2728 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2729 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib
$(PICFLAG_FOR_TARGET
) \
2730 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2731 $(GNATRTL_TASKING_OBJS
) \
2733 -Wl
,-install_name
,@rpath
/libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2734 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2735 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2737 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2739 cd
$(RTSDIR
); dsymutil libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2740 cd
$(RTSDIR
); dsymutil libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2743 $(MAKE
) $(FLAGS_TO_PASS
) \
2744 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2745 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2746 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2747 MULTISUBDIR
="$(MULTISUBDIR)" \
2748 THREAD_KIND
="$(THREAD_KIND)" \
2750 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2752 ..
/..
/gnatsym
-s SYMVEC_
$$$$.opt \
2753 $(LIBGNAT_OBJS
) $(GNATRTL_NONTASKING_OBJS
) && \
2754 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2755 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) libgnat.a \
2756 sys\
$$library:trace.exe \
2757 --for-linker
=/noinform \
2758 --for-linker
=SYMVEC_
$$$$.opt \
2759 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2761 ..
/..
/gnatsym
-s SYMVEC_
$$$$.opt \
2762 $(GNATRTL_TASKING_OBJS
) && \
2763 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2764 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2765 libgnarl.a libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2766 sys\
$$library:trace.exe \
2767 --for-linker
=/noinform \
2768 --for-linker
=SYMVEC_
$$$$.opt \
2769 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2772 $(MAKE
) $(FLAGS_TO_PASS
) \
2773 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2774 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2775 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2776 MULTISUBDIR
="$(MULTISUBDIR)" \
2777 THREAD_KIND
="$(THREAD_KIND)" \
2778 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" \
2781 # When building a SJLJ runtime for VxWorks, in addition to forcing
2782 # ZCX_By_default to True, we need to ensure that -crtbe linker options
2783 # is not passed. Otherwise we will end with weak symbols on
2784 # __register_frame_info and __deregister_frame_info. The VxWorks 5.x
2785 # will issue an error on weak symbols.
2787 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="" \
2788 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2789 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2790 cat
$(RTSDIR
)/s.ads | grep
-v
"Linker_Options.*-crtbe" > $(RTSDIR
)/s2.ads
2791 $(RM
) $(RTSDIR
)/s.ads
2792 $(MV
) $(RTSDIR
)/s2.ads
$(RTSDIR
)/system.ads
2793 $(MAKE
) $(FLAGS_TO_PASS
) \
2795 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2796 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2797 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2798 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2799 MULTISUBDIR
="$(MULTISUBDIR)" \
2800 THREAD_KIND
="$(THREAD_KIND)" \
2801 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" gnatlib
2804 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="-gcc" \
2805 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2806 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2807 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2808 $(MAKE
) $(FLAGS_TO_PASS
) \
2809 EH_MECHANISM
="-gcc" \
2810 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2811 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2812 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2813 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2814 MULTISUBDIR
="$(MULTISUBDIR)" \
2815 THREAD_KIND
="$(THREAD_KIND)" \
2816 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" gnatlib
2818 # Compiling object files from source files.
2820 # Note that dependencies on obstack.h are not written
2821 # because that file is not part of GCC.
2822 # Dependencies on gvarargs.h are not written
2823 # because all that file does, when not compiling with GCC,
2824 # is include the system varargs.h.
2826 b_gnatl.adb
: $(GNATLINK_OBJS
)
2827 $(GNATBIND
) $(ADA_INCLUDES
) -o b_gnatl.adb gnatlink.ali
2829 b_gnatl.o
: b_gnatl.adb
2830 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) -gnatws
-gnatyN \
2833 b_gnatm.adb
: $(GNATMAKE_OBJS
)
2834 $(GNATBIND
) $(ADA_INCLUDES
) -o b_gnatm.adb gnatmake.ali
2836 b_gnatm.o
: b_gnatm.adb
2837 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) -gnatws
-gnatyN \
2840 ADA_INCLUDE_DIR
= $(libsubdir
)/adainclude
2841 ADA_RTL_OBJ_DIR
= $(libsubdir
)/adalib
2845 # force no sibling call optimization on s-traceb.o so the number of stack
2846 # frames to be skipped when computing a call chain is not modified by
2849 s-traceb.o
: s-traceb.adb s-traceb.ads
2850 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) \
2851 $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2853 # force debugging information on s-tasdeb.o so that it is always
2854 # possible to set conditional breakpoints on tasks.
2856 s-tasdeb.o
: s-tasdeb.adb s-tasdeb.ads
2857 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2860 # force debugging information on s-vaflop.o so that it is always
2861 # possible to call the VAX float debug print routines.
2862 # force at least -O so that the inline assembly works.
2864 s-vaflop.o
: s-vaflop.adb s-vaflop.ads
2865 $(CC
) -c
-O
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
2868 # force no function reordering on a-except.o because of the exclusion bounds
2869 # mechanism (see the source file for more detailed information).
2870 # force debugging information on a-except.o so that it is always
2871 # possible to set conditional breakpoints on exceptions.
2872 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2874 a-except.o
: a-except.adb a-except.ads
2875 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O1
-fno-inline \
2876 $(NO_REORDER_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2878 # compile s-excdeb.o without optimization and with debug info to let the
2879 # debugger set breakpoints and inspect subprogram parameters on exception
2882 s-excdeb.o
: s-excdeb.adb s-excdeb.ads s-except.ads
2883 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2886 # force debugging information on s-assert.o so that it is always
2887 # possible to set breakpoint on assert failures.
2889 s-assert.o
: s-assert.adb s-assert.ads
2890 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
2893 # force debugging information on a-tags.o so that the debugger can find
2894 # the description of Ada.Tags.Type_Specific_Data.
2896 a-tags.o
: a-tags.adb a-tags.ads
2897 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
2900 # need to keep the frame pointer in this file to pop the stack properly on
2902 tracebak.o
: tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2903 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
2904 $(INCLUDES
) -fno-omit-frame-pointer
$< $(OUTPUT_OPTION
)
2906 adadecode.o
: adadecode.c adadecode.h
2910 deftarg.o
: deftarg.c
2912 exit.o
: adaint.h exit.c
2915 locales.o
: locales.c
2917 socket.o
: socket.c gsocket.h
2919 raise.o
: raise.c raise.h
2920 sigtramp-ppcvxw.o
: sigtramp-ppcvxw.c sigtramp.h
2921 terminals.o
: terminals.c
2922 vx_stack_info.o
: vx_stack_info.c
2924 raise-gcc.o
: raise-gcc.c raise.h
2925 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2926 -iquote
$(srcdir) -iquote
$(srcdir)/..
/libgcc \
2927 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2930 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2931 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2933 init.o
: init.c adaint.h raise.h
2934 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2935 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2937 initialize.o
: initialize.c raise.h
2938 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2939 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2942 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2943 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
2946 targext.o
: targext.c
2947 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2949 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
2952 # In GNU Make, ignore whether `stage*' exists.
2953 .PHONY
: stage1 stage2 stage3 stage4
clean realclean TAGS bootstrap
2954 .PHONY
: risky-stage1 risky-stage2 risky-stage3 risky-stage4