1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2011 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 3, or (at your option)
11 #GCC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING3. If not see
18 #<http://www.gnu.org/licenses/>.
20 # The makefile built from this file lives in the language subdirectory.
21 # Its purpose is to provide support for:
23 # 1) recursion where necessary, and only then (building .o's), and
24 # 2) building and debugging cc1 from the language subdirectory, and
27 # The parent makefile handles all other chores, with help from the
28 # language makefile fragment, of course.
30 # The targets for external use are:
31 # all, TAGS, ???mostlyclean, ???clean.
33 # This makefile will only work with Gnu make.
34 # The rules are written assuming a minimum subset of tools are available:
37 # MAKE: Only Gnu make will work.
38 # MV: Must accept (at least) one, maybe wildcard, source argument,
39 # a file or directory destination, and support creation/
40 # modification date preservation. Gnu mv -f works.
41 # RM: Must accept an arbitrary number of space separated file
42 # arguments, or one wildcard argument. Gnu rm works.
43 # RMDIR: Must delete a directory and all its contents. Gnu rm -rf works.
44 # ECHO: Must support command line redirection. Any Unix-like
45 # shell will typically provide this, otherwise a custom version
46 # is trivial to write.
48 # MKDIR: Gnu mkdir works.
49 # CHMOD: Gnu chmod works.
50 # true: Does nothing and returns a normal successful return code.
51 # pwd: Prints the current directory on stdout.
52 # cd: Change directory.
55 # BISON: Gnu bison works.
56 # FLEX: Gnu flex works.
57 # Other miscellaneous tools for obscure targets.
59 # Suppress smart makes who think they know how to automake Yacc files
62 # Variables that exist for you to override.
63 # See below for how to change them for certain systems.
65 # Various ways of specifying flags for compilations:
66 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
67 # BOOT_CFLAGS is the value of CFLAGS to pass
68 # to the stage2 and stage3 compilations
70 BOOT_CFLAGS = -O $(CFLAGS)
71 # These exists to be overridden by the t-* files, respectively.
92 RANLIB_FLAGS = @ranlib_flags@
96 COMPILER_FLAGS = $(CFLAGS)
99 PWD_COMMAND = $${PWDCMD-pwd}
100 # How to copy preserving the date
101 INSTALL_DATA_DATE = cp -p
105 GNATBIND_FLAGS = -static -x
107 ADAFLAGS = -W -Wall -gnatpg -gnata
108 FORCE_DEBUG_ADAFLAGS = -g
109 NO_SIBLING_ADAFLAGS = -fno-optimize-sibling-calls
110 NO_REORDER_ADAFLAGS = -fno-toplevel-reorder
111 GNATLIBFLAGS = -W -Wall -gnatpg -nostdinc
112 GNATLIBCFLAGS = -g -O2
113 PICFLAG_FOR_TARGET = @PICFLAG_FOR_TARGET@
114 # Pretend that _Unwind_GetIPInfo is available for the target by default. This
115 # should be autodetected during the configuration of libada and passed down to
116 # here, but we need something for --disable-libada and hope for the best.
117 GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET) \
118 -fexceptions -DIN_RTS -DHAVE_GETIPINFO
119 ALL_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(ADAFLAGS)
124 SYMDEPS = $(LIBINTL_DEP)
125 OUTPUT_OPTION = @OUTPUT_OPTION@
134 # Define this as & to perform parallel make on a Sequent.
135 # Note that this has some bugs, and it seems currently necessary
136 # to compile all the gen* files first by hand to avoid erroneous results.
139 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
141 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
142 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS)
144 # Tools to use when building a cross-compiler.
145 # These are used because `configure' appends `cross-make'
146 # to the makefile when making a cross-compiler.
148 # We don't use cross-make. Instead we use the tools from the build tree,
149 # if they are available.
150 # program_transform_name and objdir are set by configure.in.
151 program_transform_name =
154 target_alias=@target_alias@
156 xmake_file = @xmake_file@
157 tmake_file = @tmake_file@
158 host_canonical=@host@
159 target_cpu_default=@target_cpu_default@
160 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
161 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
163 # Directory where sources are, from where we are.
164 VPATH = $(srcdir)/ada
166 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
167 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
168 fcurdir := $(shell ${PWD_COMMAND})
169 fcurpfx := $(shell ${PWD_COMMAND})/
171 # Top build directory, relative to here.
174 # Internationalization library.
176 LIBINTL_DEP = @LIBINTL_DEP@
178 # Any system libraries needed just for GNAT.
179 SYSLIBS = @GNAT_LIBEXC@
181 # List of extra object files linked in with various programs.
182 EXTRA_GNATTOOLS_OBJS = ../../libcommon-target.a ../../libcommon.a \
183 ../../../libcpp/libcpp.a
185 # List extra gnattools
188 # List of target dependent sources, overridden below as necessary
191 # Type of tools build we are doing; default is not compiling tools.
196 RTSDIR = rts$(subst /,_,$(MULTISUBDIR))
198 # Link flags used to build gnat tools. By default we prefer to statically
199 # link with libgcc to avoid a dependency on shared libgcc (which is tricky
200 # to deal with as it may conflict with the libgcc provided by the system).
201 GCC_LINK_FLAGS=-static-libgcc
203 # End of variables for you to override.
207 # This tells GNU Make version 3 not to put all variables in the environment.
211 ifneq ($(tmake_file),)
212 include $(tmake_file)
216 ifneq ($(xmake_file),)
217 include $(xmake_file)
220 # Now figure out from those variables how to compile and link.
222 all.indirect: Makefile ../gnat1$(exeext)
224 # IN_GCC is meant to distinguish between code compiled into GCC itself, i.e.
225 # for the host, and the rest. But we also use it for the tools (link.c) and
226 # even break the host/target wall by using it for the library (targext.c).
227 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
228 # compiler which does not use the native libraries and headers.
229 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
231 # This is the variable actually used when we compile.
232 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS)
235 ALL_CPPFLAGS = $(CPPFLAGS)
237 # Used with $(COMPILER).
238 ALL_COMPILERFLAGS = $(ALL_CFLAGS)
240 # This is where we get libiberty.a from.
241 LIBIBERTY = ../../libiberty/libiberty.a
243 # How to link with both our special library facilities
244 # and the system's installed libraries.
245 LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
246 LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
247 # Default is no TGT_LIB; one might be passed down or something
249 TOOLS_LIBS = $(EXTRA_GNATTOOLS_OBJS) targext.o link.o $(LIBGNAT) $(LIBINTL) ../../../libiberty/libiberty.a $(SYSLIBS) $(TGT_LIB)
251 # Convert the target variable into a space separated list of architecture,
252 # manufacturer, and operating system and assign each of those to its own
255 host:=$(subst -, ,$(host_canonical))
256 targ:=$(subst -, ,$(target))
257 arch:=$(word 1,$(targ))
258 ifeq ($(words $(targ)),2)
260 osys:=$(word 2,$(targ))
262 manu:=$(word 2,$(targ))
263 osys:=$(word 3,$(targ))
266 # Specify the directories to be searched for header files.
267 # Both . and srcdir are used, in that order,
268 # so that tm.h and config.h will be found in the compilation
269 # subdirectory rather than in the source directory.
270 INCLUDES = -I- -I. -I.. -I$(srcdir)/ada -I$(srcdir) -I$(srcdir)/config \
271 -I$(srcdir)/../include
273 ADA_INCLUDES = -I- -I. -I$(srcdir)/ada
275 INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. -iquote $(fsrcdir)/ada \
276 -I$(fsrcdir)/../include
278 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
279 # On Windows native the tconfig.h files used by C runtime files needs to have
280 # the gcc source dir in its include dir list
281 INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. -iquote $(fsrcdir)/ada \
282 -I$(fsrcdir)/../include -I$(fsrcdir)
285 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada
287 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
290 # Say how to compile Ada programs.
291 .SUFFIXES: .ada .adb .ads .asm
293 # Always use -I$(srcdir)/config when compiling.
295 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
298 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
299 $(INCLUDES) $< $(OUTPUT_OPTION)
302 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
305 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
307 # how to regenerate this file
308 Makefile: ../config.status $(srcdir)/ada/gcc-interface/Makefile.in $(srcdir)/ada/Makefile.in $(srcdir)/version.c
310 LANGUAGES="$(CONFIG_LANGUAGES)" \
312 CONFIG_FILES="ada/gcc-interface/Makefile ada/Makefile" $(SHELL) config.status
314 # This tells GNU make version 3 not to export all the variables
315 # defined in this file into the environment.
318 # Lists of files for various purposes.
320 GNATLINK_OBJS = gnatlink.o \
321 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
322 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
323 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
324 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
325 types.o validsw.o widechar.o
327 GNATMAKE_OBJS = a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o \
328 atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o errout.o \
329 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
330 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
331 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
332 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o \
333 output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o \
334 prj-conf.o prj-pp.o prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o \
335 prj-proc.o prj-strt.o prj-tree.o prj-util.o restrict.o rident.o s-exctab.o \
336 s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o \
337 s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o \
338 sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o \
339 switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o uintp.o \
340 uname.o urealp.o usage.o widechar.o \
341 $(EXTRA_GNATMAKE_OBJS)
343 # Make arch match the current multilib so that the RTS selection code
344 # picks up the right files. For a given target this must be coherent
345 # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*.
347 ifeq ($(strip $(filter-out %x86_64, $(arch))),)
348 ifeq ($(strip $(MULTISUBDIR)),/32)
353 # ???: handle more multilib targets
355 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
356 # The members of each pair must be separated by a '<' and no whitespace.
357 # Each pair must be separated by some amount of whitespace from the following
362 LIBGNAT_TARGET_PAIRS = \
363 a-intnam.ads<a-intnam-dummy.ads \
364 s-inmaop.adb<s-inmaop-dummy.adb \
365 s-intman.adb<s-intman-dummy.adb \
366 s-osinte.ads<s-osinte-dummy.ads \
367 s-osprim.adb<s-osprim-posix.adb \
368 s-taprop.adb<s-taprop-dummy.adb \
369 s-taspri.ads<s-taspri-dummy.ads
371 # When using the GCC exception handling mechanism, we need to use an
372 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
376 # Default shared object option. Note that we rely on the fact that the "soname"
377 # option will always be present and last in this flag, so that we can have
378 # $(SO_OPTS)libgnat-x.xx
380 SO_OPTS = -Wl,-soname,
382 # Default gnatlib-shared target.
383 # By default, equivalent to gnatlib.
384 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
385 # target when supported.
386 GNATLIB_SHARED = gnatlib
388 # default value for gnatmake's target dependent file
391 # By default, build socket support units. On platforms that do not support
392 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
393 # to LIBGNAT_TARGET_PAIRS.
395 GNATRTL_SOCKETS_OBJS = g-soccon$(objext) g-socket$(objext) g-socthi$(objext) \
396 g-soliop$(objext) g-sothco$(objext)
398 DUMMY_SOCKETS_TARGET_PAIRS = \
399 g-socket.adb<g-socket-dummy.adb \
400 g-socket.ads<g-socket-dummy.ads \
401 g-socthi.adb<g-socthi-dummy.adb \
402 g-socthi.ads<g-socthi-dummy.ads \
403 g-sothco.adb<g-sothco-dummy.adb \
404 g-sothco.ads<g-sothco-dummy.ads
406 # On platforms where atomic increment/decrement operations are supported,
407 # special version of Ada.Strings.Unbounded package can be used.
409 ATOMICS_TARGET_PAIRS = \
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.
429 a-numaux.ads<a-numaux-x86.ads \
430 a-numaux.adb<a-numaux-x86.adb \
431 g-bytswa.adb<g-bytswa-x86.adb \
432 s-atocou.adb<s-atocou-x86.adb
434 X86_64_TARGET_PAIRS = \
435 a-numaux.ads<a-numaux-x86.ads \
436 a-numaux.adb<a-numaux-x86.adb \
437 g-bytswa.adb<g-bytswa-x86.adb \
438 s-atocou.adb<s-atocou-builtin.adb
440 LIB_VERSION = $(strip $(shell grep ' Library_Version :' $(fsrcpfx)ada/gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
442 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
443 # $(strip STRING) removes leading and trailing spaces from STRING.
444 # If what's left is null then it's a match.
446 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
447 LIBGNAT_TARGET_PAIRS = \
448 a-intnam.ads<a-intnam-vxworks.ads \
449 a-numaux.ads<a-numaux-vxworks.ads \
450 s-inmaop.adb<s-inmaop-vxworks.adb \
451 s-interr.adb<s-interr-hwint.adb \
452 s-intman.ads<s-intman-vxworks.ads \
453 s-intman.adb<s-intman-vxworks.adb \
454 s-osinte.adb<s-osinte-vxworks.adb \
455 s-osinte.ads<s-osinte-vxworks.ads \
456 s-osprim.adb<s-osprim-vxworks.adb \
457 s-parame.ads<s-parame-vxworks.ads \
458 s-parame.adb<s-parame-vxworks.adb \
459 s-stchop.ads<s-stchop-limit.ads \
460 s-stchop.adb<s-stchop-vxworks.adb \
461 s-taprop.adb<s-taprop-vxworks.adb \
462 s-tasinf.ads<s-tasinf-vxworks.ads \
463 s-taspri.ads<s-taspri-vxworks.ads \
464 s-tpopsp.adb<s-tpopsp-vxworks.adb \
465 s-vxwork.ads<s-vxwork-m68k.ads \
466 g-socthi.ads<g-socthi-vxworks.ads \
467 g-socthi.adb<g-socthi-vxworks.adb \
468 g-stsifd.adb<g-stsifd-sockets.adb \
469 system.ads<system-vxworks-m68k.ads
471 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb
473 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
474 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
476 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
477 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
479 ifeq ($(strip $(filter-out yes,$(TRACE))),)
480 LIBGNAT_TARGET_PAIRS += \
481 s-traces.adb<s-traces-default.adb \
482 s-tratas.adb<s-tratas-default.adb \
483 s-trafor.adb<s-trafor-default.adb \
484 s-trafor.ads<s-trafor-default.ads \
485 s-tfsetr.adb<s-tfsetr-vxworks.adb
489 ifeq ($(strip $(filter-out e500% powerpc% wrs vxworks,$(targ))),)
490 LIBGNAT_TARGET_PAIRS = \
491 a-intnam.ads<a-intnam-vxworks.ads \
492 a-numaux.ads<a-numaux-vxworks.ads \
493 s-inmaop.adb<s-inmaop-vxworks.adb \
494 s-intman.ads<s-intman-vxworks.ads \
495 s-intman.adb<s-intman-vxworks.adb \
496 s-osinte.ads<s-osinte-vxworks.ads \
497 s-osinte.adb<s-osinte-vxworks.adb \
498 s-osprim.adb<s-osprim-vxworks.adb \
499 s-parame.ads<s-parame-vxworks.ads \
500 s-parame.adb<s-parame-vxworks.adb \
501 s-stchop.ads<s-stchop-limit.ads \
502 s-stchop.adb<s-stchop-vxworks.adb \
503 s-taprop.adb<s-taprop-vxworks.adb \
504 s-tasinf.ads<s-tasinf-vxworks.ads \
505 s-taspri.ads<s-taspri-vxworks.ads \
506 s-vxwork.ads<s-vxwork-ppc.ads \
507 g-socthi.ads<g-socthi-vxworks.ads \
508 g-socthi.adb<g-socthi-vxworks.adb \
509 g-stsifd.adb<g-stsifd-sockets.adb \
510 $(ATOMICS_TARGET_PAIRS) \
511 $(ATOMICS_BUILTINS_TARGET_PAIRS)
514 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
515 indepsw.adb<indepsw-gnu.adb
517 ifeq ($(strip $(filter-out yes,$(TRACE))),)
518 LIBGNAT_TARGET_PAIRS += \
519 s-traces.adb<s-traces-default.adb \
520 s-trafor.adb<s-trafor-default.adb \
521 s-trafor.ads<s-trafor-default.ads \
522 s-tratas.adb<s-tratas-default.adb \
523 s-tfsetr.adb<s-tfsetr-vxworks.adb
526 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
527 LIBGNAT_TARGET_PAIRS += \
528 s-vxwext.ads<s-vxwext-rtp.ads \
529 s-vxwext.adb<s-vxwext-rtp.adb \
530 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
531 system.ads<system-vxworks-ppc-rtp.ads
533 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
535 ifeq ($(strip $(filter-out rtp-smp,$(THREAD_KIND))),)
536 LIBGNAT_TARGET_PAIRS += \
537 s-mudido.adb<s-mudido-affinity.adb \
538 s-vxwext.ads<s-vxwext-rtp.ads \
539 s-vxwext.adb<s-vxwext-rtp-smp.adb \
540 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
541 system.ads<system-vxworks-ppc-rtp.ads
543 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
544 EXTRA_LIBGNAT_OBJS+=affinity.o
545 EXTRA_LIBGNAT_SRCS+=affinity.c
547 ifeq ($(strip $(filter-out kernel-smp,$(THREAD_KIND))),)
548 LIBGNAT_TARGET_PAIRS += \
549 s-interr.adb<s-interr-hwint.adb \
550 s-mudido.adb<s-mudido-affinity.adb \
551 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
552 s-vxwext.ads<s-vxwext-kernel.ads \
553 s-vxwext.adb<s-vxwext-kernel-smp.adb \
554 system.ads<system-vxworks-ppc-kernel.ads
557 EXTRA_LIBGNAT_OBJS+=affinity.o
558 EXTRA_LIBGNAT_SRCS+=affinity.c
560 LIBGNAT_TARGET_PAIRS += \
561 s-interr.adb<s-interr-hwint.adb \
562 s-tpopsp.adb<s-tpopsp-vxworks.adb
564 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
566 LIBGNAT_TARGET_PAIRS += \
567 s-vxwext.ads<s-vxwext-kernel.ads \
568 s-vxwext.adb<s-vxwext-kernel.adb \
569 system.ads<system-vxworks-ppc-kernel.ads
571 LIBGNAT_TARGET_PAIRS += \
572 system.ads<system-vxworks-ppc.ads
575 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
576 EXTRA_LIBGNAT_OBJS+=sigtramp-ppcvxw.o
577 EXTRA_LIBGNAT_SRCS+=sigtramp-ppcvxw.c
581 EXTRA_GNATRTL_TASKING_OBJS += s-vxwork.o s-vxwext.o
583 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
584 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
588 ifeq ($(strip $(filter-out powerpc% e500v2 wrs vxworksae,$(targ))),)
589 # target pairs for vthreads runtime
590 LIBGNAT_TARGET_PAIRS = \
591 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
592 a-intnam.ads<a-intnam-vxworks.ads \
593 a-numaux.ads<a-numaux-vxworks.ads \
594 g-io.adb<g-io-vxworks-ppc-cert.adb \
595 s-inmaop.adb<s-inmaop-vxworks.adb \
596 s-interr.adb<s-interr-hwint.adb \
597 s-intman.ads<s-intman-vxworks.ads \
598 s-intman.adb<s-intman-vxworks.adb \
599 s-osinte.adb<s-osinte-vxworks.adb \
600 s-osinte.ads<s-osinte-vxworks.ads \
601 s-osprim.adb<s-osprim-vxworks.adb \
602 s-parame.ads<s-parame-ae653.ads \
603 s-parame.adb<s-parame-vxworks.adb \
604 s-taprop.adb<s-taprop-vxworks.adb \
605 s-tasinf.ads<s-tasinf-vxworks.ads \
606 s-taspri.ads<s-taspri-vxworks.ads \
607 s-tpopsp.adb<s-tpopsp-vxworks.adb \
608 s-vxwext.adb<s-vxwext-noints.adb \
609 s-vxwext.ads<s-vxwext-vthreads.ads \
610 s-vxwork.ads<s-vxwork-ppc.ads \
611 system.ads<system-vxworks-ppc-vthread.ads \
612 $(ATOMICS_TARGET_PAIRS) \
613 $(ATOMICS_BUILTINS_TARGET_PAIRS)
616 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
617 indepsw.adb<indepsw-gnu.adb
619 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
620 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
622 EXTRA_LIBGNAT_SRCS+=sigtramp-ppcvxw.c
623 EXTRA_LIBGNAT_OBJS+=sigtramp-ppcvxw.o
625 # Extra pairs for the vthreads runtime
626 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
627 LIBGNAT_TARGET_PAIRS += \
628 s-thread.adb<s-thread-ae653.adb \
629 $(DUMMY_SOCKETS_TARGET_PAIRS)
631 GNATRTL_SOCKETS_OBJS =
632 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o
634 LIBGNAT_TARGET_PAIRS += \
635 g-socthi.ads<g-socthi-vxworks.ads \
636 g-socthi.adb<g-socthi-vxworks.adb \
637 g-stsifd.adb<g-stsifd-sockets.adb
640 ifeq ($(strip $(filter-out yes,$(TRACE))),)
641 LIBGNAT_TARGET_PAIRS += \
642 s-traces.adb<s-traces-default.adb \
643 s-trafor.adb<s-trafor-default.adb \
644 s-trafor.ads<s-trafor-default.ads \
645 s-tratas.adb<s-tratas-default.adb \
646 s-tfsetr.adb<s-tfsetr-vxworks.adb
651 ifeq ($(strip $(filter-out e500% powerpc% wrs vxworksmils,$(targ))),)
652 # target pairs for vthreads runtime
653 LIBGNAT_TARGET_PAIRS = \
654 a-elchha.adb<a-elchha-vx6-raven-cert.adb \
655 a-intnam.ads<a-intnam-vxworks.ads \
656 a-numaux.ads<a-numaux-vxworks.ads \
657 g-io.adb<g-io-vxworks-ppc-cert.adb \
658 s-inmaop.adb<s-inmaop-vxworks.adb \
659 s-interr.adb<s-interr-hwint.adb \
660 s-intman.ads<s-intman-vxworks.ads \
661 s-intman.adb<s-intman-vxworks.adb \
662 s-osinte.adb<s-osinte-vxworks.adb \
663 s-osinte.ads<s-osinte-vxworks.ads \
664 s-osprim.adb<s-osprim-vxworks.adb \
665 s-parame.ads<s-parame-ae653.ads \
666 s-parame.adb<s-parame-vxworks.adb \
667 s-stchop.adb<s-stchop-vxworks.adb \
668 s-stchop.ads<s-stchop-limit.ads \
669 s-taprop.adb<s-taprop-vxworks.adb \
670 s-tasinf.ads<s-tasinf-vxworks.ads \
671 s-taspri.ads<s-taspri-vxworks.ads \
672 s-thread.adb<s-thread-ae653.adb \
673 s-tpopsp.adb<s-tpopsp-vxworks.adb \
674 s-vxwork.ads<s-vxwork-ppc.ads \
675 system.ads<system-vxworks-ppc.ads \
676 $(ATOMICS_TARGET_PAIRS) \
677 $(ATOMICS_BUILTINS_TARGET_PAIRS) \
678 $(DUMMY_SOCKETS_TARGET_PAIRS)
681 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
682 indepsw.adb<indepsw-gnu.adb
684 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-thread.o s-vxwexc.o
685 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
687 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c sigtramp-ppcvxw.c
688 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o sigtramp-ppcvxw.o
689 GNATRTL_SOCKETS_OBJS =
691 ifeq ($(strip $(filter-out yes,$(TRACE))),)
692 LIBGNAT_TARGET_PAIRS += \
693 s-traces.adb<s-traces-default.adb \
694 s-trafor.adb<s-trafor-default.adb \
695 s-trafor.ads<s-trafor-default.ads \
696 s-tratas.adb<s-tratas-default.adb \
697 s-tfsetr.adb<s-tfsetr-vxworks.adb
701 # vxworksae / vxworks 653 for x86 (vxsim) - ?? vxworksmils not implemented
702 ifeq ($(strip $(filter-out %86 wrs vxworksae vxworksmils,$(targ))),)
703 # target pairs for kernel + vthreads runtime
704 LIBGNAT_TARGET_PAIRS = \
705 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
706 a-intnam.ads<a-intnam-vxworks.ads \
707 a-sytaco.ads<1asytaco.ads \
708 a-sytaco.adb<1asytaco.adb \
709 g-io.adb<g-io-vxworks-ppc-cert.adb \
710 s-inmaop.adb<s-inmaop-vxworks.adb \
711 s-interr.adb<s-interr-hwint.adb \
712 s-intman.ads<s-intman-vxworks.ads \
713 s-intman.adb<s-intman-vxworks.adb \
714 s-osinte.adb<s-osinte-vxworks.adb \
715 s-osinte.ads<s-osinte-vxworks.ads \
716 s-osprim.adb<s-osprim-vxworks.adb \
717 s-parame.ads<s-parame-ae653.ads \
718 s-taprop.adb<s-taprop-vxworks.adb \
719 s-tasinf.ads<s-tasinf-vxworks.ads \
720 s-taspri.ads<s-taspri-vxworks.ads \
721 s-tpopsp.adb<s-tpopsp-vxworks.adb \
722 s-vxwext.adb<s-vxwext-noints.adb \
723 s-vxwext.ads<s-vxwext-vthreads.ads \
724 s-vxwork.ads<s-vxwork-x86.ads \
725 $(ATOMICS_TARGET_PAIRS) \
726 $(X86_TARGET_PAIRS) \
727 system.ads<system-vxworks-x86.ads
730 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
731 indepsw.adb<indepsw-gnu.adb
733 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
734 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
736 # Extra pairs for the vthreads runtime
737 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
738 LIBGNAT_TARGET_PAIRS += \
739 s-thread.adb<s-thread-ae653.adb \
740 $(DUMMY_SOCKETS_TARGET_PAIRS)
742 GNATRTL_SOCKETS_OBJS =
743 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o
745 LIBGNAT_TARGET_PAIRS += \
746 g-socthi.ads<g-socthi-vxworks.ads \
747 g-socthi.adb<g-socthi-vxworks.adb \
748 g-stsifd.adb<g-stsifd-sockets.adb
751 ifeq ($(strip $(filter-out yes,$(TRACE))),)
752 LIBGNAT_TARGET_PAIRS += \
753 s-traces.adb<s-traces-default.adb \
754 s-trafor.adb<s-trafor-default.adb \
755 s-trafor.ads<s-trafor-default.ads \
756 s-tratas.adb<s-tratas-default.adb \
757 s-tfsetr.adb<s-tfsetr-vxworks.adb
761 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
762 LIBGNAT_TARGET_PAIRS = \
763 a-intnam.ads<a-intnam-vxworks.ads \
764 a-numaux.ads<a-numaux-vxworks.ads \
765 s-inmaop.adb<s-inmaop-vxworks.adb \
766 s-interr.adb<s-interr-hwint.adb \
767 s-intman.ads<s-intman-vxworks.ads \
768 s-intman.adb<s-intman-vxworks.adb \
769 s-osinte.adb<s-osinte-vxworks.adb \
770 s-osinte.ads<s-osinte-vxworks.ads \
771 s-osprim.adb<s-osprim-vxworks.adb \
772 s-parame.ads<s-parame-vxworks.ads \
773 s-parame.adb<s-parame-vxworks.adb \
774 s-stchop.ads<s-stchop-limit.ads \
775 s-stchop.adb<s-stchop-vxworks.adb \
776 s-taprop.adb<s-taprop-vxworks.adb \
777 s-tasinf.ads<s-tasinf-vxworks.ads \
778 s-taspri.ads<s-taspri-vxworks.ads \
779 s-tpopsp.adb<s-tpopsp-vxworks.adb \
780 s-vxwork.ads<s-vxwork-sparcv9.ads \
781 g-socthi.ads<g-socthi-vxworks.ads \
782 g-socthi.adb<g-socthi-vxworks.adb \
783 g-stsifd.adb<g-stsifd-sockets.adb \
784 system.ads<system-vxworks-sparcv9.ads \
787 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
788 indepsw.adb<indepsw-gnu.adb
790 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
791 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
793 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
794 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
797 ifeq ($(strip $(filter-out %86 wrs vxworks,$(targ))),)
798 LIBGNAT_TARGET_PAIRS = \
799 a-intnam.ads<a-intnam-vxworks.ads \
800 i-vxwork.ads<i-vxwork-x86.ads \
801 s-osinte.adb<s-osinte-vxworks.adb \
802 s-osinte.ads<s-osinte-vxworks.ads \
803 s-inmaop.adb<s-inmaop-vxworks.adb \
804 s-intman.ads<s-intman-vxworks.ads \
805 s-intman.adb<s-intman-vxworks.adb \
806 s-osprim.adb<s-osprim-vxworks.adb \
807 s-parame.ads<s-parame-vxworks.ads \
808 s-parame.adb<s-parame-vxworks.adb \
809 s-stchop.ads<s-stchop-limit.ads \
810 s-stchop.adb<s-stchop-vxworks.adb \
811 s-taprop.adb<s-taprop-vxworks.adb \
812 s-tasinf.ads<s-tasinf-vxworks.ads \
813 s-taspri.ads<s-taspri-vxworks.ads \
814 s-vxwork.ads<s-vxwork-x86.ads \
815 g-socthi.ads<g-socthi-vxworks.ads \
816 g-socthi.adb<g-socthi-vxworks.adb \
817 g-stsifd.adb<g-stsifd-sockets.adb \
818 $(ATOMICS_TARGET_PAIRS) \
822 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
823 indepsw.adb<indepsw-gnu.adb
825 ifeq ($(strip $(filter-out yes,$(TRACE))),)
826 LIBGNAT_TARGET_PAIRS += \
827 s-traces.adb<s-traces-default.adb \
828 s-trafor.adb<s-trafor-default.adb \
829 s-trafor.ads<s-trafor-default.ads \
830 s-tratas.adb<s-tratas-default.adb \
831 s-tfsetr.adb<s-tfsetr-vxworks.adb
834 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
835 LIBGNAT_TARGET_PAIRS += \
836 s-vxwext.ads<s-vxwext-rtp.ads \
837 s-vxwext.adb<s-vxwext-rtp.adb \
838 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
839 system.ads<system-vxworks-x86-rtp.ads
841 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
843 ifeq ($(strip $(filter-out rtp-smp, $(THREAD_KIND))),)
844 LIBGNAT_TARGET_PAIRS += \
845 s-mudido.adb<s-mudido-affinity.adb \
846 s-vxwext.ads<s-vxwext-rtp.ads \
847 s-vxwext.adb<s-vxwext-rtp-smp.adb \
848 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
849 system.ads<system-vxworks-x86-rtp.ads
851 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
852 EXTRA_LIBGNAT_OBJS+=affinity.o
853 EXTRA_LIBGNAT_SRCS+=affinity.c
855 ifeq ($(strip $(filter-out kernel-smp, $(THREAD_KIND))),)
856 LIBGNAT_TARGET_PAIRS += \
857 s-interr.adb<s-interr-hwint.adb \
858 s-mudido.adb<s-mudido-affinity.adb \
859 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
860 s-vxwext.ads<s-vxwext-kernel.ads \
861 s-vxwext.adb<s-vxwext-kernel-smp.adb \
862 system.ads<system-vxworks-x86-kernel.ads
863 EXTRA_LIBGNAT_OBJS+=affinity.o
864 EXTRA_LIBGNAT_SRCS+=affinity.c
866 LIBGNAT_TARGET_PAIRS += \
867 s-interr.adb<s-interr-hwint.adb \
868 s-tpopsp.adb<s-tpopsp-vxworks.adb
870 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
871 LIBGNAT_TARGET_PAIRS += \
872 s-vxwext.ads<s-vxwext-kernel.ads \
873 s-vxwext.adb<s-vxwext-kernel.adb \
874 system.ads<system-vxworks-x86-kernel.ads
876 LIBGNAT_TARGET_PAIRS += \
877 system.ads<system-vxworks-x86.ads
881 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
884 EXTRA_GNATRTL_TASKING_OBJS += s-vxwork.o s-vxwext.o
886 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
887 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
890 ifeq ($(strip $(filter-out arm% coff wrs vx%,$(targ))),)
891 LIBGNAT_TARGET_PAIRS = \
892 a-intnam.ads<a-intnam-vxworks.ads \
893 a-numaux.ads<a-numaux-vxworks.ads \
894 s-inmaop.adb<s-inmaop-vxworks.adb \
895 s-interr.adb<s-interr-hwint.adb \
896 s-intman.ads<s-intman-vxworks.ads \
897 s-intman.adb<s-intman-vxworks.adb \
898 s-osinte.adb<s-osinte-vxworks.adb \
899 s-osinte.ads<s-osinte-vxworks.ads \
900 s-osprim.adb<s-osprim-vxworks.adb \
901 s-parame.ads<s-parame-vxworks.ads \
902 s-parame.adb<s-parame-vxworks.adb \
903 s-stchop.ads<s-stchop-limit.ads \
904 s-stchop.adb<s-stchop-vxworks.adb \
905 s-taprop.adb<s-taprop-vxworks.adb \
906 s-tasinf.ads<s-tasinf-vxworks.ads \
907 s-taspri.ads<s-taspri-vxworks.ads \
908 s-tpopsp.adb<s-tpopsp-vxworks.adb \
909 s-vxwork.ads<s-vxwork-arm.ads \
910 g-socthi.ads<g-socthi-vxworks.ads \
911 g-socthi.adb<g-socthi-vxworks.adb \
912 g-stsifd.adb<g-stsifd-sockets.adb \
913 system.ads<system-vxworks-arm.ads
916 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
917 indepsw.adb<indepsw-gnu.adb
919 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
920 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
922 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
923 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
926 ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)
927 LIBGNAT_TARGET_PAIRS = \
928 a-intnam.ads<a-intnam-vxworks.ads \
929 a-numaux.ads<a-numaux-vxworks.ads \
930 s-inmaop.adb<s-inmaop-vxworks.adb \
931 s-interr.adb<s-interr-hwint.adb \
932 s-intman.ads<s-intman-vxworks.ads \
933 s-intman.adb<s-intman-vxworks.adb \
934 s-osinte.adb<s-osinte-vxworks.adb \
935 s-osinte.ads<s-osinte-vxworks.ads \
936 s-osprim.adb<s-osprim-vxworks.adb \
937 s-parame.ads<s-parame-vxworks.ads \
938 s-parame.adb<s-parame-vxworks.adb \
939 s-stchop.ads<s-stchop-limit.ads \
940 s-stchop.adb<s-stchop-vxworks.adb \
941 s-taprop.adb<s-taprop-vxworks.adb \
942 s-tasinf.ads<s-tasinf-vxworks.ads \
943 s-taspri.ads<s-taspri-vxworks.ads \
944 s-tpopsp.adb<s-tpopsp-vxworks.adb \
945 s-vxwork.ads<s-vxwork-mips.ads \
946 g-socthi.ads<g-socthi-vxworks.ads \
947 g-socthi.adb<g-socthi-vxworks.adb \
948 g-stsifd.adb<g-stsifd-sockets.adb \
949 system.ads<system-vxworks-mips.ads
952 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
953 indepsw.adb<indepsw-gnu.adb
955 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
956 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
958 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
959 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
962 ifeq ($(strip $(filter-out sparc% sun solaris%,$(targ))),)
963 LIBGNAT_TARGET_PAIRS_COMMON = \
964 a-intnam.ads<a-intnam-solaris.ads \
965 s-inmaop.adb<s-inmaop-posix.adb \
966 s-intman.adb<s-intman-solaris.adb \
967 s-mudido.adb<s-mudido-affinity.adb \
968 s-osinte.adb<s-osinte-solaris.adb \
969 s-osinte.ads<s-osinte-solaris.ads \
970 s-osprim.adb<s-osprim-solaris.adb \
971 s-taprop.adb<s-taprop-solaris.adb \
972 s-tasinf.adb<s-tasinf-solaris.adb \
973 s-tasinf.ads<s-tasinf-solaris.ads \
974 s-taspri.ads<s-taspri-solaris.ads \
975 s-tpopsp.adb<s-tpopsp-solaris.adb \
976 g-soliop.ads<g-soliop-solaris.ads
978 LIBGNAT_TARGET_PAIRS_32 = \
979 system.ads<system-solaris-sparc.ads
981 LIBGNAT_TARGET_PAIRS_64 = \
982 system.ads<system-solaris-sparcv9.ads \
983 $(ATOMICS_TARGET_PAIRS) \
984 $(ATOMICS_BUILTINS_TARGET_PAIRS)
986 ifeq ($(strip $(filter-out sparc sun solaris%,$(targ))),)
987 ifeq ($(strip $(MULTISUBDIR)),/sparcv9)
988 LIBGNAT_TARGET_PAIRS = \
989 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
991 LIBGNAT_TARGET_PAIRS = \
992 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
995 ifeq ($(strip $(MULTISUBDIR)),/sparcv8plus)
996 LIBGNAT_TARGET_PAIRS = \
997 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
999 LIBGNAT_TARGET_PAIRS = \
1000 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1004 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
1007 THREADSLIB = -lposix4 -lthread
1008 MISCLIB = -lposix4 -lnsl -lsocket
1010 GNATLIB_SHARED = gnatlib-shared-dual
1012 LIBRARY_VERSION := $(LIB_VERSION)
1014 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
1015 LIBGNAT_TARGET_PAIRS = \
1016 a-intnam.ads<a-intnam-solaris.ads \
1017 s-inmaop.adb<s-inmaop-posix.adb \
1018 s-intman.adb<s-intman-posix.adb \
1019 s-osinte.adb<s-osinte-posix.adb \
1020 s-osinte.ads<s-osinte-solaris-posix.ads \
1021 s-osprim.adb<s-osprim-solaris.adb \
1022 s-taprop.adb<s-taprop-posix.adb \
1023 s-taspri.ads<s-taspri-posix.ads \
1024 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1025 g-soliop.ads<g-soliop-solaris.ads \
1026 system.ads<system-solaris-sparc.ads
1028 THREADSLIB = -lposix4 -lpthread
1031 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
1032 LIBGNAT_TARGET_PAIRS = $(LIBGNAT_TARGET_PAIRS_64)
1036 ifeq ($(strip $(filter-out %86 %x86_64 solaris2%,$(arch) $(osys))),)
1037 LIBGNAT_TARGET_PAIRS_COMMON = \
1038 a-intnam.ads<a-intnam-solaris.ads \
1039 s-inmaop.adb<s-inmaop-posix.adb \
1040 s-intman.adb<s-intman-solaris.adb \
1041 s-mudido.adb<s-mudido-affinity.adb \
1042 s-osinte.adb<s-osinte-solaris.adb \
1043 s-osinte.ads<s-osinte-solaris.ads \
1044 s-osprim.adb<s-osprim-solaris.adb \
1045 s-taprop.adb<s-taprop-solaris.adb \
1046 s-tasinf.adb<s-tasinf-solaris.adb \
1047 s-tasinf.ads<s-tasinf-solaris.ads \
1048 s-taspri.ads<s-taspri-solaris.ads \
1049 s-tpopsp.adb<s-tpopsp-solaris.adb \
1050 g-soliop.ads<g-soliop-solaris.ads \
1051 $(ATOMICS_TARGET_PAIRS)
1053 LIBGNAT_TARGET_PAIRS_32 = \
1054 $(X86_TARGET_PAIRS) \
1055 system.ads<system-solaris-x86.ads
1057 LIBGNAT_TARGET_PAIRS_64 = \
1058 $(X86_64_TARGET_PAIRS) \
1059 system.ads<system-solaris-x86_64.ads
1061 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
1062 ifeq ($(strip $(MULTISUBDIR)),/amd64)
1063 LIBGNAT_TARGET_PAIRS = \
1064 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1066 LIBGNAT_TARGET_PAIRS = \
1067 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1070 ifeq ($(strip $(MULTISUBDIR)),/32)
1071 LIBGNAT_TARGET_PAIRS = \
1072 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1074 LIBGNAT_TARGET_PAIRS = \
1075 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1079 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
1082 THREADSLIB = -lposix4 -lthread
1083 MISCLIB = -lposix4 -lnsl -lsocket
1085 GNATLIB_SHARED = gnatlib-shared-dual
1087 LIBRARY_VERSION := $(LIB_VERSION)
1090 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
1091 LIBGNAT_TARGET_PAIRS = \
1092 a-intnam.ads<a-intnam-linux.ads \
1093 a-synbar.adb<a-synbar-posix.adb \
1094 a-synbar.ads<a-synbar-posix.ads \
1095 s-inmaop.adb<s-inmaop-posix.adb \
1096 s-intman.adb<s-intman-posix.adb \
1097 s-tpopsp.adb<s-tpopsp-tls.adb \
1098 g-sercom.adb<g-sercom-linux.adb \
1099 a-exetim.adb<a-exetim-posix.adb \
1100 a-exetim.ads<a-exetim-default.ads \
1101 s-linux.ads<s-linux.ads \
1102 s-osinte.adb<s-osinte-posix.adb \
1103 system.ads<system-linux-x86.ads \
1104 $(ATOMICS_TARGET_PAIRS) \
1107 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
1108 LIBGNAT_TARGET_PAIRS += \
1109 s-osinte.ads<s-osinte-linux-xenomai.ads \
1110 s-osprim.adb<s-osprim-linux-xenomai.adb \
1111 s-taprop.adb<s-taprop-linux-xenomai.adb \
1112 s-taspri.ads<s-taspri-linux-xenomai.ads
1114 LIBGNAT_TARGET_PAIRS += \
1115 s-mudido.adb<s-mudido-affinity.adb \
1116 s-osinte.ads<s-osinte-linux.ads \
1117 s-osprim.adb<s-osprim-posix.adb \
1118 s-taprop.adb<s-taprop-linux.adb \
1119 s-tasinf.ads<s-tasinf-linux.ads \
1120 s-tasinf.adb<s-tasinf-linux.adb \
1121 s-taspri.ads<s-taspri-posix.ads
1125 THREADSLIB = -lpthread -lrt
1126 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
1127 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
1129 TOOLS_TARGET_PAIRS = \
1130 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1131 indepsw.adb<indepsw-gnu.adb
1133 GNATLIB_SHARED = gnatlib-shared-dual
1135 LIBRARY_VERSION := $(LIB_VERSION)
1138 ifeq ($(strip $(filter-out %86 kfreebsd%,$(arch) $(osys))),)
1139 LIBGNAT_TARGET_PAIRS = \
1140 a-intnam.ads<a-intnam-freebsd.ads \
1141 s-inmaop.adb<s-inmaop-posix.adb \
1142 s-intman.adb<s-intman-posix.adb \
1143 s-osinte.adb<s-osinte-posix.adb \
1144 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
1145 s-osprim.adb<s-osprim-posix.adb \
1146 s-taprop.adb<s-taprop-linux.adb \
1147 s-tasinf.ads<s-tasinf-linux.ads \
1148 s-tasinf.adb<s-tasinf-linux.adb \
1149 s-taspri.ads<s-taspri-posix.ads \
1150 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1151 $(ATOMICS_TARGET_PAIRS) \
1152 $(X86_TARGET_PAIRS) \
1153 system.ads<system-freebsd-x86.ads
1155 TOOLS_TARGET_PAIRS = \
1156 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1157 indepsw.adb<indepsw-gnu.adb
1160 THREADSLIB = -lpthread
1161 GNATLIB_SHARED = gnatlib-shared-dual
1163 LIBRARY_VERSION := $(LIB_VERSION)
1166 ifeq ($(strip $(filter-out x86_64 kfreebsd%,$(arch) $(osys))),)
1167 LIBGNAT_TARGET_PAIRS = \
1168 a-intnam.ads<a-intnam-freebsd.ads \
1169 a-numaux.adb<a-numaux-x86.adb \
1170 a-numaux.ads<a-numaux-x86.ads \
1171 s-inmaop.adb<s-inmaop-posix.adb \
1172 s-intman.adb<s-intman-posix.adb \
1173 s-osinte.adb<s-osinte-posix.adb \
1174 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
1175 s-osprim.adb<s-osprim-posix.adb \
1176 s-taprop.adb<s-taprop-linux.adb \
1177 s-tasinf.ads<s-tasinf-linux.ads \
1178 s-tasinf.adb<s-tasinf-linux.adb \
1179 s-taspri.ads<s-taspri-posix.ads \
1180 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1181 system.ads<system-freebsd-x86_64.ads
1183 TOOLS_TARGET_PAIRS = \
1184 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1185 indepsw.adb<indepsw-gnu.adb
1188 THREADSLIB = -lpthread
1189 GNATLIB_SHARED = gnatlib-shared-dual
1191 LIBRARY_VERSION := $(LIB_VERSION)
1194 ifeq ($(strip $(filter-out %86 freebsd%,$(arch) $(osys))),)
1195 LIBGNAT_TARGET_PAIRS = \
1196 a-intnam.ads<a-intnam-freebsd.ads \
1197 s-inmaop.adb<s-inmaop-posix.adb \
1198 s-intman.adb<s-intman-posix.adb \
1199 s-osinte.adb<s-osinte-freebsd.adb \
1200 s-osinte.ads<s-osinte-freebsd.ads \
1201 s-osprim.adb<s-osprim-posix.adb \
1202 s-taprop.adb<s-taprop-posix.adb \
1203 s-taspri.ads<s-taspri-posix.ads \
1204 s-tpopsp.adb<s-tpopsp-posix.adb \
1205 $(ATOMICS_TARGET_PAIRS) \
1206 $(X86_TARGET_PAIRS) \
1207 system.ads<system-freebsd-x86.ads
1209 TOOLS_TARGET_PAIRS = \
1210 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
1211 GNATLIB_SHARED = gnatlib-shared-dual
1214 THREADSLIB= -lpthread
1216 LIBRARY_VERSION := $(LIB_VERSION)
1219 ifeq ($(strip $(filter-out %86_64 freebsd%,$(arch) $(osys))),)
1220 LIBGNAT_TARGET_PAIRS = \
1221 a-intnam.ads<a-intnam-freebsd.ads \
1222 s-inmaop.adb<s-inmaop-posix.adb \
1223 s-intman.adb<s-intman-posix.adb \
1224 s-osinte.adb<s-osinte-freebsd.adb \
1225 s-osinte.ads<s-osinte-freebsd.ads \
1226 s-osprim.adb<s-osprim-posix.adb \
1227 s-taprop.adb<s-taprop-posix.adb \
1228 s-taspri.ads<s-taspri-posix.ads \
1229 s-tpopsp.adb<s-tpopsp-posix.adb \
1230 g-trasym.adb<g-trasym-dwarf.adb \
1231 $(ATOMICS_TARGET_PAIRS) \
1232 $(X86_64_TARGET_PAIRS) \
1233 system.ads<system-freebsd-x86_64.ads
1235 TOOLS_TARGET_PAIRS = \
1236 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
1237 GNATLIB_SHARED = gnatlib-shared-dual
1240 THREADSLIB= -lpthread
1242 LIBRARY_VERSION := $(LIB_VERSION)
1245 ifeq ($(strip $(filter-out s390% linux%,$(arch) $(osys))),)
1246 LIBGNAT_TARGET_PAIRS_COMMON = \
1247 a-intnam.ads<a-intnam-linux.ads \
1248 s-inmaop.adb<s-inmaop-posix.adb \
1249 s-intman.adb<s-intman-posix.adb \
1250 s-linux.ads<s-linux.ads \
1251 s-osinte.adb<s-osinte-posix.adb \
1252 s-osinte.ads<s-osinte-linux.ads \
1253 s-osprim.adb<s-osprim-posix.adb \
1254 s-taprop.adb<s-taprop-linux.adb \
1255 s-tasinf.ads<s-tasinf-linux.ads \
1256 s-tasinf.adb<s-tasinf-linux.adb \
1257 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1258 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
1260 LIBGNAT_TARGET_PAIRS_32 = \
1261 system.ads<system-linux-s390.ads
1263 LIBGNAT_TARGET_PAIRS_64 = \
1264 system.ads<system-linux-s390x.ads
1266 ifeq ($(strip $(filter-out s390x,$(arch))),)
1267 ifeq ($(strip $(MULTISUBDIR)),/32)
1268 LIBGNAT_TARGET_PAIRS = \
1269 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1271 LIBGNAT_TARGET_PAIRS = \
1272 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1275 LIBGNAT_TARGET_PAIRS = \
1276 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1279 TOOLS_TARGET_PAIRS = \
1280 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1281 indepsw.adb<indepsw-gnu.adb
1283 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1285 THREADSLIB = -lpthread
1286 GNATLIB_SHARED = gnatlib-shared-dual
1287 LIBRARY_VERSION := $(LIB_VERSION)
1290 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
1291 LIBGNAT_TARGET_PAIRS = \
1292 a-intnam.ads<a-intnam-irix.ads \
1293 a-synbar.adb<a-synbar-posix.adb \
1294 a-synbar.ads<a-synbar-posix.ads \
1295 s-inmaop.adb<s-inmaop-posix.adb \
1296 s-intman.adb<s-intman-irix.adb \
1297 s-mastop.adb<s-mastop-irix.adb \
1298 s-osinte.adb<s-osinte-irix.adb \
1299 s-osinte.ads<s-osinte-irix.ads \
1300 s-osprim.adb<s-osprim-posix.adb \
1301 s-proinf.adb<s-proinf-irix-athread.adb \
1302 s-proinf.ads<s-proinf-irix-athread.ads \
1303 s-taprop.adb<s-taprop-irix.adb \
1304 s-tasinf.ads<s-tasinf-irix.ads \
1305 s-taspri.ads<s-taspri-posix.ads \
1306 s-tpopsp.adb<s-tpopsp-posix.adb \
1307 s-traceb.adb<s-traceb-mastop.adb
1309 ifeq ($(strip $(MULTISUBDIR)),/64)
1310 LIBGNAT_TARGET_PAIRS += \
1311 system.ads<system-irix-n64.ads
1313 ifeq ($(strip $(MULTISUBDIR)),/32)
1314 LIBGNAT_TARGET_PAIRS += \
1315 system.ads<system-irix-o32.ads
1317 LIBGNAT_TARGET_PAIRS += \
1318 system.ads<system-irix-n32.ads
1322 THREADSLIB = -lpthread
1323 GNATLIB_SHARED = gnatlib-shared-default
1326 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-specific-irix.adb
1329 LIBRARY_VERSION := $(LIB_VERSION)
1333 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
1334 LIBGNAT_TARGET_PAIRS = \
1335 a-excpol.adb<a-excpol-abort.adb \
1336 a-intnam.ads<a-intnam-hpux.ads \
1337 s-inmaop.adb<s-inmaop-posix.adb \
1338 s-interr.adb<s-interr-sigaction.adb \
1339 s-intman.adb<s-intman-posix.adb \
1340 s-osinte.adb<s-osinte-hpux-dce.adb \
1341 s-osinte.ads<s-osinte-hpux-dce.ads \
1342 s-parame.ads<s-parame-hpux.ads \
1343 s-osprim.adb<s-osprim-posix.adb \
1344 s-taprop.adb<s-taprop-hpux-dce.adb \
1345 s-taspri.ads<s-taspri-hpux-dce.ads \
1346 s-tpopsp.adb<s-tpopsp-posix.adb \
1347 system.ads<system-hpux.ads
1352 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
1353 LIBGNAT_TARGET_PAIRS = \
1354 a-intnam.ads<a-intnam-hpux.ads \
1355 s-inmaop.adb<s-inmaop-posix.adb \
1356 s-intman.adb<s-intman-posix.adb \
1357 s-osinte.adb<s-osinte-posix.adb \
1358 s-osinte.ads<s-osinte-hpux.ads \
1359 s-parame.ads<s-parame-hpux.ads \
1360 s-osprim.adb<s-osprim-posix.adb \
1361 s-traceb.adb<s-traceb-hpux.adb \
1362 s-taprop.adb<s-taprop-posix.adb \
1363 s-taspri.ads<s-taspri-posix.ads \
1364 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1365 system.ads<system-hpux.ads
1367 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb
1369 TGT_LIB = /usr/lib/libcl.a
1370 THREADSLIB = -lpthread
1374 GNATLIB_SHARED = gnatlib-shared-dual
1375 LIBRARY_VERSION := $(LIB_VERSION)
1378 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
1379 LIBGNAT_TARGET_PAIRS_COMMON = \
1380 a-intnam.ads<a-intnam-aix.ads \
1381 s-inmaop.adb<s-inmaop-posix.adb \
1382 s-intman.adb<s-intman-posix.adb \
1383 s-osinte.adb<s-osinte-aix.adb \
1384 s-osinte.ads<s-osinte-aix.ads \
1385 s-osprim.adb<s-osprim-posix.adb \
1386 s-taprop.adb<s-taprop-posix.adb \
1387 s-taspri.ads<s-taspri-posix.ads \
1388 s-tpopsp.adb<s-tpopsp-posix.adb \
1389 $(ATOMICS_TARGET_PAIRS) \
1390 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1392 LIBGNAT_TARGET_PAIRS_32 = \
1393 system.ads<system-aix.ads
1395 LIBGNAT_TARGET_PAIRS_64 = \
1396 system.ads<system-aix64.ads
1398 ifeq ($(findstring ppc64, \
1399 $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) \
1400 -print-multi-os-directory)), \
1402 LIBGNAT_TARGET_PAIRS = \
1403 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1404 TOOLS_TARGET_PAIRS = \
1405 indepsw.adb<indepsw-aix.adb
1407 LIBGNAT_TARGET_PAIRS = \
1408 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1409 TOOLS_TARGET_PAIRS = \
1410 indepsw.adb<indepsw-gnu.adb
1413 THREADSLIB = -lpthreads
1415 TOOLS_TARGET_PAIRS += \
1416 mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb
1421 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1422 LIBGNAT_TARGET_PAIRS = \
1423 system.ads<system-rtems.ads \
1424 a-intnam.ads<a-intnam-rtems.ads \
1425 s-inmaop.adb<s-inmaop-posix.adb \
1426 s-intman.adb<s-intman-posix.adb \
1427 s-osinte.adb<s-osinte-rtems.adb \
1428 s-osinte.ads<s-osinte-rtems.ads \
1429 s-osprim.adb<s-osprim-posix.adb \
1430 s-parame.adb<s-parame-rtems.adb \
1431 s-taprop.adb<s-taprop-posix.adb \
1432 s-taspri.ads<s-taspri-posix.ads \
1433 s-tpopsp.adb<s-tpopsp-rtems.adb \
1434 s-stchop.adb<s-stchop-rtems.adb \
1435 s-interr.adb<s-interr-hwint.adb
1438 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1439 LIBGNAT_TARGET_PAIRS = \
1440 a-intnam.ads<a-intnam-tru64.ads \
1441 s-inmaop.adb<s-inmaop-posix.adb \
1442 s-intman.adb<s-intman-posix.adb \
1443 s-mastop.adb<s-mastop-tru64.adb \
1444 s-osinte.adb<s-osinte-tru64.adb \
1445 s-osinte.ads<s-osinte-tru64.ads \
1446 s-osprim.adb<s-osprim-unix.adb \
1447 s-taprop.adb<s-taprop-tru64.adb \
1448 s-tasinf.ads<s-tasinf-tru64.ads \
1449 s-taspri.ads<s-taspri-tru64.ads \
1450 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1451 s-traceb.adb<s-traceb-mastop.adb \
1452 system.ads<system-tru64.ads \
1453 $(ATOMICS_TARGET_PAIRS) \
1454 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1456 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-tru64.adb
1461 THREADSLIB = -lpthread -lmach -lexc -lrt
1462 GNATLIB_SHARED = gnatlib-shared-default
1463 LIBRARY_VERSION := $(LIB_VERSION)
1466 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(host))),)
1476 @ gnu:[bin]vmssymvec $<
1479 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1480 LIBGNAT_TARGET_PAIRS = \
1481 a-caldel.adb<a-caldel-vms.adb \
1482 a-calend.adb<a-calend-vms.adb \
1483 a-calend.ads<a-calend-vms.ads \
1484 a-dirval.adb<a-dirval-vms.adb \
1485 a-excpol.adb<a-excpol-abort.adb \
1486 a-intnam.ads<a-intnam-vms.ads \
1487 a-numaux.ads<a-numaux-vms.ads \
1488 g-expect.adb<g-expect-vms.adb \
1489 g-socthi.ads<g-socthi-vms.ads \
1490 g-socthi.adb<g-socthi-vms.adb \
1491 g-stsifd.adb<g-stsifd-sockets.adb \
1492 i-cstrea.adb<i-cstrea-vms.adb \
1493 memtrack.adb<memtrack-vms_64.adb \
1494 s-auxdec.ads<s-auxdec-vms_64.ads \
1495 s-inmaop.adb<s-inmaop-vms.adb \
1496 s-interr.adb<s-interr-vms.adb \
1497 s-intman.adb<s-intman-vms.adb \
1498 s-intman.ads<s-intman-vms.ads \
1499 s-memory.adb<s-memory-vms_64.adb \
1500 s-memory.ads<s-memory-vms_64.ads \
1501 s-osprim.adb<s-osprim-vms.adb \
1502 s-osprim.ads<s-osprim-vms.ads \
1503 s-taprop.adb<s-taprop-vms.adb \
1504 s-tasdeb.adb<s-tasdeb-vms.adb \
1505 s-taspri.ads<s-taspri-vms.ads \
1506 s-tpopsp.adb<s-tpopsp-vms.adb \
1507 s-tpopde.adb<s-tpopde-vms.adb \
1508 s-tpopde.ads<s-tpopde-vms.ads
1510 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1511 LIBGNAT_TARGET_PAIRS += \
1512 g-enblsp.adb<g-enblsp-vms-ia64.adb \
1513 g-trasym.adb<g-trasym-vms-ia64.adb \
1514 s-asthan.adb<s-asthan-vms-ia64.adb \
1515 s-auxdec.adb<s-auxdec-vms-ia64.adb \
1516 s-osinte.adb<s-osinte-vms-ia64.adb \
1517 s-osinte.ads<s-osinte-vms-ia64.ads \
1518 s-vaflop.adb<s-vaflop-vms-ia64.adb \
1519 system.ads<system-vms-ia64.ads \
1520 s-parame.ads<s-parame-vms-ia64.ads \
1521 $(ATOMICS_TARGET_PAIRS) \
1522 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1524 TOOLS_TARGET_PAIRS= \
1525 mlib-tgt-specific.adb<mlib-tgt-specific-vms-ia64.adb \
1526 symbols.adb<symbols-vms.adb \
1527 symbols-processing.adb<symbols-processing-vms-ia64.adb
1529 ifeq ($(strip $(filter-out alpha64 dec vms% openvms% alphavms%,$(targ))),)
1530 LIBGNAT_TARGET_PAIRS += \
1531 g-enblsp.adb<g-enblsp-vms-alpha.adb \
1532 g-trasym.adb<g-trasym-vms-alpha.adb \
1533 s-asthan.adb<s-asthan-vms-alpha.adb \
1534 s-auxdec.adb<s-auxdec-vms-alpha.adb \
1535 s-osinte.adb<s-osinte-vms.adb \
1536 s-osinte.ads<s-osinte-vms.ads \
1537 s-traent.adb<s-traent-vms.adb \
1538 s-traent.ads<s-traent-vms.ads \
1539 s-vaflop.adb<s-vaflop-vms-alpha.adb \
1540 system.ads<system-vms_64.ads \
1541 s-parame.ads<s-parame-vms-alpha.ads \
1542 $(ATOMICS_TARGET_PAIRS) \
1543 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1545 TOOLS_TARGET_PAIRS= \
1546 mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \
1547 symbols.adb<symbols-vms.adb \
1548 symbols-processing.adb<symbols-processing-vms-alpha.adb
1552 adamsg.o: adamsg.msg
1553 -$(DECC) --cc=message adamsg.msg -o adamsg.o
1555 EXTRA_GNATMAKE_OBJS = mlib-tgt-vms_common.o
1559 GNATLIB_SHARED=gnatlib-shared-vms
1560 EXTRA_LIBGNAT_SRCS+=adamsg.msg
1561 EXTRA_LIBGNAT_OBJS+=adamsg.o
1562 EXTRA_GNATRTL_NONTASKING_OBJS+=s-po32gl.o
1563 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1565 ../../gnatsym$(exeext)
1566 # This command transforms (YYYYMMDD) into YY,MMDD
1567 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)ada/gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\).*/\2,\3/')
1568 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1569 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1572 ifeq ($(strip $(filter-out avr none powerpc% eabispe leon% erc32% unknown elf,$(targ))),)
1573 TOOLS_TARGET_PAIRS=\
1574 mlib-tgt-specific.adb<mlib-tgt-specific-xi.adb \
1575 indepsw.adb<indepsw-gnu.adb
1578 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1579 LIBGNAT_TARGET_PAIRS = \
1580 a-dirval.adb<a-dirval-mingw.adb \
1581 a-excpol.adb<a-excpol-abort.adb \
1582 s-gloloc.adb<s-gloloc-mingw.adb \
1583 s-inmaop.adb<s-inmaop-dummy.adb \
1584 s-memory.adb<s-memory-mingw.adb \
1585 s-taspri.ads<s-taspri-mingw.ads \
1586 s-tasinf.adb<s-tasinf-mingw.adb \
1587 s-tasinf.ads<s-tasinf-mingw.ads \
1588 g-socthi.ads<g-socthi-mingw.ads \
1589 g-socthi.adb<g-socthi-mingw.adb \
1590 g-stsifd.adb<g-stsifd-sockets.adb \
1591 g-soliop.ads<g-soliop-mingw.ads \
1592 $(ATOMICS_TARGET_PAIRS)
1594 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss,$(THREAD_KIND))),)
1595 LIBGNAT_TARGET_PAIRS += \
1596 s-intman.adb<s-intman-dummy.adb \
1597 s-osinte.ads<s-osinte-rtx.ads \
1598 s-osprim.adb<s-osprim-rtx.adb \
1599 s-taprop.adb<s-taprop-rtx.adb \
1602 EXTRA_GNATRTL_NONTASKING_OBJS = s-win32.o
1604 ifeq ($(strip $(filter-out rtx_w32,$(THREAD_KIND))),)
1605 LIBGNAT_TARGET_PAIRS += system.ads<system-rtx.ads
1609 LIBGNAT_TARGET_PAIRS += \
1610 system.ads<system-rtx-rtss.ads \
1611 s-parame.adb<s-parame-vxworks.adb
1617 LIBGNAT_TARGET_PAIRS += \
1618 a-exetim.adb<a-exetim-mingw.adb \
1619 a-exetim.ads<a-exetim-mingw.ads \
1620 a-intnam.ads<a-intnam-mingw.ads \
1621 g-sercom.adb<g-sercom-mingw.adb \
1622 s-interr.adb<s-interr-sigaction.adb \
1623 s-intman.adb<s-intman-mingw.adb \
1624 s-mudido.adb<s-mudido-affinity.adb \
1625 s-osinte.ads<s-osinte-mingw.ads \
1626 s-osprim.adb<s-osprim-mingw.adb \
1627 s-taprop.adb<s-taprop-mingw.adb
1629 ifeq ($(strip $(filter-out x86_64%,$(arch))),)
1630 ifeq ($(strip $(MULTISUBDIR)),/32)
1631 LIBGNAT_TARGET_PAIRS += \
1632 $(X86_TARGET_PAIRS) \
1633 system.ads<system-mingw.ads
1634 SO_OPTS= -m32 -Wl,-soname,
1636 LIBGNAT_TARGET_PAIRS += \
1637 $(X86_64_TARGET_PAIRS) \
1638 system.ads<system-mingw-x86_64.ads
1639 SO_OPTS = -m64 -Wl,-soname,
1642 ifeq ($(strip $(MULTISUBDIR)),/64)
1643 LIBGNAT_TARGET_PAIRS += \
1644 $(X86_64_TARGET_PAIRS) \
1645 system.ads<system-mingw-x86_64.ads
1646 SO_OPTS = -m64 -Wl,-soname,
1648 LIBGNAT_TARGET_PAIRS += \
1649 $(X86_TARGET_PAIRS) \
1650 system.ads<system-mingw.ads
1651 SO_OPTS = -m32 -Wl,-soname,
1655 EXTRA_GNATRTL_NONTASKING_OBJS = \
1656 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1657 EXTRA_GNATRTL_TASKING_OBJS = a-exetim.o
1661 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1662 # auto-import support for array/record will be done.
1663 GNATLIB_SHARED = gnatlib-shared-win32
1668 TOOLS_TARGET_PAIRS= \
1669 mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb \
1670 indepsw.adb<indepsw-mingw.adb
1673 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1674 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1676 LIBRARY_VERSION := $(LIB_VERSION)
1679 ifeq ($(strip $(filter-out mips linux%,$(arch) $(osys))),)
1680 LIBGNAT_TARGET_PAIRS = \
1681 a-intnam.ads<a-intnam-linux.ads \
1682 s-inmaop.adb<s-inmaop-posix.adb \
1683 s-intman.adb<s-intman-posix.adb \
1684 s-linux.ads<s-linux.ads \
1685 s-osinte.adb<s-osinte-posix.adb \
1686 s-osinte.ads<s-osinte-linux.ads \
1687 s-osprim.adb<s-osprim-posix.adb \
1688 s-taprop.adb<s-taprop-linux.adb \
1689 s-tasinf.ads<s-tasinf-linux.ads \
1690 s-tasinf.adb<s-tasinf-linux.adb \
1691 s-taspri.ads<s-taspri-posix.ads \
1692 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1693 system.ads<system-linux-mips.ads
1696 THREADSLIB = -lpthread
1697 GNATLIB_SHARED = gnatlib-shared-dual
1699 LIBRARY_VERSION := $(LIB_VERSION)
1702 ifeq ($(strip $(filter-out mipsel linux%,$(arch) $(osys))),)
1703 LIBGNAT_TARGET_PAIRS_COMMON = \
1704 a-intnam.ads<a-intnam-linux.ads \
1705 s-inmaop.adb<s-inmaop-posix.adb \
1706 s-intman.adb<s-intman-posix.adb \
1707 s-linux.ads<s-linux-mipsel.ads \
1708 s-osinte.adb<s-osinte-posix.adb \
1709 s-osinte.ads<s-osinte-linux.ads \
1710 s-osprim.adb<s-osprim-posix.adb \
1711 s-taprop.adb<s-taprop-linux.adb \
1712 s-tasinf.ads<s-tasinf-linux.ads \
1713 s-tasinf.adb<s-tasinf-linux.adb \
1714 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1715 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1716 g-sercom.adb<g-sercom-linux.adb
1718 LIBGNAT_TARGET_PAIRS_32 = \
1719 system.ads<system-linux-mipsel.ads
1721 LIBGNAT_TARGET_PAIRS_64 = \
1722 system.ads<system-linux-mips64el.ads
1724 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1725 LIBGNAT_TARGET_PAIRS = \
1726 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1728 LIBGNAT_TARGET_PAIRS = \
1729 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1732 TOOLS_TARGET_PAIRS = \
1733 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1734 indepsw.adb<indepsw-gnu.adb
1736 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1738 THREADSLIB = -lpthread
1739 GNATLIB_SHARED = gnatlib-shared-dual
1741 LIBRARY_VERSION := $(LIB_VERSION)
1744 ifeq ($(strip $(filter-out mips64el linux%,$(arch) $(osys))),)
1745 LIBGNAT_TARGET_PAIRS_COMMON = \
1746 a-intnam.ads<a-intnam-linux.ads \
1747 s-inmaop.adb<s-inmaop-posix.adb \
1748 s-intman.adb<s-intman-posix.adb \
1749 s-linux.ads<s-linux-mipsel.ads \
1750 s-osinte.adb<s-osinte-posix.adb \
1751 s-osinte.ads<s-osinte-linux.ads \
1752 s-osprim.adb<s-osprim-posix.adb \
1753 s-taprop.adb<s-taprop-linux.adb \
1754 s-tasinf.ads<s-tasinf-linux.ads \
1755 s-tasinf.adb<s-tasinf-linux.adb \
1756 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1757 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1758 g-sercom.adb<g-sercom-linux.adb
1760 LIBGNAT_TARGET_PAIRS_32 = \
1761 system.ads<system-linux-mipsel.ads
1763 LIBGNAT_TARGET_PAIRS_64 = \
1764 system.ads<system-linux-mips64el.ads
1766 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1767 LIBGNAT_TARGET_PAIRS = \
1768 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1770 LIBGNAT_TARGET_PAIRS = \
1771 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1774 TOOLS_TARGET_PAIRS = \
1775 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1776 indepsw.adb<indepsw-gnu.adb
1778 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1780 THREADSLIB = -lpthread
1781 GNATLIB_SHARED = gnatlib-shared-dual
1783 LIBRARY_VERSION := $(LIB_VERSION)
1786 ifeq ($(strip $(filter-out powerpc% linux%,$(arch) $(osys))),)
1787 LIBGNAT_TARGET_PAIRS_COMMON = \
1788 a-exetim.adb<a-exetim-posix.adb \
1789 a-exetim.ads<a-exetim-default.ads \
1790 a-intnam.ads<a-intnam-linux.ads \
1791 a-synbar.adb<a-synbar-posix.adb \
1792 a-synbar.ads<a-synbar-posix.ads \
1793 s-inmaop.adb<s-inmaop-posix.adb \
1794 s-intman.adb<s-intman-posix.adb \
1795 s-linux.ads<s-linux.ads \
1796 s-osinte.adb<s-osinte-posix.adb \
1797 s-tpopsp.adb<s-tpopsp-tls.adb \
1798 g-sercom.adb<g-sercom-linux.adb \
1799 $(ATOMICS_TARGET_PAIRS) \
1800 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1802 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
1803 LIBGNAT_TARGET_PAIRS = \
1804 $(LIBGNAT_TARGET_PAIRS_COMMON)
1806 LIBGNAT_TARGET_PAIRS += \
1807 s-osinte.ads<s-osinte-linux-xenomai.ads \
1808 s-osprim.adb<s-osprim-linux-xenomai.adb \
1809 s-taprop.adb<s-taprop-linux-xenomai.adb \
1810 s-taspri.ads<s-taspri-linux-xenomai.ads \
1811 system.ads<system-linux-ppc.ads
1813 LIBGNAT_TARGET_PAIRS_32 = \
1814 system.ads<system-linux-ppc.ads
1816 LIBGNAT_TARGET_PAIRS_64 = \
1817 system.ads<system-linux-ppc64.ads
1819 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1820 LIBGNAT_TARGET_PAIRS = \
1821 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1823 LIBGNAT_TARGET_PAIRS = \
1824 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1827 LIBGNAT_TARGET_PAIRS += \
1828 s-mudido.adb<s-mudido-affinity.adb \
1829 s-osinte.ads<s-osinte-linux.ads \
1830 s-osprim.adb<s-osprim-posix.adb \
1831 s-taprop.adb<s-taprop-linux.adb \
1832 s-tasinf.ads<s-tasinf-linux.ads \
1833 s-tasinf.adb<s-tasinf-linux.adb \
1834 s-taspri.ads<s-taspri-posix-noaltstack.ads
1837 TOOLS_TARGET_PAIRS = \
1838 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1839 indepsw.adb<indepsw-gnu.adb
1841 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
1843 THREADSLIB = -lpthread -lrt
1844 GNATLIB_SHARED = gnatlib-shared-dual
1846 LIBRARY_VERSION := $(LIB_VERSION)
1849 ifeq ($(strip $(filter-out arm% linux-gnueabi,$(arch) $(osys)-$(word 4,$(targ)))),)
1850 LIBGNAT_TARGET_PAIRS = \
1851 a-intnam.ads<a-intnam-linux.ads \
1852 s-inmaop.adb<s-inmaop-posix.adb \
1853 s-intman.adb<s-intman-posix.adb \
1854 s-linux.ads<s-linux.ads \
1855 s-osinte.adb<s-osinte-posix.adb \
1856 s-osinte.ads<s-osinte-linux.ads \
1857 s-osprim.adb<s-osprim-posix.adb \
1858 s-taprop.adb<s-taprop-linux.adb \
1859 s-tasinf.ads<s-tasinf-linux.ads \
1860 s-tasinf.adb<s-tasinf-linux.adb \
1861 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1862 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
1864 ifeq ($(strip $(filter-out arm%b,$(arch))),)
1865 LIBGNAT_TARGET_PAIRS += \
1866 system.ads<system-linux-armeb.ads
1868 LIBGNAT_TARGET_PAIRS += \
1869 system.ads<system-linux-armel.ads
1872 TOOLS_TARGET_PAIRS = \
1873 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1874 indepsw.adb<indepsw-gnu.adb
1876 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1878 THREADSLIB = -lpthread
1879 GNATLIB_SHARED = gnatlib-shared-dual
1881 LIBRARY_VERSION := $(LIB_VERSION)
1884 ifeq ($(strip $(filter-out sparc% linux%,$(arch) $(osys))),)
1885 LIBGNAT_TARGET_PAIRS_COMMON = \
1886 a-intnam.ads<a-intnam-linux.ads \
1887 s-inmaop.adb<s-inmaop-posix.adb \
1888 s-intman.adb<s-intman-posix.adb \
1889 s-linux.ads<s-linux-sparc.ads \
1890 s-osinte.adb<s-osinte-posix.adb \
1891 s-osinte.ads<s-osinte-linux.ads \
1892 s-osprim.adb<s-osprim-posix.adb \
1893 s-taprop.adb<s-taprop-linux.adb \
1894 s-tasinf.ads<s-tasinf-linux.ads \
1895 s-tasinf.adb<s-tasinf-linux.adb \
1896 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1897 s-tpopsp.adb<s-tpopsp-tls.adb
1899 LIBGNAT_TARGET_PAIRS_32 = \
1900 system.ads<system-linux-sparc.ads
1902 LIBGNAT_TARGET_PAIRS_64 = \
1903 system.ads<system-linux-sparcv9.ads
1905 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1906 LIBGNAT_TARGET_PAIRS = \
1907 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1909 LIBGNAT_TARGET_PAIRS = \
1910 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1913 TOOLS_TARGET_PAIRS = \
1914 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1915 indepsw.adb<indepsw-gnu.adb
1917 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1919 THREADSLIB = -lpthread
1920 GNATLIB_SHARED = gnatlib-shared-dual
1922 LIBRARY_VERSION := $(LIB_VERSION)
1925 ifeq ($(strip $(filter-out hppa% linux%,$(arch) $(osys))),)
1926 LIBGNAT_TARGET_PAIRS = \
1927 a-intnam.ads<a-intnam-linux.ads \
1928 s-inmaop.adb<s-inmaop-posix.adb \
1929 s-intman.adb<s-intman-posix.adb \
1930 s-linux.ads<s-linux-hppa.ads \
1931 s-osinte.adb<s-osinte-posix.adb \
1932 s-osinte.ads<s-osinte-linux.ads \
1933 s-osprim.adb<s-osprim-posix.adb \
1934 s-taprop.adb<s-taprop-linux.adb \
1935 s-tasinf.ads<s-tasinf-linux.ads \
1936 s-tasinf.adb<s-tasinf-linux.adb \
1937 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1938 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1939 system.ads<system-linux-hppa.ads
1941 TOOLS_TARGET_PAIRS = \
1942 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1943 indepsw.adb<indepsw-gnu.adb
1945 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1947 THREADSLIB = -lpthread
1948 GNATLIB_SHARED = gnatlib-shared-dual
1950 LIBRARY_VERSION := $(LIB_VERSION)
1953 ifeq ($(strip $(filter-out sh4% linux%,$(arch) $(osys))),)
1954 LIBGNAT_TARGET_PAIRS = \
1955 a-intnam.ads<a-intnam-linux.ads \
1956 s-inmaop.adb<s-inmaop-posix.adb \
1957 s-intman.adb<s-intman-posix.adb \
1958 s-linux.ads<s-linux.ads \
1959 s-osinte.adb<s-osinte-posix.adb \
1960 s-osinte.ads<s-osinte-linux.ads \
1961 s-osprim.adb<s-osprim-posix.adb \
1962 s-taprop.adb<s-taprop-linux.adb \
1963 s-tasinf.ads<s-tasinf-linux.ads \
1964 s-tasinf.adb<s-tasinf-linux.adb \
1965 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1966 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1967 system.ads<system-linux-sh4.ads
1969 TOOLS_TARGET_PAIRS = \
1970 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1971 indepsw.adb<indepsw-linux.adb
1973 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1976 THREADSLIB = -lpthread
1977 GNATLIB_SHARED = gnatlib-shared-dual
1979 LIBRARY_VERSION := $(LIB_VERSION)
1982 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1983 LIBGNAT_TARGET_PAIRS = \
1984 a-exetim.adb<a-exetim-posix.adb \
1985 a-exetim.ads<a-exetim-default.ads \
1986 a-intnam.ads<a-intnam-linux.ads \
1987 a-numaux.ads<a-numaux-libc-x86.ads \
1988 a-synbar.adb<a-synbar-posix.adb \
1989 a-synbar.ads<a-synbar-posix.ads \
1990 s-inmaop.adb<s-inmaop-posix.adb \
1991 s-intman.adb<s-intman-posix.adb \
1992 s-linux.ads<s-linux.ads \
1993 s-mudido.adb<s-mudido-affinity.adb \
1994 s-osinte.ads<s-osinte-linux.ads \
1995 s-osinte.adb<s-osinte-posix.adb \
1996 s-osprim.adb<s-osprim-posix.adb \
1997 s-taprop.adb<s-taprop-linux.adb \
1998 s-tasinf.ads<s-tasinf-linux.ads \
1999 s-tasinf.adb<s-tasinf-linux.adb \
2000 s-tpopsp.adb<s-tpopsp-tls.adb \
2001 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2002 g-sercom.adb<g-sercom-linux.adb \
2003 system.ads<system-linux-ia64.ads \
2004 $(ATOMICS_TARGET_PAIRS) \
2005 $(ATOMICS_BUILTINS_TARGET_PAIRS)
2007 TOOLS_TARGET_PAIRS = \
2008 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2009 indepsw.adb<indepsw-gnu.adb
2011 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
2014 THREADSLIB=-lpthread -lrt
2015 GNATLIB_SHARED=gnatlib-shared-dual
2017 LIBRARY_VERSION := $(LIB_VERSION)
2020 ifeq ($(strip $(filter-out ia64% hp hpux%,$(targ))),)
2021 LIBGNAT_TARGET_PAIRS = \
2022 a-intnam.ads<a-intnam-hpux.ads \
2023 s-inmaop.adb<s-inmaop-posix.adb \
2024 s-intman.adb<s-intman-posix.adb \
2025 s-osinte.adb<s-osinte-posix.adb \
2026 s-osinte.ads<s-osinte-hpux.ads \
2027 s-osprim.adb<s-osprim-posix.adb \
2028 s-taprop.adb<s-taprop-posix.adb \
2029 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2030 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2031 system.ads<system-hpux-ia64.ads \
2032 $(ATOMICS_TARGET_PAIRS) \
2033 $(ATOMICS_BUILTINS_TARGET_PAIRS)
2035 TOOLS_TARGET_PAIRS = \
2036 mlib-tgt-specific.adb<mlib-tgt-specific-ia64-hpux.adb
2039 THREADSLIB=-lpthread
2040 GNATLIB_SHARED=gnatlib-shared-dual
2044 LIBRARY_VERSION := $(LIB_VERSION)
2047 ifeq ($(strip $(filter-out alpha% linux%,$(arch) $(osys))),)
2048 LIBGNAT_TARGET_PAIRS = \
2049 a-intnam.ads<a-intnam-linux.ads \
2050 s-inmaop.adb<s-inmaop-posix.adb \
2051 s-intman.adb<s-intman-posix.adb \
2052 s-linux.ads<s-linux-alpha.ads \
2053 s-osinte.ads<s-osinte-linux.ads \
2054 s-osinte.adb<s-osinte-posix.adb \
2055 s-osprim.adb<s-osprim-posix.adb \
2056 s-taprop.adb<s-taprop-linux.adb \
2057 s-tasinf.ads<s-tasinf-linux.ads \
2058 s-tasinf.adb<s-tasinf-linux.adb \
2059 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2060 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2061 system.ads<system-linux-alpha.ads \
2062 $(ATOMICS_TARGET_PAIRS) \
2063 $(ATOMICS_BUILTINS_TARGET_PAIRS)
2065 TOOLS_TARGET_PAIRS = \
2066 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2067 indepsw.adb<indepsw-gnu.adb
2069 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
2072 THREADSLIB=-lpthread
2073 GNATLIB_SHARED=gnatlib-shared-dual
2074 LIBRARY_VERSION := $(LIB_VERSION)
2077 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
2078 LIBGNAT_TARGET_PAIRS = \
2079 a-exetim.adb<a-exetim-posix.adb \
2080 a-exetim.ads<a-exetim-default.ads \
2081 a-intnam.ads<a-intnam-linux.ads \
2082 a-synbar.adb<a-synbar-posix.adb \
2083 a-synbar.ads<a-synbar-posix.ads \
2084 s-inmaop.adb<s-inmaop-posix.adb \
2085 s-intman.adb<s-intman-posix.adb \
2086 s-linux.ads<s-linux.ads \
2087 s-mudido.adb<s-mudido-affinity.adb \
2088 s-osinte.ads<s-osinte-linux.ads \
2089 s-osinte.adb<s-osinte-posix.adb \
2090 s-osprim.adb<s-osprim-posix.adb \
2091 s-taprop.adb<s-taprop-linux.adb \
2092 s-tasinf.ads<s-tasinf-linux.ads \
2093 s-tasinf.adb<s-tasinf-linux.adb \
2094 s-tpopsp.adb<s-tpopsp-tls.adb \
2095 s-taspri.ads<s-taspri-posix.ads \
2096 g-sercom.adb<g-sercom-linux.adb \
2097 $(ATOMICS_TARGET_PAIRS) \
2098 $(X86_64_TARGET_PAIRS) \
2099 system.ads<system-linux-x86_64.ads
2101 TOOLS_TARGET_PAIRS = \
2102 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2103 indepsw.adb<indepsw-gnu.adb
2105 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
2106 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
2108 THREADSLIB=-lpthread -lrt
2109 GNATLIB_SHARED=gnatlib-shared-dual
2111 LIBRARY_VERSION := $(LIB_VERSION)
2114 ifeq ($(strip $(filter-out darwin%,$(osys))),)
2115 SO_OPTS = -shared-libgcc
2116 LIBGNAT_TARGET_PAIRS = \
2117 a-intnam.ads<a-intnam-darwin.ads \
2118 i-forbla.adb<i-forbla-darwin.adb \
2119 s-inmaop.adb<s-inmaop-posix.adb \
2120 s-osinte.adb<s-osinte-darwin.adb \
2121 s-osinte.ads<s-osinte-darwin.ads \
2122 s-taprop.adb<s-taprop-posix.adb \
2123 s-taspri.ads<s-taspri-posix.ads \
2124 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
2126 ifeq ($(strip $(filter-out %86,$(arch))),)
2127 LIBGNAT_TARGET_PAIRS += \
2128 s-intman.adb<s-intman-susv3.adb \
2129 s-osprim.adb<s-osprim-darwin.adb \
2130 $(ATOMICS_TARGET_PAIRS)
2132 ifeq ($(strip $(MULTISUBDIR)),/x86_64)
2133 LIBGNAT_TARGET_PAIRS += \
2134 $(X86_64_TARGET_PAIRS) \
2135 system.ads<system-darwin-x86_64.ads
2138 LIBGNAT_TARGET_PAIRS += \
2139 $(X86_TARGET_PAIRS) \
2140 system.ads<system-darwin-x86.ads
2144 ifeq ($(strip $(filter-out %x86_64,$(arch))),)
2145 LIBGNAT_TARGET_PAIRS += \
2146 s-intman.adb<s-intman-susv3.adb \
2147 s-osprim.adb<s-osprim-darwin.adb \
2148 $(ATOMICS_TARGET_PAIRS)
2150 ifeq ($(strip $(MULTISUBDIR)),/i386)
2151 LIBGNAT_TARGET_PAIRS += \
2152 $(X86_TARGET_PAIRS) \
2153 system.ads<system-darwin-x86.ads
2156 LIBGNAT_TARGET_PAIRS += \
2157 $(X86_64_TARGET_PAIRS) \
2158 system.ads<system-darwin-x86_64.ads
2162 ifeq ($(strip $(filter-out powerpc%,$(arch))),)
2163 LIBGNAT_TARGET_PAIRS += \
2164 s-intman.adb<s-intman-posix.adb \
2165 s-osprim.adb<s-osprim-posix.adb \
2166 a-numaux.ads<a-numaux-darwin.ads \
2167 a-numaux.adb<a-numaux-darwin.adb
2169 ifeq ($(strip $(MULTISUBDIR)),/ppc64)
2170 LIBGNAT_TARGET_PAIRS += \
2171 system.ads<system-darwin-ppc64.ads
2174 LIBGNAT_TARGET_PAIRS += \
2175 system.ads<system-darwin-ppc.ads
2179 TOOLS_TARGET_PAIRS = \
2180 mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb \
2181 indepsw.adb<indepsw-darwin.adb
2184 GNATLIB_SHARED = gnatlib-shared-darwin
2187 LIBRARY_VERSION := $(LIB_VERSION)
2192 ifneq ($(EH_MECHANISM),)
2193 LIBGNAT_TARGET_PAIRS += a-exexpr.adb<a-exexpr$(EH_MECHANISM).adb
2194 EXTRA_LIBGNAT_SRCS+=raise$(EH_MECHANISM).c
2195 EXTRA_LIBGNAT_OBJS+=raise$(EH_MECHANISM).o
2198 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
2199 # explicitly already. The base files (a-except.ad?) are used only for building
2200 # the compiler and other basic tools.
2201 # These base versions lack Ada 2005 additions which would cause bootstrap
2202 # problems if included in the compiler and other basic tools.
2204 ifeq ($(filter a-except%,$(LIBGNAT_TARGET_PAIRS)),)
2205 LIBGNAT_TARGET_PAIRS += \
2206 a-except.ads<a-except-2005.ads \
2207 a-except.adb<a-except-2005.adb
2210 # The runtime library for gnat comprises two directories. One contains the
2211 # Ada source files that the compiler (gnat1) needs -- these files are listed
2212 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
2213 # corresponding .ali files for the parts written in Ada, libgnat.a for
2214 # the parts of the runtime written in C, and libgthreads.a for the pthreads
2215 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
2216 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
2217 # go into the directory. The pthreads emulation is built in the threads
2218 # subdirectory and copied.
2219 LIBGNAT_SRCS = adadecode.c adadecode.h adaint.c adaint.h \
2220 argv.c cio.c cstreams.c errno.c exit.c cal.c ctrl_c.c env.c env.h \
2221 arit64.c raise.h raise.c sysdep.c aux-io.c init.c initialize.c \
2222 locales.c seh_init.c final.c tracebak.c tb-alvms.c tb-alvxw.c \
2223 tb-gcc.c expect.c mkdir.c socket.c gsocket.h targext.c $(EXTRA_LIBGNAT_SRCS)
2225 LIBGNAT_OBJS = adadecode.o adaint.o argv.o cio.o cstreams.o ctrl_c.o \
2226 errno.o exit.o env.o raise.o sysdep.o aux-io.o init.o initialize.o \
2227 locales.o seh_init.o cal.o arit64.o final.o tracebak.o expect.o \
2228 mkdir.o socket.o targext.o $(EXTRA_LIBGNAT_OBJS)
2230 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2231 # the library installation will change and there will be a
2232 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2233 # from ADA_INCLUDE_SRCS.
2235 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2236 # the following include file:
2238 include $(fsrcdir)/ada/Makefile.rtl
2240 GNATRTL_LINEARALGEBRA_OBJS = i-forbla.o i-forlap.o
2242 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
2243 $(GNATRTL_LINEARALGEBRA_OBJS) memtrack.o
2245 # Default run time files
2248 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2249 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2250 sequenio.ads system.ads memtrack.adb \
2251 a-[a-o]*.adb a-[p-z]*.adb a-[a-o]*.ads a-[p-z]*.ads g-*.ad? i-*.ad? \
2252 s-[a-o]*.adb s-[p-z]*.adb s-[a-o]*.ads s-[p-z]*.ads
2254 LIBGNAT=../$(RTSDIR)/libgnat.a
2256 TOOLS_FLAGS_TO_PASS= \
2258 "CFLAGS=$(CFLAGS)" \
2259 "LDFLAGS=$(LDFLAGS)" \
2260 "ADAFLAGS=$(ADAFLAGS)" \
2261 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
2262 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
2263 "libsubdir=$(libsubdir)" \
2264 "exeext=$(exeext)" \
2265 "fsrcdir=$(fsrcdir)" \
2266 "srcdir=$(fsrcdir)" \
2267 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
2268 "GNATMAKE=$(GNATMAKE)" \
2269 "GNATLINK=$(GNATLINK)" \
2270 "GNATBIND=$(GNATBIND)"
2272 GCC_LINK=$(CC) $(GCC_LINK_FLAGS) $(ADA_INCLUDES)
2274 # Build directory for the tools. Let's copy the target-dependent
2275 # sources using the same mechanism as for gnatlib. The other sources are
2276 # accessed using the vpath directive below
2277 # Note: dummy target, stamp-tools is mainly handled by gnattools.
2280 touch ../stamp-tools
2282 # when compiling the tools, the runtime has to be first on the path so that
2283 # it hides the runtime files lying with the rest of the sources
2284 ifeq ($(TOOLSCASE),native)
2285 vpath %.ads ../$(RTSDIR) ../
2286 vpath %.adb ../$(RTSDIR) ../
2287 vpath %.c ../$(RTSDIR) ../
2288 vpath %.h ../$(RTSDIR) ../
2291 # in the cross tools case, everything is compiled with the native
2292 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2293 ifeq ($(TOOLSCASE),cross)
2300 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
2301 # reasons: gnatmake should be built with a recent compiler, a recent compiler
2302 # may not generate ALI files compatible with an old gnatmake so it is important
2303 # to be able to build gnatmake without a version of gnatmake around. Once
2304 # everything has been compiled once, gnatmake can be recompiled with itself
2305 # (see target gnattools1-re)
2306 gnattools1: ../stamp-tools ../stamp-gnatlib-$(RTSDIR)
2307 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2309 ../../gnatmake$(exeext) ../../gnatlink$(exeext)
2311 # gnatmake/link can be built with recent gnatmake/link if they are available.
2312 # This is especially convenient for building cross tools or for rebuilding
2313 # the tools when the original bootstrap has already be done.
2314 gnattools1-re: ../stamp-tools
2315 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2316 TOOLSCASE=cross INCLUDES="" gnatmake-re gnatlink-re
2318 # these tools are built with gnatmake & are common to native and cross
2319 gnattools2: ../stamp-tools
2320 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2321 TOOLSCASE=native common-tools $(EXTRA_GNATTOOLS)
2323 # those tools are only built for the cross version
2324 gnattools4: ../stamp-tools
2325 ifeq ($(ENABLE_VXADDR2LINE),true)
2326 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2327 TOOLSCASE=cross top_buildir=../../.. \
2328 ../../vxaddr2line$(exeext)
2331 common-tools: ../stamp-tools
2332 $(GNATMAKE) -j0 -c -b $(ADA_INCLUDES) \
2333 --GNATBIND="$(GNATBIND)" --GCC="$(CC) $(ALL_ADAFLAGS)" \
2334 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2335 gnatclean -bargs $(ADA_INCLUDES) $(GNATBIND_FLAGS)
2336 $(GNATLINK) -v gnatcmd -o ../../gnat$(exeext) \
2337 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2338 $(GNATLINK) -v gnatchop -o ../../gnatchop$(exeext) \
2339 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2340 $(GNATLINK) -v gnatkr -o ../../gnatkr$(exeext) \
2341 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2342 $(GNATLINK) -v gnatls -o ../../gnatls$(exeext) \
2343 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2344 $(GNATLINK) -v gnatprep -o ../../gnatprep$(exeext) \
2345 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2346 $(GNATLINK) -v gnatxref -o ../../gnatxref$(exeext) \
2347 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2348 $(GNATLINK) -v gnatfind -o ../../gnatfind$(exeext) \
2349 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2350 $(GNATLINK) -v gnatname -o ../../gnatname$(exeext) \
2351 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2352 $(GNATLINK) -v gnatclean -o ../../gnatclean$(exeext) \
2353 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2355 ../../gnatsym$(exeext): ../stamp-tools
2356 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
2357 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
2358 $(GNATLINK) -v gnatsym -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2360 ../../gnatdll$(exeext): ../stamp-tools
2361 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
2362 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatdll
2363 $(GNATLINK) -v gnatdll -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2365 ../../vxaddr2line$(exeext): ../stamp-tools targext.o
2366 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
2367 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
2368 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(GCC_LINK)" targext.o $(CLIB)
2370 gnatmake-re: ../stamp-tools link.o targext.o
2371 $(GNATMAKE) -j0 $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
2372 $(GNATMAKE) -j0 -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
2373 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
2374 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
2375 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2377 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2378 # with the former version of gnatlink itself which cannot override itself.
2379 # gnatlink-re cannot be run at the same time as gnatmake-re, hence the
2381 gnatlink-re: ../stamp-tools link.o targext.o gnatmake-re
2382 $(GNATMAKE) -j0 -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
2383 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
2384 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
2385 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2386 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
2388 # Needs to be built with CC=gcc
2389 # Since the RTL should be built with the latest compiler, remove the
2390 # stamp target in the parent directory whenever gnat1 is rebuilt
2392 # Likewise for the tools
2393 ../../gnatmake$(exeext): $(P) b_gnatm.o link.o targext.o $(GNATMAKE_OBJS)
2394 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
2397 ../../gnatlink$(exeext): $(P) b_gnatl.o link.o targext.o $(GNATLINK_OBJS)
2398 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
2401 ../stamp-gnatlib-$(RTSDIR):
2402 @if [ ! -f stamp-gnatlib-$(RTSDIR) ] ; \
2404 $(ECHO) You must first build the GNAT library: make gnatlib; \
2410 install-gnatlib: ../stamp-gnatlib-$(RTSDIR)
2411 # Create the directory before deleting it, in case the directory is
2412 # a list of directories (as it may be on VMS). This ensures we are
2413 # deleting the right one.
2414 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2415 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2416 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2417 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2418 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2419 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2420 for file in $(RTSDIR)/*.ali; do \
2421 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2423 -cd $(RTSDIR); for file in *$(arext);do \
2424 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2425 $(RANLIB_FOR_TARGET) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
2427 -$(foreach file, $(EXTRA_ADALIB_FILES), \
2428 $(INSTALL_DATA_DATE) $(RTSDIR)/$(file) $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
2430 # Install the shared libraries, if any, using $(INSTALL) instead
2431 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2432 # for shared libraries on some targets, e.g. on HP-UX where the x
2433 # permission is required.
2434 # Also install the .dSYM directories if they exist (these directories
2435 # contain the debug information for the shared libraries on darwin)
2436 for file in gnat gnarl; do \
2437 if [ -f $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
2438 $(INSTALL) $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2439 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2441 if [ -f $(RTSDIR)/lib$${file}$(soext) ]; then \
2442 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2443 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
2445 if [ -d $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM ]; then \
2446 $(CP) -r $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM \
2447 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2450 # This copy must be done preserving the date on the original file.
2451 for file in $(RTSDIR)/*.ad?; do \
2452 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
2454 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
2455 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
2457 ../stamp-gnatlib2-$(RTSDIR):
2458 $(RM) $(RTSDIR)/s-*.ali
2459 $(RM) $(RTSDIR)/s-*$(objext)
2460 $(RM) $(RTSDIR)/a-*.ali
2461 $(RM) $(RTSDIR)/a-*$(objext)
2462 $(RM) $(RTSDIR)/*.ali
2463 $(RM) $(RTSDIR)/*$(objext)
2464 $(RM) $(RTSDIR)/*$(arext)
2465 $(RM) $(RTSDIR)/*$(soext)
2466 touch ../stamp-gnatlib2-$(RTSDIR)
2467 $(RM) ../stamp-gnatlib-$(RTSDIR)
2469 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
2470 # successive target commands. Although the Gnu make documentation
2471 # implies this is true on all systems, I suspect it may not be, So care
2472 # has been taken to allow a sed script to look for ";)" and substitue
2473 # for ";" the appropriate character in the range of lines below
2474 # beginning with "GNULLI Begin" and ending with "GNULLI End"
2476 # GNULLI Begin ###########################################################
2478 ../stamp-gnatlib1-$(RTSDIR): Makefile ../stamp-gnatlib2-$(RTSDIR)
2481 $(CHMOD) u+w $(RTSDIR)
2482 # Copy target independent sources
2483 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
2484 $(LN_S) $(fsrcpfx)ada/$(f) $(RTSDIR) ;) true
2485 # Remove files to be replaced by target dependent sources
2486 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2487 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR))))
2488 for f in $(RTSDIR)/*-*-*.ads $(RTSDIR)/*-*-*.adb; do \
2490 $(RTSDIR)/s-stratt-*) ;; \
2494 # Copy new target dependent sources
2495 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2496 $(LN_S) $(fsrcpfx)ada/$(word 2,$(subst <, ,$(PAIR))) \
2497 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)));)
2499 $(CP) $(srcdir)/tsystem.h $(RTSDIR)
2500 # Copy generated target dependent sources
2501 $(RM) $(RTSDIR)/s-oscons.ads
2502 (cd $(RTSDIR); $(LN_S) ../s-oscons.ads s-oscons.ads)
2503 $(RM) ../stamp-gnatlib-$(RTSDIR)
2504 touch ../stamp-gnatlib1-$(RTSDIR)
2506 # GNULLI End #############################################################
2508 # Don't use semicolon separated shell commands that involve list expansions.
2509 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
2510 # line lengths in excess of 256 characters.
2511 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
2512 # is guaranteed to overflow the buffer.
2514 gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../stamp-gnatlib2-$(RTSDIR)
2515 $(MAKE) -C $(RTSDIR) \
2516 CC="`echo \"$(GCC_FOR_TARGET)\" \
2517 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2518 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2519 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
2520 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2522 -f ../Makefile $(LIBGNAT_OBJS)
2523 $(MAKE) -C $(RTSDIR) \
2524 CC="`echo \"$(GCC_FOR_TARGET)\" \
2525 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2527 CFLAGS="$(GNATLIBCFLAGS)" \
2528 ADAFLAGS="$(GNATLIBFLAGS)" \
2529 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2533 $(RM) $(RTSDIR)/libgnat$(arext) $(RTSDIR)/libgnarl$(arext)
2534 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnat$(arext) \
2535 $(addprefix $(RTSDIR)/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
2536 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnat$(arext)
2537 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnarl$(arext) \
2538 $(addprefix $(RTSDIR)/,$(GNATRTL_TASKING_OBJS))
2539 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnarl$(arext)
2540 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnala$(arext) \
2541 $(addprefix $(RTSDIR)/,$(GNATRTL_LINEARALGEBRA_OBJS))
2542 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnala$(arext)
2543 ifeq ($(GMEM_LIB),gmemlib)
2544 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgmem$(arext) \
2545 $(RTSDIR)/memtrack.o
2546 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgmem$(arext)
2548 $(CHMOD) a-wx $(RTSDIR)/*.ali
2549 touch ../stamp-gnatlib-$(RTSDIR)
2551 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2552 gnatlib-shared-default:
2553 $(MAKE) $(FLAGS_TO_PASS) \
2554 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2555 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2556 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2557 MULTISUBDIR="$(MULTISUBDIR)" \
2558 THREAD_KIND="$(THREAD_KIND)" \
2560 $(RM) $(RTSDIR)/libgna*$(soext)
2561 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2562 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared $(GNATLIBCFLAGS) \
2563 $(PICFLAG_FOR_TARGET) \
2564 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2565 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2566 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2568 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2569 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared $(GNATLIBCFLAGS) \
2570 $(PICFLAG_FOR_TARGET) \
2571 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2572 $(GNATRTL_TASKING_OBJS) \
2573 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2575 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2577 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2580 gnatlib-shared-dual:
2581 $(MAKE) $(FLAGS_TO_PASS) \
2582 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2583 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2584 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2585 MULTISUBDIR="$(MULTISUBDIR)" \
2586 THREAD_KIND="$(THREAD_KIND)" \
2587 gnatlib-shared-default
2588 $(MV) $(RTSDIR)/libgna*$(soext) .
2589 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2590 $(MAKE) $(FLAGS_TO_PASS) \
2591 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2592 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2593 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2594 MULTISUBDIR="$(MULTISUBDIR)" \
2595 THREAD_KIND="$(THREAD_KIND)" \
2597 $(MV) libgna*$(soext) $(RTSDIR)
2599 gnatlib-shared-dual-win32:
2600 $(MAKE) $(FLAGS_TO_PASS) \
2601 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2602 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2603 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2604 MULTISUBDIR="$(MULTISUBDIR)" \
2605 THREAD_KIND="$(THREAD_KIND)" \
2606 gnatlib-shared-win32
2607 $(MV) $(RTSDIR)/libgna*$(soext) .
2608 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2609 $(MAKE) $(FLAGS_TO_PASS) \
2610 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2611 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2612 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2613 MULTISUBDIR="$(MULTISUBDIR)" \
2614 THREAD_KIND="$(THREAD_KIND)" \
2616 $(MV) libgna*$(soext) $(RTSDIR)
2618 # ??? we need to add the option to support auto-import of arrays/records to
2619 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2620 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2622 gnatlib-shared-win32:
2623 $(MAKE) $(FLAGS_TO_PASS) \
2624 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2625 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2626 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2627 MULTISUBDIR="$(MULTISUBDIR)" \
2628 THREAD_KIND="$(THREAD_KIND)" \
2630 $(RM) $(RTSDIR)/libgna*$(soext)
2631 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2632 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared -shared-libgcc \
2633 $(PICFLAG_FOR_TARGET) \
2634 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2635 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2636 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
2637 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2638 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared -shared-libgcc \
2639 $(PICFLAG_FOR_TARGET) \
2640 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2641 $(GNATRTL_TASKING_OBJS) \
2642 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2643 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2645 gnatlib-shared-darwin:
2646 $(MAKE) $(FLAGS_TO_PASS) \
2647 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2648 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2649 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) -fno-common" \
2650 MULTISUBDIR="$(MULTISUBDIR)" \
2651 THREAD_KIND="$(THREAD_KIND)" \
2653 $(RM) $(RTSDIR)/libgnat$(soext) $(RTSDIR)/libgnarl$(soext)
2654 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2655 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib $(PICFLAG_FOR_TARGET) \
2656 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2657 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2659 -Wl,-install_name,@rpath/libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2661 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2662 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib $(PICFLAG_FOR_TARGET) \
2663 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2664 $(GNATRTL_TASKING_OBJS) \
2666 -Wl,-install_name,@rpath/libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2667 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2668 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2670 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2672 cd $(RTSDIR); dsymutil libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2673 cd $(RTSDIR); dsymutil libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext)
2676 $(MAKE) $(FLAGS_TO_PASS) \
2677 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2678 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2679 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2680 MULTISUBDIR="$(MULTISUBDIR)" \
2681 THREAD_KIND="$(THREAD_KIND)" \
2683 $(RM) $(RTSDIR)/libgna*$(soext)
2685 ../../gnatsym -s SYMVEC_$$$$.opt \
2686 $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) && \
2687 ../../xgcc -g -B../../ -shared -shared-libgcc \
2688 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
2689 sys\$$library:trace.exe \
2690 --for-linker=/noinform \
2691 --for-linker=SYMVEC_$$$$.opt \
2692 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2694 ../../gnatsym -s SYMVEC_$$$$.opt \
2695 $(GNATRTL_TASKING_OBJS) && \
2696 ../../xgcc -g -B../../ -shared -shared-libgcc \
2697 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2698 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2699 sys\$$library:trace.exe \
2700 --for-linker=/noinform \
2701 --for-linker=SYMVEC_$$$$.opt \
2702 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2705 $(MAKE) $(FLAGS_TO_PASS) \
2706 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2707 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2708 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2709 MULTISUBDIR="$(MULTISUBDIR)" \
2710 THREAD_KIND="$(THREAD_KIND)" \
2711 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" \
2715 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="" \
2716 THREAD_KIND="$(THREAD_KIND)" ../stamp-gnatlib1-$(RTSDIR)
2717 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2718 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2719 $(MAKE) $(FLAGS_TO_PASS) \
2721 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2722 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2723 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2724 MULTISUBDIR="$(MULTISUBDIR)" \
2725 THREAD_KIND="$(THREAD_KIND)" \
2726 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" gnatlib
2729 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="-gcc" \
2730 THREAD_KIND="$(THREAD_KIND)" ../stamp-gnatlib1-$(RTSDIR)
2731 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2732 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2733 $(MAKE) $(FLAGS_TO_PASS) \
2734 EH_MECHANISM="-gcc" \
2735 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2736 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2737 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2738 MULTISUBDIR="$(MULTISUBDIR)" \
2739 THREAD_KIND="$(THREAD_KIND)" \
2740 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" gnatlib
2742 # Compiling object files from source files.
2744 # Note that dependencies on obstack.h are not written
2745 # because that file is not part of GCC.
2746 # Dependencies on gvarargs.h are not written
2747 # because all that file does, when not compiling with GCC,
2748 # is include the system varargs.h.
2750 b_gnatl.adb : $(GNATLINK_OBJS)
2751 $(GNATBIND) $(ADA_INCLUDES) -o b_gnatl.adb gnatlink.ali
2753 b_gnatl.o : b_gnatl.adb
2754 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) -gnatws -gnatyN \
2757 b_gnatm.adb : $(GNATMAKE_OBJS)
2758 $(GNATBIND) $(ADA_INCLUDES) -o b_gnatm.adb gnatmake.ali
2760 b_gnatm.o : b_gnatm.adb
2761 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) -gnatws -gnatyN \
2764 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2765 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2769 # force no sibling call optimization on s-traceb.o so the number of stack
2770 # frames to be skipped when computing a call chain is not modified by
2773 s-traceb.o : s-traceb.adb s-traceb.ads
2774 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2775 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
2777 # force debugging information on s-tasdeb.o so that it is always
2778 # possible to set conditional breakpoints on tasks.
2780 s-tasdeb.o : s-tasdeb.adb s-tasdeb.ads
2781 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2784 # force debugging information on s-vaflop.o so that it is always
2785 # possible to call the VAX float debug print routines.
2786 # force at least -O so that the inline assembly works.
2788 s-vaflop.o : s-vaflop.adb s-vaflop.ads
2789 $(CC) -c -O $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
2792 # force no function reordering on a-except.o because of the exclusion bounds
2793 # mechanism (see the source file for more detailed information).
2794 # force debugging information on a-except.o so that it is always
2795 # possible to set conditional breakpoints on exceptions.
2796 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2798 a-except.o : a-except.adb a-except.ads
2799 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O1 -fno-inline \
2800 $(NO_REORDER_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
2802 # compile s-excdeb.o without optimization and with debug info to let the
2803 # debugger set breakpoints and inspect subprogram parameters on exception
2806 s-excdeb.o : s-excdeb.adb s-excdeb.ads s-except.ads
2807 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2810 # force debugging information on s-assert.o so that it is always
2811 # possible to set breakpoint on assert failures.
2813 s-assert.o : s-assert.adb s-assert.ads
2814 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
2817 # force debugging information on a-tags.o so that the debugger can find
2818 # the description of Ada.Tags.Type_Specific_Data.
2820 a-tags.o : a-tags.adb a-tags.ads
2821 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
2824 # need to keep the frame pointer in this file to pop the stack properly on
2826 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2827 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
2828 $(INCLUDES) -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2830 adadecode.o : adadecode.c adadecode.h
2834 deftarg.o : deftarg.c
2836 exit.o : adaint.h exit.c
2839 locales.o : locales.c
2841 socket.o : socket.c gsocket.h
2843 raise.o : raise.c raise.h
2844 sigtramp-ppcvxw.o : sigtramp-ppcvxw.c sigtramp.h
2845 vx_stack_info.o : vx_stack_info.c
2847 raise-gcc.o : raise-gcc.c raise.h
2848 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2849 -iquote $(srcdir) -iquote $(srcdir)/../libgcc \
2850 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2853 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2854 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2856 init.o : init.c adaint.h raise.h
2857 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2858 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2860 initialize.o : initialize.c raise.h
2861 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2862 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2865 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2866 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
2869 targext.o : targext.c
2870 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2872 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
2875 # In GNU Make, ignore whether `stage*' exists.
2876 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2877 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4