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
416 LIB_VERSION
= $(strip $(shell grep
' Library_Version :' $(fsrcpfx
)ada
/gnatvsn.ads | sed
-e
's/.*"\(.*\)".*/\1/'))
418 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
419 # $(strip STRING) removes leading and trailing spaces from STRING.
420 # If what's left is null then it's a match.
422 ifeq ($(strip $(filter-out m68k
% wrs vx
%,$(targ
))),)
423 LIBGNAT_TARGET_PAIRS
= \
424 a-intnam.ads
<a-intnam-vxworks.ads \
425 a-numaux.ads
<a-numaux-vxworks.ads \
426 s-inmaop.adb
<s-inmaop-vxworks.adb \
427 s-interr.adb
<s-interr-hwint.adb \
428 s-intman.ads
<s-intman-vxworks.ads \
429 s-intman.adb
<s-intman-vxworks.adb \
430 s-osinte.adb
<s-osinte-vxworks.adb \
431 s-osinte.ads
<s-osinte-vxworks.ads \
432 s-osprim.adb
<s-osprim-vxworks.adb \
433 s-parame.ads
<s-parame-vxworks.ads \
434 s-parame.adb
<s-parame-vxworks.adb \
435 s-stchop.ads
<s-stchop-limit.ads \
436 s-stchop.adb
<s-stchop-vxworks.adb \
437 s-taprop.adb
<s-taprop-vxworks.adb \
438 s-tasinf.ads
<s-tasinf-vxworks.ads \
439 s-taspri.ads
<s-taspri-vxworks.ads \
440 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
441 s-vxwork.ads
<s-vxwork-m68k.ads \
442 g-socthi.ads
<g-socthi-vxworks.ads \
443 g-socthi.adb
<g-socthi-vxworks.adb \
444 g-stsifd.adb
<g-stsifd-sockets.adb \
445 g-trasym.ads
<g-trasym-unimplemented.ads \
446 g-trasym.adb
<g-trasym-unimplemented.adb \
447 system.ads
<system-vxworks-m68k.ads
449 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb
451 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
452 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
454 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
455 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
457 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
458 LIBGNAT_TARGET_PAIRS
+= \
459 s-traces.adb
<s-traces-default.adb \
460 s-tratas.adb
<s-tratas-default.adb \
461 s-trafor.adb
<s-trafor-default.adb \
462 s-trafor.ads
<s-trafor-default.ads \
463 s-tfsetr.adb
<s-tfsetr-vxworks.adb
467 ifeq ($(strip $(filter-out powerpc
% wrs vxworks
,$(targ
))),)
468 LIBGNAT_TARGET_PAIRS
= \
469 a-intnam.ads
<a-intnam-vxworks.ads \
470 a-numaux.ads
<a-numaux-vxworks.ads \
471 s-inmaop.adb
<s-inmaop-vxworks.adb \
472 s-intman.ads
<s-intman-vxworks.ads \
473 s-intman.adb
<s-intman-vxworks.adb \
474 s-osinte.ads
<s-osinte-vxworks.ads \
475 s-osinte.adb
<s-osinte-vxworks.adb \
476 s-osprim.adb
<s-osprim-vxworks.adb \
477 s-parame.ads
<s-parame-vxworks.ads \
478 s-parame.adb
<s-parame-vxworks.adb \
479 s-stchop.ads
<s-stchop-limit.ads \
480 s-stchop.adb
<s-stchop-vxworks.adb \
481 s-taprop.adb
<s-taprop-vxworks.adb \
482 s-tasinf.ads
<s-tasinf-vxworks.ads \
483 s-taspri.ads
<s-taspri-vxworks.ads \
484 s-vxwork.ads
<s-vxwork-ppc.ads \
485 g-socthi.ads
<g-socthi-vxworks.ads \
486 g-socthi.adb
<g-socthi-vxworks.adb \
487 g-stsifd.adb
<g-stsifd-sockets.adb \
488 g-trasym.ads
<g-trasym-unimplemented.ads \
489 g-trasym.adb
<g-trasym-unimplemented.adb \
490 $(ATOMICS_TARGET_PAIRS
)
493 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
494 indepsw.adb
<indepsw-gnu.adb
496 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
497 LIBGNAT_TARGET_PAIRS
+= \
498 s-traces.adb
<s-traces-default.adb \
499 s-trafor.adb
<s-trafor-default.adb \
500 s-trafor.ads
<s-trafor-default.ads \
501 s-tratas.adb
<s-tratas-default.adb \
502 s-tfsetr.adb
<s-tfsetr-vxworks.adb
505 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
506 LIBGNAT_TARGET_PAIRS
+= \
507 s-vxwext.ads
<s-vxwext-rtp.ads \
508 s-vxwext.adb
<s-vxwext-rtp.adb \
509 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
510 system.ads
<system-vxworks-ppc-rtp.ads
512 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
514 ifeq ($(strip $(filter-out rtp-smp
,$(THREAD_KIND
))),)
515 LIBGNAT_TARGET_PAIRS
+= \
516 s-vxwext.ads
<s-vxwext-rtp.ads \
517 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
518 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
519 system.ads
<system-vxworks-ppc-rtp.ads
521 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
522 EXTRA_GNATRTL_TASKING_OBJS
=affinity.o
524 ifeq ($(strip $(filter-out kernel-smp
,$(THREAD_KIND
))),)
525 LIBGNAT_TARGET_PAIRS
+= \
526 s-interr.adb
<s-interr-hwint.adb \
527 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
528 s-vxwext.ads
<s-vxwext-kernel.ads \
529 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
530 system.ads
<system-vxworks-ppc-kernel.ads
533 EXTRA_GNATRTL_TASKING_OBJS
=affinity.o
535 LIBGNAT_TARGET_PAIRS
+= \
536 s-interr.adb
<s-interr-hwint.adb \
537 s-tpopsp.adb
<s-tpopsp-vxworks.adb
539 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
541 LIBGNAT_TARGET_PAIRS
+= \
542 s-vxwext.ads
<s-vxwext-kernel.ads \
543 s-vxwext.adb
<s-vxwext-kernel.adb \
544 system.ads
<system-vxworks-ppc-kernel.ads
546 LIBGNAT_TARGET_PAIRS
+= \
547 system.ads
<system-vxworks-ppc.ads
550 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
554 EXTRA_GNATRTL_TASKING_OBJS
+= s-vxwork.o s-vxwext.o
556 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
557 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
561 ifeq ($(strip $(filter-out powerpc
% wrs vxworksae
,$(targ
))),)
562 # target pairs for vthreads runtime
563 LIBGNAT_TARGET_PAIRS
= \
564 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
565 a-intnam.ads
<a-intnam-vxworks.ads \
566 a-numaux.ads
<a-numaux-vxworks.ads \
567 g-io.adb
<g-io-vxworks-ppc-cert.adb \
568 g-io.ads
<g-io-vxworks-ppc-cert.ads \
569 s-inmaop.adb
<s-inmaop-vxworks.adb \
570 s-interr.adb
<s-interr-hwint.adb \
571 s-intman.ads
<s-intman-vxworks.ads \
572 s-intman.adb
<s-intman-vxworks.adb \
573 s-osinte.adb
<s-osinte-vxworks.adb \
574 s-osinte.ads
<s-osinte-vxworks.ads \
575 s-osprim.adb
<s-osprim-vxworks.adb \
576 s-parame.ads
<s-parame-ae653.ads \
577 s-parame.adb
<s-parame-vxworks.adb \
578 s-taprop.adb
<s-taprop-vxworks.adb \
579 s-tasinf.ads
<s-tasinf-vxworks.ads \
580 s-taspri.ads
<s-taspri-vxworks.ads \
581 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
582 s-vxwext.adb
<s-vxwext-noints.adb \
583 s-vxwext.ads
<s-vxwext-vthreads.ads \
584 s-vxwork.ads
<s-vxwork-ppc.ads \
585 g-trasym.ads
<g-trasym-unimplemented.ads \
586 g-trasym.adb
<g-trasym-unimplemented.adb \
587 system.ads
<system-vxworks-ppc-vthread.ads \
588 $(ATOMICS_TARGET_PAIRS
)
591 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
592 indepsw.adb
<indepsw-gnu.adb
594 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
595 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
597 # Extra pairs for the vthreads runtime
598 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
599 LIBGNAT_TARGET_PAIRS
+= \
600 s-thread.adb
<s-thread-ae653.adb \
601 $(DUMMY_SOCKETS_TARGET_PAIRS
)
603 GNATRTL_SOCKETS_OBJS
=
604 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
606 LIBGNAT_TARGET_PAIRS
+= \
607 g-socthi.ads
<g-socthi-vxworks.ads \
608 g-socthi.adb
<g-socthi-vxworks.adb \
609 g-stsifd.adb
<g-stsifd-sockets.adb
612 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
613 LIBGNAT_TARGET_PAIRS
+= \
614 s-traces.adb
<s-traces-default.adb \
615 s-trafor.adb
<s-trafor-default.adb \
616 s-trafor.ads
<s-trafor-default.ads \
617 s-tratas.adb
<s-tratas-default.adb \
618 s-tfsetr.adb
<s-tfsetr-vxworks.adb
623 ifeq ($(strip $(filter-out powerpc
% wrs vxworksmils
,$(targ
))),)
624 # target pairs for vthreads runtime
625 LIBGNAT_TARGET_PAIRS
= \
626 a-intnam.ads
<a-intnam-vxworks.ads \
627 a-numaux.ads
<a-numaux-vxworks.ads \
628 g-io.adb
<g-io-vxworks-ppc-cert.adb \
629 g-io.ads
<g-io-vxworks-ppc-cert.ads \
630 s-inmaop.adb
<s-inmaop-vxworks.adb \
631 s-interr.adb
<s-interr-hwint.adb \
632 s-intman.ads
<s-intman-vxworks.ads \
633 s-intman.adb
<s-intman-vxworks.adb \
634 s-osinte.adb
<s-osinte-vxworks.adb \
635 s-osinte.ads
<s-osinte-vxworks.ads \
636 s-osprim.adb
<s-osprim-vxworks.adb \
637 s-parame.ads
<s-parame-ae653.ads \
638 s-parame.adb
<s-parame-vxworks.adb \
639 s-stchop.adb
<s-stchop-vxworks.adb \
640 s-stchop.ads
<s-stchop-limit.ads \
641 s-taprop.adb
<s-taprop-vxworks.adb \
642 s-tasinf.ads
<s-tasinf-vxworks.ads \
643 s-taspri.ads
<s-taspri-vxworks.ads \
644 s-thread.adb
<s-thread-ae653.adb \
645 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
646 s-vxwork.ads
<s-vxwork-ppc.ads \
647 g-trasym.ads
<g-trasym-unimplemented.ads \
648 g-trasym.adb
<g-trasym-unimplemented.adb \
649 system.ads
<system-vxworks-ppc.ads \
650 $(ATOMICS_TARGET_PAIRS
) \
651 $(DUMMY_SOCKETS_TARGET_PAIRS
)
654 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
655 indepsw.adb
<indepsw-gnu.adb
657 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-thread.o s-vxwexc.o
658 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
660 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
661 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
662 GNATRTL_SOCKETS_OBJS
=
664 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
665 LIBGNAT_TARGET_PAIRS
+= \
666 s-traces.adb
<s-traces-default.adb \
667 s-trafor.adb
<s-trafor-default.adb \
668 s-trafor.ads
<s-trafor-default.ads \
669 s-tratas.adb
<s-tratas-default.adb \
670 s-tfsetr.adb
<s-tfsetr-vxworks.adb
674 # vxworksae / vxworks 653 for x86 (vxsim) - ?? vxworksmils not implemented
675 ifeq ($(strip $(filter-out %86 wrs vxworksae vxworksmils
,$(targ
))),)
676 # target pairs for kernel + vthreads runtime
677 LIBGNAT_TARGET_PAIRS
= \
678 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
679 a-intnam.ads
<a-intnam-vxworks.ads \
680 a-numaux.ads
<a-numaux-x86.ads \
681 a-numaux.adb
<a-numaux-x86.adb \
682 a-sytaco.ads
<1asytaco.ads \
683 a-sytaco.adb
<1asytaco.adb \
684 g-bytswa.adb
<g-bytswa-x86.adb \
685 g-io.adb
<g-io-vxworks-ppc-cert.adb \
686 g-io.ads
<g-io-vxworks-ppc-cert.ads \
687 s-inmaop.adb
<s-inmaop-vxworks.adb \
688 s-interr.adb
<s-interr-hwint.adb \
689 s-intman.ads
<s-intman-vxworks.ads \
690 s-intman.adb
<s-intman-vxworks.adb \
691 s-osinte.adb
<s-osinte-vxworks.adb \
692 s-osinte.ads
<s-osinte-vxworks.ads \
693 s-osprim.adb
<s-osprim-vxworks.adb \
694 s-parame.ads
<s-parame-ae653.ads \
695 s-taprop.adb
<s-taprop-vxworks.adb \
696 s-tasinf.ads
<s-tasinf-vxworks.ads \
697 s-taspri.ads
<s-taspri-vxworks.ads \
698 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
699 s-vxwext.adb
<s-vxwext-noints.adb \
700 s-vxwext.ads
<s-vxwext-vthreads.ads \
701 s-vxwork.ads
<s-vxwork-x86.ads \
702 g-trasym.ads
<g-trasym-unimplemented.ads \
703 g-trasym.adb
<g-trasym-unimplemented.adb \
704 system.ads
<system-vxworks-x86.ads
707 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
708 indepsw.adb
<indepsw-gnu.adb
710 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
711 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
713 # Extra pairs for the vthreads runtime
714 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
715 LIBGNAT_TARGET_PAIRS
+= \
716 s-thread.adb
<s-thread-ae653.adb \
717 $(DUMMY_SOCKETS_TARGET_PAIRS
)
719 GNATRTL_SOCKETS_OBJS
=
720 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
722 LIBGNAT_TARGET_PAIRS
+= \
723 g-socthi.ads
<g-socthi-vxworks.ads \
724 g-socthi.adb
<g-socthi-vxworks.adb \
725 g-stsifd.adb
<g-stsifd-sockets.adb
728 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
729 LIBGNAT_TARGET_PAIRS
+= \
730 s-traces.adb
<s-traces-default.adb \
731 s-trafor.adb
<s-trafor-default.adb \
732 s-trafor.ads
<s-trafor-default.ads \
733 s-tratas.adb
<s-tratas-default.adb \
734 s-tfsetr.adb
<s-tfsetr-vxworks.adb
738 ifeq ($(strip $(filter-out sparc
% wrs vx
%,$(targ
))),)
739 LIBGNAT_TARGET_PAIRS
= \
740 a-intnam.ads
<a-intnam-vxworks.ads \
741 a-numaux.ads
<a-numaux-vxworks.ads \
742 s-inmaop.adb
<s-inmaop-vxworks.adb \
743 s-interr.adb
<s-interr-hwint.adb \
744 s-intman.ads
<s-intman-vxworks.ads \
745 s-intman.adb
<s-intman-vxworks.adb \
746 s-osinte.adb
<s-osinte-vxworks.adb \
747 s-osinte.ads
<s-osinte-vxworks.ads \
748 s-osprim.adb
<s-osprim-vxworks.adb \
749 s-parame.ads
<s-parame-vxworks.ads \
750 s-parame.adb
<s-parame-vxworks.adb \
751 s-stchop.ads
<s-stchop-limit.ads \
752 s-stchop.adb
<s-stchop-vxworks.adb \
753 s-taprop.adb
<s-taprop-vxworks.adb \
754 s-tasinf.ads
<s-tasinf-vxworks.ads \
755 s-taspri.ads
<s-taspri-vxworks.ads \
756 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
757 s-vxwork.ads
<s-vxwork-sparcv9.ads \
758 g-socthi.ads
<g-socthi-vxworks.ads \
759 g-socthi.adb
<g-socthi-vxworks.adb \
760 g-stsifd.adb
<g-stsifd-sockets.adb \
761 g-trasym.ads
<g-trasym-unimplemented.ads \
762 g-trasym.adb
<g-trasym-unimplemented.adb \
763 system.ads
<system-vxworks-sparcv9.ads \
766 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
767 indepsw.adb
<indepsw-gnu.adb
769 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
770 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
772 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
773 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
776 ifeq ($(strip $(filter-out %86 wrs vxworks
,$(targ
))),)
777 LIBGNAT_TARGET_PAIRS
= \
778 a-intnam.ads
<a-intnam-vxworks.ads \
779 i-vxwork.ads
<i-vxwork-x86.ads \
780 s-osinte.adb
<s-osinte-vxworks.adb \
781 s-osinte.ads
<s-osinte-vxworks.ads \
782 s-inmaop.adb
<s-inmaop-vxworks.adb \
783 s-intman.ads
<s-intman-vxworks.ads \
784 s-intman.adb
<s-intman-vxworks.adb \
785 a-numaux.adb
<a-numaux-x86.adb \
786 a-numaux.ads
<a-numaux-x86.ads \
787 s-osprim.adb
<s-osprim-vxworks.adb \
788 s-parame.ads
<s-parame-vxworks.ads \
789 s-parame.adb
<s-parame-vxworks.adb \
790 s-stchop.ads
<s-stchop-limit.ads \
791 s-stchop.adb
<s-stchop-vxworks.adb \
792 s-taprop.adb
<s-taprop-vxworks.adb \
793 s-tasinf.ads
<s-tasinf-vxworks.ads \
794 s-taspri.ads
<s-taspri-vxworks.ads \
795 s-vxwork.ads
<s-vxwork-x86.ads \
796 g-bytswa.adb
<g-bytswa-x86.adb \
797 g-socthi.ads
<g-socthi-vxworks.ads \
798 g-socthi.adb
<g-socthi-vxworks.adb \
799 g-stsifd.adb
<g-stsifd-sockets.adb \
800 g-trasym.ads
<g-trasym-unimplemented.ads \
801 g-trasym.adb
<g-trasym-unimplemented.adb
804 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
805 indepsw.adb
<indepsw-gnu.adb
807 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
808 LIBGNAT_TARGET_PAIRS
+= \
809 s-traces.adb
<s-traces-default.adb \
810 s-trafor.adb
<s-trafor-default.adb \
811 s-trafor.ads
<s-trafor-default.ads \
812 s-tratas.adb
<s-tratas-default.adb \
813 s-tfsetr.adb
<s-tfsetr-vxworks.adb
816 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
817 LIBGNAT_TARGET_PAIRS
+= \
818 s-vxwext.ads
<s-vxwext-rtp.ads \
819 s-vxwext.adb
<s-vxwext-rtp.adb \
820 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
821 system.ads
<system-vxworks-x86-rtp.ads
823 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
825 ifeq ($(strip $(filter-out rtp-smp
, $(THREAD_KIND
))),)
826 LIBGNAT_TARGET_PAIRS
+= \
827 s-vxwext.ads
<s-vxwext-rtp.ads \
828 s-vxwext.adb
<s-vxwext-rtp-smp.adb \
829 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
830 system.ads
<system-vxworks-x86-rtp.ads
832 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
833 EXTRA_GNATRTL_TASKING_OBJS
=affinity.o
835 ifeq ($(strip $(filter-out kernel-smp
, $(THREAD_KIND
))),)
836 LIBGNAT_TARGET_PAIRS
+= \
837 s-interr.adb
<s-interr-hwint.adb \
838 s-tpopsp.adb
<s-tpopsp-vxworks-tls.adb \
839 s-vxwext.ads
<s-vxwext-kernel.ads \
840 s-vxwext.adb
<s-vxwext-kernel-smp.adb \
841 system.ads
<system-vxworks-x86-kernel.ads
842 EXTRA_GNATRTL_TASKING_OBJS
=affinity.o
844 LIBGNAT_TARGET_PAIRS
+= \
845 s-interr.adb
<s-interr-hwint.adb \
846 s-tpopsp.adb
<s-tpopsp-vxworks.adb
848 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
849 LIBGNAT_TARGET_PAIRS
+= \
850 s-vxwext.ads
<s-vxwext-kernel.ads \
851 s-vxwext.adb
<s-vxwext-kernel.adb \
852 system.ads
<system-vxworks-x86-kernel.ads
854 LIBGNAT_TARGET_PAIRS
+= \
855 system.ads
<system-vxworks-x86.ads
859 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
862 EXTRA_GNATRTL_TASKING_OBJS
+= s-vxwork.o s-vxwext.o
864 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
865 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
868 ifeq ($(strip $(filter-out arm
% coff wrs vx
%,$(targ
))),)
869 LIBGNAT_TARGET_PAIRS
= \
870 a-intnam.ads
<a-intnam-vxworks.ads \
871 a-numaux.ads
<a-numaux-vxworks.ads \
872 s-inmaop.adb
<s-inmaop-vxworks.adb \
873 s-interr.adb
<s-interr-hwint.adb \
874 s-intman.ads
<s-intman-vxworks.ads \
875 s-intman.adb
<s-intman-vxworks.adb \
876 s-osinte.adb
<s-osinte-vxworks.adb \
877 s-osinte.ads
<s-osinte-vxworks.ads \
878 s-osprim.adb
<s-osprim-vxworks.adb \
879 s-parame.ads
<s-parame-vxworks.ads \
880 s-parame.adb
<s-parame-vxworks.adb \
881 s-stchop.ads
<s-stchop-limit.ads \
882 s-stchop.adb
<s-stchop-vxworks.adb \
883 s-taprop.adb
<s-taprop-vxworks.adb \
884 s-tasinf.ads
<s-tasinf-vxworks.ads \
885 s-taspri.ads
<s-taspri-vxworks.ads \
886 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
887 s-vxwork.ads
<s-vxwork-arm.ads \
888 g-socthi.ads
<g-socthi-vxworks.ads \
889 g-socthi.adb
<g-socthi-vxworks.adb \
890 g-stsifd.adb
<g-stsifd-sockets.adb \
891 g-trasym.ads
<g-trasym-unimplemented.ads \
892 g-trasym.adb
<g-trasym-unimplemented.adb \
893 system.ads
<system-vxworks-arm.ads
896 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
897 indepsw.adb
<indepsw-gnu.adb
899 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
900 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
902 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
903 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
906 ifeq ($(strip $(filter-out mips
% wrs vx
%,$(targ
))),)
907 LIBGNAT_TARGET_PAIRS
= \
908 a-intnam.ads
<a-intnam-vxworks.ads \
909 a-numaux.ads
<a-numaux-vxworks.ads \
910 s-inmaop.adb
<s-inmaop-vxworks.adb \
911 s-interr.adb
<s-interr-hwint.adb \
912 s-intman.ads
<s-intman-vxworks.ads \
913 s-intman.adb
<s-intman-vxworks.adb \
914 s-osinte.adb
<s-osinte-vxworks.adb \
915 s-osinte.ads
<s-osinte-vxworks.ads \
916 s-osprim.adb
<s-osprim-vxworks.adb \
917 s-parame.ads
<s-parame-vxworks.ads \
918 s-parame.adb
<s-parame-vxworks.adb \
919 s-stchop.ads
<s-stchop-limit.ads \
920 s-stchop.adb
<s-stchop-vxworks.adb \
921 s-taprop.adb
<s-taprop-vxworks.adb \
922 s-tasinf.ads
<s-tasinf-vxworks.ads \
923 s-taspri.ads
<s-taspri-vxworks.ads \
924 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
925 s-vxwork.ads
<s-vxwork-mips.ads \
926 g-socthi.ads
<g-socthi-vxworks.ads \
927 g-socthi.adb
<g-socthi-vxworks.adb \
928 g-stsifd.adb
<g-stsifd-sockets.adb \
929 g-trasym.ads
<g-trasym-unimplemented.ads \
930 g-trasym.adb
<g-trasym-unimplemented.adb \
931 system.ads
<system-vxworks-mips.ads
934 mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb \
935 indepsw.adb
<indepsw-gnu.adb
937 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
938 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o s-vxwext.o
940 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
941 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
944 ifeq ($(strip $(filter-out sparc
% sun solaris
%,$(targ
))),)
945 LIBGNAT_TARGET_PAIRS_COMMON
= \
946 a-intnam.ads
<a-intnam-solaris.ads \
947 s-inmaop.adb
<s-inmaop-posix.adb \
948 s-intman.adb
<s-intman-solaris.adb \
949 s-osinte.adb
<s-osinte-solaris.adb \
950 s-osinte.ads
<s-osinte-solaris.ads \
951 s-osprim.adb
<s-osprim-solaris.adb \
952 s-taprop.adb
<s-taprop-solaris.adb \
953 s-tasinf.adb
<s-tasinf-solaris.adb \
954 s-tasinf.ads
<s-tasinf-solaris.ads \
955 s-taspri.ads
<s-taspri-solaris.ads \
956 s-tpopsp.adb
<s-tpopsp-solaris.adb \
957 g-soliop.ads
<g-soliop-solaris.ads
959 LIBGNAT_TARGET_PAIRS_32
= \
960 system.ads
<system-solaris-sparc.ads
962 LIBGNAT_TARGET_PAIRS_64
= \
963 system.ads
<system-solaris-sparcv9.ads \
964 $(ATOMICS_TARGET_PAIRS
)
966 ifeq ($(strip $(filter-out sparc sun solaris
%,$(targ
))),)
967 ifeq ($(strip $(MULTISUBDIR
)),/sparcv9
)
968 LIBGNAT_TARGET_PAIRS
= \
969 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
971 LIBGNAT_TARGET_PAIRS
= \
972 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
975 ifeq ($(strip $(MULTISUBDIR
)),/sparcv8plus
)
976 LIBGNAT_TARGET_PAIRS
= \
977 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
979 LIBGNAT_TARGET_PAIRS
= \
980 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
984 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
987 THREADSLIB
= -lposix4
-lthread
988 MISCLIB
= -lposix4
-lnsl
-lsocket
990 GNATLIB_SHARED
= gnatlib-shared-dual
992 LIBRARY_VERSION
:= $(LIB_VERSION
)
994 ifeq ($(strip $(filter-out pthread PTHREAD
,$(THREAD_KIND
))),)
995 LIBGNAT_TARGET_PAIRS
= \
996 a-intnam.ads
<a-intnam-solaris.ads \
997 s-inmaop.adb
<s-inmaop-posix.adb \
998 s-intman.adb
<s-intman-posix.adb \
999 s-osinte.adb
<s-osinte-posix.adb \
1000 s-osinte.ads
<s-osinte-solaris-posix.ads \
1001 s-osprim.adb
<s-osprim-solaris.adb \
1002 s-taprop.adb
<s-taprop-posix.adb \
1003 s-taspri.ads
<s-taspri-posix.ads \
1004 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1005 g-soliop.ads
<g-soliop-solaris.ads \
1006 system.ads
<system-solaris-sparc.ads
1008 THREADSLIB
= -lposix4
-lpthread
1011 ifeq ($(strip $(filter-out m64
,$(THREAD_KIND
))),)
1012 LIBGNAT_TARGET_PAIRS
= $(LIBGNAT_TARGET_PAIRS_64
)
1016 ifeq ($(strip $(filter-out %86 %x86_64 solaris2
%,$(arch
) $(osys
))),)
1017 LIBGNAT_TARGET_PAIRS_COMMON
= \
1018 a-numaux.adb
<a-numaux-x86.adb \
1019 a-numaux.ads
<a-numaux-x86.ads \
1020 a-intnam.ads
<a-intnam-solaris.ads \
1021 s-inmaop.adb
<s-inmaop-posix.adb \
1022 s-intman.adb
<s-intman-solaris.adb \
1023 s-osinte.adb
<s-osinte-solaris.adb \
1024 s-osinte.ads
<s-osinte-solaris.ads \
1025 s-osprim.adb
<s-osprim-solaris.adb \
1026 s-taprop.adb
<s-taprop-solaris.adb \
1027 s-tasinf.adb
<s-tasinf-solaris.adb \
1028 s-tasinf.ads
<s-tasinf-solaris.ads \
1029 s-taspri.ads
<s-taspri-solaris.ads \
1030 s-tpopsp.adb
<s-tpopsp-solaris.adb \
1031 g-soliop.ads
<g-soliop-solaris.ads
1033 LIBGNAT_TARGET_PAIRS_32
= \
1034 g-bytswa.adb
<g-bytswa-x86.adb \
1035 system.ads
<system-solaris-x86.ads
1037 LIBGNAT_TARGET_PAIRS_64
= \
1038 system.ads
<system-solaris-x86_64.ads
1040 ifeq ($(strip $(filter-out %86 solaris2
%,$(arch
) $(osys
))),)
1041 ifeq ($(strip $(MULTISUBDIR
)),/amd64
)
1042 LIBGNAT_TARGET_PAIRS
= \
1043 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1045 LIBGNAT_TARGET_PAIRS
= \
1046 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1049 ifeq ($(strip $(MULTISUBDIR
)),/32)
1050 LIBGNAT_TARGET_PAIRS
= \
1051 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1053 LIBGNAT_TARGET_PAIRS
= \
1054 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1058 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
1061 THREADSLIB
= -lposix4
-lthread
1062 MISCLIB
= -lposix4
-lnsl
-lsocket
1064 GNATLIB_SHARED
= gnatlib-shared-dual
1066 LIBRARY_VERSION
:= $(LIB_VERSION
)
1069 ifeq ($(strip $(filter-out %86 linux
%,$(arch
) $(osys
))),)
1070 LIBGNAT_TARGET_PAIRS
= \
1071 a-intnam.ads
<a-intnam-linux.ads \
1072 a-numaux.adb
<a-numaux-x86.adb \
1073 a-numaux.ads
<a-numaux-x86.ads \
1074 g-bytswa.adb
<g-bytswa-x86.adb \
1075 s-inmaop.adb
<s-inmaop-posix.adb \
1076 s-intman.adb
<s-intman-posix.adb \
1077 s-tpopsp.adb
<s-tpopsp-tls.adb \
1078 g-sercom.adb
<g-sercom-linux.adb
1080 ifeq ($(strip $(filter-out marte
,$(THREAD_KIND
))),)
1081 LIBGNAT_TARGET_PAIRS
+= \
1082 a-exetim.adb
<a-exetim-linux-marte.adb \
1083 a-exetim.ads
<a-exetim-linux-marte.ads \
1084 a-extiti.adb
<a-extiti-linux-marte.adb \
1085 a-extiti.ads
<a-extiti-linux-marte.ads \
1086 a-rttiev.adb
<a-rttiev-linux-marte.adb \
1087 a-rttiev.ads
<a-rttiev-linux-marte.ads \
1088 s-osinte.adb
<s-osinte-linux-marte.adb \
1089 s-osinte.ads
<s-osinte-linux-marte.ads \
1090 s-osprim.adb
<s-osprim-posix.adb \
1091 s-taprop.adb
<s-taprop-linux-marte.adb \
1092 s-taspri.ads
<s-taspri-posix.ads \
1093 system.ads
<system-linux-x86.ads
1095 EXTRA_GNATRTL_TASKING_OBJS
=a-exetim.o a-extiti.o
1098 THREADSLIB
= -lmarte
1100 LIBGNAT_TARGET_PAIRS
+= \
1101 a-exetim.adb
<a-exetim-posix.adb \
1102 a-exetim.ads
<a-exetim-default.ads \
1103 s-linux.ads
<s-linux.ads \
1104 s-osinte.adb
<s-osinte-posix.adb
1106 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1107 LIBGNAT_TARGET_PAIRS
+= \
1108 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1109 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1110 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1111 s-taspri.ads
<s-taspri-linux-xenomai.ads \
1112 system.ads
<system-linux-x86-xenomai.ads
1116 LIBGNAT_TARGET_PAIRS
+= \
1117 s-osinte.ads
<s-osinte-linux.ads \
1118 s-osprim.adb
<s-osprim-posix.adb \
1119 s-taprop.adb
<s-taprop-linux.adb \
1120 s-tasinf.ads
<s-tasinf-linux.ads \
1121 s-tasinf.adb
<s-tasinf-linux.adb \
1122 s-taspri.ads
<s-taspri-posix.ads \
1123 system.ads
<system-linux-x86.ads
1128 THREADSLIB
= -lpthread
-lrt
1129 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
1130 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1133 TOOLS_TARGET_PAIRS
= \
1134 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1135 indepsw.adb
<indepsw-gnu.adb
1137 GNATLIB_SHARED
= gnatlib-shared-dual
1139 LIBRARY_VERSION
:= $(LIB_VERSION
)
1142 ifeq ($(strip $(filter-out %86 kfreebsd
%,$(arch
) $(osys
))),)
1143 LIBGNAT_TARGET_PAIRS
= \
1144 a-intnam.ads
<a-intnam-freebsd.ads \
1145 a-numaux.adb
<a-numaux-x86.adb \
1146 a-numaux.ads
<a-numaux-x86.ads \
1147 s-inmaop.adb
<s-inmaop-posix.adb \
1148 s-intman.adb
<s-intman-posix.adb \
1149 s-osinte.adb
<s-osinte-posix.adb \
1150 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1151 s-osprim.adb
<s-osprim-posix.adb \
1152 s-taprop.adb
<s-taprop-linux.adb \
1153 s-tasinf.ads
<s-tasinf-linux.ads \
1154 s-tasinf.adb
<s-tasinf-linux.adb \
1155 s-taspri.ads
<s-taspri-posix.ads \
1156 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1157 system.ads
<system-freebsd-x86.ads
1159 TOOLS_TARGET_PAIRS
= \
1160 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1161 indepsw.adb
<indepsw-gnu.adb
1164 THREADSLIB
= -lpthread
1165 GNATLIB_SHARED
= gnatlib-shared-dual
1167 LIBRARY_VERSION
:= $(LIB_VERSION
)
1170 ifeq ($(strip $(filter-out x86_64 kfreebsd
%,$(arch
) $(osys
))),)
1171 LIBGNAT_TARGET_PAIRS
= \
1172 a-intnam.ads
<a-intnam-freebsd.ads \
1173 a-numaux.adb
<a-numaux-x86.adb \
1174 a-numaux.ads
<a-numaux-x86.ads \
1175 s-inmaop.adb
<s-inmaop-posix.adb \
1176 s-intman.adb
<s-intman-posix.adb \
1177 s-osinte.adb
<s-osinte-posix.adb \
1178 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
1179 s-osprim.adb
<s-osprim-posix.adb \
1180 s-taprop.adb
<s-taprop-linux.adb \
1181 s-tasinf.ads
<s-tasinf-linux.ads \
1182 s-tasinf.adb
<s-tasinf-linux.adb \
1183 s-taspri.ads
<s-taspri-posix.ads \
1184 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1185 system.ads
<system-freebsd-x86_64.ads
1187 TOOLS_TARGET_PAIRS
= \
1188 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1189 indepsw.adb
<indepsw-gnu.adb
1192 THREADSLIB
= -lpthread
1193 GNATLIB_SHARED
= gnatlib-shared-dual
1195 LIBRARY_VERSION
:= $(LIB_VERSION
)
1198 ifeq ($(strip $(filter-out %86 freebsd
%,$(arch
) $(osys
))),)
1199 LIBGNAT_TARGET_PAIRS
= \
1200 a-intnam.ads
<a-intnam-freebsd.ads \
1201 a-numaux.adb
<a-numaux-x86.adb \
1202 a-numaux.ads
<a-numaux-x86.ads \
1203 g-bytswa.adb
<g-bytswa-x86.adb \
1204 s-inmaop.adb
<s-inmaop-posix.adb \
1205 s-intman.adb
<s-intman-posix.adb \
1206 s-osinte.adb
<s-osinte-freebsd.adb \
1207 s-osinte.ads
<s-osinte-freebsd.ads \
1208 s-osprim.adb
<s-osprim-posix.adb \
1209 s-taprop.adb
<s-taprop-posix.adb \
1210 s-taspri.ads
<s-taspri-posix.ads \
1211 s-tpopsp.adb
<s-tpopsp-posix.adb \
1212 system.ads
<system-freebsd-x86.ads
1214 TOOLS_TARGET_PAIRS
= \
1215 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
1216 GNATLIB_SHARED
= gnatlib-shared-dual
1219 THREADSLIB
= -lpthread
1221 LIBRARY_VERSION
:= $(LIB_VERSION
)
1224 ifeq ($(strip $(filter-out s390
% linux
%,$(arch
) $(osys
))),)
1225 LIBGNAT_TARGET_PAIRS_COMMON
= \
1226 a-intnam.ads
<a-intnam-linux.ads \
1227 s-inmaop.adb
<s-inmaop-posix.adb \
1228 s-intman.adb
<s-intman-posix.adb \
1229 s-linux.ads
<s-linux.ads \
1230 s-osinte.adb
<s-osinte-posix.adb \
1231 s-osinte.ads
<s-osinte-linux.ads \
1232 s-osprim.adb
<s-osprim-posix.adb \
1233 s-taprop.adb
<s-taprop-linux.adb \
1234 s-tasinf.ads
<s-tasinf-linux.ads \
1235 s-tasinf.adb
<s-tasinf-linux.adb \
1236 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1237 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1238 g-trasym.ads
<g-trasym-unimplemented.ads \
1239 g-trasym.adb
<g-trasym-unimplemented.adb
1241 LIBGNAT_TARGET_PAIRS_32
= \
1242 system.ads
<system-linux-s390.ads
1244 LIBGNAT_TARGET_PAIRS_64
= \
1245 system.ads
<system-linux-s390x.ads
1247 ifeq ($(strip $(filter-out s390x
,$(arch
))),)
1248 ifeq ($(strip $(MULTISUBDIR
)),/32)
1249 LIBGNAT_TARGET_PAIRS
= \
1250 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1252 LIBGNAT_TARGET_PAIRS
= \
1253 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1256 LIBGNAT_TARGET_PAIRS
= \
1257 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1260 TOOLS_TARGET_PAIRS
= \
1261 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1262 indepsw.adb
<indepsw-gnu.adb
1264 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1266 THREADSLIB
= -lpthread
1267 GNATLIB_SHARED
= gnatlib-shared-dual
1268 LIBRARY_VERSION
:= $(LIB_VERSION
)
1271 ifeq ($(strip $(filter-out mips sgi irix6
%,$(targ
))),)
1272 LIBGNAT_TARGET_PAIRS
= \
1273 a-intnam.ads
<a-intnam-irix.ads \
1274 s-inmaop.adb
<s-inmaop-posix.adb \
1275 s-intman.adb
<s-intman-irix.adb \
1276 s-mastop.adb
<s-mastop-irix.adb \
1277 s-osinte.adb
<s-osinte-irix.adb \
1278 s-osinte.ads
<s-osinte-irix.ads \
1279 s-osprim.adb
<s-osprim-posix.adb \
1280 s-proinf.adb
<s-proinf-irix-athread.adb \
1281 s-proinf.ads
<s-proinf-irix-athread.ads \
1282 s-taprop.adb
<s-taprop-irix.adb \
1283 s-tasinf.ads
<s-tasinf-irix.ads \
1284 s-taspri.ads
<s-taspri-posix.ads \
1285 s-tpopsp.adb
<s-tpopsp-posix.adb \
1286 s-traceb.adb
<s-traceb-mastop.adb
1288 ifeq ($(strip $(MULTISUBDIR
)),/64)
1289 LIBGNAT_TARGET_PAIRS
+= \
1290 system.ads
<system-irix-n64.ads
1292 ifeq ($(strip $(MULTISUBDIR
)),/32)
1293 LIBGNAT_TARGET_PAIRS
+= \
1294 system.ads
<system-irix-o32.ads
1296 LIBGNAT_TARGET_PAIRS
+= \
1297 system.ads
<system-irix-n32.ads
1301 THREADSLIB
= -lpthread
1302 GNATLIB_SHARED
= gnatlib-shared-default
1305 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-irix.adb
1308 LIBRARY_VERSION
:= $(LIB_VERSION
)
1312 ifeq ($(strip $(filter-out hppa
% hp hpux10
%,$(targ
))),)
1313 LIBGNAT_TARGET_PAIRS
= \
1314 a-excpol.adb
<a-excpol-abort.adb \
1315 a-intnam.ads
<a-intnam-hpux.ads \
1316 s-inmaop.adb
<s-inmaop-posix.adb \
1317 s-interr.adb
<s-interr-sigaction.adb \
1318 s-intman.adb
<s-intman-posix.adb \
1319 s-osinte.adb
<s-osinte-hpux-dce.adb \
1320 s-osinte.ads
<s-osinte-hpux-dce.ads \
1321 s-parame.ads
<s-parame-hpux.ads \
1322 s-osprim.adb
<s-osprim-posix.adb \
1323 s-taprop.adb
<s-taprop-hpux-dce.adb \
1324 s-taspri.ads
<s-taspri-hpux-dce.ads \
1325 s-tpopsp.adb
<s-tpopsp-posix.adb \
1326 system.ads
<system-hpux.ads
1331 ifeq ($(strip $(filter-out hppa
% hp hpux11
%,$(targ
))),)
1332 LIBGNAT_TARGET_PAIRS
= \
1333 a-intnam.ads
<a-intnam-hpux.ads \
1334 s-inmaop.adb
<s-inmaop-posix.adb \
1335 s-intman.adb
<s-intman-posix.adb \
1336 s-osinte.adb
<s-osinte-posix.adb \
1337 s-osinte.ads
<s-osinte-hpux.ads \
1338 s-parame.ads
<s-parame-hpux.ads \
1339 s-osprim.adb
<s-osprim-posix.adb \
1340 s-traceb.adb
<s-traceb-hpux.adb \
1341 s-taprop.adb
<s-taprop-posix.adb \
1342 s-taspri.ads
<s-taspri-posix.ads \
1343 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1344 system.ads
<system-hpux.ads
1346 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-hpux.adb
1348 TGT_LIB
= /usr
/lib
/libcl.a
1349 THREADSLIB
= -lpthread
1353 GNATLIB_SHARED
= gnatlib-shared-dual
1354 LIBRARY_VERSION
:= $(LIB_VERSION
)
1357 ifeq ($(strip $(filter-out ibm aix
%,$(manu
) $(osys
))),)
1358 LIBGNAT_TARGET_PAIRS_COMMON
= \
1359 a-intnam.ads
<a-intnam-aix.ads \
1360 s-inmaop.adb
<s-inmaop-posix.adb \
1361 s-intman.adb
<s-intman-posix.adb \
1362 s-osinte.adb
<s-osinte-aix.adb \
1363 s-osinte.ads
<s-osinte-aix.ads \
1364 s-osprim.adb
<s-osprim-posix.adb \
1365 s-taprop.adb
<s-taprop-posix.adb \
1366 s-taspri.ads
<s-taspri-posix.ads \
1367 s-tpopsp.adb
<s-tpopsp-posix.adb \
1368 $(ATOMICS_TARGET_PAIRS
)
1370 LIBGNAT_TARGET_PAIRS_32
= \
1371 system.ads
<system-aix.ads
1373 LIBGNAT_TARGET_PAIRS_64
= \
1374 system.ads
<system-aix64.ads
1376 ifeq ($(findstring ppc64
, \
1377 $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) \
1378 -print-multi-os-directory
)), \
1380 LIBGNAT_TARGET_PAIRS
= \
1381 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1383 LIBGNAT_TARGET_PAIRS
= \
1384 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1387 THREADSLIB
= -lpthreads
1389 TOOLS_TARGET_PAIRS
= \
1390 mlib-tgt-specific.adb
<mlib-tgt-specific-aix.adb \
1391 indepsw.adb
<indepsw-aix.adb
1396 ifeq ($(strip $(filter-out lynxos
,$(osys
))),)
1397 TOOLS_TARGET_PAIRS
= \
1398 mlib-tgt-specific.adb
<mlib-tgt-specific-lynxos.adb \
1399 indepsw.adb
<indepsw-gnu.adb
1401 ifeq ($(strip $(filter-out %86 lynxos
,$(arch
) $(osys
))),)
1402 LIBGNAT_TARGET_PAIRS
= \
1403 a-numaux.adb
<a-numaux-x86.adb \
1404 a-numaux.ads
<a-numaux-x86.ads \
1405 a-intnam.ads
<a-intnam-lynxos.ads \
1406 g-bytswa.adb
<g-bytswa-x86.adb \
1407 s-inmaop.adb
<s-inmaop-posix.adb \
1408 s-intman.adb
<s-intman-posix.adb \
1409 s-osinte.adb
<s-osinte-lynxos.adb \
1410 s-osinte.ads
<s-osinte-lynxos.ads \
1411 s-osprim.adb
<s-osprim-posix.adb \
1412 s-taprop.adb
<s-taprop-lynxos.adb \
1413 s-taspri.ads
<s-taspri-lynxos.ads \
1414 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
1415 g-trasym.ads
<g-trasym-unimplemented.ads \
1416 g-trasym.adb
<g-trasym-unimplemented.adb \
1417 system.ads
<system-lynxos-x86.ads
1421 LIBGNAT_TARGET_PAIRS
= \
1422 a-intnam.ads
<a-intnam-lynxos.ads \
1423 s-inmaop.adb
<s-inmaop-posix.adb \
1424 s-intman.adb
<s-intman-posix.adb \
1425 s-osinte.adb
<s-osinte-lynxos.adb \
1426 s-osinte.ads
<s-osinte-lynxos.ads \
1427 s-osprim.adb
<s-osprim-posix.adb \
1428 s-taprop.adb
<s-taprop-lynxos.adb \
1429 s-taspri.ads
<s-taspri-lynxos.ads \
1430 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
1431 g-trasym.ads
<g-trasym-unimplemented.ads \
1432 g-trasym.adb
<g-trasym-unimplemented.adb \
1433 system.ads
<system-lynxos-ppc.ads
1437 ifeq ($(strip $(filter-out rtems
%,$(osys
))),)
1438 LIBGNAT_TARGET_PAIRS
= \
1439 system.ads
<system-rtems.ads \
1440 a-intnam.ads
<a-intnam-rtems.ads \
1441 s-inmaop.adb
<s-inmaop-posix.adb \
1442 s-intman.adb
<s-intman-posix.adb \
1443 s-osinte.adb
<s-osinte-rtems.adb \
1444 s-osinte.ads
<s-osinte-rtems.ads \
1445 s-osprim.adb
<s-osprim-posix.adb \
1446 s-parame.adb
<s-parame-rtems.adb \
1447 s-taprop.adb
<s-taprop-posix.adb \
1448 s-taspri.ads
<s-taspri-posix.ads \
1449 s-tpopsp.adb
<s-tpopsp-rtems.adb \
1450 s-stchop.adb
<s-stchop-rtems.adb \
1451 s-interr.adb
<s-interr-hwint.adb \
1452 g-trasym.ads
<g-trasym-unimplemented.ads \
1453 g-trasym.adb
<g-trasym-unimplemented.adb
1456 ifeq ($(strip $(filter-out alpha
% dec osf
%,$(targ
))),)
1457 LIBGNAT_TARGET_PAIRS
= \
1458 a-intnam.ads
<a-intnam-tru64.ads \
1459 s-inmaop.adb
<s-inmaop-posix.adb \
1460 s-intman.adb
<s-intman-posix.adb \
1461 s-mastop.adb
<s-mastop-tru64.adb \
1462 s-osinte.adb
<s-osinte-tru64.adb \
1463 s-osinte.ads
<s-osinte-tru64.ads \
1464 s-osprim.adb
<s-osprim-unix.adb \
1465 s-taprop.adb
<s-taprop-tru64.adb \
1466 s-tasinf.ads
<s-tasinf-tru64.ads \
1467 s-taspri.ads
<s-taspri-tru64.ads \
1468 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1469 s-traceb.adb
<s-traceb-mastop.adb \
1470 system.ads
<system-tru64.ads \
1471 $(ATOMICS_TARGET_PAIRS
)
1473 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-tru64.adb
1478 THREADSLIB
= -lpthread
-lmach
-lexc
-lrt
1479 GNATLIB_SHARED
= gnatlib-shared-default
1480 LIBRARY_VERSION
:= $(LIB_VERSION
)
1483 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(host
))),)
1493 @ gnu
:[bin
]vmssymvec
$<
1496 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(targ
))),)
1497 LIBGNAT_TARGET_PAIRS
= \
1498 a-caldel.adb
<a-caldel-vms.adb \
1499 a-calend.adb
<a-calend-vms.adb \
1500 a-calend.ads
<a-calend-vms.ads \
1501 a-dirval.adb
<a-dirval-vms.adb \
1502 a-excpol.adb
<a-excpol-abort.adb \
1503 a-intnam.ads
<a-intnam-vms.ads \
1504 a-numaux.ads
<a-numaux-vms.ads \
1505 g-expect.adb
<g-expect-vms.adb \
1506 g-socthi.ads
<g-socthi-vms.ads \
1507 g-socthi.adb
<g-socthi-vms.adb \
1508 g-stsifd.adb
<g-stsifd-sockets.adb \
1509 i-cstrea.adb
<i-cstrea-vms.adb \
1510 memtrack.adb
<memtrack-vms_64.adb \
1511 s-auxdec.ads
<s-auxdec-vms_64.ads \
1512 s-inmaop.adb
<s-inmaop-vms.adb \
1513 s-interr.adb
<s-interr-vms.adb \
1514 s-intman.adb
<s-intman-vms.adb \
1515 s-intman.ads
<s-intman-vms.ads \
1516 s-memory.adb
<s-memory-vms_64.adb \
1517 s-memory.ads
<s-memory-vms_64.ads \
1518 s-osprim.adb
<s-osprim-vms.adb \
1519 s-osprim.ads
<s-osprim-vms.ads \
1520 s-taprop.adb
<s-taprop-vms.adb \
1521 s-tasdeb.adb
<s-tasdeb-vms.adb \
1522 s-taspri.ads
<s-taspri-vms.ads \
1523 s-tpopsp.adb
<s-tpopsp-vms.adb \
1524 s-tpopde.adb
<s-tpopde-vms.adb \
1525 s-tpopde.ads
<s-tpopde-vms.ads
1527 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1528 LIBGNAT_TARGET_PAIRS
+= \
1529 g-enblsp.adb
<g-enblsp-vms-ia64.adb \
1530 g-trasym.adb
<g-trasym-vms-ia64.adb \
1531 s-asthan.adb
<s-asthan-vms-ia64.adb \
1532 s-auxdec.adb
<s-auxdec-vms-ia64.adb \
1533 s-osinte.adb
<s-osinte-vms-ia64.adb \
1534 s-osinte.ads
<s-osinte-vms-ia64.ads \
1535 s-vaflop.adb
<s-vaflop-vms-ia64.adb \
1536 system.ads
<system-vms-ia64.ads \
1537 s-parame.ads
<s-parame-vms-ia64.ads \
1538 $(ATOMICS_TARGET_PAIRS
)
1540 TOOLS_TARGET_PAIRS
= \
1541 mlib-tgt-specific.adb
<mlib-tgt-specific-vms-ia64.adb \
1542 symbols.adb
<symbols-vms.adb \
1543 symbols-processing.adb
<symbols-processing-vms-ia64.adb
1545 ifeq ($(strip $(filter-out alpha64 dec vms
% openvms
% alphavms
%,$(targ
))),)
1546 LIBGNAT_TARGET_PAIRS
+= \
1547 g-enblsp.adb
<g-enblsp-vms-alpha.adb \
1548 g-trasym.adb
<g-trasym-vms-alpha.adb \
1549 s-asthan.adb
<s-asthan-vms-alpha.adb \
1550 s-auxdec.adb
<s-auxdec-vms-alpha.adb \
1551 s-osinte.adb
<s-osinte-vms.adb \
1552 s-osinte.ads
<s-osinte-vms.ads \
1553 s-traent.adb
<s-traent-vms.adb \
1554 s-traent.ads
<s-traent-vms.ads \
1555 s-vaflop.adb
<s-vaflop-vms-alpha.adb \
1556 system.ads
<system-vms_64.ads \
1557 s-parame.ads
<s-parame-vms-alpha.ads \
1558 $(ATOMICS_TARGET_PAIRS
)
1560 TOOLS_TARGET_PAIRS
= \
1561 mlib-tgt-specific.adb
<mlib-tgt-specific-vms-alpha.adb \
1562 symbols.adb
<symbols-vms.adb \
1563 symbols-processing.adb
<symbols-processing-vms-alpha.adb
1567 adamsg.o
: adamsg.msg
1568 -$(DECC
) --cc=message adamsg.msg
-o adamsg.o
1570 EXTRA_GNATMAKE_OBJS
= mlib-tgt-vms_common.o
1574 GNATLIB_SHARED
=gnatlib-shared-vms
1575 EXTRA_LIBGNAT_SRCS
+=adamsg.msg
1576 EXTRA_LIBGNAT_OBJS
+=adamsg.o
1577 EXTRA_GNATRTL_TASKING_OBJS
=s-tpopde.o
1579 ..
/..
/gnatsym
$(exeext
)
1580 # This command transforms (YYYYMMDD) into YY,MMDD
1581 GSMATCH_VERSION
:= $(shell grep
"^ *Gnat_Static_Version_String" $(fsrcpfx
)ada
/gnatvsn.ads | sed
-e
's/.*(\(.*\)).*/\1/' -e
's/\(..\)\(..\)\(....\).*/\2,\3/')
1582 TOOLS_LIBS_LO
:= --for-linker
=sys
\\$$\
$$library:trace.exe
1583 LIBRARY_VERSION
:= $(subst .
,_
,$(LIB_VERSION
))
1586 ifeq ($(strip $(filter-out avr none powerpc
% eabispe leon
% erc32
% unknown elf
,$(targ
))),)
1587 TOOLS_TARGET_PAIRS
=\
1588 mlib-tgt-specific.adb
<mlib-tgt-specific-xi.adb \
1589 indepsw.adb
<indepsw-gnu.adb
1592 ifeq ($(strip $(filter-out cygwin32
% mingw32
% pe
,$(osys
))),)
1593 LIBGNAT_TARGET_PAIRS
= \
1594 a-dirval.adb
<a-dirval-mingw.adb \
1595 a-excpol.adb
<a-excpol-abort.adb \
1596 a-numaux.adb
<a-numaux-x86.adb \
1597 a-numaux.ads
<a-numaux-x86.ads \
1598 s-gloloc.adb
<s-gloloc-mingw.adb \
1599 s-inmaop.adb
<s-inmaop-dummy.adb \
1600 s-memory.adb
<s-memory-mingw.adb \
1601 s-taspri.ads
<s-taspri-mingw.ads \
1602 s-tasinf.adb
<s-tasinf-mingw.adb \
1603 s-tasinf.ads
<s-tasinf-mingw.ads \
1604 g-bytswa.adb
<g-bytswa-x86.adb \
1605 g-socthi.ads
<g-socthi-mingw.ads \
1606 g-socthi.adb
<g-socthi-mingw.adb \
1607 g-stsifd.adb
<g-stsifd-sockets.adb \
1608 g-soliop.ads
<g-soliop-mingw.ads
1610 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss
,$(THREAD_KIND
))),)
1611 LIBGNAT_TARGET_PAIRS
+= \
1612 s-intman.adb
<s-intman-dummy.adb \
1613 s-osinte.ads
<s-osinte-rtx.ads \
1614 s-osprim.adb
<s-osprim-rtx.adb \
1615 s-taprop.adb
<s-taprop-rtx.adb
1617 EXTRA_GNATRTL_NONTASKING_OBJS
= s-win32.o
1619 ifeq ($(strip $(filter-out rtx_w32
,$(THREAD_KIND
))),)
1620 LIBGNAT_TARGET_PAIRS
+= system.ads
<system-rtx.ads
1624 LIBGNAT_TARGET_PAIRS
+= \
1625 system.ads
<system-rtx-rtss.ads \
1626 s-parame.adb
<s-parame-vxworks.adb
1632 LIBGNAT_TARGET_PAIRS
+= \
1633 a-exetim.adb
<a-exetim-mingw.adb \
1634 a-exetim.ads
<a-exetim-mingw.ads \
1635 a-intnam.ads
<a-intnam-mingw.ads \
1636 g-sercom.adb
<g-sercom-mingw.adb \
1637 s-interr.adb
<s-interr-sigaction.adb \
1638 s-intman.adb
<s-intman-mingw.adb \
1639 s-osinte.ads
<s-osinte-mingw.ads \
1640 s-osprim.adb
<s-osprim-mingw.adb \
1641 s-taprop.adb
<s-taprop-mingw.adb
1643 ifeq ($(strip $(filter-out x86_64
%,$(arch
))),)
1644 ifeq ($(strip $(MULTISUBDIR
)),/32)
1645 LIBGNAT_TARGET_PAIRS
+= \
1646 system.ads
<system-mingw.ads
1647 SO_OPTS
= -m32
-Wl
,-soname
,
1649 LIBGNAT_TARGET_PAIRS
+= \
1650 system.ads
<system-mingw-x86_64.ads
1651 SO_OPTS
= -m64
-Wl
,-soname
,
1654 ifeq ($(strip $(MULTISUBDIR
)),/64)
1655 LIBGNAT_TARGET_PAIRS
+= \
1656 system.ads
<system-mingw-x86_64.ads
1657 SO_OPTS
= -m64
-Wl
,-soname
,
1659 LIBGNAT_TARGET_PAIRS
+= \
1660 system.ads
<system-mingw.ads
1661 SO_OPTS
= -m32
-Wl
,-soname
,
1665 EXTRA_GNATRTL_NONTASKING_OBJS
= \
1666 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1667 EXTRA_GNATRTL_TASKING_OBJS
= a-exetim.o
1671 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1672 # auto-import support for array/record will be done.
1673 GNATLIB_SHARED
= gnatlib-shared-win32
1678 TOOLS_TARGET_PAIRS
= \
1679 mlib-tgt-specific.adb
<mlib-tgt-specific-mingw.adb \
1680 indepsw.adb
<indepsw-mingw.adb
1683 EXTRA_GNATTOOLS
= ..
/..
/gnatdll
$(exeext
)
1684 EXTRA_GNATMAKE_OBJS
= mdll.o mdll-utl.o mdll-fil.o
1686 LIBRARY_VERSION
:= $(LIB_VERSION
)
1689 ifeq ($(strip $(filter-out mips linux
%,$(arch
) $(osys
))),)
1690 LIBGNAT_TARGET_PAIRS
= \
1691 a-intnam.ads
<a-intnam-linux.ads \
1692 s-inmaop.adb
<s-inmaop-posix.adb \
1693 s-intman.adb
<s-intman-posix.adb \
1694 s-linux.ads
<s-linux.ads \
1695 s-osinte.adb
<s-osinte-posix.adb \
1696 s-osinte.ads
<s-osinte-linux.ads \
1697 s-osprim.adb
<s-osprim-posix.adb \
1698 s-taprop.adb
<s-taprop-linux.adb \
1699 s-tasinf.ads
<s-tasinf-linux.ads \
1700 s-tasinf.adb
<s-tasinf-linux.adb \
1701 s-taspri.ads
<s-taspri-posix.ads \
1702 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1703 system.ads
<system-linux-mips.ads
1706 THREADSLIB
= -lpthread
1707 GNATLIB_SHARED
= gnatlib-shared-dual
1709 LIBRARY_VERSION
:= $(LIB_VERSION
)
1712 ifeq ($(strip $(filter-out mipsel linux
%,$(arch
) $(osys
))),)
1713 LIBGNAT_TARGET_PAIRS_COMMON
= \
1714 a-intnam.ads
<a-intnam-linux.ads \
1715 s-inmaop.adb
<s-inmaop-posix.adb \
1716 s-intman.adb
<s-intman-posix.adb \
1717 s-linux.ads
<s-linux-mipsel.ads \
1718 s-osinte.adb
<s-osinte-posix.adb \
1719 s-osinte.ads
<s-osinte-linux.ads \
1720 s-osprim.adb
<s-osprim-posix.adb \
1721 s-taprop.adb
<s-taprop-linux.adb \
1722 s-tasinf.ads
<s-tasinf-linux.ads \
1723 s-tasinf.adb
<s-tasinf-linux.adb \
1724 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1725 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1726 g-sercom.adb
<g-sercom-linux.adb
1728 LIBGNAT_TARGET_PAIRS_32
= \
1729 system.ads
<system-linux-mipsel.ads
1731 LIBGNAT_TARGET_PAIRS_64
= \
1732 system.ads
<system-linux-mips64el.ads
1734 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1735 LIBGNAT_TARGET_PAIRS
= \
1736 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1738 LIBGNAT_TARGET_PAIRS
= \
1739 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1742 TOOLS_TARGET_PAIRS
= \
1743 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1744 indepsw.adb
<indepsw-gnu.adb
1746 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1748 THREADSLIB
= -lpthread
1749 GNATLIB_SHARED
= gnatlib-shared-dual
1751 LIBRARY_VERSION
:= $(LIB_VERSION
)
1754 ifeq ($(strip $(filter-out mips64el linux
%,$(arch
) $(osys
))),)
1755 LIBGNAT_TARGET_PAIRS_COMMON
= \
1756 a-intnam.ads
<a-intnam-linux.ads \
1757 s-inmaop.adb
<s-inmaop-posix.adb \
1758 s-intman.adb
<s-intman-posix.adb \
1759 s-linux.ads
<s-linux-mipsel.ads \
1760 s-osinte.adb
<s-osinte-posix.adb \
1761 s-osinte.ads
<s-osinte-linux.ads \
1762 s-osprim.adb
<s-osprim-posix.adb \
1763 s-taprop.adb
<s-taprop-linux.adb \
1764 s-tasinf.ads
<s-tasinf-linux.ads \
1765 s-tasinf.adb
<s-tasinf-linux.adb \
1766 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1767 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1768 g-sercom.adb
<g-sercom-linux.adb
1770 LIBGNAT_TARGET_PAIRS_32
= \
1771 system.ads
<system-linux-mipsel.ads
1773 LIBGNAT_TARGET_PAIRS_64
= \
1774 system.ads
<system-linux-mips64el.ads
1776 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1777 LIBGNAT_TARGET_PAIRS
= \
1778 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1780 LIBGNAT_TARGET_PAIRS
= \
1781 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1784 TOOLS_TARGET_PAIRS
= \
1785 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1786 indepsw.adb
<indepsw-gnu.adb
1788 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1790 THREADSLIB
= -lpthread
1791 GNATLIB_SHARED
= gnatlib-shared-dual
1793 LIBRARY_VERSION
:= $(LIB_VERSION
)
1796 ifeq ($(strip $(filter-out powerpc
% linux
%,$(arch
) $(osys
))),)
1797 LIBGNAT_TARGET_PAIRS_COMMON
= \
1798 a-exetim.adb
<a-exetim-posix.adb \
1799 a-exetim.ads
<a-exetim-default.ads \
1800 a-intnam.ads
<a-intnam-linux.ads \
1801 s-inmaop.adb
<s-inmaop-posix.adb \
1802 s-intman.adb
<s-intman-posix.adb \
1803 s-linux.ads
<s-linux.ads \
1804 s-osinte.adb
<s-osinte-posix.adb \
1805 s-tpopsp.adb
<s-tpopsp-tls.adb \
1806 g-sercom.adb
<g-sercom-linux.adb \
1807 $(ATOMICS_TARGET_PAIRS
)
1809 ifeq ($(strip $(filter-out xenomai
,$(THREAD_KIND
))),)
1810 LIBGNAT_TARGET_PAIRS
= \
1811 $(LIBGNAT_TARGET_PAIRS_COMMON
)
1813 LIBGNAT_TARGET_PAIRS
+= \
1814 s-osinte.ads
<s-osinte-linux-xenomai.ads \
1815 s-osprim.adb
<s-osprim-linux-xenomai.adb \
1816 s-taprop.adb
<s-taprop-linux-xenomai.adb \
1817 s-taspri.ads
<s-taspri-linux-xenomai.ads \
1818 system.ads
<system-linux-ppc-xenomai.ads
1820 LIBGNAT_TARGET_PAIRS_32
= \
1821 system.ads
<system-linux-ppc.ads
1823 LIBGNAT_TARGET_PAIRS_64
= \
1824 system.ads
<system-linux-ppc64.ads
1826 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1827 LIBGNAT_TARGET_PAIRS
= \
1828 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1830 LIBGNAT_TARGET_PAIRS
= \
1831 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1834 LIBGNAT_TARGET_PAIRS
+= \
1835 s-osinte.ads
<s-osinte-linux.ads \
1836 s-osprim.adb
<s-osprim-posix.adb \
1837 s-taprop.adb
<s-taprop-linux.adb \
1838 s-tasinf.ads
<s-tasinf-linux.ads \
1839 s-tasinf.adb
<s-tasinf-linux.adb \
1840 s-taspri.ads
<s-taspri-posix-noaltstack.ads
1843 TOOLS_TARGET_PAIRS
= \
1844 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1845 indepsw.adb
<indepsw-gnu.adb
1847 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
1849 THREADSLIB
= -lpthread
-lrt
1850 GNATLIB_SHARED
= gnatlib-shared-dual
1852 LIBRARY_VERSION
:= $(LIB_VERSION
)
1855 ifeq ($(strip $(filter-out arm
% linux-gnueabi
,$(arch
) $(osys
)-$(word 4,$(targ
)))),)
1856 LIBGNAT_TARGET_PAIRS
= \
1857 a-intnam.ads
<a-intnam-linux.ads \
1858 s-inmaop.adb
<s-inmaop-posix.adb \
1859 s-intman.adb
<s-intman-posix.adb \
1860 s-linux.ads
<s-linux.ads \
1861 s-osinte.adb
<s-osinte-posix.adb \
1862 s-osinte.ads
<s-osinte-linux.ads \
1863 s-osprim.adb
<s-osprim-posix.adb \
1864 s-taprop.adb
<s-taprop-linux.adb \
1865 s-tasinf.ads
<s-tasinf-linux.ads \
1866 s-tasinf.adb
<s-tasinf-linux.adb \
1867 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1868 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb
1870 ifeq ($(strip $(filter-out arm
%b
,$(arch
))),)
1871 LIBGNAT_TARGET_PAIRS
+= \
1872 system.ads
<system-linux-armeb.ads
1874 LIBGNAT_TARGET_PAIRS
+= \
1875 system.ads
<system-linux-armel.ads
1878 TOOLS_TARGET_PAIRS
= \
1879 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1880 indepsw.adb
<indepsw-gnu.adb
1882 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1884 THREADSLIB
= -lpthread
1885 GNATLIB_SHARED
= gnatlib-shared-dual
1887 LIBRARY_VERSION
:= $(LIB_VERSION
)
1890 ifeq ($(strip $(filter-out sparc
% linux
%,$(arch
) $(osys
))),)
1891 LIBGNAT_TARGET_PAIRS_COMMON
= \
1892 a-intnam.ads
<a-intnam-linux.ads \
1893 s-inmaop.adb
<s-inmaop-posix.adb \
1894 s-intman.adb
<s-intman-posix.adb \
1895 s-linux.ads
<s-linux-sparc.ads \
1896 s-osinte.adb
<s-osinte-posix.adb \
1897 s-osinte.ads
<s-osinte-linux.ads \
1898 s-osprim.adb
<s-osprim-posix.adb \
1899 s-taprop.adb
<s-taprop-linux.adb \
1900 s-tasinf.ads
<s-tasinf-linux.ads \
1901 s-tasinf.adb
<s-tasinf-linux.adb \
1902 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1903 s-tpopsp.adb
<s-tpopsp-tls.adb
1905 LIBGNAT_TARGET_PAIRS_32
= \
1906 g-trasym.ads
<g-trasym-unimplemented.ads \
1907 g-trasym.adb
<g-trasym-unimplemented.adb \
1908 system.ads
<system-linux-sparc.ads
1910 LIBGNAT_TARGET_PAIRS_64
= \
1911 system.ads
<system-linux-sparcv9.ads
1913 ifeq ($(strip $(shell $(GCC_FOR_TARGET
) $(GNATLIBCFLAGS
) -print-multi-os-directory
)),..
/lib64
)
1914 LIBGNAT_TARGET_PAIRS
= \
1915 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_64
)
1917 LIBGNAT_TARGET_PAIRS
= \
1918 $(LIBGNAT_TARGET_PAIRS_COMMON
) $(LIBGNAT_TARGET_PAIRS_32
)
1921 TOOLS_TARGET_PAIRS
= \
1922 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1923 indepsw.adb
<indepsw-gnu.adb
1925 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1927 THREADSLIB
= -lpthread
1928 GNATLIB_SHARED
= gnatlib-shared-dual
1930 LIBRARY_VERSION
:= $(LIB_VERSION
)
1933 ifeq ($(strip $(filter-out hppa
% linux
%,$(arch
) $(osys
))),)
1934 LIBGNAT_TARGET_PAIRS
= \
1935 a-intnam.ads
<a-intnam-linux.ads \
1936 s-inmaop.adb
<s-inmaop-posix.adb \
1937 s-intman.adb
<s-intman-posix.adb \
1938 s-linux.ads
<s-linux-hppa.ads \
1939 s-osinte.adb
<s-osinte-posix.adb \
1940 s-osinte.ads
<s-osinte-linux.ads \
1941 s-osprim.adb
<s-osprim-posix.adb \
1942 s-taprop.adb
<s-taprop-linux.adb \
1943 s-tasinf.ads
<s-tasinf-linux.ads \
1944 s-tasinf.adb
<s-tasinf-linux.adb \
1945 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1946 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1947 g-trasym.ads
<g-trasym-unimplemented.ads \
1948 g-trasym.adb
<g-trasym-unimplemented.adb \
1949 system.ads
<system-linux-hppa.ads
1951 TOOLS_TARGET_PAIRS
= \
1952 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1953 indepsw.adb
<indepsw-gnu.adb
1955 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1957 THREADSLIB
= -lpthread
1958 GNATLIB_SHARED
= gnatlib-shared-dual
1960 LIBRARY_VERSION
:= $(LIB_VERSION
)
1963 ifeq ($(strip $(filter-out sh4
% linux
%,$(arch
) $(osys
))),)
1964 LIBGNAT_TARGET_PAIRS
= \
1965 a-intnam.ads
<a-intnam-linux.ads \
1966 s-inmaop.adb
<s-inmaop-posix.adb \
1967 s-intman.adb
<s-intman-posix.adb \
1968 s-linux.ads
<s-linux.ads \
1969 s-osinte.adb
<s-osinte-posix.adb \
1970 s-osinte.ads
<s-osinte-linux.ads \
1971 s-osprim.adb
<s-osprim-posix.adb \
1972 s-taprop.adb
<s-taprop-linux.adb \
1973 s-tasinf.ads
<s-tasinf-linux.ads \
1974 s-tasinf.adb
<s-tasinf-linux.adb \
1975 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1976 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1977 system.ads
<system-linux-sh4.ads
1979 TOOLS_TARGET_PAIRS
= \
1980 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1981 indepsw.adb
<indepsw-linux.adb
1983 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1986 THREADSLIB
= -lpthread
1987 GNATLIB_SHARED
= gnatlib-shared-dual
1989 LIBRARY_VERSION
:= $(LIB_VERSION
)
1992 ifeq ($(strip $(filter-out %ia64 linux
%,$(arch
) $(osys
))),)
1993 LIBGNAT_TARGET_PAIRS
= \
1994 a-exetim.adb
<a-exetim-posix.adb \
1995 a-exetim.ads
<a-exetim-default.ads \
1996 a-intnam.ads
<a-intnam-linux.ads \
1997 a-numaux.ads
<a-numaux-libc-x86.ads \
1998 s-inmaop.adb
<s-inmaop-posix.adb \
1999 s-intman.adb
<s-intman-posix.adb \
2000 s-linux.ads
<s-linux.ads \
2001 s-osinte.ads
<s-osinte-linux.ads \
2002 s-osinte.adb
<s-osinte-posix.adb \
2003 s-osprim.adb
<s-osprim-posix.adb \
2004 s-taprop.adb
<s-taprop-linux.adb \
2005 s-tasinf.ads
<s-tasinf-linux.ads \
2006 s-tasinf.adb
<s-tasinf-linux.adb \
2007 s-tpopsp.adb
<s-tpopsp-tls.adb \
2008 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2009 g-sercom.adb
<g-sercom-linux.adb \
2010 system.ads
<system-linux-ia64.ads \
2011 $(ATOMICS_TARGET_PAIRS
)
2013 TOOLS_TARGET_PAIRS
= \
2014 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2015 indepsw.adb
<indepsw-gnu.adb
2017 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2020 THREADSLIB
=-lpthread
-lrt
2021 GNATLIB_SHARED
=gnatlib-shared-dual
2023 LIBRARY_VERSION
:= $(LIB_VERSION
)
2026 ifeq ($(strip $(filter-out ia64
% hp hpux
%,$(targ
))),)
2027 LIBGNAT_TARGET_PAIRS
= \
2028 a-intnam.ads
<a-intnam-hpux.ads \
2029 s-inmaop.adb
<s-inmaop-posix.adb \
2030 s-intman.adb
<s-intman-posix.adb \
2031 s-osinte.adb
<s-osinte-posix.adb \
2032 s-osinte.ads
<s-osinte-hpux.ads \
2033 s-osprim.adb
<s-osprim-posix.adb \
2034 s-taprop.adb
<s-taprop-posix.adb \
2035 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2036 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2037 system.ads
<system-hpux-ia64.ads \
2038 $(ATOMICS_TARGET_PAIRS
)
2040 TOOLS_TARGET_PAIRS
= \
2041 mlib-tgt-specific.adb
<mlib-tgt-specific-ia64-hpux.adb
2044 THREADSLIB
=-lpthread
2045 GNATLIB_SHARED
=gnatlib-shared-dual
2049 LIBRARY_VERSION
:= $(LIB_VERSION
)
2052 ifeq ($(strip $(filter-out alpha
% linux
%,$(arch
) $(osys
))),)
2053 LIBGNAT_TARGET_PAIRS
= \
2054 a-intnam.ads
<a-intnam-linux.ads \
2055 s-inmaop.adb
<s-inmaop-posix.adb \
2056 s-intman.adb
<s-intman-posix.adb \
2057 s-linux.ads
<s-linux-alpha.ads \
2058 s-osinte.ads
<s-osinte-linux.ads \
2059 s-osinte.adb
<s-osinte-posix.adb \
2060 s-osprim.adb
<s-osprim-posix.adb \
2061 s-taprop.adb
<s-taprop-linux.adb \
2062 s-tasinf.ads
<s-tasinf-linux.ads \
2063 s-tasinf.adb
<s-tasinf-linux.adb \
2064 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2065 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
2066 g-trasym.ads
<g-trasym-unimplemented.ads \
2067 g-trasym.adb
<g-trasym-unimplemented.adb \
2068 system.ads
<system-linux-alpha.ads \
2069 $(ATOMICS_TARGET_PAIRS
)
2071 TOOLS_TARGET_PAIRS
= \
2072 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2073 indepsw.adb
<indepsw-gnu.adb
2075 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
2078 THREADSLIB
=-lpthread
2079 GNATLIB_SHARED
=gnatlib-shared-dual
2080 LIBRARY_VERSION
:= $(LIB_VERSION
)
2083 ifeq ($(strip $(filter-out %x86_64 linux
%,$(arch
) $(osys
))),)
2084 LIBGNAT_TARGET_PAIRS
= \
2085 a-exetim.adb
<a-exetim-posix.adb \
2086 a-exetim.ads
<a-exetim-default.ads \
2087 a-intnam.ads
<a-intnam-linux.ads \
2088 a-numaux.adb
<a-numaux-x86.adb \
2089 a-numaux.ads
<a-numaux-x86.ads \
2090 s-inmaop.adb
<s-inmaop-posix.adb \
2091 s-intman.adb
<s-intman-posix.adb \
2092 s-linux.ads
<s-linux.ads \
2093 s-osinte.ads
<s-osinte-linux.ads \
2094 s-osinte.adb
<s-osinte-posix.adb \
2095 s-osprim.adb
<s-osprim-posix.adb \
2096 s-taprop.adb
<s-taprop-linux.adb \
2097 s-tasinf.ads
<s-tasinf-linux.ads \
2098 s-tasinf.adb
<s-tasinf-linux.adb \
2099 s-tpopsp.adb
<s-tpopsp-tls.adb \
2100 s-taspri.ads
<s-taspri-posix.ads \
2101 g-sercom.adb
<g-sercom-linux.adb \
2102 system.ads
<system-linux-x86_64.ads \
2103 $(ATOMICS_TARGET_PAIRS
)
2105 TOOLS_TARGET_PAIRS
= \
2106 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
2107 indepsw.adb
<indepsw-gnu.adb
2109 EXTRA_GNATRTL_NONTASKING_OBJS
=g-sse.o g-ssvety.o
2110 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o a-exetim.o
2112 THREADSLIB
=-lpthread
-lrt
2113 GNATLIB_SHARED
=gnatlib-shared-dual
2115 LIBRARY_VERSION
:= $(LIB_VERSION
)
2118 ifeq ($(strip $(filter-out darwin
%,$(osys
))),)
2119 ifeq ($(strip $(filter-out %86,$(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 ifeq ($(strip $(MULTISUBDIR
)),/x86_64
)
2136 LIBGNAT_TARGET_PAIRS
+= \
2137 system.ads
<system-darwin-x86_64.ads
2139 LIBGNAT_TARGET_PAIRS
+= \
2140 system.ads
<system-darwin-x86.ads
2144 ifeq ($(strip $(filter-out %x86_64
,$(arch
))),)
2145 LIBGNAT_TARGET_PAIRS
= \
2146 a-intnam.ads
<a-intnam-darwin.ads \
2147 i-forbla.adb
<i-forbla-darwin.adb \
2148 s-inmaop.adb
<s-inmaop-posix.adb \
2149 s-intman.adb
<s-intman-susv3.adb \
2150 s-osinte.adb
<s-osinte-darwin.adb \
2151 s-osinte.ads
<s-osinte-darwin.ads \
2152 s-osprim.adb
<s-osprim-darwin.adb \
2153 s-taprop.adb
<s-taprop-posix.adb \
2154 s-taspri.ads
<s-taspri-posix.ads \
2155 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2156 g-trasym.ads
<g-trasym-unimplemented.ads \
2157 g-trasym.adb
<g-trasym-unimplemented.adb \
2158 a-numaux.ads
<a-numaux-x86.ads \
2159 a-numaux.adb
<a-numaux-x86.adb \
2160 $(ATOMICS_TARGET_PAIRS
)
2161 ifeq ($(strip $(MULTISUBDIR
)),/i386
)
2162 LIBGNAT_TARGET_PAIRS
+= \
2163 system.ads
<system-darwin-x86.ads
2165 LIBGNAT_TARGET_PAIRS
+= \
2166 system.ads
<system-darwin-x86_64.ads
2170 ifeq ($(strip $(filter-out powerpc
%,$(arch
))),)
2171 LIBGNAT_TARGET_PAIRS
= \
2172 a-intnam.ads
<a-intnam-darwin.ads \
2173 i-forbla.adb
<i-forbla-darwin.adb \
2174 s-inmaop.adb
<s-inmaop-posix.adb \
2175 s-intman.adb
<s-intman-posix.adb \
2176 s-osinte.adb
<s-osinte-darwin.adb \
2177 s-osinte.ads
<s-osinte-darwin.ads \
2178 s-osprim.adb
<s-osprim-posix.adb \
2179 s-taprop.adb
<s-taprop-posix.adb \
2180 s-taspri.ads
<s-taspri-posix.ads \
2181 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
2182 a-numaux.ads
<a-numaux-darwin.ads \
2183 a-numaux.adb
<a-numaux-darwin.adb \
2184 g-trasym.ads
<g-trasym-unimplemented.ads \
2185 g-trasym.adb
<g-trasym-unimplemented.adb \
2186 system.ads
<system-darwin-ppc.ads
2189 TOOLS_TARGET_PAIRS
= \
2190 mlib-tgt-specific.adb
<mlib-tgt-specific-darwin.adb
2193 GNATLIB_SHARED
= gnatlib-shared-darwin
2194 SO_OPTS
= -Wl
,-flat_namespace
-shared-libgcc
2197 LIBRARY_VERSION
:= $(LIB_VERSION
)
2202 ifneq ($(EH_MECHANISM
),)
2203 LIBGNAT_TARGET_PAIRS
+= a-exexpr.adb
<a-exexpr
$(EH_MECHANISM
).adb
2204 EXTRA_LIBGNAT_SRCS
+=raise
$(EH_MECHANISM
).c
2205 EXTRA_LIBGNAT_OBJS
+=raise
$(EH_MECHANISM
).o
2208 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
2209 # explicitly already. The base files (a-except.ad?) are used only for building
2210 # the compiler and other basic tools.
2211 # These base versions lack Ada 2005 additions which would cause bootstrap
2212 # problems if included in the compiler and other basic tools.
2214 ifeq ($(filter a-except
%,$(LIBGNAT_TARGET_PAIRS
)),)
2215 LIBGNAT_TARGET_PAIRS
+= \
2216 a-except.ads
<a-except-2005.ads \
2217 a-except.adb
<a-except-2005.adb
2220 # The runtime library for gnat comprises two directories. One contains the
2221 # Ada source files that the compiler (gnat1) needs -- these files are listed
2222 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
2223 # corresponding .ali files for the parts written in Ada, libgnat.a for
2224 # the parts of the runtime written in C, and libgthreads.a for the pthreads
2225 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
2226 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
2227 # go into the directory. The pthreads emulation is built in the threads
2228 # subdirectory and copied.
2229 LIBGNAT_SRCS
= adadecode.c adadecode.h adaint.c adaint.h \
2230 argv.c cio.c cstreams.c errno.c exit.c cal.c ctrl_c.c env.c env.h \
2231 arit64.c raise.h raise.c sysdep.c aux-io.c init.c initialize.c \
2232 locales.c seh_init.c final.c tracebak.c tb-alvms.c tb-alvxw.c \
2233 tb-gcc.c expect.c mkdir.c socket.c gsocket.h targext.c
$(EXTRA_LIBGNAT_SRCS
)
2235 LIBGNAT_OBJS
= adadecode.o adaint.o argv.o cio.o cstreams.o ctrl_c.o \
2236 errno.o exit.o env.o raise.o sysdep.o aux-io.o init.o initialize.o \
2237 locales.o seh_init.o cal.o arit64.o final.o tracebak.o expect.o \
2238 mkdir.o socket.o targext.o
$(EXTRA_LIBGNAT_OBJS
)
2240 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2241 # the library installation will change and there will be a
2242 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2243 # from ADA_INCLUDE_SRCS.
2245 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2246 # the following include file:
2248 include $(fsrcdir
)/ada
/Makefile.rtl
2250 GNATRTL_LINEARALGEBRA_OBJS
= a-nlcoar.o a-nllcar.o a-nllrar.o a-nlrear.o \
2251 a-nucoar.o a-nurear.o i-forbla.o i-forlap.o s-gearop.o
2253 GNATRTL_OBJS
= $(GNATRTL_NONTASKING_OBJS
) $(GNATRTL_TASKING_OBJS
) \
2254 $(GNATRTL_LINEARALGEBRA_OBJS
) g-trasym.o memtrack.o
2256 # Default run time files
2259 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2260 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2261 sequenio.ads system.ads memtrack.adb \
2262 a-
[a-o
]*.adb a-
[p-z
]*.adb a-
[a-o
]*.ads a-
[p-z
]*.ads g-
*.ad? i-
*.ad? \
2263 s-
[a-o
]*.adb s-
[p-z
]*.adb s-
[a-o
]*.ads s-
[p-z
]*.ads
2265 LIBGNAT
=..
/$(RTSDIR
)/libgnat.a
2267 GCC_LINK
=$(CC
) $(GCC_LINK_FLAGS
) $(ADA_INCLUDES
)
2269 # when compiling the tools, the runtime has to be first on the path so that
2270 # it hides the runtime files lying with the rest of the sources
2271 ifeq ($(TOOLSCASE
),native
)
2272 vpath
%.ads ..
/$(RTSDIR
) ..
/
2273 vpath
%.adb ..
/$(RTSDIR
) ..
/
2274 vpath
%.c ..
/$(RTSDIR
) ..
/
2275 vpath
%.h ..
/$(RTSDIR
) ..
/
2278 # in the cross tools case, everything is compiled with the native
2279 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2280 ifeq ($(TOOLSCASE
),cross
)
2288 $(GNATMAKE
) -c
-b
$(ADA_INCLUDES
) \
2289 --GNATBIND
="$(GNATBIND)" --GCC
="$(CC) $(ALL_ADAFLAGS)" \
2290 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2291 gnatclean
-bargs
$(ADA_INCLUDES
) $(GNATBIND_FLAGS
)
2292 $(GNATLINK
) -v gnatcmd
-o ..
/..
/gnat
$(exeext
) \
2293 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2294 $(GNATLINK
) -v gnatchop
-o ..
/..
/gnatchop
$(exeext
) \
2295 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2296 $(GNATLINK
) -v gnatkr
-o ..
/..
/gnatkr
$(exeext
) \
2297 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2298 $(GNATLINK
) -v gnatls
-o ..
/..
/gnatls
$(exeext
) \
2299 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2300 $(GNATLINK
) -v gnatprep
-o ..
/..
/gnatprep
$(exeext
) \
2301 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2302 $(GNATLINK
) -v gnatxref
-o ..
/..
/gnatxref
$(exeext
) \
2303 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2304 $(GNATLINK
) -v gnatfind
-o ..
/..
/gnatfind
$(exeext
) \
2305 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2306 $(GNATLINK
) -v gnatname
-o ..
/..
/gnatname
$(exeext
) \
2307 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2308 $(GNATLINK
) -v gnatclean
-o ..
/..
/gnatclean
$(exeext
) \
2309 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2311 ..
/..
/gnatsym
$(exeext
):
2312 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatsym
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2313 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatsym
2314 $(GNATLINK
) -v gnatsym
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2316 ..
/..
/gnatdll
$(exeext
):
2317 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatdll
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2318 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatdll
2319 $(GNATLINK
) -v gnatdll
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2321 ..
/..
/vxaddr2line
$(exeext
): targext.o
2322 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vxaddr2line
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2323 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vxaddr2line
2324 $(GNATLINK
) -v vxaddr2line
-o
$@
--GCC
="$(GCC_LINK)" targext.o
$(CLIB
)
2326 gnatmake-re
: link.o targext.o
2327 $(GNATMAKE
) $(ADA_INCLUDES
) -u sdefault
--GCC
="$(CC) $(MOST_ADA_FLAGS)"
2328 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2329 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmake
2330 $(GNATLINK
) -v gnatmake
-o ..
/..
/gnatmake
$(exeext
) \
2331 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2333 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2334 # with the former version of gnatlink itself which cannot override itself.
2335 gnatlink-re
: link.o targext.o
2336 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlink
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2337 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlink
2338 $(GNATLINK
) -v gnatlink
-o ..
/..
/gnatlinknew
$(exeext
) \
2339 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2340 $(MV
) ..
/..
/gnatlinknew
$(exeext
) ..
/..
/gnatlink
$(exeext
)
2342 # Needs to be built with CC=gcc
2343 # Since the RTL should be built with the latest compiler, remove the
2344 # stamp target in the parent directory whenever gnat1 is rebuilt
2346 # Likewise for the tools
2347 ..
/..
/gnatmake
$(exeext
): $(P
) b_gnatm.o link.o targext.o
$(GNATMAKE_OBJS
)
2348 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatm.o
$(GNATMAKE_OBJS
) \
2351 ..
/..
/gnatlink
$(exeext
): $(P
) b_gnatl.o link.o targext.o
$(GNATLINK_OBJS
)
2352 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatl.o
$(GNATLINK_OBJS
) \
2355 ..
/stamp-gnatlib-
$(RTSDIR
):
2356 @if
[ ! -f stamp-gnatlib-
$(RTSDIR
) ] ; \
2358 $(ECHO
) You must first build the GNAT library
: make gnatlib
; \
2364 install-gnatlib
: ..
/stamp-gnatlib-
$(RTSDIR
)
2365 # Create the directory before deleting it, in case the directory is
2366 # a list of directories (as it may be on VMS). This ensures we are
2367 # deleting the right one.
2368 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2369 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2370 $(RMDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2371 $(RMDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2372 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2373 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
2374 for file in
$(RTSDIR
)/*.ali
; do \
2375 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2377 -$(INSTALL_DATA
) $(RTSDIR
)/g-trasym
$(objext
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
2378 -cd
$(RTSDIR
); for file in
*$(arext
);do \
2379 $(INSTALL_DATA
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2380 $(RANLIB_FOR_TARGET
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/$$file; \
2382 -$(foreach file
, $(EXTRA_ADALIB_FILES
), \
2383 $(INSTALL_DATA_DATE
) $(RTSDIR
)/$(file
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
) && \
2385 # Install the shared libraries, if any, using $(INSTALL) instead
2386 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2387 # for shared libraries on some targets, e.g. on HP-UX where the x
2388 # permission is required.
2389 # Also install the .dSYM directories if they exist (these directories
2390 # contain the debug information for the shared libraries on darwin)
2391 for file in gnat gnarl
; do \
2392 if
[ -f
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) ]; then \
2393 $(INSTALL
) $(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2394 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2396 if
[ -f
$(RTSDIR
)/lib
$${file}$(soext
) ]; then \
2397 $(LN_S
) lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2398 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/lib
$${file}$(soext
); \
2400 if
[ -d
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM
]; then \
2401 $(CP
) -r
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
).dSYM \
2402 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
2405 # This copy must be done preserving the date on the original file.
2406 for file in
$(RTSDIR
)/*.ad?
; do \
2407 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_INCLUDE_DIR
); \
2409 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.adb
2410 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.ads
2412 ..
/stamp-gnatlib2-
$(RTSDIR
):
2413 $(RM
) $(RTSDIR
)/s-
*.ali
2414 $(RM
) $(RTSDIR
)/s-
*$(objext
)
2415 $(RM
) $(RTSDIR
)/a-
*.ali
2416 $(RM
) $(RTSDIR
)/a-
*$(objext
)
2417 $(RM
) $(RTSDIR
)/*.ali
2418 $(RM
) $(RTSDIR
)/*$(objext
)
2419 $(RM
) $(RTSDIR
)/*$(arext
)
2420 $(RM
) $(RTSDIR
)/*$(soext
)
2421 touch ..
/stamp-gnatlib2-
$(RTSDIR
)
2422 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2424 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
2425 # successive target commands. Although the Gnu make documentation
2426 # implies this is true on all systems, I suspect it may not be, So care
2427 # has been taken to allow a sed script to look for ";)" and substitue
2428 # for ";" the appropriate character in the range of lines below
2429 # beginning with "GNULLI Begin" and ending with "GNULLI End"
2431 # GNULLI Begin ###########################################################
2433 ..
/stamp-gnatlib1-
$(RTSDIR
): Makefile ..
/stamp-gnatlib2-
$(RTSDIR
)
2436 $(CHMOD
) u
+w
$(RTSDIR
)
2437 # Copy target independent sources
2438 $(foreach f
,$(ADA_INCLUDE_SRCS
) $(LIBGNAT_SRCS
), \
2439 $(LN_S
) $(fsrcpfx
)ada
/$(f
) $(RTSDIR
) ;) true
2440 # Remove files to be replaced by target dependent sources
2441 $(RM
) $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2442 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
))))
2443 for f in
$(RTSDIR
)/*-*-*.ads
$(RTSDIR
)/*-*-*.adb
; do \
2445 $(RTSDIR
)/s-stratt-
*) ;; \
2449 # Copy new target dependent sources
2450 $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
2451 $(LN_S
) $(fsrcpfx
)ada
/$(word 2,$(subst <, ,$(PAIR
))) \
2452 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
)));)
2454 $(CP
) $(srcdir)/tsystem.h rts
2455 # Copy generated target dependent sources
2456 $(RM
) $(RTSDIR
)/s-oscons.ads
2457 (cd
$(RTSDIR
); $(LN_S
) ..
/s-oscons.ads s-oscons.ads
)
2458 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
2459 touch ..
/stamp-gnatlib1-
$(RTSDIR
)
2461 # GNULLI End #############################################################
2463 # Don't use semicolon separated shell commands that involve list expansions.
2464 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
2465 # line lengths in excess of 256 characters.
2466 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
2467 # is guaranteed to overflow the buffer.
2469 gnatlib
: ..
/stamp-gnatlib1-
$(RTSDIR
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2470 $(MAKE
) -C
$(RTSDIR
) \
2471 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2472 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2473 INCLUDES
="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2474 CFLAGS
="$(GNATLIBCFLAGS_FOR_C)" \
2475 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2477 -f ..
/Makefile
$(LIBGNAT_OBJS
)
2478 $(MAKE
) -C
$(RTSDIR
) \
2479 CC
="`echo \"$(GCC_FOR_TARGET)\" \
2480 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2482 CFLAGS
="$(GNATLIBCFLAGS)" \
2483 ADAFLAGS
="$(GNATLIBFLAGS)" \
2484 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
2488 $(RM
) $(RTSDIR
)/libgnat
$(arext
) $(RTSDIR
)/libgnarl
$(arext
)
2489 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnat
$(arext
) \
2490 $(addprefix $(RTSDIR
)/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
2491 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnat
$(arext
)
2492 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnarl
$(arext
) \
2493 $(addprefix $(RTSDIR
)/,$(GNATRTL_TASKING_OBJS
))
2494 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnarl
$(arext
)
2495 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnala
$(arext
) \
2496 $(addprefix $(RTSDIR
)/,$(GNATRTL_LINEARALGEBRA_OBJS
))
2497 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnala
$(arext
)
2498 ifeq ($(GMEM_LIB
),gmemlib
)
2499 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgmem
$(arext
) \
2500 $(RTSDIR
)/memtrack.o
2501 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgmem
$(arext
)
2503 $(CHMOD
) a-wx
$(RTSDIR
)/*.ali
2504 touch ..
/stamp-gnatlib-
$(RTSDIR
)
2506 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2507 gnatlib-shared-default
:
2508 $(MAKE
) $(FLAGS_TO_PASS
) \
2509 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2510 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2511 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2512 MULTISUBDIR
="$(MULTISUBDIR)" \
2513 THREAD_KIND
="$(THREAD_KIND)" \
2515 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2516 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
$(GNATLIBCFLAGS
) \
2517 $(TARGET_LIBGCC2_CFLAGS
) \
2518 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2519 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2520 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2522 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
$(GNATLIBCFLAGS
) \
2523 $(TARGET_LIBGCC2_CFLAGS
) \
2524 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2525 $(GNATRTL_TASKING_OBJS
) \
2526 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2528 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2530 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2533 gnatlib-shared-dual
:
2534 $(MAKE
) $(FLAGS_TO_PASS
) \
2535 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2536 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2537 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2538 MULTISUBDIR
="$(MULTISUBDIR)" \
2539 THREAD_KIND
="$(THREAD_KIND)" \
2540 gnatlib-shared-default
2541 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2542 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2543 $(MAKE
) $(FLAGS_TO_PASS
) \
2544 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2545 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2546 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2547 MULTISUBDIR
="$(MULTISUBDIR)" \
2548 THREAD_KIND
="$(THREAD_KIND)" \
2550 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2552 gnatlib-shared-dual-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)" \
2559 gnatlib-shared-win32
2560 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2561 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2562 $(MAKE
) $(FLAGS_TO_PASS
) \
2563 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2564 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2565 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2566 MULTISUBDIR
="$(MULTISUBDIR)" \
2567 THREAD_KIND
="$(THREAD_KIND)" \
2569 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2571 # ??? we need to add the option to support auto-import of arrays/records to
2572 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2573 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2575 gnatlib-shared-win32
:
2576 $(MAKE
) $(FLAGS_TO_PASS
) \
2577 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2578 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2579 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2580 MULTISUBDIR
="$(MULTISUBDIR)" \
2581 THREAD_KIND
="$(THREAD_KIND)" \
2583 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2584 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
-shared-libgcc \
2585 $(TARGET_LIBGCC2_CFLAGS
) \
2586 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2587 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2588 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) $(MISCLIB
)
2589 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
-shared-libgcc \
2590 $(TARGET_LIBGCC2_CFLAGS
) \
2591 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2592 $(GNATRTL_TASKING_OBJS
) \
2593 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2594 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2596 gnatlib-shared-darwin
:
2597 $(MAKE
) $(FLAGS_TO_PASS
) \
2598 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2599 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2600 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C) -fno-common" \
2601 MULTISUBDIR
="$(MULTISUBDIR)" \
2602 THREAD_KIND
="$(THREAD_KIND)" \
2604 $(RM
) $(RTSDIR
)/libgnat
$(soext
) $(RTSDIR
)/libgnarl
$(soext
)
2605 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
2606 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2607 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2609 -Wl
,-install_name
,@rpath
/libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2611 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
2612 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2613 $(GNATRTL_TASKING_OBJS
) \
2615 -Wl
,-install_name
,@rpath
/libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2616 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2617 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2619 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2621 cd
$(RTSDIR
); dsymutil libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2622 cd
$(RTSDIR
); dsymutil libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2625 $(MAKE
) $(FLAGS_TO_PASS
) \
2626 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2627 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2628 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2629 MULTISUBDIR
="$(MULTISUBDIR)" \
2630 THREAD_KIND
="$(THREAD_KIND)" \
2632 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2634 ..
/..
/gnatsym
-s SYMVEC_
$$$$.opt \
2635 $(LIBGNAT_OBJS
) $(GNATRTL_NONTASKING_OBJS
) && \
2636 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2637 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) libgnat.a \
2638 sys\
$$library:trace.exe \
2639 --for-linker
=/noinform \
2640 --for-linker
=SYMVEC_
$$$$.opt \
2641 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2643 ..
/..
/gnatsym
-s SYMVEC_
$$$$.opt \
2644 $(GNATRTL_TASKING_OBJS
) && \
2645 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2646 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2647 libgnarl.a libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2648 sys\
$$library:trace.exe \
2649 --for-linker
=/noinform \
2650 --for-linker
=SYMVEC_
$$$$.opt \
2651 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2654 $(MAKE
) $(FLAGS_TO_PASS
) \
2655 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2656 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2657 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2658 MULTISUBDIR
="$(MULTISUBDIR)" \
2659 THREAD_KIND
="$(THREAD_KIND)" \
2660 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" \
2664 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="" \
2665 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2666 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2667 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2668 $(MAKE
) $(FLAGS_TO_PASS
) \
2670 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2671 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2672 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2673 MULTISUBDIR
="$(MULTISUBDIR)" \
2674 THREAD_KIND
="$(THREAD_KIND)" \
2675 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2678 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="-gcc" \
2679 THREAD_KIND
="$(THREAD_KIND)" ..
/stamp-gnatlib1-
$(RTSDIR
)
2680 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2681 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2682 $(MAKE
) $(FLAGS_TO_PASS
) \
2683 EH_MECHANISM
="-gcc" \
2684 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2685 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2686 GNATLIBCFLAGS_FOR_C
="$(GNATLIBCFLAGS_FOR_C)" \
2687 MULTISUBDIR
="$(MULTISUBDIR)" \
2688 THREAD_KIND
="$(THREAD_KIND)" \
2689 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2691 # .s files for cross-building
2693 make
$(GNAT1_ADA_OBJS
) CC
="gcc -B../stage1/" CFLAGS
="-S -gnatp"
2695 # Compiling object files from source files.
2697 # Note that dependencies on obstack.h are not written
2698 # because that file is not part of GCC.
2699 # Dependencies on gvarargs.h are not written
2700 # because all that file does, when not compiling with GCC,
2701 # is include the system varargs.h.
2703 b_gnatl.adb
: $(GNATLINK_OBJS
)
2704 $(GNATBIND
) $(ADA_INCLUDES
) -o b_gnatl.adb gnatlink.ali
2706 b_gnatl.o
: b_gnatl.adb
2707 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) -gnatws
-gnatyN \
2710 b_gnatm.adb
: $(GNATMAKE_OBJS
)
2711 $(GNATBIND
) $(ADA_INCLUDES
) -o b_gnatm.adb gnatmake.ali
2713 b_gnatm.o
: b_gnatm.adb
2714 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) -gnatws
-gnatyN \
2717 ADA_INCLUDE_DIR
= $(libsubdir
)/adainclude
2718 ADA_RTL_OBJ_DIR
= $(libsubdir
)/adalib
2722 # force no sibling call optimization on s-traceb.o so the number of stack
2723 # frames to be skipped when computing a call chain is not modified by
2726 s-traceb.o
: s-traceb.adb s-traceb.ads
2727 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) \
2728 $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2730 # force debugging information on s-tasdeb.o so that it is always
2731 # possible to set conditional breakpoints on tasks.
2733 s-tasdeb.o
: s-tasdeb.adb s-tasdeb.ads
2734 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2737 # force debugging information on s-vaflop.o so that it is always
2738 # possible to call the VAX float debug print routines.
2739 # force at least -O so that the inline assembly works.
2741 s-vaflop.o
: s-vaflop.adb s-vaflop.ads
2742 $(CC
) -c
-O
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
2745 # force no function reordering on a-except.o because of the exclusion bounds
2746 # mechanism (see the source file for more detailed information).
2747 # force debugging information on a-except.o so that it is always
2748 # possible to set conditional breakpoints on exceptions.
2749 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2751 a-except.o
: a-except.adb a-except.ads
2752 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O1
-fno-inline \
2753 $(NO_REORDER_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2755 # compile s-except.o without optimization and with debug info to let the
2756 # debugger set breakpoints and inspect subprogram parameters on exception
2759 s-except.o
: s-except.adb s-except.ads
2760 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2763 # force debugging information on s-assert.o so that it is always
2764 # possible to set breakpoint on assert failures.
2766 s-assert.o
: s-assert.adb s-assert.ads
2767 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
2770 # force debugging information on a-tags.o so that the debugger can find
2771 # the description of Ada.Tags.Type_Specific_Data.
2773 a-tags.o
: a-tags.adb a-tags.ads
2774 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) $(ADA_INCLUDES
) \
2777 # need to keep the frame pointer in this file to pop the stack properly on
2779 tracebak.o
: tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2780 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) \
2781 $(INCLUDES
) -fno-omit-frame-pointer
$< $(OUTPUT_OPTION
)
2783 adadecode.o
: adadecode.c adadecode.h
2787 deftarg.o
: deftarg.c
2789 exit.o
: adaint.h exit.c
2792 locales.o
: locales.c
2794 socket.o
: socket.c gsocket.h
2796 raise.o
: raise.c raise.h
2797 vx_stack_info.o
: vx_stack_info.c
2799 raise-gcc.o
: raise-gcc.c raise.h
2800 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2802 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2805 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2806 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2808 init.o
: init.c adaint.h raise.h
2809 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2810 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2812 initialize.o
: initialize.c raise.h
2813 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2814 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2817 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2818 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
2821 targext.o
: targext.c
2822 $(COMPILER
) -c
$(ALL_COMPILERFLAGS
) $(ADA_CFLAGS
) \
2824 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
2827 # In GNU Make, ignore whether `stage*' exists.
2828 .PHONY
: stage1 stage2 stage3 stage4
clean realclean TAGS bootstrap
2829 .PHONY
: risky-stage1 risky-stage2 risky-stage3 risky-stage4