1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2011 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 3, or (at your option)
11 #GCC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING3. If not see
18 #<http://www.gnu.org/licenses/>.
20 # The makefile built from this file lives in the language subdirectory.
21 # Its purpose is to provide support for:
23 # 1) recursion where necessary, and only then (building .o's), and
24 # 2) building and debugging cc1 from the language subdirectory, and
27 # The parent makefile handles all other chores, with help from the
28 # language makefile fragment, of course.
30 # The targets for external use are:
31 # all, TAGS, ???mostlyclean, ???clean.
33 # This makefile will only work with Gnu make.
34 # The rules are written assuming a minimum subset of tools are available:
37 # MAKE: Only Gnu make will work.
38 # MV: Must accept (at least) one, maybe wildcard, source argument,
39 # a file or directory destination, and support creation/
40 # modification date preservation. Gnu mv -f works.
41 # RM: Must accept an arbitrary number of space separated file
42 # arguments, or one wildcard argument. Gnu rm works.
43 # RMDIR: Must delete a directory and all its contents. Gnu rm -rf works.
44 # ECHO: Must support command line redirection. Any Unix-like
45 # shell will typically provide this, otherwise a custom version
46 # is trivial to write.
48 # MKDIR: Gnu mkdir works.
49 # CHMOD: Gnu chmod works.
50 # true: Does nothing and returns a normal successful return code.
51 # pwd: Prints the current directory on stdout.
52 # cd: Change directory.
55 # BISON: Gnu bison works.
56 # FLEX: Gnu flex works.
57 # Other miscellaneous tools for obscure targets.
59 # Suppress smart makes who think they know how to automake Yacc files
62 # Variables that exist for you to override.
63 # See below for how to change them for certain systems.
65 # Various ways of specifying flags for compilations:
66 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
67 # BOOT_CFLAGS is the value of CFLAGS to pass
68 # to the stage2 and stage3 compilations
70 BOOT_CFLAGS
= -O
$(CFLAGS
)
71 # These exists to be overridden by the t-* files, respectively.
92 RANLIB_FLAGS
= @ranlib_flags@
96 COMPILER_FLAGS
= $(CFLAGS
)
99 PWD_COMMAND
= $${PWDCMD-pwd
}
100 # How to copy preserving the date
101 INSTALL_DATA_DATE
= cp
-p
105 GNATBIND_FLAGS
= -static
-x
107 ADAFLAGS
= -W
-Wall
-gnatpg
-gnata
108 SOME_ADAFLAGS
=-gnata
109 FORCE_DEBUG_ADAFLAGS
= -g
110 NO_SIBLING_ADAFLAGS
=-fno-optimize-sibling-calls
111 NO_REORDER_ADAFLAGS
=-fno-toplevel-reorder
112 GNATLIBFLAGS
= -gnatpg
-nostdinc
113 GNATLIBCFLAGS
= -g
-O2
114 PICFLAG_FOR_TARGET
= @PICFLAG_FOR_TARGET@
115 # Pretend that _Unwind_GetIPInfo is available for the target by default. This
116 # should be autodetected during the configuration of libada and passed down to
117 # here, but we need something for --disable-libada and hope for the best.
118 GNATLIBCFLAGS_FOR_C
= $(GNATLIBCFLAGS
) $(PICFLAG_FOR_TARGET
) -fexceptions \
119 -DIN_RTS
-DHAVE_GETIPINFO
120 ALL_ADAFLAGS
= $(CFLAGS
) $(ADA_CFLAGS
) $(ADAFLAGS
)
121 MOST_ADAFLAGS
= $(CFLAGS
) $(ADA_CFLAGS
) $(SOME_ADAFLAGS
)
126 SYMDEPS
= $(LIBINTL_DEP
)
127 OUTPUT_OPTION
= @OUTPUT_OPTION@
136 # Define this as & to perform parallel make on a Sequent.
137 # Note that this has some bugs, and it seems currently necessary
138 # to compile all the gen* files first by hand to avoid erroneous results.
141 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
143 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
144 GCC_CFLAGS
= $(INTERNAL_CFLAGS
) $(T_CFLAGS
) $(CFLAGS
)
146 # Tools to use when building a cross-compiler.
147 # These are used because `configure' appends `cross-make'
148 # to the makefile when making a cross-compiler.
150 # We don't use cross-make. Instead we use the tools from the build tree,
151 # if they are available.
152 # program_transform_name and objdir are set by configure.in.
153 program_transform_name
=
156 target_alias
=@target_alias@
158 xmake_file
= @xmake_file@
159 tmake_file
= @tmake_file@
160 host_canonical
=@host@
161 target_cpu_default
=@target_cpu_default@
162 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
163 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
165 # Directory where sources are, from where we are.
166 VPATH
= $(srcdir)/ada
168 fsrcdir
:= $(shell cd
$(srcdir);${PWD_COMMAND})
169 fsrcpfx
:= $(shell cd
$(srcdir);${PWD_COMMAND})/
170 fcurdir
:= $(shell ${PWD_COMMAND})
171 fcurpfx
:= $(shell ${PWD_COMMAND})/
173 # Top build directory, relative to here.
176 # Internationalization library.
178 LIBINTL_DEP
= @LIBINTL_DEP@
180 # Any system libraries needed just for GNAT.
181 SYSLIBS
= @GNAT_LIBEXC@
183 # List of extra object files linked in with various programs.
184 EXTRA_GNATTOOLS_OBJS
= ..
/..
/libcommon-target.a ..
/..
/libcommon.a \
185 ..
/..
/..
/libcpp
/libcpp.a
187 # List extra gnattools
190 # List of target dependent sources, overridden below as necessary
193 # Type of tools build we are doing; default is not compiling tools.
198 RTSDIR
= rts
$(subst /,_
,$(MULTISUBDIR
))
200 # Link flags used to build gnat tools. By default we prefer to statically
201 # link with libgcc to avoid a dependency on shared libgcc (which is tricky
202 # to deal with as it may conflict with the libgcc provided by the system).
203 GCC_LINK_FLAGS
=-static-libgcc
205 # End of variables for you to override.
209 # This tells GNU Make version 3 not to put all variables in the environment.
213 ifneq ($(tmake_file
),)
214 include $(tmake_file
)
218 ifneq ($(xmake_file
),)
219 include $(xmake_file
)
222 # Now figure out from those variables how to compile and link.
224 all.indirect
: Makefile ..
/gnat1
$(exeext
)
226 # IN_GCC is meant to distinguish between code compiled into GCC itself, i.e.
227 # for the host, and the rest. But we also use it for the tools (link.c) and
228 # even break the host/target wall by using it for the library (targext.c).
229 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
230 # compiler which does not use the native libraries and headers.
231 INTERNAL_CFLAGS
= @CROSS@
-DIN_GCC
233 # This is the variable actually used when we compile.
234 LOOSE_CFLAGS
= `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
235 ALL_CFLAGS
= $(INTERNAL_CFLAGS
) $(T_CFLAGS
) $(LOOSE_CFLAGS
)
238 ALL_CPPFLAGS
= $(CPPFLAGS
)
240 # Used with $(COMPILER).
241 ALL_COMPILERFLAGS
= $(ALL_CFLAGS
)
243 # This is where we get libiberty.a from.
244 LIBIBERTY
= ..
/..
/libiberty
/libiberty.a
246 # How to link with both our special library facilities
247 # and the system's installed libraries.
248 LIBS
= $(LIBINTL
) $(LIBIBERTY
) $(SYSLIBS
)
249 LIBDEPS
= $(LIBINTL_DEP
) $(LIBIBERTY
)
250 # Default is no TGT_LIB; one might be passed down or something
252 TOOLS_LIBS
= $(EXTRA_GNATTOOLS_OBJS
) targext.o link.o
$(LIBGNAT
) $(LIBINTL
) ..
/..
/..
/libiberty
/libiberty.a
$(SYSLIBS
) $(TGT_LIB
)
254 # Convert the target variable into a space separated list of architecture,
255 # manufacturer, and operating system and assign each of those to its own
258 host
:=$(subst -, ,$(host_canonical
))
259 targ
:=$(subst -, ,$(target
))
260 arch
:=$(word 1,$(targ
))
261 ifeq ($(words $(targ
)),2)
263 osys
:=$(word 2,$(targ
))
265 manu
:=$(word 2,$(targ
))
266 osys
:=$(word 3,$(targ
))
269 # Specify the directories to be searched for header files.
270 # Both . and srcdir are used, in that order,
271 # so that tm.h and config.h will be found in the compilation
272 # subdirectory rather than in the source directory.
273 INCLUDES
= -I-
-I.
-I..
-I
$(srcdir)/ada
-I
$(srcdir) -I
$(srcdir)/config \
274 -I
$(srcdir)/..
/include
276 ADA_INCLUDES
= -I-
-I.
-I
$(srcdir)/ada
278 INCLUDES_FOR_SUBDIR
= -iquote .
-iquote ..
-iquote ..
/..
-iquote
$(fsrcdir
)/ada \
279 -I
$(fsrcdir
)/..
/include
281 ifeq ($(strip $(filter-out cygwin32
% mingw32
% pe
,$(osys
))),)
282 # On Windows native the tconfig.h files used by C runtime files needs to have
283 # the gcc source dir in its include dir list
284 INCLUDES_FOR_SUBDIR
= -iquote .
-iquote ..
-iquote ..
/..
-iquote
$(fsrcdir
)/ada \
285 -I
$(fsrcdir
)/..
/include -I
$(fsrcdir
)
288 ADA_INCLUDES_FOR_SUBDIR
= -I.
-I
$(fsrcdir
)/ada
290 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
293 # Say how to compile Ada programs.
294 .SUFFIXES
: .ada .adb .ads .asm
296 # Always use -I$(srcdir)/config when compiling.
298 $(CC
) -c
-x assembler
$< $(OUTPUT_OPTION
)
301 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
302 $(INCLUDES
) $< $(OUTPUT_OPTION
)
305 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
308 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
310 # how to regenerate this file
311 Makefile
: ..
/config.status
$(srcdir)/ada
/gcc-interface
/Makefile.in
$(srcdir)/ada
/Makefile.in
$(srcdir)/version.c
313 LANGUAGES
="$(CONFIG_LANGUAGES)" \
315 CONFIG_FILES
="ada/gcc-interface/Makefile ada/Makefile" $(SHELL
) config.status
317 # This tells GNU make version 3 not to export all the variables
318 # defined in this file into the environment.
321 # Lists of files for various purposes.
323 GNATLINK_OBJS
= gnatlink.o \
324 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
325 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
326 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
327 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
328 types.o validsw.o widechar.o
330 GNATMAKE_OBJS
= a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o \
331 atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o errout.o \
332 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
333 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
334 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
335 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o \
336 output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o \
337 prj-conf.o prj-pp.o prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o \
338 prj-proc.o prj-strt.o prj-tree.o prj-util.o restrict.o rident.o s-exctab.o \
339 s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o \
340 s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o \
341 sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o \
342 switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o uintp.o \
343 uname.o urealp.o usage.o widechar.o \
344 $(EXTRA_GNATMAKE_OBJS
)
346 # Make arch match the current multilib so that the RTS selection code
347 # picks up the right files. For a given target this must be coherent
348 # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*.
350 ifeq ($(strip $(filter-out %x86_64
, $(arch
))),)
351 ifeq ($(strip $(MULTISUBDIR
)),/32)
356 # ???: handle more multilib targets
358 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
359 # The members of each pair must be separated by a '<' and no whitespace.
360 # Each pair must be separated by some amount of whitespace from the following
365 LIBGNAT_TARGET_PAIRS
= \
366 a-intnam.ads
<a-intnam-dummy.ads \
367 s-inmaop.adb
<s-inmaop-dummy.adb \
368 s-intman.adb
<s-intman-dummy.adb \
369 s-osinte.ads
<s-osinte-dummy.ads \
370 s-osprim.adb
<s-osprim-posix.adb \
371 s-taprop.adb
<s-taprop-dummy.adb \
372 s-taspri.ads
<s-taspri-dummy.ads
374 # When using the GCC exception handling mechanism, we need to use an
375 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
379 # Default shared object option. Note that we rely on the fact that the "soname"
380 # option will always be present and last in this flag, so that we can have
381 # $(SO_OPTS)libgnat-x.xx
383 SO_OPTS
= -Wl
,-soname
,
385 # Default gnatlib-shared target.
386 # By default, equivalent to gnatlib.
387 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
388 # target when supported.
389 GNATLIB_SHARED
= gnatlib
391 # default value for gnatmake's target dependent file
394 # By default, build socket support units. On platforms that do not support
395 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
396 # to LIBGNAT_TARGET_PAIRS.
398 GNATRTL_SOCKETS_OBJS
= g-soccon
$(objext
) g-socket
$(objext
) g-socthi
$(objext
) \
399 g-soliop
$(objext
) g-sothco
$(objext
)
401 DUMMY_SOCKETS_TARGET_PAIRS
= \
402 g-socket.adb
<g-socket-dummy.adb \
403 g-socket.ads
<g-socket-dummy.ads \
404 g-socthi.adb
<g-socthi-dummy.adb \
405 g-socthi.ads
<g-socthi-dummy.ads \
406 g-sothco.adb
<g-sothco-dummy.adb \
407 g-sothco.ads
<g-sothco-dummy.ads
409 # On platforms where atomic increment/decrement operations are supported,
410 # special version of Ada.Strings.Unbounded package can be used.
412 ATOMICS_TARGET_PAIRS
= \
413 a-stunau.adb
<a-stunau-shared.adb \
414 a-suteio.adb
<a-suteio-shared.adb \
415 a-strunb.ads
<a-strunb-shared.ads \
416 a-strunb.adb
<a-strunb-shared.adb \
417 a-stwiun.adb
<a-stwiun-shared.adb \
418 a-stwiun.ads
<a-stwiun-shared.ads \
419 a-swunau.adb
<a-swunau-shared.adb \
420 a-swuwti.adb
<a-swuwti-shared.adb \
421 a-stzunb.adb
<a-stzunb-shared.adb \
422 a-stzunb.ads
<a-stzunb-shared.ads \
423 a-szunau.adb
<a-szunau-shared.adb \
424 a-szuzti.adb
<a-szuzti-shared.adb
426 ATOMICS_BUILTINS_TARGET_PAIRS
= \
427 s-atocou.adb
<s-atocou-builtin.adb
429 # Special version of units for x86 and x86-64 platforms.
432 a-numaux.ads
<a-numaux-x86.ads \
433 a-numaux.adb
<a-numaux-x86.adb \
434 g-bytswa.adb
<g-bytswa-x86.adb \
435 s-atocou.adb
<s-atocou-x86.adb
437 X86_64_TARGET_PAIRS
= \
438 a-numaux.ads
<a-numaux-x86.ads \
439 a-numaux.adb
<a-numaux-x86.adb \
440 g-bytswa.adb
<g-bytswa-x86.adb \
441 s-atocou.adb
<s-atocou-builtin.adb
443 LIB_VERSION
= $(strip $(shell grep
' Library_Version :' $(fsrcpfx
)ada
/gnatvsn.ads | sed
-e
's/.*"\(.*\)".*/\1/'))
445 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
446 # $(strip STRING) removes leading and trailing spaces from STRING.
447 # If what's left is null then it's a match.
449 ifeq ($(strip $(filter-out m68k
% wrs vx
%,$(targ
))),)
450 LIBGNAT_TARGET_PAIRS
= \
451 a-intnam.ads
<a-intnam-vxworks.ads \
452 a-numaux.ads
<a-numaux-vxworks.ads \
453 s-inmaop.adb
<s-inmaop-vxworks.adb \
454 s-interr.adb
<s-interr-hwint.adb \
455 s-intman.ads
<s-intman-vxworks.ads \
456 s-intman.adb
<s-intman-vxworks.adb \
457 s-osinte.adb
<s-osinte-vxworks.adb \
458 s-osinte.ads
<s-osinte-vxworks.ads \
459 s-osprim.adb
<s-osprim-vxworks.adb \
460 s-parame.ads
<s-parame-vxworks.ads \
461 s-parame.adb
<s-parame-vxworks.adb \
462 s-stchop.ads
<s-stchop-limit.ads \
463 s-stchop.adb
<s-stchop-vxworks.adb \
464 s-taprop.adb
<s-taprop-vxworks.adb \
465 s-tasinf.ads
<s-tasinf-vxworks.ads \
466 s-taspri.ads
<s-taspri-vxworks.ads \
467 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
468 s-vxwork.ads
<s-vxwork-m68k.ads \
469 g-socthi.ads
<g-socthi-vxworks.ads \
470 g-socthi.adb
<g-socthi-vxworks.adb \
471 g-stsifd.adb
<g-stsifd-sockets.adb \
472 system.ads
<system-vxworks-m68k.ads
474 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb
476 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
477 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
479 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
480 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
482 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
483 LIBGNAT_TARGET_PAIRS
+= \
484 s-traces.adb
<s-traces-default.adb \
485 s-tratas.adb
<s-tratas-default.adb \
486 s-trafor.adb
<s-trafor-default.adb \
487 s-trafor.ads
<s-trafor-default.ads \
488 s-tfsetr.adb
<s-tfsetr-vxworks.adb
492 ifeq ($(strip $(filter-out e500
% powerpc
% wrs vxworks
,$(targ
))),)
493 LIBGNAT_TARGET_PAIRS
= \
494 a-intnam.ads
<a-intnam-vxworks.ads \
495 a-numaux.ads
<a-numaux-vxworks.ads \
496 s-inmaop.adb
<s-inmaop-vxworks.adb \
497 s-intman.ads
<s-intman-vxworks.ads \
498 s-intman.adb
<s-intman-vxworks.adb \
499 s-osinte.ads
<s-osinte-vxworks.ads \
500 s-osinte.adb
<s-osinte-vxworks.adb \
501 s-osprim.adb
<s-osprim-vxworks.adb \
502 s-parame.ads
<s-parame-vxworks.ads \
503 s-parame.adb
<s-parame-vxworks.adb \
504 s-stchop.ads
<s-stchop-limit.ads \
505 s-stchop.adb
<s-stchop-vxworks.adb \
506 s-taprop.adb
<s-taprop-vxworks.adb \
507 s-tasinf.ads
<s-tasinf-vxworks.ads \
508 s-taspri.ads
<s-taspri-vxworks.ads \
509 s-vxwork.ads
<s-vxwork-ppc.ads \
510 g-socthi.ads
<g-socthi-vxworks.ads \
511 g-socthi.adb
<g-socthi-vxworks.adb \
512 g-stsifd.adb
<g-stsifd-sockets.adb \
513 $(ATOMICS_TARGET_PAIRS
) \
514 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
517 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
518 indepsw.adb
<indepsw-gnu.adb
520 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
521 LIBGNAT_TARGET_PAIRS
+= \
522 s-traces.adb
<s-traces-default.adb \
523 s-trafor.adb
<s-trafor-default.adb \
524 s-trafor.ads
<s-trafor-default.ads \
525 s-tratas.adb
<s-tratas-default.adb \
526 s-tfsetr.adb
<s-tfsetr-vxworks.adb
529 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
530 LIBGNAT_TARGET_PAIRS
+= \
531 s-vxwext.ads
<s-vxwext-rtp.ads \
532 s-vxwext.adb
<s-vxwext-rtp.adb \
533 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
534 system.ads
<system-vxworks-ppc-rtp.ads
536 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
538 ifeq ($(strip $(filter-out rtp-smp
,$(THREAD_KIND
))),)
539 LIBGNAT_TARGET_PAIRS
+= \
540 s-mudido.adb
<s-mudido-affinity.adb \
541 s-vxwext.ads
<s-vxwext-rtp.ads \
542 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
543 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
544 system.ads
<system-vxworks-ppc-rtp.ads
546 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
547 EXTRA_LIBGNAT_OBJS
+=affinity.o
548 EXTRA_LIBGNAT_SRCS
+=affinity.c
550 ifeq ($(strip $(filter-out kernel-smp
,$(THREAD_KIND
))),)
551 LIBGNAT_TARGET_PAIRS
+= \
552 s-interr.adb
<s-interr-hwint.adb \
553 s-mudido.adb
<s-mudido-affinity.adb \
554 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
555 s-vxwext.ads
<s-vxwext-kernel.ads \
556 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
557 system.ads
<system-vxworks-ppc-kernel.ads
560 EXTRA_LIBGNAT_OBJS
+=affinity.o
561 EXTRA_LIBGNAT_SRCS
+=affinity.c
563 LIBGNAT_TARGET_PAIRS
+= \
564 s-interr.adb
<s-interr-hwint.adb \
565 s-tpopsp.adb
<s-tpopsp-vxworks.adb
567 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
569 LIBGNAT_TARGET_PAIRS
+= \
570 s-vxwext.ads
<s-vxwext-kernel.ads \
571 s-vxwext.adb
<s-vxwext-kernel.adb \
572 system.ads
<system-vxworks-ppc-kernel.ads
574 LIBGNAT_TARGET_PAIRS
+= \
575 system.ads
<system-vxworks-ppc.ads
578 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
582 EXTRA_GNATRTL_TASKING_OBJS
+= s-vxwork.o s-vxwext.o
584 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
585 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
589 ifeq ($(strip $(filter-out powerpc
% e500v2 wrs vxworksae
,$(targ
))),)
590 # target pairs for vthreads runtime
591 LIBGNAT_TARGET_PAIRS
= \
592 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
593 a-intnam.ads
<a-intnam-vxworks.ads \
594 a-numaux.ads
<a-numaux-vxworks.ads \
595 g-io.adb
<g-io-vxworks-ppc-cert.adb \
596 s-inmaop.adb
<s-inmaop-vxworks.adb \
597 s-interr.adb
<s-interr-hwint.adb \
598 s-intman.ads
<s-intman-vxworks.ads \
599 s-intman.adb
<s-intman-vxworks.adb \
600 s-osinte.adb
<s-osinte-vxworks.adb \
601 s-osinte.ads
<s-osinte-vxworks.ads \
602 s-osprim.adb
<s-osprim-vxworks.adb \
603 s-parame.ads
<s-parame-ae653.ads \
604 s-parame.adb
<s-parame-vxworks.adb \
605 s-taprop.adb
<s-taprop-vxworks.adb \
606 s-tasinf.ads
<s-tasinf-vxworks.ads \
607 s-taspri.ads
<s-taspri-vxworks.ads \
608 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
609 s-vxwext.adb
<s-vxwext-noints.adb \
610 s-vxwext.ads
<s-vxwext-vthreads.ads \
611 s-vxwork.ads
<s-vxwork-ppc.ads \
612 system.ads
<system-vxworks-ppc-vthread.ads \
613 $(ATOMICS_TARGET_PAIRS
) \
614 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
617 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
618 indepsw.adb
<indepsw-gnu.adb
620 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
621 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
623 # Extra pairs for the vthreads runtime
624 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
625 LIBGNAT_TARGET_PAIRS
+= \
626 s-thread.adb
<s-thread-ae653.adb \
627 $(DUMMY_SOCKETS_TARGET_PAIRS
)
629 GNATRTL_SOCKETS_OBJS
=
630 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
632 LIBGNAT_TARGET_PAIRS
+= \
633 g-socthi.ads
<g-socthi-vxworks.ads \
634 g-socthi.adb
<g-socthi-vxworks.adb \
635 g-stsifd.adb
<g-stsifd-sockets.adb
638 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
639 LIBGNAT_TARGET_PAIRS
+= \
640 s-traces.adb
<s-traces-default.adb \
641 s-trafor.adb
<s-trafor-default.adb \
642 s-trafor.ads
<s-trafor-default.ads \
643 s-tratas.adb
<s-tratas-default.adb \
644 s-tfsetr.adb
<s-tfsetr-vxworks.adb
649 ifeq ($(strip $(filter-out e500
% powerpc
% wrs vxworksmils
,$(targ
))),)
650 # target pairs for vthreads runtime
651 LIBGNAT_TARGET_PAIRS
= \
652 a-elchha.adb
<a-elchha-vx6-raven-cert.adb \
653 a-intnam.ads
<a-intnam-vxworks.ads \
654 a-numaux.ads
<a-numaux-vxworks.ads \
655 g-io.adb
<g-io-vxworks-ppc-cert.adb \
656 s-inmaop.adb
<s-inmaop-vxworks.adb \
657 s-interr.adb
<s-interr-hwint.adb \
658 s-intman.ads
<s-intman-vxworks.ads \
659 s-intman.adb
<s-intman-vxworks.adb \
660 s-osinte.adb
<s-osinte-vxworks.adb \
661 s-osinte.ads
<s-osinte-vxworks.ads \
662 s-osprim.adb
<s-osprim-vxworks.adb \
663 s-parame.ads
<s-parame-ae653.ads \
664 s-parame.adb
<s-parame-vxworks.adb \
665 s-stchop.adb
<s-stchop-vxworks.adb \
666 s-stchop.ads
<s-stchop-limit.ads \
667 s-taprop.adb
<s-taprop-vxworks.adb \
668 s-tasinf.ads
<s-tasinf-vxworks.ads \
669 s-taspri.ads
<s-taspri-vxworks.ads \
670 s-thread.adb
<s-thread-ae653.adb \
671 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
672 s-vxwork.ads
<s-vxwork-ppc.ads \
673 system.ads
<system-vxworks-ppc.ads \
674 $(ATOMICS_TARGET_PAIRS
) \
675 $(ATOMICS_BUILTINS_TARGET_PAIRS
) \
676 $(DUMMY_SOCKETS_TARGET_PAIRS
)
679 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
680 indepsw.adb
<indepsw-gnu.adb
682 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-thread.o s-vxwexc.o
683 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
685 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
686 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
687 GNATRTL_SOCKETS_OBJS
=
689 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
690 LIBGNAT_TARGET_PAIRS
+= \
691 s-traces.adb
<s-traces-default.adb \
692 s-trafor.adb
<s-trafor-default.adb \
693 s-trafor.ads
<s-trafor-default.ads \
694 s-tratas.adb
<s-tratas-default.adb \
695 s-tfsetr.adb
<s-tfsetr-vxworks.adb
699 # vxworksae / vxworks 653 for x86 (vxsim) - ?? vxworksmils not implemented
700 ifeq ($(strip $(filter-out %86 wrs vxworksae vxworksmils
,$(targ
))),)
701 # target pairs for kernel + vthreads runtime
702 LIBGNAT_TARGET_PAIRS
= \
703 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
704 a-intnam.ads
<a-intnam-vxworks.ads \
705 a-sytaco.ads
<1asytaco.ads \
706 a-sytaco.adb
<1asytaco.adb \
707 g-io.adb
<g-io-vxworks-ppc-cert.adb \
708 s-inmaop.adb
<s-inmaop-vxworks.adb \
709 s-interr.adb
<s-interr-hwint.adb \
710 s-intman.ads
<s-intman-vxworks.ads \
711 s-intman.adb
<s-intman-vxworks.adb \
712 s-osinte.adb
<s-osinte-vxworks.adb \
713 s-osinte.ads
<s-osinte-vxworks.ads \
714 s-osprim.adb
<s-osprim-vxworks.adb \
715 s-parame.ads
<s-parame-ae653.ads \
716 s-taprop.adb
<s-taprop-vxworks.adb \
717 s-tasinf.ads
<s-tasinf-vxworks.ads \
718 s-taspri.ads
<s-taspri-vxworks.ads \
719 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
720 s-vxwext.adb
<s-vxwext-noints.adb \
721 s-vxwext.ads
<s-vxwext-vthreads.ads \
722 s-vxwork.ads
<s-vxwork-x86.ads \
723 $(ATOMICS_TARGET_PAIRS
) \
724 $(X86_TARGET_PAIRS
) \
725 system.ads
<system-vxworks-x86.ads
728 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
729 indepsw.adb
<indepsw-gnu.adb
731 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
732 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
734 # Extra pairs for the vthreads runtime
735 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
736 LIBGNAT_TARGET_PAIRS
+= \
737 s-thread.adb
<s-thread-ae653.adb \
738 $(DUMMY_SOCKETS_TARGET_PAIRS
)
740 GNATRTL_SOCKETS_OBJS
=
741 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
743 LIBGNAT_TARGET_PAIRS
+= \
744 g-socthi.ads
<g-socthi-vxworks.ads \
745 g-socthi.adb
<g-socthi-vxworks.adb \
746 g-stsifd.adb
<g-stsifd-sockets.adb
749 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
750 LIBGNAT_TARGET_PAIRS
+= \
751 s-traces.adb
<s-traces-default.adb \
752 s-trafor.adb
<s-trafor-default.adb \
753 s-trafor.ads
<s-trafor-default.ads \
754 s-tratas.adb
<s-tratas-default.adb \
755 s-tfsetr.adb
<s-tfsetr-vxworks.adb
759 ifeq ($(strip $(filter-out sparc
% wrs vx
%,$(targ
))),)
760 LIBGNAT_TARGET_PAIRS
= \
761 a-intnam.ads
<a-intnam-vxworks.ads \
762 a-numaux.ads
<a-numaux-vxworks.ads \
763 s-inmaop.adb
<s-inmaop-vxworks.adb \
764 s-interr.adb
<s-interr-hwint.adb \
765 s-intman.ads
<s-intman-vxworks.ads \
766 s-intman.adb
<s-intman-vxworks.adb \
767 s-osinte.adb
<s-osinte-vxworks.adb \
768 s-osinte.ads
<s-osinte-vxworks.ads \
769 s-osprim.adb
<s-osprim-vxworks.adb \
770 s-parame.ads
<s-parame-vxworks.ads \
771 s-parame.adb
<s-parame-vxworks.adb \
772 s-stchop.ads
<s-stchop-limit.ads \
773 s-stchop.adb
<s-stchop-vxworks.adb \
774 s-taprop.adb
<s-taprop-vxworks.adb \
775 s-tasinf.ads
<s-tasinf-vxworks.ads \
776 s-taspri.ads
<s-taspri-vxworks.ads \
777 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
778 s-vxwork.ads
<s-vxwork-sparcv9.ads \
779 g-socthi.ads
<g-socthi-vxworks.ads \
780 g-socthi.adb
<g-socthi-vxworks.adb \
781 g-stsifd.adb
<g-stsifd-sockets.adb \
782 system.ads
<system-vxworks-sparcv9.ads \
785 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
786 indepsw.adb
<indepsw-gnu.adb
788 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
789 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
791 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
792 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
795 ifeq ($(strip $(filter-out %86 wrs vxworks
,$(targ
))),)
796 LIBGNAT_TARGET_PAIRS
= \
797 a-intnam.ads
<a-intnam-vxworks.ads \
798 i-vxwork.ads
<i-vxwork-x86.ads \
799 s-osinte.adb
<s-osinte-vxworks.adb \
800 s-osinte.ads
<s-osinte-vxworks.ads \
801 s-inmaop.adb
<s-inmaop-vxworks.adb \
802 s-intman.ads
<s-intman-vxworks.ads \
803 s-intman.adb
<s-intman-vxworks.adb \
804 s-osprim.adb
<s-osprim-vxworks.adb \
805 s-parame.ads
<s-parame-vxworks.ads \
806 s-parame.adb
<s-parame-vxworks.adb \
807 s-stchop.ads
<s-stchop-limit.ads \
808 s-stchop.adb
<s-stchop-vxworks.adb \
809 s-taprop.adb
<s-taprop-vxworks.adb \
810 s-tasinf.ads
<s-tasinf-vxworks.ads \
811 s-taspri.ads
<s-taspri-vxworks.ads \
812 s-vxwork.ads
<s-vxwork-x86.ads \
813 g-socthi.ads
<g-socthi-vxworks.ads \
814 g-socthi.adb
<g-socthi-vxworks.adb \
815 g-stsifd.adb
<g-stsifd-sockets.adb \
816 $(ATOMICS_TARGET_PAIRS
) \
820 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
821 indepsw.adb
<indepsw-gnu.adb
823 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
824 LIBGNAT_TARGET_PAIRS
+= \
825 s-traces.adb
<s-traces-default.adb \
826 s-trafor.adb
<s-trafor-default.adb \
827 s-trafor.ads
<s-trafor-default.ads \
828 s-tratas.adb
<s-tratas-default.adb \
829 s-tfsetr.adb
<s-tfsetr-vxworks.adb
832 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
833 LIBGNAT_TARGET_PAIRS
+= \
834 s-vxwext.ads
<s-vxwext-rtp.ads \
835 s-vxwext.adb
<s-vxwext-rtp.adb \
836 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
837 system.ads
<system-vxworks-x86-rtp.ads
839 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
841 ifeq ($(strip $(filter-out rtp-smp
, $(THREAD_KIND
))),)
842 LIBGNAT_TARGET_PAIRS
+= \
843 s-mudido.adb
<s-mudido-affinity.adb \
844 s-vxwext.ads
<s-vxwext-rtp.ads \
845 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
846 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
847 system.ads
<system-vxworks-x86-rtp.ads
849 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
850 EXTRA_LIBGNAT_SRCS
+=affinity.o
851 EXTRA_LIBGNAT_SRCS
+=affinity.c
853 ifeq ($(strip $(filter-out kernel-smp
, $(THREAD_KIND
))),)
854 LIBGNAT_TARGET_PAIRS
+= \
855 s-interr.adb
<s-interr-hwint.adb \
856 s-mudido.adb
<s-mudido-affinity.adb \
857 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
858 s-vxwext.ads
<s-vxwext-kernel.ads \
859 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
860 system.ads
<system-vxworks-x86-kernel.ads
861 EXTRA_LIBGNAT_OBJS
+=affinity.o
862 EXTRA_LIBGNAT_SRCS
+=affinity.c
864 LIBGNAT_TARGET_PAIRS
+= \
865 s-interr.adb
<s-interr-hwint.adb \
866 s-tpopsp.adb
<s-tpopsp-vxworks.adb
868 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
869 LIBGNAT_TARGET_PAIRS
+= \
870 s-vxwext.ads
<s-vxwext-kernel.ads \
871 s-vxwext.adb
<s-vxwext-kernel.adb \
872 system.ads
<system-vxworks-x86-kernel.ads
874 LIBGNAT_TARGET_PAIRS
+= \
875 system.ads
<system-vxworks-x86.ads
879 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
882 EXTRA_GNATRTL_TASKING_OBJS
+= s-vxwork.o s-vxwext.o
884 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
885 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
888 ifeq ($(strip $(filter-out arm
% coff wrs vx
%,$(targ
))),)
889 LIBGNAT_TARGET_PAIRS
= \
890 a-intnam.ads
<a-intnam-vxworks.ads \
891 a-numaux.ads
<a-numaux-vxworks.ads \
892 s-inmaop.adb
<s-inmaop-vxworks.adb \
893 s-interr.adb
<s-interr-hwint.adb \
894 s-intman.ads
<s-intman-vxworks.ads \
895 s-intman.adb
<s-intman-vxworks.adb \
896 s-osinte.adb
<s-osinte-vxworks.adb \
897 s-osinte.ads
<s-osinte-vxworks.ads \
898 s-osprim.adb
<s-osprim-vxworks.adb \
899 s-parame.ads
<s-parame-vxworks.ads \
900 s-parame.adb
<s-parame-vxworks.adb \
901 s-stchop.ads
<s-stchop-limit.ads \
902 s-stchop.adb
<s-stchop-vxworks.adb \
903 s-taprop.adb
<s-taprop-vxworks.adb \
904 s-tasinf.ads
<s-tasinf-vxworks.ads \
905 s-taspri.ads
<s-taspri-vxworks.ads \
906 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
907 s-vxwork.ads
<s-vxwork-arm.ads \
908 g-socthi.ads
<g-socthi-vxworks.ads \
909 g-socthi.adb
<g-socthi-vxworks.adb \
910 g-stsifd.adb
<g-stsifd-sockets.adb \
911 system.ads
<system-vxworks-arm.ads
914 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
915 indepsw.adb
<indepsw-gnu.adb
917 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
918 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
920 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
921 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
924 ifeq ($(strip $(filter-out mips
% wrs vx
%,$(targ
))),)
925 LIBGNAT_TARGET_PAIRS
= \
926 a-intnam.ads
<a-intnam-vxworks.ads \
927 a-numaux.ads
<a-numaux-vxworks.ads \
928 s-inmaop.adb
<s-inmaop-vxworks.adb \
929 s-interr.adb
<s-interr-hwint.adb \
930 s-intman.ads
<s-intman-vxworks.ads \
931 s-intman.adb
<s-intman-vxworks.adb \
932 s-osinte.adb
<s-osinte-vxworks.adb \
933 s-osinte.ads
<s-osinte-vxworks.ads \
934 s-osprim.adb
<s-osprim-vxworks.adb \
935 s-parame.ads
<s-parame-vxworks.ads \
936 s-parame.adb
<s-parame-vxworks.adb \
937 s-stchop.ads
<s-stchop-limit.ads \
938 s-stchop.adb
<s-stchop-vxworks.adb \
939 s-taprop.adb
<s-taprop-vxworks.adb \
940 s-tasinf.ads
<s-tasinf-vxworks.ads \
941 s-taspri.ads
<s-taspri-vxworks.ads \
942 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
943 s-vxwork.ads
<s-vxwork-mips.ads \
944 g-socthi.ads
<g-socthi-vxworks.ads \
945 g-socthi.adb
<g-socthi-vxworks.adb \
946 g-stsifd.adb
<g-stsifd-sockets.adb \
947 system.ads
<system-vxworks-mips.ads
950 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
951 indepsw.adb
<indepsw-gnu.adb
953 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
954 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
956 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
957 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
960 ifeq ($(strip $(filter-out sparc
% sun solaris
%,$(targ
))),)
961 LIBGNAT_TARGET_PAIRS_COMMON
= \
962 a-intnam.ads
<a-intnam-solaris.ads \
963 s-inmaop.adb
<s-inmaop-posix.adb \
964 s-intman.adb
<s-intman-solaris.adb \
965 s-mudido.adb
<s-mudido-affinity.adb \
966 s-osinte.adb
<s-osinte-solaris.adb \
967 s-osinte.ads
<s-osinte-solaris.ads \
968 s-osprim.adb
<s-osprim-solaris.adb \
969 s-taprop.adb
<s-taprop-solaris.adb \
970 s-tasinf.adb
<s-tasinf-solaris.adb \
971 s-tasinf.ads
<s-tasinf-solaris.ads \
972 s-taspri.ads
<s-taspri-solaris.ads \
973 s-tpopsp.adb
<s-tpopsp-solaris.adb \
974 g-soliop.ads
<g-soliop-solaris.ads
976 LIBGNAT_TARGET_PAIRS_32
= \
977 system.ads
<system-solaris-sparc.ads
979 LIBGNAT_TARGET_PAIRS_64
= \
980 system.ads
<system-solaris-sparcv9.ads \
981 $(ATOMICS_TARGET_PAIRS
) \
982 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
984 ifeq ($(strip $(filter-out sparc sun solaris
%,$(targ
))),)
985 ifeq ($(strip $(MULTISUBDIR
)),/sparcv9
)
986 LIBGNAT_TARGET_PAIRS
= \
987 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
989 LIBGNAT_TARGET_PAIRS
= \
990 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
993 ifeq ($(strip $(MULTISUBDIR
)),/sparcv8plus
)
994 LIBGNAT_TARGET_PAIRS
= \
995 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
997 LIBGNAT_TARGET_PAIRS
= \
998 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1002 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
1005 THREADSLIB
= -lposix4
-lthread
1006 MISCLIB
= -lposix4
-lnsl
-lsocket
1008 GNATLIB_SHARED
= gnatlib-shared-dual
1010 LIBRARY_VERSION
:= $(LIB_VERSION
)
1012 ifeq ($(strip $(filter-out pthread PTHREAD
,$(THREAD_KIND
))),)
1013 LIBGNAT_TARGET_PAIRS
= \
1014 a-intnam.ads
<a-intnam-solaris.ads \
1015 s-inmaop.adb
<s-inmaop-posix.adb \
1016 s-intman.adb
<s-intman-posix.adb \
1017 s-osinte.adb
<s-osinte-posix.adb \
1018 s-osinte.ads
<s-osinte-solaris-posix.ads \
1019 s-osprim.adb
<s-osprim-solaris.adb \
1020 s-taprop.adb
<s-taprop-posix.adb \
1021 s-taspri.ads
<s-taspri-posix.ads \
1022 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1023 g-soliop.ads
<g-soliop-solaris.ads \
1024 system.ads
<system-solaris-sparc.ads
1026 THREADSLIB
= -lposix4
-lpthread
1029 ifeq ($(strip $(filter-out m64
,$(THREAD_KIND
))),)
1030 LIBGNAT_TARGET_PAIRS
= $(LIBGNAT_TARGET_PAIRS_64
)
1034 ifeq ($(strip $(filter-out %86 %x86_64 solaris2
%,$(arch
) $(osys
))),)
1035 LIBGNAT_TARGET_PAIRS_COMMON
= \
1036 a-intnam.ads
<a-intnam-solaris.ads \
1037 s-inmaop.adb
<s-inmaop-posix.adb \
1038 s-intman.adb
<s-intman-solaris.adb \
1039 s-mudido.adb
<s-mudido-affinity.adb \
1040 s-osinte.adb
<s-osinte-solaris.adb \
1041 s-osinte.ads
<s-osinte-solaris.ads \
1042 s-osprim.adb
<s-osprim-solaris.adb \
1043 s-taprop.adb
<s-taprop-solaris.adb \
1044 s-tasinf.adb
<s-tasinf-solaris.adb \
1045 s-tasinf.ads
<s-tasinf-solaris.ads \
1046 s-taspri.ads
<s-taspri-solaris.ads \
1047 s-tpopsp.adb
<s-tpopsp-solaris.adb \
1048 g-soliop.ads
<g-soliop-solaris.ads \
1049 $(ATOMICS_TARGET_PAIRS
)
1051 LIBGNAT_TARGET_PAIRS_32
= \
1052 $(X86_TARGET_PAIRS
) \
1053 system.ads
<system-solaris-x86.ads
1055 LIBGNAT_TARGET_PAIRS_64
= \
1056 $(X86_64_TARGET_PAIRS
) \
1057 system.ads
<system-solaris-x86_64.ads
1059 ifeq ($(strip $(filter-out %86 solaris2
%,$(arch
) $(osys
))),)
1060 ifeq ($(strip $(MULTISUBDIR
)),/amd64
)
1061 LIBGNAT_TARGET_PAIRS
= \
1062 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1064 LIBGNAT_TARGET_PAIRS
= \
1065 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1068 ifeq ($(strip $(MULTISUBDIR
)),/32)
1069 LIBGNAT_TARGET_PAIRS
= \
1070 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1072 LIBGNAT_TARGET_PAIRS
= \
1073 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1077 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
1080 THREADSLIB
= -lposix4
-lthread
1081 MISCLIB
= -lposix4
-lnsl
-lsocket
1083 GNATLIB_SHARED
= gnatlib-shared-dual
1085 LIBRARY_VERSION
:= $(LIB_VERSION
)
1088 ifeq ($(strip $(filter-out %86 linux
%,$(arch
) $(osys
))),)
1089 LIBGNAT_TARGET_PAIRS
= \
1090 a-intnam.ads
<a-intnam-linux.ads \
1091 a-synbar.adb
<a-synbar-posix.adb \
1092 a-synbar.ads
<a-synbar-posix.ads \
1093 s-inmaop.adb
<s-inmaop-posix.adb \
1094 s-intman.adb
<s-intman-posix.adb \
1095 s-tpopsp.adb
<s-tpopsp-tls.adb \
1096 g-sercom.adb
<g-sercom-linux.adb \
1097 a-exetim.adb
<a-exetim-posix.adb \
1098 a-exetim.ads
<a-exetim-default.ads \
1099 s-linux.ads
<s-linux.ads \
1100 s-osinte.adb
<s-osinte-posix.adb \
1101 system.ads
<system-linux-x86.ads \
1102 $(ATOMICS_TARGET_PAIRS
) \
1105 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1106 LIBGNAT_TARGET_PAIRS
+= \
1107 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1108 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1109 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1110 s-taspri.ads
<s-taspri-linux-xenomai.ads
1112 LIBGNAT_TARGET_PAIRS
+= \
1113 s-mudido.adb
<s-mudido-affinity.adb \
1114 s-osinte.ads
<s-osinte-linux.ads \
1115 s-osprim.adb
<s-osprim-posix.adb \
1116 s-taprop.adb
<s-taprop-linux.adb \
1117 s-tasinf.ads
<s-tasinf-linux.ads \
1118 s-tasinf.adb
<s-tasinf-linux.adb \
1119 s-taspri.ads
<s-taspri-posix.ads
1123 THREADSLIB
= -lpthread
-lrt
1124 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1125 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1127 TOOLS_TARGET_PAIRS
= \
1128 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1129 indepsw.adb
<indepsw-gnu.adb
1131 GNATLIB_SHARED
= gnatlib-shared-dual
1133 LIBRARY_VERSION
:= $(LIB_VERSION
)
1136 ifeq ($(strip $(filter-out %86 kfreebsd
%,$(arch
) $(osys
))),)
1137 LIBGNAT_TARGET_PAIRS
= \
1138 a-intnam.ads
<a-intnam-freebsd.ads \
1139 s-inmaop.adb
<s-inmaop-posix.adb \
1140 s-intman.adb
<s-intman-posix.adb \
1141 s-osinte.adb
<s-osinte-posix.adb \
1142 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1143 s-osprim.adb
<s-osprim-posix.adb \
1144 s-taprop.adb
<s-taprop-linux.adb \
1145 s-tasinf.ads
<s-tasinf-linux.ads \
1146 s-tasinf.adb
<s-tasinf-linux.adb \
1147 s-taspri.ads
<s-taspri-posix.ads \
1148 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1149 $(ATOMICS_TARGET_PAIRS
) \
1150 $(X86_TARGET_PAIRS
) \
1151 system.ads
<system-freebsd-x86.ads
1153 TOOLS_TARGET_PAIRS
= \
1154 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1155 indepsw.adb
<indepsw-gnu.adb
1158 THREADSLIB
= -lpthread
1159 GNATLIB_SHARED
= gnatlib-shared-dual
1161 LIBRARY_VERSION
:= $(LIB_VERSION
)
1164 ifeq ($(strip $(filter-out x86_64 kfreebsd
%,$(arch
) $(osys
))),)
1165 LIBGNAT_TARGET_PAIRS
= \
1166 a-intnam.ads
<a-intnam-freebsd.ads \
1167 a-numaux.adb
<a-numaux-x86.adb \
1168 a-numaux.ads
<a-numaux-x86.ads \
1169 s-inmaop.adb
<s-inmaop-posix.adb \
1170 s-intman.adb
<s-intman-posix.adb \
1171 s-osinte.adb
<s-osinte-posix.adb \
1172 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1173 s-osprim.adb
<s-osprim-posix.adb \
1174 s-taprop.adb
<s-taprop-linux.adb \
1175 s-tasinf.ads
<s-tasinf-linux.ads \
1176 s-tasinf.adb
<s-tasinf-linux.adb \
1177 s-taspri.ads
<s-taspri-posix.ads \
1178 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1179 system.ads
<system-freebsd-x86_64.ads
1181 TOOLS_TARGET_PAIRS
= \
1182 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1183 indepsw.adb
<indepsw-gnu.adb
1186 THREADSLIB
= -lpthread
1187 GNATLIB_SHARED
= gnatlib-shared-dual
1189 LIBRARY_VERSION
:= $(LIB_VERSION
)
1192 ifeq ($(strip $(filter-out %86 freebsd
%,$(arch
) $(osys
))),)
1193 LIBGNAT_TARGET_PAIRS
= \
1194 a-intnam.ads
<a-intnam-freebsd.ads \
1195 s-inmaop.adb
<s-inmaop-posix.adb \
1196 s-intman.adb
<s-intman-posix.adb \
1197 s-osinte.adb
<s-osinte-freebsd.adb \
1198 s-osinte.ads
<s-osinte-freebsd.ads \
1199 s-osprim.adb
<s-osprim-posix.adb \
1200 s-taprop.adb
<s-taprop-posix.adb \
1201 s-taspri.ads
<s-taspri-posix.ads \
1202 s-tpopsp.adb
<s-tpopsp-posix.adb \
1203 $(ATOMICS_TARGET_PAIRS
) \
1204 $(X86_TARGET_PAIRS
) \
1205 system.ads
<system-freebsd-x86.ads
1207 TOOLS_TARGET_PAIRS
= \
1208 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
1209 GNATLIB_SHARED
= gnatlib-shared-dual
1212 THREADSLIB
= -lpthread
1214 LIBRARY_VERSION
:= $(LIB_VERSION
)
1217 ifeq ($(strip $(filter-out %86_64 freebsd
%,$(arch
) $(osys
))),)
1218 LIBGNAT_TARGET_PAIRS
= \
1219 a-intnam.ads
<a-intnam-freebsd.ads \
1220 s-inmaop.adb
<s-inmaop-posix.adb \
1221 s-intman.adb
<s-intman-posix.adb \
1222 s-osinte.adb
<s-osinte-freebsd.adb \
1223 s-osinte.ads
<s-osinte-freebsd.ads \
1224 s-osprim.adb
<s-osprim-posix.adb \
1225 s-taprop.adb
<s-taprop-posix.adb \
1226 s-taspri.ads
<s-taspri-posix.ads \
1227 s-tpopsp.adb
<s-tpopsp-posix.adb \
1228 g-trasym.adb
<g-trasym-dwarf.adb \
1229 $(ATOMICS_TARGET_PAIRS
) \
1230 $(X86_64_TARGET_PAIRS
) \
1231 system.ads
<system-freebsd-x86_64.ads
1233 TOOLS_TARGET_PAIRS
= \
1234 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
1235 GNATLIB_SHARED
= gnatlib-shared-dual
1238 THREADSLIB
= -lpthread
1240 LIBRARY_VERSION
:= $(LIB_VERSION
)
1243 ifeq ($(strip $(filter-out s390
% linux
%,$(arch
) $(osys
))),)
1244 LIBGNAT_TARGET_PAIRS_COMMON
= \
1245 a-intnam.ads
<a-intnam-linux.ads \
1246 s-inmaop.adb
<s-inmaop-posix.adb \
1247 s-intman.adb
<s-intman-posix.adb \
1248 s-linux.ads
<s-linux.ads \
1249 s-osinte.adb
<s-osinte-posix.adb \
1250 s-osinte.ads
<s-osinte-linux.ads \
1251 s-osprim.adb
<s-osprim-posix.adb \
1252 s-taprop.adb
<s-taprop-linux.adb \
1253 s-tasinf.ads
<s-tasinf-linux.ads \
1254 s-tasinf.adb
<s-tasinf-linux.adb \
1255 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1256 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
1258 LIBGNAT_TARGET_PAIRS_32
= \
1259 system.ads
<system-linux-s390.ads
1261 LIBGNAT_TARGET_PAIRS_64
= \
1262 system.ads
<system-linux-s390x.ads
1264 ifeq ($(strip $(filter-out s390x
,$(arch
))),)
1265 ifeq ($(strip $(MULTISUBDIR
)),/32)
1266 LIBGNAT_TARGET_PAIRS
= \
1267 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1269 LIBGNAT_TARGET_PAIRS
= \
1270 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1273 LIBGNAT_TARGET_PAIRS
= \
1274 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1277 TOOLS_TARGET_PAIRS
= \
1278 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1279 indepsw.adb
<indepsw-gnu.adb
1281 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1283 THREADSLIB
= -lpthread
1284 GNATLIB_SHARED
= gnatlib-shared-dual
1285 LIBRARY_VERSION
:= $(LIB_VERSION
)
1288 ifeq ($(strip $(filter-out mips sgi irix6
%,$(targ
))),)
1289 LIBGNAT_TARGET_PAIRS
= \
1290 a-intnam.ads
<a-intnam-irix.ads \
1291 a-synbar.adb
<a-synbar-posix.adb \
1292 a-synbar.ads
<a-synbar-posix.ads \
1293 s-inmaop.adb
<s-inmaop-posix.adb \
1294 s-intman.adb
<s-intman-irix.adb \
1295 s-mastop.adb
<s-mastop-irix.adb \
1296 s-osinte.adb
<s-osinte-irix.adb \
1297 s-osinte.ads
<s-osinte-irix.ads \
1298 s-osprim.adb
<s-osprim-posix.adb \
1299 s-proinf.adb
<s-proinf-irix-athread.adb \
1300 s-proinf.ads
<s-proinf-irix-athread.ads \
1301 s-taprop.adb
<s-taprop-irix.adb \
1302 s-tasinf.ads
<s-tasinf-irix.ads \
1303 s-taspri.ads
<s-taspri-posix.ads \
1304 s-tpopsp.adb
<s-tpopsp-posix.adb \
1305 s-traceb.adb
<s-traceb-mastop.adb
1307 ifeq ($(strip $(MULTISUBDIR
)),/64)
1308 LIBGNAT_TARGET_PAIRS
+= \
1309 system.ads
<system-irix-n64.ads
1311 ifeq ($(strip $(MULTISUBDIR
)),/32)
1312 LIBGNAT_TARGET_PAIRS
+= \
1313 system.ads
<system-irix-o32.ads
1315 LIBGNAT_TARGET_PAIRS
+= \
1316 system.ads
<system-irix-n32.ads
1320 THREADSLIB
= -lpthread
1321 GNATLIB_SHARED
= gnatlib-shared-default
1324 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-irix.adb
1327 LIBRARY_VERSION
:= $(LIB_VERSION
)
1331 ifeq ($(strip $(filter-out hppa
% hp hpux10
%,$(targ
))),)
1332 LIBGNAT_TARGET_PAIRS
= \
1333 a-excpol.adb
<a-excpol-abort.adb \
1334 a-intnam.ads
<a-intnam-hpux.ads \
1335 s-inmaop.adb
<s-inmaop-posix.adb \
1336 s-interr.adb
<s-interr-sigaction.adb \
1337 s-intman.adb
<s-intman-posix.adb \
1338 s-osinte.adb
<s-osinte-hpux-dce.adb \
1339 s-osinte.ads
<s-osinte-hpux-dce.ads \
1340 s-parame.ads
<s-parame-hpux.ads \
1341 s-osprim.adb
<s-osprim-posix.adb \
1342 s-taprop.adb
<s-taprop-hpux-dce.adb \
1343 s-taspri.ads
<s-taspri-hpux-dce.ads \
1344 s-tpopsp.adb
<s-tpopsp-posix.adb \
1345 system.ads
<system-hpux.ads
1350 ifeq ($(strip $(filter-out hppa
% hp hpux11
%,$(targ
))),)
1351 LIBGNAT_TARGET_PAIRS
= \
1352 a-intnam.ads
<a-intnam-hpux.ads \
1353 s-inmaop.adb
<s-inmaop-posix.adb \
1354 s-intman.adb
<s-intman-posix.adb \
1355 s-osinte.adb
<s-osinte-posix.adb \
1356 s-osinte.ads
<s-osinte-hpux.ads \
1357 s-parame.ads
<s-parame-hpux.ads \
1358 s-osprim.adb
<s-osprim-posix.adb \
1359 s-traceb.adb
<s-traceb-hpux.adb \
1360 s-taprop.adb
<s-taprop-posix.adb \
1361 s-taspri.ads
<s-taspri-posix.ads \
1362 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1363 system.ads
<system-hpux.ads
1365 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-hpux.adb
1367 TGT_LIB
= /usr
/lib
/libcl.a
1368 THREADSLIB
= -lpthread
1372 GNATLIB_SHARED
= gnatlib-shared-dual
1373 LIBRARY_VERSION
:= $(LIB_VERSION
)
1376 ifeq ($(strip $(filter-out ibm aix
%,$(manu
) $(osys
))),)
1377 LIBGNAT_TARGET_PAIRS_COMMON
= \
1378 a-intnam.ads
<a-intnam-aix.ads \
1379 s-inmaop.adb
<s-inmaop-posix.adb \
1380 s-intman.adb
<s-intman-posix.adb \
1381 s-osinte.adb
<s-osinte-aix.adb \
1382 s-osinte.ads
<s-osinte-aix.ads \
1383 s-osprim.adb
<s-osprim-posix.adb \
1384 s-taprop.adb
<s-taprop-posix.adb \
1385 s-taspri.ads
<s-taspri-posix.ads \
1386 s-tpopsp.adb
<s-tpopsp-posix.adb \
1387 $(ATOMICS_TARGET_PAIRS
) \
1388 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
1390 LIBGNAT_TARGET_PAIRS_32
= \
1391 system.ads
<system-aix.ads
1393 LIBGNAT_TARGET_PAIRS_64
= \
1394 system.ads
<system-aix64.ads
1396 ifeq ($(findstring ppc64
, \
1397 $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) \
1398 -print-multi-os-directory
)), \
1400 LIBGNAT_TARGET_PAIRS
= \
1401 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1403 LIBGNAT_TARGET_PAIRS
= \
1404 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1407 THREADSLIB
= -lpthreads
1409 TOOLS_TARGET_PAIRS
= \
1410 mlib-tgt-specific.adb
<mlib-tgt-specific-aix.adb \
1411 indepsw.adb
<indepsw-aix.adb
1416 ifeq ($(strip $(filter-out rtems
%,$(osys
))),)
1417 LIBGNAT_TARGET_PAIRS
= \
1418 system.ads
<system-rtems.ads \
1419 a-intnam.ads
<a-intnam-rtems.ads \
1420 s-inmaop.adb
<s-inmaop-posix.adb \
1421 s-intman.adb
<s-intman-posix.adb \
1422 s-osinte.adb
<s-osinte-rtems.adb \
1423 s-osinte.ads
<s-osinte-rtems.ads \
1424 s-osprim.adb
<s-osprim-posix.adb \
1425 s-parame.adb
<s-parame-rtems.adb \
1426 s-taprop.adb
<s-taprop-posix.adb \
1427 s-taspri.ads
<s-taspri-posix.ads \
1428 s-tpopsp.adb
<s-tpopsp-rtems.adb \
1429 s-stchop.adb
<s-stchop-rtems.adb \
1430 s-interr.adb
<s-interr-hwint.adb
1433 ifeq ($(strip $(filter-out alpha
% dec osf
%,$(targ
))),)
1434 LIBGNAT_TARGET_PAIRS
= \
1435 a-intnam.ads
<a-intnam-tru64.ads \
1436 s-inmaop.adb
<s-inmaop-posix.adb \
1437 s-intman.adb
<s-intman-posix.adb \
1438 s-mastop.adb
<s-mastop-tru64.adb \
1439 s-osinte.adb
<s-osinte-tru64.adb \
1440 s-osinte.ads
<s-osinte-tru64.ads \
1441 s-osprim.adb
<s-osprim-unix.adb \
1442 s-taprop.adb
<s-taprop-tru64.adb \
1443 s-tasinf.ads
<s-tasinf-tru64.ads \
1444 s-taspri.ads
<s-taspri-tru64.ads \
1445 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1446 s-traceb.adb
<s-traceb-mastop.adb \
1447 system.ads
<system-tru64.ads \
1448 $(ATOMICS_TARGET_PAIRS
) \
1449 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
1451 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-tru64.adb
1456 THREADSLIB
= -lpthread
-lmach
-lexc
-lrt
1457 GNATLIB_SHARED
= gnatlib-shared-default
1458 LIBRARY_VERSION
:= $(LIB_VERSION
)
1461 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(host
))),)
1471 @ gnu
:[bin
]vmssymvec
$<
1474 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(targ
))),)
1475 LIBGNAT_TARGET_PAIRS
= \
1476 a-caldel.adb
<a-caldel-vms.adb \
1477 a-calend.adb
<a-calend-vms.adb \
1478 a-calend.ads
<a-calend-vms.ads \
1479 a-dirval.adb
<a-dirval-vms.adb \
1480 a-excpol.adb
<a-excpol-abort.adb \
1481 a-intnam.ads
<a-intnam-vms.ads \
1482 a-numaux.ads
<a-numaux-vms.ads \
1483 g-expect.adb
<g-expect-vms.adb \
1484 g-socthi.ads
<g-socthi-vms.ads \
1485 g-socthi.adb
<g-socthi-vms.adb \
1486 g-stsifd.adb
<g-stsifd-sockets.adb \
1487 i-cstrea.adb
<i-cstrea-vms.adb \
1488 memtrack.adb
<memtrack-vms_64.adb \
1489 s-auxdec.ads
<s-auxdec-vms_64.ads \
1490 s-inmaop.adb
<s-inmaop-vms.adb \
1491 s-interr.adb
<s-interr-vms.adb \
1492 s-intman.adb
<s-intman-vms.adb \
1493 s-intman.ads
<s-intman-vms.ads \
1494 s-memory.adb
<s-memory-vms_64.adb \
1495 s-memory.ads
<s-memory-vms_64.ads \
1496 s-osprim.adb
<s-osprim-vms.adb \
1497 s-osprim.ads
<s-osprim-vms.ads \
1498 s-taprop.adb
<s-taprop-vms.adb \
1499 s-tasdeb.adb
<s-tasdeb-vms.adb \
1500 s-taspri.ads
<s-taspri-vms.ads \
1501 s-tpopsp.adb
<s-tpopsp-vms.adb \
1502 s-tpopde.adb
<s-tpopde-vms.adb \
1503 s-tpopde.ads
<s-tpopde-vms.ads
1505 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1506 LIBGNAT_TARGET_PAIRS
+= \
1507 g-enblsp.adb
<g-enblsp-vms-ia64.adb \
1508 g-trasym.adb
<g-trasym-vms-ia64.adb \
1509 s-asthan.adb
<s-asthan-vms-ia64.adb \
1510 s-auxdec.adb
<s-auxdec-vms-ia64.adb \
1511 s-osinte.adb
<s-osinte-vms-ia64.adb \
1512 s-osinte.ads
<s-osinte-vms-ia64.ads \
1513 s-vaflop.adb
<s-vaflop-vms-ia64.adb \
1514 system.ads
<system-vms-ia64.ads \
1515 s-parame.ads
<s-parame-vms-ia64.ads \
1516 $(ATOMICS_TARGET_PAIRS
) \
1517 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
1519 TOOLS_TARGET_PAIRS
= \
1520 mlib-tgt-specific.adb
<mlib-tgt-specific-vms-ia64.adb \
1521 symbols.adb
<symbols-vms.adb \
1522 symbols-processing.adb
<symbols-processing-vms-ia64.adb
1524 ifeq ($(strip $(filter-out alpha64 dec vms
% openvms
% alphavms
%,$(targ
))),)
1525 LIBGNAT_TARGET_PAIRS
+= \
1526 g-enblsp.adb
<g-enblsp-vms-alpha.adb \
1527 g-trasym.adb
<g-trasym-vms-alpha.adb \
1528 s-asthan.adb
<s-asthan-vms-alpha.adb \
1529 s-auxdec.adb
<s-auxdec-vms-alpha.adb \
1530 s-osinte.adb
<s-osinte-vms.adb \
1531 s-osinte.ads
<s-osinte-vms.ads \
1532 s-traent.adb
<s-traent-vms.adb \
1533 s-traent.ads
<s-traent-vms.ads \
1534 s-vaflop.adb
<s-vaflop-vms-alpha.adb \
1535 system.ads
<system-vms_64.ads \
1536 s-parame.ads
<s-parame-vms-alpha.ads \
1537 $(ATOMICS_TARGET_PAIRS
) \
1538 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
1540 TOOLS_TARGET_PAIRS
= \
1541 mlib-tgt-specific.adb
<mlib-tgt-specific-vms-alpha.adb \
1542 symbols.adb
<symbols-vms.adb \
1543 symbols-processing.adb
<symbols-processing-vms-alpha.adb
1547 adamsg.o
: adamsg.msg
1548 -$(DECC
) --cc=message adamsg.msg
-o adamsg.o
1550 EXTRA_GNATMAKE_OBJS
= mlib-tgt-vms_common.o
1554 GNATLIB_SHARED
=gnatlib-shared-vms
1555 EXTRA_LIBGNAT_SRCS
+=adamsg.msg
1556 EXTRA_LIBGNAT_OBJS
+=adamsg.o
1557 EXTRA_GNATRTL_NONTASKING_OBJS
+=s-po32gl.o
1558 EXTRA_GNATRTL_TASKING_OBJS
=s-tpopde.o
1560 ..
/..
/gnatsym
$(exeext
)
1561 # This command transforms (YYYYMMDD) into YY,MMDD
1562 GSMATCH_VERSION
:= $(shell grep
"^ *Gnat_Static_Version_String" $(fsrcpfx
)ada
/gnatvsn.ads | sed
-e
's/.*(\(.*\)).*/\1/' -e
's/\(..\)\(..\)\(....\).*/\2,\3/')
1563 TOOLS_LIBS_LO
:= --for-linker
=sys
\\$$\
$$library:trace.exe
1564 LIBRARY_VERSION
:= $(subst .
,_
,$(LIB_VERSION
))
1567 ifeq ($(strip $(filter-out avr none powerpc
% eabispe leon
% erc32
% unknown elf
,$(targ
))),)
1568 TOOLS_TARGET_PAIRS
=\
1569 mlib-tgt-specific.adb
<mlib-tgt-specific-xi.adb \
1570 indepsw.adb
<indepsw-gnu.adb
1573 ifeq ($(strip $(filter-out cygwin32
% mingw32
% pe
,$(osys
))),)
1574 LIBGNAT_TARGET_PAIRS
= \
1575 a-dirval.adb
<a-dirval-mingw.adb \
1576 a-excpol.adb
<a-excpol-abort.adb \
1577 s-gloloc.adb
<s-gloloc-mingw.adb \
1578 s-inmaop.adb
<s-inmaop-dummy.adb \
1579 s-memory.adb
<s-memory-mingw.adb \
1580 s-taspri.ads
<s-taspri-mingw.ads \
1581 s-tasinf.adb
<s-tasinf-mingw.adb \
1582 s-tasinf.ads
<s-tasinf-mingw.ads \
1583 g-socthi.ads
<g-socthi-mingw.ads \
1584 g-socthi.adb
<g-socthi-mingw.adb \
1585 g-stsifd.adb
<g-stsifd-sockets.adb \
1586 g-soliop.ads
<g-soliop-mingw.ads \
1587 $(ATOMICS_TARGET_PAIRS
)
1589 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss
,$(THREAD_KIND
))),)
1590 LIBGNAT_TARGET_PAIRS
+= \
1591 s-intman.adb
<s-intman-dummy.adb \
1592 s-osinte.ads
<s-osinte-rtx.ads \
1593 s-osprim.adb
<s-osprim-rtx.adb \
1594 s-taprop.adb
<s-taprop-rtx.adb \
1597 EXTRA_GNATRTL_NONTASKING_OBJS
= s-win32.o
1599 ifeq ($(strip $(filter-out rtx_w32
,$(THREAD_KIND
))),)
1600 LIBGNAT_TARGET_PAIRS
+= system.ads
<system-rtx.ads
1604 LIBGNAT_TARGET_PAIRS
+= \
1605 system.ads
<system-rtx-rtss.ads \
1606 s-parame.adb
<s-parame-vxworks.adb
1612 LIBGNAT_TARGET_PAIRS
+= \
1613 a-exetim.adb
<a-exetim-mingw.adb \
1614 a-exetim.ads
<a-exetim-mingw.ads \
1615 a-intnam.ads
<a-intnam-mingw.ads \
1616 g-sercom.adb
<g-sercom-mingw.adb \
1617 s-interr.adb
<s-interr-sigaction.adb \
1618 s-intman.adb
<s-intman-mingw.adb \
1619 s-mudido.adb
<s-mudido-affinity.adb \
1620 s-osinte.ads
<s-osinte-mingw.ads \
1621 s-osprim.adb
<s-osprim-mingw.adb \
1622 s-taprop.adb
<s-taprop-mingw.adb
1624 ifeq ($(strip $(filter-out x86_64
%,$(arch
))),)
1625 ifeq ($(strip $(MULTISUBDIR
)),/32)
1626 LIBGNAT_TARGET_PAIRS
+= \
1627 $(X86_TARGET_PAIRS
) \
1628 system.ads
<system-mingw.ads
1629 SO_OPTS
= -m32
-Wl
,-soname
,
1631 LIBGNAT_TARGET_PAIRS
+= \
1632 $(X86_64_TARGET_PAIRS
) \
1633 system.ads
<system-mingw-x86_64.ads
1634 SO_OPTS
= -m64
-Wl
,-soname
,
1637 ifeq ($(strip $(MULTISUBDIR
)),/64)
1638 LIBGNAT_TARGET_PAIRS
+= \
1639 $(X86_64_TARGET_PAIRS
) \
1640 system.ads
<system-mingw-x86_64.ads
1641 SO_OPTS
= -m64
-Wl
,-soname
,
1643 LIBGNAT_TARGET_PAIRS
+= \
1644 $(X86_TARGET_PAIRS
) \
1645 system.ads
<system-mingw.ads
1646 SO_OPTS
= -m32
-Wl
,-soname
,
1650 EXTRA_GNATRTL_NONTASKING_OBJS
= \
1651 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1652 EXTRA_GNATRTL_TASKING_OBJS
= a-exetim.o
1656 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1657 # auto-import support for array/record will be done.
1658 GNATLIB_SHARED
= gnatlib-shared-win32
1663 TOOLS_TARGET_PAIRS
= \
1664 mlib-tgt-specific.adb
<mlib-tgt-specific-mingw.adb \
1665 indepsw.adb
<indepsw-mingw.adb
1668 EXTRA_GNATTOOLS
= ..
/..
/gnatdll
$(exeext
)
1669 EXTRA_GNATMAKE_OBJS
= mdll.o mdll-utl.o mdll-fil.o
1671 LIBRARY_VERSION
:= $(LIB_VERSION
)
1674 ifeq ($(strip $(filter-out mips linux
%,$(arch
) $(osys
))),)
1675 LIBGNAT_TARGET_PAIRS
= \
1676 a-intnam.ads
<a-intnam-linux.ads \
1677 s-inmaop.adb
<s-inmaop-posix.adb \
1678 s-intman.adb
<s-intman-posix.adb \
1679 s-linux.ads
<s-linux.ads \
1680 s-osinte.adb
<s-osinte-posix.adb \
1681 s-osinte.ads
<s-osinte-linux.ads \
1682 s-osprim.adb
<s-osprim-posix.adb \
1683 s-taprop.adb
<s-taprop-linux.adb \
1684 s-tasinf.ads
<s-tasinf-linux.ads \
1685 s-tasinf.adb
<s-tasinf-linux.adb \
1686 s-taspri.ads
<s-taspri-posix.ads \
1687 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1688 system.ads
<system-linux-mips.ads
1691 THREADSLIB
= -lpthread
1692 GNATLIB_SHARED
= gnatlib-shared-dual
1694 LIBRARY_VERSION
:= $(LIB_VERSION
)
1697 ifeq ($(strip $(filter-out mipsel linux
%,$(arch
) $(osys
))),)
1698 LIBGNAT_TARGET_PAIRS_COMMON
= \
1699 a-intnam.ads
<a-intnam-linux.ads \
1700 s-inmaop.adb
<s-inmaop-posix.adb \
1701 s-intman.adb
<s-intman-posix.adb \
1702 s-linux.ads
<s-linux-mipsel.ads \
1703 s-osinte.adb
<s-osinte-posix.adb \
1704 s-osinte.ads
<s-osinte-linux.ads \
1705 s-osprim.adb
<s-osprim-posix.adb \
1706 s-taprop.adb
<s-taprop-linux.adb \
1707 s-tasinf.ads
<s-tasinf-linux.ads \
1708 s-tasinf.adb
<s-tasinf-linux.adb \
1709 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1710 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1711 g-sercom.adb
<g-sercom-linux.adb
1713 LIBGNAT_TARGET_PAIRS_32
= \
1714 system.ads
<system-linux-mipsel.ads
1716 LIBGNAT_TARGET_PAIRS_64
= \
1717 system.ads
<system-linux-mips64el.ads
1719 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1720 LIBGNAT_TARGET_PAIRS
= \
1721 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1723 LIBGNAT_TARGET_PAIRS
= \
1724 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1727 TOOLS_TARGET_PAIRS
= \
1728 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1729 indepsw.adb
<indepsw-gnu.adb
1731 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1733 THREADSLIB
= -lpthread
1734 GNATLIB_SHARED
= gnatlib-shared-dual
1736 LIBRARY_VERSION
:= $(LIB_VERSION
)
1739 ifeq ($(strip $(filter-out mips64el linux
%,$(arch
) $(osys
))),)
1740 LIBGNAT_TARGET_PAIRS_COMMON
= \
1741 a-intnam.ads
<a-intnam-linux.ads \
1742 s-inmaop.adb
<s-inmaop-posix.adb \
1743 s-intman.adb
<s-intman-posix.adb \
1744 s-linux.ads
<s-linux-mipsel.ads \
1745 s-osinte.adb
<s-osinte-posix.adb \
1746 s-osinte.ads
<s-osinte-linux.ads \
1747 s-osprim.adb
<s-osprim-posix.adb \
1748 s-taprop.adb
<s-taprop-linux.adb \
1749 s-tasinf.ads
<s-tasinf-linux.ads \
1750 s-tasinf.adb
<s-tasinf-linux.adb \
1751 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1752 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1753 g-sercom.adb
<g-sercom-linux.adb
1755 LIBGNAT_TARGET_PAIRS_32
= \
1756 system.ads
<system-linux-mipsel.ads
1758 LIBGNAT_TARGET_PAIRS_64
= \
1759 system.ads
<system-linux-mips64el.ads
1761 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1762 LIBGNAT_TARGET_PAIRS
= \
1763 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1765 LIBGNAT_TARGET_PAIRS
= \
1766 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1769 TOOLS_TARGET_PAIRS
= \
1770 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1771 indepsw.adb
<indepsw-gnu.adb
1773 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1775 THREADSLIB
= -lpthread
1776 GNATLIB_SHARED
= gnatlib-shared-dual
1778 LIBRARY_VERSION
:= $(LIB_VERSION
)
1781 ifeq ($(strip $(filter-out powerpc
% linux
%,$(arch
) $(osys
))),)
1782 LIBGNAT_TARGET_PAIRS_COMMON
= \
1783 a-exetim.adb
<a-exetim-posix.adb \
1784 a-exetim.ads
<a-exetim-default.ads \
1785 a-intnam.ads
<a-intnam-linux.ads \
1786 a-synbar.adb
<a-synbar-posix.adb \
1787 a-synbar.ads
<a-synbar-posix.ads \
1788 s-inmaop.adb
<s-inmaop-posix.adb \
1789 s-intman.adb
<s-intman-posix.adb \
1790 s-linux.ads
<s-linux.ads \
1791 s-osinte.adb
<s-osinte-posix.adb \
1792 s-tpopsp.adb
<s-tpopsp-tls.adb \
1793 g-sercom.adb
<g-sercom-linux.adb \
1794 $(ATOMICS_TARGET_PAIRS
) \
1795 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
1797 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1798 LIBGNAT_TARGET_PAIRS
= \
1799 $(LIBGNAT_TARGET_PAIRS_COMMON
)
1801 LIBGNAT_TARGET_PAIRS
+= \
1802 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1803 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1804 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1805 s-taspri.ads
<s-taspri-linux-xenomai.ads \
1806 system.ads
<system-linux-ppc.ads
1808 LIBGNAT_TARGET_PAIRS_32
= \
1809 system.ads
<system-linux-ppc.ads
1811 LIBGNAT_TARGET_PAIRS_64
= \
1812 system.ads
<system-linux-ppc64.ads
1814 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1815 LIBGNAT_TARGET_PAIRS
= \
1816 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1818 LIBGNAT_TARGET_PAIRS
= \
1819 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1822 LIBGNAT_TARGET_PAIRS
+= \
1823 s-mudido.adb
<s-mudido-affinity.adb \
1824 s-osinte.ads
<s-osinte-linux.ads \
1825 s-osprim.adb
<s-osprim-posix.adb \
1826 s-taprop.adb
<s-taprop-linux.adb \
1827 s-tasinf.ads
<s-tasinf-linux.ads \
1828 s-tasinf.adb
<s-tasinf-linux.adb \
1829 s-taspri.ads
<s-taspri-posix-noaltstack.ads
1832 TOOLS_TARGET_PAIRS
= \
1833 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1834 indepsw.adb
<indepsw-gnu.adb
1836 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1838 THREADSLIB
= -lpthread
-lrt
1839 GNATLIB_SHARED
= gnatlib-shared-dual
1841 LIBRARY_VERSION
:= $(LIB_VERSION
)
1844 ifeq ($(strip $(filter-out arm
% linux-gnueabi
,$(arch
) $(osys
)-$(word 4,$(targ
)))),)
1845 LIBGNAT_TARGET_PAIRS
= \
1846 a-intnam.ads
<a-intnam-linux.ads \
1847 s-inmaop.adb
<s-inmaop-posix.adb \
1848 s-intman.adb
<s-intman-posix.adb \
1849 s-linux.ads
<s-linux.ads \
1850 s-osinte.adb
<s-osinte-posix.adb \
1851 s-osinte.ads
<s-osinte-linux.ads \
1852 s-osprim.adb
<s-osprim-posix.adb \
1853 s-taprop.adb
<s-taprop-linux.adb \
1854 s-tasinf.ads
<s-tasinf-linux.ads \
1855 s-tasinf.adb
<s-tasinf-linux.adb \
1856 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1857 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
1859 ifeq ($(strip $(filter-out arm
%b
,$(arch
))),)
1860 LIBGNAT_TARGET_PAIRS
+= \
1861 system.ads
<system-linux-armeb.ads
1863 LIBGNAT_TARGET_PAIRS
+= \
1864 system.ads
<system-linux-armel.ads
1867 TOOLS_TARGET_PAIRS
= \
1868 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1869 indepsw.adb
<indepsw-gnu.adb
1871 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1873 THREADSLIB
= -lpthread
1874 GNATLIB_SHARED
= gnatlib-shared-dual
1876 LIBRARY_VERSION
:= $(LIB_VERSION
)
1879 ifeq ($(strip $(filter-out sparc
% linux
%,$(arch
) $(osys
))),)
1880 LIBGNAT_TARGET_PAIRS_COMMON
= \
1881 a-intnam.ads
<a-intnam-linux.ads \
1882 s-inmaop.adb
<s-inmaop-posix.adb \
1883 s-intman.adb
<s-intman-posix.adb \
1884 s-linux.ads
<s-linux-sparc.ads \
1885 s-osinte.adb
<s-osinte-posix.adb \
1886 s-osinte.ads
<s-osinte-linux.ads \
1887 s-osprim.adb
<s-osprim-posix.adb \
1888 s-taprop.adb
<s-taprop-linux.adb \
1889 s-tasinf.ads
<s-tasinf-linux.ads \
1890 s-tasinf.adb
<s-tasinf-linux.adb \
1891 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1892 s-tpopsp.adb
<s-tpopsp-tls.adb
1894 LIBGNAT_TARGET_PAIRS_32
= \
1895 system.ads
<system-linux-sparc.ads
1897 LIBGNAT_TARGET_PAIRS_64
= \
1898 system.ads
<system-linux-sparcv9.ads
1900 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1901 LIBGNAT_TARGET_PAIRS
= \
1902 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1904 LIBGNAT_TARGET_PAIRS
= \
1905 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1908 TOOLS_TARGET_PAIRS
= \
1909 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1910 indepsw.adb
<indepsw-gnu.adb
1912 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1914 THREADSLIB
= -lpthread
1915 GNATLIB_SHARED
= gnatlib-shared-dual
1917 LIBRARY_VERSION
:= $(LIB_VERSION
)
1920 ifeq ($(strip $(filter-out hppa
% linux
%,$(arch
) $(osys
))),)
1921 LIBGNAT_TARGET_PAIRS
= \
1922 a-intnam.ads
<a-intnam-linux.ads \
1923 s-inmaop.adb
<s-inmaop-posix.adb \
1924 s-intman.adb
<s-intman-posix.adb \
1925 s-linux.ads
<s-linux-hppa.ads \
1926 s-osinte.adb
<s-osinte-posix.adb \
1927 s-osinte.ads
<s-osinte-linux.ads \
1928 s-osprim.adb
<s-osprim-posix.adb \
1929 s-taprop.adb
<s-taprop-linux.adb \
1930 s-tasinf.ads
<s-tasinf-linux.ads \
1931 s-tasinf.adb
<s-tasinf-linux.adb \
1932 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1933 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1934 system.ads
<system-linux-hppa.ads
1936 TOOLS_TARGET_PAIRS
= \
1937 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1938 indepsw.adb
<indepsw-gnu.adb
1940 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1942 THREADSLIB
= -lpthread
1943 GNATLIB_SHARED
= gnatlib-shared-dual
1945 LIBRARY_VERSION
:= $(LIB_VERSION
)
1948 ifeq ($(strip $(filter-out sh4
% linux
%,$(arch
) $(osys
))),)
1949 LIBGNAT_TARGET_PAIRS
= \
1950 a-intnam.ads
<a-intnam-linux.ads \
1951 s-inmaop.adb
<s-inmaop-posix.adb \
1952 s-intman.adb
<s-intman-posix.adb \
1953 s-linux.ads
<s-linux.ads \
1954 s-osinte.adb
<s-osinte-posix.adb \
1955 s-osinte.ads
<s-osinte-linux.ads \
1956 s-osprim.adb
<s-osprim-posix.adb \
1957 s-taprop.adb
<s-taprop-linux.adb \
1958 s-tasinf.ads
<s-tasinf-linux.ads \
1959 s-tasinf.adb
<s-tasinf-linux.adb \
1960 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1961 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1962 system.ads
<system-linux-sh4.ads
1964 TOOLS_TARGET_PAIRS
= \
1965 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1966 indepsw.adb
<indepsw-linux.adb
1968 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1971 THREADSLIB
= -lpthread
1972 GNATLIB_SHARED
= gnatlib-shared-dual
1974 LIBRARY_VERSION
:= $(LIB_VERSION
)
1977 ifeq ($(strip $(filter-out %ia64 linux
%,$(arch
) $(osys
))),)
1978 LIBGNAT_TARGET_PAIRS
= \
1979 a-exetim.adb
<a-exetim-posix.adb \
1980 a-exetim.ads
<a-exetim-default.ads \
1981 a-intnam.ads
<a-intnam-linux.ads \
1982 a-numaux.ads
<a-numaux-libc-x86.ads \
1983 a-synbar.adb
<a-synbar-posix.adb \
1984 a-synbar.ads
<a-synbar-posix.ads \
1985 s-inmaop.adb
<s-inmaop-posix.adb \
1986 s-intman.adb
<s-intman-posix.adb \
1987 s-linux.ads
<s-linux.ads \
1988 s-mudido.adb
<s-mudido-affinity.adb \
1989 s-osinte.ads
<s-osinte-linux.ads \
1990 s-osinte.adb
<s-osinte-posix.adb \
1991 s-osprim.adb
<s-osprim-posix.adb \
1992 s-taprop.adb
<s-taprop-linux.adb \
1993 s-tasinf.ads
<s-tasinf-linux.ads \
1994 s-tasinf.adb
<s-tasinf-linux.adb \
1995 s-tpopsp.adb
<s-tpopsp-tls.adb \
1996 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1997 g-sercom.adb
<g-sercom-linux.adb \
1998 system.ads
<system-linux-ia64.ads \
1999 $(ATOMICS_TARGET_PAIRS
) \
2000 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
2002 TOOLS_TARGET_PAIRS
= \
2003 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2004 indepsw.adb
<indepsw-gnu.adb
2006 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2009 THREADSLIB
=-lpthread
-lrt
2010 GNATLIB_SHARED
=gnatlib-shared-dual
2012 LIBRARY_VERSION
:= $(LIB_VERSION
)
2015 ifeq ($(strip $(filter-out ia64
% hp hpux
%,$(targ
))),)
2016 LIBGNAT_TARGET_PAIRS
= \
2017 a-intnam.ads
<a-intnam-hpux.ads \
2018 s-inmaop.adb
<s-inmaop-posix.adb \
2019 s-intman.adb
<s-intman-posix.adb \
2020 s-osinte.adb
<s-osinte-posix.adb \
2021 s-osinte.ads
<s-osinte-hpux.ads \
2022 s-osprim.adb
<s-osprim-posix.adb \
2023 s-taprop.adb
<s-taprop-posix.adb \
2024 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2025 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2026 system.ads
<system-hpux-ia64.ads \
2027 $(ATOMICS_TARGET_PAIRS
) \
2028 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
2030 TOOLS_TARGET_PAIRS
= \
2031 mlib-tgt-specific.adb
<mlib-tgt-specific-ia64-hpux.adb
2034 THREADSLIB
=-lpthread
2035 GNATLIB_SHARED
=gnatlib-shared-dual
2039 LIBRARY_VERSION
:= $(LIB_VERSION
)
2042 ifeq ($(strip $(filter-out alpha
% linux
%,$(arch
) $(osys
))),)
2043 LIBGNAT_TARGET_PAIRS
= \
2044 a-intnam.ads
<a-intnam-linux.ads \
2045 s-inmaop.adb
<s-inmaop-posix.adb \
2046 s-intman.adb
<s-intman-posix.adb \
2047 s-linux.ads
<s-linux-alpha.ads \
2048 s-osinte.ads
<s-osinte-linux.ads \
2049 s-osinte.adb
<s-osinte-posix.adb \
2050 s-osprim.adb
<s-osprim-posix.adb \
2051 s-taprop.adb
<s-taprop-linux.adb \
2052 s-tasinf.ads
<s-tasinf-linux.ads \
2053 s-tasinf.adb
<s-tasinf-linux.adb \
2054 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2055 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2056 system.ads
<system-linux-alpha.ads \
2057 $(ATOMICS_TARGET_PAIRS
) \
2058 $(ATOMICS_BUILTINS_TARGET_PAIRS
)
2060 TOOLS_TARGET_PAIRS
= \
2061 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2062 indepsw.adb
<indepsw-gnu.adb
2064 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2067 THREADSLIB
=-lpthread
2068 GNATLIB_SHARED
=gnatlib-shared-dual
2069 LIBRARY_VERSION
:= $(LIB_VERSION
)
2072 ifeq ($(strip $(filter-out %x86_64 linux
%,$(arch
) $(osys
))),)
2073 LIBGNAT_TARGET_PAIRS
= \
2074 a-exetim.adb
<a-exetim-posix.adb \
2075 a-exetim.ads
<a-exetim-default.ads \
2076 a-intnam.ads
<a-intnam-linux.ads \
2077 a-synbar.adb
<a-synbar-posix.adb \
2078 a-synbar.ads
<a-synbar-posix.ads \
2079 s-inmaop.adb
<s-inmaop-posix.adb \
2080 s-intman.adb
<s-intman-posix.adb \
2081 s-linux.ads
<s-linux.ads \
2082 s-mudido.adb
<s-mudido-affinity.adb \
2083 s-osinte.ads
<s-osinte-linux.ads \
2084 s-osinte.adb
<s-osinte-posix.adb \
2085 s-osprim.adb
<s-osprim-posix.adb \
2086 s-taprop.adb
<s-taprop-linux.adb \
2087 s-tasinf.ads
<s-tasinf-linux.ads \
2088 s-tasinf.adb
<s-tasinf-linux.adb \
2089 s-tpopsp.adb
<s-tpopsp-tls.adb \
2090 s-taspri.ads
<s-taspri-posix.ads \
2091 g-sercom.adb
<g-sercom-linux.adb \
2092 $(ATOMICS_TARGET_PAIRS
) \
2093 $(X86_64_TARGET_PAIRS
) \
2094 system.ads
<system-linux-x86_64.ads
2096 TOOLS_TARGET_PAIRS
= \
2097 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2098 indepsw.adb
<indepsw-gnu.adb
2100 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
2101 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2103 THREADSLIB
=-lpthread
-lrt
2104 GNATLIB_SHARED
=gnatlib-shared-dual
2106 LIBRARY_VERSION
:= $(LIB_VERSION
)
2109 ifeq ($(strip $(filter-out darwin
%,$(osys
))),)
2110 SO_OPTS
= -shared-libgcc
2111 LIBGNAT_TARGET_PAIRS
= \
2112 a-intnam.ads
<a-intnam-darwin.ads \
2113 i-forbla.adb
<i-forbla-darwin.adb \
2114 s-inmaop.adb
<s-inmaop-posix.adb \
2115 s-osinte.adb
<s-osinte-darwin.adb \
2116 s-osinte.ads
<s-osinte-darwin.ads \
2117 s-taprop.adb
<s-taprop-posix.adb \
2118 s-taspri.ads
<s-taspri-posix.ads \
2119 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
2121 ifeq ($(strip $(filter-out %86,$(arch
))),)
2122 LIBGNAT_TARGET_PAIRS
+= \
2123 s-intman.adb
<s-intman-susv3.adb \
2124 s-osprim.adb
<s-osprim-darwin.adb \
2125 $(ATOMICS_TARGET_PAIRS
)
2127 ifeq ($(strip $(MULTISUBDIR
)),/x86_64
)
2128 LIBGNAT_TARGET_PAIRS
+= \
2129 $(X86_64_TARGET_PAIRS
) \
2130 system.ads
<system-darwin-x86_64.ads
2133 LIBGNAT_TARGET_PAIRS
+= \
2134 $(X86_TARGET_PAIRS
) \
2135 system.ads
<system-darwin-x86.ads
2139 ifeq ($(strip $(filter-out %x86_64
,$(arch
))),)
2140 LIBGNAT_TARGET_PAIRS
+= \
2141 s-intman.adb
<s-intman-susv3.adb \
2142 s-osprim.adb
<s-osprim-darwin.adb \
2143 $(ATOMICS_TARGET_PAIRS
)
2145 ifeq ($(strip $(MULTISUBDIR
)),/i386
)
2146 LIBGNAT_TARGET_PAIRS
+= \
2147 $(X86_TARGET_PAIRS
) \
2148 system.ads
<system-darwin-x86.ads
2151 LIBGNAT_TARGET_PAIRS
+= \
2152 $(X86_64_TARGET_PAIRS
) \
2153 system.ads
<system-darwin-x86_64.ads
2157 ifeq ($(strip $(filter-out powerpc
%,$(arch
))),)
2158 LIBGNAT_TARGET_PAIRS
+= \
2159 s-intman.adb
<s-intman-posix.adb \
2160 s-osprim.adb
<s-osprim-posix.adb \
2161 a-numaux.ads
<a-numaux-darwin.ads \
2162 a-numaux.adb
<a-numaux-darwin.adb
2164 ifeq ($(strip $(MULTISUBDIR
)),/ppc64
)
2165 LIBGNAT_TARGET_PAIRS
+= \
2166 system.ads
<system-darwin-ppc64.ads
2169 LIBGNAT_TARGET_PAIRS
+= \
2170 system.ads
<system-darwin-ppc.ads
2174 TOOLS_TARGET_PAIRS
= \
2175 mlib-tgt-specific.adb
<mlib-tgt-specific-darwin.adb \
2176 indepsw.adb
<indepsw-darwin.adb
2179 GNATLIB_SHARED
= gnatlib-shared-darwin
2182 LIBRARY_VERSION
:= $(LIB_VERSION
)
2187 ifneq ($(EH_MECHANISM
),)
2188 LIBGNAT_TARGET_PAIRS
+= a-exexpr.adb
<a-exexpr
$(EH_MECHANISM
).adb
2189 EXTRA_LIBGNAT_SRCS
+=raise
$(EH_MECHANISM
).c
2190 EXTRA_LIBGNAT_OBJS
+=raise
$(EH_MECHANISM
).o
2193 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
2194 # explicitly already. The base files (a-except.ad?) are used only for building
2195 # the compiler and other basic tools.
2196 # These base versions lack Ada 2005 additions which would cause bootstrap
2197 # problems if included in the compiler and other basic tools.
2199 ifeq ($(filter a-except
%,$(LIBGNAT_TARGET_PAIRS
)),)
2200 LIBGNAT_TARGET_PAIRS
+= \
2201 a-except.ads
<a-except-2005.ads \
2202 a-except.adb
<a-except-2005.adb
2205 # The runtime library for gnat comprises two directories. One contains the
2206 # Ada source files that the compiler (gnat1) needs -- these files are listed
2207 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
2208 # corresponding .ali files for the parts written in Ada, libgnat.a for
2209 # the parts of the runtime written in C, and libgthreads.a for the pthreads
2210 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
2211 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
2212 # go into the directory. The pthreads emulation is built in the threads
2213 # subdirectory and copied.
2214 LIBGNAT_SRCS
= adadecode.c adadecode.h adaint.c adaint.h \
2215 argv.c cio.c cstreams.c errno.c exit.c cal.c ctrl_c.c env.c env.h \
2216 arit64.c raise.h raise.c sysdep.c aux-io.c init.c initialize.c \
2217 locales.c seh_init.c final.c tracebak.c tb-alvms.c tb-alvxw.c \
2218 tb-gcc.c expect.c mkdir.c socket.c gsocket.h targext.c
$(EXTRA_LIBGNAT_SRCS
)
2220 LIBGNAT_OBJS
= adadecode.o adaint.o argv.o cio.o cstreams.o ctrl_c.o \
2221 errno.o exit.o env.o raise.o sysdep.o aux-io.o init.o initialize.o \
2222 locales.o seh_init.o cal.o arit64.o final.o tracebak.o expect.o \
2223 mkdir.o socket.o targext.o
$(EXTRA_LIBGNAT_OBJS
)
2225 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2226 # the library installation will change and there will be a
2227 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2228 # from ADA_INCLUDE_SRCS.
2230 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2231 # the following include file:
2233 include $(fsrcdir
)/ada
/Makefile.rtl
2235 GNATRTL_LINEARALGEBRA_OBJS
= a-nlcoar.o a-nllcar.o \
2236 a-nucoar.o i-forbla.o i-forlap.o s-gearop.o
2238 GNATRTL_OBJS
= $(GNATRTL_NONTASKING_OBJS
) $(GNATRTL_TASKING_OBJS
) \
2239 $(GNATRTL_LINEARALGEBRA_OBJS
) g-trasym.o memtrack.o
2241 # Default run time files
2244 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2245 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2246 sequenio.ads system.ads memtrack.adb \
2247 a-
[a-o
]*.adb a-
[p-z
]*.adb a-
[a-o
]*.ads a-
[p-z
]*.ads g-
*.ad? i-
*.ad? \
2248 s-
[a-o
]*.adb s-
[p-z
]*.adb s-
[a-o
]*.ads s-
[p-z
]*.ads
2250 LIBGNAT
=..
/$(RTSDIR
)/libgnat.a
2252 TOOLS_FLAGS_TO_PASS
= \
2254 "CFLAGS=$(CFLAGS)" \
2255 "LDFLAGS=$(LDFLAGS)" \
2256 "ADAFLAGS=$(ADAFLAGS)" \
2257 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
2258 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
2259 "libsubdir=$(libsubdir)" \
2260 "exeext=$(exeext)" \
2261 "fsrcdir=$(fsrcdir)" \
2262 "srcdir=$(fsrcdir)" \
2263 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
2264 "GNATMAKE=$(GNATMAKE)" \
2265 "GNATLINK=$(GNATLINK)" \
2266 "GNATBIND=$(GNATBIND)"
2268 GCC_LINK
=$(CC
) $(GCC_LINK_FLAGS
) $(ADA_INCLUDES
)
2270 # Build directory for the tools. Let's copy the target-dependent
2271 # sources using the same mechanism as for gnatlib. The other sources are
2272 # accessed using the vpath directive below
2273 # Note: dummy target, stamp-tools is mainly handled by gnattools.
2276 touch ..
/stamp-tools
2278 # when compiling the tools, the runtime has to be first on the path so that
2279 # it hides the runtime files lying with the rest of the sources
2280 ifeq ($(TOOLSCASE
),native
)
2281 vpath
%.ads ..
/$(RTSDIR
) ..
/
2282 vpath
%.adb ..
/$(RTSDIR
) ..
/
2283 vpath
%.c ..
/$(RTSDIR
) ..
/
2284 vpath
%.h ..
/$(RTSDIR
) ..
/
2287 # in the cross tools case, everything is compiled with the native
2288 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2289 ifeq ($(TOOLSCASE
),cross
)
2296 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
2297 # reasons: gnatmake should be built with a recent compiler, a recent compiler
2298 # may not generate ALI files compatible with an old gnatmake so it is important
2299 # to be able to build gnatmake without a version of gnatmake around. Once
2300 # everything has been compiled once, gnatmake can be recompiled with itself
2301 # (see target gnattools1-re)
2302 gnattools1
: ..
/stamp-tools ..
/stamp-gnatlib-
$(RTSDIR
)
2303 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2305 ..
/..
/gnatmake
$(exeext
) ..
/..
/gnatlink
$(exeext
)
2307 # gnatmake/link can be built with recent gnatmake/link if they are available.
2308 # This is especially convenient for building cross tools or for rebuilding
2309 # the tools when the original bootstrap has already be done.
2310 gnattools1-re
: ..
/stamp-tools
2311 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2312 TOOLSCASE
=cross INCLUDES
="" gnatmake-re gnatlink-re
2314 # these tools are built with gnatmake & are common to native and cross
2315 gnattools2
: ..
/stamp-tools
2316 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2317 TOOLSCASE
=native common-tools
$(EXTRA_GNATTOOLS
)
2319 # those tools are only built for the cross version
2320 gnattools4
: ..
/stamp-tools
2321 ifeq ($(ENABLE_VXADDR2LINE
),true
)
2322 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
2323 TOOLSCASE
=cross top_buildir
=..
/..
/.. \
2324 ..
/..
/vxaddr2line
$(exeext
)
2327 common-tools
: ..
/stamp-tools
2328 $(GNATMAKE
) -j0
-c
-b
$(ADA_INCLUDES
) \
2329 --GNATBIND
="$(GNATBIND)" --GCC
="$(CC) $(ALL_ADAFLAGS)" \
2330 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2331 gnatclean
-bargs
$(ADA_INCLUDES
) $(GNATBIND_FLAGS
)
2332 $(GNATLINK
) -v gnatcmd
-o ..
/..
/gnat
$(exeext
) \
2333 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2334 $(GNATLINK
) -v gnatchop
-o ..
/..
/gnatchop
$(exeext
) \
2335 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2336 $(GNATLINK
) -v gnatkr
-o ..
/..
/gnatkr
$(exeext
) \
2337 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2338 $(GNATLINK
) -v gnatls
-o ..
/..
/gnatls
$(exeext
) \
2339 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2340 $(GNATLINK
) -v gnatprep
-o ..
/..
/gnatprep
$(exeext
) \
2341 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2342 $(GNATLINK
) -v gnatxref
-o ..
/..
/gnatxref
$(exeext
) \
2343 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2344 $(GNATLINK
) -v gnatfind
-o ..
/..
/gnatfind
$(exeext
) \
2345 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2346 $(GNATLINK
) -v gnatname
-o ..
/..
/gnatname
$(exeext
) \
2347 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2348 $(GNATLINK
) -v gnatclean
-o ..
/..
/gnatclean
$(exeext
) \
2349 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2351 ..
/..
/gnatsym
$(exeext
): ..
/stamp-tools
2352 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatsym
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2353 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatsym
2354 $(GNATLINK
) -v gnatsym
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2356 ..
/..
/gnatdll
$(exeext
): ..
/stamp-tools
2357 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatdll
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2358 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatdll
2359 $(GNATLINK
) -v gnatdll
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2361 ..
/..
/vxaddr2line
$(exeext
): ..
/stamp-tools targext.o
2362 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vxaddr2line
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2363 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vxaddr2line
2364 $(GNATLINK
) -v vxaddr2line
-o
$@
--GCC
="$(GCC_LINK)" targext.o
$(CLIB
)
2366 gnatmake-re
: ..
/stamp-tools link.o targext.o
2367 $(GNATMAKE
) -j0
$(ADA_INCLUDES
) -u sdefault
--GCC
="$(CC) $(MOST_ADA_FLAGS)"
2368 $(GNATMAKE
) -j0
-c
$(ADA_INCLUDES
) gnatmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2369 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmake
2370 $(GNATLINK
) -v gnatmake
-o ..
/..
/gnatmake
$(exeext
) \
2371 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2373 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2374 # with the former version of gnatlink itself which cannot override itself.
2375 # gnatlink-re cannot be run at the same time as gnatmake-re, hence the
2377 gnatlink-re
: ..
/stamp-tools link.o targext.o gnatmake-re
2378 $(GNATMAKE
) -j0
-c
$(ADA_INCLUDES
) gnatlink
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2379 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlink
2380 $(GNATLINK
) -v gnatlink
-o ..
/..
/gnatlinknew
$(exeext
) \
2381 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2382 $(MV
) ..
/..
/gnatlinknew
$(exeext
) ..
/..
/gnatlink
$(exeext
)
2384 # Needs to be built with CC=gcc
2385 # Since the RTL should be built with the latest compiler, remove the
2386 # stamp target in the parent directory whenever gnat1 is rebuilt
2388 # Likewise for the tools
2389 ..
/..
/gnatmake
$(exeext
): $(P
) b_gnatm.o link.o targext.o
$(GNATMAKE_OBJS
)
2390 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatm.o
$(GNATMAKE_OBJS
) \
2393 ..
/..
/gnatlink
$(exeext
): $(P
) b_gnatl.o link.o targext.o
$(GNATLINK_OBJS
)
2394 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatl.o
$(GNATLINK_OBJS
) \
2397 ..
/stamp-gnatlib-
$(RTSDIR
):
2398 @if
[ ! -f stamp-gnatlib-
$(RTSDIR
) ] ; \
2400 $(ECHO
) You must first build the GNAT library
: make gnatlib
; \
2406 install-gnatlib
: ..
/stamp-gnatlib-
$(RTSDIR
)
2407 # Create the directory before deleting it, in case the directory is
2408 # a list of directories (as it may be on VMS). This ensures we are
2409 # deleting the right one.
2410 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2411 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2412 $(RMDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2413 $(RMDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2414 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2415 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2416 for file in
$(RTSDIR
)/*.ali
; do \
2417 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2419 -$(INSTALL_DATA
) $(RTSDIR
)/g-trasym
$(objext
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2420 -cd
$(RTSDIR
); for file in
*$(arext
);do \
2421 $(INSTALL_DATA
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2422 $(RANLIB_FOR_TARGET
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/$$file; \
2424 -$(foreach file
, $(EXTRA_ADALIB_FILES
), \
2425 $(INSTALL_DATA_DATE
) $(RTSDIR
)/$(file
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
) && \
2427 # Install the shared libraries, if any, using $(INSTALL) instead
2428 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2429 # for shared libraries on some targets, e.g. on HP-UX where the x
2430 # permission is required.
2431 # Also install the .dSYM directories if they exist (these directories
2432 # contain the debug information for the shared libraries on darwin)
2433 for file in gnat gnarl
; do \
2434 if
[ -f
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) ]; then \
2435 $(INSTALL
) $(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2436 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2438 if
[ -f
$(RTSDIR
)/lib
$${file}$(soext
) ]; then \
2439 $(LN_S
) lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2440 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/lib
$${file}$(soext
); \
2442 if
[ -d
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM
]; then \
2443 $(CP
) -r
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM \
2444 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2447 # This copy must be done preserving the date on the original file.
2448 for file in
$(RTSDIR
)/*.ad?
; do \
2449 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_INCLUDE_DIR
); \
2451 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.adb
2452 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.ads
2454 ..
/stamp-gnatlib2-
$(RTSDIR
):
2455 $(RM
) $(RTSDIR
)/s-
*.ali
2456 $(RM
) $(RTSDIR
)/s-
*$(objext
)
2457 $(RM
) $(RTSDIR
)/a-
*.ali
2458 $(RM
) $(RTSDIR
)/a-
*$(objext
)
2459 $(RM
) $(RTSDIR
)/*.ali
2460 $(RM
) $(RTSDIR
)/*$(objext
)
2461 $(RM
) $(RTSDIR
)/*$(arext
)
2462 $(RM
) $(RTSDIR
)/*$(soext
)
2463 touch ..
/stamp-gnatlib2-
$(RTSDIR
)
2464 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2466 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
2467 # successive target commands. Although the Gnu make documentation
2468 # implies this is true on all systems, I suspect it may not be, So care
2469 # has been taken to allow a sed script to look for ";)" and substitue
2470 # for ";" the appropriate character in the range of lines below
2471 # beginning with "GNULLI Begin" and ending with "GNULLI End"
2473 # GNULLI Begin ###########################################################
2475 ..
/stamp-gnatlib1-
$(RTSDIR
): Makefile ..
/stamp-gnatlib2-
$(RTSDIR
)
2478 $(CHMOD
) u
+w
$(RTSDIR
)
2479 # Copy target independent sources
2480 $(foreach f
,$(ADA_INCLUDE_SRCS
) $(LIBGNAT_SRCS
), \
2481 $(LN_S
) $(fsrcpfx
)ada
/$(f
) $(RTSDIR
) ;) true
2482 # Remove files to be replaced by target dependent sources
2483 $(RM
) $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2484 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
))))
2485 for f in
$(RTSDIR
)/*-*-*.ads
$(RTSDIR
)/*-*-*.adb
; do \
2487 $(RTSDIR
)/s-stratt-
*) ;; \
2491 # Copy new target dependent sources
2492 $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2493 $(LN_S
) $(fsrcpfx
)ada
/$(word 2,$(subst <, ,$(PAIR
))) \
2494 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
)));)
2496 $(CP
) $(srcdir)/tsystem.h
$(RTSDIR
)
2497 # Copy generated target dependent sources
2498 $(RM
) $(RTSDIR
)/s-oscons.ads
2499 (cd
$(RTSDIR
); $(LN_S
) ..
/s-oscons.ads s-oscons.ads
)
2500 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2501 touch ..
/stamp-gnatlib1-
$(RTSDIR
)
2503 # GNULLI End #############################################################
2505 # Don't use semicolon separated shell commands that involve list expansions.
2506 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
2507 # line lengths in excess of 256 characters.
2508 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
2509 # is guaranteed to overflow the buffer.
2511 gnatlib
: ..
/stamp-gnatlib1-
$(RTSDIR
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2512 $(MAKE
) -C
$(RTSDIR
) \
2513 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2514 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2515 INCLUDES
="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2516 CFLAGS
="$(GNATLIBCFLAGS_FOR_C)" \
2517 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2519 -f ..
/Makefile
$(LIBGNAT_OBJS
)
2520 $(MAKE
) -C
$(RTSDIR
) \
2521 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2522 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2524 CFLAGS
="$(GNATLIBCFLAGS)" \
2525 ADAFLAGS
="$(GNATLIBFLAGS)" \
2526 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2530 $(RM
) $(RTSDIR
)/libgnat
$(arext
) $(RTSDIR
)/libgnarl
$(arext
)
2531 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnat
$(arext
) \
2532 $(addprefix $(RTSDIR
)/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
2533 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnat
$(arext
)
2534 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnarl
$(arext
) \
2535 $(addprefix $(RTSDIR
)/,$(GNATRTL_TASKING_OBJS
))
2536 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnarl
$(arext
)
2537 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnala
$(arext
) \
2538 $(addprefix $(RTSDIR
)/,$(GNATRTL_LINEARALGEBRA_OBJS
))
2539 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnala
$(arext
)
2540 ifeq ($(GMEM_LIB
),gmemlib
)
2541 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgmem
$(arext
) \
2542 $(RTSDIR
)/memtrack.o
2543 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgmem
$(arext
)
2545 $(CHMOD
) a-wx
$(RTSDIR
)/*.ali
2546 touch ..
/stamp-gnatlib-
$(RTSDIR
)
2548 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2549 gnatlib-shared-default
:
2550 $(MAKE
) $(FLAGS_TO_PASS
) \
2551 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2552 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2553 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2554 MULTISUBDIR
="$(MULTISUBDIR)" \
2555 THREAD_KIND
="$(THREAD_KIND)" \
2557 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2558 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2559 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
$(GNATLIBCFLAGS
) \
2560 $(PICFLAG_FOR_TARGET
) \
2561 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2562 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2563 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2565 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2566 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
$(GNATLIBCFLAGS
) \
2567 $(PICFLAG_FOR_TARGET
) \
2568 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2569 $(GNATRTL_TASKING_OBJS
) \
2570 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2572 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2574 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2577 gnatlib-shared-dual
:
2578 $(MAKE
) $(FLAGS_TO_PASS
) \
2579 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2580 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2581 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2582 MULTISUBDIR
="$(MULTISUBDIR)" \
2583 THREAD_KIND
="$(THREAD_KIND)" \
2584 gnatlib-shared-default
2585 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2586 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2587 $(MAKE
) $(FLAGS_TO_PASS
) \
2588 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2589 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2590 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2591 MULTISUBDIR
="$(MULTISUBDIR)" \
2592 THREAD_KIND
="$(THREAD_KIND)" \
2594 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2596 gnatlib-shared-dual-win32
:
2597 $(MAKE
) $(FLAGS_TO_PASS
) \
2598 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2599 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2600 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2601 MULTISUBDIR
="$(MULTISUBDIR)" \
2602 THREAD_KIND
="$(THREAD_KIND)" \
2603 gnatlib-shared-win32
2604 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2605 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2606 $(MAKE
) $(FLAGS_TO_PASS
) \
2607 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2608 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2609 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2610 MULTISUBDIR
="$(MULTISUBDIR)" \
2611 THREAD_KIND
="$(THREAD_KIND)" \
2613 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2615 # ??? we need to add the option to support auto-import of arrays/records to
2616 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2617 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2619 gnatlib-shared-win32
:
2620 $(MAKE
) $(FLAGS_TO_PASS
) \
2621 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2622 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2623 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2624 MULTISUBDIR
="$(MULTISUBDIR)" \
2625 THREAD_KIND
="$(THREAD_KIND)" \
2627 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2628 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2629 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
-shared-libgcc \
2630 $(PICFLAG_FOR_TARGET
) \
2631 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2632 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2633 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) $(MISCLIB
)
2634 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2635 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
-shared-libgcc \
2636 $(PICFLAG_FOR_TARGET
) \
2637 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2638 $(GNATRTL_TASKING_OBJS
) \
2639 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2640 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2642 gnatlib-shared-darwin
:
2643 $(MAKE
) $(FLAGS_TO_PASS
) \
2644 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2645 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2646 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) -fno-common" \
2647 MULTISUBDIR
="$(MULTISUBDIR)" \
2648 THREAD_KIND
="$(THREAD_KIND)" \
2650 $(RM
) $(RTSDIR
)/libgnat
$(soext
) $(RTSDIR
)/libgnarl
$(soext
)
2651 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2652 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib
$(PICFLAG_FOR_TARGET
) \
2653 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2654 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2656 -Wl
,-install_name
,@rpath
/libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2658 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2659 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib
$(PICFLAG_FOR_TARGET
) \
2660 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2661 $(GNATRTL_TASKING_OBJS
) \
2663 -Wl
,-install_name
,@rpath
/libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2664 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2665 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2667 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2669 cd
$(RTSDIR
); dsymutil libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2670 cd
$(RTSDIR
); dsymutil libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2673 $(MAKE
) $(FLAGS_TO_PASS
) \
2674 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2675 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2676 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2677 MULTISUBDIR
="$(MULTISUBDIR)" \
2678 THREAD_KIND
="$(THREAD_KIND)" \
2680 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2682 ..
/..
/gnatsym
-s SYMVEC_
$$$$.opt \
2683 $(LIBGNAT_OBJS
) $(GNATRTL_NONTASKING_OBJS
) && \
2684 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2685 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) libgnat.a \
2686 sys\
$$library:trace.exe \
2687 --for-linker
=/noinform \
2688 --for-linker
=SYMVEC_
$$$$.opt \
2689 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2691 ..
/..
/gnatsym
-s SYMVEC_
$$$$.opt \
2692 $(GNATRTL_TASKING_OBJS
) && \
2693 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2694 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2695 libgnarl.a libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2696 sys\
$$library:trace.exe \
2697 --for-linker
=/noinform \
2698 --for-linker
=SYMVEC_
$$$$.opt \
2699 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2702 $(MAKE
) $(FLAGS_TO_PASS
) \
2703 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2704 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2705 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2706 MULTISUBDIR
="$(MULTISUBDIR)" \
2707 THREAD_KIND
="$(THREAD_KIND)" \
2708 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" \
2712 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="" \
2713 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2714 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2715 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2716 $(MAKE
) $(FLAGS_TO_PASS
) \
2718 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2719 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2720 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2721 MULTISUBDIR
="$(MULTISUBDIR)" \
2722 THREAD_KIND
="$(THREAD_KIND)" \
2723 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" gnatlib
2726 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="-gcc" \
2727 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2728 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2729 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2730 $(MAKE
) $(FLAGS_TO_PASS
) \
2731 EH_MECHANISM
="-gcc" \
2732 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2733 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2734 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2735 MULTISUBDIR
="$(MULTISUBDIR)" \
2736 THREAD_KIND
="$(THREAD_KIND)" \
2737 PICFLAG_FOR_TARGET
="$(PICFLAG_FOR_TARGET)" gnatlib
2739 # .s files for cross-building
2741 make
$(GNAT1_ADA_OBJS
) CC
="gcc -B../stage1/" CFLAGS
="-S -gnatp"
2743 # Compiling object files from source files.
2745 # Note that dependencies on obstack.h are not written
2746 # because that file is not part of GCC.
2747 # Dependencies on gvarargs.h are not written
2748 # because all that file does, when not compiling with GCC,
2749 # is include the system varargs.h.
2751 b_gnatl.adb
: $(GNATLINK_OBJS
)
2752 $(GNATBIND
) $(ADA_INCLUDES
) -o b_gnatl.adb gnatlink.ali
2754 b_gnatl.o
: b_gnatl.adb
2755 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) -gnatws
-gnatyN \
2758 b_gnatm.adb
: $(GNATMAKE_OBJS
)
2759 $(GNATBIND
) $(ADA_INCLUDES
) -o b_gnatm.adb gnatmake.ali
2761 b_gnatm.o
: b_gnatm.adb
2762 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) -gnatws
-gnatyN \
2765 ADA_INCLUDE_DIR
= $(libsubdir
)/adainclude
2766 ADA_RTL_OBJ_DIR
= $(libsubdir
)/adalib
2770 # force no sibling call optimization on s-traceb.o so the number of stack
2771 # frames to be skipped when computing a call chain is not modified by
2774 s-traceb.o
: s-traceb.adb s-traceb.ads
2775 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) \
2776 $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2778 # force debugging information on s-tasdeb.o so that it is always
2779 # possible to set conditional breakpoints on tasks.
2781 s-tasdeb.o
: s-tasdeb.adb s-tasdeb.ads
2782 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2785 # force debugging information on s-vaflop.o so that it is always
2786 # possible to call the VAX float debug print routines.
2787 # force at least -O so that the inline assembly works.
2789 s-vaflop.o
: s-vaflop.adb s-vaflop.ads
2790 $(CC
) -c
-O
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
2793 # force no function reordering on a-except.o because of the exclusion bounds
2794 # mechanism (see the source file for more detailed information).
2795 # force debugging information on a-except.o so that it is always
2796 # possible to set conditional breakpoints on exceptions.
2797 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2799 a-except.o
: a-except.adb a-except.ads
2800 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O1
-fno-inline \
2801 $(NO_REORDER_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2803 # compile s-excdeb.o without optimization and with debug info to let the
2804 # debugger set breakpoints and inspect subprogram parameters on exception
2807 s-excdeb.o
: s-excdeb.adb s-excdeb.ads s-except.ads
2808 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2811 # force debugging information on s-assert.o so that it is always
2812 # possible to set breakpoint on assert failures.
2814 s-assert.o
: s-assert.adb s-assert.ads
2815 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
2818 # force debugging information on a-tags.o so that the debugger can find
2819 # the description of Ada.Tags.Type_Specific_Data.
2821 a-tags.o
: a-tags.adb a-tags.ads
2822 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
2825 # need to keep the frame pointer in this file to pop the stack properly on
2827 tracebak.o
: tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2828 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
2829 $(INCLUDES
) -fno-omit-frame-pointer
$< $(OUTPUT_OPTION
)
2831 adadecode.o
: adadecode.c adadecode.h
2835 deftarg.o
: deftarg.c
2837 exit.o
: adaint.h exit.c
2840 locales.o
: locales.c
2842 socket.o
: socket.c gsocket.h
2844 raise.o
: raise.c raise.h
2845 vx_stack_info.o
: vx_stack_info.c
2847 raise-gcc.o
: raise-gcc.c raise.h
2848 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2849 -iquote
$(srcdir) -iquote
$(srcdir)/..
/libgcc \
2850 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2853 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2854 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2856 init.o
: init.c adaint.h raise.h
2857 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2858 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2860 initialize.o
: initialize.c raise.h
2861 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2862 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2865 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2866 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
2869 targext.o
: targext.c
2870 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2872 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
2875 # In GNU Make, ignore whether `stage*' exists.
2876 .PHONY
: stage1 stage2 stage3 stage4
clean realclean TAGS bootstrap
2877 .PHONY
: risky-stage1 risky-stage2 risky-stage3 risky-stage4