1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2010 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 GNATLIBFLAGS
= -gnatpg
-nostdinc
111 GNATLIBCFLAGS
= -g
-O2
112 # Pretend that _Unwind_GetIPInfo is available for the target by default. This
113 # should be autodetected during the configuration of libada and passed down to
114 # here, but we need something for --disable-libada and hope for the best.
115 GNATLIBCFLAGS_FOR_C
= $(GNATLIBCFLAGS
) $(TARGET_LIBGCC2_CFLAGS
) -fexceptions \
116 -DIN_RTS
-DHAVE_GETIPINFO
117 ALL_ADAFLAGS
= $(CFLAGS
) $(ADA_CFLAGS
) $(ADAFLAGS
)
118 MOST_ADAFLAGS
= $(CFLAGS
) $(ADA_CFLAGS
) $(SOME_ADAFLAGS
)
123 SYMDEPS
= $(LIBINTL_DEP
)
124 OUTPUT_OPTION
= @OUTPUT_OPTION@
133 # Define this as & to perform parallel make on a Sequent.
134 # Note that this has some bugs, and it seems currently necessary
135 # to compile all the gen* files first by hand to avoid erroneous results.
138 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
140 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
141 GCC_CFLAGS
= $(INTERNAL_CFLAGS
) $(T_CFLAGS
) $(CFLAGS
)
143 # Tools to use when building a cross-compiler.
144 # These are used because `configure' appends `cross-make'
145 # to the makefile when making a cross-compiler.
147 # We don't use cross-make. Instead we use the tools from the build tree,
148 # if they are available.
149 # program_transform_name and objdir are set by configure.in.
150 program_transform_name
=
153 target_alias
=@target_alias@
155 xmake_file
= @xmake_file@
156 tmake_file
= @tmake_file@
157 host_canonical
=@host@
158 target_cpu_default
=@target_cpu_default@
159 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
160 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
162 # Directory where sources are, from where we are.
163 VPATH
= $(srcdir)/ada
165 fsrcdir
:= $(shell cd
$(srcdir);${PWD_COMMAND})
166 fsrcpfx
:= $(shell cd
$(srcdir);${PWD_COMMAND})/
167 fcurdir
:= $(shell ${PWD_COMMAND})
168 fcurpfx
:= $(shell ${PWD_COMMAND})/
170 # Top build directory, relative to here.
173 # Internationalization library.
175 LIBINTL_DEP
= @LIBINTL_DEP@
177 # Any system libraries needed just for GNAT.
178 SYSLIBS
= @GNAT_LIBEXC@
180 # List of extra object files linked in with various programs.
181 EXTRA_GNATTOOLS_OBJS
= ..
/..
/prefix.o ..
/..
/version.o
183 # List of target dependent sources, overridden below as necessary
186 # Type of tools build we are doing; default is not compiling tools.
191 RTSDIR
= rts
$(subst /,_
,$(MULTISUBDIR
))
193 # Link flags used to build gnat tools. By default we prefer to statically
194 # link with libgcc to avoid a dependency on shared libgcc (which is tricky
195 # to deal with as it may conflict with the libgcc provided by the system).
196 GCC_LINK_FLAGS
=-static-libgcc
198 # End of variables for you to override.
202 # This tells GNU Make version 3 not to put all variables in the environment.
206 ifneq ($(tmake_file
),)
207 include $(tmake_file
)
211 ifneq ($(xmake_file
),)
212 include $(xmake_file
)
215 # Now figure out from those variables how to compile and link.
217 all.indirect
: Makefile ..
/gnat1
$(exeext
)
219 # IN_GCC distinguishes between code compiled into GCC itself and other
220 # programs built during a bootstrap.
221 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
222 # compiler which does not use the native libraries and headers.
223 INTERNAL_CFLAGS
= @CROSS@
-DIN_GCC
225 # This is the variable actually used when we compile.
226 LOOSE_CFLAGS
= `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
227 ALL_CFLAGS
= $(INTERNAL_CFLAGS
) $(T_CFLAGS
) $(LOOSE_CFLAGS
)
230 ALL_CPPFLAGS
= $(CPPFLAGS
)
232 # Used with $(COMPILER).
233 ALL_COMPILERFLAGS
= $(ALL_CFLAGS
)
235 # This is where we get libiberty.a from.
236 LIBIBERTY
= ..
/..
/libiberty
/libiberty.a
238 # How to link with both our special library facilities
239 # and the system's installed libraries.
240 LIBS
= $(LIBINTL
) $(LIBIBERTY
) $(SYSLIBS
)
241 LIBDEPS
= $(LIBINTL_DEP
) $(LIBIBERTY
)
242 # Default is no TGT_LIB; one might be passed down or something
244 TOOLS_LIBS
= $(EXTRA_GNATTOOLS_OBJS
) targext.o link.o
$(LIBGNAT
) ..
/..
/..
/libiberty
/libiberty.a
$(SYSLIBS
) $(TGT_LIB
)
246 # Specify the directories to be searched for header files.
247 # Both . and srcdir are used, in that order,
248 # so that tm.h and config.h will be found in the compilation
249 # subdirectory rather than in the source directory.
250 INCLUDES
= -I-
-I.
-I..
-I
$(srcdir)/ada
-I
$(srcdir) -I
$(srcdir)/config \
251 -I
$(srcdir)/..
/include
253 ADA_INCLUDES
= -I-
-I.
-I
$(srcdir)/ada
255 INCLUDES_FOR_SUBDIR
= -I.
-I..
-I..
/..
-I
$(fsrcdir
)/ada \
256 -I
$(fsrcdir
)/..
/include -I
$(fsrcdir
)
257 ADA_INCLUDES_FOR_SUBDIR
= -I.
-I
$(fsrcdir
)/ada
259 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
262 # Say how to compile Ada programs.
263 .SUFFIXES
: .ada .adb .ads .asm
265 # Always use -I$(srcdir)/config when compiling.
267 $(CC
) -c
-x assembler
$< $(OUTPUT_OPTION
)
270 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
271 $(INCLUDES
) $< $(OUTPUT_OPTION
)
274 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
277 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
279 # how to regenerate this file
280 Makefile
: ..
/config.status
$(srcdir)/ada
/gcc-interface
/Makefile.in
$(srcdir)/ada
/Makefile.in
$(srcdir)/version.c
282 LANGUAGES
="$(CONFIG_LANGUAGES)" \
284 CONFIG_FILES
="ada/gcc-interface/Makefile ada/Makefile" $(SHELL
) config.status
286 # This tells GNU make version 3 not to export all the variables
287 # defined in this file into the environment.
290 # Lists of files for various purposes.
292 GNATLINK_OBJS
= gnatlink.o \
293 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
294 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
295 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
296 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
297 types.o validsw.o widechar.o
299 GNATMAKE_OBJS
= a-except.o ali.o ali-util.o s-casuti.o \
300 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
301 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
302 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
303 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
304 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o \
305 output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o \
306 prj-conf.o prj-pp.o \
307 prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o prj-proc.o prj-strt.o \
308 prj-tree.o prj-util.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
309 scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o sinfo.o sinput.o \
310 sinput-c.o sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o \
311 validsw.o switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o \
312 uintp.o uname.o urealp.o usage.o widechar.o scil_ll.o \
313 $(EXTRA_GNATMAKE_OBJS
)
315 # Convert the target variable into a space separated list of architecture,
316 # manufacturer, and operating system and assign each of those to its own
319 host
:=$(subst -, ,$(host_canonical
))
320 targ
:=$(subst -, ,$(target
))
321 arch
:=$(word 1,$(targ
))
322 ifeq ($(words $(targ
)),2)
324 osys
:=$(word 2,$(targ
))
326 manu
:=$(word 2,$(targ
))
327 osys
:=$(word 3,$(targ
))
330 # Make arch match the current multilib so that the RTS selection code
331 # picks up the right files. For a given target this must be coherent
332 # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*.
334 ifeq ($(strip $(filter-out %x86_64
, $(arch
))),)
335 ifeq ($(strip $(MULTISUBDIR
)),/32)
340 # ???: handle more multilib targets
342 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
343 # The members of each pair must be separated by a '<' and no whitespace.
344 # Each pair must be separated by some amount of whitespace from the following
349 LIBGNAT_TARGET_PAIRS
= \
350 a-intnam.ads
<a-intnam-dummy.ads \
351 s-inmaop.adb
<s-inmaop-dummy.adb \
352 s-intman.adb
<s-intman-dummy.adb \
353 s-osinte.ads
<s-osinte-dummy.ads \
354 s-osprim.adb
<s-osprim-posix.adb \
355 s-taprop.adb
<s-taprop-dummy.adb \
356 s-taspri.ads
<s-taspri-dummy.ads
358 # When using the GCC exception handling mechanism, we need to use an
359 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
363 # Default shared object option. Note that we rely on the fact that the "soname"
364 # option will always be present and last in this flag, so that we can have
365 # $(SO_OPTS)libgnat-x.xx
367 SO_OPTS
= -Wl
,-soname
,
369 # Default gnatlib-shared target.
370 # By default, equivalent to gnatlib.
371 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
372 # target when supported.
373 GNATLIB_SHARED
= gnatlib
375 # default value for gnatmake's target dependent file
378 # By default, build socket support units. On platforms that do not support
379 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
380 # to LIBGNAT_TARGET_PAIRS.
382 GNATRTL_SOCKETS_OBJS
= g-soccon
$(objext
) g-socket
$(objext
) g-socthi
$(objext
) \
383 g-soliop
$(objext
) g-sothco
$(objext
)
385 DUMMY_SOCKETS_TARGET_PAIRS
= \
386 g-socket.adb
<g-socket-dummy.adb \
387 g-socket.ads
<g-socket-dummy.ads \
388 g-socthi.adb
<g-socthi-dummy.adb \
389 g-socthi.ads
<g-socthi-dummy.ads \
390 g-sothco.adb
<g-sothco-dummy.adb \
391 g-sothco.ads
<g-sothco-dummy.ads
393 # On platform where atomic increment/decrement operations are supported
394 # special version of Ada.Strings.Unbounded package can be used.
396 ATOMICS_TARGET_PAIRS
+= \
397 a-stunau.adb
<a-stunau-shared.adb \
398 a-suteio.adb
<a-suteio-shared.adb \
399 a-strunb.ads
<a-strunb-shared.ads \
400 a-strunb.adb
<a-strunb-shared.adb \
401 a-stwiun.adb
<a-stwiun-shared.adb \
402 a-stwiun.ads
<a-stwiun-shared.ads \
403 a-swunau.adb
<a-swunau-shared.adb \
404 a-swuwti.adb
<a-swuwti-shared.adb \
405 a-stzunb.adb
<a-stzunb-shared.adb \
406 a-stzunb.ads
<a-stzunb-shared.ads \
407 a-szunau.adb
<a-szunau-shared.adb \
408 a-szuzti.adb
<a-szuzti-shared.adb
410 LIB_VERSION
= $(strip $(shell grep
' Library_Version :' $(fsrcpfx
)ada
/gnatvsn.ads | sed
-e
's/.*"\(.*\)".*/\1/'))
412 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
413 # $(strip STRING) removes leading and trailing spaces from STRING.
414 # If what's left is null then it's a match.
416 ifeq ($(strip $(filter-out m68k
% wrs vx
%,$(targ
))),)
417 LIBGNAT_TARGET_PAIRS
= \
418 a-intnam.ads
<a-intnam-vxworks.ads \
419 a-numaux.ads
<a-numaux-vxworks.ads \
420 s-inmaop.adb
<s-inmaop-posix.adb \
421 s-interr.adb
<s-interr-hwint.adb \
422 s-intman.ads
<s-intman-vxworks.ads \
423 s-intman.adb
<s-intman-vxworks.adb \
424 s-osinte.adb
<s-osinte-vxworks.adb \
425 s-osinte.ads
<s-osinte-vxworks.ads \
426 s-osprim.adb
<s-osprim-vxworks.adb \
427 s-parame.ads
<s-parame-vxworks.ads \
428 s-parame.adb
<s-parame-vxworks.adb \
429 s-stchop.ads
<s-stchop-limit.ads \
430 s-stchop.adb
<s-stchop-vxworks.adb \
431 s-taprop.adb
<s-taprop-vxworks.adb \
432 s-tasinf.ads
<s-tasinf-vxworks.ads \
433 s-taspri.ads
<s-taspri-vxworks.ads \
434 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
435 s-vxwork.ads
<s-vxwork-m68k.ads \
436 g-socthi.ads
<g-socthi-vxworks.ads \
437 g-socthi.adb
<g-socthi-vxworks.adb \
438 g-stsifd.adb
<g-stsifd-sockets.adb \
439 g-trasym.ads
<g-trasym-unimplemented.ads \
440 g-trasym.adb
<g-trasym-unimplemented.adb \
441 system.ads
<system-vxworks-m68k.ads
443 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb
445 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
446 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
448 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
449 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
451 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
452 LIBGNAT_TARGET_PAIRS
+= \
453 s-traces.adb
<s-traces-default.adb \
454 s-tratas.adb
<s-tratas-default.adb \
455 s-trafor.adb
<s-trafor-default.adb \
456 s-trafor.ads
<s-trafor-default.ads \
457 s-tfsetr.adb
<s-tfsetr-vxworks.adb
461 ifeq ($(strip $(filter-out powerpc
% wrs vxworks
,$(targ
))),)
462 LIBGNAT_TARGET_PAIRS
= \
463 a-intnam.ads
<a-intnam-vxworks.ads \
464 a-numaux.ads
<a-numaux-vxworks.ads \
465 s-inmaop.adb
<s-inmaop-posix.adb \
466 s-intman.ads
<s-intman-vxworks.ads \
467 s-intman.adb
<s-intman-vxworks.adb \
468 s-osinte.ads
<s-osinte-vxworks.ads \
469 s-osinte.adb
<s-osinte-vxworks.adb \
470 s-osprim.adb
<s-osprim-vxworks.adb \
471 s-parame.ads
<s-parame-vxworks.ads \
472 s-parame.adb
<s-parame-vxworks.adb \
473 s-stchop.ads
<s-stchop-limit.ads \
474 s-stchop.adb
<s-stchop-vxworks.adb \
475 s-taprop.adb
<s-taprop-vxworks.adb \
476 s-tasinf.ads
<s-tasinf-vxworks.ads \
477 s-taspri.ads
<s-taspri-vxworks.ads \
478 s-vxwork.ads
<s-vxwork-ppc.ads \
479 g-socthi.ads
<g-socthi-vxworks.ads \
480 g-socthi.adb
<g-socthi-vxworks.adb \
481 g-stsifd.adb
<g-stsifd-sockets.adb \
482 g-trasym.ads
<g-trasym-unimplemented.ads \
483 g-trasym.adb
<g-trasym-unimplemented.adb \
484 $(ATOMICS_TARGET_PAIRS
)
487 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
488 indepsw.adb
<indepsw-gnu.adb
490 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
491 LIBGNAT_TARGET_PAIRS
+= \
492 s-traces.adb
<s-traces-default.adb \
493 s-trafor.adb
<s-trafor-default.adb \
494 s-trafor.ads
<s-trafor-default.ads \
495 s-tratas.adb
<s-tratas-default.adb \
496 s-tfsetr.adb
<s-tfsetr-vxworks.adb
499 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
500 LIBGNAT_TARGET_PAIRS
+= \
501 s-vxwext.ads
<s-vxwext-rtp.ads \
502 s-vxwext.adb
<s-vxwext-rtp.adb \
503 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
504 system.ads
<system-vxworks-ppc-rtp.ads
506 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
508 ifeq ($(strip $(filter-out rtp-smp
,$(THREAD_KIND
))),)
509 LIBGNAT_TARGET_PAIRS
+= \
510 s-vxwext.ads
<s-vxwext-rtp.ads \
511 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
512 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
513 system.ads
<system-vxworks-ppc-rtp.ads
515 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
516 EXTRA_GNATRTL_TASKING_OBJS
=affinity.o
518 ifeq ($(strip $(filter-out kernel-smp
,$(THREAD_KIND
))),)
519 LIBGNAT_TARGET_PAIRS
+= \
520 s-interr.adb
<s-interr-hwint.adb \
521 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
522 s-vxwext.ads
<s-vxwext-kernel.ads \
523 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
524 system.ads
<system-vxworks-ppc-kernel.ads
526 EXTRA_GNATRTL_TASKING_OBJS
=affinity.o
528 LIBGNAT_TARGET_PAIRS
+= \
529 s-interr.adb
<s-interr-hwint.adb \
530 s-tpopsp.adb
<s-tpopsp-vxworks.adb
532 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
533 LIBGNAT_TARGET_PAIRS
+= \
534 s-vxwext.ads
<s-vxwext-kernel.ads \
535 s-vxwext.adb
<s-vxwext-kernel.adb \
536 system.ads
<system-vxworks-ppc-kernel.ads
538 LIBGNAT_TARGET_PAIRS
+= \
539 system.ads
<system-vxworks-ppc.ads
542 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
546 EXTRA_GNATRTL_TASKING_OBJS
+= s-vxwork.o s-vxwext.o
548 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
549 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
553 ifeq ($(strip $(filter-out powerpc
% wrs vxworksae
,$(targ
))),)
554 # target pairs for vthreads runtime
555 LIBGNAT_TARGET_PAIRS
= \
556 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
557 a-intnam.ads
<a-intnam-vxworks.ads \
558 a-numaux.ads
<a-numaux-vxworks.ads \
559 g-io.adb
<g-io-vxworks-ppc-cert.adb \
560 g-io.ads
<g-io-vxworks-ppc-cert.ads \
561 s-inmaop.adb
<s-inmaop-posix.adb \
562 s-interr.adb
<s-interr-hwint.adb \
563 s-intman.ads
<s-intman-vxworks.ads \
564 s-intman.adb
<s-intman-vxworks.adb \
565 s-osinte.adb
<s-osinte-vxworks.adb \
566 s-osinte.ads
<s-osinte-vxworks.ads \
567 s-osprim.adb
<s-osprim-vxworks.adb \
568 s-parame.ads
<s-parame-ae653.ads \
569 s-parame.adb
<s-parame-vxworks.adb \
570 s-taprop.adb
<s-taprop-vxworks.adb \
571 s-tasinf.ads
<s-tasinf-vxworks.ads \
572 s-taspri.ads
<s-taspri-vxworks.ads \
573 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
574 s-vxwext.adb
<s-vxwext-noints.adb \
575 s-vxwext.ads
<s-vxwext-vthreads.ads \
576 s-vxwork.ads
<s-vxwork-ppc.ads \
577 g-trasym.ads
<g-trasym-unimplemented.ads \
578 g-trasym.adb
<g-trasym-unimplemented.adb \
579 system.ads
<system-vxworks-ppc-vthread.ads \
580 $(ATOMICS_TARGET_PAIRS
)
583 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
584 indepsw.adb
<indepsw-gnu.adb
586 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
587 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
589 # Extra pairs for the vthreads runtime
590 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
591 LIBGNAT_TARGET_PAIRS
+= \
592 s-thread.adb
<s-thread-ae653.adb \
593 $(DUMMY_SOCKETS_TARGET_PAIRS
)
595 GNATRTL_SOCKETS_OBJS
=
596 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
598 LIBGNAT_TARGET_PAIRS
+= \
599 g-socthi.ads
<g-socthi-vxworks.ads \
600 g-socthi.adb
<g-socthi-vxworks.adb \
601 g-stsifd.adb
<g-stsifd-sockets.adb
604 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
605 LIBGNAT_TARGET_PAIRS
+= \
606 s-traces.adb
<s-traces-default.adb \
607 s-trafor.adb
<s-trafor-default.adb \
608 s-trafor.ads
<s-trafor-default.ads \
609 s-tratas.adb
<s-tratas-default.adb \
610 s-tfsetr.adb
<s-tfsetr-vxworks.adb
615 ifeq ($(strip $(filter-out powerpc
% wrs vxworksmils
,$(targ
))),)
616 # target pairs for vthreads runtime
617 LIBGNAT_TARGET_PAIRS
= \
618 a-intnam.ads
<a-intnam-vxworks.ads \
619 a-numaux.ads
<a-numaux-vxworks.ads \
620 g-io.adb
<g-io-vxworks-ppc-cert.adb \
621 g-io.ads
<g-io-vxworks-ppc-cert.ads \
622 s-inmaop.adb
<s-inmaop-posix.adb \
623 s-interr.adb
<s-interr-hwint.adb \
624 s-intman.ads
<s-intman-vxworks.ads \
625 s-intman.adb
<s-intman-vxworks.adb \
626 s-osinte.adb
<s-osinte-vxworks.adb \
627 s-osinte.ads
<s-osinte-vxworks.ads \
628 s-osprim.adb
<s-osprim-vxworks.adb \
629 s-parame.ads
<s-parame-ae653.ads \
630 s-parame.adb
<s-parame-vxworks.adb \
631 s-stchop.adb
<s-stchop-vxworks.adb \
632 s-stchop.ads
<s-stchop-limit.ads \
633 s-taprop.adb
<s-taprop-vxworks.adb \
634 s-tasinf.ads
<s-tasinf-vxworks.ads \
635 s-taspri.ads
<s-taspri-vxworks.ads \
636 s-thread.adb
<s-thread-ae653.adb \
637 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
638 s-vxwork.ads
<s-vxwork-ppc.ads \
639 g-trasym.ads
<g-trasym-unimplemented.ads \
640 g-trasym.adb
<g-trasym-unimplemented.adb \
641 system.ads
<system-vxworks-ppc.ads \
642 $(ATOMICS_TARGET_PAIRS
) \
643 $(DUMMY_SOCKETS_TARGET_PAIRS
)
646 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
647 indepsw.adb
<indepsw-gnu.adb
649 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-thread.o s-vxwexc.o
650 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
652 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
653 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
654 GNATRTL_SOCKETS_OBJS
=
656 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
657 LIBGNAT_TARGET_PAIRS
+= \
658 s-traces.adb
<s-traces-default.adb \
659 s-trafor.adb
<s-trafor-default.adb \
660 s-trafor.ads
<s-trafor-default.ads \
661 s-tratas.adb
<s-tratas-default.adb \
662 s-tfsetr.adb
<s-tfsetr-vxworks.adb
666 # vxworksae / vxworks 653 for x86 (vxsim) - ?? vxworksmils not implemented
667 ifeq ($(strip $(filter-out %86 wrs vxworksae vxworksmils
,$(targ
))),)
668 # target pairs for kernel + vthreads runtime
669 LIBGNAT_TARGET_PAIRS
= \
670 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
671 a-intnam.ads
<a-intnam-vxworks.ads \
672 a-numaux.ads
<a-numaux-x86.ads \
673 a-numaux.adb
<a-numaux-x86.adb \
674 a-sytaco.ads
<1asytaco.ads \
675 a-sytaco.adb
<1asytaco.adb \
676 g-bytswa.adb
<g-bytswa-x86.adb \
677 g-io.adb
<g-io-vxworks-ppc-cert.adb \
678 g-io.ads
<g-io-vxworks-ppc-cert.ads \
679 s-inmaop.adb
<s-inmaop-posix.adb \
680 s-interr.adb
<s-interr-hwint.adb \
681 s-intman.ads
<s-intman-vxworks.ads \
682 s-intman.adb
<s-intman-vxworks.adb \
683 s-osinte.adb
<s-osinte-vxworks.adb \
684 s-osinte.ads
<s-osinte-vxworks.ads \
685 s-osprim.adb
<s-osprim-vxworks.adb \
686 s-parame.ads
<s-parame-ae653.ads \
687 s-taprop.adb
<s-taprop-vxworks.adb \
688 s-tasinf.ads
<s-tasinf-vxworks.ads \
689 s-taspri.ads
<s-taspri-vxworks.ads \
690 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
691 s-vxwext.adb
<s-vxwext-noints.adb \
692 s-vxwext.ads
<s-vxwext-vthreads.ads \
693 s-vxwork.ads
<s-vxwork-x86.ads \
694 g-trasym.ads
<g-trasym-unimplemented.ads \
695 g-trasym.adb
<g-trasym-unimplemented.adb \
696 system.ads
<system-vxworks-x86.ads
699 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
700 indepsw.adb
<indepsw-gnu.adb
702 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
703 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
705 # Extra pairs for the vthreads runtime
706 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
707 LIBGNAT_TARGET_PAIRS
+= \
708 s-thread.adb
<s-thread-ae653.adb \
709 $(DUMMY_SOCKETS_TARGET_PAIRS
)
711 GNATRTL_SOCKETS_OBJS
=
712 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
714 LIBGNAT_TARGET_PAIRS
+= \
715 g-socthi.ads
<g-socthi-vxworks.ads \
716 g-socthi.adb
<g-socthi-vxworks.adb \
717 g-stsifd.adb
<g-stsifd-sockets.adb
720 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
721 LIBGNAT_TARGET_PAIRS
+= \
722 s-traces.adb
<s-traces-default.adb \
723 s-trafor.adb
<s-trafor-default.adb \
724 s-trafor.ads
<s-trafor-default.ads \
725 s-tratas.adb
<s-tratas-default.adb \
726 s-tfsetr.adb
<s-tfsetr-vxworks.adb
730 ifeq ($(strip $(filter-out sparc
% wrs vx
%,$(targ
))),)
731 LIBGNAT_TARGET_PAIRS
= \
732 a-intnam.ads
<a-intnam-vxworks.ads \
733 a-numaux.ads
<a-numaux-vxworks.ads \
734 s-inmaop.adb
<s-inmaop-posix.adb \
735 s-interr.adb
<s-interr-hwint.adb \
736 s-intman.ads
<s-intman-vxworks.ads \
737 s-intman.adb
<s-intman-vxworks.adb \
738 s-osinte.adb
<s-osinte-vxworks.adb \
739 s-osinte.ads
<s-osinte-vxworks.ads \
740 s-osprim.adb
<s-osprim-vxworks.adb \
741 s-parame.ads
<s-parame-vxworks.ads \
742 s-parame.adb
<s-parame-vxworks.adb \
743 s-stchop.ads
<s-stchop-limit.ads \
744 s-stchop.adb
<s-stchop-vxworks.adb \
745 s-taprop.adb
<s-taprop-vxworks.adb \
746 s-tasinf.ads
<s-tasinf-vxworks.ads \
747 s-taspri.ads
<s-taspri-vxworks.ads \
748 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
749 s-vxwork.ads
<s-vxwork-sparcv9.ads \
750 g-socthi.ads
<g-socthi-vxworks.ads \
751 g-socthi.adb
<g-socthi-vxworks.adb \
752 g-stsifd.adb
<g-stsifd-sockets.adb \
753 g-trasym.ads
<g-trasym-unimplemented.ads \
754 g-trasym.adb
<g-trasym-unimplemented.adb \
755 system.ads
<system-vxworks-sparcv9.ads \
758 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
759 indepsw.adb
<indepsw-gnu.adb
761 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
762 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
764 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
765 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
768 ifeq ($(strip $(filter-out %86 wrs vxworks
,$(targ
))),)
769 LIBGNAT_TARGET_PAIRS
= \
770 a-intnam.ads
<a-intnam-vxworks.ads \
771 i-vxwork.ads
<i-vxwork-x86.ads \
772 s-osinte.adb
<s-osinte-vxworks.adb \
773 s-osinte.ads
<s-osinte-vxworks.ads \
774 s-inmaop.adb
<s-inmaop-posix.adb \
775 s-intman.ads
<s-intman-vxworks.ads \
776 s-intman.adb
<s-intman-vxworks.adb \
777 a-numaux.adb
<a-numaux-x86.adb \
778 a-numaux.ads
<a-numaux-x86.ads \
779 s-osprim.adb
<s-osprim-vxworks.adb \
780 s-parame.ads
<s-parame-vxworks.ads \
781 s-parame.adb
<s-parame-vxworks.adb \
782 s-stchop.ads
<s-stchop-limit.ads \
783 s-stchop.adb
<s-stchop-vxworks.adb \
784 s-taprop.adb
<s-taprop-vxworks.adb \
785 s-tasinf.ads
<s-tasinf-vxworks.ads \
786 s-taspri.ads
<s-taspri-vxworks.ads \
787 s-vxwork.ads
<s-vxwork-x86.ads \
788 g-bytswa.adb
<g-bytswa-x86.adb \
789 g-socthi.ads
<g-socthi-vxworks.ads \
790 g-socthi.adb
<g-socthi-vxworks.adb \
791 g-stsifd.adb
<g-stsifd-sockets.adb \
792 g-trasym.ads
<g-trasym-unimplemented.ads \
793 g-trasym.adb
<g-trasym-unimplemented.adb
796 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
797 indepsw.adb
<indepsw-gnu.adb
799 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
800 LIBGNAT_TARGET_PAIRS
+= \
801 s-traces.adb
<s-traces-default.adb \
802 s-trafor.adb
<s-trafor-default.adb \
803 s-trafor.ads
<s-trafor-default.ads \
804 s-tratas.adb
<s-tratas-default.adb \
805 s-tfsetr.adb
<s-tfsetr-vxworks.adb
808 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
809 LIBGNAT_TARGET_PAIRS
+= \
810 s-vxwext.ads
<s-vxwext-rtp.ads \
811 s-vxwext.adb
<s-vxwext-rtp.adb \
812 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
813 system.ads
<system-vxworks-x86-rtp.ads
815 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
817 ifeq ($(strip $(filter-out rtp-smp
, $(THREAD_KIND
))),)
818 LIBGNAT_TARGET_PAIRS
+= \
819 s-vxwext.ads
<s-vxwext-rtp.ads \
820 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
821 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
822 system.ads
<system-vxworks-x86-rtp.ads
824 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
825 EXTRA_GNATRTL_TASKING_OBJS
=affinity.o
827 ifeq ($(strip $(filter-out kernel-smp
, $(THREAD_KIND
))),)
828 LIBGNAT_TARGET_PAIRS
+= \
829 s-interr.adb
<s-interr-hwint.adb \
830 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
831 s-vxwext.ads
<s-vxwext-kernel.ads \
832 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
833 system.ads
<system-vxworks-x86-kernel.ads
834 EXTRA_GNATRTL_TASKING_OBJS
=affinity.o
836 LIBGNAT_TARGET_PAIRS
+= \
837 s-interr.adb
<s-interr-hwint.adb \
838 s-tpopsp.adb
<s-tpopsp-vxworks.adb
840 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
841 LIBGNAT_TARGET_PAIRS
+= \
842 s-vxwext.ads
<s-vxwext-kernel.ads \
843 s-vxwext.adb
<s-vxwext-kernel.adb \
844 system.ads
<system-vxworks-x86-kernel.ads
846 LIBGNAT_TARGET_PAIRS
+= \
847 system.ads
<system-vxworks-x86.ads
851 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
854 EXTRA_GNATRTL_TASKING_OBJS
+= s-vxwork.o s-vxwext.o
856 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
857 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
860 ifeq ($(strip $(filter-out arm
% coff wrs vx
%,$(targ
))),)
861 LIBGNAT_TARGET_PAIRS
= \
862 a-intnam.ads
<a-intnam-vxworks.ads \
863 a-numaux.ads
<a-numaux-vxworks.ads \
864 s-inmaop.adb
<s-inmaop-posix.adb \
865 s-interr.adb
<s-interr-hwint.adb \
866 s-intman.ads
<s-intman-vxworks.ads \
867 s-intman.adb
<s-intman-vxworks.adb \
868 s-osinte.adb
<s-osinte-vxworks.adb \
869 s-osinte.ads
<s-osinte-vxworks.ads \
870 s-osprim.adb
<s-osprim-vxworks.adb \
871 s-parame.ads
<s-parame-vxworks.ads \
872 s-parame.adb
<s-parame-vxworks.adb \
873 s-stchop.ads
<s-stchop-limit.ads \
874 s-stchop.adb
<s-stchop-vxworks.adb \
875 s-taprop.adb
<s-taprop-vxworks.adb \
876 s-tasinf.ads
<s-tasinf-vxworks.ads \
877 s-taspri.ads
<s-taspri-vxworks.ads \
878 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
879 s-vxwork.ads
<s-vxwork-arm.ads \
880 g-socthi.ads
<g-socthi-vxworks.ads \
881 g-socthi.adb
<g-socthi-vxworks.adb \
882 g-stsifd.adb
<g-stsifd-sockets.adb \
883 g-trasym.ads
<g-trasym-unimplemented.ads \
884 g-trasym.adb
<g-trasym-unimplemented.adb \
885 system.ads
<system-vxworks-arm.ads
888 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
889 indepsw.adb
<indepsw-gnu.adb
891 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
892 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
894 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
895 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
898 ifeq ($(strip $(filter-out mips
% wrs vx
%,$(targ
))),)
899 LIBGNAT_TARGET_PAIRS
= \
900 a-intnam.ads
<a-intnam-vxworks.ads \
901 a-numaux.ads
<a-numaux-vxworks.ads \
902 s-inmaop.adb
<s-inmaop-posix.adb \
903 s-interr.adb
<s-interr-hwint.adb \
904 s-intman.ads
<s-intman-vxworks.ads \
905 s-intman.adb
<s-intman-vxworks.adb \
906 s-osinte.adb
<s-osinte-vxworks.adb \
907 s-osinte.ads
<s-osinte-vxworks.ads \
908 s-osprim.adb
<s-osprim-vxworks.adb \
909 s-parame.ads
<s-parame-vxworks.ads \
910 s-parame.adb
<s-parame-vxworks.adb \
911 s-stchop.ads
<s-stchop-limit.ads \
912 s-stchop.adb
<s-stchop-vxworks.adb \
913 s-taprop.adb
<s-taprop-vxworks.adb \
914 s-tasinf.ads
<s-tasinf-vxworks.ads \
915 s-taspri.ads
<s-taspri-vxworks.ads \
916 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
917 s-vxwork.ads
<s-vxwork-mips.ads \
918 g-socthi.ads
<g-socthi-vxworks.ads \
919 g-socthi.adb
<g-socthi-vxworks.adb \
920 g-stsifd.adb
<g-stsifd-sockets.adb \
921 g-trasym.ads
<g-trasym-unimplemented.ads \
922 g-trasym.adb
<g-trasym-unimplemented.adb \
923 system.ads
<system-vxworks-mips.ads
926 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
927 indepsw.adb
<indepsw-gnu.adb
929 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
930 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
932 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
933 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
936 ifeq ($(strip $(filter-out sparc
% sun solaris
%,$(targ
))),)
937 LIBGNAT_TARGET_PAIRS_COMMON
= \
938 a-intnam.ads
<a-intnam-solaris.ads \
939 s-inmaop.adb
<s-inmaop-posix.adb \
940 s-intman.adb
<s-intman-solaris.adb \
941 s-osinte.adb
<s-osinte-solaris.adb \
942 s-osinte.ads
<s-osinte-solaris.ads \
943 s-osprim.adb
<s-osprim-solaris.adb \
944 s-taprop.adb
<s-taprop-solaris.adb \
945 s-tasinf.adb
<s-tasinf-solaris.adb \
946 s-tasinf.ads
<s-tasinf-solaris.ads \
947 s-taspri.ads
<s-taspri-solaris.ads \
948 s-tpopsp.adb
<s-tpopsp-solaris.adb \
949 g-soliop.ads
<g-soliop-solaris.ads
951 LIBGNAT_TARGET_PAIRS_32
= \
952 system.ads
<system-solaris-sparc.ads
954 LIBGNAT_TARGET_PAIRS_64
= \
955 system.ads
<system-solaris-sparcv9.ads \
956 $(ATOMICS_TARGET_PAIRS
)
958 ifeq ($(strip $(filter-out sparc sun solaris
%,$(targ
))),)
959 ifeq ($(strip $(MULTISUBDIR
)),/sparcv9
)
960 LIBGNAT_TARGET_PAIRS
= \
961 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
963 LIBGNAT_TARGET_PAIRS
= \
964 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
967 ifeq ($(strip $(MULTISUBDIR
)),/sparcv8plus
)
968 LIBGNAT_TARGET_PAIRS
= \
969 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
971 LIBGNAT_TARGET_PAIRS
= \
972 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
976 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
979 THREADSLIB
= -lposix4
-lthread
980 MISCLIB
= -lposix4
-lnsl
-lsocket
982 GNATLIB_SHARED
= gnatlib-shared-dual
984 LIBRARY_VERSION
:= $(LIB_VERSION
)
986 ifeq ($(strip $(filter-out pthread PTHREAD
,$(THREAD_KIND
))),)
987 LIBGNAT_TARGET_PAIRS
= \
988 a-intnam.ads
<a-intnam-solaris.ads \
989 s-inmaop.adb
<s-inmaop-posix.adb \
990 s-intman.adb
<s-intman-posix.adb \
991 s-osinte.adb
<s-osinte-posix.adb \
992 s-osinte.ads
<s-osinte-solaris-posix.ads \
993 s-osprim.adb
<s-osprim-solaris.adb \
994 s-taprop.adb
<s-taprop-posix.adb \
995 s-taspri.ads
<s-taspri-posix.ads \
996 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
997 g-soliop.ads
<g-soliop-solaris.ads \
998 system.ads
<system-solaris-sparc.ads
1000 THREADSLIB
= -lposix4
-lpthread
1003 ifeq ($(strip $(filter-out m64
,$(THREAD_KIND
))),)
1004 LIBGNAT_TARGET_PAIRS
= $(LIBGNAT_TARGET_PAIRS_64
)
1008 ifeq ($(strip $(filter-out %86 solaris2
%,$(arch
) $(osys
))),)
1009 LIBGNAT_TARGET_PAIRS
= \
1010 a-numaux.adb
<a-numaux-x86.adb \
1011 a-numaux.ads
<a-numaux-x86.ads \
1012 a-intnam.ads
<a-intnam-solaris.ads \
1013 s-inmaop.adb
<s-inmaop-posix.adb \
1014 s-intman.adb
<s-intman-solaris.adb \
1015 s-osinte.adb
<s-osinte-solaris.adb \
1016 s-osinte.ads
<s-osinte-solaris.ads \
1017 s-osprim.adb
<s-osprim-solaris.adb \
1018 s-taprop.adb
<s-taprop-solaris.adb \
1019 s-tasinf.adb
<s-tasinf-solaris.adb \
1020 s-tasinf.ads
<s-tasinf-solaris.ads \
1021 s-taspri.ads
<s-taspri-solaris.ads \
1022 s-tpopsp.adb
<s-tpopsp-solaris.adb \
1023 g-soliop.ads
<g-soliop-solaris.ads
1025 ifeq ($(strip $(MULTISUBDIR
)),/amd64
)
1026 LIBGNAT_TARGET_PAIRS
+= \
1027 system.ads
<system-solaris-x86_64.ads
1029 LIBGNAT_TARGET_PAIRS
+= \
1030 g-bytswa.adb
<g-bytswa-x86.adb \
1031 system.ads
<system-solaris-x86.ads
1034 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
1037 THREADSLIB
= -lposix4
-lthread
1038 MISCLIB
= -lposix4
-lnsl
-lsocket
1040 GNATLIB_SHARED
= gnatlib-shared-dual
1042 LIBRARY_VERSION
:= $(LIB_VERSION
)
1045 ifeq ($(strip $(filter-out %86 linux
%,$(arch
) $(osys
))),)
1046 LIBGNAT_TARGET_PAIRS
= \
1047 a-intnam.ads
<a-intnam-linux.ads \
1048 a-numaux.adb
<a-numaux-x86.adb \
1049 a-numaux.ads
<a-numaux-x86.ads \
1050 g-bytswa.adb
<g-bytswa-x86.adb \
1051 s-inmaop.adb
<s-inmaop-posix.adb \
1052 s-intman.adb
<s-intman-posix.adb \
1053 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1054 g-sercom.adb
<g-sercom-linux.adb
1056 ifeq ($(strip $(filter-out marte
,$(THREAD_KIND
))),)
1057 LIBGNAT_TARGET_PAIRS
+= \
1058 a-exetim.adb
<a-exetim-linux-marte.adb \
1059 a-exetim.ads
<a-exetim-linux-marte.ads \
1060 a-extiti.adb
<a-extiti-linux-marte.adb \
1061 a-extiti.ads
<a-extiti-linux-marte.ads \
1062 a-rttiev.adb
<a-rttiev-linux-marte.adb \
1063 a-rttiev.ads
<a-rttiev-linux-marte.ads \
1064 s-osinte.adb
<s-osinte-linux-marte.adb \
1065 s-osinte.ads
<s-osinte-linux-marte.ads \
1066 s-osprim.adb
<s-osprim-posix.adb \
1067 s-taprop.adb
<s-taprop-linux-marte.adb \
1068 s-taspri.ads
<s-taspri-posix.ads \
1069 system.ads
<system-linux-x86.ads
1071 EXTRA_GNATRTL_TASKING_OBJS
=a-exetim.o a-extiti.o
1074 THREADSLIB
= -lmarte
1076 LIBGNAT_TARGET_PAIRS
+= \
1077 s-linux.ads
<s-linux.ads \
1078 s-osinte.adb
<s-osinte-posix.adb
1080 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1081 LIBGNAT_TARGET_PAIRS
+= \
1082 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1083 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1084 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1085 s-taspri.ads
<s-taspri-linux-xenomai.ads \
1086 system.ads
<system-linux-x86-xenomai.ads
1090 LIBGNAT_TARGET_PAIRS
+= \
1091 s-osinte.ads
<s-osinte-linux.ads \
1092 s-osprim.adb
<s-osprim-posix.adb \
1093 s-taprop.adb
<s-taprop-linux.adb \
1094 s-tasinf.ads
<s-tasinf-linux.ads \
1095 s-tasinf.adb
<s-tasinf-linux.adb \
1096 s-taspri.ads
<s-taspri-posix.ads \
1097 system.ads
<system-linux-x86.ads
1102 THREADSLIB
= -lpthread
1103 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1104 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1107 TOOLS_TARGET_PAIRS
= \
1108 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1109 indepsw.adb
<indepsw-gnu.adb
1111 GNATLIB_SHARED
= gnatlib-shared-dual
1113 LIBRARY_VERSION
:= $(LIB_VERSION
)
1116 ifeq ($(strip $(filter-out %86 kfreebsd
%,$(arch
) $(osys
))),)
1117 LIBGNAT_TARGET_PAIRS
= \
1118 a-intnam.ads
<a-intnam-freebsd.ads \
1119 a-numaux.adb
<a-numaux-x86.adb \
1120 a-numaux.ads
<a-numaux-x86.ads \
1121 s-inmaop.adb
<s-inmaop-posix.adb \
1122 s-intman.adb
<s-intman-posix.adb \
1123 s-osinte.adb
<s-osinte-posix.adb \
1124 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1125 s-osprim.adb
<s-osprim-posix.adb \
1126 s-taprop.adb
<s-taprop-linux.adb \
1127 s-tasinf.ads
<s-tasinf-linux.ads \
1128 s-tasinf.adb
<s-tasinf-linux.adb \
1129 s-taspri.ads
<s-taspri-posix.ads \
1130 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1131 system.ads
<system-freebsd-x86.ads
1133 TOOLS_TARGET_PAIRS
= \
1134 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1135 indepsw.adb
<indepsw-gnu.adb
1138 THREADSLIB
= -lpthread
1139 GNATLIB_SHARED
= gnatlib-shared-dual
1141 LIBRARY_VERSION
:= $(LIB_VERSION
)
1144 ifeq ($(strip $(filter-out x86_64 kfreebsd
%,$(arch
) $(osys
))),)
1145 LIBGNAT_TARGET_PAIRS
= \
1146 a-intnam.ads
<a-intnam-freebsd.ads \
1147 a-numaux.adb
<a-numaux-x86.adb \
1148 a-numaux.ads
<a-numaux-x86.ads \
1149 s-inmaop.adb
<s-inmaop-posix.adb \
1150 s-intman.adb
<s-intman-posix.adb \
1151 s-osinte.adb
<s-osinte-posix.adb \
1152 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1153 s-osprim.adb
<s-osprim-posix.adb \
1154 s-taprop.adb
<s-taprop-linux.adb \
1155 s-tasinf.ads
<s-tasinf-linux.ads \
1156 s-tasinf.adb
<s-tasinf-linux.adb \
1157 s-taspri.ads
<s-taspri-posix.ads \
1158 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1159 system.ads
<system-freebsd-x86_64.ads
1161 TOOLS_TARGET_PAIRS
= \
1162 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1163 indepsw.adb
<indepsw-gnu.adb
1166 THREADSLIB
= -lpthread
1167 GNATLIB_SHARED
= gnatlib-shared-dual
1169 LIBRARY_VERSION
:= $(LIB_VERSION
)
1172 ifeq ($(strip $(filter-out %86 freebsd
%,$(arch
) $(osys
))),)
1173 LIBGNAT_TARGET_PAIRS
= \
1174 a-intnam.ads
<a-intnam-freebsd.ads \
1175 a-numaux.adb
<a-numaux-x86.adb \
1176 a-numaux.ads
<a-numaux-x86.ads \
1177 g-bytswa.adb
<g-bytswa-x86.adb \
1178 s-inmaop.adb
<s-inmaop-posix.adb \
1179 s-intman.adb
<s-intman-posix.adb \
1180 s-osinte.adb
<s-osinte-freebsd.adb \
1181 s-osinte.ads
<s-osinte-freebsd.ads \
1182 s-osprim.adb
<s-osprim-posix.adb \
1183 s-taprop.adb
<s-taprop-posix.adb \
1184 s-taspri.ads
<s-taspri-posix.ads \
1185 s-tpopsp.adb
<s-tpopsp-posix.adb \
1186 system.ads
<system-freebsd-x86.ads
1188 TOOLS_TARGET_PAIRS
= \
1189 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
1190 GNATLIB_SHARED
= gnatlib-shared-dual
1193 THREADSLIB
= -lpthread
1195 LIBRARY_VERSION
:= $(LIB_VERSION
)
1198 ifeq ($(strip $(filter-out s390
% linux
%,$(arch
) $(osys
))),)
1199 LIBGNAT_TARGET_PAIRS_COMMON
= \
1200 a-intnam.ads
<a-intnam-linux.ads \
1201 s-inmaop.adb
<s-inmaop-posix.adb \
1202 s-intman.adb
<s-intman-posix.adb \
1203 s-linux.ads
<s-linux.ads \
1204 s-osinte.adb
<s-osinte-posix.adb \
1205 s-osinte.ads
<s-osinte-linux.ads \
1206 s-osprim.adb
<s-osprim-posix.adb \
1207 s-taprop.adb
<s-taprop-linux.adb \
1208 s-tasinf.ads
<s-tasinf-linux.ads \
1209 s-tasinf.adb
<s-tasinf-linux.adb \
1210 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1211 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1212 g-trasym.ads
<g-trasym-unimplemented.ads \
1213 g-trasym.adb
<g-trasym-unimplemented.adb
1215 LIBGNAT_TARGET_PAIRS_32
= \
1216 system.ads
<system-linux-s390.ads
1218 LIBGNAT_TARGET_PAIRS_64
= \
1219 system.ads
<system-linux-s390x.ads
1221 ifeq ($(strip $(filter-out s390x
,$(arch
))),)
1222 ifeq ($(strip $(MULTISUBDIR
)),/32)
1223 LIBGNAT_TARGET_PAIRS
= \
1224 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1226 LIBGNAT_TARGET_PAIRS
= \
1227 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1230 LIBGNAT_TARGET_PAIRS
= \
1231 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1234 TOOLS_TARGET_PAIRS
= \
1235 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1236 indepsw.adb
<indepsw-gnu.adb
1238 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1240 THREADSLIB
= -lpthread
1241 GNATLIB_SHARED
= gnatlib-shared-dual
1242 LIBRARY_VERSION
:= $(LIB_VERSION
)
1245 ifeq ($(strip $(filter-out mips sgi irix6
%,$(targ
))),)
1246 LIBGNAT_TARGET_PAIRS
= \
1247 a-intnam.ads
<a-intnam-irix.ads \
1248 s-inmaop.adb
<s-inmaop-posix.adb \
1249 s-intman.adb
<s-intman-irix.adb \
1250 s-mastop.adb
<s-mastop-irix.adb \
1251 s-osinte.adb
<s-osinte-irix.adb \
1252 s-osinte.ads
<s-osinte-irix.ads \
1253 s-osprim.adb
<s-osprim-posix.adb \
1254 s-proinf.adb
<s-proinf-irix-athread.adb \
1255 s-proinf.ads
<s-proinf-irix-athread.ads \
1256 s-taprop.adb
<s-taprop-irix.adb \
1257 s-tasinf.ads
<s-tasinf-irix.ads \
1258 s-taspri.ads
<s-taspri-posix.ads \
1259 s-tpopsp.adb
<s-tpopsp-posix.adb \
1260 s-traceb.adb
<s-traceb-mastop.adb
1262 ifeq ($(strip $(MULTISUBDIR
)),/64)
1263 LIBGNAT_TARGET_PAIRS
+= \
1264 system.ads
<system-irix-n64.ads
1266 ifeq ($(strip $(MULTISUBDIR
)),/32)
1267 LIBGNAT_TARGET_PAIRS
+= \
1268 system.ads
<system-irix-o32.ads
1270 LIBGNAT_TARGET_PAIRS
+= \
1271 system.ads
<system-irix-n32.ads
1275 THREADSLIB
= -lpthread
1276 GNATLIB_SHARED
= gnatlib-shared-default
1279 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-irix.adb
1282 LIBRARY_VERSION
:= $(LIB_VERSION
)
1286 ifeq ($(strip $(filter-out hppa
% hp hpux10
%,$(targ
))),)
1287 LIBGNAT_TARGET_PAIRS
= \
1288 a-excpol.adb
<a-excpol-abort.adb \
1289 a-intnam.ads
<a-intnam-hpux.ads \
1290 s-inmaop.adb
<s-inmaop-posix.adb \
1291 s-interr.adb
<s-interr-sigaction.adb \
1292 s-intman.adb
<s-intman-posix.adb \
1293 s-osinte.adb
<s-osinte-hpux-dce.adb \
1294 s-osinte.ads
<s-osinte-hpux-dce.ads \
1295 s-parame.ads
<s-parame-hpux.ads \
1296 s-osprim.adb
<s-osprim-posix.adb \
1297 s-taprop.adb
<s-taprop-hpux-dce.adb \
1298 s-taspri.ads
<s-taspri-hpux-dce.ads \
1299 s-tpopsp.adb
<s-tpopsp-posix.adb \
1300 system.ads
<system-hpux.ads
1305 ifeq ($(strip $(filter-out hppa
% hp hpux11
%,$(targ
))),)
1306 LIBGNAT_TARGET_PAIRS
= \
1307 a-intnam.ads
<a-intnam-hpux.ads \
1308 s-inmaop.adb
<s-inmaop-posix.adb \
1309 s-intman.adb
<s-intman-posix.adb \
1310 s-osinte.adb
<s-osinte-posix.adb \
1311 s-osinte.ads
<s-osinte-hpux.ads \
1312 s-parame.ads
<s-parame-hpux.ads \
1313 s-osprim.adb
<s-osprim-posix.adb \
1314 s-traceb.adb
<s-traceb-hpux.adb \
1315 s-taprop.adb
<s-taprop-posix.adb \
1316 s-taspri.ads
<s-taspri-posix.ads \
1317 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1318 system.ads
<system-hpux.ads
1320 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-hpux.adb
1322 TGT_LIB
= /usr
/lib
/libcl.a
1323 THREADSLIB
= -lpthread
1327 GNATLIB_SHARED
= gnatlib-shared-dual
1328 LIBRARY_VERSION
:= $(LIB_VERSION
)
1331 ifeq ($(strip $(filter-out ibm aix
%,$(manu
) $(osys
))),)
1332 LIBGNAT_TARGET_PAIRS_COMMON
= \
1333 a-intnam.ads
<a-intnam-aix.ads \
1334 s-inmaop.adb
<s-inmaop-posix.adb \
1335 s-intman.adb
<s-intman-posix.adb \
1336 s-osinte.adb
<s-osinte-aix.adb \
1337 s-osinte.ads
<s-osinte-aix.ads \
1338 s-osprim.adb
<s-osprim-posix.adb \
1339 s-taprop.adb
<s-taprop-posix.adb \
1340 s-taspri.ads
<s-taspri-posix.ads \
1341 s-tpopsp.adb
<s-tpopsp-posix.adb \
1342 $(ATOMICS_TARGET_PAIRS
)
1344 LIBGNAT_TARGET_PAIRS_32
= \
1345 system.ads
<system-aix.ads
1347 LIBGNAT_TARGET_PAIRS_64
= \
1348 system.ads
<system-aix64.ads
1350 ifeq ($(findstring ppc64
, \
1351 $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) \
1352 -print-multi-os-directory
)), \
1354 LIBGNAT_TARGET_PAIRS
= \
1355 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1357 LIBGNAT_TARGET_PAIRS
= \
1358 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1361 THREADSLIB
= -lpthreads
1363 TOOLS_TARGET_PAIRS
= \
1364 mlib-tgt-specific.adb
<mlib-tgt-specific-aix.adb \
1365 indepsw.adb
<indepsw-aix.adb
1370 ifeq ($(strip $(filter-out lynxos
,$(osys
))),)
1371 TOOLS_TARGET_PAIRS
= \
1372 mlib-tgt-specific.adb
<mlib-tgt-specific-lynxos.adb \
1373 indepsw.adb
<indepsw-gnu.adb
1375 ifeq ($(strip $(filter-out %86 lynxos
,$(arch
) $(osys
))),)
1376 LIBGNAT_TARGET_PAIRS
= \
1377 a-numaux.adb
<a-numaux-x86.adb \
1378 a-numaux.ads
<a-numaux-x86.ads \
1379 a-intnam.ads
<a-intnam-lynxos.ads \
1380 g-bytswa.adb
<g-bytswa-x86.adb \
1381 s-inmaop.adb
<s-inmaop-posix.adb \
1382 s-intman.adb
<s-intman-posix.adb \
1383 s-osinte.adb
<s-osinte-lynxos.adb \
1384 s-osinte.ads
<s-osinte-lynxos.ads \
1385 s-osprim.adb
<s-osprim-posix.adb \
1386 s-taprop.adb
<s-taprop-lynxos.adb \
1387 s-taspri.ads
<s-taspri-lynxos.ads \
1388 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
1389 g-trasym.ads
<g-trasym-unimplemented.ads \
1390 g-trasym.adb
<g-trasym-unimplemented.adb \
1391 system.ads
<system-lynxos-x86.ads
1395 LIBGNAT_TARGET_PAIRS
= \
1396 a-intnam.ads
<a-intnam-lynxos.ads \
1397 s-inmaop.adb
<s-inmaop-posix.adb \
1398 s-intman.adb
<s-intman-posix.adb \
1399 s-osinte.adb
<s-osinte-lynxos.adb \
1400 s-osinte.ads
<s-osinte-lynxos.ads \
1401 s-osprim.adb
<s-osprim-posix.adb \
1402 s-taprop.adb
<s-taprop-lynxos.adb \
1403 s-taspri.ads
<s-taspri-lynxos.ads \
1404 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
1405 g-trasym.ads
<g-trasym-unimplemented.ads \
1406 g-trasym.adb
<g-trasym-unimplemented.adb \
1407 system.ads
<system-lynxos-ppc.ads
1411 ifeq ($(strip $(filter-out rtems
%,$(osys
))),)
1412 LIBGNAT_TARGET_PAIRS
= \
1413 system.ads
<system-rtems.ads \
1414 a-intnam.ads
<a-intnam-rtems.ads \
1415 s-inmaop.adb
<s-inmaop-posix.adb \
1416 s-intman.adb
<s-intman-posix.adb \
1417 s-osinte.adb
<s-osinte-rtems.adb \
1418 s-osinte.ads
<s-osinte-rtems.ads \
1419 s-osprim.adb
<s-osprim-posix.adb \
1420 s-parame.adb
<s-parame-rtems.adb \
1421 s-taprop.adb
<s-taprop-posix.adb \
1422 s-taspri.ads
<s-taspri-posix.ads \
1423 s-tpopsp.adb
<s-tpopsp-rtems.adb \
1424 s-stchop.adb
<s-stchop-rtems.adb \
1425 s-interr.adb
<s-interr-hwint.adb \
1426 g-trasym.ads
<g-trasym-unimplemented.ads \
1427 g-trasym.adb
<g-trasym-unimplemented.adb
1430 ifeq ($(strip $(filter-out alpha
% dec osf
%,$(targ
))),)
1431 LIBGNAT_TARGET_PAIRS
= \
1432 a-intnam.ads
<a-intnam-tru64.ads \
1433 s-inmaop.adb
<s-inmaop-posix.adb \
1434 s-intman.adb
<s-intman-posix.adb \
1435 s-mastop.adb
<s-mastop-tru64.adb \
1436 s-osinte.adb
<s-osinte-tru64.adb \
1437 s-osinte.ads
<s-osinte-tru64.ads \
1438 s-osprim.adb
<s-osprim-unix.adb \
1439 s-taprop.adb
<s-taprop-tru64.adb \
1440 s-tasinf.ads
<s-tasinf-tru64.ads \
1441 s-taspri.ads
<s-taspri-tru64.ads \
1442 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1443 s-traceb.adb
<s-traceb-mastop.adb \
1444 system.ads
<system-tru64.ads \
1445 $(ATOMICS_TARGET_PAIRS
)
1447 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-tru64.adb
1452 THREADSLIB
= -lpthread
-lmach
-lexc
-lrt
1453 GNATLIB_SHARED
= gnatlib-shared-default
1454 LIBRARY_VERSION
:= $(LIB_VERSION
)
1457 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(host
))),)
1467 @ gnu
:[bin
]vmssymvec
$<
1470 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(targ
))),)
1471 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1472 LIBGNAT_TARGET_PAIRS_AUX1
= \
1473 g-enblsp.adb
<g-enblsp-vms-ia64.adb \
1474 g-trasym.adb
<g-trasym-vms-ia64.adb \
1475 s-asthan.adb
<s-asthan-vms-ia64.adb \
1476 s-auxdec.adb
<s-auxdec-vms-ia64.adb \
1477 s-osinte.adb
<s-osinte-vms-ia64.adb \
1478 s-osinte.ads
<s-osinte-vms-ia64.ads \
1479 s-vaflop.adb
<s-vaflop-vms-ia64.adb \
1480 system.ads
<system-vms-ia64.ads
1482 LIBGNAT_TARGET_PAIRS_AUX2
= \
1483 s-parame.ads
<s-parame-vms-ia64.ads \
1484 $(ATOMICS_TARGET_PAIRS
)
1486 ifeq ($(strip $(filter-out alpha64 dec vms
% openvms
% alphavms
%,$(targ
))),)
1487 LIBGNAT_TARGET_PAIRS_AUX1
= \
1488 g-enblsp.adb
<g-enblsp-vms-alpha.adb \
1489 g-trasym.adb
<g-trasym-vms-alpha.adb \
1490 s-asthan.adb
<s-asthan-vms-alpha.adb \
1491 s-auxdec.adb
<s-auxdec-vms-alpha.adb \
1492 s-osinte.adb
<s-osinte-vms.adb \
1493 s-osinte.ads
<s-osinte-vms.ads \
1494 s-traent.adb
<s-traent-vms.adb \
1495 s-traent.ads
<s-traent-vms.ads \
1496 s-vaflop.adb
<s-vaflop-vms-alpha.adb \
1497 system.ads
<system-vms_64.ads
1499 ifeq ($(strip $(filter-out express EXPRESS
,$(THREAD_KIND
))),)
1500 LIBGNAT_TARGET_PAIRS_AUX2
= \
1501 s-parame.ads
<s-parame-vms-restrict.ads
1503 LIBGNAT_TARGET_PAIRS_AUX2
= \
1504 s-parame.ads
<s-parame-vms-alpha.ads \
1505 $(ATOMICS_TARGET_PAIRS
)
1510 LIBGNAT_TARGET_PAIRS
= \
1511 a-caldel.adb
<a-caldel-vms.adb \
1512 a-calend.adb
<a-calend-vms.adb \
1513 a-calend.ads
<a-calend-vms.ads \
1514 a-dirval.adb
<a-dirval-vms.adb \
1515 a-excpol.adb
<a-excpol-abort.adb \
1516 a-intnam.ads
<a-intnam-vms.ads \
1517 a-numaux.ads
<a-numaux-vms.ads \
1518 g-expect.adb
<g-expect-vms.adb \
1519 g-socthi.ads
<g-socthi-vms.ads \
1520 g-socthi.adb
<g-socthi-vms.adb \
1521 g-stsifd.adb
<g-stsifd-sockets.adb \
1522 i-c.ads
<i-c-vms_64.ads \
1523 i-cstrin.ads
<i-cstrin-vms_64.ads \
1524 i-cstrin.adb
<i-cstrin-vms_64.adb \
1525 i-cpoint.ads
<i-cpoint-vms_64.ads \
1526 i-cpoint.adb
<i-cpoint-vms_64.adb \
1527 i-cstrea.adb
<i-cstrea-vms.adb \
1528 memtrack.adb
<memtrack-vms_64.adb \
1529 s-auxdec.ads
<s-auxdec-vms_64.ads \
1530 s-inmaop.adb
<s-inmaop-vms.adb \
1531 s-interr.adb
<s-interr-vms.adb \
1532 s-intman.adb
<s-intman-vms.adb \
1533 s-intman.ads
<s-intman-vms.ads \
1534 s-memory.adb
<s-memory-vms_64.adb \
1535 s-memory.ads
<s-memory-vms_64.ads \
1536 s-osprim.adb
<s-osprim-vms.adb \
1537 s-osprim.ads
<s-osprim-vms.ads \
1538 s-taprop.adb
<s-taprop-vms.adb \
1539 s-tasdeb.adb
<s-tasdeb-vms.adb \
1540 s-taspri.ads
<s-taspri-vms.ads \
1541 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1542 s-tpopde.adb
<s-tpopde-vms.adb \
1543 s-tpopde.ads
<s-tpopde-vms.ads \
1544 $(LIBGNAT_TARGET_PAIRS_AUX1
) \
1545 $(LIBGNAT_TARGET_PAIRS_AUX2
)
1547 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1548 TOOLS_TARGET_PAIRS
= \
1549 mlib-tgt-specific.adb
<mlib-tgt-specific-vms-ia64.adb \
1550 symbols.adb
<symbols-vms.adb \
1551 symbols-processing.adb
<symbols-processing-vms-ia64.adb
1553 TOOLS_TARGET_PAIRS
= \
1554 mlib-tgt-specific.adb
<mlib-tgt-specific-vms-alpha.adb \
1555 symbols.adb
<symbols-vms.adb \
1556 symbols-processing.adb
<symbols-processing-vms-alpha.adb
1559 adamsg.o
: adamsg.msg
1560 -$(DECC
) --cc=message adamsg.msg
-o adamsg.o
1562 EXTRA_GNATMAKE_OBJS
= mlib-tgt-vms_common.o
1566 GNATLIB_SHARED
=gnatlib-shared-vms
1567 ifeq ($(strip $(filter-out alpha64 dec vms
% openvms
% alphavms
%,$(targ
))),)
1568 EXTRA_LIBGNAT_SRCS
=vmshandler.asm
1569 EXTRA_LIBGNAT_OBJS
=vmshandler.o
1571 EXTRA_LIBGNAT_SRCS
+=adamsg.msg
1572 EXTRA_LIBGNAT_OBJS
+=adamsg.o
1573 EXTRA_GNATRTL_TASKING_OBJS
=s-tpopde.o
1575 ..
/..
/gnatlbr
$(exeext
) \
1576 ..
/..
/gnatsym
$(exeext
) \
1577 ..
/..
/vms_help
$(exeext
) \
1579 # This command transforms (YYYYMMDD) into YY,MMDD
1580 GSMATCH_VERSION
:= $(shell grep
"^ *Gnat_Static_Version_String" $(fsrcpfx
)ada
/gnatvsn.ads | sed
-e
's/.*(\(.*\)).*/\1/' -e
's/\(..\)\(..\)\(....\).*/\2,\3/')
1581 TOOLS_LIBS_LO
:= --for-linker
=sys
\\$$\
$$library:trace.exe
1582 LIBRARY_VERSION
:= $(subst .
,_
,$(LIB_VERSION
))
1585 ifeq ($(strip $(filter-out avr none powerpc
% eabispe leon
% erc32
% unknown elf
,$(targ
))),)
1586 TOOLS_TARGET_PAIRS
=\
1587 mlib-tgt-specific.adb
<mlib-tgt-specific-xi.adb \
1588 indepsw.adb
<indepsw-gnu.adb
1591 ifeq ($(strip $(filter-out cygwin32
% mingw32
% pe
,$(osys
))),)
1592 LIBGNAT_TARGET_PAIRS
= \
1593 a-dirval.adb
<a-dirval-mingw.adb \
1594 a-excpol.adb
<a-excpol-abort.adb \
1595 a-numaux.adb
<a-numaux-x86.adb \
1596 a-numaux.ads
<a-numaux-x86.ads \
1597 s-gloloc.adb
<s-gloloc-mingw.adb \
1598 s-inmaop.adb
<s-inmaop-dummy.adb \
1599 s-memory.adb
<s-memory-mingw.adb \
1600 s-taspri.ads
<s-taspri-mingw.ads \
1601 s-tasinf.adb
<s-tasinf-mingw.adb \
1602 s-tasinf.ads
<s-tasinf-mingw.ads \
1603 g-bytswa.adb
<g-bytswa-x86.adb \
1604 g-socthi.ads
<g-socthi-mingw.ads \
1605 g-socthi.adb
<g-socthi-mingw.adb \
1606 g-stsifd.adb
<g-stsifd-sockets.adb \
1607 g-soliop.ads
<g-soliop-mingw.ads
1609 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss
,$(THREAD_KIND
))),)
1610 LIBGNAT_TARGET_PAIRS
+= \
1611 s-intman.adb
<s-intman-dummy.adb \
1612 s-osinte.ads
<s-osinte-rtx.ads \
1613 s-osprim.adb
<s-osprim-rtx.adb \
1614 s-taprop.adb
<s-taprop-rtx.adb
1616 EXTRA_GNATRTL_NONTASKING_OBJS
= s-win32.o
1618 ifeq ($(strip $(filter-out rtx_w32
,$(THREAD_KIND
))),)
1619 LIBGNAT_TARGET_PAIRS
+= system.ads
<system-rtx.ads
1623 LIBGNAT_TARGET_PAIRS
+= \
1624 system.ads
<system-rtx-rtss.ads \
1625 s-parame.adb
<s-parame-vxworks.adb
1631 LIBGNAT_TARGET_PAIRS
+= \
1632 a-exetim.adb
<a-exetim-mingw.adb \
1633 a-exetim.ads
<a-exetim-mingw.ads \
1634 a-intnam.ads
<a-intnam-mingw.ads \
1635 g-sercom.adb
<g-sercom-mingw.adb \
1636 s-interr.adb
<s-interr-sigaction.adb \
1637 s-intman.adb
<s-intman-mingw.adb \
1638 s-osinte.ads
<s-osinte-mingw.ads \
1639 s-osprim.adb
<s-osprim-mingw.adb \
1640 s-taprop.adb
<s-taprop-mingw.adb
1642 ifeq ($(strip $(filter-out x86_64
%,$(arch
))),)
1643 ifeq ($(strip $(MULTISUBDIR
)),/32)
1644 LIBGNAT_TARGET_PAIRS
+= \
1645 system.ads
<system-mingw.ads
1647 LIBGNAT_TARGET_PAIRS
+= \
1648 system.ads
<system-mingw-x86_64.ads
1651 ifeq ($(strip $(MULTISUBDIR
)),/64)
1652 LIBGNAT_TARGET_PAIRS
+= \
1653 system.ads
<system-mingw-x86_64.ads
1655 LIBGNAT_TARGET_PAIRS
+= \
1656 system.ads
<system-mingw.ads
1660 EXTRA_GNATRTL_NONTASKING_OBJS
= \
1661 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1662 EXTRA_GNATRTL_TASKING_OBJS
= a-exetim.o
1666 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1667 # auto-import support for array/record will be done.
1668 GNATLIB_SHARED
= gnatlib-shared-win32
1671 TOOLS_TARGET_PAIRS
= \
1672 mlib-tgt-specific.adb
<mlib-tgt-specific-mingw.adb \
1673 indepsw.adb
<indepsw-mingw.adb
1676 EXTRA_GNATTOOLS
= ..
/..
/gnatdll
$(exeext
)
1677 EXTRA_GNATMAKE_OBJS
= mdll.o mdll-utl.o mdll-fil.o
1679 LIBRARY_VERSION
:= $(LIB_VERSION
)
1682 ifeq ($(strip $(filter-out mips linux
%,$(arch
) $(osys
))),)
1683 LIBGNAT_TARGET_PAIRS
= \
1684 a-intnam.ads
<a-intnam-linux.ads \
1685 s-inmaop.adb
<s-inmaop-posix.adb \
1686 s-intman.adb
<s-intman-posix.adb \
1687 s-linux.ads
<s-linux.ads \
1688 s-osinte.adb
<s-osinte-posix.adb \
1689 s-osinte.ads
<s-osinte-linux.ads \
1690 s-osprim.adb
<s-osprim-posix.adb \
1691 s-taprop.adb
<s-taprop-linux.adb \
1692 s-tasinf.ads
<s-tasinf-linux.ads \
1693 s-tasinf.adb
<s-tasinf-linux.adb \
1694 s-taspri.ads
<s-taspri-posix.ads \
1695 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1696 system.ads
<system-linux-mips.ads
1699 THREADSLIB
= -lpthread
1700 GNATLIB_SHARED
= gnatlib-shared-dual
1702 LIBRARY_VERSION
:= $(LIB_VERSION
)
1705 ifeq ($(strip $(filter-out mipsel linux
%,$(arch
) $(osys
))),)
1706 LIBGNAT_TARGET_PAIRS_COMMON
= \
1707 a-intnam.ads
<a-intnam-linux.ads \
1708 s-inmaop.adb
<s-inmaop-posix.adb \
1709 s-intman.adb
<s-intman-posix.adb \
1710 s-linux.ads
<s-linux-mipsel.ads \
1711 s-osinte.adb
<s-osinte-posix.adb \
1712 s-osinte.ads
<s-osinte-linux.ads \
1713 s-osprim.adb
<s-osprim-posix.adb \
1714 s-taprop.adb
<s-taprop-linux.adb \
1715 s-tasinf.ads
<s-tasinf-linux.ads \
1716 s-tasinf.adb
<s-tasinf-linux.adb \
1717 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1718 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1719 g-sercom.adb
<g-sercom-linux.adb
1721 LIBGNAT_TARGET_PAIRS_32
= \
1722 system.ads
<system-linux-mipsel.ads
1724 LIBGNAT_TARGET_PAIRS_64
= \
1725 system.ads
<system-linux-mips64el.ads
1727 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1728 LIBGNAT_TARGET_PAIRS
= \
1729 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1731 LIBGNAT_TARGET_PAIRS
= \
1732 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1735 TOOLS_TARGET_PAIRS
= \
1736 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1737 indepsw.adb
<indepsw-gnu.adb
1739 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1741 THREADSLIB
= -lpthread
1742 GNATLIB_SHARED
= gnatlib-shared-dual
1744 LIBRARY_VERSION
:= $(LIB_VERSION
)
1747 ifeq ($(strip $(filter-out mips64el linux
%,$(arch
) $(osys
))),)
1748 LIBGNAT_TARGET_PAIRS_COMMON
= \
1749 a-intnam.ads
<a-intnam-linux.ads \
1750 s-inmaop.adb
<s-inmaop-posix.adb \
1751 s-intman.adb
<s-intman-posix.adb \
1752 s-linux.ads
<s-linux-mipsel.ads \
1753 s-osinte.adb
<s-osinte-posix.adb \
1754 s-osinte.ads
<s-osinte-linux.ads \
1755 s-osprim.adb
<s-osprim-posix.adb \
1756 s-taprop.adb
<s-taprop-linux.adb \
1757 s-tasinf.ads
<s-tasinf-linux.ads \
1758 s-tasinf.adb
<s-tasinf-linux.adb \
1759 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1760 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1761 g-sercom.adb
<g-sercom-linux.adb
1763 LIBGNAT_TARGET_PAIRS_32
= \
1764 system.ads
<system-linux-mipsel.ads
1766 LIBGNAT_TARGET_PAIRS_64
= \
1767 system.ads
<system-linux-mips64el.ads
1769 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1770 LIBGNAT_TARGET_PAIRS
= \
1771 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1773 LIBGNAT_TARGET_PAIRS
= \
1774 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1777 TOOLS_TARGET_PAIRS
= \
1778 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1779 indepsw.adb
<indepsw-gnu.adb
1781 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1783 THREADSLIB
= -lpthread
1784 GNATLIB_SHARED
= gnatlib-shared-dual
1786 LIBRARY_VERSION
:= $(LIB_VERSION
)
1789 ifeq ($(strip $(filter-out powerpc
% linux
%,$(arch
) $(osys
))),)
1790 LIBGNAT_TARGET_PAIRS_COMMON
= \
1791 a-intnam.ads
<a-intnam-linux.ads \
1792 s-inmaop.adb
<s-inmaop-posix.adb \
1793 s-intman.adb
<s-intman-posix.adb \
1794 s-linux.ads
<s-linux.ads \
1795 s-osinte.adb
<s-osinte-posix.adb \
1796 s-osinte.ads
<s-osinte-linux.ads \
1797 s-osprim.adb
<s-osprim-posix.adb \
1798 s-taprop.adb
<s-taprop-linux.adb \
1799 s-tasinf.ads
<s-tasinf-linux.ads \
1800 s-tasinf.adb
<s-tasinf-linux.adb \
1801 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1802 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1803 g-sercom.adb
<g-sercom-linux.adb \
1804 $(ATOMICS_TARGET_PAIRS
)
1806 LIBGNAT_TARGET_PAIRS_32
= \
1807 system.ads
<system-linux-ppc.ads
1809 LIBGNAT_TARGET_PAIRS_64
= \
1810 system.ads
<system-linux-ppc64.ads
1812 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1813 LIBGNAT_TARGET_PAIRS
= \
1814 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1816 LIBGNAT_TARGET_PAIRS
= \
1817 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1820 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1821 LIBGNAT_TARGET_PAIRS
+= \
1822 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1823 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1824 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1825 s-taspri.ads
<s-taspri-linux-xenomai.ads \
1826 system.ads
<system-linux-ppc-xenomai.ads
1828 LIBGNAT_TARGET_PAIRS
+= \
1829 s-osinte.ads
<s-osinte-linux.ads \
1830 s-osprim.adb
<s-osprim-posix.adb \
1831 s-taprop.adb
<s-taprop-linux.adb \
1832 s-tasinf.ads
<s-tasinf-linux.ads \
1833 s-tasinf.adb
<s-tasinf-linux.adb \
1834 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1835 system.ads
<system-linux-ppc.ads
1838 TOOLS_TARGET_PAIRS
= \
1839 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1840 indepsw.adb
<indepsw-gnu.adb
1842 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1844 THREADSLIB
= -lpthread
1845 GNATLIB_SHARED
= gnatlib-shared-dual
1847 LIBRARY_VERSION
:= $(LIB_VERSION
)
1850 ifeq ($(strip $(filter-out arm
% linux-gnueabi
,$(arch
) $(osys
)-$(word 4,$(targ
)))),)
1851 LIBGNAT_TARGET_PAIRS
= \
1852 a-intnam.ads
<a-intnam-linux.ads \
1853 s-inmaop.adb
<s-inmaop-posix.adb \
1854 s-intman.adb
<s-intman-posix.adb \
1855 s-linux.ads
<s-linux.ads \
1856 s-osinte.adb
<s-osinte-posix.adb \
1857 s-osinte.ads
<s-osinte-linux.ads \
1858 s-osprim.adb
<s-osprim-posix.adb \
1859 s-taprop.adb
<s-taprop-linux.adb \
1860 s-tasinf.ads
<s-tasinf-linux.ads \
1861 s-tasinf.adb
<s-tasinf-linux.adb \
1862 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1863 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
1865 ifeq ($(strip $(filter-out arm
%b
,$(arch
))),)
1866 LIBGNAT_TARGET_PAIRS
+= \
1867 system.ads
<system-linux-armeb.ads
1869 LIBGNAT_TARGET_PAIRS
+= \
1870 system.ads
<system-linux-armel.ads
1873 TOOLS_TARGET_PAIRS
= \
1874 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1875 indepsw.adb
<indepsw-gnu.adb
1877 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1879 THREADSLIB
= -lpthread
1880 GNATLIB_SHARED
= gnatlib-shared-dual
1882 LIBRARY_VERSION
:= $(LIB_VERSION
)
1885 ifeq ($(strip $(filter-out sparc
% linux
%,$(arch
) $(osys
))),)
1886 LIBGNAT_TARGET_PAIRS_COMMON
= \
1887 a-intnam.ads
<a-intnam-linux.ads \
1888 s-inmaop.adb
<s-inmaop-posix.adb \
1889 s-intman.adb
<s-intman-posix.adb \
1890 s-linux.ads
<s-linux-sparc.ads \
1891 s-osinte.adb
<s-osinte-posix.adb \
1892 s-osinte.ads
<s-osinte-linux.ads \
1893 s-osprim.adb
<s-osprim-posix.adb \
1894 s-taprop.adb
<s-taprop-linux.adb \
1895 s-tasinf.ads
<s-tasinf-linux.ads \
1896 s-tasinf.adb
<s-tasinf-linux.adb \
1897 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1898 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
1900 LIBGNAT_TARGET_PAIRS_32
= \
1901 g-trasym.ads
<g-trasym-unimplemented.ads \
1902 g-trasym.adb
<g-trasym-unimplemented.adb \
1903 system.ads
<system-linux-sparc.ads
1905 LIBGNAT_TARGET_PAIRS_64
= \
1906 system.ads
<system-linux-sparcv9.ads
1908 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1909 LIBGNAT_TARGET_PAIRS
= \
1910 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1912 LIBGNAT_TARGET_PAIRS
= \
1913 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1916 TOOLS_TARGET_PAIRS
= \
1917 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1918 indepsw.adb
<indepsw-gnu.adb
1920 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1922 THREADSLIB
= -lpthread
1923 GNATLIB_SHARED
= gnatlib-shared-dual
1925 LIBRARY_VERSION
:= $(LIB_VERSION
)
1928 ifeq ($(strip $(filter-out hppa
% linux
%,$(arch
) $(osys
))),)
1929 LIBGNAT_TARGET_PAIRS
= \
1930 a-intnam.ads
<a-intnam-linux.ads \
1931 s-inmaop.adb
<s-inmaop-posix.adb \
1932 s-intman.adb
<s-intman-posix.adb \
1933 s-linux.ads
<s-linux-hppa.ads \
1934 s-osinte.adb
<s-osinte-posix.adb \
1935 s-osinte.ads
<s-osinte-linux.ads \
1936 s-osprim.adb
<s-osprim-posix.adb \
1937 s-taprop.adb
<s-taprop-linux.adb \
1938 s-tasinf.ads
<s-tasinf-linux.ads \
1939 s-tasinf.adb
<s-tasinf-linux.adb \
1940 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1941 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1942 g-trasym.ads
<g-trasym-unimplemented.ads \
1943 g-trasym.adb
<g-trasym-unimplemented.adb \
1944 system.ads
<system-linux-hppa.ads
1946 TOOLS_TARGET_PAIRS
= \
1947 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1948 indepsw.adb
<indepsw-gnu.adb
1950 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1952 THREADSLIB
= -lpthread
1953 GNATLIB_SHARED
= gnatlib-shared-dual
1955 LIBRARY_VERSION
:= $(LIB_VERSION
)
1958 ifeq ($(strip $(filter-out sh4
% linux
%,$(arch
) $(osys
))),)
1959 LIBGNAT_TARGET_PAIRS
= \
1960 a-intnam.ads
<a-intnam-linux.ads \
1961 s-inmaop.adb
<s-inmaop-posix.adb \
1962 s-intman.adb
<s-intman-posix.adb \
1963 s-linux.ads
<s-linux.ads \
1964 s-osinte.adb
<s-osinte-posix.adb \
1965 s-osinte.ads
<s-osinte-linux.ads \
1966 s-osprim.adb
<s-osprim-posix.adb \
1967 s-taprop.adb
<s-taprop-linux.adb \
1968 s-tasinf.ads
<s-tasinf-linux.ads \
1969 s-tasinf.adb
<s-tasinf-linux.adb \
1970 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1971 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1972 system.ads
<system-linux-sh4.ads
1974 TOOLS_TARGET_PAIRS
= \
1975 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1976 indepsw.adb
<indepsw-linux.adb
1978 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1981 THREADSLIB
= -lpthread
1982 GNATLIB_SHARED
= gnatlib-shared-dual
1984 LIBRARY_VERSION
:= $(LIB_VERSION
)
1987 ifeq ($(strip $(filter-out %ia64 linux
%,$(arch
) $(osys
))),)
1988 LIBGNAT_TARGET_PAIRS
= \
1989 a-intnam.ads
<a-intnam-linux.ads \
1990 a-numaux.ads
<a-numaux-libc-x86.ads \
1991 s-inmaop.adb
<s-inmaop-posix.adb \
1992 s-intman.adb
<s-intman-posix.adb \
1993 s-linux.ads
<s-linux.ads \
1994 s-osinte.ads
<s-osinte-linux.ads \
1995 s-osinte.adb
<s-osinte-posix.adb \
1996 s-osprim.adb
<s-osprim-posix.adb \
1997 s-taprop.adb
<s-taprop-linux.adb \
1998 s-tasinf.ads
<s-tasinf-linux.ads \
1999 s-tasinf.adb
<s-tasinf-linux.adb \
2000 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2001 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2002 g-sercom.adb
<g-sercom-linux.adb \
2003 system.ads
<system-linux-ia64.ads \
2004 $(ATOMICS_TARGET_PAIRS
)
2006 TOOLS_TARGET_PAIRS
= \
2007 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2008 indepsw.adb
<indepsw-gnu.adb
2010 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2013 THREADSLIB
=-lpthread
2014 GNATLIB_SHARED
=gnatlib-shared-dual
2016 LIBRARY_VERSION
:= $(LIB_VERSION
)
2019 ifeq ($(strip $(filter-out ia64
% hp hpux
%,$(targ
))),)
2020 LIBGNAT_TARGET_PAIRS
= \
2021 a-intnam.ads
<a-intnam-hpux.ads \
2022 s-inmaop.adb
<s-inmaop-posix.adb \
2023 s-intman.adb
<s-intman-posix.adb \
2024 s-osinte.adb
<s-osinte-posix.adb \
2025 s-osinte.ads
<s-osinte-hpux.ads \
2026 s-osprim.adb
<s-osprim-posix.adb \
2027 s-taprop.adb
<s-taprop-posix.adb \
2028 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2029 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2030 system.ads
<system-hpux-ia64.ads \
2031 $(ATOMICS_TARGET_PAIRS
)
2033 TOOLS_TARGET_PAIRS
= \
2034 mlib-tgt-specific.adb
<mlib-tgt-specific-ia64-hpux.adb
2037 THREADSLIB
=-lpthread
2038 GNATLIB_SHARED
=gnatlib-shared-dual
2042 LIBRARY_VERSION
:= $(LIB_VERSION
)
2045 ifeq ($(strip $(filter-out alpha
% linux
%,$(arch
) $(osys
))),)
2046 LIBGNAT_TARGET_PAIRS
= \
2047 a-intnam.ads
<a-intnam-linux.ads \
2048 s-inmaop.adb
<s-inmaop-posix.adb \
2049 s-intman.adb
<s-intman-posix.adb \
2050 s-linux.ads
<s-linux-alpha.ads \
2051 s-osinte.ads
<s-osinte-linux.ads \
2052 s-osinte.adb
<s-osinte-posix.adb \
2053 s-osprim.adb
<s-osprim-posix.adb \
2054 s-taprop.adb
<s-taprop-linux.adb \
2055 s-tasinf.ads
<s-tasinf-linux.ads \
2056 s-tasinf.adb
<s-tasinf-linux.adb \
2057 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2058 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2059 g-trasym.ads
<g-trasym-unimplemented.ads \
2060 g-trasym.adb
<g-trasym-unimplemented.adb \
2061 system.ads
<system-linux-alpha.ads \
2062 $(ATOMICS_TARGET_PAIRS
)
2064 TOOLS_TARGET_PAIRS
= \
2065 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2066 indepsw.adb
<indepsw-gnu.adb
2068 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2071 THREADSLIB
=-lpthread
2072 GNATLIB_SHARED
=gnatlib-shared-dual
2073 LIBRARY_VERSION
:= $(LIB_VERSION
)
2076 ifeq ($(strip $(filter-out %x86_64 linux
%,$(arch
) $(osys
))),)
2077 LIBGNAT_TARGET_PAIRS
= \
2078 a-intnam.ads
<a-intnam-linux.ads \
2079 a-numaux.adb
<a-numaux-x86.adb \
2080 a-numaux.ads
<a-numaux-x86.ads \
2081 s-inmaop.adb
<s-inmaop-posix.adb \
2082 s-intman.adb
<s-intman-posix.adb \
2083 s-linux.ads
<s-linux.ads \
2084 s-osinte.ads
<s-osinte-linux.ads \
2085 s-osinte.adb
<s-osinte-posix.adb \
2086 s-osprim.adb
<s-osprim-posix.adb \
2087 s-taprop.adb
<s-taprop-linux.adb \
2088 s-tasinf.ads
<s-tasinf-linux.ads \
2089 s-tasinf.adb
<s-tasinf-linux.adb \
2090 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2091 s-taspri.ads
<s-taspri-posix.ads \
2092 g-sercom.adb
<g-sercom-linux.adb \
2093 system.ads
<system-linux-x86_64.ads \
2094 $(ATOMICS_TARGET_PAIRS
)
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
2103 THREADSLIB
=-lpthread
2104 GNATLIB_SHARED
=gnatlib-shared-dual
2106 LIBRARY_VERSION
:= $(LIB_VERSION
)
2109 ifeq ($(strip $(filter-out darwin
%,$(osys
))),)
2110 ifeq ($(strip $(filter-out %86,$(arch
))),)
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-intman.adb
<s-intman-susv3.adb \
2116 s-osinte.adb
<s-osinte-darwin.adb \
2117 s-osinte.ads
<s-osinte-darwin.ads \
2118 s-osprim.adb
<s-osprim-darwin.adb \
2119 s-taprop.adb
<s-taprop-posix.adb \
2120 s-taspri.ads
<s-taspri-posix.ads \
2121 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2122 g-trasym.ads
<g-trasym-unimplemented.ads \
2123 g-trasym.adb
<g-trasym-unimplemented.adb \
2124 a-numaux.ads
<a-numaux-x86.ads \
2125 a-numaux.adb
<a-numaux-x86.adb
2126 ifeq ($(strip $(MULTISUBDIR
)),/x86_64
)
2127 LIBGNAT_TARGET_PAIRS
+= \
2128 system.ads
<system-darwin-x86_64.ads
2130 LIBGNAT_TARGET_PAIRS
+= \
2131 system.ads
<system-darwin-x86.ads
2135 ifeq ($(strip $(filter-out %x86_64
,$(arch
))),)
2136 LIBGNAT_TARGET_PAIRS
= \
2137 a-intnam.ads
<a-intnam-darwin.ads \
2138 i-forbla.adb
<i-forbla-darwin.adb \
2139 s-inmaop.adb
<s-inmaop-posix.adb \
2140 s-intman.adb
<s-intman-susv3.adb \
2141 s-osinte.adb
<s-osinte-darwin.adb \
2142 s-osinte.ads
<s-osinte-darwin.ads \
2143 s-osprim.adb
<s-osprim-darwin.adb \
2144 s-taprop.adb
<s-taprop-posix.adb \
2145 s-taspri.ads
<s-taspri-posix.ads \
2146 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2147 a-numaux.ads
<a-numaux-x86.ads \
2148 a-numaux.adb
<a-numaux-x86.adb \
2149 g-trasym.ads
<g-trasym-unimplemented.ads \
2150 g-trasym.adb
<g-trasym-unimplemented.adb \
2151 system.ads
<system-darwin-x86_64.ads \
2152 $(ATOMICS_TARGET_PAIRS
)
2155 ifeq ($(strip $(filter-out powerpc
%,$(arch
))),)
2156 LIBGNAT_TARGET_PAIRS
= \
2157 a-intnam.ads
<a-intnam-darwin.ads \
2158 i-forbla.adb
<i-forbla-darwin.adb \
2159 s-inmaop.adb
<s-inmaop-posix.adb \
2160 s-intman.adb
<s-intman-posix.adb \
2161 s-osinte.adb
<s-osinte-darwin.adb \
2162 s-osinte.ads
<s-osinte-darwin.ads \
2163 s-osprim.adb
<s-osprim-posix.adb \
2164 s-taprop.adb
<s-taprop-posix.adb \
2165 s-taspri.ads
<s-taspri-posix.ads \
2166 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2167 a-numaux.ads
<a-numaux-darwin.ads \
2168 a-numaux.adb
<a-numaux-darwin.adb \
2169 g-trasym.ads
<g-trasym-unimplemented.ads \
2170 g-trasym.adb
<g-trasym-unimplemented.adb \
2171 system.ads
<system-darwin-ppc.ads
2174 TOOLS_TARGET_PAIRS
= \
2175 mlib-tgt-specific.adb
<mlib-tgt-specific-darwin.adb
2178 GNATLIB_SHARED
= gnatlib-shared-darwin
2179 SO_OPTS
= -Wl
,-flat_namespace
-shared-libgcc
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 seh_init.c final.c tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c \
2218 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 seh_init.o cal.o arit64.o final.o tracebak.o expect.o mkdir.o \
2223 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 a-nllrar.o a-nlrear.o \
2236 a-nucoar.o a-nurear.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 GCC_LINK
=$(CC
) $(GCC_LINK_FLAGS
) $(ADA_INCLUDES
)
2254 # when compiling the tools, the runtime has to be first on the path so that
2255 # it hides the runtime files lying with the rest of the sources
2256 ifeq ($(TOOLSCASE
),native
)
2257 vpath
%.ads ..
/$(RTSDIR
) ..
/
2258 vpath
%.adb ..
/$(RTSDIR
) ..
/
2259 vpath
%.c ..
/$(RTSDIR
) ..
/
2260 vpath
%.h ..
/$(RTSDIR
) ..
/
2263 # in the cross tools case, everything is compiled with the native
2264 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2265 ifeq ($(TOOLSCASE
),cross
)
2273 $(GNATMAKE
) -c
-b
$(ADA_INCLUDES
) \
2274 --GNATBIND
="$(GNATBIND)" --GCC
="$(CC) $(ALL_ADAFLAGS)" \
2275 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2276 gnatclean
-bargs
$(ADA_INCLUDES
) $(GNATBIND_FLAGS
)
2277 $(GNATLINK
) -v gnatcmd
-o ..
/..
/gnat
$(exeext
) \
2278 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2279 $(GNATLINK
) -v gnatchop
-o ..
/..
/gnatchop
$(exeext
) \
2280 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2281 $(GNATLINK
) -v gnatkr
-o ..
/..
/gnatkr
$(exeext
) \
2282 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2283 $(GNATLINK
) -v gnatls
-o ..
/..
/gnatls
$(exeext
) \
2284 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2285 $(GNATLINK
) -v gnatprep
-o ..
/..
/gnatprep
$(exeext
) \
2286 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2287 $(GNATLINK
) -v gnatxref
-o ..
/..
/gnatxref
$(exeext
) \
2288 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2289 $(GNATLINK
) -v gnatfind
-o ..
/..
/gnatfind
$(exeext
) \
2290 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2291 $(GNATLINK
) -v gnatname
-o ..
/..
/gnatname
$(exeext
) \
2292 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2293 $(GNATLINK
) -v gnatclean
-o ..
/..
/gnatclean
$(exeext
) \
2294 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2296 ..
/..
/gnatsym
$(exeext
):
2297 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatsym
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2298 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatsym
2299 $(GNATLINK
) -v gnatsym
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2301 ..
/..
/gnatdll
$(exeext
):
2302 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatdll
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2303 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatdll
2304 $(GNATLINK
) -v gnatdll
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2306 ..
/..
/vxaddr2line
$(exeext
): targext.o
2307 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vxaddr2line
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2308 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vxaddr2line
2309 $(GNATLINK
) -v vxaddr2line
-o
$@
--GCC
="$(GCC_LINK)" targext.o
$(CLIB
)
2311 gnatmake-re
: link.o targext.o
2312 $(GNATMAKE
) $(ADA_INCLUDES
) -u sdefault
--GCC
="$(CC) $(MOST_ADA_FLAGS)"
2313 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2314 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmake
2315 $(GNATLINK
) -v gnatmake
-o ..
/..
/gnatmake
$(exeext
) \
2316 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2318 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2319 # with the former version of gnatlink itself which cannot override itself.
2320 gnatlink-re
: link.o targext.o
2321 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlink
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2322 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlink
2323 $(GNATLINK
) -v gnatlink
-o ..
/..
/gnatlinknew
$(exeext
) \
2324 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2325 $(MV
) ..
/..
/gnatlinknew
$(exeext
) ..
/..
/gnatlink
$(exeext
)
2327 # Needs to be built with CC=gcc
2328 # Since the RTL should be built with the latest compiler, remove the
2329 # stamp target in the parent directory whenever gnat1 is rebuilt
2331 # Likewise for the tools
2332 ..
/..
/gnatmake
$(exeext
): $(P
) b_gnatm.o link.o targext.o
$(GNATMAKE_OBJS
)
2333 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatm.o
$(GNATMAKE_OBJS
) \
2336 ..
/..
/gnatlink
$(exeext
): $(P
) b_gnatl.o link.o targext.o
$(GNATLINK_OBJS
)
2337 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatl.o
$(GNATLINK_OBJS
) \
2340 ..
/stamp-gnatlib-
$(RTSDIR
):
2341 @if
[ ! -f stamp-gnatlib-
$(RTSDIR
) ] ; \
2343 $(ECHO
) You must first build the GNAT library
: make gnatlib
; \
2349 install-gnatlib
: ..
/stamp-gnatlib-
$(RTSDIR
)
2350 # Create the directory before deleting it, in case the directory is
2351 # a list of directories (as it may be on VMS). This ensures we are
2352 # deleting the right one.
2353 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2354 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2355 $(RMDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2356 $(RMDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2357 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2358 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2359 for file in
$(RTSDIR
)/*.ali
; do \
2360 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2362 -$(INSTALL_DATA
) $(RTSDIR
)/g-trasym
$(objext
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2363 -cd
$(RTSDIR
); for file in
*$(arext
);do \
2364 $(INSTALL_DATA
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2365 $(RANLIB_FOR_TARGET
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/$$file; \
2367 -$(foreach file
, $(EXTRA_ADALIB_FILES
), \
2368 $(INSTALL_DATA_DATE
) $(RTSDIR
)/$(file
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
) && \
2370 # Install the shared libraries, if any, using $(INSTALL) instead
2371 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2372 # for shared libraries on some targets, e.g. on HP-UX where the x
2373 # permission is required.
2374 # Also install the .dSYM directories if they exist (these directories
2375 # contain the debug information for the shared libraries on darwin)
2376 for file in gnat gnarl
; do \
2377 if
[ -f
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) ]; then \
2378 $(INSTALL
) $(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2379 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2381 if
[ -f
$(RTSDIR
)/lib
$${file}$(soext
) ]; then \
2382 $(LN_S
) lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2383 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/lib
$${file}$(soext
); \
2385 if
[ -d
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM
]; then \
2386 $(CP
) -r
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM \
2387 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2390 # This copy must be done preserving the date on the original file.
2391 for file in
$(RTSDIR
)/*.ad?
; do \
2392 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_INCLUDE_DIR
); \
2394 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.adb
2395 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.ads
2397 ..
/stamp-gnatlib2-
$(RTSDIR
):
2398 $(RM
) $(RTSDIR
)/s-
*.ali
2399 $(RM
) $(RTSDIR
)/s-
*$(objext
)
2400 $(RM
) $(RTSDIR
)/a-
*.ali
2401 $(RM
) $(RTSDIR
)/a-
*$(objext
)
2402 $(RM
) $(RTSDIR
)/*.ali
2403 $(RM
) $(RTSDIR
)/*$(objext
)
2404 $(RM
) $(RTSDIR
)/*$(arext
)
2405 $(RM
) $(RTSDIR
)/*$(soext
)
2406 touch ..
/stamp-gnatlib2-
$(RTSDIR
)
2407 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2409 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
2410 # successive target commands. Although the Gnu make documentation
2411 # implies this is true on all systems, I suspect it may not be, So care
2412 # has been taken to allow a sed script to look for ";)" and substitue
2413 # for ";" the appropriate character in the range of lines below
2414 # beginning with "GNULLI Begin" and ending with "GNULLI End"
2416 # GNULLI Begin ###########################################################
2418 ..
/stamp-gnatlib1-
$(RTSDIR
): Makefile ..
/stamp-gnatlib2-
$(RTSDIR
)
2421 $(CHMOD
) u
+w
$(RTSDIR
)
2422 # Copy target independent sources
2423 $(foreach f
,$(ADA_INCLUDE_SRCS
) $(LIBGNAT_SRCS
), \
2424 $(LN_S
) $(fsrcpfx
)ada
/$(f
) $(RTSDIR
) ;) true
2425 # Remove files to be replaced by target dependent sources
2426 $(RM
) $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2427 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
))))
2428 $(RM
) $(RTSDIR
)/*-*-*.ads
$(RTSDIR
)/*-*-*.adb
2429 # Copy new target dependent sources
2430 $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2431 $(LN_S
) $(fsrcpfx
)ada
/$(word 2,$(subst <, ,$(PAIR
))) \
2432 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
)));)
2433 # Copy generated target dependent sources
2434 $(RM
) $(RTSDIR
)/s-oscons.ads
2435 (cd
$(RTSDIR
); $(LN_S
) ..
/s-oscons.ads s-oscons.ads
)
2436 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2437 touch ..
/stamp-gnatlib1-
$(RTSDIR
)
2439 # GNULLI End #############################################################
2441 # Don't use semicolon separated shell commands that involve list expansions.
2442 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
2443 # line lengths in excess of 256 characters.
2444 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
2445 # is guaranteed to overflow the buffer.
2447 gnatlib
: ..
/stamp-gnatlib1-
$(RTSDIR
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2448 $(MAKE
) -C
$(RTSDIR
) \
2449 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2450 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2451 INCLUDES
="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2452 CFLAGS
="$(GNATLIBCFLAGS_FOR_C)" \
2453 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2455 -f ..
/Makefile
$(LIBGNAT_OBJS
)
2456 $(MAKE
) -C
$(RTSDIR
) \
2457 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2458 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2460 CFLAGS
="$(GNATLIBCFLAGS)" \
2461 ADAFLAGS
="$(GNATLIBFLAGS)" \
2462 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2466 $(RM
) $(RTSDIR
)/libgnat
$(arext
) $(RTSDIR
)/libgnarl
$(arext
)
2467 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnat
$(arext
) \
2468 $(addprefix $(RTSDIR
)/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
2469 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnat
$(arext
)
2470 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnarl
$(arext
) \
2471 $(addprefix $(RTSDIR
)/,$(GNATRTL_TASKING_OBJS
))
2472 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnarl
$(arext
)
2473 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnala
$(arext
) \
2474 $(addprefix $(RTSDIR
)/,$(GNATRTL_LINEARALGEBRA_OBJS
))
2475 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnala
$(arext
)
2476 ifeq ($(GMEM_LIB
),gmemlib
)
2477 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgmem
$(arext
) \
2478 $(RTSDIR
)/memtrack.o
2479 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgmem
$(arext
)
2481 $(CHMOD
) a-wx
$(RTSDIR
)/*.ali
2482 touch ..
/stamp-gnatlib-
$(RTSDIR
)
2484 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2485 gnatlib-shared-default
:
2486 $(MAKE
) $(FLAGS_TO_PASS
) \
2487 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2488 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2489 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2490 MULTISUBDIR
="$(MULTISUBDIR)" \
2491 THREAD_KIND
="$(THREAD_KIND)" \
2493 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2494 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
$(GNATLIBCFLAGS
) \
2495 $(TARGET_LIBGCC2_CFLAGS
) \
2496 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2497 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2498 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2500 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
$(GNATLIBCFLAGS
) \
2501 $(TARGET_LIBGCC2_CFLAGS
) \
2502 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2503 $(GNATRTL_TASKING_OBJS
) \
2504 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2506 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2508 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2511 gnatlib-shared-dual
:
2512 $(MAKE
) $(FLAGS_TO_PASS
) \
2513 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2514 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2515 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2516 MULTISUBDIR
="$(MULTISUBDIR)" \
2517 THREAD_KIND
="$(THREAD_KIND)" \
2518 gnatlib-shared-default
2519 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2520 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2521 $(MAKE
) $(FLAGS_TO_PASS
) \
2522 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2523 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2524 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2525 MULTISUBDIR
="$(MULTISUBDIR)" \
2526 THREAD_KIND
="$(THREAD_KIND)" \
2528 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2530 gnatlib-shared-dual-win32
:
2531 $(MAKE
) $(FLAGS_TO_PASS
) \
2532 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2533 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2534 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2535 MULTISUBDIR
="$(MULTISUBDIR)" \
2536 THREAD_KIND
="$(THREAD_KIND)" \
2537 gnatlib-shared-win32
2538 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2539 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2540 $(MAKE
) $(FLAGS_TO_PASS
) \
2541 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2542 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2543 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2544 MULTISUBDIR
="$(MULTISUBDIR)" \
2545 THREAD_KIND
="$(THREAD_KIND)" \
2547 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2549 # ??? we need to add the option to support auto-import of arrays/records to
2550 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2551 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2553 gnatlib-shared-win32
:
2554 $(MAKE
) $(FLAGS_TO_PASS
) \
2555 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2556 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2557 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2558 MULTISUBDIR
="$(MULTISUBDIR)" \
2559 THREAD_KIND
="$(THREAD_KIND)" \
2561 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2562 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
2563 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2564 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2565 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) $(MISCLIB
)
2566 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
2567 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2568 $(GNATRTL_TASKING_OBJS
) \
2569 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2570 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2572 gnatlib-shared-darwin
:
2573 $(MAKE
) $(FLAGS_TO_PASS
) \
2574 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2575 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2576 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) -fno-common" \
2577 MULTISUBDIR
="$(MULTISUBDIR)" \
2578 THREAD_KIND
="$(THREAD_KIND)" \
2580 $(RM
) $(RTSDIR
)/libgnat
$(soext
) $(RTSDIR
)/libgnarl
$(soext
)
2581 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
2582 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2583 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2585 -Wl
,-install_name
,@rpath
/libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2587 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
2588 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2589 $(GNATRTL_TASKING_OBJS
) \
2591 -Wl
,-install_name
,@rpath
/libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2592 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2593 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2595 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2597 cd
$(RTSDIR
); dsymutil libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2598 cd
$(RTSDIR
); dsymutil libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2601 $(MAKE
) $(FLAGS_TO_PASS
) \
2602 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2603 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2604 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2605 MULTISUBDIR
="$(MULTISUBDIR)" \
2606 THREAD_KIND
="$(THREAD_KIND)" \
2608 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2610 ..
/..
/gnatsym
-s SYMVEC_
$$$$.opt \
2611 $(LIBGNAT_OBJS
) $(GNATRTL_NONTASKING_OBJS
) && \
2612 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2613 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) libgnat.a \
2614 sys\
$$library:trace.exe \
2615 --for-linker
=/noinform \
2616 --for-linker
=SYMVEC_
$$$$.opt \
2617 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2619 ..
/..
/gnatsym
-s SYMVEC_
$$$$.opt \
2620 $(GNATRTL_TASKING_OBJS
) && \
2621 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2622 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2623 libgnarl.a libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2624 sys\
$$library:trace.exe \
2625 --for-linker
=/noinform \
2626 --for-linker
=SYMVEC_
$$$$.opt \
2627 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2630 $(MAKE
) $(FLAGS_TO_PASS
) \
2631 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2632 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2633 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2634 MULTISUBDIR
="$(MULTISUBDIR)" \
2635 THREAD_KIND
="$(THREAD_KIND)" \
2636 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" \
2640 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="" \
2641 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2642 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2643 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2644 $(MAKE
) $(FLAGS_TO_PASS
) \
2646 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2647 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2648 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2649 MULTISUBDIR
="$(MULTISUBDIR)" \
2650 THREAD_KIND
="$(THREAD_KIND)" \
2651 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2654 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="-gcc" \
2655 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2656 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2657 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2658 $(MAKE
) $(FLAGS_TO_PASS
) \
2659 EH_MECHANISM
="-gcc" \
2660 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2661 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2662 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2663 MULTISUBDIR
="$(MULTISUBDIR)" \
2664 THREAD_KIND
="$(THREAD_KIND)" \
2665 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2667 # .s files for cross-building
2669 make
$(GNAT1_ADA_OBJS
) CC
="gcc -B../stage1/" CFLAGS
="-S -gnatp"
2671 # Compiling object files from source files.
2673 # Note that dependencies on obstack.h are not written
2674 # because that file is not part of GCC.
2675 # Dependencies on gvarargs.h are not written
2676 # because all that file does, when not compiling with GCC,
2677 # is include the system varargs.h.
2679 b_gnatl.c
: $(GNATLINK_OBJS
)
2680 $(GNATBIND
) -C
$(ADA_INCLUDES
) -o b_gnatl.c gnatlink.ali
2681 b_gnatl.o
: b_gnatl.c
2683 b_gnatm.c
: $(GNATMAKE_OBJS
)
2684 $(GNATBIND
) -C
$(ADA_INCLUDES
) -o b_gnatm.c gnatmake.ali
2685 b_gnatm.o
: b_gnatm.c
2687 ADA_INCLUDE_DIR
= $(libsubdir
)/adainclude
2688 ADA_RTL_OBJ_DIR
= $(libsubdir
)/adalib
2690 # force no sibling call optimization on s-traceb.o so the number of stack
2691 # frames to be skipped when computing a call chain is not modified by
2692 # optimization. However we can do that only when building the runtime
2693 # (not the compiler) because the -fno-optimize-sibling-calls option exists
2694 # only in GCC 3 and above.
2696 ifneq (,$(findstring xgcc
,$(CC
)))
2697 NO_SIBLING_ADAFLAGS
=-fno-optimize-sibling-calls
2699 NO_SIBLING_ADAFLAGS
=
2702 s-traceb.o
: s-traceb.adb
2703 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) \
2704 $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) \
2707 # force debugging information on s-tasdeb.o so that it is always
2708 # possible to set conditional breakpoints on tasks.
2710 s-tasdeb.o
: s-tasdeb.adb s-tasdeb.ads
2711 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2714 # force no function reordering on a-except.o because of the exclusion bounds
2715 # mechanism (see the source file for more detailed information). However we
2716 # can do that only when building the runtime (not the compiler) because the
2717 # -fno-toplevel-reorder option exists only in GCC 4.2 and above.
2719 ifneq (,$(findstring xgcc
,$(CC
)))
2720 NO_REORDER_ADAFLAGS
=-fno-toplevel-reorder
2722 NO_REORDER_ADAFLAGS
=
2725 # force debugging information on a-except.o so that it is always
2726 # possible to set conditional breakpoints on exceptions.
2727 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2729 a-except.o
: a-except.adb a-except.ads
2730 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O1
-fno-inline \
2731 $(NO_REORDER_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2733 # compile s-except.o without optimization and with debug info to let the
2734 # debugger set breakpoints and inspect subprogram parameters on exception
2737 s-except.o
: s-except.adb s-except.ads
2738 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2741 # force debugging information on s-assert.o so that it is always
2742 # possible to set breakpoint on assert failures.
2744 s-assert.o
: s-assert.adb s-assert.ads a-except.ads
2745 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O2
$(ADA_INCLUDES
) \
2748 adadecode.o
: adadecode.c adadecode.h
2752 deftarg.o
: deftarg.c
2754 exit.o
: adaint.h exit.c
2760 socket.o
: socket.c gsocket.h
2762 raise-gcc.o
: raise-gcc.c raise.h
2763 raise.o
: raise.c raise.h
2764 vx_stack_info.o
: vx_stack_info.c
2767 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2768 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2770 init.o
: init.c adaint.h raise.h
2771 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2772 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2774 initialize.o
: initialize.c raise.h
2775 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2776 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2778 targext.o
: targext.c
2779 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2780 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
2783 # Need to keep the frame pointer in this file to pop the stack properly on
2785 tracebak.o
: tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2786 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
2787 $(INCLUDES
) -fno-omit-frame-pointer
$< $(OUTPUT_OPTION
)
2789 # In GNU Make, ignore whether `stage*' exists.
2790 .PHONY
: stage1 stage2 stage3 stage4
clean realclean TAGS bootstrap
2791 .PHONY
: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2795 # Gnatlbr, Vms_help, and Gnat.hlp are only used on VMS
2797 ..
/..
/gnatlbr
$(exeext
): ..
/..
/prefix.o
2798 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlbr
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2799 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlbr
2800 $(GNATLINK
) -v gnatlbr
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2802 ..
/..
/vms_help
$(exeext
):
2803 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vms_help
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2804 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vms_help
2805 $(GNATLINK
) -v vms_help
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2807 ..
/..
/gnat.hlp
: ..
/..
/vms_help
$(exeext
)
2808 ..
/..
/vms_help
$(exeext
) $(fsrcdir
)/ada
/gnat.help_in \
2809 $(fsrcdir
)/ada
/vms_data.ads ..
/..
/gnat.hlp