1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2011 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 3, or (at your option)
11 #GCC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING3. If not see
18 #<http://www.gnu.org/licenses/>.
20 # The makefile built from this file lives in the language subdirectory.
21 # Its purpose is to provide support for:
23 # 1) recursion where necessary, and only then (building .o's), and
24 # 2) building and debugging cc1 from the language subdirectory, and
27 # The parent makefile handles all other chores, with help from the
28 # language makefile fragment, of course.
30 # The targets for external use are:
31 # all, TAGS, ???mostlyclean, ???clean.
33 # This makefile will only work with Gnu make.
34 # The rules are written assuming a minimum subset of tools are available:
37 # MAKE: Only Gnu make will work.
38 # MV: Must accept (at least) one, maybe wildcard, source argument,
39 # a file or directory destination, and support creation/
40 # modification date preservation. Gnu mv -f works.
41 # RM: Must accept an arbitrary number of space separated file
42 # arguments, or one wildcard argument. Gnu rm works.
43 # RMDIR: Must delete a directory and all its contents. Gnu rm -rf works.
44 # ECHO: Must support command line redirection. Any Unix-like
45 # shell will typically provide this, otherwise a custom version
46 # is trivial to write.
48 # MKDIR: Gnu mkdir works.
49 # CHMOD: Gnu chmod works.
50 # true: Does nothing and returns a normal successful return code.
51 # pwd: Prints the current directory on stdout.
52 # cd: Change directory.
55 # BISON: Gnu bison works.
56 # FLEX: Gnu flex works.
57 # Other miscellaneous tools for obscure targets.
59 # Suppress smart makes who think they know how to automake Yacc files
62 # Variables that exist for you to override.
63 # See below for how to change them for certain systems.
65 # Various ways of specifying flags for compilations:
66 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
67 # BOOT_CFLAGS is the value of CFLAGS to pass
68 # to the stage2 and stage3 compilations
70 BOOT_CFLAGS
= -O
$(CFLAGS
)
71 # These exists to be overridden by the t-* files, respectively.
92 RANLIB_FLAGS
= @ranlib_flags@
96 COMPILER_FLAGS
= $(CFLAGS
)
99 PWD_COMMAND
= $${PWDCMD-pwd
}
100 # How to copy preserving the date
101 INSTALL_DATA_DATE
= cp
-p
105 GNATBIND_FLAGS
= -static
-x
107 ADAFLAGS
= -W
-Wall
-gnatpg
-gnata
108 SOME_ADAFLAGS
=-gnata
109 FORCE_DEBUG_ADAFLAGS
= -g
110 NO_SIBLING_ADAFLAGS
=-fno-optimize-sibling-calls
111 NO_REORDER_ADAFLAGS
=-fno-toplevel-reorder
112 GNATLIBFLAGS
= -gnatpg
-nostdinc
113 GNATLIBCFLAGS
= -g
-O2
114 # Pretend that _Unwind_GetIPInfo is available for the target by default. This
115 # should be autodetected during the configuration of libada and passed down to
116 # here, but we need something for --disable-libada and hope for the best.
117 GNATLIBCFLAGS_FOR_C
= $(GNATLIBCFLAGS
) $(TARGET_LIBGCC2_CFLAGS
) -fexceptions \
118 -DIN_RTS
-DHAVE_GETIPINFO
119 ALL_ADAFLAGS
= $(CFLAGS
) $(ADA_CFLAGS
) $(ADAFLAGS
)
120 MOST_ADAFLAGS
= $(CFLAGS
) $(ADA_CFLAGS
) $(SOME_ADAFLAGS
)
125 SYMDEPS
= $(LIBINTL_DEP
)
126 OUTPUT_OPTION
= @OUTPUT_OPTION@
135 # Define this as & to perform parallel make on a Sequent.
136 # Note that this has some bugs, and it seems currently necessary
137 # to compile all the gen* files first by hand to avoid erroneous results.
140 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
142 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
143 GCC_CFLAGS
= $(INTERNAL_CFLAGS
) $(T_CFLAGS
) $(CFLAGS
)
145 # Tools to use when building a cross-compiler.
146 # These are used because `configure' appends `cross-make'
147 # to the makefile when making a cross-compiler.
149 # We don't use cross-make. Instead we use the tools from the build tree,
150 # if they are available.
151 # program_transform_name and objdir are set by configure.in.
152 program_transform_name
=
155 target_alias
=@target_alias@
157 xmake_file
= @xmake_file@
158 tmake_file
= @tmake_file@
159 host_canonical
=@host@
160 target_cpu_default
=@target_cpu_default@
161 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
162 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
164 # Directory where sources are, from where we are.
165 VPATH
= $(srcdir)/ada
167 fsrcdir
:= $(shell cd
$(srcdir);${PWD_COMMAND})
168 fsrcpfx
:= $(shell cd
$(srcdir);${PWD_COMMAND})/
169 fcurdir
:= $(shell ${PWD_COMMAND})
170 fcurpfx
:= $(shell ${PWD_COMMAND})/
172 # Top build directory, relative to here.
175 # Internationalization library.
177 LIBINTL_DEP
= @LIBINTL_DEP@
179 # Any system libraries needed just for GNAT.
180 SYSLIBS
= @GNAT_LIBEXC@
182 # List of extra object files linked in with various programs.
183 EXTRA_GNATTOOLS_OBJS
= ..
/..
/libcommon-target.a ..
/..
/libcommon.a \
184 ..
/..
/..
/libcpp
/libcpp.a
186 # List extra gnattools
189 # List of target dependent sources, overridden below as necessary
192 # Type of tools build we are doing; default is not compiling tools.
197 RTSDIR
= rts
$(subst /,_
,$(MULTISUBDIR
))
199 # Link flags used to build gnat tools. By default we prefer to statically
200 # link with libgcc to avoid a dependency on shared libgcc (which is tricky
201 # to deal with as it may conflict with the libgcc provided by the system).
202 GCC_LINK_FLAGS
=-static-libgcc
204 # End of variables for you to override.
208 # This tells GNU Make version 3 not to put all variables in the environment.
212 ifneq ($(tmake_file
),)
213 include $(tmake_file
)
217 ifneq ($(xmake_file
),)
218 include $(xmake_file
)
221 # Now figure out from those variables how to compile and link.
223 all.indirect
: Makefile ..
/gnat1
$(exeext
)
225 # IN_GCC distinguishes between code compiled into GCC itself and other
226 # programs built during a bootstrap.
227 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
228 # compiler which does not use the native libraries and headers.
229 INTERNAL_CFLAGS
= @CROSS@
-DIN_GCC
231 # This is the variable actually used when we compile.
232 LOOSE_CFLAGS
= `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
233 ALL_CFLAGS
= $(INTERNAL_CFLAGS
) $(T_CFLAGS
) $(LOOSE_CFLAGS
)
236 ALL_CPPFLAGS
= $(CPPFLAGS
)
238 # Used with $(COMPILER).
239 ALL_COMPILERFLAGS
= $(ALL_CFLAGS
)
241 # This is where we get libiberty.a from.
242 LIBIBERTY
= ..
/..
/libiberty
/libiberty.a
244 # How to link with both our special library facilities
245 # and the system's installed libraries.
246 LIBS
= $(LIBINTL
) $(LIBIBERTY
) $(SYSLIBS
)
247 LIBDEPS
= $(LIBINTL_DEP
) $(LIBIBERTY
)
248 # Default is no TGT_LIB; one might be passed down or something
250 TOOLS_LIBS
= $(EXTRA_GNATTOOLS_OBJS
) targext.o link.o
$(LIBGNAT
) $(LIBINTL
) ..
/..
/..
/libiberty
/libiberty.a
$(SYSLIBS
) $(TGT_LIB
)
252 # Convert the target variable into a space separated list of architecture,
253 # manufacturer, and operating system and assign each of those to its own
256 host
:=$(subst -, ,$(host_canonical
))
257 targ
:=$(subst -, ,$(target
))
258 arch
:=$(word 1,$(targ
))
259 ifeq ($(words $(targ
)),2)
261 osys
:=$(word 2,$(targ
))
263 manu
:=$(word 2,$(targ
))
264 osys
:=$(word 3,$(targ
))
267 # Specify the directories to be searched for header files.
268 # Both . and srcdir are used, in that order,
269 # so that tm.h and config.h will be found in the compilation
270 # subdirectory rather than in the source directory.
271 INCLUDES
= -I-
-I.
-I..
-I
$(srcdir)/ada
-I
$(srcdir) -I
$(srcdir)/config \
272 -I
$(srcdir)/..
/include
274 ADA_INCLUDES
= -I-
-I.
-I
$(srcdir)/ada
276 INCLUDES_FOR_SUBDIR
= -I.
-I..
-I..
/..
-I
$(fsrcdir
)/ada \
277 -I
$(fsrcdir
)/..
/include -I
$(fsrcdir
)
278 ADA_INCLUDES_FOR_SUBDIR
= -I.
-I
$(fsrcdir
)/ada
280 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
283 # Say how to compile Ada programs.
284 .SUFFIXES
: .ada .adb .ads .asm
286 # Always use -I$(srcdir)/config when compiling.
288 $(CC
) -c
-x assembler
$< $(OUTPUT_OPTION
)
291 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
292 $(INCLUDES
) $< $(OUTPUT_OPTION
)
295 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
298 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
300 # how to regenerate this file
301 Makefile
: ..
/config.status
$(srcdir)/ada
/gcc-interface
/Makefile.in
$(srcdir)/ada
/Makefile.in
$(srcdir)/version.c
303 LANGUAGES
="$(CONFIG_LANGUAGES)" \
305 CONFIG_FILES
="ada/gcc-interface/Makefile ada/Makefile" $(SHELL
) config.status
307 # This tells GNU make version 3 not to export all the variables
308 # defined in this file into the environment.
311 # Lists of files for various purposes.
313 GNATLINK_OBJS
= gnatlink.o \
314 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
315 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
316 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
317 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
318 types.o validsw.o widechar.o
320 GNATMAKE_OBJS
= a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o \
321 atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o errout.o \
322 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
323 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
324 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
325 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o \
326 output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o \
327 prj-conf.o prj-pp.o prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o \
328 prj-proc.o prj-strt.o prj-tree.o prj-util.o restrict.o rident.o s-exctab.o \
329 s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o \
330 s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o \
331 sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o \
332 switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o uintp.o \
333 uname.o urealp.o usage.o widechar.o \
334 $(EXTRA_GNATMAKE_OBJS
)
336 # Make arch match the current multilib so that the RTS selection code
337 # picks up the right files. For a given target this must be coherent
338 # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*.
340 ifeq ($(strip $(filter-out %x86_64
, $(arch
))),)
341 ifeq ($(strip $(MULTISUBDIR
)),/32)
346 # ???: handle more multilib targets
348 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
349 # The members of each pair must be separated by a '<' and no whitespace.
350 # Each pair must be separated by some amount of whitespace from the following
355 LIBGNAT_TARGET_PAIRS
= \
356 a-intnam.ads
<a-intnam-dummy.ads \
357 s-inmaop.adb
<s-inmaop-dummy.adb \
358 s-intman.adb
<s-intman-dummy.adb \
359 s-osinte.ads
<s-osinte-dummy.ads \
360 s-osprim.adb
<s-osprim-posix.adb \
361 s-taprop.adb
<s-taprop-dummy.adb \
362 s-taspri.ads
<s-taspri-dummy.ads
364 # When using the GCC exception handling mechanism, we need to use an
365 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
369 # Default shared object option. Note that we rely on the fact that the "soname"
370 # option will always be present and last in this flag, so that we can have
371 # $(SO_OPTS)libgnat-x.xx
373 SO_OPTS
= -Wl
,-soname
,
375 # Default gnatlib-shared target.
376 # By default, equivalent to gnatlib.
377 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
378 # target when supported.
379 GNATLIB_SHARED
= gnatlib
381 # default value for gnatmake's target dependent file
384 # By default, build socket support units. On platforms that do not support
385 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
386 # to LIBGNAT_TARGET_PAIRS.
388 GNATRTL_SOCKETS_OBJS
= g-soccon
$(objext
) g-socket
$(objext
) g-socthi
$(objext
) \
389 g-soliop
$(objext
) g-sothco
$(objext
)
391 DUMMY_SOCKETS_TARGET_PAIRS
= \
392 g-socket.adb
<g-socket-dummy.adb \
393 g-socket.ads
<g-socket-dummy.ads \
394 g-socthi.adb
<g-socthi-dummy.adb \
395 g-socthi.ads
<g-socthi-dummy.ads \
396 g-sothco.adb
<g-sothco-dummy.adb \
397 g-sothco.ads
<g-sothco-dummy.ads
399 # On platform where atomic increment/decrement operations are supported
400 # special version of Ada.Strings.Unbounded package can be used.
402 ATOMICS_TARGET_PAIRS
+= \
403 a-stunau.adb
<a-stunau-shared.adb \
404 a-suteio.adb
<a-suteio-shared.adb \
405 a-strunb.ads
<a-strunb-shared.ads \
406 a-strunb.adb
<a-strunb-shared.adb \
407 a-stwiun.adb
<a-stwiun-shared.adb \
408 a-stwiun.ads
<a-stwiun-shared.ads \
409 a-swunau.adb
<a-swunau-shared.adb \
410 a-swuwti.adb
<a-swuwti-shared.adb \
411 a-stzunb.adb
<a-stzunb-shared.adb \
412 a-stzunb.ads
<a-stzunb-shared.ads \
413 a-szunau.adb
<a-szunau-shared.adb \
414 a-szuzti.adb
<a-szuzti-shared.adb \
415 s-atocou.adb
<s-atocou-builtin.adb
417 LIB_VERSION
= $(strip $(shell grep
' Library_Version :' $(fsrcpfx
)ada
/gnatvsn.ads | sed
-e
's/.*"\(.*\)".*/\1/'))
419 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
420 # $(strip STRING) removes leading and trailing spaces from STRING.
421 # If what's left is null then it's a match.
423 ifeq ($(strip $(filter-out m68k
% wrs vx
%,$(targ
))),)
424 LIBGNAT_TARGET_PAIRS
= \
425 a-intnam.ads
<a-intnam-vxworks.ads \
426 a-numaux.ads
<a-numaux-vxworks.ads \
427 s-inmaop.adb
<s-inmaop-vxworks.adb \
428 s-interr.adb
<s-interr-hwint.adb \
429 s-intman.ads
<s-intman-vxworks.ads \
430 s-intman.adb
<s-intman-vxworks.adb \
431 s-osinte.adb
<s-osinte-vxworks.adb \
432 s-osinte.ads
<s-osinte-vxworks.ads \
433 s-osprim.adb
<s-osprim-vxworks.adb \
434 s-parame.ads
<s-parame-vxworks.ads \
435 s-parame.adb
<s-parame-vxworks.adb \
436 s-stchop.ads
<s-stchop-limit.ads \
437 s-stchop.adb
<s-stchop-vxworks.adb \
438 s-taprop.adb
<s-taprop-vxworks.adb \
439 s-tasinf.ads
<s-tasinf-vxworks.ads \
440 s-taspri.ads
<s-taspri-vxworks.ads \
441 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
442 s-vxwork.ads
<s-vxwork-m68k.ads \
443 g-socthi.ads
<g-socthi-vxworks.ads \
444 g-socthi.adb
<g-socthi-vxworks.adb \
445 g-stsifd.adb
<g-stsifd-sockets.adb \
446 g-trasym.ads
<g-trasym-unimplemented.ads \
447 g-trasym.adb
<g-trasym-unimplemented.adb \
448 system.ads
<system-vxworks-m68k.ads
450 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb
452 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
453 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
455 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
456 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
458 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
459 LIBGNAT_TARGET_PAIRS
+= \
460 s-traces.adb
<s-traces-default.adb \
461 s-tratas.adb
<s-tratas-default.adb \
462 s-trafor.adb
<s-trafor-default.adb \
463 s-trafor.ads
<s-trafor-default.ads \
464 s-tfsetr.adb
<s-tfsetr-vxworks.adb
468 ifeq ($(strip $(filter-out powerpc
% wrs vxworks
,$(targ
))),)
469 LIBGNAT_TARGET_PAIRS
= \
470 a-intnam.ads
<a-intnam-vxworks.ads \
471 a-numaux.ads
<a-numaux-vxworks.ads \
472 s-inmaop.adb
<s-inmaop-vxworks.adb \
473 s-intman.ads
<s-intman-vxworks.ads \
474 s-intman.adb
<s-intman-vxworks.adb \
475 s-osinte.ads
<s-osinte-vxworks.ads \
476 s-osinte.adb
<s-osinte-vxworks.adb \
477 s-osprim.adb
<s-osprim-vxworks.adb \
478 s-parame.ads
<s-parame-vxworks.ads \
479 s-parame.adb
<s-parame-vxworks.adb \
480 s-stchop.ads
<s-stchop-limit.ads \
481 s-stchop.adb
<s-stchop-vxworks.adb \
482 s-taprop.adb
<s-taprop-vxworks.adb \
483 s-tasinf.ads
<s-tasinf-vxworks.ads \
484 s-taspri.ads
<s-taspri-vxworks.ads \
485 s-vxwork.ads
<s-vxwork-ppc.ads \
486 g-socthi.ads
<g-socthi-vxworks.ads \
487 g-socthi.adb
<g-socthi-vxworks.adb \
488 g-stsifd.adb
<g-stsifd-sockets.adb \
489 g-trasym.ads
<g-trasym-unimplemented.ads \
490 g-trasym.adb
<g-trasym-unimplemented.adb \
491 $(ATOMICS_TARGET_PAIRS
)
494 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
495 indepsw.adb
<indepsw-gnu.adb
497 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
498 LIBGNAT_TARGET_PAIRS
+= \
499 s-traces.adb
<s-traces-default.adb \
500 s-trafor.adb
<s-trafor-default.adb \
501 s-trafor.ads
<s-trafor-default.ads \
502 s-tratas.adb
<s-tratas-default.adb \
503 s-tfsetr.adb
<s-tfsetr-vxworks.adb
506 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
507 LIBGNAT_TARGET_PAIRS
+= \
508 s-vxwext.ads
<s-vxwext-rtp.ads \
509 s-vxwext.adb
<s-vxwext-rtp.adb \
510 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
511 system.ads
<system-vxworks-ppc-rtp.ads
513 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
515 ifeq ($(strip $(filter-out rtp-smp
,$(THREAD_KIND
))),)
516 LIBGNAT_TARGET_PAIRS
+= \
517 s-vxwext.ads
<s-vxwext-rtp.ads \
518 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
519 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
520 system.ads
<system-vxworks-ppc-rtp.ads
522 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
523 EXTRA_GNATRTL_TASKING_OBJS
=affinity.o
525 ifeq ($(strip $(filter-out kernel-smp
,$(THREAD_KIND
))),)
526 LIBGNAT_TARGET_PAIRS
+= \
527 s-interr.adb
<s-interr-hwint.adb \
528 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
529 s-vxwext.ads
<s-vxwext-kernel.ads \
530 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
531 system.ads
<system-vxworks-ppc-kernel.ads
534 EXTRA_GNATRTL_TASKING_OBJS
=affinity.o
536 LIBGNAT_TARGET_PAIRS
+= \
537 s-interr.adb
<s-interr-hwint.adb \
538 s-tpopsp.adb
<s-tpopsp-vxworks.adb
540 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
542 LIBGNAT_TARGET_PAIRS
+= \
543 s-vxwext.ads
<s-vxwext-kernel.ads \
544 s-vxwext.adb
<s-vxwext-kernel.adb \
545 system.ads
<system-vxworks-ppc-kernel.ads
547 LIBGNAT_TARGET_PAIRS
+= \
548 system.ads
<system-vxworks-ppc.ads
551 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
555 EXTRA_GNATRTL_TASKING_OBJS
+= s-vxwork.o s-vxwext.o
557 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
558 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
562 ifeq ($(strip $(filter-out powerpc
% wrs vxworksae
,$(targ
))),)
563 # target pairs for vthreads runtime
564 LIBGNAT_TARGET_PAIRS
= \
565 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
566 a-intnam.ads
<a-intnam-vxworks.ads \
567 a-numaux.ads
<a-numaux-vxworks.ads \
568 g-io.adb
<g-io-vxworks-ppc-cert.adb \
569 g-io.ads
<g-io-vxworks-ppc-cert.ads \
570 s-inmaop.adb
<s-inmaop-vxworks.adb \
571 s-interr.adb
<s-interr-hwint.adb \
572 s-intman.ads
<s-intman-vxworks.ads \
573 s-intman.adb
<s-intman-vxworks.adb \
574 s-osinte.adb
<s-osinte-vxworks.adb \
575 s-osinte.ads
<s-osinte-vxworks.ads \
576 s-osprim.adb
<s-osprim-vxworks.adb \
577 s-parame.ads
<s-parame-ae653.ads \
578 s-parame.adb
<s-parame-vxworks.adb \
579 s-taprop.adb
<s-taprop-vxworks.adb \
580 s-tasinf.ads
<s-tasinf-vxworks.ads \
581 s-taspri.ads
<s-taspri-vxworks.ads \
582 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
583 s-vxwext.adb
<s-vxwext-noints.adb \
584 s-vxwext.ads
<s-vxwext-vthreads.ads \
585 s-vxwork.ads
<s-vxwork-ppc.ads \
586 g-trasym.ads
<g-trasym-unimplemented.ads \
587 g-trasym.adb
<g-trasym-unimplemented.adb \
588 system.ads
<system-vxworks-ppc-vthread.ads \
589 $(ATOMICS_TARGET_PAIRS
)
592 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
593 indepsw.adb
<indepsw-gnu.adb
595 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
596 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
598 # Extra pairs for the vthreads runtime
599 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
600 LIBGNAT_TARGET_PAIRS
+= \
601 s-thread.adb
<s-thread-ae653.adb \
602 $(DUMMY_SOCKETS_TARGET_PAIRS
)
604 GNATRTL_SOCKETS_OBJS
=
605 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
607 LIBGNAT_TARGET_PAIRS
+= \
608 g-socthi.ads
<g-socthi-vxworks.ads \
609 g-socthi.adb
<g-socthi-vxworks.adb \
610 g-stsifd.adb
<g-stsifd-sockets.adb
613 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
614 LIBGNAT_TARGET_PAIRS
+= \
615 s-traces.adb
<s-traces-default.adb \
616 s-trafor.adb
<s-trafor-default.adb \
617 s-trafor.ads
<s-trafor-default.ads \
618 s-tratas.adb
<s-tratas-default.adb \
619 s-tfsetr.adb
<s-tfsetr-vxworks.adb
624 ifeq ($(strip $(filter-out powerpc
% wrs vxworksmils
,$(targ
))),)
625 # target pairs for vthreads runtime
626 LIBGNAT_TARGET_PAIRS
= \
627 a-elchha.adb
<a-elchha-vx6-raven-cert.adb \
628 a-intnam.ads
<a-intnam-vxworks.ads \
629 a-numaux.ads
<a-numaux-vxworks.ads \
630 g-io.adb
<g-io-vxworks-ppc-cert.adb \
631 g-io.ads
<g-io-vxworks-ppc-cert.ads \
632 s-inmaop.adb
<s-inmaop-vxworks.adb \
633 s-interr.adb
<s-interr-hwint.adb \
634 s-intman.ads
<s-intman-vxworks.ads \
635 s-intman.adb
<s-intman-vxworks.adb \
636 s-osinte.adb
<s-osinte-vxworks.adb \
637 s-osinte.ads
<s-osinte-vxworks.ads \
638 s-osprim.adb
<s-osprim-vxworks.adb \
639 s-parame.ads
<s-parame-ae653.ads \
640 s-parame.adb
<s-parame-vxworks.adb \
641 s-stchop.adb
<s-stchop-vxworks.adb \
642 s-stchop.ads
<s-stchop-limit.ads \
643 s-taprop.adb
<s-taprop-vxworks.adb \
644 s-tasinf.ads
<s-tasinf-vxworks.ads \
645 s-taspri.ads
<s-taspri-vxworks.ads \
646 s-thread.adb
<s-thread-ae653.adb \
647 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
648 s-vxwork.ads
<s-vxwork-ppc.ads \
649 g-trasym.ads
<g-trasym-unimplemented.ads \
650 g-trasym.adb
<g-trasym-unimplemented.adb \
651 system.ads
<system-vxworks-ppc.ads \
652 $(ATOMICS_TARGET_PAIRS
) \
653 $(DUMMY_SOCKETS_TARGET_PAIRS
)
656 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
657 indepsw.adb
<indepsw-gnu.adb
659 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-thread.o s-vxwexc.o
660 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
662 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
663 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
664 GNATRTL_SOCKETS_OBJS
=
666 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
667 LIBGNAT_TARGET_PAIRS
+= \
668 s-traces.adb
<s-traces-default.adb \
669 s-trafor.adb
<s-trafor-default.adb \
670 s-trafor.ads
<s-trafor-default.ads \
671 s-tratas.adb
<s-tratas-default.adb \
672 s-tfsetr.adb
<s-tfsetr-vxworks.adb
676 # vxworksae / vxworks 653 for x86 (vxsim) - ?? vxworksmils not implemented
677 ifeq ($(strip $(filter-out %86 wrs vxworksae vxworksmils
,$(targ
))),)
678 # target pairs for kernel + vthreads runtime
679 LIBGNAT_TARGET_PAIRS
= \
680 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
681 a-intnam.ads
<a-intnam-vxworks.ads \
682 a-numaux.ads
<a-numaux-x86.ads \
683 a-numaux.adb
<a-numaux-x86.adb \
684 a-sytaco.ads
<1asytaco.ads \
685 a-sytaco.adb
<1asytaco.adb \
686 g-bytswa.adb
<g-bytswa-x86.adb \
687 g-io.adb
<g-io-vxworks-ppc-cert.adb \
688 g-io.ads
<g-io-vxworks-ppc-cert.ads \
689 s-inmaop.adb
<s-inmaop-vxworks.adb \
690 s-interr.adb
<s-interr-hwint.adb \
691 s-intman.ads
<s-intman-vxworks.ads \
692 s-intman.adb
<s-intman-vxworks.adb \
693 s-osinte.adb
<s-osinte-vxworks.adb \
694 s-osinte.ads
<s-osinte-vxworks.ads \
695 s-osprim.adb
<s-osprim-vxworks.adb \
696 s-parame.ads
<s-parame-ae653.ads \
697 s-taprop.adb
<s-taprop-vxworks.adb \
698 s-tasinf.ads
<s-tasinf-vxworks.ads \
699 s-taspri.ads
<s-taspri-vxworks.ads \
700 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
701 s-vxwext.adb
<s-vxwext-noints.adb \
702 s-vxwext.ads
<s-vxwext-vthreads.ads \
703 s-vxwork.ads
<s-vxwork-x86.ads \
704 g-trasym.ads
<g-trasym-unimplemented.ads \
705 g-trasym.adb
<g-trasym-unimplemented.adb \
706 system.ads
<system-vxworks-x86.ads \
707 $(ATOMICS_TARGET_PAIRS
) \
708 s-atocou.adb
<s-atocou-x86.adb
711 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
712 indepsw.adb
<indepsw-gnu.adb
714 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
715 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
717 # Extra pairs for the vthreads runtime
718 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
719 LIBGNAT_TARGET_PAIRS
+= \
720 s-thread.adb
<s-thread-ae653.adb \
721 $(DUMMY_SOCKETS_TARGET_PAIRS
)
723 GNATRTL_SOCKETS_OBJS
=
724 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
726 LIBGNAT_TARGET_PAIRS
+= \
727 g-socthi.ads
<g-socthi-vxworks.ads \
728 g-socthi.adb
<g-socthi-vxworks.adb \
729 g-stsifd.adb
<g-stsifd-sockets.adb
732 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
733 LIBGNAT_TARGET_PAIRS
+= \
734 s-traces.adb
<s-traces-default.adb \
735 s-trafor.adb
<s-trafor-default.adb \
736 s-trafor.ads
<s-trafor-default.ads \
737 s-tratas.adb
<s-tratas-default.adb \
738 s-tfsetr.adb
<s-tfsetr-vxworks.adb
742 ifeq ($(strip $(filter-out sparc
% wrs vx
%,$(targ
))),)
743 LIBGNAT_TARGET_PAIRS
= \
744 a-intnam.ads
<a-intnam-vxworks.ads \
745 a-numaux.ads
<a-numaux-vxworks.ads \
746 s-inmaop.adb
<s-inmaop-vxworks.adb \
747 s-interr.adb
<s-interr-hwint.adb \
748 s-intman.ads
<s-intman-vxworks.ads \
749 s-intman.adb
<s-intman-vxworks.adb \
750 s-osinte.adb
<s-osinte-vxworks.adb \
751 s-osinte.ads
<s-osinte-vxworks.ads \
752 s-osprim.adb
<s-osprim-vxworks.adb \
753 s-parame.ads
<s-parame-vxworks.ads \
754 s-parame.adb
<s-parame-vxworks.adb \
755 s-stchop.ads
<s-stchop-limit.ads \
756 s-stchop.adb
<s-stchop-vxworks.adb \
757 s-taprop.adb
<s-taprop-vxworks.adb \
758 s-tasinf.ads
<s-tasinf-vxworks.ads \
759 s-taspri.ads
<s-taspri-vxworks.ads \
760 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
761 s-vxwork.ads
<s-vxwork-sparcv9.ads \
762 g-socthi.ads
<g-socthi-vxworks.ads \
763 g-socthi.adb
<g-socthi-vxworks.adb \
764 g-stsifd.adb
<g-stsifd-sockets.adb \
765 g-trasym.ads
<g-trasym-unimplemented.ads \
766 g-trasym.adb
<g-trasym-unimplemented.adb \
767 system.ads
<system-vxworks-sparcv9.ads \
770 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
771 indepsw.adb
<indepsw-gnu.adb
773 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
774 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
776 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
777 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
780 ifeq ($(strip $(filter-out %86 wrs vxworks
,$(targ
))),)
781 LIBGNAT_TARGET_PAIRS
= \
782 a-intnam.ads
<a-intnam-vxworks.ads \
783 i-vxwork.ads
<i-vxwork-x86.ads \
784 s-osinte.adb
<s-osinte-vxworks.adb \
785 s-osinte.ads
<s-osinte-vxworks.ads \
786 s-inmaop.adb
<s-inmaop-vxworks.adb \
787 s-intman.ads
<s-intman-vxworks.ads \
788 s-intman.adb
<s-intman-vxworks.adb \
789 a-numaux.adb
<a-numaux-x86.adb \
790 a-numaux.ads
<a-numaux-x86.ads \
791 s-osprim.adb
<s-osprim-vxworks.adb \
792 s-parame.ads
<s-parame-vxworks.ads \
793 s-parame.adb
<s-parame-vxworks.adb \
794 s-stchop.ads
<s-stchop-limit.ads \
795 s-stchop.adb
<s-stchop-vxworks.adb \
796 s-taprop.adb
<s-taprop-vxworks.adb \
797 s-tasinf.ads
<s-tasinf-vxworks.ads \
798 s-taspri.ads
<s-taspri-vxworks.ads \
799 s-vxwork.ads
<s-vxwork-x86.ads \
800 g-bytswa.adb
<g-bytswa-x86.adb \
801 g-socthi.ads
<g-socthi-vxworks.ads \
802 g-socthi.adb
<g-socthi-vxworks.adb \
803 g-stsifd.adb
<g-stsifd-sockets.adb \
804 g-trasym.ads
<g-trasym-unimplemented.ads \
805 g-trasym.adb
<g-trasym-unimplemented.adb \
806 $(ATOMICS_TARGET_PAIRS
) \
807 s-atocou.adb
<s-atocou-x86.adb
810 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
811 indepsw.adb
<indepsw-gnu.adb
813 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
814 LIBGNAT_TARGET_PAIRS
+= \
815 s-traces.adb
<s-traces-default.adb \
816 s-trafor.adb
<s-trafor-default.adb \
817 s-trafor.ads
<s-trafor-default.ads \
818 s-tratas.adb
<s-tratas-default.adb \
819 s-tfsetr.adb
<s-tfsetr-vxworks.adb
822 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
823 LIBGNAT_TARGET_PAIRS
+= \
824 s-vxwext.ads
<s-vxwext-rtp.ads \
825 s-vxwext.adb
<s-vxwext-rtp.adb \
826 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
827 system.ads
<system-vxworks-x86-rtp.ads
829 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
831 ifeq ($(strip $(filter-out rtp-smp
, $(THREAD_KIND
))),)
832 LIBGNAT_TARGET_PAIRS
+= \
833 s-vxwext.ads
<s-vxwext-rtp.ads \
834 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
835 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
836 system.ads
<system-vxworks-x86-rtp.ads
838 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
839 EXTRA_GNATRTL_TASKING_OBJS
=affinity.o
841 ifeq ($(strip $(filter-out kernel-smp
, $(THREAD_KIND
))),)
842 LIBGNAT_TARGET_PAIRS
+= \
843 s-interr.adb
<s-interr-hwint.adb \
844 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
845 s-vxwext.ads
<s-vxwext-kernel.ads \
846 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
847 system.ads
<system-vxworks-x86-kernel.ads
848 EXTRA_GNATRTL_TASKING_OBJS
=affinity.o
850 LIBGNAT_TARGET_PAIRS
+= \
851 s-interr.adb
<s-interr-hwint.adb \
852 s-tpopsp.adb
<s-tpopsp-vxworks.adb
854 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
855 LIBGNAT_TARGET_PAIRS
+= \
856 s-vxwext.ads
<s-vxwext-kernel.ads \
857 s-vxwext.adb
<s-vxwext-kernel.adb \
858 system.ads
<system-vxworks-x86-kernel.ads
860 LIBGNAT_TARGET_PAIRS
+= \
861 system.ads
<system-vxworks-x86.ads
865 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
868 EXTRA_GNATRTL_TASKING_OBJS
+= s-vxwork.o s-vxwext.o
870 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
871 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
874 ifeq ($(strip $(filter-out arm
% coff wrs vx
%,$(targ
))),)
875 LIBGNAT_TARGET_PAIRS
= \
876 a-intnam.ads
<a-intnam-vxworks.ads \
877 a-numaux.ads
<a-numaux-vxworks.ads \
878 s-inmaop.adb
<s-inmaop-vxworks.adb \
879 s-interr.adb
<s-interr-hwint.adb \
880 s-intman.ads
<s-intman-vxworks.ads \
881 s-intman.adb
<s-intman-vxworks.adb \
882 s-osinte.adb
<s-osinte-vxworks.adb \
883 s-osinte.ads
<s-osinte-vxworks.ads \
884 s-osprim.adb
<s-osprim-vxworks.adb \
885 s-parame.ads
<s-parame-vxworks.ads \
886 s-parame.adb
<s-parame-vxworks.adb \
887 s-stchop.ads
<s-stchop-limit.ads \
888 s-stchop.adb
<s-stchop-vxworks.adb \
889 s-taprop.adb
<s-taprop-vxworks.adb \
890 s-tasinf.ads
<s-tasinf-vxworks.ads \
891 s-taspri.ads
<s-taspri-vxworks.ads \
892 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
893 s-vxwork.ads
<s-vxwork-arm.ads \
894 g-socthi.ads
<g-socthi-vxworks.ads \
895 g-socthi.adb
<g-socthi-vxworks.adb \
896 g-stsifd.adb
<g-stsifd-sockets.adb \
897 g-trasym.ads
<g-trasym-unimplemented.ads \
898 g-trasym.adb
<g-trasym-unimplemented.adb \
899 system.ads
<system-vxworks-arm.ads
902 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
903 indepsw.adb
<indepsw-gnu.adb
905 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
906 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
908 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
909 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
912 ifeq ($(strip $(filter-out mips
% wrs vx
%,$(targ
))),)
913 LIBGNAT_TARGET_PAIRS
= \
914 a-intnam.ads
<a-intnam-vxworks.ads \
915 a-numaux.ads
<a-numaux-vxworks.ads \
916 s-inmaop.adb
<s-inmaop-vxworks.adb \
917 s-interr.adb
<s-interr-hwint.adb \
918 s-intman.ads
<s-intman-vxworks.ads \
919 s-intman.adb
<s-intman-vxworks.adb \
920 s-osinte.adb
<s-osinte-vxworks.adb \
921 s-osinte.ads
<s-osinte-vxworks.ads \
922 s-osprim.adb
<s-osprim-vxworks.adb \
923 s-parame.ads
<s-parame-vxworks.ads \
924 s-parame.adb
<s-parame-vxworks.adb \
925 s-stchop.ads
<s-stchop-limit.ads \
926 s-stchop.adb
<s-stchop-vxworks.adb \
927 s-taprop.adb
<s-taprop-vxworks.adb \
928 s-tasinf.ads
<s-tasinf-vxworks.ads \
929 s-taspri.ads
<s-taspri-vxworks.ads \
930 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
931 s-vxwork.ads
<s-vxwork-mips.ads \
932 g-socthi.ads
<g-socthi-vxworks.ads \
933 g-socthi.adb
<g-socthi-vxworks.adb \
934 g-stsifd.adb
<g-stsifd-sockets.adb \
935 g-trasym.ads
<g-trasym-unimplemented.ads \
936 g-trasym.adb
<g-trasym-unimplemented.adb \
937 system.ads
<system-vxworks-mips.ads
940 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
941 indepsw.adb
<indepsw-gnu.adb
943 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
944 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
946 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
947 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
950 ifeq ($(strip $(filter-out sparc
% sun solaris
%,$(targ
))),)
951 LIBGNAT_TARGET_PAIRS_COMMON
= \
952 a-intnam.ads
<a-intnam-solaris.ads \
953 s-inmaop.adb
<s-inmaop-posix.adb \
954 s-intman.adb
<s-intman-solaris.adb \
955 s-osinte.adb
<s-osinte-solaris.adb \
956 s-osinte.ads
<s-osinte-solaris.ads \
957 s-osprim.adb
<s-osprim-solaris.adb \
958 s-taprop.adb
<s-taprop-solaris.adb \
959 s-tasinf.adb
<s-tasinf-solaris.adb \
960 s-tasinf.ads
<s-tasinf-solaris.ads \
961 s-taspri.ads
<s-taspri-solaris.ads \
962 s-tpopsp.adb
<s-tpopsp-solaris.adb \
963 g-soliop.ads
<g-soliop-solaris.ads
965 LIBGNAT_TARGET_PAIRS_32
= \
966 system.ads
<system-solaris-sparc.ads
968 LIBGNAT_TARGET_PAIRS_64
= \
969 system.ads
<system-solaris-sparcv9.ads \
970 $(ATOMICS_TARGET_PAIRS
)
972 ifeq ($(strip $(filter-out sparc sun solaris
%,$(targ
))),)
973 ifeq ($(strip $(MULTISUBDIR
)),/sparcv9
)
974 LIBGNAT_TARGET_PAIRS
= \
975 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
977 LIBGNAT_TARGET_PAIRS
= \
978 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
981 ifeq ($(strip $(MULTISUBDIR
)),/sparcv8plus
)
982 LIBGNAT_TARGET_PAIRS
= \
983 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
985 LIBGNAT_TARGET_PAIRS
= \
986 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
990 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
993 THREADSLIB
= -lposix4
-lthread
994 MISCLIB
= -lposix4
-lnsl
-lsocket
996 GNATLIB_SHARED
= gnatlib-shared-dual
998 LIBRARY_VERSION
:= $(LIB_VERSION
)
1000 ifeq ($(strip $(filter-out pthread PTHREAD
,$(THREAD_KIND
))),)
1001 LIBGNAT_TARGET_PAIRS
= \
1002 a-intnam.ads
<a-intnam-solaris.ads \
1003 s-inmaop.adb
<s-inmaop-posix.adb \
1004 s-intman.adb
<s-intman-posix.adb \
1005 s-osinte.adb
<s-osinte-posix.adb \
1006 s-osinte.ads
<s-osinte-solaris-posix.ads \
1007 s-osprim.adb
<s-osprim-solaris.adb \
1008 s-taprop.adb
<s-taprop-posix.adb \
1009 s-taspri.ads
<s-taspri-posix.ads \
1010 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1011 g-soliop.ads
<g-soliop-solaris.ads \
1012 system.ads
<system-solaris-sparc.ads
1014 THREADSLIB
= -lposix4
-lpthread
1017 ifeq ($(strip $(filter-out m64
,$(THREAD_KIND
))),)
1018 LIBGNAT_TARGET_PAIRS
= $(LIBGNAT_TARGET_PAIRS_64
)
1022 ifeq ($(strip $(filter-out %86 %x86_64 solaris2
%,$(arch
) $(osys
))),)
1023 LIBGNAT_TARGET_PAIRS_COMMON
= \
1024 a-numaux.adb
<a-numaux-x86.adb \
1025 a-numaux.ads
<a-numaux-x86.ads \
1026 a-intnam.ads
<a-intnam-solaris.ads \
1027 s-inmaop.adb
<s-inmaop-posix.adb \
1028 s-intman.adb
<s-intman-solaris.adb \
1029 s-osinte.adb
<s-osinte-solaris.adb \
1030 s-osinte.ads
<s-osinte-solaris.ads \
1031 s-osprim.adb
<s-osprim-solaris.adb \
1032 s-taprop.adb
<s-taprop-solaris.adb \
1033 s-tasinf.adb
<s-tasinf-solaris.adb \
1034 s-tasinf.ads
<s-tasinf-solaris.ads \
1035 s-taspri.ads
<s-taspri-solaris.ads \
1036 s-tpopsp.adb
<s-tpopsp-solaris.adb \
1037 g-soliop.ads
<g-soliop-solaris.ads \
1038 $(ATOMICS_TARGET_PAIRS
)
1040 LIBGNAT_TARGET_PAIRS_32
= \
1041 g-bytswa.adb
<g-bytswa-x86.adb \
1042 s-atocou.adb
<s-atocou-x86.adb \
1043 system.ads
<system-solaris-x86.ads
1045 LIBGNAT_TARGET_PAIRS_64
= \
1046 system.ads
<system-solaris-x86_64.ads
1048 ifeq ($(strip $(filter-out %86 solaris2
%,$(arch
) $(osys
))),)
1049 ifeq ($(strip $(MULTISUBDIR
)),/amd64
)
1050 LIBGNAT_TARGET_PAIRS
= \
1051 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1053 LIBGNAT_TARGET_PAIRS
= \
1054 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1057 ifeq ($(strip $(MULTISUBDIR
)),/32)
1058 LIBGNAT_TARGET_PAIRS
= \
1059 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1061 LIBGNAT_TARGET_PAIRS
= \
1062 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1066 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
1069 THREADSLIB
= -lposix4
-lthread
1070 MISCLIB
= -lposix4
-lnsl
-lsocket
1072 GNATLIB_SHARED
= gnatlib-shared-dual
1074 LIBRARY_VERSION
:= $(LIB_VERSION
)
1077 ifeq ($(strip $(filter-out %86 linux
%,$(arch
) $(osys
))),)
1078 LIBGNAT_TARGET_PAIRS
= \
1079 a-intnam.ads
<a-intnam-linux.ads \
1080 a-numaux.adb
<a-numaux-x86.adb \
1081 a-numaux.ads
<a-numaux-x86.ads \
1082 g-bytswa.adb
<g-bytswa-x86.adb \
1083 s-inmaop.adb
<s-inmaop-posix.adb \
1084 s-intman.adb
<s-intman-posix.adb \
1085 s-tpopsp.adb
<s-tpopsp-tls.adb \
1086 g-sercom.adb
<g-sercom-linux.adb \
1087 $(ATOMICS_TARGET_PAIRS
) \
1088 s-atocou.adb
<s-atocou-x86.adb
1090 ifeq ($(strip $(filter-out marte
,$(THREAD_KIND
))),)
1091 LIBGNAT_TARGET_PAIRS
+= \
1092 a-exetim.adb
<a-exetim-linux-marte.adb \
1093 a-exetim.ads
<a-exetim-linux-marte.ads \
1094 a-extiti.adb
<a-extiti-linux-marte.adb \
1095 a-extiti.ads
<a-extiti-linux-marte.ads \
1096 a-rttiev.adb
<a-rttiev-linux-marte.adb \
1097 a-rttiev.ads
<a-rttiev-linux-marte.ads \
1098 s-osinte.adb
<s-osinte-linux-marte.adb \
1099 s-osinte.ads
<s-osinte-linux-marte.ads \
1100 s-osprim.adb
<s-osprim-posix.adb \
1101 s-taprop.adb
<s-taprop-linux-marte.adb \
1102 s-taspri.ads
<s-taspri-posix.ads \
1103 system.ads
<system-linux-x86.ads
1105 EXTRA_GNATRTL_TASKING_OBJS
=a-exetim.o a-extiti.o
1108 THREADSLIB
= -lmarte
1110 LIBGNAT_TARGET_PAIRS
+= \
1111 a-exetim.adb
<a-exetim-posix.adb \
1112 a-exetim.ads
<a-exetim-default.ads \
1113 s-linux.ads
<s-linux.ads \
1114 s-osinte.adb
<s-osinte-posix.adb \
1115 system.ads
<system-linux-x86.ads
1117 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1118 LIBGNAT_TARGET_PAIRS
+= \
1119 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1120 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1121 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1122 s-taspri.ads
<s-taspri-linux-xenomai.ads
1126 LIBGNAT_TARGET_PAIRS
+= \
1127 s-osinte.ads
<s-osinte-linux.ads \
1128 s-osprim.adb
<s-osprim-posix.adb \
1129 s-taprop.adb
<s-taprop-linux.adb \
1130 s-tasinf.ads
<s-tasinf-linux.ads \
1131 s-tasinf.adb
<s-tasinf-linux.adb \
1132 s-taspri.ads
<s-taspri-posix.ads
1137 THREADSLIB
= -lpthread
-lrt
1138 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1139 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1142 TOOLS_TARGET_PAIRS
= \
1143 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1144 indepsw.adb
<indepsw-gnu.adb
1146 GNATLIB_SHARED
= gnatlib-shared-dual
1148 LIBRARY_VERSION
:= $(LIB_VERSION
)
1151 ifeq ($(strip $(filter-out %86 kfreebsd
%,$(arch
) $(osys
))),)
1152 LIBGNAT_TARGET_PAIRS
= \
1153 a-intnam.ads
<a-intnam-freebsd.ads \
1154 a-numaux.adb
<a-numaux-x86.adb \
1155 a-numaux.ads
<a-numaux-x86.ads \
1156 s-inmaop.adb
<s-inmaop-posix.adb \
1157 s-intman.adb
<s-intman-posix.adb \
1158 s-osinte.adb
<s-osinte-posix.adb \
1159 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1160 s-osprim.adb
<s-osprim-posix.adb \
1161 s-taprop.adb
<s-taprop-linux.adb \
1162 s-tasinf.ads
<s-tasinf-linux.ads \
1163 s-tasinf.adb
<s-tasinf-linux.adb \
1164 s-taspri.ads
<s-taspri-posix.ads \
1165 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1166 system.ads
<system-freebsd-x86.ads \
1167 $(ATOMICS_TARGET_PAIRS
) \
1168 s-atocou.adb
<s-atocou-x86.adb
1170 TOOLS_TARGET_PAIRS
= \
1171 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1172 indepsw.adb
<indepsw-gnu.adb
1175 THREADSLIB
= -lpthread
1176 GNATLIB_SHARED
= gnatlib-shared-dual
1178 LIBRARY_VERSION
:= $(LIB_VERSION
)
1181 ifeq ($(strip $(filter-out x86_64 kfreebsd
%,$(arch
) $(osys
))),)
1182 LIBGNAT_TARGET_PAIRS
= \
1183 a-intnam.ads
<a-intnam-freebsd.ads \
1184 a-numaux.adb
<a-numaux-x86.adb \
1185 a-numaux.ads
<a-numaux-x86.ads \
1186 s-inmaop.adb
<s-inmaop-posix.adb \
1187 s-intman.adb
<s-intman-posix.adb \
1188 s-osinte.adb
<s-osinte-posix.adb \
1189 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1190 s-osprim.adb
<s-osprim-posix.adb \
1191 s-taprop.adb
<s-taprop-linux.adb \
1192 s-tasinf.ads
<s-tasinf-linux.ads \
1193 s-tasinf.adb
<s-tasinf-linux.adb \
1194 s-taspri.ads
<s-taspri-posix.ads \
1195 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1196 system.ads
<system-freebsd-x86_64.ads
1198 TOOLS_TARGET_PAIRS
= \
1199 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1200 indepsw.adb
<indepsw-gnu.adb
1203 THREADSLIB
= -lpthread
1204 GNATLIB_SHARED
= gnatlib-shared-dual
1206 LIBRARY_VERSION
:= $(LIB_VERSION
)
1209 ifeq ($(strip $(filter-out %86 freebsd
%,$(arch
) $(osys
))),)
1210 LIBGNAT_TARGET_PAIRS
= \
1211 a-intnam.ads
<a-intnam-freebsd.ads \
1212 a-numaux.adb
<a-numaux-x86.adb \
1213 a-numaux.ads
<a-numaux-x86.ads \
1214 g-bytswa.adb
<g-bytswa-x86.adb \
1215 s-inmaop.adb
<s-inmaop-posix.adb \
1216 s-intman.adb
<s-intman-posix.adb \
1217 s-osinte.adb
<s-osinte-freebsd.adb \
1218 s-osinte.ads
<s-osinte-freebsd.ads \
1219 s-osprim.adb
<s-osprim-posix.adb \
1220 s-taprop.adb
<s-taprop-posix.adb \
1221 s-taspri.ads
<s-taspri-posix.ads \
1222 s-tpopsp.adb
<s-tpopsp-posix.adb \
1223 system.ads
<system-freebsd-x86.ads \
1224 $(ATOMICS_TARGET_PAIRS
) \
1225 s-atocou.adb
<s-atocou-x86.adb
1227 TOOLS_TARGET_PAIRS
= \
1228 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
1229 GNATLIB_SHARED
= gnatlib-shared-dual
1232 THREADSLIB
= -lpthread
1234 LIBRARY_VERSION
:= $(LIB_VERSION
)
1237 ifeq ($(strip $(filter-out s390
% linux
%,$(arch
) $(osys
))),)
1238 LIBGNAT_TARGET_PAIRS_COMMON
= \
1239 a-intnam.ads
<a-intnam-linux.ads \
1240 s-inmaop.adb
<s-inmaop-posix.adb \
1241 s-intman.adb
<s-intman-posix.adb \
1242 s-linux.ads
<s-linux.ads \
1243 s-osinte.adb
<s-osinte-posix.adb \
1244 s-osinte.ads
<s-osinte-linux.ads \
1245 s-osprim.adb
<s-osprim-posix.adb \
1246 s-taprop.adb
<s-taprop-linux.adb \
1247 s-tasinf.ads
<s-tasinf-linux.ads \
1248 s-tasinf.adb
<s-tasinf-linux.adb \
1249 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1250 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1251 g-trasym.ads
<g-trasym-unimplemented.ads \
1252 g-trasym.adb
<g-trasym-unimplemented.adb
1254 LIBGNAT_TARGET_PAIRS_32
= \
1255 system.ads
<system-linux-s390.ads
1257 LIBGNAT_TARGET_PAIRS_64
= \
1258 system.ads
<system-linux-s390x.ads
1260 ifeq ($(strip $(filter-out s390x
,$(arch
))),)
1261 ifeq ($(strip $(MULTISUBDIR
)),/32)
1262 LIBGNAT_TARGET_PAIRS
= \
1263 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1265 LIBGNAT_TARGET_PAIRS
= \
1266 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1269 LIBGNAT_TARGET_PAIRS
= \
1270 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1273 TOOLS_TARGET_PAIRS
= \
1274 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1275 indepsw.adb
<indepsw-gnu.adb
1277 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1279 THREADSLIB
= -lpthread
1280 GNATLIB_SHARED
= gnatlib-shared-dual
1281 LIBRARY_VERSION
:= $(LIB_VERSION
)
1284 ifeq ($(strip $(filter-out mips sgi irix6
%,$(targ
))),)
1285 LIBGNAT_TARGET_PAIRS
= \
1286 a-intnam.ads
<a-intnam-irix.ads \
1287 s-inmaop.adb
<s-inmaop-posix.adb \
1288 s-intman.adb
<s-intman-irix.adb \
1289 s-mastop.adb
<s-mastop-irix.adb \
1290 s-osinte.adb
<s-osinte-irix.adb \
1291 s-osinte.ads
<s-osinte-irix.ads \
1292 s-osprim.adb
<s-osprim-posix.adb \
1293 s-proinf.adb
<s-proinf-irix-athread.adb \
1294 s-proinf.ads
<s-proinf-irix-athread.ads \
1295 s-taprop.adb
<s-taprop-irix.adb \
1296 s-tasinf.ads
<s-tasinf-irix.ads \
1297 s-taspri.ads
<s-taspri-posix.ads \
1298 s-tpopsp.adb
<s-tpopsp-posix.adb \
1299 s-traceb.adb
<s-traceb-mastop.adb
1301 ifeq ($(strip $(MULTISUBDIR
)),/64)
1302 LIBGNAT_TARGET_PAIRS
+= \
1303 system.ads
<system-irix-n64.ads
1305 ifeq ($(strip $(MULTISUBDIR
)),/32)
1306 LIBGNAT_TARGET_PAIRS
+= \
1307 system.ads
<system-irix-o32.ads
1309 LIBGNAT_TARGET_PAIRS
+= \
1310 system.ads
<system-irix-n32.ads
1314 THREADSLIB
= -lpthread
1315 GNATLIB_SHARED
= gnatlib-shared-default
1318 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-irix.adb
1321 LIBRARY_VERSION
:= $(LIB_VERSION
)
1325 ifeq ($(strip $(filter-out hppa
% hp hpux10
%,$(targ
))),)
1326 LIBGNAT_TARGET_PAIRS
= \
1327 a-excpol.adb
<a-excpol-abort.adb \
1328 a-intnam.ads
<a-intnam-hpux.ads \
1329 s-inmaop.adb
<s-inmaop-posix.adb \
1330 s-interr.adb
<s-interr-sigaction.adb \
1331 s-intman.adb
<s-intman-posix.adb \
1332 s-osinte.adb
<s-osinte-hpux-dce.adb \
1333 s-osinte.ads
<s-osinte-hpux-dce.ads \
1334 s-parame.ads
<s-parame-hpux.ads \
1335 s-osprim.adb
<s-osprim-posix.adb \
1336 s-taprop.adb
<s-taprop-hpux-dce.adb \
1337 s-taspri.ads
<s-taspri-hpux-dce.ads \
1338 s-tpopsp.adb
<s-tpopsp-posix.adb \
1339 system.ads
<system-hpux.ads
1344 ifeq ($(strip $(filter-out hppa
% hp hpux11
%,$(targ
))),)
1345 LIBGNAT_TARGET_PAIRS
= \
1346 a-intnam.ads
<a-intnam-hpux.ads \
1347 s-inmaop.adb
<s-inmaop-posix.adb \
1348 s-intman.adb
<s-intman-posix.adb \
1349 s-osinte.adb
<s-osinte-posix.adb \
1350 s-osinte.ads
<s-osinte-hpux.ads \
1351 s-parame.ads
<s-parame-hpux.ads \
1352 s-osprim.adb
<s-osprim-posix.adb \
1353 s-traceb.adb
<s-traceb-hpux.adb \
1354 s-taprop.adb
<s-taprop-posix.adb \
1355 s-taspri.ads
<s-taspri-posix.ads \
1356 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1357 system.ads
<system-hpux.ads
1359 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-hpux.adb
1361 TGT_LIB
= /usr
/lib
/libcl.a
1362 THREADSLIB
= -lpthread
1366 GNATLIB_SHARED
= gnatlib-shared-dual
1367 LIBRARY_VERSION
:= $(LIB_VERSION
)
1370 ifeq ($(strip $(filter-out ibm aix
%,$(manu
) $(osys
))),)
1371 LIBGNAT_TARGET_PAIRS_COMMON
= \
1372 a-intnam.ads
<a-intnam-aix.ads \
1373 s-inmaop.adb
<s-inmaop-posix.adb \
1374 s-intman.adb
<s-intman-posix.adb \
1375 s-osinte.adb
<s-osinte-aix.adb \
1376 s-osinte.ads
<s-osinte-aix.ads \
1377 s-osprim.adb
<s-osprim-posix.adb \
1378 s-taprop.adb
<s-taprop-posix.adb \
1379 s-taspri.ads
<s-taspri-posix.ads \
1380 s-tpopsp.adb
<s-tpopsp-posix.adb \
1381 $(ATOMICS_TARGET_PAIRS
)
1383 LIBGNAT_TARGET_PAIRS_32
= \
1384 system.ads
<system-aix.ads
1386 LIBGNAT_TARGET_PAIRS_64
= \
1387 system.ads
<system-aix64.ads
1389 ifeq ($(findstring ppc64
, \
1390 $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) \
1391 -print-multi-os-directory
)), \
1393 LIBGNAT_TARGET_PAIRS
= \
1394 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1396 LIBGNAT_TARGET_PAIRS
= \
1397 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1400 THREADSLIB
= -lpthreads
1402 TOOLS_TARGET_PAIRS
= \
1403 mlib-tgt-specific.adb
<mlib-tgt-specific-aix.adb \
1404 indepsw.adb
<indepsw-aix.adb
1409 ifeq ($(strip $(filter-out rtems
%,$(osys
))),)
1410 LIBGNAT_TARGET_PAIRS
= \
1411 system.ads
<system-rtems.ads \
1412 a-intnam.ads
<a-intnam-rtems.ads \
1413 s-inmaop.adb
<s-inmaop-posix.adb \
1414 s-intman.adb
<s-intman-posix.adb \
1415 s-osinte.adb
<s-osinte-rtems.adb \
1416 s-osinte.ads
<s-osinte-rtems.ads \
1417 s-osprim.adb
<s-osprim-posix.adb \
1418 s-parame.adb
<s-parame-rtems.adb \
1419 s-taprop.adb
<s-taprop-posix.adb \
1420 s-taspri.ads
<s-taspri-posix.ads \
1421 s-tpopsp.adb
<s-tpopsp-rtems.adb \
1422 s-stchop.adb
<s-stchop-rtems.adb \
1423 s-interr.adb
<s-interr-hwint.adb \
1424 g-trasym.ads
<g-trasym-unimplemented.ads \
1425 g-trasym.adb
<g-trasym-unimplemented.adb
1428 ifeq ($(strip $(filter-out alpha
% dec osf
%,$(targ
))),)
1429 LIBGNAT_TARGET_PAIRS
= \
1430 a-intnam.ads
<a-intnam-tru64.ads \
1431 s-inmaop.adb
<s-inmaop-posix.adb \
1432 s-intman.adb
<s-intman-posix.adb \
1433 s-mastop.adb
<s-mastop-tru64.adb \
1434 s-osinte.adb
<s-osinte-tru64.adb \
1435 s-osinte.ads
<s-osinte-tru64.ads \
1436 s-osprim.adb
<s-osprim-unix.adb \
1437 s-taprop.adb
<s-taprop-tru64.adb \
1438 s-tasinf.ads
<s-tasinf-tru64.ads \
1439 s-taspri.ads
<s-taspri-tru64.ads \
1440 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1441 s-traceb.adb
<s-traceb-mastop.adb \
1442 system.ads
<system-tru64.ads \
1443 $(ATOMICS_TARGET_PAIRS
)
1445 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-tru64.adb
1450 THREADSLIB
= -lpthread
-lmach
-lexc
-lrt
1451 GNATLIB_SHARED
= gnatlib-shared-default
1452 LIBRARY_VERSION
:= $(LIB_VERSION
)
1455 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(host
))),)
1465 @ gnu
:[bin
]vmssymvec
$<
1468 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(targ
))),)
1469 LIBGNAT_TARGET_PAIRS
= \
1470 a-caldel.adb
<a-caldel-vms.adb \
1471 a-calend.adb
<a-calend-vms.adb \
1472 a-calend.ads
<a-calend-vms.ads \
1473 a-dirval.adb
<a-dirval-vms.adb \
1474 a-excpol.adb
<a-excpol-abort.adb \
1475 a-intnam.ads
<a-intnam-vms.ads \
1476 a-numaux.ads
<a-numaux-vms.ads \
1477 g-expect.adb
<g-expect-vms.adb \
1478 g-socthi.ads
<g-socthi-vms.ads \
1479 g-socthi.adb
<g-socthi-vms.adb \
1480 g-stsifd.adb
<g-stsifd-sockets.adb \
1481 i-cstrea.adb
<i-cstrea-vms.adb \
1482 memtrack.adb
<memtrack-vms_64.adb \
1483 s-auxdec.ads
<s-auxdec-vms_64.ads \
1484 s-inmaop.adb
<s-inmaop-vms.adb \
1485 s-interr.adb
<s-interr-vms.adb \
1486 s-intman.adb
<s-intman-vms.adb \
1487 s-intman.ads
<s-intman-vms.ads \
1488 s-memory.adb
<s-memory-vms_64.adb \
1489 s-memory.ads
<s-memory-vms_64.ads \
1490 s-osprim.adb
<s-osprim-vms.adb \
1491 s-osprim.ads
<s-osprim-vms.ads \
1492 s-taprop.adb
<s-taprop-vms.adb \
1493 s-tasdeb.adb
<s-tasdeb-vms.adb \
1494 s-taspri.ads
<s-taspri-vms.ads \
1495 s-tpopsp.adb
<s-tpopsp-vms.adb \
1496 s-tpopde.adb
<s-tpopde-vms.adb \
1497 s-tpopde.ads
<s-tpopde-vms.ads
1499 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1500 LIBGNAT_TARGET_PAIRS
+= \
1501 g-enblsp.adb
<g-enblsp-vms-ia64.adb \
1502 g-trasym.adb
<g-trasym-vms-ia64.adb \
1503 s-asthan.adb
<s-asthan-vms-ia64.adb \
1504 s-auxdec.adb
<s-auxdec-vms-ia64.adb \
1505 s-osinte.adb
<s-osinte-vms-ia64.adb \
1506 s-osinte.ads
<s-osinte-vms-ia64.ads \
1507 s-vaflop.adb
<s-vaflop-vms-ia64.adb \
1508 system.ads
<system-vms-ia64.ads \
1509 s-parame.ads
<s-parame-vms-ia64.ads \
1510 $(ATOMICS_TARGET_PAIRS
)
1512 TOOLS_TARGET_PAIRS
= \
1513 mlib-tgt-specific.adb
<mlib-tgt-specific-vms-ia64.adb \
1514 symbols.adb
<symbols-vms.adb \
1515 symbols-processing.adb
<symbols-processing-vms-ia64.adb
1517 ifeq ($(strip $(filter-out alpha64 dec vms
% openvms
% alphavms
%,$(targ
))),)
1518 LIBGNAT_TARGET_PAIRS
+= \
1519 g-enblsp.adb
<g-enblsp-vms-alpha.adb \
1520 g-trasym.adb
<g-trasym-vms-alpha.adb \
1521 s-asthan.adb
<s-asthan-vms-alpha.adb \
1522 s-auxdec.adb
<s-auxdec-vms-alpha.adb \
1523 s-osinte.adb
<s-osinte-vms.adb \
1524 s-osinte.ads
<s-osinte-vms.ads \
1525 s-traent.adb
<s-traent-vms.adb \
1526 s-traent.ads
<s-traent-vms.ads \
1527 s-vaflop.adb
<s-vaflop-vms-alpha.adb \
1528 system.ads
<system-vms_64.ads \
1529 s-parame.ads
<s-parame-vms-alpha.ads \
1530 $(ATOMICS_TARGET_PAIRS
)
1532 EXTRA_GNATRTL_NONTASKING_OBJS
= s-atocou.o
1533 TOOLS_TARGET_PAIRS
= \
1534 mlib-tgt-specific.adb
<mlib-tgt-specific-vms-alpha.adb \
1535 symbols.adb
<symbols-vms.adb \
1536 symbols-processing.adb
<symbols-processing-vms-alpha.adb
1540 adamsg.o
: adamsg.msg
1541 -$(DECC
) --cc=message adamsg.msg
-o adamsg.o
1543 EXTRA_GNATMAKE_OBJS
= mlib-tgt-vms_common.o
1547 GNATLIB_SHARED
=gnatlib-shared-vms
1548 EXTRA_LIBGNAT_SRCS
+=adamsg.msg
1549 EXTRA_LIBGNAT_OBJS
+=adamsg.o
1550 EXTRA_GNATRTL_NONTASKING_OBJS
+-s-po32gl.o
1551 EXTRA_GNATRTL_TASKING_OBJS
=s-tpopde.o
1553 ..
/..
/gnatsym
$(exeext
)
1554 # This command transforms (YYYYMMDD) into YY,MMDD
1555 GSMATCH_VERSION
:= $(shell grep
"^ *Gnat_Static_Version_String" $(fsrcpfx
)ada
/gnatvsn.ads | sed
-e
's/.*(\(.*\)).*/\1/' -e
's/\(..\)\(..\)\(....\).*/\2,\3/')
1556 TOOLS_LIBS_LO
:= --for-linker
=sys
\\$$\
$$library:trace.exe
1557 LIBRARY_VERSION
:= $(subst .
,_
,$(LIB_VERSION
))
1560 ifeq ($(strip $(filter-out avr none powerpc
% eabispe leon
% erc32
% unknown elf
,$(targ
))),)
1561 TOOLS_TARGET_PAIRS
=\
1562 mlib-tgt-specific.adb
<mlib-tgt-specific-xi.adb \
1563 indepsw.adb
<indepsw-gnu.adb
1566 ifeq ($(strip $(filter-out cygwin32
% mingw32
% pe
,$(osys
))),)
1567 LIBGNAT_TARGET_PAIRS
= \
1568 a-dirval.adb
<a-dirval-mingw.adb \
1569 a-excpol.adb
<a-excpol-abort.adb \
1570 a-numaux.adb
<a-numaux-x86.adb \
1571 a-numaux.ads
<a-numaux-x86.ads \
1572 s-gloloc.adb
<s-gloloc-mingw.adb \
1573 s-inmaop.adb
<s-inmaop-dummy.adb \
1574 s-memory.adb
<s-memory-mingw.adb \
1575 s-taspri.ads
<s-taspri-mingw.ads \
1576 s-tasinf.adb
<s-tasinf-mingw.adb \
1577 s-tasinf.ads
<s-tasinf-mingw.ads \
1578 g-bytswa.adb
<g-bytswa-x86.adb \
1579 g-socthi.ads
<g-socthi-mingw.ads \
1580 g-socthi.adb
<g-socthi-mingw.adb \
1581 g-stsifd.adb
<g-stsifd-sockets.adb \
1582 g-soliop.ads
<g-soliop-mingw.ads \
1583 $(ATOMICS_TARGET_PAIRS
) \
1584 s-atocou.adb
<s-atocou-x86.adb
1586 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss
,$(THREAD_KIND
))),)
1587 LIBGNAT_TARGET_PAIRS
+= \
1588 s-intman.adb
<s-intman-dummy.adb \
1589 s-osinte.ads
<s-osinte-rtx.ads \
1590 s-osprim.adb
<s-osprim-rtx.adb \
1591 s-taprop.adb
<s-taprop-rtx.adb
1593 EXTRA_GNATRTL_NONTASKING_OBJS
= s-win32.o
1595 ifeq ($(strip $(filter-out rtx_w32
,$(THREAD_KIND
))),)
1596 LIBGNAT_TARGET_PAIRS
+= system.ads
<system-rtx.ads
1600 LIBGNAT_TARGET_PAIRS
+= \
1601 system.ads
<system-rtx-rtss.ads \
1602 s-parame.adb
<s-parame-vxworks.adb
1608 LIBGNAT_TARGET_PAIRS
+= \
1609 a-exetim.adb
<a-exetim-mingw.adb \
1610 a-exetim.ads
<a-exetim-mingw.ads \
1611 a-intnam.ads
<a-intnam-mingw.ads \
1612 g-sercom.adb
<g-sercom-mingw.adb \
1613 s-interr.adb
<s-interr-sigaction.adb \
1614 s-intman.adb
<s-intman-mingw.adb \
1615 s-osinte.ads
<s-osinte-mingw.ads \
1616 s-osprim.adb
<s-osprim-mingw.adb \
1617 s-taprop.adb
<s-taprop-mingw.adb
1620 ifeq ($(strip $(filter-out x86_64
%,$(arch
))),)
1621 ifeq ($(strip $(MULTISUBDIR
)),/32)
1622 LIBGNAT_TARGET_PAIRS
+= \
1623 system.ads
<system-mingw.ads
1624 SO_OPTS
= -m32
-Wl
,-soname
,
1626 LIBGNAT_TARGET_PAIRS
+= \
1627 system.ads
<system-mingw-x86_64.ads
1628 SO_OPTS
= -m64
-Wl
,-soname
,
1631 ifeq ($(strip $(MULTISUBDIR
)),/64)
1632 LIBGNAT_TARGET_PAIRS
+= \
1633 system.ads
<system-mingw-x86_64.ads
1634 SO_OPTS
= -m64
-Wl
,-soname
,
1636 LIBGNAT_TARGET_PAIRS
+= \
1637 system.ads
<system-mingw.ads
1638 SO_OPTS
= -m32
-Wl
,-soname
,
1642 EXTRA_GNATRTL_NONTASKING_OBJS
= \
1643 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1644 EXTRA_GNATRTL_TASKING_OBJS
= a-exetim.o
1648 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1649 # auto-import support for array/record will be done.
1650 GNATLIB_SHARED
= gnatlib-shared-win32
1653 TOOLS_TARGET_PAIRS
= \
1654 mlib-tgt-specific.adb
<mlib-tgt-specific-mingw.adb \
1655 indepsw.adb
<indepsw-mingw.adb
1658 EXTRA_GNATTOOLS
= ..
/..
/gnatdll
$(exeext
)
1659 EXTRA_GNATMAKE_OBJS
= mdll.o mdll-utl.o mdll-fil.o
1661 LIBRARY_VERSION
:= $(LIB_VERSION
)
1664 ifeq ($(strip $(filter-out mips linux
%,$(arch
) $(osys
))),)
1665 LIBGNAT_TARGET_PAIRS
= \
1666 a-intnam.ads
<a-intnam-linux.ads \
1667 s-inmaop.adb
<s-inmaop-posix.adb \
1668 s-intman.adb
<s-intman-posix.adb \
1669 s-linux.ads
<s-linux.ads \
1670 s-osinte.adb
<s-osinte-posix.adb \
1671 s-osinte.ads
<s-osinte-linux.ads \
1672 s-osprim.adb
<s-osprim-posix.adb \
1673 s-taprop.adb
<s-taprop-linux.adb \
1674 s-tasinf.ads
<s-tasinf-linux.ads \
1675 s-tasinf.adb
<s-tasinf-linux.adb \
1676 s-taspri.ads
<s-taspri-posix.ads \
1677 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1678 system.ads
<system-linux-mips.ads
1681 THREADSLIB
= -lpthread
1682 GNATLIB_SHARED
= gnatlib-shared-dual
1684 LIBRARY_VERSION
:= $(LIB_VERSION
)
1687 ifeq ($(strip $(filter-out mipsel linux
%,$(arch
) $(osys
))),)
1688 LIBGNAT_TARGET_PAIRS_COMMON
= \
1689 a-intnam.ads
<a-intnam-linux.ads \
1690 s-inmaop.adb
<s-inmaop-posix.adb \
1691 s-intman.adb
<s-intman-posix.adb \
1692 s-linux.ads
<s-linux-mipsel.ads \
1693 s-osinte.adb
<s-osinte-posix.adb \
1694 s-osinte.ads
<s-osinte-linux.ads \
1695 s-osprim.adb
<s-osprim-posix.adb \
1696 s-taprop.adb
<s-taprop-linux.adb \
1697 s-tasinf.ads
<s-tasinf-linux.ads \
1698 s-tasinf.adb
<s-tasinf-linux.adb \
1699 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1700 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1701 g-sercom.adb
<g-sercom-linux.adb
1703 LIBGNAT_TARGET_PAIRS_32
= \
1704 system.ads
<system-linux-mipsel.ads
1706 LIBGNAT_TARGET_PAIRS_64
= \
1707 system.ads
<system-linux-mips64el.ads
1709 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1710 LIBGNAT_TARGET_PAIRS
= \
1711 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1713 LIBGNAT_TARGET_PAIRS
= \
1714 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1717 TOOLS_TARGET_PAIRS
= \
1718 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1719 indepsw.adb
<indepsw-gnu.adb
1721 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1723 THREADSLIB
= -lpthread
1724 GNATLIB_SHARED
= gnatlib-shared-dual
1726 LIBRARY_VERSION
:= $(LIB_VERSION
)
1729 ifeq ($(strip $(filter-out mips64el linux
%,$(arch
) $(osys
))),)
1730 LIBGNAT_TARGET_PAIRS_COMMON
= \
1731 a-intnam.ads
<a-intnam-linux.ads \
1732 s-inmaop.adb
<s-inmaop-posix.adb \
1733 s-intman.adb
<s-intman-posix.adb \
1734 s-linux.ads
<s-linux-mipsel.ads \
1735 s-osinte.adb
<s-osinte-posix.adb \
1736 s-osinte.ads
<s-osinte-linux.ads \
1737 s-osprim.adb
<s-osprim-posix.adb \
1738 s-taprop.adb
<s-taprop-linux.adb \
1739 s-tasinf.ads
<s-tasinf-linux.ads \
1740 s-tasinf.adb
<s-tasinf-linux.adb \
1741 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1742 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1743 g-sercom.adb
<g-sercom-linux.adb
1745 LIBGNAT_TARGET_PAIRS_32
= \
1746 system.ads
<system-linux-mipsel.ads
1748 LIBGNAT_TARGET_PAIRS_64
= \
1749 system.ads
<system-linux-mips64el.ads
1751 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1752 LIBGNAT_TARGET_PAIRS
= \
1753 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1755 LIBGNAT_TARGET_PAIRS
= \
1756 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1759 TOOLS_TARGET_PAIRS
= \
1760 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1761 indepsw.adb
<indepsw-gnu.adb
1763 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1765 THREADSLIB
= -lpthread
1766 GNATLIB_SHARED
= gnatlib-shared-dual
1768 LIBRARY_VERSION
:= $(LIB_VERSION
)
1771 ifeq ($(strip $(filter-out powerpc
% linux
%,$(arch
) $(osys
))),)
1772 LIBGNAT_TARGET_PAIRS_COMMON
= \
1773 a-exetim.adb
<a-exetim-posix.adb \
1774 a-exetim.ads
<a-exetim-default.ads \
1775 a-intnam.ads
<a-intnam-linux.ads \
1776 s-inmaop.adb
<s-inmaop-posix.adb \
1777 s-intman.adb
<s-intman-posix.adb \
1778 s-linux.ads
<s-linux.ads \
1779 s-osinte.adb
<s-osinte-posix.adb \
1780 s-tpopsp.adb
<s-tpopsp-tls.adb \
1781 g-sercom.adb
<g-sercom-linux.adb \
1782 $(ATOMICS_TARGET_PAIRS
)
1784 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1785 LIBGNAT_TARGET_PAIRS
= \
1786 $(LIBGNAT_TARGET_PAIRS_COMMON
)
1788 LIBGNAT_TARGET_PAIRS
+= \
1789 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1790 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1791 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1792 s-taspri.ads
<s-taspri-linux-xenomai.ads \
1793 system.ads
<system-linux-ppc.ads
1795 LIBGNAT_TARGET_PAIRS_32
= \
1796 system.ads
<system-linux-ppc.ads
1798 LIBGNAT_TARGET_PAIRS_64
= \
1799 system.ads
<system-linux-ppc64.ads
1801 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1802 LIBGNAT_TARGET_PAIRS
= \
1803 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1805 LIBGNAT_TARGET_PAIRS
= \
1806 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1809 LIBGNAT_TARGET_PAIRS
+= \
1810 s-osinte.ads
<s-osinte-linux.ads \
1811 s-osprim.adb
<s-osprim-posix.adb \
1812 s-taprop.adb
<s-taprop-linux.adb \
1813 s-tasinf.ads
<s-tasinf-linux.ads \
1814 s-tasinf.adb
<s-tasinf-linux.adb \
1815 s-taspri.ads
<s-taspri-posix-noaltstack.ads
1818 TOOLS_TARGET_PAIRS
= \
1819 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1820 indepsw.adb
<indepsw-gnu.adb
1822 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1824 THREADSLIB
= -lpthread
-lrt
1825 GNATLIB_SHARED
= gnatlib-shared-dual
1827 LIBRARY_VERSION
:= $(LIB_VERSION
)
1830 ifeq ($(strip $(filter-out arm
% linux-gnueabi
,$(arch
) $(osys
)-$(word 4,$(targ
)))),)
1831 LIBGNAT_TARGET_PAIRS
= \
1832 a-intnam.ads
<a-intnam-linux.ads \
1833 s-inmaop.adb
<s-inmaop-posix.adb \
1834 s-intman.adb
<s-intman-posix.adb \
1835 s-linux.ads
<s-linux.ads \
1836 s-osinte.adb
<s-osinte-posix.adb \
1837 s-osinte.ads
<s-osinte-linux.ads \
1838 s-osprim.adb
<s-osprim-posix.adb \
1839 s-taprop.adb
<s-taprop-linux.adb \
1840 s-tasinf.ads
<s-tasinf-linux.ads \
1841 s-tasinf.adb
<s-tasinf-linux.adb \
1842 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1843 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
1845 ifeq ($(strip $(filter-out arm
%b
,$(arch
))),)
1846 LIBGNAT_TARGET_PAIRS
+= \
1847 system.ads
<system-linux-armeb.ads
1849 LIBGNAT_TARGET_PAIRS
+= \
1850 system.ads
<system-linux-armel.ads
1853 TOOLS_TARGET_PAIRS
= \
1854 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1855 indepsw.adb
<indepsw-gnu.adb
1857 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1859 THREADSLIB
= -lpthread
1860 GNATLIB_SHARED
= gnatlib-shared-dual
1862 LIBRARY_VERSION
:= $(LIB_VERSION
)
1865 ifeq ($(strip $(filter-out sparc
% linux
%,$(arch
) $(osys
))),)
1866 LIBGNAT_TARGET_PAIRS_COMMON
= \
1867 a-intnam.ads
<a-intnam-linux.ads \
1868 s-inmaop.adb
<s-inmaop-posix.adb \
1869 s-intman.adb
<s-intman-posix.adb \
1870 s-linux.ads
<s-linux-sparc.ads \
1871 s-osinte.adb
<s-osinte-posix.adb \
1872 s-osinte.ads
<s-osinte-linux.ads \
1873 s-osprim.adb
<s-osprim-posix.adb \
1874 s-taprop.adb
<s-taprop-linux.adb \
1875 s-tasinf.ads
<s-tasinf-linux.ads \
1876 s-tasinf.adb
<s-tasinf-linux.adb \
1877 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1878 s-tpopsp.adb
<s-tpopsp-tls.adb
1880 LIBGNAT_TARGET_PAIRS_32
= \
1881 g-trasym.ads
<g-trasym-unimplemented.ads \
1882 g-trasym.adb
<g-trasym-unimplemented.adb \
1883 system.ads
<system-linux-sparc.ads
1885 LIBGNAT_TARGET_PAIRS_64
= \
1886 system.ads
<system-linux-sparcv9.ads
1888 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1889 LIBGNAT_TARGET_PAIRS
= \
1890 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1892 LIBGNAT_TARGET_PAIRS
= \
1893 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1896 TOOLS_TARGET_PAIRS
= \
1897 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1898 indepsw.adb
<indepsw-gnu.adb
1900 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1902 THREADSLIB
= -lpthread
1903 GNATLIB_SHARED
= gnatlib-shared-dual
1905 LIBRARY_VERSION
:= $(LIB_VERSION
)
1908 ifeq ($(strip $(filter-out hppa
% linux
%,$(arch
) $(osys
))),)
1909 LIBGNAT_TARGET_PAIRS
= \
1910 a-intnam.ads
<a-intnam-linux.ads \
1911 s-inmaop.adb
<s-inmaop-posix.adb \
1912 s-intman.adb
<s-intman-posix.adb \
1913 s-linux.ads
<s-linux-hppa.ads \
1914 s-osinte.adb
<s-osinte-posix.adb \
1915 s-osinte.ads
<s-osinte-linux.ads \
1916 s-osprim.adb
<s-osprim-posix.adb \
1917 s-taprop.adb
<s-taprop-linux.adb \
1918 s-tasinf.ads
<s-tasinf-linux.ads \
1919 s-tasinf.adb
<s-tasinf-linux.adb \
1920 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1921 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1922 g-trasym.ads
<g-trasym-unimplemented.ads \
1923 g-trasym.adb
<g-trasym-unimplemented.adb \
1924 system.ads
<system-linux-hppa.ads
1926 TOOLS_TARGET_PAIRS
= \
1927 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1928 indepsw.adb
<indepsw-gnu.adb
1930 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1932 THREADSLIB
= -lpthread
1933 GNATLIB_SHARED
= gnatlib-shared-dual
1935 LIBRARY_VERSION
:= $(LIB_VERSION
)
1938 ifeq ($(strip $(filter-out sh4
% linux
%,$(arch
) $(osys
))),)
1939 LIBGNAT_TARGET_PAIRS
= \
1940 a-intnam.ads
<a-intnam-linux.ads \
1941 s-inmaop.adb
<s-inmaop-posix.adb \
1942 s-intman.adb
<s-intman-posix.adb \
1943 s-linux.ads
<s-linux.ads \
1944 s-osinte.adb
<s-osinte-posix.adb \
1945 s-osinte.ads
<s-osinte-linux.ads \
1946 s-osprim.adb
<s-osprim-posix.adb \
1947 s-taprop.adb
<s-taprop-linux.adb \
1948 s-tasinf.ads
<s-tasinf-linux.ads \
1949 s-tasinf.adb
<s-tasinf-linux.adb \
1950 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1951 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1952 system.ads
<system-linux-sh4.ads
1954 TOOLS_TARGET_PAIRS
= \
1955 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1956 indepsw.adb
<indepsw-linux.adb
1958 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1961 THREADSLIB
= -lpthread
1962 GNATLIB_SHARED
= gnatlib-shared-dual
1964 LIBRARY_VERSION
:= $(LIB_VERSION
)
1967 ifeq ($(strip $(filter-out %ia64 linux
%,$(arch
) $(osys
))),)
1968 LIBGNAT_TARGET_PAIRS
= \
1969 a-exetim.adb
<a-exetim-posix.adb \
1970 a-exetim.ads
<a-exetim-default.ads \
1971 a-intnam.ads
<a-intnam-linux.ads \
1972 a-numaux.ads
<a-numaux-libc-x86.ads \
1973 s-inmaop.adb
<s-inmaop-posix.adb \
1974 s-intman.adb
<s-intman-posix.adb \
1975 s-linux.ads
<s-linux.ads \
1976 s-osinte.ads
<s-osinte-linux.ads \
1977 s-osinte.adb
<s-osinte-posix.adb \
1978 s-osprim.adb
<s-osprim-posix.adb \
1979 s-taprop.adb
<s-taprop-linux.adb \
1980 s-tasinf.ads
<s-tasinf-linux.ads \
1981 s-tasinf.adb
<s-tasinf-linux.adb \
1982 s-tpopsp.adb
<s-tpopsp-tls.adb \
1983 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1984 g-sercom.adb
<g-sercom-linux.adb \
1985 system.ads
<system-linux-ia64.ads \
1986 $(ATOMICS_TARGET_PAIRS
)
1988 TOOLS_TARGET_PAIRS
= \
1989 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1990 indepsw.adb
<indepsw-gnu.adb
1992 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1995 THREADSLIB
=-lpthread
-lrt
1996 GNATLIB_SHARED
=gnatlib-shared-dual
1998 LIBRARY_VERSION
:= $(LIB_VERSION
)
2001 ifeq ($(strip $(filter-out ia64
% hp hpux
%,$(targ
))),)
2002 LIBGNAT_TARGET_PAIRS
= \
2003 a-intnam.ads
<a-intnam-hpux.ads \
2004 s-inmaop.adb
<s-inmaop-posix.adb \
2005 s-intman.adb
<s-intman-posix.adb \
2006 s-osinte.adb
<s-osinte-posix.adb \
2007 s-osinte.ads
<s-osinte-hpux.ads \
2008 s-osprim.adb
<s-osprim-posix.adb \
2009 s-taprop.adb
<s-taprop-posix.adb \
2010 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2011 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2012 system.ads
<system-hpux-ia64.ads \
2013 $(ATOMICS_TARGET_PAIRS
)
2015 TOOLS_TARGET_PAIRS
= \
2016 mlib-tgt-specific.adb
<mlib-tgt-specific-ia64-hpux.adb
2019 THREADSLIB
=-lpthread
2020 GNATLIB_SHARED
=gnatlib-shared-dual
2024 LIBRARY_VERSION
:= $(LIB_VERSION
)
2027 ifeq ($(strip $(filter-out alpha
% linux
%,$(arch
) $(osys
))),)
2028 LIBGNAT_TARGET_PAIRS
= \
2029 a-intnam.ads
<a-intnam-linux.ads \
2030 s-inmaop.adb
<s-inmaop-posix.adb \
2031 s-intman.adb
<s-intman-posix.adb \
2032 s-linux.ads
<s-linux-alpha.ads \
2033 s-osinte.ads
<s-osinte-linux.ads \
2034 s-osinte.adb
<s-osinte-posix.adb \
2035 s-osprim.adb
<s-osprim-posix.adb \
2036 s-taprop.adb
<s-taprop-linux.adb \
2037 s-tasinf.ads
<s-tasinf-linux.ads \
2038 s-tasinf.adb
<s-tasinf-linux.adb \
2039 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2040 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2041 g-trasym.ads
<g-trasym-unimplemented.ads \
2042 g-trasym.adb
<g-trasym-unimplemented.adb \
2043 system.ads
<system-linux-alpha.ads \
2044 $(ATOMICS_TARGET_PAIRS
)
2046 TOOLS_TARGET_PAIRS
= \
2047 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2048 indepsw.adb
<indepsw-gnu.adb
2050 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2053 THREADSLIB
=-lpthread
2054 GNATLIB_SHARED
=gnatlib-shared-dual
2055 LIBRARY_VERSION
:= $(LIB_VERSION
)
2058 ifeq ($(strip $(filter-out %x86_64 linux
%,$(arch
) $(osys
))),)
2059 LIBGNAT_TARGET_PAIRS
= \
2060 a-exetim.adb
<a-exetim-posix.adb \
2061 a-exetim.ads
<a-exetim-default.ads \
2062 a-intnam.ads
<a-intnam-linux.ads \
2063 a-numaux.adb
<a-numaux-x86.adb \
2064 a-numaux.ads
<a-numaux-x86.ads \
2065 s-inmaop.adb
<s-inmaop-posix.adb \
2066 s-intman.adb
<s-intman-posix.adb \
2067 s-linux.ads
<s-linux.ads \
2068 s-osinte.ads
<s-osinte-linux.ads \
2069 s-osinte.adb
<s-osinte-posix.adb \
2070 s-osprim.adb
<s-osprim-posix.adb \
2071 s-taprop.adb
<s-taprop-linux.adb \
2072 s-tasinf.ads
<s-tasinf-linux.ads \
2073 s-tasinf.adb
<s-tasinf-linux.adb \
2074 s-tpopsp.adb
<s-tpopsp-tls.adb \
2075 s-taspri.ads
<s-taspri-posix.ads \
2076 g-sercom.adb
<g-sercom-linux.adb \
2077 system.ads
<system-linux-x86_64.ads \
2078 $(ATOMICS_TARGET_PAIRS
)
2080 TOOLS_TARGET_PAIRS
= \
2081 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2082 indepsw.adb
<indepsw-gnu.adb
2084 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
2085 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2087 THREADSLIB
=-lpthread
-lrt
2088 GNATLIB_SHARED
=gnatlib-shared-dual
2090 LIBRARY_VERSION
:= $(LIB_VERSION
)
2093 ifeq ($(strip $(filter-out darwin
%,$(osys
))),)
2094 ifeq ($(strip $(filter-out %86,$(arch
))),)
2095 LIBGNAT_TARGET_PAIRS
= \
2096 a-intnam.ads
<a-intnam-darwin.ads \
2097 i-forbla.adb
<i-forbla-darwin.adb \
2098 s-inmaop.adb
<s-inmaop-posix.adb \
2099 s-intman.adb
<s-intman-susv3.adb \
2100 s-osinte.adb
<s-osinte-darwin.adb \
2101 s-osinte.ads
<s-osinte-darwin.ads \
2102 s-osprim.adb
<s-osprim-darwin.adb \
2103 s-taprop.adb
<s-taprop-posix.adb \
2104 s-taspri.ads
<s-taspri-posix.ads \
2105 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2106 g-trasym.ads
<g-trasym-unimplemented.ads \
2107 g-trasym.adb
<g-trasym-unimplemented.adb \
2108 a-numaux.ads
<a-numaux-x86.ads \
2109 a-numaux.adb
<a-numaux-x86.adb
2110 ifeq ($(strip $(MULTISUBDIR
)),/x86_64
)
2111 LIBGNAT_TARGET_PAIRS
+= \
2112 system.ads
<system-darwin-x86_64.ads
2114 LIBGNAT_TARGET_PAIRS
+= \
2115 system.ads
<system-darwin-x86.ads
2119 ifeq ($(strip $(filter-out %x86_64
,$(arch
))),)
2120 LIBGNAT_TARGET_PAIRS
= \
2121 a-intnam.ads
<a-intnam-darwin.ads \
2122 i-forbla.adb
<i-forbla-darwin.adb \
2123 s-inmaop.adb
<s-inmaop-posix.adb \
2124 s-intman.adb
<s-intman-susv3.adb \
2125 s-osinte.adb
<s-osinte-darwin.adb \
2126 s-osinte.ads
<s-osinte-darwin.ads \
2127 s-osprim.adb
<s-osprim-darwin.adb \
2128 s-taprop.adb
<s-taprop-posix.adb \
2129 s-taspri.ads
<s-taspri-posix.ads \
2130 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2131 g-trasym.ads
<g-trasym-unimplemented.ads \
2132 g-trasym.adb
<g-trasym-unimplemented.adb \
2133 a-numaux.ads
<a-numaux-x86.ads \
2134 a-numaux.adb
<a-numaux-x86.adb \
2135 $(ATOMICS_TARGET_PAIRS
)
2136 ifeq ($(strip $(MULTISUBDIR
)),/i386
)
2137 LIBGNAT_TARGET_PAIRS
+= \
2138 system.ads
<system-darwin-x86.ads
2140 LIBGNAT_TARGET_PAIRS
+= \
2141 system.ads
<system-darwin-x86_64.ads
2145 ifeq ($(strip $(filter-out powerpc
%,$(arch
))),)
2146 LIBGNAT_TARGET_PAIRS
= \
2147 a-intnam.ads
<a-intnam-darwin.ads \
2148 i-forbla.adb
<i-forbla-darwin.adb \
2149 s-inmaop.adb
<s-inmaop-posix.adb \
2150 s-intman.adb
<s-intman-posix.adb \
2151 s-osinte.adb
<s-osinte-darwin.adb \
2152 s-osinte.ads
<s-osinte-darwin.ads \
2153 s-osprim.adb
<s-osprim-posix.adb \
2154 s-taprop.adb
<s-taprop-posix.adb \
2155 s-taspri.ads
<s-taspri-posix.ads \
2156 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2157 a-numaux.ads
<a-numaux-darwin.ads \
2158 a-numaux.adb
<a-numaux-darwin.adb \
2159 g-trasym.ads
<g-trasym-unimplemented.ads \
2160 g-trasym.adb
<g-trasym-unimplemented.adb \
2161 system.ads
<system-darwin-ppc.ads
2164 TOOLS_TARGET_PAIRS
= \
2165 mlib-tgt-specific.adb
<mlib-tgt-specific-darwin.adb
2168 GNATLIB_SHARED
= gnatlib-shared-darwin
2169 SO_OPTS
= -Wl
,-flat_namespace
-shared-libgcc
2172 LIBRARY_VERSION
:= $(LIB_VERSION
)
2177 ifneq ($(EH_MECHANISM
),)
2178 LIBGNAT_TARGET_PAIRS
+= a-exexpr.adb
<a-exexpr
$(EH_MECHANISM
).adb
2179 EXTRA_LIBGNAT_SRCS
+=raise
$(EH_MECHANISM
).c
2180 EXTRA_LIBGNAT_OBJS
+=raise
$(EH_MECHANISM
).o
2183 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
2184 # explicitly already. The base files (a-except.ad?) are used only for building
2185 # the compiler and other basic tools.
2186 # These base versions lack Ada 2005 additions which would cause bootstrap
2187 # problems if included in the compiler and other basic tools.
2189 ifeq ($(filter a-except
%,$(LIBGNAT_TARGET_PAIRS
)),)
2190 LIBGNAT_TARGET_PAIRS
+= \
2191 a-except.ads
<a-except-2005.ads \
2192 a-except.adb
<a-except-2005.adb
2195 # The runtime library for gnat comprises two directories. One contains the
2196 # Ada source files that the compiler (gnat1) needs -- these files are listed
2197 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
2198 # corresponding .ali files for the parts written in Ada, libgnat.a for
2199 # the parts of the runtime written in C, and libgthreads.a for the pthreads
2200 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
2201 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
2202 # go into the directory. The pthreads emulation is built in the threads
2203 # subdirectory and copied.
2204 LIBGNAT_SRCS
= adadecode.c adadecode.h adaint.c adaint.h \
2205 argv.c cio.c cstreams.c errno.c exit.c cal.c ctrl_c.c env.c env.h \
2206 arit64.c raise.h raise.c sysdep.c aux-io.c init.c initialize.c \
2207 locales.c seh_init.c final.c tracebak.c tb-alvms.c tb-alvxw.c \
2208 tb-gcc.c expect.c mkdir.c socket.c gsocket.h targext.c
$(EXTRA_LIBGNAT_SRCS
)
2210 LIBGNAT_OBJS
= adadecode.o adaint.o argv.o cio.o cstreams.o ctrl_c.o \
2211 errno.o exit.o env.o raise.o sysdep.o aux-io.o init.o initialize.o \
2212 locales.o seh_init.o cal.o arit64.o final.o tracebak.o expect.o \
2213 mkdir.o socket.o targext.o
$(EXTRA_LIBGNAT_OBJS
)
2215 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2216 # the library installation will change and there will be a
2217 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2218 # from ADA_INCLUDE_SRCS.
2220 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2221 # the following include file:
2223 include $(fsrcdir
)/ada
/Makefile.rtl
2225 GNATRTL_LINEARALGEBRA_OBJS
= a-nlcoar.o a-nllcar.o a-nllrar.o a-nlrear.o \
2226 a-nucoar.o a-nurear.o i-forbla.o i-forlap.o s-gearop.o
2228 GNATRTL_OBJS
= $(GNATRTL_NONTASKING_OBJS
) $(GNATRTL_TASKING_OBJS
) \
2229 $(GNATRTL_LINEARALGEBRA_OBJS
) g-trasym.o memtrack.o
2231 # Default run time files
2234 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2235 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2236 sequenio.ads system.ads memtrack.adb \
2237 a-
[a-o
]*.adb a-
[p-z
]*.adb a-
[a-o
]*.ads a-
[p-z
]*.ads g-
*.ad? i-
*.ad? \
2238 s-
[a-o
]*.adb s-
[p-z
]*.adb s-
[a-o
]*.ads s-
[p-z
]*.ads
2240 LIBGNAT
=..
/$(RTSDIR
)/libgnat.a
2242 GCC_LINK
=$(CC
) $(GCC_LINK_FLAGS
) $(ADA_INCLUDES
)
2244 # when compiling the tools, the runtime has to be first on the path so that
2245 # it hides the runtime files lying with the rest of the sources
2246 ifeq ($(TOOLSCASE
),native
)
2247 vpath
%.ads ..
/$(RTSDIR
) ..
/
2248 vpath
%.adb ..
/$(RTSDIR
) ..
/
2249 vpath
%.c ..
/$(RTSDIR
) ..
/
2250 vpath
%.h ..
/$(RTSDIR
) ..
/
2253 # in the cross tools case, everything is compiled with the native
2254 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2255 ifeq ($(TOOLSCASE
),cross
)
2263 $(GNATMAKE
) -c
-b
$(ADA_INCLUDES
) \
2264 --GNATBIND
="$(GNATBIND)" --GCC
="$(CC) $(ALL_ADAFLAGS)" \
2265 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2266 gnatclean
-bargs
$(ADA_INCLUDES
) $(GNATBIND_FLAGS
)
2267 $(GNATLINK
) -v gnatcmd
-o ..
/..
/gnat
$(exeext
) \
2268 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2269 $(GNATLINK
) -v gnatchop
-o ..
/..
/gnatchop
$(exeext
) \
2270 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2271 $(GNATLINK
) -v gnatkr
-o ..
/..
/gnatkr
$(exeext
) \
2272 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2273 $(GNATLINK
) -v gnatls
-o ..
/..
/gnatls
$(exeext
) \
2274 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2275 $(GNATLINK
) -v gnatprep
-o ..
/..
/gnatprep
$(exeext
) \
2276 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2277 $(GNATLINK
) -v gnatxref
-o ..
/..
/gnatxref
$(exeext
) \
2278 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2279 $(GNATLINK
) -v gnatfind
-o ..
/..
/gnatfind
$(exeext
) \
2280 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2281 $(GNATLINK
) -v gnatname
-o ..
/..
/gnatname
$(exeext
) \
2282 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2283 $(GNATLINK
) -v gnatclean
-o ..
/..
/gnatclean
$(exeext
) \
2284 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2286 ..
/..
/gnatsym
$(exeext
):
2287 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatsym
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2288 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatsym
2289 $(GNATLINK
) -v gnatsym
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2291 ..
/..
/gnatdll
$(exeext
):
2292 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatdll
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2293 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatdll
2294 $(GNATLINK
) -v gnatdll
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2296 ..
/..
/vxaddr2line
$(exeext
): targext.o
2297 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vxaddr2line
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2298 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vxaddr2line
2299 $(GNATLINK
) -v vxaddr2line
-o
$@
--GCC
="$(GCC_LINK)" targext.o
$(CLIB
)
2301 gnatmake-re
: link.o targext.o
2302 $(GNATMAKE
) $(ADA_INCLUDES
) -u sdefault
--GCC
="$(CC) $(MOST_ADA_FLAGS)"
2303 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2304 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmake
2305 $(GNATLINK
) -v gnatmake
-o ..
/..
/gnatmake
$(exeext
) \
2306 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2308 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2309 # with the former version of gnatlink itself which cannot override itself.
2310 gnatlink-re
: link.o targext.o
2311 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlink
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2312 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlink
2313 $(GNATLINK
) -v gnatlink
-o ..
/..
/gnatlinknew
$(exeext
) \
2314 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2315 $(MV
) ..
/..
/gnatlinknew
$(exeext
) ..
/..
/gnatlink
$(exeext
)
2317 # Needs to be built with CC=gcc
2318 # Since the RTL should be built with the latest compiler, remove the
2319 # stamp target in the parent directory whenever gnat1 is rebuilt
2321 # Likewise for the tools
2322 ..
/..
/gnatmake
$(exeext
): $(P
) b_gnatm.o link.o targext.o
$(GNATMAKE_OBJS
)
2323 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatm.o
$(GNATMAKE_OBJS
) \
2326 ..
/..
/gnatlink
$(exeext
): $(P
) b_gnatl.o link.o targext.o
$(GNATLINK_OBJS
)
2327 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatl.o
$(GNATLINK_OBJS
) \
2330 ..
/stamp-gnatlib-
$(RTSDIR
):
2331 @if
[ ! -f stamp-gnatlib-
$(RTSDIR
) ] ; \
2333 $(ECHO
) You must first build the GNAT library
: make gnatlib
; \
2339 install-gnatlib
: ..
/stamp-gnatlib-
$(RTSDIR
)
2340 # Create the directory before deleting it, in case the directory is
2341 # a list of directories (as it may be on VMS). This ensures we are
2342 # deleting the right one.
2343 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2344 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2345 $(RMDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2346 $(RMDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2347 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2348 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2349 for file in
$(RTSDIR
)/*.ali
; do \
2350 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2352 -$(INSTALL_DATA
) $(RTSDIR
)/g-trasym
$(objext
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2353 -cd
$(RTSDIR
); for file in
*$(arext
);do \
2354 $(INSTALL_DATA
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2355 $(RANLIB_FOR_TARGET
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/$$file; \
2357 -$(foreach file
, $(EXTRA_ADALIB_FILES
), \
2358 $(INSTALL_DATA_DATE
) $(RTSDIR
)/$(file
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
) && \
2360 # Install the shared libraries, if any, using $(INSTALL) instead
2361 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2362 # for shared libraries on some targets, e.g. on HP-UX where the x
2363 # permission is required.
2364 # Also install the .dSYM directories if they exist (these directories
2365 # contain the debug information for the shared libraries on darwin)
2366 for file in gnat gnarl
; do \
2367 if
[ -f
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) ]; then \
2368 $(INSTALL
) $(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2369 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2371 if
[ -f
$(RTSDIR
)/lib
$${file}$(soext
) ]; then \
2372 $(LN_S
) lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2373 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/lib
$${file}$(soext
); \
2375 if
[ -d
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM
]; then \
2376 $(CP
) -r
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM \
2377 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2380 # This copy must be done preserving the date on the original file.
2381 for file in
$(RTSDIR
)/*.ad?
; do \
2382 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_INCLUDE_DIR
); \
2384 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.adb
2385 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.ads
2387 ..
/stamp-gnatlib2-
$(RTSDIR
):
2388 $(RM
) $(RTSDIR
)/s-
*.ali
2389 $(RM
) $(RTSDIR
)/s-
*$(objext
)
2390 $(RM
) $(RTSDIR
)/a-
*.ali
2391 $(RM
) $(RTSDIR
)/a-
*$(objext
)
2392 $(RM
) $(RTSDIR
)/*.ali
2393 $(RM
) $(RTSDIR
)/*$(objext
)
2394 $(RM
) $(RTSDIR
)/*$(arext
)
2395 $(RM
) $(RTSDIR
)/*$(soext
)
2396 touch ..
/stamp-gnatlib2-
$(RTSDIR
)
2397 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2399 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
2400 # successive target commands. Although the Gnu make documentation
2401 # implies this is true on all systems, I suspect it may not be, So care
2402 # has been taken to allow a sed script to look for ";)" and substitue
2403 # for ";" the appropriate character in the range of lines below
2404 # beginning with "GNULLI Begin" and ending with "GNULLI End"
2406 # GNULLI Begin ###########################################################
2408 ..
/stamp-gnatlib1-
$(RTSDIR
): Makefile ..
/stamp-gnatlib2-
$(RTSDIR
)
2411 $(CHMOD
) u
+w
$(RTSDIR
)
2412 # Copy target independent sources
2413 $(foreach f
,$(ADA_INCLUDE_SRCS
) $(LIBGNAT_SRCS
), \
2414 $(LN_S
) $(fsrcpfx
)ada
/$(f
) $(RTSDIR
) ;) true
2415 # Remove files to be replaced by target dependent sources
2416 $(RM
) $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2417 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
))))
2418 for f in
$(RTSDIR
)/*-*-*.ads
$(RTSDIR
)/*-*-*.adb
; do \
2420 $(RTSDIR
)/s-stratt-
*) ;; \
2424 # Copy new target dependent sources
2425 $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2426 $(LN_S
) $(fsrcpfx
)ada
/$(word 2,$(subst <, ,$(PAIR
))) \
2427 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
)));)
2429 $(CP
) $(srcdir)/tsystem.h rts
2430 # Copy generated target dependent sources
2431 $(RM
) $(RTSDIR
)/s-oscons.ads
2432 (cd
$(RTSDIR
); $(LN_S
) ..
/s-oscons.ads s-oscons.ads
)
2433 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2434 touch ..
/stamp-gnatlib1-
$(RTSDIR
)
2436 # GNULLI End #############################################################
2438 # Don't use semicolon separated shell commands that involve list expansions.
2439 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
2440 # line lengths in excess of 256 characters.
2441 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
2442 # is guaranteed to overflow the buffer.
2444 gnatlib
: ..
/stamp-gnatlib1-
$(RTSDIR
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2445 $(MAKE
) -C
$(RTSDIR
) \
2446 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2447 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2448 INCLUDES
="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2449 CFLAGS
="$(GNATLIBCFLAGS_FOR_C)" \
2450 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2452 -f ..
/Makefile
$(LIBGNAT_OBJS
)
2453 $(MAKE
) -C
$(RTSDIR
) \
2454 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2455 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2457 CFLAGS
="$(GNATLIBCFLAGS)" \
2458 ADAFLAGS
="$(GNATLIBFLAGS)" \
2459 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2463 $(RM
) $(RTSDIR
)/libgnat
$(arext
) $(RTSDIR
)/libgnarl
$(arext
)
2464 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnat
$(arext
) \
2465 $(addprefix $(RTSDIR
)/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
2466 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnat
$(arext
)
2467 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnarl
$(arext
) \
2468 $(addprefix $(RTSDIR
)/,$(GNATRTL_TASKING_OBJS
))
2469 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnarl
$(arext
)
2470 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnala
$(arext
) \
2471 $(addprefix $(RTSDIR
)/,$(GNATRTL_LINEARALGEBRA_OBJS
))
2472 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnala
$(arext
)
2473 ifeq ($(GMEM_LIB
),gmemlib
)
2474 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgmem
$(arext
) \
2475 $(RTSDIR
)/memtrack.o
2476 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgmem
$(arext
)
2478 $(CHMOD
) a-wx
$(RTSDIR
)/*.ali
2479 touch ..
/stamp-gnatlib-
$(RTSDIR
)
2481 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2482 gnatlib-shared-default
:
2483 $(MAKE
) $(FLAGS_TO_PASS
) \
2484 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2485 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2486 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2487 MULTISUBDIR
="$(MULTISUBDIR)" \
2488 THREAD_KIND
="$(THREAD_KIND)" \
2490 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2491 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2492 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
$(GNATLIBCFLAGS
) \
2493 $(TARGET_LIBGCC2_CFLAGS
) \
2494 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2495 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2496 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2498 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2499 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
$(GNATLIBCFLAGS
) \
2500 $(TARGET_LIBGCC2_CFLAGS
) \
2501 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2502 $(GNATRTL_TASKING_OBJS
) \
2503 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2505 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2507 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2510 gnatlib-shared-dual
:
2511 $(MAKE
) $(FLAGS_TO_PASS
) \
2512 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2513 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2514 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2515 MULTISUBDIR
="$(MULTISUBDIR)" \
2516 THREAD_KIND
="$(THREAD_KIND)" \
2517 gnatlib-shared-default
2518 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2519 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2520 $(MAKE
) $(FLAGS_TO_PASS
) \
2521 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2522 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2523 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2524 MULTISUBDIR
="$(MULTISUBDIR)" \
2525 THREAD_KIND
="$(THREAD_KIND)" \
2527 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2529 gnatlib-shared-dual-win32
:
2530 $(MAKE
) $(FLAGS_TO_PASS
) \
2531 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2532 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2533 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2534 MULTISUBDIR
="$(MULTISUBDIR)" \
2535 THREAD_KIND
="$(THREAD_KIND)" \
2536 gnatlib-shared-win32
2537 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2538 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2539 $(MAKE
) $(FLAGS_TO_PASS
) \
2540 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2541 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2542 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2543 MULTISUBDIR
="$(MULTISUBDIR)" \
2544 THREAD_KIND
="$(THREAD_KIND)" \
2546 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2548 # ??? we need to add the option to support auto-import of arrays/records to
2549 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2550 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2552 gnatlib-shared-win32
:
2553 $(MAKE
) $(FLAGS_TO_PASS
) \
2554 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2555 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2556 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2557 MULTISUBDIR
="$(MULTISUBDIR)" \
2558 THREAD_KIND
="$(THREAD_KIND)" \
2560 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2561 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2562 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
-shared-libgcc \
2563 $(TARGET_LIBGCC2_CFLAGS
) \
2564 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2565 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2566 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) $(MISCLIB
)
2567 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2568 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared
-shared-libgcc \
2569 $(TARGET_LIBGCC2_CFLAGS
) \
2570 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2571 $(GNATRTL_TASKING_OBJS
) \
2572 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2573 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2575 gnatlib-shared-darwin
:
2576 $(MAKE
) $(FLAGS_TO_PASS
) \
2577 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2578 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2579 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) -fno-common" \
2580 MULTISUBDIR
="$(MULTISUBDIR)" \
2581 THREAD_KIND
="$(THREAD_KIND)" \
2583 $(RM
) $(RTSDIR
)/libgnat
$(soext
) $(RTSDIR
)/libgnarl
$(soext
)
2584 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2585 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
2586 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2587 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2589 -Wl
,-install_name
,@rpath
/libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2591 cd
$(RTSDIR
); `echo "$(GCC_FOR_TARGET)" \
2592 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
2593 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2594 $(GNATRTL_TASKING_OBJS
) \
2596 -Wl
,-install_name
,@rpath
/libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2597 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2598 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2600 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2602 cd
$(RTSDIR
); dsymutil libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2603 cd
$(RTSDIR
); dsymutil libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2606 $(MAKE
) $(FLAGS_TO_PASS
) \
2607 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2608 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2609 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2610 MULTISUBDIR
="$(MULTISUBDIR)" \
2611 THREAD_KIND
="$(THREAD_KIND)" \
2613 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2615 ..
/..
/gnatsym
-s SYMVEC_
$$$$.opt \
2616 $(LIBGNAT_OBJS
) $(GNATRTL_NONTASKING_OBJS
) && \
2617 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2618 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) libgnat.a \
2619 sys\
$$library:trace.exe \
2620 --for-linker
=/noinform \
2621 --for-linker
=SYMVEC_
$$$$.opt \
2622 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2624 ..
/..
/gnatsym
-s SYMVEC_
$$$$.opt \
2625 $(GNATRTL_TASKING_OBJS
) && \
2626 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2627 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2628 libgnarl.a libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2629 sys\
$$library:trace.exe \
2630 --for-linker
=/noinform \
2631 --for-linker
=SYMVEC_
$$$$.opt \
2632 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2635 $(MAKE
) $(FLAGS_TO_PASS
) \
2636 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2637 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2638 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2639 MULTISUBDIR
="$(MULTISUBDIR)" \
2640 THREAD_KIND
="$(THREAD_KIND)" \
2641 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" \
2645 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="" \
2646 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2647 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2648 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2649 $(MAKE
) $(FLAGS_TO_PASS
) \
2651 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2652 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2653 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2654 MULTISUBDIR
="$(MULTISUBDIR)" \
2655 THREAD_KIND
="$(THREAD_KIND)" \
2656 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2659 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="-gcc" \
2660 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2661 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2662 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2663 $(MAKE
) $(FLAGS_TO_PASS
) \
2664 EH_MECHANISM
="-gcc" \
2665 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2666 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2667 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2668 MULTISUBDIR
="$(MULTISUBDIR)" \
2669 THREAD_KIND
="$(THREAD_KIND)" \
2670 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2672 # .s files for cross-building
2674 make
$(GNAT1_ADA_OBJS
) CC
="gcc -B../stage1/" CFLAGS
="-S -gnatp"
2676 # Compiling object files from source files.
2678 # Note that dependencies on obstack.h are not written
2679 # because that file is not part of GCC.
2680 # Dependencies on gvarargs.h are not written
2681 # because all that file does, when not compiling with GCC,
2682 # is include the system varargs.h.
2684 b_gnatl.adb
: $(GNATLINK_OBJS
)
2685 $(GNATBIND
) $(ADA_INCLUDES
) -o b_gnatl.adb gnatlink.ali
2687 b_gnatl.o
: b_gnatl.adb
2688 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) -gnatws
-gnatyN \
2691 b_gnatm.adb
: $(GNATMAKE_OBJS
)
2692 $(GNATBIND
) $(ADA_INCLUDES
) -o b_gnatm.adb gnatmake.ali
2694 b_gnatm.o
: b_gnatm.adb
2695 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) -gnatws
-gnatyN \
2698 ADA_INCLUDE_DIR
= $(libsubdir
)/adainclude
2699 ADA_RTL_OBJ_DIR
= $(libsubdir
)/adalib
2703 # force no sibling call optimization on s-traceb.o so the number of stack
2704 # frames to be skipped when computing a call chain is not modified by
2707 s-traceb.o
: s-traceb.adb s-traceb.ads
2708 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) \
2709 $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2711 # force debugging information on s-tasdeb.o so that it is always
2712 # possible to set conditional breakpoints on tasks.
2714 s-tasdeb.o
: s-tasdeb.adb s-tasdeb.ads
2715 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2718 # force debugging information on s-vaflop.o so that it is always
2719 # possible to call the VAX float debug print routines.
2720 # force at least -O so that the inline assembly works.
2722 s-vaflop.o
: s-vaflop.adb s-vaflop.ads
2723 $(CC
) -c
-O
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
2726 # force no function reordering on a-except.o because of the exclusion bounds
2727 # mechanism (see the source file for more detailed information).
2728 # force debugging information on a-except.o so that it is always
2729 # possible to set conditional breakpoints on exceptions.
2730 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2732 a-except.o
: a-except.adb a-except.ads
2733 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O1
-fno-inline \
2734 $(NO_REORDER_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2736 # compile s-except.o without optimization and with debug info to let the
2737 # debugger set breakpoints and inspect subprogram parameters on exception
2740 s-except.o
: s-except.adb s-except.ads
2741 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2744 # force debugging information on s-assert.o so that it is always
2745 # possible to set breakpoint on assert failures.
2747 s-assert.o
: s-assert.adb s-assert.ads
2748 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
2751 # force debugging information on a-tags.o so that the debugger can find
2752 # the description of Ada.Tags.Type_Specific_Data.
2754 a-tags.o
: a-tags.adb a-tags.ads
2755 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
2758 # need to keep the frame pointer in this file to pop the stack properly on
2760 tracebak.o
: tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2761 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
2762 $(INCLUDES
) -fno-omit-frame-pointer
$< $(OUTPUT_OPTION
)
2764 adadecode.o
: adadecode.c adadecode.h
2768 deftarg.o
: deftarg.c
2770 exit.o
: adaint.h exit.c
2773 locales.o
: locales.c
2775 socket.o
: socket.c gsocket.h
2777 raise.o
: raise.c raise.h
2778 vx_stack_info.o
: vx_stack_info.c
2780 raise-gcc.o
: raise-gcc.c raise.h
2781 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2782 -iquote
$(srcdir) -iquote
$(srcdir)/..
/libgcc \
2783 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2786 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2787 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2789 init.o
: init.c adaint.h raise.h
2790 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2791 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2793 initialize.o
: initialize.c raise.h
2794 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2795 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2798 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2799 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
2802 targext.o
: targext.c
2803 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2805 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
2808 # In GNU Make, ignore whether `stage*' exists.
2809 .PHONY
: stage1 stage2 stage3 stage4
clean realclean TAGS bootstrap
2810 .PHONY
: risky-stage1 risky-stage2 risky-stage3 risky-stage4