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 aspects.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 a-exetim.adb
<a-exetim-posix.adb \
1078 a-exetim.ads
<a-exetim-default.ads \
1079 s-linux.ads
<s-linux.ads \
1080 s-osinte.adb
<s-osinte-posix.adb
1082 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1083 LIBGNAT_TARGET_PAIRS
+= \
1084 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1085 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1086 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1087 s-taspri.ads
<s-taspri-linux-xenomai.ads \
1088 system.ads
<system-linux-x86-xenomai.ads
1092 LIBGNAT_TARGET_PAIRS
+= \
1093 s-osinte.ads
<s-osinte-linux.ads \
1094 s-osprim.adb
<s-osprim-posix.adb \
1095 s-taprop.adb
<s-taprop-linux.adb \
1096 s-tasinf.ads
<s-tasinf-linux.ads \
1097 s-tasinf.adb
<s-tasinf-linux.adb \
1098 s-taspri.ads
<s-taspri-posix.ads \
1099 system.ads
<system-linux-x86.ads
1104 THREADSLIB
= -lpthread
-lrt
1105 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1106 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1109 TOOLS_TARGET_PAIRS
= \
1110 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1111 indepsw.adb
<indepsw-gnu.adb
1113 GNATLIB_SHARED
= gnatlib-shared-dual
1115 LIBRARY_VERSION
:= $(LIB_VERSION
)
1118 ifeq ($(strip $(filter-out %86 kfreebsd
%,$(arch
) $(osys
))),)
1119 LIBGNAT_TARGET_PAIRS
= \
1120 a-intnam.ads
<a-intnam-freebsd.ads \
1121 a-numaux.adb
<a-numaux-x86.adb \
1122 a-numaux.ads
<a-numaux-x86.ads \
1123 s-inmaop.adb
<s-inmaop-posix.adb \
1124 s-intman.adb
<s-intman-posix.adb \
1125 s-osinte.adb
<s-osinte-posix.adb \
1126 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1127 s-osprim.adb
<s-osprim-posix.adb \
1128 s-taprop.adb
<s-taprop-linux.adb \
1129 s-tasinf.ads
<s-tasinf-linux.ads \
1130 s-tasinf.adb
<s-tasinf-linux.adb \
1131 s-taspri.ads
<s-taspri-posix.ads \
1132 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1133 system.ads
<system-freebsd-x86.ads
1135 TOOLS_TARGET_PAIRS
= \
1136 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1137 indepsw.adb
<indepsw-gnu.adb
1140 THREADSLIB
= -lpthread
1141 GNATLIB_SHARED
= gnatlib-shared-dual
1143 LIBRARY_VERSION
:= $(LIB_VERSION
)
1146 ifeq ($(strip $(filter-out x86_64 kfreebsd
%,$(arch
) $(osys
))),)
1147 LIBGNAT_TARGET_PAIRS
= \
1148 a-intnam.ads
<a-intnam-freebsd.ads \
1149 a-numaux.adb
<a-numaux-x86.adb \
1150 a-numaux.ads
<a-numaux-x86.ads \
1151 s-inmaop.adb
<s-inmaop-posix.adb \
1152 s-intman.adb
<s-intman-posix.adb \
1153 s-osinte.adb
<s-osinte-posix.adb \
1154 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1155 s-osprim.adb
<s-osprim-posix.adb \
1156 s-taprop.adb
<s-taprop-linux.adb \
1157 s-tasinf.ads
<s-tasinf-linux.ads \
1158 s-tasinf.adb
<s-tasinf-linux.adb \
1159 s-taspri.ads
<s-taspri-posix.ads \
1160 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1161 system.ads
<system-freebsd-x86_64.ads
1163 TOOLS_TARGET_PAIRS
= \
1164 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1165 indepsw.adb
<indepsw-gnu.adb
1168 THREADSLIB
= -lpthread
1169 GNATLIB_SHARED
= gnatlib-shared-dual
1171 LIBRARY_VERSION
:= $(LIB_VERSION
)
1174 ifeq ($(strip $(filter-out %86 freebsd
%,$(arch
) $(osys
))),)
1175 LIBGNAT_TARGET_PAIRS
= \
1176 a-intnam.ads
<a-intnam-freebsd.ads \
1177 a-numaux.adb
<a-numaux-x86.adb \
1178 a-numaux.ads
<a-numaux-x86.ads \
1179 g-bytswa.adb
<g-bytswa-x86.adb \
1180 s-inmaop.adb
<s-inmaop-posix.adb \
1181 s-intman.adb
<s-intman-posix.adb \
1182 s-osinte.adb
<s-osinte-freebsd.adb \
1183 s-osinte.ads
<s-osinte-freebsd.ads \
1184 s-osprim.adb
<s-osprim-posix.adb \
1185 s-taprop.adb
<s-taprop-posix.adb \
1186 s-taspri.ads
<s-taspri-posix.ads \
1187 s-tpopsp.adb
<s-tpopsp-posix.adb \
1188 system.ads
<system-freebsd-x86.ads
1190 TOOLS_TARGET_PAIRS
= \
1191 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
1192 GNATLIB_SHARED
= gnatlib-shared-dual
1195 THREADSLIB
= -lpthread
1197 LIBRARY_VERSION
:= $(LIB_VERSION
)
1200 ifeq ($(strip $(filter-out s390
% linux
%,$(arch
) $(osys
))),)
1201 LIBGNAT_TARGET_PAIRS_COMMON
= \
1202 a-intnam.ads
<a-intnam-linux.ads \
1203 s-inmaop.adb
<s-inmaop-posix.adb \
1204 s-intman.adb
<s-intman-posix.adb \
1205 s-linux.ads
<s-linux.ads \
1206 s-osinte.adb
<s-osinte-posix.adb \
1207 s-osinte.ads
<s-osinte-linux.ads \
1208 s-osprim.adb
<s-osprim-posix.adb \
1209 s-taprop.adb
<s-taprop-linux.adb \
1210 s-tasinf.ads
<s-tasinf-linux.ads \
1211 s-tasinf.adb
<s-tasinf-linux.adb \
1212 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1213 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1214 g-trasym.ads
<g-trasym-unimplemented.ads \
1215 g-trasym.adb
<g-trasym-unimplemented.adb
1217 LIBGNAT_TARGET_PAIRS_32
= \
1218 system.ads
<system-linux-s390.ads
1220 LIBGNAT_TARGET_PAIRS_64
= \
1221 system.ads
<system-linux-s390x.ads
1223 ifeq ($(strip $(filter-out s390x
,$(arch
))),)
1224 ifeq ($(strip $(MULTISUBDIR
)),/32)
1225 LIBGNAT_TARGET_PAIRS
= \
1226 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1228 LIBGNAT_TARGET_PAIRS
= \
1229 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1232 LIBGNAT_TARGET_PAIRS
= \
1233 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1236 TOOLS_TARGET_PAIRS
= \
1237 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1238 indepsw.adb
<indepsw-gnu.adb
1240 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1242 THREADSLIB
= -lpthread
1243 GNATLIB_SHARED
= gnatlib-shared-dual
1244 LIBRARY_VERSION
:= $(LIB_VERSION
)
1247 ifeq ($(strip $(filter-out mips sgi irix6
%,$(targ
))),)
1248 LIBGNAT_TARGET_PAIRS
= \
1249 a-intnam.ads
<a-intnam-irix.ads \
1250 s-inmaop.adb
<s-inmaop-posix.adb \
1251 s-intman.adb
<s-intman-irix.adb \
1252 s-mastop.adb
<s-mastop-irix.adb \
1253 s-osinte.adb
<s-osinte-irix.adb \
1254 s-osinte.ads
<s-osinte-irix.ads \
1255 s-osprim.adb
<s-osprim-posix.adb \
1256 s-proinf.adb
<s-proinf-irix-athread.adb \
1257 s-proinf.ads
<s-proinf-irix-athread.ads \
1258 s-taprop.adb
<s-taprop-irix.adb \
1259 s-tasinf.ads
<s-tasinf-irix.ads \
1260 s-taspri.ads
<s-taspri-posix.ads \
1261 s-tpopsp.adb
<s-tpopsp-posix.adb \
1262 s-traceb.adb
<s-traceb-mastop.adb
1264 ifeq ($(strip $(MULTISUBDIR
)),/64)
1265 LIBGNAT_TARGET_PAIRS
+= \
1266 system.ads
<system-irix-n64.ads
1268 ifeq ($(strip $(MULTISUBDIR
)),/32)
1269 LIBGNAT_TARGET_PAIRS
+= \
1270 system.ads
<system-irix-o32.ads
1272 LIBGNAT_TARGET_PAIRS
+= \
1273 system.ads
<system-irix-n32.ads
1277 THREADSLIB
= -lpthread
1278 GNATLIB_SHARED
= gnatlib-shared-default
1281 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-irix.adb
1284 LIBRARY_VERSION
:= $(LIB_VERSION
)
1288 ifeq ($(strip $(filter-out hppa
% hp hpux10
%,$(targ
))),)
1289 LIBGNAT_TARGET_PAIRS
= \
1290 a-excpol.adb
<a-excpol-abort.adb \
1291 a-intnam.ads
<a-intnam-hpux.ads \
1292 s-inmaop.adb
<s-inmaop-posix.adb \
1293 s-interr.adb
<s-interr-sigaction.adb \
1294 s-intman.adb
<s-intman-posix.adb \
1295 s-osinte.adb
<s-osinte-hpux-dce.adb \
1296 s-osinte.ads
<s-osinte-hpux-dce.ads \
1297 s-parame.ads
<s-parame-hpux.ads \
1298 s-osprim.adb
<s-osprim-posix.adb \
1299 s-taprop.adb
<s-taprop-hpux-dce.adb \
1300 s-taspri.ads
<s-taspri-hpux-dce.ads \
1301 s-tpopsp.adb
<s-tpopsp-posix.adb \
1302 system.ads
<system-hpux.ads
1307 ifeq ($(strip $(filter-out hppa
% hp hpux11
%,$(targ
))),)
1308 LIBGNAT_TARGET_PAIRS
= \
1309 a-intnam.ads
<a-intnam-hpux.ads \
1310 s-inmaop.adb
<s-inmaop-posix.adb \
1311 s-intman.adb
<s-intman-posix.adb \
1312 s-osinte.adb
<s-osinte-posix.adb \
1313 s-osinte.ads
<s-osinte-hpux.ads \
1314 s-parame.ads
<s-parame-hpux.ads \
1315 s-osprim.adb
<s-osprim-posix.adb \
1316 s-traceb.adb
<s-traceb-hpux.adb \
1317 s-taprop.adb
<s-taprop-posix.adb \
1318 s-taspri.ads
<s-taspri-posix.ads \
1319 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1320 system.ads
<system-hpux.ads
1322 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-hpux.adb
1324 TGT_LIB
= /usr
/lib
/libcl.a
1325 THREADSLIB
= -lpthread
1329 GNATLIB_SHARED
= gnatlib-shared-dual
1330 LIBRARY_VERSION
:= $(LIB_VERSION
)
1333 ifeq ($(strip $(filter-out ibm aix
%,$(manu
) $(osys
))),)
1334 LIBGNAT_TARGET_PAIRS_COMMON
= \
1335 a-intnam.ads
<a-intnam-aix.ads \
1336 s-inmaop.adb
<s-inmaop-posix.adb \
1337 s-intman.adb
<s-intman-posix.adb \
1338 s-osinte.adb
<s-osinte-aix.adb \
1339 s-osinte.ads
<s-osinte-aix.ads \
1340 s-osprim.adb
<s-osprim-posix.adb \
1341 s-taprop.adb
<s-taprop-posix.adb \
1342 s-taspri.ads
<s-taspri-posix.ads \
1343 s-tpopsp.adb
<s-tpopsp-posix.adb \
1344 $(ATOMICS_TARGET_PAIRS
)
1346 LIBGNAT_TARGET_PAIRS_32
= \
1347 system.ads
<system-aix.ads
1349 LIBGNAT_TARGET_PAIRS_64
= \
1350 system.ads
<system-aix64.ads
1352 ifeq ($(findstring ppc64
, \
1353 $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) \
1354 -print-multi-os-directory
)), \
1356 LIBGNAT_TARGET_PAIRS
= \
1357 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1359 LIBGNAT_TARGET_PAIRS
= \
1360 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1363 THREADSLIB
= -lpthreads
1365 TOOLS_TARGET_PAIRS
= \
1366 mlib-tgt-specific.adb
<mlib-tgt-specific-aix.adb \
1367 indepsw.adb
<indepsw-aix.adb
1372 ifeq ($(strip $(filter-out lynxos
,$(osys
))),)
1373 TOOLS_TARGET_PAIRS
= \
1374 mlib-tgt-specific.adb
<mlib-tgt-specific-lynxos.adb \
1375 indepsw.adb
<indepsw-gnu.adb
1377 ifeq ($(strip $(filter-out %86 lynxos
,$(arch
) $(osys
))),)
1378 LIBGNAT_TARGET_PAIRS
= \
1379 a-numaux.adb
<a-numaux-x86.adb \
1380 a-numaux.ads
<a-numaux-x86.ads \
1381 a-intnam.ads
<a-intnam-lynxos.ads \
1382 g-bytswa.adb
<g-bytswa-x86.adb \
1383 s-inmaop.adb
<s-inmaop-posix.adb \
1384 s-intman.adb
<s-intman-posix.adb \
1385 s-osinte.adb
<s-osinte-lynxos.adb \
1386 s-osinte.ads
<s-osinte-lynxos.ads \
1387 s-osprim.adb
<s-osprim-posix.adb \
1388 s-taprop.adb
<s-taprop-lynxos.adb \
1389 s-taspri.ads
<s-taspri-lynxos.ads \
1390 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
1391 g-trasym.ads
<g-trasym-unimplemented.ads \
1392 g-trasym.adb
<g-trasym-unimplemented.adb \
1393 system.ads
<system-lynxos-x86.ads
1397 LIBGNAT_TARGET_PAIRS
= \
1398 a-intnam.ads
<a-intnam-lynxos.ads \
1399 s-inmaop.adb
<s-inmaop-posix.adb \
1400 s-intman.adb
<s-intman-posix.adb \
1401 s-osinte.adb
<s-osinte-lynxos.adb \
1402 s-osinte.ads
<s-osinte-lynxos.ads \
1403 s-osprim.adb
<s-osprim-posix.adb \
1404 s-taprop.adb
<s-taprop-lynxos.adb \
1405 s-taspri.ads
<s-taspri-lynxos.ads \
1406 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
1407 g-trasym.ads
<g-trasym-unimplemented.ads \
1408 g-trasym.adb
<g-trasym-unimplemented.adb \
1409 system.ads
<system-lynxos-ppc.ads
1413 ifeq ($(strip $(filter-out rtems
%,$(osys
))),)
1414 LIBGNAT_TARGET_PAIRS
= \
1415 system.ads
<system-rtems.ads \
1416 a-intnam.ads
<a-intnam-rtems.ads \
1417 s-inmaop.adb
<s-inmaop-posix.adb \
1418 s-intman.adb
<s-intman-posix.adb \
1419 s-osinte.adb
<s-osinte-rtems.adb \
1420 s-osinte.ads
<s-osinte-rtems.ads \
1421 s-osprim.adb
<s-osprim-posix.adb \
1422 s-parame.adb
<s-parame-rtems.adb \
1423 s-taprop.adb
<s-taprop-posix.adb \
1424 s-taspri.ads
<s-taspri-posix.ads \
1425 s-tpopsp.adb
<s-tpopsp-rtems.adb \
1426 s-stchop.adb
<s-stchop-rtems.adb \
1427 s-interr.adb
<s-interr-hwint.adb \
1428 g-trasym.ads
<g-trasym-unimplemented.ads \
1429 g-trasym.adb
<g-trasym-unimplemented.adb
1432 ifeq ($(strip $(filter-out alpha
% dec osf
%,$(targ
))),)
1433 LIBGNAT_TARGET_PAIRS
= \
1434 a-intnam.ads
<a-intnam-tru64.ads \
1435 s-inmaop.adb
<s-inmaop-posix.adb \
1436 s-intman.adb
<s-intman-posix.adb \
1437 s-mastop.adb
<s-mastop-tru64.adb \
1438 s-osinte.adb
<s-osinte-tru64.adb \
1439 s-osinte.ads
<s-osinte-tru64.ads \
1440 s-osprim.adb
<s-osprim-unix.adb \
1441 s-taprop.adb
<s-taprop-tru64.adb \
1442 s-tasinf.ads
<s-tasinf-tru64.ads \
1443 s-taspri.ads
<s-taspri-tru64.ads \
1444 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1445 s-traceb.adb
<s-traceb-mastop.adb \
1446 system.ads
<system-tru64.ads \
1447 $(ATOMICS_TARGET_PAIRS
)
1449 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-tru64.adb
1454 THREADSLIB
= -lpthread
-lmach
-lexc
-lrt
1455 GNATLIB_SHARED
= gnatlib-shared-default
1456 LIBRARY_VERSION
:= $(LIB_VERSION
)
1459 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(host
))),)
1469 @ gnu
:[bin
]vmssymvec
$<
1472 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(targ
))),)
1473 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1474 LIBGNAT_TARGET_PAIRS_AUX1
= \
1475 g-enblsp.adb
<g-enblsp-vms-ia64.adb \
1476 g-trasym.adb
<g-trasym-vms-ia64.adb \
1477 s-asthan.adb
<s-asthan-vms-ia64.adb \
1478 s-auxdec.adb
<s-auxdec-vms-ia64.adb \
1479 s-osinte.adb
<s-osinte-vms-ia64.adb \
1480 s-osinte.ads
<s-osinte-vms-ia64.ads \
1481 s-vaflop.adb
<s-vaflop-vms-ia64.adb \
1482 system.ads
<system-vms-ia64.ads
1484 LIBGNAT_TARGET_PAIRS_AUX2
= \
1485 s-parame.ads
<s-parame-vms-ia64.ads \
1486 $(ATOMICS_TARGET_PAIRS
)
1488 ifeq ($(strip $(filter-out alpha64 dec vms
% openvms
% alphavms
%,$(targ
))),)
1489 LIBGNAT_TARGET_PAIRS_AUX1
= \
1490 g-enblsp.adb
<g-enblsp-vms-alpha.adb \
1491 g-trasym.adb
<g-trasym-vms-alpha.adb \
1492 s-asthan.adb
<s-asthan-vms-alpha.adb \
1493 s-auxdec.adb
<s-auxdec-vms-alpha.adb \
1494 s-osinte.adb
<s-osinte-vms.adb \
1495 s-osinte.ads
<s-osinte-vms.ads \
1496 s-traent.adb
<s-traent-vms.adb \
1497 s-traent.ads
<s-traent-vms.ads \
1498 s-vaflop.adb
<s-vaflop-vms-alpha.adb \
1499 system.ads
<system-vms_64.ads
1501 ifeq ($(strip $(filter-out express EXPRESS
,$(THREAD_KIND
))),)
1502 LIBGNAT_TARGET_PAIRS_AUX2
= \
1503 s-parame.ads
<s-parame-vms-restrict.ads
1505 LIBGNAT_TARGET_PAIRS_AUX2
= \
1506 s-parame.ads
<s-parame-vms-alpha.ads \
1507 $(ATOMICS_TARGET_PAIRS
)
1512 LIBGNAT_TARGET_PAIRS
= \
1513 a-caldel.adb
<a-caldel-vms.adb \
1514 a-calend.adb
<a-calend-vms.adb \
1515 a-calend.ads
<a-calend-vms.ads \
1516 a-dirval.adb
<a-dirval-vms.adb \
1517 a-excpol.adb
<a-excpol-abort.adb \
1518 a-intnam.ads
<a-intnam-vms.ads \
1519 a-numaux.ads
<a-numaux-vms.ads \
1520 g-expect.adb
<g-expect-vms.adb \
1521 g-socthi.ads
<g-socthi-vms.ads \
1522 g-socthi.adb
<g-socthi-vms.adb \
1523 g-stsifd.adb
<g-stsifd-sockets.adb \
1524 i-c.ads
<i-c-vms_64.ads \
1525 i-cstrin.ads
<i-cstrin-vms_64.ads \
1526 i-cstrin.adb
<i-cstrin-vms_64.adb \
1527 i-cpoint.ads
<i-cpoint-vms_64.ads \
1528 i-cpoint.adb
<i-cpoint-vms_64.adb \
1529 i-cstrea.adb
<i-cstrea-vms.adb \
1530 memtrack.adb
<memtrack-vms_64.adb \
1531 s-auxdec.ads
<s-auxdec-vms_64.ads \
1532 s-inmaop.adb
<s-inmaop-vms.adb \
1533 s-interr.adb
<s-interr-vms.adb \
1534 s-intman.adb
<s-intman-vms.adb \
1535 s-intman.ads
<s-intman-vms.ads \
1536 s-memory.adb
<s-memory-vms_64.adb \
1537 s-memory.ads
<s-memory-vms_64.ads \
1538 s-osprim.adb
<s-osprim-vms.adb \
1539 s-osprim.ads
<s-osprim-vms.ads \
1540 s-taprop.adb
<s-taprop-vms.adb \
1541 s-tasdeb.adb
<s-tasdeb-vms.adb \
1542 s-taspri.ads
<s-taspri-vms.ads \
1543 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1544 s-tpopde.adb
<s-tpopde-vms.adb \
1545 s-tpopde.ads
<s-tpopde-vms.ads \
1546 $(LIBGNAT_TARGET_PAIRS_AUX1
) \
1547 $(LIBGNAT_TARGET_PAIRS_AUX2
)
1549 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1550 TOOLS_TARGET_PAIRS
= \
1551 mlib-tgt-specific.adb
<mlib-tgt-specific-vms-ia64.adb \
1552 symbols.adb
<symbols-vms.adb \
1553 symbols-processing.adb
<symbols-processing-vms-ia64.adb
1555 TOOLS_TARGET_PAIRS
= \
1556 mlib-tgt-specific.adb
<mlib-tgt-specific-vms-alpha.adb \
1557 symbols.adb
<symbols-vms.adb \
1558 symbols-processing.adb
<symbols-processing-vms-alpha.adb
1561 adamsg.o
: adamsg.msg
1562 -$(DECC
) --cc=message adamsg.msg
-o adamsg.o
1564 EXTRA_GNATMAKE_OBJS
= mlib-tgt-vms_common.o
1568 GNATLIB_SHARED
=gnatlib-shared-vms
1569 EXTRA_LIBGNAT_SRCS
+=adamsg.msg
1570 EXTRA_LIBGNAT_OBJS
+=adamsg.o
1571 EXTRA_GNATRTL_TASKING_OBJS
=s-tpopde.o
1573 ..
/..
/gnatsym
$(exeext
)
1574 # This command transforms (YYYYMMDD) into YY,MMDD
1575 GSMATCH_VERSION
:= $(shell grep
"^ *Gnat_Static_Version_String" $(fsrcpfx
)ada
/gnatvsn.ads | sed
-e
's/.*(\(.*\)).*/\1/' -e
's/\(..\)\(..\)\(....\).*/\2,\3/')
1576 TOOLS_LIBS_LO
:= --for-linker
=sys
\\$$\
$$library:trace.exe
1577 LIBRARY_VERSION
:= $(subst .
,_
,$(LIB_VERSION
))
1580 ifeq ($(strip $(filter-out avr none powerpc
% eabispe leon
% erc32
% unknown elf
,$(targ
))),)
1581 TOOLS_TARGET_PAIRS
=\
1582 mlib-tgt-specific.adb
<mlib-tgt-specific-xi.adb \
1583 indepsw.adb
<indepsw-gnu.adb
1586 ifeq ($(strip $(filter-out cygwin32
% mingw32
% pe
,$(osys
))),)
1587 LIBGNAT_TARGET_PAIRS
= \
1588 a-dirval.adb
<a-dirval-mingw.adb \
1589 a-excpol.adb
<a-excpol-abort.adb \
1590 a-numaux.adb
<a-numaux-x86.adb \
1591 a-numaux.ads
<a-numaux-x86.ads \
1592 s-gloloc.adb
<s-gloloc-mingw.adb \
1593 s-inmaop.adb
<s-inmaop-dummy.adb \
1594 s-memory.adb
<s-memory-mingw.adb \
1595 s-taspri.ads
<s-taspri-mingw.ads \
1596 s-tasinf.adb
<s-tasinf-mingw.adb \
1597 s-tasinf.ads
<s-tasinf-mingw.ads \
1598 g-bytswa.adb
<g-bytswa-x86.adb \
1599 g-socthi.ads
<g-socthi-mingw.ads \
1600 g-socthi.adb
<g-socthi-mingw.adb \
1601 g-stsifd.adb
<g-stsifd-sockets.adb \
1602 g-soliop.ads
<g-soliop-mingw.ads
1604 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss
,$(THREAD_KIND
))),)
1605 LIBGNAT_TARGET_PAIRS
+= \
1606 s-intman.adb
<s-intman-dummy.adb \
1607 s-osinte.ads
<s-osinte-rtx.ads \
1608 s-osprim.adb
<s-osprim-rtx.adb \
1609 s-taprop.adb
<s-taprop-rtx.adb
1611 EXTRA_GNATRTL_NONTASKING_OBJS
= s-win32.o
1613 ifeq ($(strip $(filter-out rtx_w32
,$(THREAD_KIND
))),)
1614 LIBGNAT_TARGET_PAIRS
+= system.ads
<system-rtx.ads
1618 LIBGNAT_TARGET_PAIRS
+= \
1619 system.ads
<system-rtx-rtss.ads \
1620 s-parame.adb
<s-parame-vxworks.adb
1626 LIBGNAT_TARGET_PAIRS
+= \
1627 a-exetim.adb
<a-exetim-mingw.adb \
1628 a-exetim.ads
<a-exetim-mingw.ads \
1629 a-intnam.ads
<a-intnam-mingw.ads \
1630 g-sercom.adb
<g-sercom-mingw.adb \
1631 s-interr.adb
<s-interr-sigaction.adb \
1632 s-intman.adb
<s-intman-mingw.adb \
1633 s-osinte.ads
<s-osinte-mingw.ads \
1634 s-osprim.adb
<s-osprim-mingw.adb \
1635 s-taprop.adb
<s-taprop-mingw.adb
1637 ifeq ($(strip $(filter-out x86_64
%,$(arch
))),)
1638 ifeq ($(strip $(MULTISUBDIR
)),/32)
1639 LIBGNAT_TARGET_PAIRS
+= \
1640 system.ads
<system-mingw.ads
1642 LIBGNAT_TARGET_PAIRS
+= \
1643 system.ads
<system-mingw-x86_64.ads
1646 ifeq ($(strip $(MULTISUBDIR
)),/64)
1647 LIBGNAT_TARGET_PAIRS
+= \
1648 system.ads
<system-mingw-x86_64.ads
1650 LIBGNAT_TARGET_PAIRS
+= \
1651 system.ads
<system-mingw.ads
1655 EXTRA_GNATRTL_NONTASKING_OBJS
= \
1656 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1657 EXTRA_GNATRTL_TASKING_OBJS
= a-exetim.o
1661 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1662 # auto-import support for array/record will be done.
1663 GNATLIB_SHARED
= gnatlib-shared-win32
1666 TOOLS_TARGET_PAIRS
= \
1667 mlib-tgt-specific.adb
<mlib-tgt-specific-mingw.adb \
1668 indepsw.adb
<indepsw-mingw.adb
1671 EXTRA_GNATTOOLS
= ..
/..
/gnatdll
$(exeext
)
1672 EXTRA_GNATMAKE_OBJS
= mdll.o mdll-utl.o mdll-fil.o
1674 LIBRARY_VERSION
:= $(LIB_VERSION
)
1677 ifeq ($(strip $(filter-out mips linux
%,$(arch
) $(osys
))),)
1678 LIBGNAT_TARGET_PAIRS
= \
1679 a-intnam.ads
<a-intnam-linux.ads \
1680 s-inmaop.adb
<s-inmaop-posix.adb \
1681 s-intman.adb
<s-intman-posix.adb \
1682 s-linux.ads
<s-linux.ads \
1683 s-osinte.adb
<s-osinte-posix.adb \
1684 s-osinte.ads
<s-osinte-linux.ads \
1685 s-osprim.adb
<s-osprim-posix.adb \
1686 s-taprop.adb
<s-taprop-linux.adb \
1687 s-tasinf.ads
<s-tasinf-linux.ads \
1688 s-tasinf.adb
<s-tasinf-linux.adb \
1689 s-taspri.ads
<s-taspri-posix.ads \
1690 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1691 system.ads
<system-linux-mips.ads
1694 THREADSLIB
= -lpthread
1695 GNATLIB_SHARED
= gnatlib-shared-dual
1697 LIBRARY_VERSION
:= $(LIB_VERSION
)
1700 ifeq ($(strip $(filter-out mipsel linux
%,$(arch
) $(osys
))),)
1701 LIBGNAT_TARGET_PAIRS_COMMON
= \
1702 a-intnam.ads
<a-intnam-linux.ads \
1703 s-inmaop.adb
<s-inmaop-posix.adb \
1704 s-intman.adb
<s-intman-posix.adb \
1705 s-linux.ads
<s-linux-mipsel.ads \
1706 s-osinte.adb
<s-osinte-posix.adb \
1707 s-osinte.ads
<s-osinte-linux.ads \
1708 s-osprim.adb
<s-osprim-posix.adb \
1709 s-taprop.adb
<s-taprop-linux.adb \
1710 s-tasinf.ads
<s-tasinf-linux.ads \
1711 s-tasinf.adb
<s-tasinf-linux.adb \
1712 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1713 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1714 g-sercom.adb
<g-sercom-linux.adb
1716 LIBGNAT_TARGET_PAIRS_32
= \
1717 system.ads
<system-linux-mipsel.ads
1719 LIBGNAT_TARGET_PAIRS_64
= \
1720 system.ads
<system-linux-mips64el.ads
1722 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1723 LIBGNAT_TARGET_PAIRS
= \
1724 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1726 LIBGNAT_TARGET_PAIRS
= \
1727 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1730 TOOLS_TARGET_PAIRS
= \
1731 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1732 indepsw.adb
<indepsw-gnu.adb
1734 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1736 THREADSLIB
= -lpthread
1737 GNATLIB_SHARED
= gnatlib-shared-dual
1739 LIBRARY_VERSION
:= $(LIB_VERSION
)
1742 ifeq ($(strip $(filter-out mips64el linux
%,$(arch
) $(osys
))),)
1743 LIBGNAT_TARGET_PAIRS_COMMON
= \
1744 a-intnam.ads
<a-intnam-linux.ads \
1745 s-inmaop.adb
<s-inmaop-posix.adb \
1746 s-intman.adb
<s-intman-posix.adb \
1747 s-linux.ads
<s-linux-mipsel.ads \
1748 s-osinte.adb
<s-osinte-posix.adb \
1749 s-osinte.ads
<s-osinte-linux.ads \
1750 s-osprim.adb
<s-osprim-posix.adb \
1751 s-taprop.adb
<s-taprop-linux.adb \
1752 s-tasinf.ads
<s-tasinf-linux.ads \
1753 s-tasinf.adb
<s-tasinf-linux.adb \
1754 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1755 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1756 g-sercom.adb
<g-sercom-linux.adb
1758 LIBGNAT_TARGET_PAIRS_32
= \
1759 system.ads
<system-linux-mipsel.ads
1761 LIBGNAT_TARGET_PAIRS_64
= \
1762 system.ads
<system-linux-mips64el.ads
1764 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1765 LIBGNAT_TARGET_PAIRS
= \
1766 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1768 LIBGNAT_TARGET_PAIRS
= \
1769 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1772 TOOLS_TARGET_PAIRS
= \
1773 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1774 indepsw.adb
<indepsw-gnu.adb
1776 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1778 THREADSLIB
= -lpthread
1779 GNATLIB_SHARED
= gnatlib-shared-dual
1781 LIBRARY_VERSION
:= $(LIB_VERSION
)
1784 ifeq ($(strip $(filter-out powerpc
% linux
%,$(arch
) $(osys
))),)
1785 LIBGNAT_TARGET_PAIRS_COMMON
= \
1786 a-exetim.adb
<a-exetim-posix.adb \
1787 a-exetim.ads
<a-exetim-default.ads \
1788 a-intnam.ads
<a-intnam-linux.ads \
1789 s-inmaop.adb
<s-inmaop-posix.adb \
1790 s-intman.adb
<s-intman-posix.adb \
1791 s-linux.ads
<s-linux.ads \
1792 s-osinte.adb
<s-osinte-posix.adb \
1793 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1794 g-sercom.adb
<g-sercom-linux.adb \
1795 g-trasym.adb
<g-trasym-dwarf.adb \
1796 $(ATOMICS_TARGET_PAIRS
)
1798 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1799 LIBGNAT_TARGET_PAIRS
= \
1800 $(LIBGNAT_TARGET_PAIRS_COMMON
)
1802 LIBGNAT_TARGET_PAIRS
+= \
1803 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1804 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1805 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1806 s-taspri.ads
<s-taspri-linux-xenomai.ads \
1807 system.ads
<system-linux-ppc-xenomai.ads
1809 LIBGNAT_TARGET_PAIRS_32
= \
1810 system.ads
<system-linux-ppc.ads
1812 LIBGNAT_TARGET_PAIRS_64
= \
1813 system.ads
<system-linux-ppc64.ads
1815 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1816 LIBGNAT_TARGET_PAIRS
= \
1817 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1819 LIBGNAT_TARGET_PAIRS
= \
1820 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1823 LIBGNAT_TARGET_PAIRS
+= \
1824 s-osinte.ads
<s-osinte-linux.ads \
1825 s-osprim.adb
<s-osprim-posix.adb \
1826 s-taprop.adb
<s-taprop-linux.adb \
1827 s-tasinf.ads
<s-tasinf-linux.ads \
1828 s-tasinf.adb
<s-tasinf-linux.adb \
1829 s-taspri.ads
<s-taspri-posix-noaltstack.ads
1832 TOOLS_TARGET_PAIRS
= \
1833 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1834 indepsw.adb
<indepsw-gnu.adb
1836 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1838 THREADSLIB
= -lpthread
-lrt
1839 GNATLIB_SHARED
= gnatlib-shared-dual
1841 LIBRARY_VERSION
:= $(LIB_VERSION
)
1844 ifeq ($(strip $(filter-out arm
% linux-gnueabi
,$(arch
) $(osys
)-$(word 4,$(targ
)))),)
1845 LIBGNAT_TARGET_PAIRS
= \
1846 a-intnam.ads
<a-intnam-linux.ads \
1847 s-inmaop.adb
<s-inmaop-posix.adb \
1848 s-intman.adb
<s-intman-posix.adb \
1849 s-linux.ads
<s-linux.ads \
1850 s-osinte.adb
<s-osinte-posix.adb \
1851 s-osinte.ads
<s-osinte-linux.ads \
1852 s-osprim.adb
<s-osprim-posix.adb \
1853 s-taprop.adb
<s-taprop-linux.adb \
1854 s-tasinf.ads
<s-tasinf-linux.ads \
1855 s-tasinf.adb
<s-tasinf-linux.adb \
1856 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1857 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
1859 ifeq ($(strip $(filter-out arm
%b
,$(arch
))),)
1860 LIBGNAT_TARGET_PAIRS
+= \
1861 system.ads
<system-linux-armeb.ads
1863 LIBGNAT_TARGET_PAIRS
+= \
1864 system.ads
<system-linux-armel.ads
1867 TOOLS_TARGET_PAIRS
= \
1868 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1869 indepsw.adb
<indepsw-gnu.adb
1871 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1873 THREADSLIB
= -lpthread
1874 GNATLIB_SHARED
= gnatlib-shared-dual
1876 LIBRARY_VERSION
:= $(LIB_VERSION
)
1879 ifeq ($(strip $(filter-out sparc
% linux
%,$(arch
) $(osys
))),)
1880 LIBGNAT_TARGET_PAIRS_COMMON
= \
1881 a-intnam.ads
<a-intnam-linux.ads \
1882 s-inmaop.adb
<s-inmaop-posix.adb \
1883 s-intman.adb
<s-intman-posix.adb \
1884 s-linux.ads
<s-linux-sparc.ads \
1885 s-osinte.adb
<s-osinte-posix.adb \
1886 s-osinte.ads
<s-osinte-linux.ads \
1887 s-osprim.adb
<s-osprim-posix.adb \
1888 s-taprop.adb
<s-taprop-linux.adb \
1889 s-tasinf.ads
<s-tasinf-linux.ads \
1890 s-tasinf.adb
<s-tasinf-linux.adb \
1891 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1892 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
1894 LIBGNAT_TARGET_PAIRS_32
= \
1895 g-trasym.ads
<g-trasym-unimplemented.ads \
1896 g-trasym.adb
<g-trasym-unimplemented.adb \
1897 system.ads
<system-linux-sparc.ads
1899 LIBGNAT_TARGET_PAIRS_64
= \
1900 system.ads
<system-linux-sparcv9.ads
1902 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1903 LIBGNAT_TARGET_PAIRS
= \
1904 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1906 LIBGNAT_TARGET_PAIRS
= \
1907 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1910 TOOLS_TARGET_PAIRS
= \
1911 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1912 indepsw.adb
<indepsw-gnu.adb
1914 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1916 THREADSLIB
= -lpthread
1917 GNATLIB_SHARED
= gnatlib-shared-dual
1919 LIBRARY_VERSION
:= $(LIB_VERSION
)
1922 ifeq ($(strip $(filter-out hppa
% linux
%,$(arch
) $(osys
))),)
1923 LIBGNAT_TARGET_PAIRS
= \
1924 a-intnam.ads
<a-intnam-linux.ads \
1925 s-inmaop.adb
<s-inmaop-posix.adb \
1926 s-intman.adb
<s-intman-posix.adb \
1927 s-linux.ads
<s-linux-hppa.ads \
1928 s-osinte.adb
<s-osinte-posix.adb \
1929 s-osinte.ads
<s-osinte-linux.ads \
1930 s-osprim.adb
<s-osprim-posix.adb \
1931 s-taprop.adb
<s-taprop-linux.adb \
1932 s-tasinf.ads
<s-tasinf-linux.ads \
1933 s-tasinf.adb
<s-tasinf-linux.adb \
1934 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1935 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1936 g-trasym.ads
<g-trasym-unimplemented.ads \
1937 g-trasym.adb
<g-trasym-unimplemented.adb \
1938 system.ads
<system-linux-hppa.ads
1940 TOOLS_TARGET_PAIRS
= \
1941 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1942 indepsw.adb
<indepsw-gnu.adb
1944 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1946 THREADSLIB
= -lpthread
1947 GNATLIB_SHARED
= gnatlib-shared-dual
1949 LIBRARY_VERSION
:= $(LIB_VERSION
)
1952 ifeq ($(strip $(filter-out sh4
% linux
%,$(arch
) $(osys
))),)
1953 LIBGNAT_TARGET_PAIRS
= \
1954 a-intnam.ads
<a-intnam-linux.ads \
1955 s-inmaop.adb
<s-inmaop-posix.adb \
1956 s-intman.adb
<s-intman-posix.adb \
1957 s-linux.ads
<s-linux.ads \
1958 s-osinte.adb
<s-osinte-posix.adb \
1959 s-osinte.ads
<s-osinte-linux.ads \
1960 s-osprim.adb
<s-osprim-posix.adb \
1961 s-taprop.adb
<s-taprop-linux.adb \
1962 s-tasinf.ads
<s-tasinf-linux.ads \
1963 s-tasinf.adb
<s-tasinf-linux.adb \
1964 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1965 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1966 system.ads
<system-linux-sh4.ads
1968 TOOLS_TARGET_PAIRS
= \
1969 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1970 indepsw.adb
<indepsw-linux.adb
1972 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1975 THREADSLIB
= -lpthread
1976 GNATLIB_SHARED
= gnatlib-shared-dual
1978 LIBRARY_VERSION
:= $(LIB_VERSION
)
1981 ifeq ($(strip $(filter-out %ia64 linux
%,$(arch
) $(osys
))),)
1982 LIBGNAT_TARGET_PAIRS
= \
1983 a-exetim.adb
<a-exetim-posix.adb \
1984 a-exetim.ads
<a-exetim-default.ads \
1985 a-intnam.ads
<a-intnam-linux.ads \
1986 a-numaux.ads
<a-numaux-libc-x86.ads \
1987 s-inmaop.adb
<s-inmaop-posix.adb \
1988 s-intman.adb
<s-intman-posix.adb \
1989 s-linux.ads
<s-linux.ads \
1990 s-osinte.ads
<s-osinte-linux.ads \
1991 s-osinte.adb
<s-osinte-posix.adb \
1992 s-osprim.adb
<s-osprim-posix.adb \
1993 s-taprop.adb
<s-taprop-linux.adb \
1994 s-tasinf.ads
<s-tasinf-linux.ads \
1995 s-tasinf.adb
<s-tasinf-linux.adb \
1996 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1997 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1998 g-sercom.adb
<g-sercom-linux.adb \
1999 system.ads
<system-linux-ia64.ads \
2000 $(ATOMICS_TARGET_PAIRS
)
2002 TOOLS_TARGET_PAIRS
= \
2003 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2004 indepsw.adb
<indepsw-gnu.adb
2006 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2009 THREADSLIB
=-lpthread
-lrt
2010 GNATLIB_SHARED
=gnatlib-shared-dual
2012 LIBRARY_VERSION
:= $(LIB_VERSION
)
2015 ifeq ($(strip $(filter-out ia64
% hp hpux
%,$(targ
))),)
2016 LIBGNAT_TARGET_PAIRS
= \
2017 a-intnam.ads
<a-intnam-hpux.ads \
2018 s-inmaop.adb
<s-inmaop-posix.adb \
2019 s-intman.adb
<s-intman-posix.adb \
2020 s-osinte.adb
<s-osinte-posix.adb \
2021 s-osinte.ads
<s-osinte-hpux.ads \
2022 s-osprim.adb
<s-osprim-posix.adb \
2023 s-taprop.adb
<s-taprop-posix.adb \
2024 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2025 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2026 system.ads
<system-hpux-ia64.ads \
2027 $(ATOMICS_TARGET_PAIRS
)
2029 TOOLS_TARGET_PAIRS
= \
2030 mlib-tgt-specific.adb
<mlib-tgt-specific-ia64-hpux.adb
2033 THREADSLIB
=-lpthread
2034 GNATLIB_SHARED
=gnatlib-shared-dual
2038 LIBRARY_VERSION
:= $(LIB_VERSION
)
2041 ifeq ($(strip $(filter-out alpha
% linux
%,$(arch
) $(osys
))),)
2042 LIBGNAT_TARGET_PAIRS
= \
2043 a-intnam.ads
<a-intnam-linux.ads \
2044 s-inmaop.adb
<s-inmaop-posix.adb \
2045 s-intman.adb
<s-intman-posix.adb \
2046 s-linux.ads
<s-linux-alpha.ads \
2047 s-osinte.ads
<s-osinte-linux.ads \
2048 s-osinte.adb
<s-osinte-posix.adb \
2049 s-osprim.adb
<s-osprim-posix.adb \
2050 s-taprop.adb
<s-taprop-linux.adb \
2051 s-tasinf.ads
<s-tasinf-linux.ads \
2052 s-tasinf.adb
<s-tasinf-linux.adb \
2053 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2054 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2055 g-trasym.ads
<g-trasym-unimplemented.ads \
2056 g-trasym.adb
<g-trasym-unimplemented.adb \
2057 system.ads
<system-linux-alpha.ads \
2058 $(ATOMICS_TARGET_PAIRS
)
2060 TOOLS_TARGET_PAIRS
= \
2061 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2062 indepsw.adb
<indepsw-gnu.adb
2064 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2067 THREADSLIB
=-lpthread
2068 GNATLIB_SHARED
=gnatlib-shared-dual
2069 LIBRARY_VERSION
:= $(LIB_VERSION
)
2072 ifeq ($(strip $(filter-out %x86_64 linux
%,$(arch
) $(osys
))),)
2073 LIBGNAT_TARGET_PAIRS
= \
2074 a-exetim.adb
<a-exetim-posix.adb \
2075 a-exetim.ads
<a-exetim-default.ads \
2076 a-intnam.ads
<a-intnam-linux.ads \
2077 a-numaux.adb
<a-numaux-x86.adb \
2078 a-numaux.ads
<a-numaux-x86.ads \
2079 s-inmaop.adb
<s-inmaop-posix.adb \
2080 s-intman.adb
<s-intman-posix.adb \
2081 s-linux.ads
<s-linux.ads \
2082 s-osinte.ads
<s-osinte-linux.ads \
2083 s-osinte.adb
<s-osinte-posix.adb \
2084 s-osprim.adb
<s-osprim-posix.adb \
2085 s-taprop.adb
<s-taprop-linux.adb \
2086 s-tasinf.ads
<s-tasinf-linux.ads \
2087 s-tasinf.adb
<s-tasinf-linux.adb \
2088 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2089 s-taspri.ads
<s-taspri-posix.ads \
2090 g-sercom.adb
<g-sercom-linux.adb \
2091 system.ads
<system-linux-x86_64.ads \
2092 $(ATOMICS_TARGET_PAIRS
)
2094 TOOLS_TARGET_PAIRS
= \
2095 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2096 indepsw.adb
<indepsw-gnu.adb
2098 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
2099 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2101 THREADSLIB
=-lpthread
-lrt
2102 GNATLIB_SHARED
=gnatlib-shared-dual
2104 LIBRARY_VERSION
:= $(LIB_VERSION
)
2107 ifeq ($(strip $(filter-out darwin
%,$(osys
))),)
2108 ifeq ($(strip $(filter-out %86,$(arch
))),)
2109 LIBGNAT_TARGET_PAIRS
= \
2110 a-intnam.ads
<a-intnam-darwin.ads \
2111 i-forbla.adb
<i-forbla-darwin.adb \
2112 s-inmaop.adb
<s-inmaop-posix.adb \
2113 s-intman.adb
<s-intman-susv3.adb \
2114 s-osinte.adb
<s-osinte-darwin.adb \
2115 s-osinte.ads
<s-osinte-darwin.ads \
2116 s-osprim.adb
<s-osprim-darwin.adb \
2117 s-taprop.adb
<s-taprop-posix.adb \
2118 s-taspri.ads
<s-taspri-posix.ads \
2119 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2120 g-trasym.ads
<g-trasym-unimplemented.ads \
2121 g-trasym.adb
<g-trasym-unimplemented.adb \
2122 a-numaux.ads
<a-numaux-x86.ads \
2123 a-numaux.adb
<a-numaux-x86.adb
2124 ifeq ($(strip $(MULTISUBDIR
)),/x86_64
)
2125 LIBGNAT_TARGET_PAIRS
+= \
2126 system.ads
<system-darwin-x86_64.ads
2128 LIBGNAT_TARGET_PAIRS
+= \
2129 system.ads
<system-darwin-x86.ads
2133 ifeq ($(strip $(filter-out %x86_64
,$(arch
))),)
2134 LIBGNAT_TARGET_PAIRS
= \
2135 a-intnam.ads
<a-intnam-darwin.ads \
2136 i-forbla.adb
<i-forbla-darwin.adb \
2137 s-inmaop.adb
<s-inmaop-posix.adb \
2138 s-intman.adb
<s-intman-susv3.adb \
2139 s-osinte.adb
<s-osinte-darwin.adb \
2140 s-osinte.ads
<s-osinte-darwin.ads \
2141 s-osprim.adb
<s-osprim-darwin.adb \
2142 s-taprop.adb
<s-taprop-posix.adb \
2143 s-taspri.ads
<s-taspri-posix.ads \
2144 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2145 g-trasym.ads
<g-trasym-unimplemented.ads \
2146 g-trasym.adb
<g-trasym-unimplemented.adb \
2147 a-numaux.ads
<a-numaux-x86.ads \
2148 a-numaux.adb
<a-numaux-x86.adb \
2149 $(ATOMICS_TARGET_PAIRS
)
2150 ifeq ($(strip $(MULTISUBDIR
)),/i386
)
2151 LIBGNAT_TARGET_PAIRS
+= \
2152 system.ads
<system-darwin-x86.ads
2154 LIBGNAT_TARGET_PAIRS
+= \
2155 system.ads
<system-darwin-x86_64.ads
2159 ifeq ($(strip $(filter-out powerpc
%,$(arch
))),)
2160 LIBGNAT_TARGET_PAIRS
= \
2161 a-intnam.ads
<a-intnam-darwin.ads \
2162 i-forbla.adb
<i-forbla-darwin.adb \
2163 s-inmaop.adb
<s-inmaop-posix.adb \
2164 s-intman.adb
<s-intman-posix.adb \
2165 s-osinte.adb
<s-osinte-darwin.adb \
2166 s-osinte.ads
<s-osinte-darwin.ads \
2167 s-osprim.adb
<s-osprim-posix.adb \
2168 s-taprop.adb
<s-taprop-posix.adb \
2169 s-taspri.ads
<s-taspri-posix.ads \
2170 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2171 a-numaux.ads
<a-numaux-darwin.ads \
2172 a-numaux.adb
<a-numaux-darwin.adb \
2173 g-trasym.ads
<g-trasym-unimplemented.ads \
2174 g-trasym.adb
<g-trasym-unimplemented.adb \
2175 system.ads
<system-darwin-ppc.ads
2178 TOOLS_TARGET_PAIRS
= \
2179 mlib-tgt-specific.adb
<mlib-tgt-specific-darwin.adb
2182 GNATLIB_SHARED
= gnatlib-shared-darwin
2183 SO_OPTS
= -Wl
,-flat_namespace
-shared-libgcc
2186 LIBRARY_VERSION
:= $(LIB_VERSION
)
2191 ifneq ($(EH_MECHANISM
),)
2192 LIBGNAT_TARGET_PAIRS
+= a-exexpr.adb
<a-exexpr
$(EH_MECHANISM
).adb
2193 EXTRA_LIBGNAT_SRCS
+=raise
$(EH_MECHANISM
).c
2194 EXTRA_LIBGNAT_OBJS
+=raise
$(EH_MECHANISM
).o
2197 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
2198 # explicitly already. The base files (a-except.ad?) are used only for building
2199 # the compiler and other basic tools.
2200 # These base versions lack Ada 2005 additions which would cause bootstrap
2201 # problems if included in the compiler and other basic tools.
2203 ifeq ($(filter a-except
%,$(LIBGNAT_TARGET_PAIRS
)),)
2204 LIBGNAT_TARGET_PAIRS
+= \
2205 a-except.ads
<a-except-2005.ads \
2206 a-except.adb
<a-except-2005.adb
2209 # The runtime library for gnat comprises two directories. One contains the
2210 # Ada source files that the compiler (gnat1) needs -- these files are listed
2211 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
2212 # corresponding .ali files for the parts written in Ada, libgnat.a for
2213 # the parts of the runtime written in C, and libgthreads.a for the pthreads
2214 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
2215 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
2216 # go into the directory. The pthreads emulation is built in the threads
2217 # subdirectory and copied.
2218 LIBGNAT_SRCS
= adadecode.c adadecode.h adaint.c adaint.h \
2219 argv.c cio.c cstreams.c errno.c exit.c cal.c ctrl_c.c env.c env.h \
2220 arit64.c raise.h raise.c sysdep.c aux-io.c init.c initialize.c \
2221 locales.c seh_init.c final.c tracebak.c tb-alvms.c tb-alvxw.c \
2222 tb-gcc.c expect.c mkdir.c socket.c gsocket.h targext.c
$(EXTRA_LIBGNAT_SRCS
)
2224 LIBGNAT_OBJS
= adadecode.o adaint.o argv.o cio.o cstreams.o ctrl_c.o \
2225 errno.o exit.o env.o raise.o sysdep.o aux-io.o init.o initialize.o \
2226 locales.o seh_init.o cal.o arit64.o final.o tracebak.o expect.o \
2227 mkdir.o socket.o targext.o
$(EXTRA_LIBGNAT_OBJS
)
2229 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2230 # the library installation will change and there will be a
2231 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2232 # from ADA_INCLUDE_SRCS.
2234 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2235 # the following include file:
2237 include $(fsrcdir
)/ada
/Makefile.rtl
2239 GNATRTL_LINEARALGEBRA_OBJS
= a-nlcoar.o a-nllcar.o a-nllrar.o a-nlrear.o \
2240 a-nucoar.o a-nurear.o i-forbla.o i-forlap.o s-gearop.o
2242 GNATRTL_OBJS
= $(GNATRTL_NONTASKING_OBJS
) $(GNATRTL_TASKING_OBJS
) \
2243 $(GNATRTL_LINEARALGEBRA_OBJS
) g-trasym.o memtrack.o
2245 # Default run time files
2248 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2249 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2250 sequenio.ads system.ads memtrack.adb \
2251 a-
[a-o
]*.adb a-
[p-z
]*.adb a-
[a-o
]*.ads a-
[p-z
]*.ads g-
*.ad? i-
*.ad? \
2252 s-
[a-o
]*.adb s-
[p-z
]*.adb s-
[a-o
]*.ads s-
[p-z
]*.ads
2254 LIBGNAT
=..
/$(RTSDIR
)/libgnat.a
2256 GCC_LINK
=$(CC
) $(GCC_LINK_FLAGS
) $(ADA_INCLUDES
)
2258 # when compiling the tools, the runtime has to be first on the path so that
2259 # it hides the runtime files lying with the rest of the sources
2260 ifeq ($(TOOLSCASE
),native
)
2261 vpath
%.ads ..
/$(RTSDIR
) ..
/
2262 vpath
%.adb ..
/$(RTSDIR
) ..
/
2263 vpath
%.c ..
/$(RTSDIR
) ..
/
2264 vpath
%.h ..
/$(RTSDIR
) ..
/
2267 # in the cross tools case, everything is compiled with the native
2268 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2269 ifeq ($(TOOLSCASE
),cross
)
2277 $(GNATMAKE
) -c
-b
$(ADA_INCLUDES
) \
2278 --GNATBIND
="$(GNATBIND)" --GCC
="$(CC) $(ALL_ADAFLAGS)" \
2279 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2280 gnatclean
-bargs
$(ADA_INCLUDES
) $(GNATBIND_FLAGS
)
2281 $(GNATLINK
) -v gnatcmd
-o ..
/..
/gnat
$(exeext
) \
2282 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2283 $(GNATLINK
) -v gnatchop
-o ..
/..
/gnatchop
$(exeext
) \
2284 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2285 $(GNATLINK
) -v gnatkr
-o ..
/..
/gnatkr
$(exeext
) \
2286 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2287 $(GNATLINK
) -v gnatls
-o ..
/..
/gnatls
$(exeext
) \
2288 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2289 $(GNATLINK
) -v gnatprep
-o ..
/..
/gnatprep
$(exeext
) \
2290 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2291 $(GNATLINK
) -v gnatxref
-o ..
/..
/gnatxref
$(exeext
) \
2292 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2293 $(GNATLINK
) -v gnatfind
-o ..
/..
/gnatfind
$(exeext
) \
2294 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2295 $(GNATLINK
) -v gnatname
-o ..
/..
/gnatname
$(exeext
) \
2296 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2297 $(GNATLINK
) -v gnatclean
-o ..
/..
/gnatclean
$(exeext
) \
2298 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2300 ..
/..
/gnatsym
$(exeext
):
2301 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatsym
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2302 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatsym
2303 $(GNATLINK
) -v gnatsym
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2305 ..
/..
/gnatdll
$(exeext
):
2306 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatdll
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2307 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatdll
2308 $(GNATLINK
) -v gnatdll
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2310 ..
/..
/vxaddr2line
$(exeext
): targext.o
2311 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vxaddr2line
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2312 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vxaddr2line
2313 $(GNATLINK
) -v vxaddr2line
-o
$@
--GCC
="$(GCC_LINK)" targext.o
$(CLIB
)
2315 gnatmake-re
: link.o targext.o
2316 $(GNATMAKE
) $(ADA_INCLUDES
) -u sdefault
--GCC
="$(CC) $(MOST_ADA_FLAGS)"
2317 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2318 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmake
2319 $(GNATLINK
) -v gnatmake
-o ..
/..
/gnatmake
$(exeext
) \
2320 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2322 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2323 # with the former version of gnatlink itself which cannot override itself.
2324 gnatlink-re
: link.o targext.o
2325 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlink
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2326 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlink
2327 $(GNATLINK
) -v gnatlink
-o ..
/..
/gnatlinknew
$(exeext
) \
2328 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2329 $(MV
) ..
/..
/gnatlinknew
$(exeext
) ..
/..
/gnatlink
$(exeext
)
2331 # Needs to be built with CC=gcc
2332 # Since the RTL should be built with the latest compiler, remove the
2333 # stamp target in the parent directory whenever gnat1 is rebuilt
2335 # Likewise for the tools
2336 ..
/..
/gnatmake
$(exeext
): $(P
) b_gnatm.o link.o targext.o
$(GNATMAKE_OBJS
)
2337 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatm.o
$(GNATMAKE_OBJS
) \
2340 ..
/..
/gnatlink
$(exeext
): $(P
) b_gnatl.o link.o targext.o
$(GNATLINK_OBJS
)
2341 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatl.o
$(GNATLINK_OBJS
) \
2344 ..
/stamp-gnatlib-
$(RTSDIR
):
2345 @if
[ ! -f stamp-gnatlib-
$(RTSDIR
) ] ; \
2347 $(ECHO
) You must first build the GNAT library
: make gnatlib
; \
2353 install-gnatlib
: ..
/stamp-gnatlib-
$(RTSDIR
)
2354 # Create the directory before deleting it, in case the directory is
2355 # a list of directories (as it may be on VMS). This ensures we are
2356 # deleting the right one.
2357 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2358 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2359 $(RMDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2360 $(RMDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2361 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2362 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2363 for file in
$(RTSDIR
)/*.ali
; do \
2364 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2366 -$(INSTALL_DATA
) $(RTSDIR
)/g-trasym
$(objext
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2367 -cd
$(RTSDIR
); for file in
*$(arext
);do \
2368 $(INSTALL_DATA
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2369 $(RANLIB_FOR_TARGET
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/$$file; \
2371 -$(foreach file
, $(EXTRA_ADALIB_FILES
), \
2372 $(INSTALL_DATA_DATE
) $(RTSDIR
)/$(file
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
) && \
2374 # Install the shared libraries, if any, using $(INSTALL) instead
2375 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2376 # for shared libraries on some targets, e.g. on HP-UX where the x
2377 # permission is required.
2378 # Also install the .dSYM directories if they exist (these directories
2379 # contain the debug information for the shared libraries on darwin)
2380 for file in gnat gnarl
; do \
2381 if
[ -f
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) ]; then \
2382 $(INSTALL
) $(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2383 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2385 if
[ -f
$(RTSDIR
)/lib
$${file}$(soext
) ]; then \
2386 $(LN_S
) lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2387 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/lib
$${file}$(soext
); \
2389 if
[ -d
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM
]; then \
2390 $(CP
) -r
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM \
2391 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2394 # This copy must be done preserving the date on the original file.
2395 for file in
$(RTSDIR
)/*.ad?
; do \
2396 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_INCLUDE_DIR
); \
2398 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.adb
2399 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.ads
2401 ..
/stamp-gnatlib2-
$(RTSDIR
):
2402 $(RM
) $(RTSDIR
)/s-
*.ali
2403 $(RM
) $(RTSDIR
)/s-
*$(objext
)
2404 $(RM
) $(RTSDIR
)/a-
*.ali
2405 $(RM
) $(RTSDIR
)/a-
*$(objext
)
2406 $(RM
) $(RTSDIR
)/*.ali
2407 $(RM
) $(RTSDIR
)/*$(objext
)
2408 $(RM
) $(RTSDIR
)/*$(arext
)
2409 $(RM
) $(RTSDIR
)/*$(soext
)
2410 touch ..
/stamp-gnatlib2-
$(RTSDIR
)
2411 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2413 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
2414 # successive target commands. Although the Gnu make documentation
2415 # implies this is true on all systems, I suspect it may not be, So care
2416 # has been taken to allow a sed script to look for ";)" and substitue
2417 # for ";" the appropriate character in the range of lines below
2418 # beginning with "GNULLI Begin" and ending with "GNULLI End"
2420 # GNULLI Begin ###########################################################
2422 ..
/stamp-gnatlib1-
$(RTSDIR
): Makefile ..
/stamp-gnatlib2-
$(RTSDIR
)
2425 $(CHMOD
) u
+w
$(RTSDIR
)
2426 # Copy target independent sources
2427 $(foreach f
,$(ADA_INCLUDE_SRCS
) $(LIBGNAT_SRCS
), \
2428 $(LN_S
) $(fsrcpfx
)ada
/$(f
) $(RTSDIR
) ;) true
2429 # Remove files to be replaced by target dependent sources
2430 $(RM
) $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2431 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
))))
2432 for f in
$(RTSDIR
)/*-*-*.ads
$(RTSDIR
)/*-*-*.adb
; do \
2434 $(RTSDIR
)/s-stratt-
*) ;; \
2438 # Copy new target dependent sources
2439 $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2440 $(LN_S
) $(fsrcpfx
)ada
/$(word 2,$(subst <, ,$(PAIR
))) \
2441 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
)));)
2442 # Copy generated target dependent sources
2443 $(RM
) $(RTSDIR
)/s-oscons.ads
2444 (cd
$(RTSDIR
); $(LN_S
) ..
/s-oscons.ads s-oscons.ads
)
2445 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2446 touch ..
/stamp-gnatlib1-
$(RTSDIR
)
2448 # GNULLI End #############################################################
2450 # Don't use semicolon separated shell commands that involve list expansions.
2451 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
2452 # line lengths in excess of 256 characters.
2453 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
2454 # is guaranteed to overflow the buffer.
2456 gnatlib
: ..
/stamp-gnatlib1-
$(RTSDIR
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2457 $(MAKE
) -C
$(RTSDIR
) \
2458 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2459 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2460 INCLUDES
="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2461 CFLAGS
="$(GNATLIBCFLAGS_FOR_C)" \
2462 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2464 -f ..
/Makefile
$(LIBGNAT_OBJS
)
2465 $(MAKE
) -C
$(RTSDIR
) \
2466 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2467 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2469 CFLAGS
="$(GNATLIBCFLAGS)" \
2470 ADAFLAGS
="$(GNATLIBFLAGS)" \
2471 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2475 $(RM
) $(RTSDIR
)/libgnat
$(arext
) $(RTSDIR
)/libgnarl
$(arext
)
2476 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnat
$(arext
) \
2477 $(addprefix $(RTSDIR
)/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
2478 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnat
$(arext
)
2479 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnarl
$(arext
) \
2480 $(addprefix $(RTSDIR
)/,$(GNATRTL_TASKING_OBJS
))
2481 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnarl
$(arext
)
2482 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnala
$(arext
) \
2483 $(addprefix $(RTSDIR
)/,$(GNATRTL_LINEARALGEBRA_OBJS
))
2484 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnala
$(arext
)
2485 ifeq ($(GMEM_LIB
),gmemlib
)
2486 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgmem
$(arext
) \
2487 $(RTSDIR
)/memtrack.o
2488 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgmem
$(arext
)
2490 $(CHMOD
) a-wx
$(RTSDIR
)/*.ali
2491 touch ..
/stamp-gnatlib-
$(RTSDIR
)
2493 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2494 gnatlib-shared-default
:
2495 $(MAKE
) $(FLAGS_TO_PASS
) \
2496 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2497 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2498 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2499 MULTISUBDIR
="$(MULTISUBDIR)" \
2500 THREAD_KIND
="$(THREAD_KIND)" \
2502 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2503 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
$(GNATLIBCFLAGS
) \
2504 $(TARGET_LIBGCC2_CFLAGS
) \
2505 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2506 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2507 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2509 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
$(GNATLIBCFLAGS
) \
2510 $(TARGET_LIBGCC2_CFLAGS
) \
2511 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2512 $(GNATRTL_TASKING_OBJS
) \
2513 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2515 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2517 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2520 gnatlib-shared-dual
:
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)" \
2527 gnatlib-shared-default
2528 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2529 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2530 $(MAKE
) $(FLAGS_TO_PASS
) \
2531 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2532 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2533 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2534 MULTISUBDIR
="$(MULTISUBDIR)" \
2535 THREAD_KIND
="$(THREAD_KIND)" \
2537 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2539 gnatlib-shared-dual-win32
:
2540 $(MAKE
) $(FLAGS_TO_PASS
) \
2541 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2542 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2543 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2544 MULTISUBDIR
="$(MULTISUBDIR)" \
2545 THREAD_KIND
="$(THREAD_KIND)" \
2546 gnatlib-shared-win32
2547 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2548 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2549 $(MAKE
) $(FLAGS_TO_PASS
) \
2550 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2551 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2552 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2553 MULTISUBDIR
="$(MULTISUBDIR)" \
2554 THREAD_KIND
="$(THREAD_KIND)" \
2556 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2558 # ??? we need to add the option to support auto-import of arrays/records to
2559 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2560 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2562 gnatlib-shared-win32
:
2563 $(MAKE
) $(FLAGS_TO_PASS
) \
2564 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2565 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2566 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2567 MULTISUBDIR
="$(MULTISUBDIR)" \
2568 THREAD_KIND
="$(THREAD_KIND)" \
2570 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2571 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
-shared-libgcc \
2572 $(TARGET_LIBGCC2_CFLAGS
) \
2573 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2574 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2575 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) $(MISCLIB
)
2576 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
-shared-libgcc \
2577 $(TARGET_LIBGCC2_CFLAGS
) \
2578 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2579 $(GNATRTL_TASKING_OBJS
) \
2580 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2581 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2583 gnatlib-shared-darwin
:
2584 $(MAKE
) $(FLAGS_TO_PASS
) \
2585 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2586 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2587 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) -fno-common" \
2588 MULTISUBDIR
="$(MULTISUBDIR)" \
2589 THREAD_KIND
="$(THREAD_KIND)" \
2591 $(RM
) $(RTSDIR
)/libgnat
$(soext
) $(RTSDIR
)/libgnarl
$(soext
)
2592 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
2593 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2594 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2596 -Wl
,-install_name
,@rpath
/libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2598 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
2599 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2600 $(GNATRTL_TASKING_OBJS
) \
2602 -Wl
,-install_name
,@rpath
/libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2603 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2604 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2606 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2608 cd
$(RTSDIR
); dsymutil libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2609 cd
$(RTSDIR
); dsymutil libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2612 $(MAKE
) $(FLAGS_TO_PASS
) \
2613 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2614 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2615 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2616 MULTISUBDIR
="$(MULTISUBDIR)" \
2617 THREAD_KIND
="$(THREAD_KIND)" \
2619 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2621 ..
/..
/gnatsym
-s SYMVEC_
$$$$.opt \
2622 $(LIBGNAT_OBJS
) $(GNATRTL_NONTASKING_OBJS
) && \
2623 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2624 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) libgnat.a \
2625 sys\
$$library:trace.exe \
2626 --for-linker
=/noinform \
2627 --for-linker
=SYMVEC_
$$$$.opt \
2628 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2630 ..
/..
/gnatsym
-s SYMVEC_
$$$$.opt \
2631 $(GNATRTL_TASKING_OBJS
) && \
2632 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2633 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2634 libgnarl.a libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2635 sys\
$$library:trace.exe \
2636 --for-linker
=/noinform \
2637 --for-linker
=SYMVEC_
$$$$.opt \
2638 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2641 $(MAKE
) $(FLAGS_TO_PASS
) \
2642 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2643 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2644 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2645 MULTISUBDIR
="$(MULTISUBDIR)" \
2646 THREAD_KIND
="$(THREAD_KIND)" \
2647 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" \
2651 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="" \
2652 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2653 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2654 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2655 $(MAKE
) $(FLAGS_TO_PASS
) \
2657 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2658 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2659 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2660 MULTISUBDIR
="$(MULTISUBDIR)" \
2661 THREAD_KIND
="$(THREAD_KIND)" \
2662 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2665 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="-gcc" \
2666 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2667 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2668 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2669 $(MAKE
) $(FLAGS_TO_PASS
) \
2670 EH_MECHANISM
="-gcc" \
2671 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2672 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2673 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2674 MULTISUBDIR
="$(MULTISUBDIR)" \
2675 THREAD_KIND
="$(THREAD_KIND)" \
2676 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2678 # .s files for cross-building
2680 make
$(GNAT1_ADA_OBJS
) CC
="gcc -B../stage1/" CFLAGS
="-S -gnatp"
2682 # Compiling object files from source files.
2684 # Note that dependencies on obstack.h are not written
2685 # because that file is not part of GCC.
2686 # Dependencies on gvarargs.h are not written
2687 # because all that file does, when not compiling with GCC,
2688 # is include the system varargs.h.
2690 b_gnatl.c
: $(GNATLINK_OBJS
)
2691 $(GNATBIND
) -C
$(ADA_INCLUDES
) -o b_gnatl.c gnatlink.ali
2692 b_gnatl.o
: b_gnatl.c
2694 b_gnatm.c
: $(GNATMAKE_OBJS
)
2695 $(GNATBIND
) -C
$(ADA_INCLUDES
) -o b_gnatm.c gnatmake.ali
2696 b_gnatm.o
: b_gnatm.c
2698 ADA_INCLUDE_DIR
= $(libsubdir
)/adainclude
2699 ADA_RTL_OBJ_DIR
= $(libsubdir
)/adalib
2701 # force no sibling call optimization on s-traceb.o so the number of stack
2702 # frames to be skipped when computing a call chain is not modified by
2703 # optimization. However we can do that only when building the runtime
2704 # (not the compiler) because the -fno-optimize-sibling-calls option exists
2705 # only in GCC 3 and above.
2707 ifneq (,$(findstring xgcc
,$(CC
)))
2708 NO_SIBLING_ADAFLAGS
=-fno-optimize-sibling-calls
2710 NO_SIBLING_ADAFLAGS
=
2713 s-traceb.o
: s-traceb.adb
2714 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) \
2715 $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) \
2718 # force debugging information on s-tasdeb.o so that it is always
2719 # possible to set conditional breakpoints on tasks.
2721 s-tasdeb.o
: s-tasdeb.adb s-tasdeb.ads
2722 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2725 # force no function reordering on a-except.o because of the exclusion bounds
2726 # mechanism (see the source file for more detailed information).
2728 NO_REORDER_ADAFLAGS
=-fno-toplevel-reorder
2730 # force debugging information on a-except.o so that it is always
2731 # possible to set conditional breakpoints on exceptions.
2732 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2734 a-except.o
: a-except.adb a-except.ads
2735 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O1
-fno-inline \
2736 $(NO_REORDER_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2738 # compile s-except.o without optimization and with debug info to let the
2739 # debugger set breakpoints and inspect subprogram parameters on exception
2742 s-except.o
: s-except.adb s-except.ads
2743 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2746 # force debugging information on s-assert.o so that it is always
2747 # possible to set breakpoint on assert failures.
2749 s-assert.o
: s-assert.adb s-assert.ads a-except.ads
2750 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O2
$(ADA_INCLUDES
) \
2753 adadecode.o
: adadecode.c adadecode.h
2757 deftarg.o
: deftarg.c
2759 exit.o
: adaint.h exit.c
2763 locales.o
: locales.c
2765 socket.o
: socket.c gsocket.h
2767 raise-gcc.o
: raise-gcc.c raise.h
2768 raise.o
: raise.c raise.h
2769 vx_stack_info.o
: vx_stack_info.c
2772 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2773 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2775 init.o
: init.c adaint.h raise.h
2776 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2777 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2779 initialize.o
: initialize.c raise.h
2780 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2781 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2783 targext.o
: targext.c
2784 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2785 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
2788 # Need to keep the frame pointer in this file to pop the stack properly on
2790 tracebak.o
: tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2791 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
2792 $(INCLUDES
) -fno-omit-frame-pointer
$< $(OUTPUT_OPTION
)
2794 # In GNU Make, ignore whether `stage*' exists.
2795 .PHONY
: stage1 stage2 stage3 stage4
clean realclean TAGS bootstrap
2796 .PHONY
: risky-stage1 risky-stage2 risky-stage3 risky-stage4