* gcc-interface/Makefile.in (NO_OMIT_ADAFLAGS): Define.
[official-gcc.git] / gcc / ada / gcc-interface / Makefile.in
blob2c0a38028d133b7f4b8c87ee1a8721348a831127
1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2016 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)
9 #any later version.
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
25 # 3) nothing else.
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:
36 # Required:
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.
47 # AR: Gnu ar works.
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.
54 # Optional:
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
60 .y.c:
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
69 CFLAGS = -g
70 BOOT_CFLAGS = -O $(CFLAGS)
71 # These exists to be overridden by the t-* files, respectively.
72 T_CFLAGS =
74 CC = cc
75 BISON = bison
76 BISONFLAGS =
77 ECHO = echo
78 LEX = flex
79 LEXFLAGS =
80 CHMOD = chmod
81 LN = ln
82 LN_S = ln -s
83 CP = cp -p
84 MV = mv -f
85 RM = rm -f
86 RMDIR = rm -rf
87 MKDIR = mkdir -p
88 AR = ar
89 AR_FLAGS = rc
90 LS = ls
91 RANLIB = @RANLIB@
92 RANLIB_FLAGS = @ranlib_flags@
93 AWK = @AWK@
95 COMPILER = $(CC)
96 COMPILER_FLAGS = $(CFLAGS)
98 SHELL = @SHELL@
99 PWD_COMMAND = $${PWDCMD-pwd}
100 # How to copy preserving the date
101 INSTALL_DATA_DATE = cp -p
102 MAKEINFO = makeinfo
103 TEXI2DVI = texi2dvi
104 TEXI2PDF = texi2pdf
105 GNATBIND_FLAGS = -static -x
106 ADA_CFLAGS =
107 ADAFLAGS = -W -Wall -gnatpg -gnata
108 FORCE_DEBUG_ADAFLAGS = -g
109 NO_INLINE_ADAFLAGS = -fno-inline
110 NO_OMIT_ADAFLAGS = -fno-omit-frame-pointer
111 NO_SIBLING_ADAFLAGS = -fno-optimize-sibling-calls
112 NO_REORDER_ADAFLAGS = -fno-toplevel-reorder
113 GNATLIBFLAGS = -W -Wall -gnatpg -nostdinc
114 GNATLIBCFLAGS = -g -O2
115 # Pretend that _Unwind_GetIPInfo is available for the target by default. This
116 # should be autodetected during the configuration of libada and passed down to
117 # here, but we need something for --disable-libada and hope for the best.
118 GNATLIBCFLAGS_FOR_C = \
119 -W -Wall $(GNATLIBCFLAGS) -fexceptions -DIN_RTS -DHAVE_GETIPINFO
120 PICFLAG_FOR_TARGET = @PICFLAG_FOR_TARGET@
121 ALL_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(ADAFLAGS)
122 THREAD_KIND = native
123 THREADSLIB =
124 GMEM_LIB =
125 MISCLIB =
126 OUTPUT_OPTION = -o $@
128 objext = .o
129 exeext =
130 arext = .a
131 soext = .so
132 shext =
133 hyphen = -
135 # program_transform_name and objdir are set by configure.ac.
136 program_transform_name =
137 objdir = .
139 target_alias=@target_alias@
140 target=@target@
141 target_cpu=@target_cpu@
142 target_vendor=@target_vendor@
143 target_os=@target_os@
144 host_cpu=@host_cpu@
145 host_vendor=@host_vendor@
146 host_os=@host_os@
147 target_cpu_default = @target_cpu_default@
148 xmake_file = @xmake_file@
149 tmake_file = @tmake_file@
150 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
151 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
153 # Directory where sources are, from where we are.
154 VPATH = $(srcdir)/ada
156 # Full path to top source directory
157 # In particular this is used to access libgcc headers, so that references to
158 # these headers from GNAT runtime objects have path names in debugging info
159 # that are consistent with libgcc objects. Also used for other references to
160 # the top source directory for consistency.
161 ftop_srcdir := $(shell cd $(srcdir)/..;${PWD_COMMAND})
163 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
164 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
165 fcurdir := $(shell ${PWD_COMMAND})
166 fcurpfx := $(shell ${PWD_COMMAND})/
168 # Top build directory, relative to here.
169 top_builddir = ../..
171 # Internationalization library.
172 LIBINTL = @LIBINTL@
173 LIBINTL_DEP = @LIBINTL_DEP@
175 # Character encoding conversion library.
176 LIBICONV = @LIBICONV@
177 LIBICONV_DEP = @LIBICONV_DEP@
179 # Any system libraries needed just for GNAT.
180 SYSLIBS = @GNAT_LIBEXC@
182 # List extra gnattools
183 EXTRA_GNATTOOLS =
185 # List of target dependent sources, overridden below as necessary
186 TARGET_ADA_SRCS =
188 # Type of tools build we are doing; default is not compiling tools.
189 TOOLSCASE =
191 # Multilib handling
192 MULTISUBDIR =
193 RTSDIR = rts$(subst /,_,$(MULTISUBDIR))
195 # Link flags used to build gnat tools. By default we prefer to statically
196 # link with libgcc to avoid a dependency on shared libgcc (which is tricky
197 # to deal with as it may conflict with the libgcc provided by the system).
198 GCC_LINK_FLAGS=-static-libstdc++ -static-libgcc
200 # End of variables for you to override.
202 all: all.indirect
204 # This tells GNU Make version 3 not to put all variables in the environment.
205 .NOEXPORT:
207 # target overrides
208 ifneq ($(tmake_file),)
209 include $(tmake_file)
210 endif
212 # host overrides
213 ifneq ($(xmake_file),)
214 include $(xmake_file)
215 endif
217 # Now figure out from those variables how to compile and link.
219 all.indirect: Makefile ../gnat1$(exeext)
221 # IN_GCC is meant to distinguish between code compiled into GCC itself, i.e.
222 # for the host, and the rest. But we also use it for the tools (link.c) and
223 # even break the host/target wall by using it for the library (targext.c).
224 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
225 # compiler which does not use the native libraries and headers.
226 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
228 # This is the variable actually used when we compile.
229 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS)
231 # Likewise.
232 ALL_CPPFLAGS = $(CPPFLAGS)
234 # Used with $(COMPILER).
235 ALL_COMPILERFLAGS = $(ALL_CFLAGS)
237 # This is where we get libiberty.a from.
238 LIBIBERTY = ../../libiberty/libiberty.a
240 # We need to link against libbacktrace because diagnostic.c in
241 # libcommon.a uses it.
242 LIBBACKTRACE = ../../libbacktrace/.libs/libbacktrace.a
244 # How to link with both our special library facilities
245 # and the system's installed libraries.
246 LIBS = $(LIBINTL) $(LIBICONV) $(LIBBACKTRACE) $(LIBIBERTY) $(SYSLIBS)
247 LIBDEPS = $(LIBINTL_DEP) $(LIBICONV_DEP) $(LIBBACKTRACE) $(LIBIBERTY)
248 # Default is no TGT_LIB; one might be passed down or something
249 TGT_LIB =
250 TOOLS_LIBS = ../link.o ../targext.o ../../ggc-none.o ../../libcommon-target.a \
251 ../../libcommon.a ../../../libcpp/libcpp.a $(LIBGNAT) $(LIBINTL) $(LIBICONV) \
252 ../$(LIBBACKTRACE) ../$(LIBIBERTY) $(SYSLIBS) $(TGT_LIB)
254 # Add -no-pie to TOOLS_LIBS since some of them are compiled with -fno-PIE.
255 TOOLS_LIBS += @NO_PIE_FLAG@
257 # Specify the directories to be searched for header files.
258 # Both . and srcdir are used, in that order,
259 # so that tm.h and config.h will be found in the compilation
260 # subdirectory rather than in the source directory.
261 INCLUDES = -iquote . -iquote .. -iquote $(srcdir)/ada -iquote $(srcdir) \
262 -I $(ftop_srcdir)/include $(GMPINC)
264 ADA_INCLUDES = -I- -I. -I$(srcdir)/ada
266 # Likewise, but valid for subdirectories of the current dir.
267 # FIXME: for VxWorks, we cannot add $(fsrcdir) because the regs.h file in
268 # that directory conflicts with a system header file.
269 ifneq ($(findstring vxworks,$(target_os)),)
270 INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \
271 -iquote $(fsrcdir)/ada \
272 -I$(ftop_srcdir)/include $(GMPINC)
273 else
274 INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \
275 -iquote $(fsrcdir)/ada -iquote $(fsrcdir) \
276 -I$(ftop_srcdir)/include $(GMPINC)
277 endif
279 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada
281 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
282 .SUFFIXES: .in .def
284 # Say how to compile Ada programs.
285 .SUFFIXES: .ada .adb .ads .asm
287 # Always use -I$(srcdir)/config when compiling.
288 .asm.o:
289 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
291 .c.o:
292 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
293 $(INCLUDES) $< $(OUTPUT_OPTION)
295 .adb.o:
296 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
298 .ads.o:
299 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
301 # how to regenerate this file
302 Makefile: ../config.status $(srcdir)/ada/gcc-interface/Makefile.in $(srcdir)/ada/Makefile.in $(srcdir)/version.c
303 cd ..; \
304 LANGUAGES="$(CONFIG_LANGUAGES)" \
305 CONFIG_HEADERS= \
306 CONFIG_FILES="ada/gcc-interface/Makefile ada/Makefile" $(SHELL) config.status
308 # This tells GNU make version 3 not to export all the variables
309 # defined in this file into the environment.
310 .NOEXPORT:
312 # Lists of files for various purposes.
314 GNATLINK_OBJS = gnatlink.o \
315 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
316 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
317 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
318 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
319 types.o validsw.o widechar.o
321 GNATMAKE_OBJS = a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o \
322 atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o errout.o \
323 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
324 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
325 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
326 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o \
327 output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o \
328 prj-conf.o prj-pp.o prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o \
329 prj-proc.o prj-strt.o prj-tree.o prj-util.o restrict.o rident.o s-exctab.o \
330 s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o \
331 s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o \
332 sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o \
333 switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o uintp.o \
334 uname.o urealp.o usage.o widechar.o \
335 $(EXTRA_GNATMAKE_OBJS)
337 # Make arch match the current multilib so that the RTS selection code
338 # picks up the right files. For a given target this must be coherent
339 # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*.
341 ifeq ($(strip $(filter-out %x86_64, $(target_cpu))),)
342 ifeq ($(strip $(MULTISUBDIR)),/32)
343 target_cpu:=i686
344 else
345 ifeq ($(strip $(MULTISUBDIR)),/x32)
346 target_cpu:=x32
347 endif
348 endif
349 endif
351 # ???: handle more multilib targets
353 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
354 # The members of each pair must be separated by a '<' and no whitespace.
355 # Each pair must be separated by some amount of whitespace from the following
356 # pair.
358 # Non-tasking case:
360 LIBGNAT_TARGET_PAIRS = \
361 a-intnam.ads<a-intnam-dummy.ads \
362 s-inmaop.adb<s-inmaop-dummy.adb \
363 s-intman.adb<s-intman-dummy.adb \
364 s-osinte.ads<s-osinte-dummy.ads \
365 s-osprim.adb<s-osprim-posix.adb \
366 s-taprop.adb<s-taprop-dummy.adb \
367 s-taspri.ads<s-taspri-dummy.ads
369 # When using the GCC exception handling mechanism, we need to use an
370 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
372 EH_MECHANISM=
374 # Default shared object option. Note that we rely on the fact that the "soname"
375 # option will always be present and last in this flag, so that we can have
376 # $(SO_OPTS)libgnat-x.xx
378 SO_OPTS = -Wl,-soname,
380 # Default gnatlib-shared target.
381 # By default, equivalent to gnatlib.
382 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
383 # target when supported.
384 GNATLIB_SHARED = gnatlib
386 # default value for gnatmake's target dependent file
387 MLIB_TGT = mlib-tgt
389 # By default, build socket support units. On platforms that do not support
390 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
391 # to LIBGNAT_TARGET_PAIRS.
393 GNATRTL_SOCKETS_OBJS = g-soccon$(objext) g-socket$(objext) g-socthi$(objext) \
394 g-soliop$(objext) g-sothco$(objext)
396 DUMMY_SOCKETS_TARGET_PAIRS = \
397 g-socket.adb<g-socket-dummy.adb \
398 g-socket.ads<g-socket-dummy.ads \
399 g-socthi.adb<g-socthi-dummy.adb \
400 g-socthi.ads<g-socthi-dummy.ads \
401 g-sothco.adb<g-sothco-dummy.adb \
402 g-sothco.ads<g-sothco-dummy.ads
404 # On platforms where atomic increment/decrement operations are supported,
405 # special version of Ada.Strings.Unbounded package can be used.
407 ATOMICS_TARGET_PAIRS = \
408 a-coinho.adb<a-coinho-shared.adb \
409 a-coinho.ads<a-coinho-shared.ads \
410 a-stunau.adb<a-stunau-shared.adb \
411 a-suteio.adb<a-suteio-shared.adb \
412 a-strunb.ads<a-strunb-shared.ads \
413 a-strunb.adb<a-strunb-shared.adb \
414 a-stwiun.adb<a-stwiun-shared.adb \
415 a-stwiun.ads<a-stwiun-shared.ads \
416 a-swunau.adb<a-swunau-shared.adb \
417 a-swuwti.adb<a-swuwti-shared.adb \
418 a-stzunb.adb<a-stzunb-shared.adb \
419 a-stzunb.ads<a-stzunb-shared.ads \
420 a-szunau.adb<a-szunau-shared.adb \
421 a-szuzti.adb<a-szuzti-shared.adb
423 ATOMICS_BUILTINS_TARGET_PAIRS = \
424 s-atocou.adb<s-atocou-builtin.adb
426 # Special version of units for x86 and x86-64 platforms.
428 X86_TARGET_PAIRS = \
429 a-numaux.ads<a-numaux-x86.ads \
430 a-numaux.adb<a-numaux-x86.adb \
431 s-atocou.adb<s-atocou-x86.adb
433 X86_64_TARGET_PAIRS = \
434 a-numaux.ads<a-numaux-x86.ads \
435 a-numaux.adb<a-numaux-x86.adb \
436 s-atocou.adb<s-atocou-builtin.adb
438 LIB_VERSION = $(strip $(shell grep ' Library_Version :' $(fsrcpfx)ada/gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
440 # Additionnal object files from C source to be added to libgnat.
441 EXTRA_LIBGNAT_OBJS=
443 # Additionnal C source files to be added to libgnat without corresponding
444 # object file (#included files). This should include at least the GNAT
445 # specific header files required to rebuild the runtime library from sources.
446 EXTRA_LIBGNAT_SRCS=
448 # Additionnal object files from Ada sources to be added in libgnat
449 EXTRA_GNATRTL_NONTASKING_OBJS=
451 # Additionnal object files from Ada sources to be added in libgnarl
452 EXTRA_GNATRTL_TASKING_OBJS=
454 # Subsets of extra libgnat sources that always go together
455 VX_SIGTRAMP_EXTRA_SRCS=sigtramp.h sigtramp-vxworks-target.inc
457 # Additional object files that should go in the same directory as libgnat,
458 # aside the library itself. Typically useful for crtbegin/crtend kind of files.
459 EXTRA_ADALIB_OBJS=
461 VX_CRTBE_EXTRA_ADALIB_OBJS=vx_crtbegin.o vx_crtbegin_auto.o vx_crtend.o
463 # GCC spec files to be installed in $(libsubdir), so --specs=<spec-filename>
464 # finds them at runtime.
465 GCC_SPEC_FILES=
467 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
468 # $(strip STRING) removes leading and trailing spaces from STRING.
469 # If what's left is null then it's a match.
471 # m68k VxWorks
472 ifeq ($(strip $(filter-out m68k% wrs vx%,$(target_cpu) $(target_vendor) $(target_os))),)
473 LIBGNAT_TARGET_PAIRS = \
474 a-intnam.ads<a-intnam-vxworks.ads \
475 a-numaux.ads<a-numaux-vxworks.ads \
476 s-inmaop.adb<s-inmaop-vxworks.adb \
477 s-interr.adb<s-interr-hwint.adb \
478 s-intman.ads<s-intman-vxworks.ads \
479 s-intman.adb<s-intman-vxworks.adb \
480 s-osinte.adb<s-osinte-vxworks.adb \
481 s-osinte.ads<s-osinte-vxworks.ads \
482 s-osprim.adb<s-osprim-vxworks.adb \
483 s-parame.ads<s-parame-vxworks.ads \
484 s-parame.adb<s-parame-vxworks.adb \
485 s-stchop.ads<s-stchop-limit.ads \
486 s-stchop.adb<s-stchop-vxworks.adb \
487 s-taprop.adb<s-taprop-vxworks.adb \
488 s-tasinf.ads<s-tasinf-vxworks.ads \
489 s-taspri.ads<s-taspri-vxworks.ads \
490 s-tpopsp.adb<s-tpopsp-vxworks.adb \
491 s-vxwork.ads<s-vxwork-m68k.ads \
492 g-socthi.ads<g-socthi-vxworks.ads \
493 g-socthi.adb<g-socthi-vxworks.adb \
494 g-stsifd.adb<g-stsifd-sockets.adb \
495 system.ads<system-vxworks-m68k.ads
497 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb
499 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
500 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
502 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
504 ifeq ($(strip $(filter-out yes,$(TRACE))),)
505 LIBGNAT_TARGET_PAIRS += \
506 s-traces.adb<s-traces-default.adb \
507 s-tratas.adb<s-tratas-default.adb \
508 s-trafor.adb<s-trafor-default.adb \
509 s-trafor.ads<s-trafor-default.ads \
510 s-tfsetr.adb<s-tfsetr-vxworks.adb
511 endif
512 endif
514 # PowerPC and e500v2 VxWorks
515 ifeq ($(strip $(filter-out powerpc% wrs vxworks vxworks7,$(target_cpu) $(target_vendor) $(target_os))),)
517 ifeq ($(strip $(filter-out e500%, $(target_alias))),)
518 ARCH_STR=e500
519 else
520 ARCH_STR=ppc
521 endif
523 ifeq ($(strip $(filter-out vxworks7%, $(target_os))),)
524 SVX=system-vxworks7
525 else
526 SVX=system-vxworks
527 endif
529 LIBGNAT_TARGET_PAIRS = \
530 a-intnam.ads<a-intnam-vxworks.ads \
531 a-numaux.ads<a-numaux-vxworks.ads \
532 s-inmaop.adb<s-inmaop-vxworks.adb \
533 s-intman.ads<s-intman-vxworks.ads \
534 s-intman.adb<s-intman-vxworks.adb \
535 s-osinte.ads<s-osinte-vxworks.ads \
536 s-osinte.adb<s-osinte-vxworks.adb \
537 s-osprim.adb<s-osprim-vxworks.adb \
538 s-parame.ads<s-parame-vxworks.ads \
539 s-parame.adb<s-parame-vxworks.adb \
540 s-taprop.adb<s-taprop-vxworks.adb \
541 s-tasinf.ads<s-tasinf-vxworks.ads \
542 s-taspri.ads<s-taspri-vxworks.ads \
543 s-vxwork.ads<s-vxwork-ppc.ads \
544 g-socthi.ads<g-socthi-vxworks.ads \
545 g-socthi.adb<g-socthi-vxworks.adb \
546 g-stsifd.adb<g-stsifd-sockets.adb \
547 $(ATOMICS_TARGET_PAIRS) \
548 $(ATOMICS_BUILTINS_TARGET_PAIRS)
550 # VxWorks 5 and 6 both use the same target triplet making them
551 # indistinguishable in the context of this make file. Package
552 # System.Stack_Checking.Operations is not needed on VxWorks 6 as it leads to
553 # an undefined symbol when building a dynamic shared library. To alleviate
554 # this problem and distinguish this case, we use the THREAD_KIND and include
555 # the package only in default mode.
557 ifeq ($(strip $(filter-out default,$(THREAD_KIND))),)
558 LIBGNAT_TARGET_PAIRS += \
559 s-stchop.ads<s-stchop-limit.ads \
560 s-stchop.adb<s-stchop-vxworks.adb
561 endif
563 TOOLS_TARGET_PAIRS=\
564 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
565 indepsw.adb<indepsw-gnu.adb
567 ifeq ($(strip $(filter-out yes,$(TRACE))),)
568 LIBGNAT_TARGET_PAIRS += \
569 s-traces.adb<s-traces-default.adb \
570 s-trafor.adb<s-trafor-default.adb \
571 s-trafor.ads<s-trafor-default.ads \
572 s-tratas.adb<s-tratas-default.adb \
573 s-tfsetr.adb<s-tfsetr-vxworks.adb
574 endif
576 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
577 LIBGNAT_TARGET_PAIRS += \
578 s-vxwext.ads<s-vxwext-rtp.ads \
579 s-vxwext.adb<s-vxwext-rtp.adb \
580 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
581 system.ads<system-vxworks-$(ARCH_STR)-rtp.ads
583 EH_MECHANISM=-gcc
584 else
585 ifeq ($(strip $(filter-out rtp-smp,$(THREAD_KIND))),)
586 LIBGNAT_TARGET_PAIRS += \
587 s-mudido.adb<s-mudido-affinity.adb \
588 s-vxwext.ads<s-vxwext-rtp.ads \
589 s-vxwext.adb<s-vxwext-rtp-smp.adb \
590 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
591 system.ads<$(SVX)-$(ARCH_STR)-rtp-smp.ads
593 EH_MECHANISM=-gcc
594 EXTRA_LIBGNAT_OBJS+=affinity.o
595 else
596 ifeq ($(strip $(filter-out kernel-smp,$(THREAD_KIND))),)
597 LIBGNAT_TARGET_PAIRS += \
598 s-interr.adb<s-interr-hwint.adb \
599 s-mudido.adb<s-mudido-affinity.adb \
600 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
601 s-vxwext.ads<s-vxwext-kernel.ads \
602 s-vxwext.adb<s-vxwext-kernel-smp.adb \
603 system.ads<system-vxworks-$(ARCH_STR)-kernel.ads
605 EH_MECHANISM=-gcc
606 EXTRA_LIBGNAT_OBJS+=affinity.o
607 else
608 LIBGNAT_TARGET_PAIRS += \
609 s-interr.adb<s-interr-hwint.adb \
610 s-tpopsp.adb<s-tpopsp-vxworks.adb
612 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
613 EH_MECHANISM=-gcc
614 LIBGNAT_TARGET_PAIRS += \
615 s-vxwext.ads<s-vxwext-kernel.ads \
616 s-vxwext.adb<s-vxwext-kernel.adb \
617 system.ads<system-vxworks-$(ARCH_STR)-kernel.ads
618 else
619 LIBGNAT_TARGET_PAIRS += \
620 system.ads<system-vxworks-ppc.ads
621 endif
622 endif
623 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
624 endif
625 endif
627 EXTRA_GNATRTL_TASKING_OBJS += s-vxwork.o s-vxwext.o
629 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
631 EXTRA_ADALIB_OBJS+=$(VX_CRTBE_EXTRA_ADALIB_OBJS)
632 EXTRA_LIBGNAT_SRCS+=vx_crtbegin.inc
633 GCC_SPEC_FILES+=vxworks-gnat-crtbe-link.spec
635 GCC_SPEC_FILES+=vxworks-$(ARCH_STR)-link.spec
636 endif
638 # PowerPC and e500v2 VxWorks 653
639 ifeq ($(strip $(filter-out powerpc% wrs vxworksae,$(target_cpu) $(target_vendor) $(target_os))),)
641 ifeq ($(strip $(filter-out e500%, $(target_alias))),)
642 ARCH_STR=e500
643 else
644 ARCH_STR=ppc
645 endif
647 # target pairs for vthreads runtime
648 LIBGNAT_TARGET_PAIRS = \
649 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
650 a-intnam.ads<a-intnam-vxworks.ads \
651 a-numaux.ads<a-numaux-vxworks.ads \
652 g-io.adb<g-io-vxworks-ppc-cert.adb \
653 s-inmaop.adb<s-inmaop-vxworks.adb \
654 s-interr.adb<s-interr-hwint.adb \
655 s-intman.ads<s-intman-vxworks.ads \
656 s-intman.adb<s-intman-vxworks.adb \
657 s-osinte.adb<s-osinte-vxworks.adb \
658 s-osinte.ads<s-osinte-vxworks.ads \
659 s-osprim.adb<s-osprim-vxworks.adb \
660 s-parame.ads<s-parame-ae653.ads \
661 s-parame.adb<s-parame-vxworks.adb \
662 s-taprop.adb<s-taprop-vxworks.adb \
663 s-tasinf.ads<s-tasinf-vxworks.ads \
664 s-taspri.ads<s-taspri-vxworks.ads \
665 s-tpopsp.adb<s-tpopsp-vxworks.adb \
666 s-vxwext.adb<s-vxwext-noints.adb \
667 s-vxwext.ads<s-vxwext-vthreads.ads \
668 s-vxwork.ads<s-vxwork-ppc.ads \
669 system.ads<system-vxworks-$(ARCH_STR)-vthread.ads \
670 $(ATOMICS_TARGET_PAIRS) \
671 $(ATOMICS_BUILTINS_TARGET_PAIRS)
673 EH_MECHANISM=-gcc
675 TOOLS_TARGET_PAIRS=\
676 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
677 indepsw.adb<indepsw-gnu.adb
679 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
680 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
682 EXTRA_LIBGNAT_OBJS+=sigtramp-vxworks.o
683 EXTRA_LIBGNAT_SRCS+=$(VX_SIGTRAMP_EXTRA_SRCS)
685 # Extra pairs for the vthreads runtime
686 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
687 LIBGNAT_TARGET_PAIRS += \
688 s-thread.adb<s-thread-ae653.adb \
689 s-osvers.ads<s-osvers-vxworks-653.ads \
690 $(DUMMY_SOCKETS_TARGET_PAIRS)
692 GNATRTL_SOCKETS_OBJS =
693 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o s-osvers.o
694 else
695 LIBGNAT_TARGET_PAIRS += \
696 g-socthi.ads<g-socthi-vxworks.ads \
697 g-socthi.adb<g-socthi-vxworks.adb \
698 g-stsifd.adb<g-stsifd-sockets.adb
699 endif
701 ifeq ($(strip $(filter-out yes,$(TRACE))),)
702 LIBGNAT_TARGET_PAIRS += \
703 s-traces.adb<s-traces-default.adb \
704 s-trafor.adb<s-trafor-default.adb \
705 s-trafor.ads<s-trafor-default.ads \
706 s-tratas.adb<s-tratas-default.adb \
707 s-tfsetr.adb<s-tfsetr-vxworks.adb
708 endif
709 endif
711 # PowerPC and e500v2 VxWorks MILS
712 ifeq ($(strip $(filter-out powerpc% wrs vxworksmils,$(target_cpu) $(target_vendor) $(target_os))),)
713 # target pairs for vthreads runtime
714 LIBGNAT_TARGET_PAIRS = \
715 a-elchha.adb<a-elchha-vx6-raven-cert.adb \
716 a-intnam.ads<a-intnam-vxworks.ads \
717 a-numaux.ads<a-numaux-vxworks.ads \
718 g-io.adb<g-io-vxworks-ppc-cert.adb \
719 s-inmaop.adb<s-inmaop-vxworks.adb \
720 s-interr.adb<s-interr-hwint.adb \
721 s-intman.ads<s-intman-vxworks.ads \
722 s-intman.adb<s-intman-vxworks.adb \
723 s-osinte.adb<s-osinte-vxworks.adb \
724 s-osinte.ads<s-osinte-vxworks.ads \
725 s-osprim.adb<s-osprim-vxworks.adb \
726 s-osvers.ads<s-osvers-vxworks-mils.ads \
727 s-parame.ads<s-parame-ae653.ads \
728 s-parame.adb<s-parame-vxworks.adb \
729 s-stchop.adb<s-stchop-vxworks.adb \
730 s-stchop.ads<s-stchop-limit.ads \
731 s-taprop.adb<s-taprop-vxworks.adb \
732 s-tasinf.ads<s-tasinf-vxworks.ads \
733 s-taspri.ads<s-taspri-vxworks.ads \
734 s-thread.adb<s-thread-ae653.adb \
735 s-tpopsp.adb<s-tpopsp-vxworks.adb \
736 s-vxwork.ads<s-vxwork-ppc.ads \
737 system.ads<system-vxworks-ppc-mils.ads \
738 $(ATOMICS_TARGET_PAIRS) \
739 $(ATOMICS_BUILTINS_TARGET_PAIRS) \
740 $(DUMMY_SOCKETS_TARGET_PAIRS)
742 TOOLS_TARGET_PAIRS=\
743 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
744 indepsw.adb<indepsw-gnu.adb
746 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-thread.o s-osvers.o
747 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
749 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
751 EXTRA_LIBGNAT_OBJS+=sigtramp-vxworks.o
752 EXTRA_LIBGNAT_SRCS+=$(VX_SIGTRAMP_EXTRA_SRCS)
754 GNATRTL_SOCKETS_OBJS =
756 ifeq ($(strip $(filter-out yes,$(TRACE))),)
757 LIBGNAT_TARGET_PAIRS += \
758 s-traces.adb<s-traces-default.adb \
759 s-trafor.adb<s-trafor-default.adb \
760 s-trafor.ads<s-trafor-default.ads \
761 s-tratas.adb<s-tratas-default.adb \
762 s-tfsetr.adb<s-tfsetr-vxworks.adb
763 endif
764 endif
766 # VxWorksae / VxWorks 653 for x86 (vxsim) - ?? VxWorks mils not implemented
767 ifeq ($(strip $(filter-out %86 wrs vxworksae,$(target_cpu) $(target_vendor) $(target_os))),)
768 # target pairs for kernel + vthreads runtime
769 LIBGNAT_TARGET_PAIRS = \
770 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
771 a-intnam.ads<a-intnam-vxworks.ads \
772 a-numaux.ads<a-numaux-vxworks.ads \
773 g-io.adb<g-io-vxworks-ppc-cert.adb \
774 s-inmaop.adb<s-inmaop-vxworks.adb \
775 s-interr.adb<s-interr-hwint.adb \
776 s-intman.ads<s-intman-vxworks.ads \
777 s-intman.adb<s-intman-vxworks.adb \
778 s-osinte.adb<s-osinte-vxworks.adb \
779 s-osinte.ads<s-osinte-vxworks.ads \
780 s-osprim.adb<s-osprim-vxworks.adb \
781 s-parame.ads<s-parame-ae653.ads \
782 s-parame.adb<s-parame-vxworks.adb \
783 s-taprop.adb<s-taprop-vxworks.adb \
784 s-tasinf.ads<s-tasinf-vxworks.ads \
785 s-taspri.ads<s-taspri-vxworks.ads \
786 s-tpopsp.adb<s-tpopsp-vxworks.adb \
787 s-vxwext.adb<s-vxwext-noints.adb \
788 s-vxwext.ads<s-vxwext-vthreads.ads \
789 s-vxwork.ads<s-vxwork-x86.ads \
790 system.ads<system-vxworks-x86-vthread.ads \
791 $(ATOMICS_TARGET_PAIRS) \
792 $(ATOMICS_BUILTINS_TARGET_PAIRS)
794 EH_MECHANISM=-gcc
796 TOOLS_TARGET_PAIRS=\
797 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
798 indepsw.adb<indepsw-gnu.adb
800 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-thread.o
801 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
803 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
804 GNATRTL_SOCKETS_OBJS =
806 # Extra pairs for the vthreads runtime
807 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
808 LIBGNAT_TARGET_PAIRS += \
809 s-thread.adb<s-thread-ae653.adb \
810 s-osvers.ads<s-osvers-vxworks-653.ads \
811 $(DUMMY_SOCKETS_TARGET_PAIRS)
813 GNATRTL_SOCKETS_OBJS =
814 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o s-osvers.o
815 else
816 LIBGNAT_TARGET_PAIRS += \
817 g-socthi.ads<g-socthi-vxworks.ads \
818 g-socthi.adb<g-socthi-vxworks.adb \
819 g-stsifd.adb<g-stsifd-sockets.adb
820 endif
822 ifeq ($(strip $(filter-out yes,$(TRACE))),)
823 LIBGNAT_TARGET_PAIRS += \
824 s-traces.adb<s-traces-default.adb \
825 s-trafor.adb<s-trafor-default.adb \
826 s-trafor.ads<s-trafor-default.ads \
827 s-tratas.adb<s-tratas-default.adb \
828 s-tfsetr.adb<s-tfsetr-vxworks.adb
829 endif
830 endif
832 # Sparc VxWorks
833 ifeq ($(strip $(filter-out sparc% wrs vx%,$(target_cpu) $(target_vendor) $(target_os))),)
834 LIBGNAT_TARGET_PAIRS = \
835 a-intnam.ads<a-intnam-vxworks.ads \
836 a-numaux.ads<a-numaux-vxworks.ads \
837 s-inmaop.adb<s-inmaop-vxworks.adb \
838 s-interr.adb<s-interr-hwint.adb \
839 s-intman.ads<s-intman-vxworks.ads \
840 s-intman.adb<s-intman-vxworks.adb \
841 s-osinte.adb<s-osinte-vxworks.adb \
842 s-osinte.ads<s-osinte-vxworks.ads \
843 s-osprim.adb<s-osprim-vxworks.adb \
844 s-parame.ads<s-parame-vxworks.ads \
845 s-parame.adb<s-parame-vxworks.adb \
846 s-stchop.ads<s-stchop-limit.ads \
847 s-stchop.adb<s-stchop-vxworks.adb \
848 s-taprop.adb<s-taprop-vxworks.adb \
849 s-tasinf.ads<s-tasinf-vxworks.ads \
850 s-taspri.ads<s-taspri-vxworks.ads \
851 s-tpopsp.adb<s-tpopsp-vxworks.adb \
852 g-socthi.ads<g-socthi-vxworks.ads \
853 g-socthi.adb<g-socthi-vxworks.adb \
854 g-stsifd.adb<g-stsifd-sockets.adb
856 TOOLS_TARGET_PAIRS=\
857 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
858 indepsw.adb<indepsw-gnu.adb
860 ifeq ($(strip $(filter-out sparc64 sparcv9, $(target_cpu))),)
861 # 64-bits
862 LIBGNAT_TARGET_PAIRS += \
863 s-vxwork.ads<s-vxwork-sparcv9.ads \
864 system.ads<system-vxworks-sparcv9.ads
865 else
866 # 32-bits
867 LIBGNAT_TARGET_PAIRS += \
868 s-vxwork.ads<s-vxwork-sparc.ads \
869 system.ads<system-vxworks-sparc-kernel.ads
870 endif
872 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
873 LIBGNAT_TARGET_PAIRS += \
874 s-vxwext.ads<s-vxwext-kernel.ads \
875 s-vxwext.adb<s-vxwext-kernel.adb
876 endif
878 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
879 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
881 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
882 endif
884 # x86/x86_64 VxWorks
885 ifeq ($(strip $(filter-out %86 x86_64 wrs vxworks vxworks7,$(target_cpu) $(target_vendor) $(target_os))),)
887 EH_MECHANISM=-gcc
889 ifeq ($(strip $(filter-out vxworks7%, $(target_os))),)
890 SVX=system-vxworks7
891 else
892 SVX=system-vxworks
893 endif
895 ifeq ($(strip $(filter-out x86_64, $(target_cpu))),)
896 X86CPU=x86_64
897 LIBGNAT_TARGET_PAIRS=$(X86_64_TARGET_PAIRS)
898 else
899 X86CPU=x86
900 LIBGNAT_TARGET_PAIRS=$(X86_TARGET_PAIRS)
901 endif
903 LIBGNAT_TARGET_PAIRS+= \
904 a-intnam.ads<a-intnam-vxworks.ads \
905 i-vxwork.ads<i-vxwork-x86.ads \
906 s-osinte.adb<s-osinte-vxworks.adb \
907 s-osinte.ads<s-osinte-vxworks.ads \
908 s-inmaop.adb<s-inmaop-vxworks.adb \
909 s-intman.ads<s-intman-vxworks.ads \
910 s-intman.adb<s-intman-vxworks.adb \
911 s-osprim.adb<s-osprim-vxworks.adb \
912 s-parame.ads<s-parame-vxworks.ads \
913 s-parame.adb<s-parame-vxworks.adb \
914 s-stchop.ads<s-stchop-limit.ads \
915 s-stchop.adb<s-stchop-vxworks.adb \
916 s-taprop.adb<s-taprop-vxworks.adb \
917 s-tasinf.ads<s-tasinf-vxworks.ads \
918 s-taspri.ads<s-taspri-vxworks.ads \
919 s-vxwork.ads<s-vxwork-x86.ads \
920 g-socthi.ads<g-socthi-vxworks.ads \
921 g-socthi.adb<g-socthi-vxworks.adb \
922 g-stsifd.adb<g-stsifd-sockets.adb \
923 $(ATOMICS_TARGET_PAIRS) \
924 $(CERTMATH_TARGET_PAIRS) \
925 $(CERTMATH_TARGET_PAIRS_SQRT_FPU) \
926 $(CERTMATH_TARGET_PAIRS_X86TRA)
928 TOOLS_TARGET_PAIRS=\
929 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
930 indepsw.adb<indepsw-gnu.adb
932 ifeq ($(strip $(filter-out yes,$(TRACE))),)
933 LIBGNAT_TARGET_PAIRS += \
934 s-traces.adb<s-traces-default.adb \
935 s-trafor.adb<s-trafor-default.adb \
936 s-trafor.ads<s-trafor-default.ads \
937 s-tratas.adb<s-tratas-default.adb \
938 s-tfsetr.adb<s-tfsetr-vxworks.adb
939 endif
941 # The CPU setting for VxSim varies with the
942 # host (Windows or Linux)
943 # target (VxWorks6 or VxWorks7)
944 # runtime (rtp or kernel)
945 # -------------------------------------------------------------
946 # vx6 vx7
947 # Windows (host_os = mingw32)
948 # kernel SIMNT SIMNT
949 # rtp SIMPENTIUM SIMNT
950 # Linux (host_os = linux-gnu)
951 # kernel SIMLINUX SIMLINUX
952 # rtp SIMPENTIUM SIMLINUX
953 # -------------------------------------------------------------
954 # It is overridden by VXSIM_CPU only in files init-vxsim.c and
955 # sigtramp-vxworks-vxsim.c which contain functions determined at
956 # runtime to be called if a program is running on VxSim vs real hardware
957 # (due to differences in signal context for unwinding).
959 ifneq ($(strip $(filter-out vxworks7, $(target_os))),)
960 ifeq ($(strip $(filter-out vxworks rtp rtp-smp,$(target_os) $(THREAD_KIND))),)
961 VXSIM_CPU = SIMPENTIUM
962 else
963 ifeq ($(strip $(filter-out kernel kernel-smp rtp rtp-smp,$(THREAD_KIND))),)
964 ifeq ($(strip $(filter-out linux%,$(host_os))),)
965 # Linux
966 VXSIM_CPU = SIMLINUX
967 else
968 # Windows
969 VXSIM_CPU = SIMNT
970 endif
971 endif
972 endif
974 GNATLIBCFLAGS_FOR_C := $(GNATLIBCFLAGS_FOR_C) -D__VXSIM_CPU__=$(VXSIM_CPU)
975 endif
977 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
978 # Runtime N/A for VxWorks7 (non-existent system file)
979 LIBGNAT_TARGET_PAIRS += \
980 s-vxwext.ads<s-vxwext-rtp.ads \
981 s-vxwext.adb<s-vxwext-rtp.adb \
982 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
983 system.ads<system-vxworks-x86-rtp.ads
984 else
985 ifeq ($(strip $(filter-out rtp-smp, $(THREAD_KIND))),)
986 LIBGNAT_TARGET_PAIRS += \
987 s-mudido.adb<s-mudido-affinity.adb \
988 s-vxwext.ads<s-vxwext-rtp.ads \
989 s-vxwext.adb<s-vxwext-rtp-smp.adb \
990 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
991 system.ads<$(SVX)-$(X86CPU)-rtp-smp.ads
993 EXTRA_LIBGNAT_OBJS+=affinity.o
994 else
995 ifeq ($(strip $(filter-out kernel-smp, $(THREAD_KIND))),)
996 LIBGNAT_TARGET_PAIRS += \
997 s-interr.adb<s-interr-hwint.adb \
998 s-mudido.adb<s-mudido-affinity.adb \
999 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
1000 s-vxwext.ads<s-vxwext-kernel.ads \
1001 s-vxwext.adb<s-vxwext-kernel-smp.adb \
1002 system.ads<$(SVX)-$(X86CPU)-kernel.ads
1004 EXTRA_LIBGNAT_OBJS+=affinity.o
1005 else
1006 LIBGNAT_TARGET_PAIRS += \
1007 s-interr.adb<s-interr-hwint.adb \
1008 s-tpopsp.adb<s-tpopsp-vxworks.adb
1010 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
1011 # Runtime N/A for VxWorks7 (non-existent system file)
1012 LIBGNAT_TARGET_PAIRS += \
1013 s-vxwext.ads<s-vxwext-kernel.ads \
1014 s-vxwext.adb<s-vxwext-kernel.adb \
1015 system.ads<$(SVX)-x86-kernel.ads
1016 else
1017 LIBGNAT_TARGET_PAIRS += \
1018 system.ads<system-vxworks-x86.ads
1019 endif
1020 endif
1022 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
1023 endif
1024 endif
1026 EXTRA_GNATRTL_NONTASKING_OBJS += \
1027 $(CERTMATH_GNATRTL_OBJS) $(CERTMATH_GNATRTL_X86TRA_OBJS)
1028 EXTRA_GNATRTL_TASKING_OBJS += s-vxwork.o s-vxwext.o
1030 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
1032 EXTRA_LIBGNAT_OBJS+=sigtramp-vxworks.o
1033 EXTRA_LIBGNAT_SRCS+=$(VX_SIGTRAMP_EXTRA_SRCS)
1035 EXTRA_ADALIB_OBJS+=$(VX_CRTBE_EXTRA_ADALIB_OBJS)
1036 EXTRA_LIBGNAT_SRCS+=vx_crtbegin.inc
1037 GCC_SPEC_FILES+=vxworks-gnat-crtbe-link.spec
1039 ifneq ($(strip $(filter-out vxworks7%, $(target_os))),)
1040 GCC_SPEC_FILES+=vxworks-x86-link.spec
1041 GCC_SPEC_FILES+=vxworks-cert-x86-link.spec
1042 GCC_SPEC_FILES+=vxworks-smp-x86-link.spec
1043 endif
1044 endif
1046 # ARM VxWorks
1047 ifeq ($(strip $(filter-out arm% coff wrs vx%,$(target_cpu) $(target_vendor) $(target_os))),)
1049 ifeq ($(strip $(filter-out vxworks7%, $(target_os))),)
1050 SVX=system-vxworks7
1051 EH_MECHANISM=-arm
1052 SIGTRAMP_OBJ=sigtramp-armvxworks.o
1053 else
1054 SVX=system-vxworks
1055 EH_MECHANISM=-gcc
1056 SIGTRAMP_OBJ=sigtramp-vxworks.o
1057 endif
1059 LIBGNAT_TARGET_PAIRS = \
1060 a-intnam.ads<a-intnam-vxworks.ads \
1061 a-numaux.ads<a-numaux-vxworks.ads \
1062 s-inmaop.adb<s-inmaop-vxworks.adb \
1063 s-interr.adb<s-interr-hwint.adb \
1064 s-intman.ads<s-intman-vxworks.ads \
1065 s-intman.adb<s-intman-vxworks.adb \
1066 s-osinte.adb<s-osinte-vxworks.adb \
1067 s-osinte.ads<s-osinte-vxworks.ads \
1068 s-osprim.adb<s-osprim-vxworks.adb \
1069 s-parame.ads<s-parame-vxworks.ads \
1070 s-parame.adb<s-parame-vxworks.adb \
1071 s-stchop.ads<s-stchop-limit.ads \
1072 s-stchop.adb<s-stchop-vxworks.adb \
1073 s-taprop.adb<s-taprop-vxworks.adb \
1074 s-tasinf.ads<s-tasinf-vxworks.ads \
1075 s-taspri.ads<s-taspri-vxworks.ads \
1076 s-vxwork.ads<s-vxwork-arm.ads \
1077 g-socthi.ads<g-socthi-vxworks.ads \
1078 g-socthi.adb<g-socthi-vxworks.adb \
1079 g-stsifd.adb<g-stsifd-sockets.adb
1081 TOOLS_TARGET_PAIRS=\
1082 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
1083 indepsw.adb<indepsw-gnu.adb
1085 ifeq ($(strip $(filter-out rtp-smp,$(THREAD_KIND))),)
1086 LIBGNAT_TARGET_PAIRS += \
1087 s-mudido.adb<s-mudido-affinity.adb \
1088 s-vxwext.ads<s-vxwext-rtp.ads \
1089 s-vxwext.adb<s-vxwext-rtp-smp.adb \
1090 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
1091 system.ads<$(SVX)-arm-rtp-smp.ads
1093 EXTRA_LIBGNAT_OBJS+=affinity.o
1095 EXTRA_LIBGNAT_OBJS+=$(SIGTRAMP_OBJ)
1096 EXTRA_LIBGNAT_SRCS+=$(VX_SIGTRAMP_EXTRA_SRCS)
1097 else
1098 ifeq ($(strip $(filter-out kernel-smp,$(THREAD_KIND))),)
1099 LIBGNAT_TARGET_PAIRS += \
1100 s-mudido.adb<s-mudido-affinity.adb \
1101 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
1102 s-vxwext.ads<s-vxwext-kernel.ads \
1103 s-vxwext.adb<s-vxwext-kernel-smp.adb \
1104 system.ads<$(SVX)-arm.ads
1106 EXTRA_LIBGNAT_OBJS+=affinity.o
1108 EXTRA_LIBGNAT_OBJS+=$(SIGTRAMP_OBJ)
1109 EXTRA_LIBGNAT_SRCS+=$(VX_SIGTRAMP_EXTRA_SRCS)
1110 else
1111 LIBGNAT_TARGET_PAIRS += \
1112 s-tpopsp.adb<s-tpopsp-vxworks.adb \
1113 system.ads<$(SVX)-arm.ads
1115 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
1116 LIBGNAT_TARGET_PAIRS += \
1117 s-vxwext.ads<s-vxwext-kernel.ads \
1118 s-vxwext.adb<s-vxwext-kernel.adb
1120 EXTRA_LIBGNAT_OBJS+=$(SIGTRAMP_OBJ)
1121 EXTRA_LIBGNAT_SRCS+=$(VX_SIGTRAMP_EXTRA_SRCS)
1122 endif
1123 endif
1124 endif
1126 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
1127 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
1129 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
1131 ifneq (-arm,$(EH_MECHANISM))
1132 EXTRA_ADALIB_OBJS+=$(VX_CRTBE_EXTRA_ADALIB_OBJS)
1133 EXTRA_LIBGNAT_SRCS+=vx_crtbegin.inc
1134 GCC_SPEC_FILES+=vxworks-gnat-crtbe-link.spec
1136 GCC_SPEC_FILES+=vxworks-arm-link.spec
1137 GCC_SPEC_FILES+=vxworks-smp-arm-link.spec
1138 endif
1139 endif
1141 # MIPS VxWorks
1142 ifeq ($(strip $(filter-out mips% wrs vx%,$(target_cpu) $(target_vendor) $(target_os))),)
1143 LIBGNAT_TARGET_PAIRS = \
1144 a-intnam.ads<a-intnam-vxworks.ads \
1145 a-numaux.ads<a-numaux-vxworks.ads \
1146 s-inmaop.adb<s-inmaop-vxworks.adb \
1147 s-interr.adb<s-interr-hwint.adb \
1148 s-intman.ads<s-intman-vxworks.ads \
1149 s-intman.adb<s-intman-vxworks.adb \
1150 s-osinte.adb<s-osinte-vxworks.adb \
1151 s-osinte.ads<s-osinte-vxworks.ads \
1152 s-osprim.adb<s-osprim-vxworks.adb \
1153 s-parame.ads<s-parame-vxworks.ads \
1154 s-parame.adb<s-parame-vxworks.adb \
1155 s-stchop.ads<s-stchop-limit.ads \
1156 s-stchop.adb<s-stchop-vxworks.adb \
1157 s-taprop.adb<s-taprop-vxworks.adb \
1158 s-tasinf.ads<s-tasinf-vxworks.ads \
1159 s-taspri.ads<s-taspri-vxworks.ads \
1160 s-tpopsp.adb<s-tpopsp-vxworks.adb \
1161 s-vxwork.ads<s-vxwork-mips.ads \
1162 g-socthi.ads<g-socthi-vxworks.ads \
1163 g-socthi.adb<g-socthi-vxworks.adb \
1164 g-stsifd.adb<g-stsifd-sockets.adb \
1165 system.ads<system-vxworks-mips.ads
1167 TOOLS_TARGET_PAIRS=\
1168 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
1169 indepsw.adb<indepsw-gnu.adb
1171 ifeq ($(strip $(filter-out rtp-smp,$(THREAD_KIND))),)
1172 EH_MECHANISM=-gcc
1174 LIBGNAT_TARGET_PAIRS += \
1175 s-mudido.adb<s-mudido-affinity.adb \
1176 s-vxwext.ads<s-vxwext-rtp.ads \
1177 s-vxwext.adb<s-vxwext-rtp-smp.adb \
1178 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb
1180 EXTRA_LIBGNAT_OBJS+=affinity.o
1182 EXTRA_LIBGNAT_OBJS+=sigtramp-vxworks.o
1183 EXTRA_LIBGNAT_SRCS+=$(VX_SIGTRAMP_EXTRA_SRCS)
1184 else
1185 ifeq ($(strip $(filter-out kernel-smp,$(THREAD_KIND))),)
1186 LIBGNAT_TARGET_PAIRS += \
1187 s-mudido.adb<s-mudido-affinity.adb \
1188 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
1189 s-vxwext.ads<s-vxwext-kernel.ads \
1190 s-vxwext.adb<s-vxwext-kernel-smp.adb
1192 EXTRA_LIBGNAT_OBJS+=affinity.o
1193 else
1194 LIBGNAT_TARGET_PAIRS += \
1195 s-tpopsp.adb<s-tpopsp-vxworks.adb
1197 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
1198 LIBGNAT_TARGET_PAIRS += \
1199 s-vxwext.ads<s-vxwext-kernel.ads \
1200 s-vxwext.adb<s-vxwext-kernel.adb
1201 endif
1202 endif
1203 endif
1205 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
1206 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
1208 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
1209 endif
1211 # ARM android
1212 ifeq ($(strip $(filter-out arm% linux-androideabi,$(target_cpu) $(target_os))),)
1213 LIBGNAT_TARGET_PAIRS = \
1214 a-intnam.ads<a-intnam-linux.ads \
1215 s-inmaop.adb<s-inmaop-posix.adb \
1216 s-intman.adb<s-intman-android.adb \
1217 s-linux.ads<s-linux-android.ads \
1218 s-osinte.adb<s-osinte-android.adb \
1219 s-osinte.ads<s-osinte-android.ads \
1220 s-osprim.adb<s-osprim-posix.adb \
1221 s-taprop.adb<s-taprop-posix.adb \
1222 s-taspri.ads<s-taspri-posix.ads \
1223 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1224 $(ATOMICS_TARGET_PAIRS) \
1225 $(ATOMICS_BUILTINS_TARGET_PAIRS) \
1226 system.ads<system-linux-arm.ads
1228 TOOLS_TARGET_PAIRS = \
1229 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1230 indepsw.adb<indepsw-gnu.adb
1232 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1233 EXTRA_LIBGNAT_OBJS+=sigtramp-armdroid.o
1234 EXTRA_LIBGNAT_SRCS+=sigtramp.h
1235 EH_MECHANISM=-arm
1236 THREADSLIB =
1237 GNATLIB_SHARED = gnatlib-shared-dual
1238 LIBRARY_VERSION := $(LIB_VERSION)
1239 endif
1241 # Sparc Solaris
1242 ifeq ($(strip $(filter-out sparc% sun solaris%,$(target_cpu) $(target_vendor) $(target_os))),)
1243 LIBGNAT_TARGET_PAIRS = \
1244 a-intnam.ads<a-intnam-solaris.ads \
1245 s-inmaop.adb<s-inmaop-posix.adb \
1246 s-intman.adb<s-intman-solaris.adb \
1247 s-mudido.adb<s-mudido-affinity.adb \
1248 s-osinte.adb<s-osinte-solaris.adb \
1249 s-osinte.ads<s-osinte-solaris.ads \
1250 s-osprim.adb<s-osprim-solaris.adb \
1251 s-taprop.adb<s-taprop-solaris.adb \
1252 s-tasinf.adb<s-tasinf-solaris.adb \
1253 s-tasinf.ads<s-tasinf-solaris.ads \
1254 s-taspri.ads<s-taspri-solaris.ads \
1255 s-tpopsp.adb<s-tpopsp-solaris.adb \
1256 g-soliop.ads<g-soliop-solaris.ads \
1257 $(ATOMICS_TARGET_PAIRS) \
1258 $(ATOMICS_BUILTINS_TARGET_PAIRS) \
1259 system.ads<system-solaris-sparc.ads
1261 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
1263 EH_MECHANISM=-gcc
1264 THREADSLIB = -lposix4 -lthread
1265 MISCLIB = -lposix4 -lnsl -lsocket
1266 SO_OPTS = -Wl,-h,
1267 GNATLIB_SHARED = gnatlib-shared-dual
1268 GMEM_LIB = gmemlib
1269 LIBRARY_VERSION := $(LIB_VERSION)
1271 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
1272 LIBGNAT_TARGET_PAIRS = \
1273 a-intnam.ads<a-intnam-solaris.ads \
1274 s-inmaop.adb<s-inmaop-posix.adb \
1275 s-intman.adb<s-intman-posix.adb \
1276 s-osinte.adb<s-osinte-posix.adb \
1277 s-osinte.ads<s-osinte-solaris-posix.ads \
1278 s-osprim.adb<s-osprim-solaris.adb \
1279 s-taprop.adb<s-taprop-posix.adb \
1280 s-taspri.ads<s-taspri-posix.ads \
1281 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1282 g-soliop.ads<g-soliop-solaris.ads \
1283 system.ads<system-solaris-sparc.ads
1285 THREADSLIB = -lposix4 -lpthread
1286 endif
1288 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
1289 LIBGNAT_TARGET_PAIRS = $(LIBGNAT_TARGET_PAIRS_64)
1290 endif
1291 endif
1293 # x86 and x86-64 solaris
1294 ifeq ($(strip $(filter-out %86 %x86_64 solaris2%,$(target_cpu) $(target_os))),)
1295 LIBGNAT_TARGET_PAIRS_COMMON = \
1296 a-intnam.ads<a-intnam-solaris.ads \
1297 s-inmaop.adb<s-inmaop-posix.adb \
1298 s-intman.adb<s-intman-solaris.adb \
1299 s-mudido.adb<s-mudido-affinity.adb \
1300 s-osinte.adb<s-osinte-solaris.adb \
1301 s-osinte.ads<s-osinte-solaris.ads \
1302 s-osprim.adb<s-osprim-solaris.adb \
1303 s-taprop.adb<s-taprop-solaris.adb \
1304 s-tasinf.adb<s-tasinf-solaris.adb \
1305 s-tasinf.ads<s-tasinf-solaris.ads \
1306 s-taspri.ads<s-taspri-solaris.ads \
1307 s-tpopsp.adb<s-tpopsp-solaris.adb \
1308 g-soliop.ads<g-soliop-solaris.ads \
1309 $(ATOMICS_TARGET_PAIRS) \
1310 system.ads<system-solaris-x86.ads
1312 ifeq ($(strip $(filter-out %86 solaris2%,$(target_cpu) $(target_os))),)
1313 ifeq ($(strip $(MULTISUBDIR)),/amd64)
1314 LIBGNAT_TARGET_PAIRS = \
1315 $(LIBGNAT_TARGET_PAIRS_COMMON) $(X86_64_TARGET_PAIRS)
1316 else
1317 LIBGNAT_TARGET_PAIRS = \
1318 $(LIBGNAT_TARGET_PAIRS_COMMON) $(X86_TARGET_PAIRS)
1319 endif
1320 else
1321 ifeq ($(strip $(MULTISUBDIR)),/32)
1322 LIBGNAT_TARGET_PAIRS = \
1323 $(LIBGNAT_TARGET_PAIRS_COMMON) $(X86_TARGET_PAIRS)
1324 else
1325 LIBGNAT_TARGET_PAIRS = \
1326 $(LIBGNAT_TARGET_PAIRS_COMMON) $(X86_64_TARGET_PAIRS)
1327 endif
1328 endif
1330 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
1332 EXTRA_GNATRTL_NONTASKING_OBJS += g-sse.o g-ssvety.o
1334 EH_MECHANISM=-gcc
1335 THREADSLIB = -lposix4 -lthread
1336 MISCLIB = -lposix4 -lnsl -lsocket
1337 SO_OPTS = -Wl,-h,
1338 GNATLIB_SHARED = gnatlib-shared-dual
1339 GMEM_LIB = gmemlib
1340 LIBRARY_VERSION := $(LIB_VERSION)
1341 endif
1343 # x86 Linux
1344 ifeq ($(strip $(filter-out %86 linux%,$(target_cpu) $(target_os))),)
1345 LIBGNAT_TARGET_PAIRS = \
1346 a-intnam.ads<a-intnam-linux.ads \
1347 a-synbar.adb<a-synbar-posix.adb \
1348 a-synbar.ads<a-synbar-posix.ads \
1349 s-inmaop.adb<s-inmaop-posix.adb \
1350 s-intman.adb<s-intman-posix.adb \
1351 s-tpopsp.adb<s-tpopsp-tls.adb \
1352 g-sercom.adb<g-sercom-linux.adb \
1353 a-exetim.adb<a-exetim-posix.adb \
1354 a-exetim.ads<a-exetim-default.ads \
1355 s-linux.ads<s-linux.ads \
1356 s-osinte.adb<s-osinte-posix.adb \
1357 $(ATOMICS_TARGET_PAIRS) \
1358 system.ads<system-linux-x86.ads
1360 ifeq ($(strip $(MULTISUBDIR)),/64)
1361 LIBGNAT_TARGET_PAIRS += $(X86_64_TARGET_PAIRS)
1362 else
1363 LIBGNAT_TARGET_PAIRS += $(X86_TARGET_PAIRS)
1364 endif
1366 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
1367 LIBGNAT_TARGET_PAIRS += \
1368 s-osinte.ads<s-osinte-linux-xenomai.ads \
1369 s-osprim.adb<s-osprim-linux-xenomai.adb \
1370 s-taprop.adb<s-taprop-linux-xenomai.adb \
1371 s-taspri.ads<s-taspri-linux-xenomai.ads
1372 else
1373 LIBGNAT_TARGET_PAIRS += \
1374 s-mudido.adb<s-mudido-affinity.adb \
1375 s-osinte.ads<s-osinte-linux.ads \
1376 s-osprim.adb<s-osprim-posix.adb \
1377 s-taprop.adb<s-taprop-linux.adb \
1378 s-tasinf.ads<s-tasinf-linux.ads \
1379 s-tasinf.adb<s-tasinf-linux.adb \
1380 s-taspri.ads<s-taspri-posix.ads
1381 endif
1383 EH_MECHANISM=-gcc
1384 THREADSLIB = -lpthread -lrt
1385 EXTRA_GNATRTL_NONTASKING_OBJS += g-sse.o g-ssvety.o
1386 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
1388 TOOLS_TARGET_PAIRS = \
1389 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1390 indepsw.adb<indepsw-gnu.adb
1392 GNATLIB_SHARED = gnatlib-shared-dual
1393 MISCLIB = -ldl
1394 GMEM_LIB = gmemlib
1395 LIBRARY_VERSION := $(LIB_VERSION)
1396 endif
1398 # x86 kfreebsd
1399 ifeq ($(strip $(filter-out %86 kfreebsd%,$(target_cpu) $(target_os))),)
1400 LIBGNAT_TARGET_PAIRS = \
1401 a-intnam.ads<a-intnam-freebsd.ads \
1402 s-inmaop.adb<s-inmaop-posix.adb \
1403 s-intman.adb<s-intman-posix.adb \
1404 s-osinte.adb<s-osinte-posix.adb \
1405 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
1406 s-osprim.adb<s-osprim-posix.adb \
1407 s-taprop.adb<s-taprop-posix.adb \
1408 s-taspri.ads<s-taspri-posix.ads \
1409 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1410 $(ATOMICS_TARGET_PAIRS) \
1411 $(X86_TARGET_PAIRS) \
1412 system.ads<system-freebsd-x86.ads
1414 TOOLS_TARGET_PAIRS = \
1415 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1416 indepsw.adb<indepsw-gnu.adb
1418 EXTRA_GNATRTL_NONTASKING_OBJS += g-sse.o g-ssvety.o
1420 EH_MECHANISM=-gcc
1421 THREADSLIB = -lpthread
1422 GNATLIB_SHARED = gnatlib-shared-dual
1423 GMEM_LIB = gmemlib
1424 LIBRARY_VERSION := $(LIB_VERSION)
1425 MISCLIB = -lutil
1426 endif
1428 # i[3456]86-pc-gnu i.e. GNU Hurd
1429 ifeq ($(strip $(filter-out %86 pc gnu,$(target_cpu) $(target_vendor) $(target_os))),)
1430 LIBGNAT_TARGET_PAIRS = \
1431 a-intnam.ads<a-intnam-freebsd.ads \
1432 s-inmaop.adb<s-inmaop-posix.adb \
1433 s-intman.adb<s-intman-posix.adb \
1434 s-osinte.adb<s-osinte-gnu.adb \
1435 s-osinte.ads<s-osinte-gnu.ads \
1436 s-osprim.adb<s-osprim-posix.adb \
1437 s-taprop.adb<s-taprop-posix.adb \
1438 s-taspri.ads<s-taspri-posix.ads \
1439 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1440 $(ATOMICS_TARGET_PAIRS) \
1441 $(X86_TARGET_PAIRS) \
1442 system.ads<system-freebsd-x86.ads
1444 TOOLS_TARGET_PAIRS = \
1445 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1446 indepsw.adb<indepsw-gnu.adb
1448 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
1450 EH_MECHANISM=-gcc
1451 THREADSLIB = -lpthread
1452 GNATLIB_SHARED = gnatlib-shared-dual
1453 GMEM_LIB = gmemlib
1454 LIBRARY_VERSION := $(LIB_VERSION)
1455 endif
1457 ifeq ($(strip $(filter-out x86_64 kfreebsd%,$(target_cpu) $(target_os))),)
1458 LIBGNAT_TARGET_PAIRS = \
1459 a-intnam.ads<a-intnam-freebsd.ads \
1460 a-numaux.adb<a-numaux-x86.adb \
1461 a-numaux.ads<a-numaux-x86.ads \
1462 s-inmaop.adb<s-inmaop-posix.adb \
1463 s-intman.adb<s-intman-posix.adb \
1464 s-osinte.adb<s-osinte-posix.adb \
1465 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
1466 s-osprim.adb<s-osprim-posix.adb \
1467 s-taprop.adb<s-taprop-posix.adb \
1468 s-taspri.ads<s-taspri-posix.ads \
1469 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1470 system.ads<system-freebsd-x86.ads
1472 TOOLS_TARGET_PAIRS = \
1473 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1474 indepsw.adb<indepsw-gnu.adb
1476 EH_MECHANISM=-gcc
1477 THREADSLIB = -lpthread
1478 GNATLIB_SHARED = gnatlib-shared-dual
1479 GMEM_LIB = gmemlib
1480 LIBRARY_VERSION := $(LIB_VERSION)
1481 endif
1483 # x86 FreeBSD
1484 ifeq ($(strip $(filter-out %86 freebsd%,$(target_cpu) $(target_os))),)
1485 LIBGNAT_TARGET_PAIRS = \
1486 a-intnam.ads<a-intnam-freebsd.ads \
1487 s-inmaop.adb<s-inmaop-posix.adb \
1488 s-intman.adb<s-intman-posix.adb \
1489 s-mudido.adb<s-mudido-affinity.adb \
1490 s-osinte.adb<s-osinte-freebsd.adb \
1491 s-osinte.ads<s-osinte-freebsd.ads \
1492 s-osprim.adb<s-osprim-posix.adb \
1493 s-taprop.adb<s-taprop-posix.adb \
1494 s-taspri.ads<s-taspri-posix.ads \
1495 s-tpopsp.adb<s-tpopsp-posix.adb \
1496 $(ATOMICS_TARGET_PAIRS) \
1497 $(X86_TARGET_PAIRS) \
1498 system.ads<system-freebsd-x86.ads
1500 TOOLS_TARGET_PAIRS = \
1501 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
1502 GNATLIB_SHARED = gnatlib-shared-dual
1504 EXTRA_GNATRTL_NONTASKING_OBJS += g-sse.o g-ssvety.o
1506 EH_MECHANISM=-gcc
1507 THREADSLIB= -lpthread
1508 GMEM_LIB = gmemlib
1509 LIBRARY_VERSION := $(LIB_VERSION)
1510 MISCLIB = -lutil
1511 endif
1513 # x86-64 FreeBSD
1514 ifeq ($(strip $(filter-out %86_64 freebsd%,$(target_cpu) $(target_os))),)
1515 LIBGNAT_TARGET_PAIRS = \
1516 a-intnam.ads<a-intnam-freebsd.ads \
1517 s-inmaop.adb<s-inmaop-posix.adb \
1518 s-intman.adb<s-intman-posix.adb \
1519 s-mudido.adb<s-mudido-affinity.adb \
1520 s-osinte.adb<s-osinte-freebsd.adb \
1521 s-osinte.ads<s-osinte-freebsd.ads \
1522 s-osprim.adb<s-osprim-posix.adb \
1523 s-taprop.adb<s-taprop-posix.adb \
1524 s-taspri.ads<s-taspri-posix.ads \
1525 s-tpopsp.adb<s-tpopsp-posix.adb \
1526 $(ATOMICS_TARGET_PAIRS) \
1527 $(X86_64_TARGET_PAIRS) \
1528 system.ads<system-freebsd-x86.ads
1530 TOOLS_TARGET_PAIRS = \
1531 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
1532 GNATLIB_SHARED = gnatlib-shared-dual
1534 EXTRA_GNATRTL_NONTASKING_OBJS += g-sse.o g-ssvety.o
1536 EH_MECHANISM=-gcc
1537 THREADSLIB= -lpthread
1538 GMEM_LIB = gmemlib
1539 LIBRARY_VERSION := $(LIB_VERSION)
1540 MISCLIB = -lutil
1541 endif
1543 # x86-64 DragonFly
1544 ifeq ($(strip $(filter-out %86_64 dragonfly%,$(target_cpu) $(target_os))),)
1545 LIBGNAT_TARGET_PAIRS = \
1546 a-intnam.ads<a-intnam-dragonfly.ads \
1547 s-inmaop.adb<s-inmaop-posix.adb \
1548 s-intman.adb<s-intman-posix.adb \
1549 s-mudido.adb<s-mudido-affinity.adb \
1550 s-osinte.adb<s-osinte-dragonfly.adb \
1551 s-osinte.ads<s-osinte-dragonfly.ads \
1552 s-osprim.adb<s-osprim-posix.adb \
1553 s-taprop.adb<s-taprop-posix.adb \
1554 s-taspri.ads<s-taspri-posix.ads \
1555 s-tpopsp.adb<s-tpopsp-posix.adb \
1556 $(ATOMICS_TARGET_PAIRS) \
1557 $(X86_64_TARGET_PAIRS) \
1558 system.ads<system-dragonfly-x86_64.ads
1560 TOOLS_TARGET_PAIRS = \
1561 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
1562 GNATLIB_SHARED = gnatlib-shared-dual
1564 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
1566 EH_MECHANISM=-gcc
1567 THREADSLIB= -lpthread
1568 GMEM_LIB = gmemlib
1569 LIBRARY_VERSION := $(LIB_VERSION)
1570 MISCLIB = -lutil
1571 endif
1573 # S390 Linux
1574 ifeq ($(strip $(filter-out s390% linux%,$(target_cpu) $(target_os))),)
1575 LIBGNAT_TARGET_PAIRS = \
1576 a-intnam.ads<a-intnam-linux.ads \
1577 s-inmaop.adb<s-inmaop-posix.adb \
1578 s-intman.adb<s-intman-posix.adb \
1579 s-linux.ads<s-linux.ads \
1580 s-osinte.adb<s-osinte-posix.adb \
1581 s-osinte.ads<s-osinte-linux.ads \
1582 s-osprim.adb<s-osprim-posix.adb \
1583 s-taprop.adb<s-taprop-linux.adb \
1584 s-tasinf.ads<s-tasinf-linux.ads \
1585 s-tasinf.adb<s-tasinf-linux.adb \
1586 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1587 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1588 system.ads<system-linux-s390.ads
1590 TOOLS_TARGET_PAIRS = \
1591 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1592 indepsw.adb<indepsw-gnu.adb
1594 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1595 EH_MECHANISM=-gcc
1596 THREADSLIB = -lpthread
1597 GNATLIB_SHARED = gnatlib-shared-dual
1598 LIBRARY_VERSION := $(LIB_VERSION)
1599 endif
1601 # HP/PA HP-UX 10
1602 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(target_cpu) $(target_vendor) $(target_os))),)
1603 LIBGNAT_TARGET_PAIRS = \
1604 a-excpol.adb<a-excpol-abort.adb \
1605 a-intnam.ads<a-intnam-hpux.ads \
1606 s-inmaop.adb<s-inmaop-posix.adb \
1607 s-interr.adb<s-interr-sigaction.adb \
1608 s-intman.adb<s-intman-posix.adb \
1609 s-osinte.adb<s-osinte-hpux-dce.adb \
1610 s-osinte.ads<s-osinte-hpux-dce.ads \
1611 s-parame.ads<s-parame-hpux.ads \
1612 s-osprim.adb<s-osprim-posix.adb \
1613 s-taprop.adb<s-taprop-hpux-dce.adb \
1614 s-taspri.ads<s-taspri-hpux-dce.ads \
1615 s-tpopsp.adb<s-tpopsp-posix.adb \
1616 system.ads<system-hpux.ads
1618 EH_MECHANISM=-gcc
1619 endif
1621 # HP/PA HP-UX 11
1622 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(target_cpu) $(target_vendor) $(target_os))),)
1623 LIBGNAT_TARGET_PAIRS = \
1624 a-intnam.ads<a-intnam-hpux.ads \
1625 s-inmaop.adb<s-inmaop-posix.adb \
1626 s-intman.adb<s-intman-posix.adb \
1627 s-osinte.adb<s-osinte-posix.adb \
1628 s-osinte.ads<s-osinte-hpux.ads \
1629 s-parame.ads<s-parame-hpux.ads \
1630 s-osprim.adb<s-osprim-posix.adb \
1631 s-traceb.adb<s-traceb-hpux.adb \
1632 s-taprop.adb<s-taprop-posix.adb \
1633 s-taspri.ads<s-taspri-posix.ads \
1634 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1635 system.ads<system-hpux.ads
1637 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb
1638 EH_MECHANISM=-gcc
1639 TGT_LIB = /usr/lib/libcl.a
1640 THREADSLIB = -lpthread
1641 GMEM_LIB = gmemlib
1642 soext = .sl
1643 SO_OPTS = -Wl,+h,
1644 GNATLIB_SHARED = gnatlib-shared-dual
1645 LIBRARY_VERSION := $(LIB_VERSION)
1646 endif
1648 # IBM AIX
1649 ifeq ($(strip $(filter-out ibm aix%,$(target_vendor) $(target_os))),)
1650 LIBGNAT_TARGET_PAIRS = \
1651 a-intnam.ads<a-intnam-aix.ads \
1652 s-inmaop.adb<s-inmaop-posix.adb \
1653 s-intman.adb<s-intman-posix.adb \
1654 s-osinte.adb<s-osinte-aix.adb \
1655 s-osinte.ads<s-osinte-aix.ads \
1656 s-osprim.adb<s-osprim-posix.adb \
1657 s-taprop.adb<s-taprop-posix.adb \
1658 s-taspri.ads<s-taspri-posix.ads \
1659 s-tpopsp.adb<s-tpopsp-posix.adb \
1660 $(ATOMICS_TARGET_PAIRS) \
1661 $(ATOMICS_BUILTINS_TARGET_PAIRS) \
1662 system.ads<system-aix.ads
1664 ifeq ($(findstring ppc64, \
1665 $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) \
1666 -print-multi-os-directory)), \
1667 ppc64)
1668 TOOLS_TARGET_PAIRS = indepsw.adb<indepsw-aix.adb
1669 else
1670 TOOLS_TARGET_PAIRS = indepsw.adb<indepsw-gnu.adb
1671 endif
1673 THREADSLIB = -lpthreads
1674 EH_MECHANISM=-gcc
1675 TOOLS_TARGET_PAIRS += \
1676 mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb
1678 GMEM_LIB = gmemlib
1679 endif
1681 # RTEMS
1682 ifeq ($(strip $(filter-out rtems%,$(target_os))),)
1683 LIBGNAT_TARGET_PAIRS = \
1684 system.ads<system-rtems.ads \
1685 a-intnam.ads<a-intnam-rtems.ads \
1686 s-inmaop.adb<s-inmaop-posix.adb \
1687 s-intman.adb<s-intman-posix.adb \
1688 s-osinte.adb<s-osinte-rtems.adb \
1689 s-osinte.ads<s-osinte-rtems.ads \
1690 s-osprim.adb<s-osprim-posix.adb \
1691 s-parame.adb<s-parame-rtems.adb \
1692 s-taprop.adb<s-taprop-posix.adb \
1693 s-taspri.ads<s-taspri-posix.ads \
1694 s-tpopsp.adb<s-tpopsp-rtems.adb \
1695 s-stchop.adb<s-stchop-rtems.adb \
1696 s-interr.adb<s-interr-hwint.adb
1697 endif
1699 # PikeOS
1700 ifeq ($(strip $(filter-out powerpc% %86 sysgo pikeos,$(target_cpu) $(target_vendor) $(target_os)))),)
1701 TOOLS_TARGET_PAIRS=\
1702 mlib-tgt-specific.adb<mlib-tgt-specific-xi.adb \
1703 indepsw.adb<indepsw-gnu.adb
1704 endif
1706 # *-elf, *-eabi, or *-eabispe
1707 ifeq ($(strip $(filter-out elf eabi eabispe,$(target_os))),)
1708 TOOLS_TARGET_PAIRS=\
1709 mlib-tgt-specific.adb<mlib-tgt-specific-xi.adb \
1710 indepsw.adb<indepsw-gnu.adb
1711 endif
1713 ifeq ($(strip $(filter-out %djgpp,$(target_os))),)
1714 GNATRTL_SOCKETS_OBJS =
1716 LIBGNAT_TARGET_PAIRS = \
1717 a-intnam.ads<a-intnam-dummy.ads \
1718 s-inmaop.adb<s-inmaop-dummy.adb \
1719 s-intman.adb<s-intman-dummy.adb \
1720 s-osinte.ads<s-osinte-dummy.ads \
1721 s-osprim.adb<s-osprim-unix.adb \
1722 s-taprop.adb<s-taprop-dummy.adb \
1723 s-taspri.ads<s-taspri-dummy.ads \
1724 system.ads<system-djgpp.ads \
1725 $(DUMMY_SOCKETS_TARGET_PAIRS)
1727 EH_MECHANISM=-gcc
1728 endif
1730 # Cygwin/Mingw32
1731 ifeq ($(strip $(filter-out cygwin% mingw32% pe,$(target_os))),)
1732 # Cygwin provides a full Posix environment, and so we use the default
1733 # versions of s-memory and g-socthi rather than the Windows-specific
1734 # MinGW versions. Ideally we would use all the default versions for
1735 # Cygwin and none of the MinGW versions, but for historical reasons
1736 # the Cygwin port has always been a CygMing frankenhybrid and it is
1737 # a long-term project to disentangle them.
1738 ifeq ($(strip $(filter-out cygwin%,$(target_os))),)
1739 LIBGNAT_TARGET_PAIRS = \
1740 s-memory.adb<s-memory.adb \
1741 g-socthi.ads<g-socthi.ads \
1742 g-socthi.adb<g-socthi.adb
1743 else
1744 LIBGNAT_TARGET_PAIRS = \
1745 s-memory.adb<s-memory-mingw.adb \
1746 g-socthi.ads<g-socthi-mingw.ads \
1747 g-socthi.adb<g-socthi-mingw.adb
1748 endif
1749 LIBGNAT_TARGET_PAIRS += \
1750 a-dirval.adb<a-dirval-mingw.adb \
1751 a-excpol.adb<a-excpol-abort.adb \
1752 s-gloloc.adb<s-gloloc-mingw.adb \
1753 s-inmaop.adb<s-inmaop-dummy.adb \
1754 s-taspri.ads<s-taspri-mingw.ads \
1755 s-tasinf.adb<s-tasinf-mingw.adb \
1756 s-tasinf.ads<s-tasinf-mingw.ads \
1757 g-stsifd.adb<g-stsifd-sockets.adb \
1758 g-soliop.ads<g-soliop-mingw.ads \
1759 $(ATOMICS_TARGET_PAIRS) \
1760 system.ads<system-mingw.ads
1762 LIBGNAT_TARGET_PAIRS += \
1763 a-exetim.adb<a-exetim-mingw.adb \
1764 a-exetim.ads<a-exetim-mingw.ads \
1765 a-intnam.ads<a-intnam-mingw.ads \
1766 g-sercom.adb<g-sercom-mingw.adb \
1767 s-interr.adb<s-interr-sigaction.adb \
1768 s-intman.adb<s-intman-mingw.adb \
1769 s-mudido.adb<s-mudido-affinity.adb \
1770 s-osinte.ads<s-osinte-mingw.ads \
1771 s-osprim.adb<s-osprim-mingw.adb \
1772 s-taprop.adb<s-taprop-mingw.adb
1774 ifeq ($(strip $(filter-out x86_64%,$(target_cpu))),)
1775 ifeq ($(strip $(MULTISUBDIR)),/32)
1776 LIBGNAT_TARGET_PAIRS += $(X86_TARGET_PAIRS)
1777 SO_OPTS= -m32 -Wl,-soname,
1778 else
1779 LIBGNAT_TARGET_PAIRS += $(X86_64_TARGET_PAIRS)
1780 SO_OPTS = -m64 -Wl,-soname,
1781 endif
1782 else
1783 ifeq ($(strip $(MULTISUBDIR)),/64)
1784 LIBGNAT_TARGET_PAIRS += $(X86_64_TARGET_PAIRS)
1785 SO_OPTS = -m64 -Wl,-soname,
1786 else
1787 LIBGNAT_TARGET_PAIRS += $(X86_TARGET_PAIRS)
1788 SO_OPTS = -m32 -Wl,-soname,
1789 endif
1790 endif
1792 EXTRA_GNATRTL_NONTASKING_OBJS += \
1793 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1794 EXTRA_GNATRTL_TASKING_OBJS = a-exetim.o
1795 EXTRA_LIBGNAT_SRCS+=mingw32.h
1796 MISCLIB = -lws2_32
1798 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1799 # auto-import support for array/record will be done.
1800 GNATLIB_SHARED = gnatlib-shared-win32
1802 EH_MECHANISM=-gcc
1804 TOOLS_TARGET_PAIRS= \
1805 mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb \
1806 indepsw.adb<indepsw-mingw.adb
1808 GMEM_LIB = gmemlib
1809 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1810 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1811 soext = .dll
1812 LIBRARY_VERSION := $(LIB_VERSION)
1813 endif
1815 # Mips Linux
1816 ifeq ($(strip $(filter-out mips linux%,$(target_cpu) $(target_os))),)
1817 LIBGNAT_TARGET_PAIRS = \
1818 a-intnam.ads<a-intnam-linux.ads \
1819 s-inmaop.adb<s-inmaop-posix.adb \
1820 s-intman.adb<s-intman-posix.adb \
1821 s-linux.ads<s-linux.ads \
1822 s-osinte.adb<s-osinte-posix.adb \
1823 s-osinte.ads<s-osinte-linux.ads \
1824 s-osprim.adb<s-osprim-posix.adb \
1825 s-taprop.adb<s-taprop-linux.adb \
1826 s-tasinf.ads<s-tasinf-linux.ads \
1827 s-tasinf.adb<s-tasinf-linux.adb \
1828 s-taspri.ads<s-taspri-posix.ads \
1829 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1830 system.ads<system-linux-mips.ads
1832 EH_MECHANISM=-gcc
1833 THREADSLIB = -lpthread
1834 GNATLIB_SHARED = gnatlib-shared-dual
1835 GMEM_LIB = gmemlib
1836 LIBRARY_VERSION := $(LIB_VERSION)
1837 endif
1839 # Mips/el and Mips64/el Linux
1840 ifeq ($(strip $(filter-out mipsel mips64el linux%,$(target_cpu) $(target_os))),)
1841 LIBGNAT_TARGET_PAIRS = \
1842 a-intnam.ads<a-intnam-linux.ads \
1843 s-inmaop.adb<s-inmaop-posix.adb \
1844 s-intman.adb<s-intman-posix.adb \
1845 s-linux.ads<s-linux-mipsel.ads \
1846 s-osinte.adb<s-osinte-posix.adb \
1847 s-osinte.ads<s-osinte-linux.ads \
1848 s-osprim.adb<s-osprim-posix.adb \
1849 s-taprop.adb<s-taprop-linux.adb \
1850 s-tasinf.ads<s-tasinf-linux.ads \
1851 s-tasinf.adb<s-tasinf-linux.adb \
1852 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1853 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1854 g-sercom.adb<g-sercom-linux.adb \
1855 system.ads<system-linux-mipsel.ads
1857 TOOLS_TARGET_PAIRS = \
1858 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1859 indepsw.adb<indepsw-gnu.adb
1861 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1862 EH_MECHANISM=-gcc
1863 THREADSLIB = -lpthread
1864 GNATLIB_SHARED = gnatlib-shared-dual
1865 GMEM_LIB = gmemlib
1866 LIBRARY_VERSION := $(LIB_VERSION)
1867 endif
1869 # PowerPC and e500v2 Linux
1870 ifeq ($(strip $(filter-out powerpc% linux%,$(target_cpu) $(target_os))),)
1871 LIBGNAT_TARGET_PAIRS_COMMON = \
1872 a-exetim.adb<a-exetim-posix.adb \
1873 a-exetim.ads<a-exetim-default.ads \
1874 a-intnam.ads<a-intnam-linux.ads \
1875 a-synbar.adb<a-synbar-posix.adb \
1876 a-synbar.ads<a-synbar-posix.ads \
1877 s-inmaop.adb<s-inmaop-posix.adb \
1878 s-intman.adb<s-intman-posix.adb \
1879 s-linux.ads<s-linux.ads \
1880 s-osinte.adb<s-osinte-posix.adb \
1881 s-tpopsp.adb<s-tpopsp-tls.adb \
1882 g-sercom.adb<g-sercom-linux.adb \
1883 $(ATOMICS_TARGET_PAIRS) \
1884 $(ATOMICS_BUILTINS_TARGET_PAIRS) \
1885 system.ads<system-linux-ppc.ads
1887 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
1888 LIBGNAT_TARGET_PAIRS = \
1889 $(LIBGNAT_TARGET_PAIRS_COMMON) \
1890 s-osinte.ads<s-osinte-linux-xenomai.ads \
1891 s-osprim.adb<s-osprim-linux-xenomai.adb \
1892 s-taprop.adb<s-taprop-linux-xenomai.adb \
1893 s-taspri.ads<s-taspri-linux-xenomai.ads
1894 else
1895 LIBGNAT_TARGET_PAIRS = \
1896 $(LIBGNAT_TARGET_PAIRS_COMMON) \
1897 s-mudido.adb<s-mudido-affinity.adb \
1898 s-osinte.ads<s-osinte-linux.ads \
1899 s-osprim.adb<s-osprim-posix.adb \
1900 s-taprop.adb<s-taprop-linux.adb \
1901 s-tasinf.ads<s-tasinf-linux.ads \
1902 s-tasinf.adb<s-tasinf-linux.adb \
1903 s-taspri.ads<s-taspri-posix-noaltstack.ads
1904 endif
1906 TOOLS_TARGET_PAIRS = \
1907 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1908 indepsw.adb<indepsw-gnu.adb
1910 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
1911 EH_MECHANISM=-gcc
1912 THREADSLIB = -lpthread -lrt
1913 GNATLIB_SHARED = gnatlib-shared-dual
1914 GMEM_LIB = gmemlib
1915 LIBRARY_VERSION := $(LIB_VERSION)
1916 endif
1918 # ARM linux, GNU eabi
1919 ifeq ($(strip $(filter-out arm% linux-gnueabi%,$(target_cpu) $(target_os))),)
1920 LIBGNAT_TARGET_PAIRS = \
1921 a-intnam.ads<a-intnam-linux.ads \
1922 s-inmaop.adb<s-inmaop-posix.adb \
1923 s-intman.adb<s-intman-posix.adb \
1924 s-linux.ads<s-linux.ads \
1925 s-osinte.adb<s-osinte-posix.adb \
1926 s-osinte.ads<s-osinte-linux.ads \
1927 s-osprim.adb<s-osprim-posix.adb \
1928 s-taprop.adb<s-taprop-linux.adb \
1929 s-tasinf.ads<s-tasinf-linux.ads \
1930 s-tasinf.adb<s-tasinf-linux.adb \
1931 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1932 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1933 $(ATOMICS_TARGET_PAIRS) \
1934 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1936 ifeq ($(strip $(filter-out arm%b,$(target_cpu))),)
1937 EH_MECHANISM=
1938 LIBGNAT_TARGET_PAIRS += \
1939 system.ads<system-linux-armeb.ads
1940 else
1941 EH_MECHANISM=-arm
1942 LIBGNAT_TARGET_PAIRS += \
1943 system.ads<system-linux-arm.ads
1944 endif
1946 TOOLS_TARGET_PAIRS = \
1947 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1948 indepsw.adb<indepsw-gnu.adb
1950 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1951 THREADSLIB = -lpthread
1952 GNATLIB_SHARED = gnatlib-shared-dual
1953 GMEM_LIB = gmemlib
1954 LIBRARY_VERSION := $(LIB_VERSION)
1955 endif
1957 # AArch64 Linux
1958 ifeq ($(strip $(filter-out aarch64% linux%,$(target_cpu) $(target_os))),)
1959 LIBGNAT_TARGET_PAIRS = \
1960 a-exetim.adb<a-exetim-posix.adb \
1961 a-exetim.ads<a-exetim-default.ads \
1962 a-intnam.ads<a-intnam-linux.ads \
1963 a-synbar.adb<a-synbar-posix.adb \
1964 a-synbar.ads<a-synbar-posix.ads \
1965 s-inmaop.adb<s-inmaop-posix.adb \
1966 s-intman.adb<s-intman-posix.adb \
1967 s-linux.ads<s-linux.ads \
1968 s-mudido.adb<s-mudido-affinity.adb \
1969 s-osinte.ads<s-osinte-linux.ads \
1970 s-osinte.adb<s-osinte-posix.adb \
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-tpopsp.adb<s-tpopsp-tls.adb \
1976 s-taspri.ads<s-taspri-posix.ads \
1977 g-sercom.adb<g-sercom-linux.adb \
1978 $(ATOMICS_TARGET_PAIRS) \
1979 $(ATOMICS_BUILTINS_TARGET_PAIRS) \
1980 system.ads<system-linux-arm.ads
1982 TOOLS_TARGET_PAIRS = \
1983 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1984 indepsw.adb<indepsw-gnu.adb
1986 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
1987 EH_MECHANISM=-gcc
1988 THREADSLIB=-lpthread -lrt
1989 GNATLIB_SHARED=gnatlib-shared-dual
1990 GMEM_LIB = gmemlib
1991 LIBRARY_VERSION := $(LIB_VERSION)
1992 endif
1994 # Sparc Linux
1995 ifeq ($(strip $(filter-out sparc% linux%,$(target_cpu) $(target_os))),)
1996 LIBGNAT_TARGET_PAIRS = \
1997 a-intnam.ads<a-intnam-linux.ads \
1998 s-inmaop.adb<s-inmaop-posix.adb \
1999 s-intman.adb<s-intman-posix.adb \
2000 s-linux.ads<s-linux-sparc.ads \
2001 s-osinte.adb<s-osinte-posix.adb \
2002 s-osinte.ads<s-osinte-linux.ads \
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-taspri.ads<s-taspri-posix-noaltstack.ads \
2008 s-tpopsp.adb<s-tpopsp-tls.adb \
2009 system.ads<system-linux-sparc.ads
2011 TOOLS_TARGET_PAIRS = \
2012 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2013 indepsw.adb<indepsw-gnu.adb
2015 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
2016 EH_MECHANISM=-gcc
2017 THREADSLIB = -lpthread
2018 GNATLIB_SHARED = gnatlib-shared-dual
2019 GMEM_LIB = gmemlib
2020 LIBRARY_VERSION := $(LIB_VERSION)
2021 endif
2023 # HP/PA Linux
2024 ifeq ($(strip $(filter-out hppa% linux%,$(target_cpu) $(target_os))),)
2025 LIBGNAT_TARGET_PAIRS = \
2026 a-intnam.ads<a-intnam-linux.ads \
2027 s-inmaop.adb<s-inmaop-posix.adb \
2028 s-intman.adb<s-intman-posix.adb \
2029 s-linux.ads<s-linux-hppa.ads \
2030 s-osinte.adb<s-osinte-posix.adb \
2031 s-osinte.ads<s-osinte-linux.ads \
2032 s-osprim.adb<s-osprim-posix.adb \
2033 s-taprop.adb<s-taprop-linux.adb \
2034 s-tasinf.ads<s-tasinf-linux.ads \
2035 s-tasinf.adb<s-tasinf-linux.adb \
2036 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2037 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2038 system.ads<system-linux-hppa.ads
2040 TOOLS_TARGET_PAIRS = \
2041 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2042 indepsw.adb<indepsw-gnu.adb
2044 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
2045 EH_MECHANISM=-gcc
2046 THREADSLIB = -lpthread
2047 GNATLIB_SHARED = gnatlib-shared-dual
2048 GMEM_LIB = gmemlib
2049 LIBRARY_VERSION := $(LIB_VERSION)
2050 endif
2052 # SH4 Linux
2053 ifeq ($(strip $(filter-out sh4% linux%,$(target_cpu) $(target_os))),)
2054 LIBGNAT_TARGET_PAIRS = \
2055 a-intnam.ads<a-intnam-linux.ads \
2056 s-inmaop.adb<s-inmaop-posix.adb \
2057 s-intman.adb<s-intman-posix.adb \
2058 s-linux.ads<s-linux.ads \
2059 s-osinte.adb<s-osinte-posix.adb \
2060 s-osinte.ads<s-osinte-linux.ads \
2061 s-osprim.adb<s-osprim-posix.adb \
2062 s-taprop.adb<s-taprop-linux.adb \
2063 s-tasinf.ads<s-tasinf-linux.ads \
2064 s-tasinf.adb<s-tasinf-linux.adb \
2065 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2066 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2067 system.ads<system-linux-sh4.ads
2069 TOOLS_TARGET_PAIRS = \
2070 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2071 indepsw.adb<indepsw-linux.adb
2073 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
2074 EH_MECHANISM=-gcc
2075 MISCLIB=
2076 THREADSLIB = -lpthread
2077 GNATLIB_SHARED = gnatlib-shared-dual
2078 GMEM_LIB = gmemlib
2079 LIBRARY_VERSION := $(LIB_VERSION)
2080 endif
2082 # IA64 Linux
2083 ifeq ($(strip $(filter-out %ia64 linux%,$(target_cpu) $(target_os))),)
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.ads<a-numaux-libc-x86.ads \
2089 a-synbar.adb<a-synbar-posix.adb \
2090 a-synbar.ads<a-synbar-posix.ads \
2091 s-inmaop.adb<s-inmaop-posix.adb \
2092 s-intman.adb<s-intman-posix.adb \
2093 s-linux.ads<s-linux.ads \
2094 s-mudido.adb<s-mudido-affinity.adb \
2095 s-osinte.ads<s-osinte-linux.ads \
2096 s-osinte.adb<s-osinte-posix.adb \
2097 s-osprim.adb<s-osprim-posix.adb \
2098 s-taprop.adb<s-taprop-linux.adb \
2099 s-tasinf.ads<s-tasinf-linux.ads \
2100 s-tasinf.adb<s-tasinf-linux.adb \
2101 s-tpopsp.adb<s-tpopsp-tls.adb \
2102 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2103 g-sercom.adb<g-sercom-linux.adb \
2104 $(ATOMICS_TARGET_PAIRS) \
2105 $(ATOMICS_BUILTINS_TARGET_PAIRS) \
2106 system.ads<system-linux-ia64.ads
2108 TOOLS_TARGET_PAIRS = \
2109 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2110 indepsw.adb<indepsw-gnu.adb
2112 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
2113 EH_MECHANISM=-gcc
2114 MISCLIB=
2115 THREADSLIB=-lpthread -lrt
2116 GNATLIB_SHARED=gnatlib-shared-dual
2117 GMEM_LIB = gmemlib
2118 LIBRARY_VERSION := $(LIB_VERSION)
2119 endif
2121 # IA64 HP-UX
2122 ifeq ($(strip $(filter-out ia64% hp hpux%,$(target_cpu) $(target_vendor) $(target_os))),)
2123 LIBGNAT_TARGET_PAIRS = \
2124 a-intnam.ads<a-intnam-hpux.ads \
2125 s-inmaop.adb<s-inmaop-posix.adb \
2126 s-intman.adb<s-intman-posix.adb \
2127 s-osinte.adb<s-osinte-posix.adb \
2128 s-osinte.ads<s-osinte-hpux.ads \
2129 s-osprim.adb<s-osprim-posix.adb \
2130 s-taprop.adb<s-taprop-posix.adb \
2131 s-taspri.ads<s-taspri-posix.ads \
2132 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2133 $(ATOMICS_TARGET_PAIRS) \
2134 $(ATOMICS_BUILTINS_TARGET_PAIRS) \
2135 system.ads<system-hpux-ia64.ads
2137 TOOLS_TARGET_PAIRS = \
2138 mlib-tgt-specific.adb<mlib-tgt-specific-ia64-hpux.adb
2140 MISCLIB=
2141 EH_MECHANISM=-gcc
2142 THREADSLIB=-lpthread
2143 GNATLIB_SHARED=gnatlib-shared-dual
2144 GMEM_LIB = gmemlib
2145 soext = .so
2146 SO_OPTS = -Wl,+h,
2147 LIBRARY_VERSION := $(LIB_VERSION)
2148 endif
2150 # Alpha Linux
2151 ifeq ($(strip $(filter-out alpha% linux%,$(target_cpu) $(target_os))),)
2152 LIBGNAT_TARGET_PAIRS = \
2153 a-intnam.ads<a-intnam-linux.ads \
2154 s-inmaop.adb<s-inmaop-posix.adb \
2155 s-intman.adb<s-intman-posix.adb \
2156 s-linux.ads<s-linux-alpha.ads \
2157 s-osinte.ads<s-osinte-linux.ads \
2158 s-osinte.adb<s-osinte-posix.adb \
2159 s-osprim.adb<s-osprim-posix.adb \
2160 s-taprop.adb<s-taprop-linux.adb \
2161 s-tasinf.ads<s-tasinf-linux.ads \
2162 s-tasinf.adb<s-tasinf-linux.adb \
2163 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2164 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2165 $(ATOMICS_TARGET_PAIRS) \
2166 $(ATOMICS_BUILTINS_TARGET_PAIRS) \
2167 system.ads<system-linux-alpha.ads
2169 TOOLS_TARGET_PAIRS = \
2170 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2171 indepsw.adb<indepsw-gnu.adb
2173 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
2174 EH_MECHANISM=-gcc
2175 MISCLIB=
2176 THREADSLIB=-lpthread
2177 GNATLIB_SHARED=gnatlib-shared-dual
2178 LIBRARY_VERSION := $(LIB_VERSION)
2179 endif
2181 # x86-64 Linux
2182 ifeq ($(strip $(filter-out %x86_64 linux%,$(target_cpu) $(target_os))),)
2183 LIBGNAT_TARGET_PAIRS = \
2184 a-exetim.adb<a-exetim-posix.adb \
2185 a-exetim.ads<a-exetim-default.ads \
2186 a-intnam.ads<a-intnam-linux.ads \
2187 a-synbar.adb<a-synbar-posix.adb \
2188 a-synbar.ads<a-synbar-posix.ads \
2189 s-inmaop.adb<s-inmaop-posix.adb \
2190 s-intman.adb<s-intman-posix.adb \
2191 s-linux.ads<s-linux.ads \
2192 s-mudido.adb<s-mudido-affinity.adb \
2193 s-osinte.ads<s-osinte-linux.ads \
2194 s-osinte.adb<s-osinte-posix.adb \
2195 s-osprim.adb<s-osprim-posix.adb \
2196 s-taprop.adb<s-taprop-linux.adb \
2197 s-tasinf.ads<s-tasinf-linux.ads \
2198 s-tasinf.adb<s-tasinf-linux.adb \
2199 s-tpopsp.adb<s-tpopsp-tls.adb \
2200 s-taspri.ads<s-taspri-posix.ads \
2201 g-sercom.adb<g-sercom-linux.adb \
2202 $(ATOMICS_TARGET_PAIRS) \
2203 $(X86_64_TARGET_PAIRS) \
2204 system.ads<system-linux-x86.ads
2206 TOOLS_TARGET_PAIRS = \
2207 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2208 indepsw.adb<indepsw-gnu.adb
2210 EXTRA_GNATRTL_NONTASKING_OBJS += g-sse.o g-ssvety.o
2211 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
2212 EH_MECHANISM=-gcc
2213 THREADSLIB=-lpthread -lrt
2214 MISCLIB = -ldl
2215 GNATLIB_SHARED=gnatlib-shared-dual
2216 GMEM_LIB = gmemlib
2217 LIBRARY_VERSION := $(LIB_VERSION)
2218 endif
2220 ifeq ($(strip $(filter-out %x32 linux%,$(target_cpu) $(target_os))),)
2221 LIBGNAT_TARGET_PAIRS = \
2222 a-exetim.adb<a-exetim-posix.adb \
2223 a-exetim.ads<a-exetim-default.ads \
2224 a-intnam.ads<a-intnam-linux.ads \
2225 a-synbar.adb<a-synbar-posix.adb \
2226 a-synbar.ads<a-synbar-posix.ads \
2227 s-inmaop.adb<s-inmaop-posix.adb \
2228 s-intman.adb<s-intman-posix.adb \
2229 s-linux.ads<s-linux-x32.ads \
2230 s-mudido.adb<s-mudido-affinity.adb \
2231 s-osinte.ads<s-osinte-linux.ads \
2232 s-osinte.adb<s-osinte-x32.adb \
2233 s-osprim.adb<s-osprim-x32.adb \
2234 s-taprop.adb<s-taprop-linux.adb \
2235 s-tasinf.ads<s-tasinf-linux.ads \
2236 s-tasinf.adb<s-tasinf-linux.adb \
2237 s-tpopsp.adb<s-tpopsp-tls.adb \
2238 s-taspri.ads<s-taspri-posix.ads \
2239 g-sercom.adb<g-sercom-linux.adb \
2240 $(ATOMICS_TARGET_PAIRS) \
2241 $(X86_64_TARGET_PAIRS) \
2242 system.ads<system-linux-x86.ads
2244 TOOLS_TARGET_PAIRS = \
2245 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2246 indepsw.adb<indepsw-gnu.adb
2248 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
2249 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
2250 EH_MECHANISM=-gcc
2251 THREADSLIB=-lpthread -lrt
2252 GNATLIB_SHARED=gnatlib-shared-dual
2253 GMEM_LIB = gmemlib
2254 LIBRARY_VERSION := $(LIB_VERSION)
2255 endif
2257 # Darwin (Mac OS X)
2258 ifeq ($(strip $(filter-out darwin%,$(target_os))),)
2259 SO_OPTS = -shared-libgcc
2260 LIBGNAT_TARGET_PAIRS = \
2261 a-intnam.ads<a-intnam-darwin.ads \
2262 s-inmaop.adb<s-inmaop-posix.adb \
2263 s-osinte.adb<s-osinte-darwin.adb \
2264 s-osinte.ads<s-osinte-darwin.ads \
2265 s-taprop.adb<s-taprop-posix.adb \
2266 s-taspri.ads<s-taspri-posix.ads \
2267 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
2269 ifeq ($(strip $(filter-out %86,$(target_cpu))),)
2270 LIBGNAT_TARGET_PAIRS += \
2271 s-intman.adb<s-intman-susv3.adb \
2272 s-osprim.adb<s-osprim-darwin.adb \
2273 $(ATOMICS_TARGET_PAIRS) \
2274 system.ads<system-darwin-x86.ads
2276 ifeq ($(strip $(MULTISUBDIR)),/x86_64)
2277 SO_OPTS += -m64
2278 LIBGNAT_TARGET_PAIRS += $(X86_64_TARGET_PAIRS)
2279 else
2280 LIBGNAT_TARGET_PAIRS += $(X86_TARGET_PAIRS)
2281 endif
2283 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
2284 endif
2286 ifeq ($(strip $(filter-out %x86_64,$(target_cpu))),)
2287 LIBGNAT_TARGET_PAIRS += \
2288 s-intman.adb<s-intman-susv3.adb \
2289 s-osprim.adb<s-osprim-darwin.adb \
2290 a-exetim.ads<a-exetim-default.ads \
2291 a-exetim.adb<a-exetim-darwin.adb \
2292 $(ATOMICS_TARGET_PAIRS) \
2293 system.ads<system-darwin-x86.ads
2295 ifeq ($(strip $(MULTISUBDIR)),/i386)
2296 SO_OPTS += -m32
2297 LIBGNAT_TARGET_PAIRS += $(X86_TARGET_PAIRS)
2298 else
2299 LIBGNAT_TARGET_PAIRS += $(X86_64_TARGET_PAIRS)
2300 endif
2302 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
2303 EXTRA_GNATRTL_TASKING_OBJS=a-exetim.o
2304 endif
2306 ifeq ($(strip $(filter-out powerpc%,$(target_cpu))),)
2307 LIBGNAT_TARGET_PAIRS += \
2308 s-intman.adb<s-intman-posix.adb \
2309 s-osprim.adb<s-osprim-posix.adb \
2310 a-numaux.ads<a-numaux-darwin.ads \
2311 a-numaux.adb<a-numaux-darwin.adb \
2312 $(ATOMICS_TARGET_PAIRS) \
2313 $(ATOMICS_BUILTINS_TARGET_PAIRS) \
2314 system.ads<system-darwin-ppc.ads
2316 ifeq ($(strip $(MULTISUBDIR)),/ppc64)
2317 SO_OPTS += -m64
2318 endif
2319 endif
2321 ifeq ($(strip $(filter-out arm,$(target_cpu))),)
2322 LIBGNAT_TARGET_PAIRS += \
2323 s-intman.adb<s-intman-susv3.adb \
2324 s-osprim.adb<s-osprim-darwin.adb \
2325 $(ATOMICS_TARGET_PAIRS) \
2326 $(ATOMICS_BUILTINS_TARGET_PAIRS)
2328 LIBGNAT_TARGET_PAIRS += \
2329 system.ads<system-darwin-arm.ads
2330 endif
2332 ifeq ($(strip $(filter-out arm64 aarch64,$(target_cpu))),)
2333 LIBGNAT_TARGET_PAIRS += \
2334 s-intman.adb<s-intman-susv3.adb \
2335 s-osprim.adb<s-osprim-darwin.adb \
2336 $(ATOMICS_TARGET_PAIRS) \
2337 $(ATOMICS_BUILTINS_TARGET_PAIRS)
2339 EXTRA_LIBGNAT_OBJS+=sigtramp-ios.o
2340 EXTRA_LIBGNAT_SRCS+=sigtramp.h
2341 LIBGNAT_TARGET_PAIRS += \
2342 system.ads<system-darwin-arm.ads
2343 endif
2345 TOOLS_TARGET_PAIRS = \
2346 mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb \
2347 indepsw.adb<indepsw-darwin.adb
2349 EH_MECHANISM=-gcc
2350 GNATLIB_SHARED = gnatlib-shared-darwin
2351 GMEM_LIB = gmemlib
2352 LIBRARY_VERSION := $(LIB_VERSION)
2353 soext = .dylib
2354 GCC_LINK_FLAGS=-static-libstdc++
2355 endif
2357 ifeq ($(EH_MECHANISM),-gcc)
2358 LIBGNAT_TARGET_PAIRS += \
2359 a-exexpr.adb<a-exexpr-gcc.adb \
2360 s-excmac.ads<s-excmac-gcc.ads
2361 EXTRA_LIBGNAT_OBJS+=raise-gcc.o
2362 EXTRA_GNATRTL_NONTASKING_OBJS+=g-cppexc.o s-excmac.o
2363 endif
2365 ifeq ($(EH_MECHANISM),-arm)
2366 LIBGNAT_TARGET_PAIRS += \
2367 a-exexpr.adb<a-exexpr-gcc.adb \
2368 s-excmac.ads<s-excmac-arm.ads
2369 EXTRA_LIBGNAT_OBJS+=raise-gcc.o
2370 EXTRA_GNATRTL_NONTASKING_OBJS+=g-cppexc.o s-excmac.o
2371 endif
2373 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
2374 # explicitly already. The base files (a-except.ad?) are used only for building
2375 # the compiler and other basic tools.
2376 # These base versions lack Ada 2005 additions which would cause bootstrap
2377 # problems if included in the compiler and other basic tools.
2379 ifeq ($(filter a-except%,$(LIBGNAT_TARGET_PAIRS)),)
2380 LIBGNAT_TARGET_PAIRS += \
2381 a-except.ads<a-except-2005.ads \
2382 a-except.adb<a-except-2005.adb
2383 endif
2385 # Configuration of host tools
2387 # Under linux, host tools need to be linked with -ldl
2389 ifeq ($(strip $(filter-out linux%,$(host_os))),)
2390 TOOLS1_LIBS=-ldl
2391 endif
2393 # LIBGNAT_SRCS is the list of all C files (including headers) of the runtime
2394 # library. LIBGNAT_OBJS is the list of object files for libgnat.
2395 # thread.c is special as put into GNATRTL_TASKING_OBJS by Makefile.rtl
2396 LIBGNAT_OBJS = adadecode.o adaint.o argv.o aux-io.o \
2397 cal.o cio.o cstreams.o ctrl_c.o \
2398 env.o errno.o exit.o expect.o final.o rtfinal.o rtinit.o \
2399 init.o initialize.o locales.o mkdir.o \
2400 raise.o seh_init.o socket.o sysdep.o \
2401 targext.o terminals.o tracebak.o \
2402 $(EXTRA_LIBGNAT_OBJS)
2404 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2405 # the library installation will change and there will be a
2406 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2407 # from ADA_INCLUDE_SRCS.
2409 LIBGNAT_SRCS = $(patsubst %.o,%.c,$(LIBGNAT_OBJS)) \
2410 adadecode.h adaint.h env.h gsocket.h raise.h standard.ads.h \
2411 tb-gcc.c thread.c $(EXTRA_LIBGNAT_SRCS)
2413 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2414 # the following include file:
2416 include $(fsrcdir)/ada/Makefile.rtl
2418 # memtrack.o is special as not put into libgnat.
2419 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
2420 memtrack.o
2422 # Run time source files
2423 ADA_INCLUDE_SRCS =\
2424 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2425 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2426 sequenio.ads system.ads memtrack.adb \
2427 a-[a-o]*.adb a-[p-z]*.adb a-[a-o]*.ads a-[p-z]*.ads g-*.ad? i-*.ad? \
2428 s-[a-o]*.adb s-[p-z]*.adb s-[a-o]*.ads s-[p-z]*.ads
2430 # Files that are in ADA_INCLUDE_SRCS but not in all configurations.
2431 # They will be removed from the run time if not used.
2432 ADA_EXCLUDE_SRCS =\
2433 g-allein.ads g-alleve.adb g-alleve.ads g-altcon.adb g-altcon.ads \
2434 g-altive.ads g-alveop.adb g-alveop.ads g-alvety.ads g-alvevi.ads \
2435 g-intpri.ads g-regist.adb g-regist.ads g-sse.ads g-ssvety.ads \
2436 i-vxwoio.adb i-vxwoio.ads i-vxwork.ads i-bit_types.ads \
2437 s-bb.ads s-bbbosu.ads s-bbcaco.ads s-bbcppr.ads s-bbexti.adb \
2438 s-bbexti.ads s-bbinte.adb s-bbinte.ads s-bbprot.adb s-bbprot.ads \
2439 s-bbsle3.ads s-bbsuer.ads s-bbsule.ads s-bbthqu.adb s-bbthqu.ads \
2440 s-bbthre.adb s-bbthre.ads s-bbtiev.adb s-bbtiev.ads s-bbtime.adb \
2441 s-bbtime.ads s-bcprmu.adb s-bcprmu.ads s-btstch.adb s-btstch.ads \
2442 s-gcc.adb s-gcc.ads s-gccdiv.adb s-gccdiv.ads \
2443 s-gccshi.adb s-gccshi.ads \
2444 s-init.ads s-init.adb s-linux.ads s-macres.ads \
2445 s-memcom.adb s-memcom.ads s-memmov.adb s-memmov.ads s-memset.adb \
2446 s-memset.ads s-mufalo.adb s-mufalo.ads s-musplo.adb s-musplo.ads \
2447 s-sam4.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb s-sopco4.ads \
2448 s-sopco5.adb s-sopco5.ads s-stache.adb s-stache.ads s-stm32.ads \
2449 s-strcom.adb s-strcom.ads s-thread.ads \
2450 s-vxwexc.adb s-vxwexc.ads s-vxwext.adb s-vxwext.ads \
2451 s-win32.ads s-winext.ads
2453 # ADA_EXCLUDE_SRCS without the sources used by the target
2454 ADA_EXCLUDE_FILES=$(filter-out \
2455 $(patsubst %$(objext),%.ads,$(GNATRTL_OBJS)) \
2456 $(patsubst %$(objext),%.adb,$(GNATRTL_OBJS)), \
2457 $(ADA_EXCLUDE_SRCS))
2459 LIBGNAT=../$(RTSDIR)/libgnat.a
2461 TOOLS_FLAGS_TO_PASS= \
2462 "CC=$(CC)" \
2463 "CFLAGS=$(CFLAGS)" \
2464 "LDFLAGS=$(LDFLAGS)" \
2465 "ADAFLAGS=$(ADAFLAGS)" \
2466 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
2467 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
2468 "libsubdir=$(libsubdir)" \
2469 "exeext=$(exeext)" \
2470 "fsrcdir=$(fsrcdir)" \
2471 "srcdir=$(fsrcdir)" \
2472 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
2473 "GNATMAKE=$(GNATMAKE)" \
2474 "GNATLINK=$(GNATLINK)" \
2475 "GNATBIND=$(GNATBIND)"
2477 GCC_LINK=$(CXX) $(GCC_LINK_FLAGS) $(ADA_INCLUDES) $(LDFLAGS)
2479 # Build directory for the tools. Let's copy the target-dependent
2480 # sources using the same mechanism as for gnatlib. The other sources are
2481 # accessed using the vpath directive below
2483 ../stamp-tools:
2484 -$(RM) tools/*
2485 -$(RMDIR) tools
2486 -$(MKDIR) tools
2487 -(cd tools; $(LN_S) ../sdefault.adb ../snames.ads ../snames.adb .)
2488 -$(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
2489 $(RM) tools/$(word 1,$(subst <, ,$(PAIR)));\
2490 $(LN_S) $(fsrcpfx)ada/$(word 2,$(subst <, ,$(PAIR))) \
2491 tools/$(word 1,$(subst <, ,$(PAIR)));)
2492 touch ../stamp-tools
2494 # when compiling the tools, the runtime has to be first on the path so that
2495 # it hides the runtime files lying with the rest of the sources
2496 ifeq ($(TOOLSCASE),native)
2497 vpath %.ads ../$(RTSDIR) ../
2498 vpath %.adb ../$(RTSDIR) ../
2499 vpath %.c ../$(RTSDIR) ../
2500 vpath %.h ../$(RTSDIR) ../
2501 endif
2503 # in the cross tools case, everything is compiled with the native
2504 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2505 ifeq ($(TOOLSCASE),cross)
2506 vpath %.ads ../
2507 vpath %.adb ../
2508 vpath %.c ../
2509 vpath %.h ../
2510 endif
2512 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
2513 # reasons: gnatmake should be built with a recent compiler, a recent compiler
2514 # may not generate ALI files compatible with an old gnatmake so it is important
2515 # to be able to build gnatmake without a version of gnatmake around. Once
2516 # everything has been compiled once, gnatmake can be recompiled with itself
2517 # (see target gnattools1-re)
2518 gnattools1: ../stamp-tools ../stamp-gnatlib-$(RTSDIR)
2519 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2520 TOOLSCASE=native \
2521 ../../gnatmake$(exeext) ../../gnatlink$(exeext)
2523 # gnatmake/link can be built with recent gnatmake/link if they are available.
2524 # This is especially convenient for building cross tools or for rebuilding
2525 # the tools when the original bootstrap has already be done.
2526 gnattools1-re: ../stamp-tools
2527 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2528 TOOLSCASE=cross INCLUDES="" gnatmake-re gnatlink-re
2530 # these tools are built with gnatmake & are common to native and cross
2531 gnattools2: ../stamp-tools
2532 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2533 TOOLSCASE=native common-tools $(EXTRA_GNATTOOLS)
2535 # those tools are only built for the cross version
2536 gnattools4: ../stamp-tools
2537 ifeq ($(ENABLE_VXADDR2LINE),true)
2538 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2539 TOOLSCASE=cross top_buildir=../../.. \
2540 ../../vxaddr2line$(exeext)
2541 endif
2543 common-tools: ../stamp-tools
2544 $(GNATMAKE) -j0 -c -b $(ADA_INCLUDES) \
2545 --GNATBIND="$(GNATBIND)" --GCC="$(CC) $(ALL_ADAFLAGS)" \
2546 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2547 gnatclean -bargs $(ADA_INCLUDES) $(GNATBIND_FLAGS)
2548 $(GNATLINK) -v gnatcmd -o ../../gnat$(exeext) \
2549 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2550 $(GNATLINK) -v gnatchop -o ../../gnatchop$(exeext) \
2551 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2552 $(GNATLINK) -v gnatkr -o ../../gnatkr$(exeext) \
2553 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2554 $(GNATLINK) -v gnatls -o ../../gnatls$(exeext) \
2555 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2556 $(GNATLINK) -v gnatprep -o ../../gnatprep$(exeext) \
2557 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2558 $(GNATLINK) -v gnatxref -o ../../gnatxref$(exeext) \
2559 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2560 $(GNATLINK) -v gnatfind -o ../../gnatfind$(exeext) \
2561 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2562 $(GNATLINK) -v gnatname -o ../../gnatname$(exeext) \
2563 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2564 $(GNATLINK) -v gnatclean -o ../../gnatclean$(exeext) \
2565 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2567 ../../gnatdll$(exeext): ../stamp-tools
2568 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
2569 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatdll
2570 $(GNATLINK) -v gnatdll -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2572 ../../vxaddr2line$(exeext): ../stamp-tools
2573 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
2574 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
2575 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(GCC_LINK)" ../targext.o $(CLIB)
2577 gnatmake-re: ../stamp-tools
2578 $(GNATMAKE) -j0 $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
2579 $(GNATMAKE) -j0 -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
2580 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
2581 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
2582 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2584 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2585 # with the former version of gnatlink itself which cannot override itself.
2586 # gnatlink-re cannot be run at the same time as gnatmake-re, hence the
2587 # dependency
2588 gnatlink-re: ../stamp-tools gnatmake-re
2589 $(GNATMAKE) -j0 -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
2590 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
2591 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
2592 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2593 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
2595 # Needs to be built with CC=gcc
2596 # Since the RTL should be built with the latest compiler, remove the
2597 # stamp target in the parent directory whenever gnat1 is rebuilt
2599 # Likewise for the tools
2600 ../../gnatmake$(exeext): $(P) b_gnatm.o $(GNATMAKE_OBJS)
2601 +$(GCC_LINK) $(ALL_CFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) $(TOOLS_LIBS) $(TOOLS1_LIBS)
2603 ../../gnatlink$(exeext): $(P) b_gnatl.o $(GNATLINK_OBJS)
2604 +$(GCC_LINK) $(ALL_CFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) $(TOOLS_LIBS) $(TOOLS1_LIBS)
2606 ../stamp-gnatlib-$(RTSDIR):
2607 @if [ ! -f stamp-gnatlib-$(RTSDIR) ] ; \
2608 then \
2609 $(ECHO) You must first build the GNAT library: make gnatlib; \
2610 false; \
2611 else \
2612 true; \
2615 install-gcc-specs:
2616 # Install all the requested GCC spec files.
2618 $(foreach f,$(GCC_SPEC_FILES), \
2619 $(INSTALL_DATA_DATE) $(srcdir)/ada/$(f) \
2620 $(DESTDIR)$(libsubdir)/$$(echo $(f)|sed -e 's#_[a-zA-Z0-9]*##g');)
2622 install-gnatlib: ../stamp-gnatlib-$(RTSDIR) install-gcc-specs
2623 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2624 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2625 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2626 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2627 for file in $(RTSDIR)/*.ali; do \
2628 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2629 done
2630 -cd $(RTSDIR); for file in *$(arext);do \
2631 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2632 $(RANLIB_FOR_TARGET) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
2633 done
2634 -$(foreach file, $(EXTRA_ADALIB_OBJS), \
2635 $(INSTALL_DATA_DATE) $(RTSDIR)/$(file) $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
2636 ) true
2637 # Install the shared libraries, if any, using $(INSTALL) instead
2638 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2639 # for shared libraries on some targets, e.g. on HP-UX where the x
2640 # permission is required.
2641 # Also install the .dSYM directories if they exist (these directories
2642 # contain the debug information for the shared libraries on darwin)
2643 for file in gnat gnarl; do \
2644 if [ -f $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
2645 $(INSTALL) $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2646 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2647 fi; \
2648 if [ -f $(RTSDIR)/lib$${file}$(soext) ]; then \
2649 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2650 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
2651 fi; \
2652 if [ -d $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM ]; then \
2653 $(CP) -r $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM \
2654 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2655 fi; \
2656 done
2657 # This copy must be done preserving the date on the original file.
2658 for file in $(RTSDIR)/*.ad[sb]*; do \
2659 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
2660 done
2661 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
2662 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
2664 ../stamp-gnatlib2-$(RTSDIR):
2665 $(RM) $(RTSDIR)/s-*.ali
2666 $(RM) $(RTSDIR)/s-*$(objext)
2667 $(RM) $(RTSDIR)/a-*.ali
2668 $(RM) $(RTSDIR)/a-*$(objext)
2669 $(RM) $(RTSDIR)/*.ali
2670 $(RM) $(RTSDIR)/*$(objext)
2671 $(RM) $(RTSDIR)/*$(arext)
2672 $(RM) $(RTSDIR)/*$(soext)
2673 touch ../stamp-gnatlib2-$(RTSDIR)
2674 $(RM) ../stamp-gnatlib-$(RTSDIR)
2676 ../stamp-gnatlib1-$(RTSDIR): Makefile ../stamp-gnatlib2-$(RTSDIR)
2677 $(RMDIR) $(RTSDIR)
2678 $(MKDIR) $(RTSDIR)
2679 $(CHMOD) u+w $(RTSDIR)
2680 # Copy target independent sources
2681 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
2682 $(LN_S) $(fsrcpfx)ada/$(f) $(RTSDIR) ;) true
2683 # Remove files not used
2684 $(RM) $(patsubst %,$(RTSDIR)/%,$(ADA_EXCLUDE_FILES))
2685 # Remove files to be replaced by target dependent sources
2686 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2687 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR))))
2688 for f in $(RTSDIR)/*-*-*.ads $(RTSDIR)/*-*-*.adb; do \
2689 case "$$f" in \
2690 $(RTSDIR)/s-stratt-*) ;; \
2691 *) $(RM) $$f ;; \
2692 esac; \
2693 done
2694 # Copy new target dependent sources
2695 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2696 $(LN_S) $(fsrcpfx)ada/$(word 2,$(subst <, ,$(PAIR))) \
2697 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)));)
2698 # Copy tsystem.h
2699 $(CP) $(srcdir)/tsystem.h $(RTSDIR)
2700 $(RM) ../stamp-gnatlib-$(RTSDIR)
2701 touch ../stamp-gnatlib1-$(RTSDIR)
2703 # GCC_FOR_TARGET has paths relative to the gcc directory, so we need to adjust
2704 # for running it from ada/rts
2706 OSCONS_CC=$(subst ./xgcc,../../xgcc,$(subst -B./, -B../../,$(GCC_FOR_TARGET)))
2708 # The main ada source directory must be on the include path for #include "..."
2709 # because s-oscons-tmplt.c requires adaint.h, gsocket.h, and any file included
2710 # by these headers. However note that we must use -iquote, not -I, so that
2711 # ada/types.h does not conflict with a same-named system header (VxWorks
2712 # has a <types.h> header).
2714 OSCONS_CPP=$(OSCONS_CC) $(GNATLIBCFLAGS) $(GNATLIBCFLAGS_FOR_C) -E -C \
2715 -DTARGET=\"$(target)\" -iquote $(fsrcpfx)ada $(fsrcpfx)ada/s-oscons-tmplt.c > s-oscons-tmplt.i
2716 OSCONS_EXTRACT=$(OSCONS_CC) -S s-oscons-tmplt.i
2718 # Note: if you need to build with a non-GNU compiler, you could adapt the
2719 # following definitions (written for VMS DEC-C)
2720 #OSCONS_CPP=../../../$(DECC) -E /comment=as_is -DNATIVE \
2721 # -DTARGET='""$(target)""' -I$(OSCONS_SRCDIR) s-oscons-tmplt.c
2723 #OSCONS_EXTRACT=../../../$(DECC) -DNATIVE \
2724 # -DTARGET='""$(target)""' -I$(OSCONS_SRCDIR) s-oscons-tmplt.c ; \
2725 # ld -o s-oscons-tmplt.exe s-oscons-tmplt.obj; \
2726 # ./s-oscons-tmplt.exe > s-oscons-tmplt.s
2728 ./bldtools/oscons/xoscons: xoscons.adb xutil.ads xutil.adb
2729 -$(MKDIR) ./bldtools/oscons
2730 $(RM) $(addprefix ./bldtools/oscons/,$(notdir $^))
2731 $(CP) $^ ./bldtools/oscons
2732 (cd ./bldtools/oscons ; gnatmake -q xoscons)
2734 $(RTSDIR)/s-oscons.ads: ../stamp-gnatlib1-$(RTSDIR) s-oscons-tmplt.c gsocket.h ./bldtools/oscons/xoscons
2735 $(RM) $(RTSDIR)/s-oscons-tmplt.i $(RTSDIR)/s-oscons-tmplt.s
2736 (cd $(RTSDIR) ; \
2737 $(OSCONS_CPP) ; \
2738 $(OSCONS_EXTRACT) ; \
2739 ../bldtools/oscons/xoscons s-oscons)
2741 gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../stamp-gnatlib2-$(RTSDIR) $(RTSDIR)/s-oscons.ads
2742 test -f $(RTSDIR)/s-oscons.ads || exit 1
2743 # C files
2744 $(MAKE) -C $(RTSDIR) \
2745 CC="`echo \"$(GCC_FOR_TARGET)\" \
2746 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2747 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2748 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
2749 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2750 srcdir=$(fsrcdir) \
2751 -f ../Makefile $(LIBGNAT_OBJS) $(EXTRA_ADALIB_OBJS)
2752 # Ada files
2753 $(MAKE) -C $(RTSDIR) \
2754 CC="`echo \"$(GCC_FOR_TARGET)\" \
2755 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2756 ADA_INCLUDES="" \
2757 CFLAGS="$(GNATLIBCFLAGS)" \
2758 ADAFLAGS="$(GNATLIBFLAGS)" \
2759 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2760 srcdir=$(fsrcdir) \
2761 -f ../Makefile $(GNATRTL_OBJS)
2762 $(RM) $(RTSDIR)/libgnat$(arext) $(RTSDIR)/libgnarl$(arext)
2763 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnat$(arext) \
2764 $(addprefix $(RTSDIR)/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
2765 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnat$(arext)
2766 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnarl$(arext) \
2767 $(addprefix $(RTSDIR)/,$(GNATRTL_TASKING_OBJS))
2768 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnarl$(arext)
2769 ifeq ($(GMEM_LIB),gmemlib)
2770 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgmem$(arext) \
2771 $(RTSDIR)/memtrack.o
2772 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgmem$(arext)
2773 endif
2774 $(CHMOD) a-wx $(RTSDIR)/*.ali
2775 touch ../stamp-gnatlib-$(RTSDIR)
2777 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2778 gnatlib-shared-default:
2779 $(MAKE) $(FLAGS_TO_PASS) \
2780 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2781 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2782 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \
2783 MULTISUBDIR="$(MULTISUBDIR)" \
2784 THREAD_KIND="$(THREAD_KIND)" \
2785 gnatlib
2786 $(RM) $(RTSDIR)/libgna*$(soext)
2787 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2788 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared $(GNATLIBCFLAGS) \
2789 $(PICFLAG_FOR_TARGET) \
2790 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2791 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2792 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2793 $(MISCLIB) -lm
2794 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2795 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared $(GNATLIBCFLAGS) \
2796 $(PICFLAG_FOR_TARGET) \
2797 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2798 $(GNATRTL_TASKING_OBJS) \
2799 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2800 $(THREADSLIB)
2801 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2802 libgnat$(soext)
2803 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2804 libgnarl$(soext)
2806 # Create static libgnat and libgnarl compiled with -fPIC
2807 $(RM) $(RTSDIR)/libgnat_pic$(arext) $(RTSDIR)/libgnarl_pic$(arext)
2808 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnat_pic$(arext) \
2809 $(addprefix $(RTSDIR)/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
2810 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnat_pic$(arext)
2811 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnarl_pic$(arext) \
2812 $(addprefix $(RTSDIR)/,$(GNATRTL_TASKING_OBJS))
2813 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnarl_pic$(arext)
2816 gnatlib-shared-dual:
2817 $(MAKE) $(FLAGS_TO_PASS) \
2818 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2819 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2820 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2821 MULTISUBDIR="$(MULTISUBDIR)" \
2822 THREAD_KIND="$(THREAD_KIND)" \
2823 gnatlib-shared-default
2824 $(MV) $(RTSDIR)/libgna*$(soext) .
2825 $(MV) $(RTSDIR)/libgnat_pic$(arext) .
2826 $(MV) $(RTSDIR)/libgnarl_pic$(arext) .
2827 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2828 $(MAKE) $(FLAGS_TO_PASS) \
2829 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2830 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2831 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2832 MULTISUBDIR="$(MULTISUBDIR)" \
2833 THREAD_KIND="$(THREAD_KIND)" \
2834 gnatlib
2835 $(MV) libgna*$(soext) $(RTSDIR)
2836 $(MV) libgnat_pic$(arext) $(RTSDIR)
2837 $(MV) libgnarl_pic$(arext) $(RTSDIR)
2839 gnatlib-shared-dual-win32:
2840 $(MAKE) $(FLAGS_TO_PASS) \
2841 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2842 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2843 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2844 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" \
2845 MULTISUBDIR="$(MULTISUBDIR)" \
2846 THREAD_KIND="$(THREAD_KIND)" \
2847 gnatlib-shared-win32
2848 $(MV) $(RTSDIR)/libgna*$(soext) .
2849 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2850 $(MAKE) $(FLAGS_TO_PASS) \
2851 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2852 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2853 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2854 MULTISUBDIR="$(MULTISUBDIR)" \
2855 THREAD_KIND="$(THREAD_KIND)" \
2856 gnatlib
2857 $(MV) libgna*$(soext) $(RTSDIR)
2859 # ??? we need to add the option to support auto-import of arrays/records to
2860 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2861 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2862 # Windows.
2863 gnatlib-shared-win32:
2864 $(MAKE) $(FLAGS_TO_PASS) \
2865 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2866 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2867 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \
2868 MULTISUBDIR="$(MULTISUBDIR)" \
2869 THREAD_KIND="$(THREAD_KIND)" \
2870 gnatlib
2871 $(RM) $(RTSDIR)/libgna*$(soext)
2872 $(CP) $(RTSDIR)/libgnat$(arext) $(RTSDIR)/libgnat_pic$(arext)
2873 $(CP) $(RTSDIR)/libgnarl$(arext) $(RTSDIR)/libgnarl_pic$(arext)
2874 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2875 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared -shared-libgcc \
2876 $(PICFLAG_FOR_TARGET) \
2877 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2878 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2879 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
2880 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2881 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared -shared-libgcc \
2882 $(PICFLAG_FOR_TARGET) \
2883 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2884 $(GNATRTL_TASKING_OBJS) \
2885 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2886 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2888 gnatlib-shared-darwin:
2889 $(MAKE) $(FLAGS_TO_PASS) \
2890 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2891 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2892 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET) -fno-common" \
2893 MULTISUBDIR="$(MULTISUBDIR)" \
2894 THREAD_KIND="$(THREAD_KIND)" \
2895 gnatlib
2896 $(RM) $(RTSDIR)/libgnat$(soext) $(RTSDIR)/libgnarl$(soext)
2897 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2898 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib $(PICFLAG_FOR_TARGET) \
2899 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2900 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2901 $(SO_OPTS) \
2902 -Wl,-install_name,@rpath/libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2903 $(MISCLIB)
2904 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2905 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib $(PICFLAG_FOR_TARGET) \
2906 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2907 $(GNATRTL_TASKING_OBJS) \
2908 $(SO_OPTS) \
2909 -Wl,-install_name,@rpath/libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2910 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2911 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2912 libgnat$(soext)
2913 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2914 libgnarl$(soext)
2915 cd $(RTSDIR); dsymutil libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2916 cd $(RTSDIR); dsymutil libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext)
2918 gnatlib-shared:
2919 $(MAKE) $(FLAGS_TO_PASS) \
2920 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2921 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2922 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2923 MULTISUBDIR="$(MULTISUBDIR)" \
2924 THREAD_KIND="$(THREAD_KIND)" \
2925 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" \
2926 $(GNATLIB_SHARED)
2928 # When building a SJLJ runtime for VxWorks, we need to ensure that the extra
2929 # linker options needed for ZCX are not passed to prevent the inclusion of
2930 # useless objects and potential troubles from the presence of extra symbols
2931 # and references in some configurations. The inhibition is performed by
2932 # commenting the pragma instead of deleting the line, as the latter might
2933 # result in getting multiple blank lines, hence possible style check errors.
2934 gnatlib-sjlj:
2935 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="" \
2936 THREAD_KIND="$(THREAD_KIND)" ../stamp-gnatlib1-$(RTSDIR)
2937 sed \
2938 -e 's/Frontend_Exceptions.*/Frontend_Exceptions : constant Boolean := True;/' \
2939 -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' \
2940 -e 's/\(pragma Linker.*crtbe.*\)/-- \1/' \
2941 $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2942 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2943 $(MAKE) $(FLAGS_TO_PASS) \
2944 EH_MECHANISM="" \
2945 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2946 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2947 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2948 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2949 MULTISUBDIR="$(MULTISUBDIR)" \
2950 THREAD_KIND="$(THREAD_KIND)" \
2951 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" gnatlib
2953 gnatlib-zcx:
2954 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="-gcc" \
2955 THREAD_KIND="$(THREAD_KIND)" ../stamp-gnatlib1-$(RTSDIR)
2956 sed \
2957 -e 's/Frontend_Exceptions.*/Frontend_Exceptions : constant Boolean := False;/' \
2958 -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' \
2959 $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2960 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2961 $(MAKE) $(FLAGS_TO_PASS) \
2962 EH_MECHANISM="-gcc" \
2963 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2964 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2965 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2966 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2967 MULTISUBDIR="$(MULTISUBDIR)" \
2968 THREAD_KIND="$(THREAD_KIND)" \
2969 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" gnatlib
2971 # Compiling object files from source files.
2973 # Note that dependencies on obstack.h are not written
2974 # because that file is not part of GCC.
2975 # Dependencies on gvarargs.h are not written
2976 # because all that file does, when not compiling with GCC,
2977 # is include the system varargs.h.
2979 b_gnatl.adb : $(GNATLINK_OBJS)
2980 $(GNATBIND) $(ADA_INCLUDES) -o b_gnatl.adb gnatlink.ali
2982 b_gnatl.o : b_gnatl.adb
2983 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) -gnatws -gnatyN \
2984 $< $(OUTPUT_OPTION)
2986 b_gnatm.adb : $(GNATMAKE_OBJS)
2987 $(GNATBIND) $(ADA_INCLUDES) -o b_gnatm.adb gnatmake.ali
2989 b_gnatm.o : b_gnatm.adb
2990 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) -gnatws -gnatyN \
2991 $< $(OUTPUT_OPTION)
2993 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2994 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2996 # Special flags
2998 # force no sibling call optimization on s-traceb.o so the number of stack
2999 # frames to be skipped when computing a call chain is not modified by
3000 # optimization. We don't want inlining, either.
3002 s-traceb.o : s-traceb.adb s-traceb.ads
3003 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(NO_INLINE_ADAFLAGS) \
3004 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
3006 # compile s-tasdeb.o without optimization and with debug info so that it is
3007 # always possible to set conditional breakpoints on tasks.
3009 s-tasdeb.o : s-tasdeb.adb s-tasdeb.ads
3010 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
3011 $< $(OUTPUT_OPTION)
3013 # force no function reordering on a-except.o because of the exclusion bounds
3014 # mechanism (see the source file for more detailed information).
3015 # force debugging information on a-except.o so that it is always
3016 # possible to set conditional breakpoints on exceptions.
3017 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
3019 a-except.o : a-except.adb a-except.ads
3020 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(NO_INLINE_ADAFLAGS) \
3021 $(NO_REORDER_ADAFLAGS) -O1 $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
3023 # compile s-excdeb.o without optimization and with debug info to let the
3024 # debugger set breakpoints and inspect subprogram parameters on exception
3025 # related events.
3027 s-excdeb.o : s-excdeb.adb s-excdeb.ads s-except.ads
3028 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
3029 $< $(OUTPUT_OPTION)
3031 # force debugging information on s-assert.o so that it is always
3032 # possible to set breakpoint on assert failures.
3034 s-assert.o : s-assert.adb s-assert.ads
3035 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
3036 $< $(OUTPUT_OPTION)
3038 # force debugging information on a-tags.o so that the debugger can find
3039 # the description of Ada.Tags.Type_Specific_Data.
3041 a-tags.o : a-tags.adb a-tags.ads
3042 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
3043 $< $(OUTPUT_OPTION)
3045 # force no sibling call optimization on s-memory.o to avoid turning the
3046 # tail recursion in Alloc into a loop that confuses branch prediction.
3048 s-memory.o : s-memory.adb s-memory.ads
3049 $(CC) -c $(ALL_ADAFLAGS) $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) \
3050 $< $(OUTPUT_OPTION)
3052 # need to keep the frame pointer in tracebak.o to pop the stack properly on
3053 # some targets.
3055 tracebak.o : tracebak.c tb-gcc.c
3056 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
3057 $(INCLUDES) $(NO_OMIT_ADAFLAGS) $< $(OUTPUT_OPTION)
3059 adadecode.o : adadecode.c adadecode.h
3060 aux-io.o : aux-io.c
3061 argv.o : argv.c
3062 cal.o : cal.c
3063 deftarg.o : deftarg.c
3064 errno.o : errno.c
3065 exit.o : adaint.h exit.c
3066 expect.o : expect.c
3067 final.o : final.c
3068 rtfinal.o : rtfinal.c
3069 rtinit.o : rtinit.c
3070 locales.o : locales.c
3071 mkdir.o : mkdir.c
3072 socket.o : socket.c gsocket.h
3073 sysdep.o : sysdep.c
3074 raise.o : raise.c raise.h
3075 sigtramp-armdroid.o : sigtramp-armdroid.c sigtramp.h
3076 sigtramp-armvxworks.o : sigtramp-armvxworks.c sigtramp.h
3077 sigtramp-ios.o : sigtramp-ios.c sigtramp.h
3078 sigtramp-vxworks.o : sigtramp-vxworks.c $(VX_SIGTRAMP_EXTRA_SRCS)
3079 sigtramp-vxworks-vxsim.o : sigtramp-vxworks-vxsim.c $(VX_SIGTRAMP_EXTRA_SRCS)
3080 terminals.o : terminals.c
3081 vx_stack_info.o : vx_stack_info.c
3083 raise-gcc.o : raise-gcc.c raise.h
3084 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3085 -iquote $(srcdir) -iquote $(ftop_srcdir)/libgcc \
3086 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
3088 cio.o : cio.c
3089 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3090 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
3092 init.o : init.c adaint.h raise.h
3093 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3094 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
3096 vx_crtbegin.o : vx_crtbegin.c vx_crtbegin.inc
3097 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3098 -iquote $(srcdir) -iquote $(ftop_srcdir)/libgcc \
3099 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
3101 vx_crtbegin_auto.o : vx_crtbegin_auto.c vx_crtbegin.inc
3102 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3103 -iquote $(srcdir) -iquote $(ftop_srcdir)/libgcc \
3104 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
3106 vx_crtend.o : vx_crtend.c
3107 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3108 -iquote $(srcdir) -iquote $(ftop_srcdir)/libgcc \
3109 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
3111 init-vxsim.o : init-vxsim.c
3112 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3113 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
3115 initialize.o : initialize.c raise.h
3116 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3117 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
3119 link.o : link.c
3120 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3121 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
3122 $< $(OUTPUT_OPTION)
3124 targext.o : targext.c
3125 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3126 -iquote $(srcdir) \
3127 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
3128 $< $(OUTPUT_OPTION)
3130 # In GNU Make, ignore whether `stage*' exists.
3131 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
3132 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
3134 force: