1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2009 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 3, or (at your option)
11 #GCC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING3. If not see
18 #<http://www.gnu.org/licenses/>.
20 # The makefile built from this file lives in the language subdirectory.
21 # Its purpose is to provide support for:
23 # 1) recursion where necessary, and only then (building .o's), and
24 # 2) building and debugging cc1 from the language subdirectory, and
27 # The parent makefile handles all other chores, with help from the
28 # language makefile fragment, of course.
30 # The targets for external use are:
31 # all, TAGS, ???mostlyclean, ???clean.
33 # This makefile will only work with Gnu make.
34 # The rules are written assuming a minimum subset of tools are available:
37 # MAKE: Only Gnu make will work.
38 # MV: Must accept (at least) one, maybe wildcard, source argument,
39 # a file or directory destination, and support creation/
40 # modification date preservation. Gnu mv -f works.
41 # RM: Must accept an arbitrary number of space separated file
42 # arguments, or one wildcard argument. Gnu rm works.
43 # RMDIR: Must delete a directory and all its contents. Gnu rm -rf works.
44 # ECHO: Must support command line redirection. Any Unix-like
45 # shell will typically provide this, otherwise a custom version
46 # is trivial to write.
48 # MKDIR: Gnu mkdir works.
49 # CHMOD: Gnu chmod works.
50 # true: Does nothing and returns a normal successful return code.
51 # pwd: Prints the current directory on stdout.
52 # cd: Change directory.
55 # BISON: Gnu bison works.
56 # FLEX: Gnu flex works.
57 # Other miscellaneous tools for obscure targets.
59 # Suppress smart makes who think they know how to automake Yacc files
62 # Variables that exist for you to override.
63 # See below for how to change them for certain systems.
65 # Various ways of specifying flags for compilations:
66 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
67 # BOOT_CFLAGS is the value of CFLAGS to pass
68 # to the stage2 and stage3 compilations
70 BOOT_CFLAGS = -O $(CFLAGS)
71 # These exists to be overridden by the t-* files, respectively.
92 RANLIB_FLAGS = @ranlib_flags@
96 COMPILER_FLAGS = $(CFLAGS)
99 PWD_COMMAND = $${PWDCMD-pwd}
100 # How to copy preserving the date
101 INSTALL_DATA_DATE = cp -p
105 GNATBIND_FLAGS = -static -x
107 ADAFLAGS = -W -Wall -gnatpg -gnata
108 SOME_ADAFLAGS =-gnata
109 FORCE_DEBUG_ADAFLAGS = -g
110 GNATLIBFLAGS = -gnatpg -nostdinc
111 GNATLIBCFLAGS = -g -O2
112 GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
114 ALL_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(ADAFLAGS)
115 MOST_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(SOME_ADAFLAGS)
120 SYMDEPS = $(LIBINTL_DEP)
121 OUTPUT_OPTION = @OUTPUT_OPTION@
130 # Define this as & to perform parallel make on a Sequent.
131 # Note that this has some bugs, and it seems currently necessary
132 # to compile all the gen* files first by hand to avoid erroneous results.
135 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
137 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
138 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS)
140 # Tools to use when building a cross-compiler.
141 # These are used because `configure' appends `cross-make'
142 # to the makefile when making a cross-compiler.
144 # We don't use cross-make. Instead we use the tools from the build tree,
145 # if they are available.
146 # program_transform_name and objdir are set by configure.in.
147 program_transform_name =
150 target_alias=@target_alias@
152 xmake_file = @xmake_file@
153 tmake_file = @tmake_file@
154 host_canonical=@host@
155 target_cpu_default=@target_cpu_default@
156 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
157 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
159 # Directory where sources are, from where we are.
160 VPATH = $(srcdir)/ada
162 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
163 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
164 fcurdir := $(shell ${PWD_COMMAND})
165 fcurpfx := $(shell ${PWD_COMMAND})/
167 # Top build directory, relative to here.
170 # Internationalization library.
172 LIBINTL_DEP = @LIBINTL_DEP@
174 # Any system libraries needed just for GNAT.
175 SYSLIBS = @GNAT_LIBEXC@
177 # List of extra object files linked in with various programs.
178 EXTRA_GNATTOOLS_OBJS = ../../prefix.o ../../version.o
180 # List of target dependent sources, overridden below as necessary
183 # Type of tools build we are doing; default is not compiling tools.
188 RTSDIR = rts$(subst /,_,$(MULTISUBDIR))
190 # End of variables for you to override.
194 # This tells GNU Make version 3 not to put all variables in the environment.
198 ifneq ($(tmake_file),)
199 include $(tmake_file)
203 ifneq ($(xmake_file),)
204 include $(xmake_file)
207 # Now figure out from those variables how to compile and link.
209 all.indirect: Makefile ../gnat1$(exeext)
211 # IN_GCC distinguishes between code compiled into GCC itself and other
212 # programs built during a bootstrap.
213 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
214 # compiler which does not use the native libraries and headers.
215 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
217 # This is the variable actually used when we compile.
218 LOOSE_CFLAGS = `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
219 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(T_CFLAGS) $(LOOSE_CFLAGS)
222 ALL_CPPFLAGS = $(CPPFLAGS)
224 # Used with $(COMPILER).
225 ALL_COMPILERFLAGS = $(ALL_CFLAGS)
227 # This is where we get libiberty.a from.
228 LIBIBERTY = ../../libiberty/libiberty.a
230 # How to link with both our special library facilities
231 # and the system's installed libraries.
232 LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
233 LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
234 # Default is no TGT_LIB; one might be passed down or something
236 TOOLS_LIBS = $(EXTRA_GNATTOOLS_OBJS) targext.o link.o $(LIBGNAT) ../../../libiberty/libiberty.a $(SYSLIBS) $(TGT_LIB)
238 # Specify the directories to be searched for header files.
239 # Both . and srcdir are used, in that order,
240 # so that tm.h and config.h will be found in the compilation
241 # subdirectory rather than in the source directory.
242 INCLUDES = -I- -I. -I.. -I$(srcdir)/ada -I$(srcdir) -I$(srcdir)/config \
243 -I$(srcdir)/../include
245 ADA_INCLUDES = -I- -I. -I$(srcdir)/ada
247 INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir)/ada \
248 -I$(fsrcdir)/../include -I$(fsrcdir)
249 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada
251 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
254 # Say how to compile Ada programs.
255 .SUFFIXES: .ada .adb .ads .asm
257 # Always use -I$(srcdir)/config when compiling.
259 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
262 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
263 $(INCLUDES) $< $(OUTPUT_OPTION)
266 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
269 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
271 # how to regenerate this file
272 Makefile: ../config.status $(srcdir)/ada/gcc-interface/Makefile.in $(srcdir)/ada/Makefile.in $(srcdir)/version.c
274 LANGUAGES="$(CONFIG_LANGUAGES)" \
276 CONFIG_FILES="ada/gcc-interface/Makefile ada/Makefile" $(SHELL) config.status
278 # This tells GNU make version 3 not to export all the variables
279 # defined in this file into the environment.
282 # Lists of files for various purposes.
284 GNATLINK_OBJS = gnatlink.o \
285 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
286 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
287 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
288 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
289 types.o validsw.o widechar.o
291 GNATMAKE_OBJS = a-except.o ali.o ali-util.o s-casuti.o \
292 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
293 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
294 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
295 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
296 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o \
297 output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o \
298 prj-conf.o prj-pp.o \
299 prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o prj-proc.o prj-strt.o \
300 prj-tree.o prj-util.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
301 scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o sinfo.o sinput.o \
302 sinput-c.o sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o \
303 validsw.o switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o \
304 uintp.o uname.o urealp.o usage.o widechar.o \
305 $(EXTRA_GNATMAKE_OBJS)
307 # Convert the target variable into a space separated list of architecture,
308 # manufacturer, and operating system and assign each of those to its own
311 host:=$(subst -, ,$(host_canonical))
312 targ:=$(subst -, ,$(target))
313 arch:=$(word 1,$(targ))
314 ifeq ($(words $(targ)),2)
316 osys:=$(word 2,$(targ))
318 manu:=$(word 2,$(targ))
319 osys:=$(word 3,$(targ))
322 # Make arch match the current multilib so that the RTS selection code
323 # picks up the right files. For a given target this must be coherent
324 # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*.
326 ifeq ($(strip $(filter-out %x86_64, $(arch))),)
327 ifeq ($(strip $(MULTISUBDIR)),/32)
332 # ???: handle more multilib targets
334 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
335 # The members of each pair must be separated by a '<' and no whitespace.
336 # Each pair must be separated by some amount of whitespace from the following
341 LIBGNAT_TARGET_PAIRS = \
342 a-intnam.ads<a-intnam-dummy.ads \
343 s-inmaop.adb<s-inmaop-dummy.adb \
344 s-intman.adb<s-intman-dummy.adb \
345 s-osinte.ads<s-osinte-dummy.ads \
346 s-osprim.adb<s-osprim-posix.adb \
347 s-taprop.adb<s-taprop-dummy.adb \
348 s-taspri.ads<s-taspri-dummy.ads
350 # When using the GCC exception handling mechanism, we need to use an
351 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
355 # Default shared object option. Note that we rely on the fact that the "soname"
356 # option will always be present and last in this flag, so that we can have
357 # $(SO_OPTS)libgnat-x.xx
359 SO_OPTS = -Wl,-soname,
361 # Default gnatlib-shared target.
362 # By default, equivalent to gnatlib.
363 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
364 # target when supported.
365 GNATLIB_SHARED = gnatlib
367 # default value for gnatmake's target dependent file
370 # By default, do not distribute prefix.o (in libgccprefix), since it is only
371 # needed by external GNAT tools such as gnatdist and Glide.
372 # Override this variable on native platforms when needed.
375 # To avoid duplicate code, use this variable to set PREFIX_OBJS when needed:
376 PREFIX_REAL_OBJS = ../prefix.o \
377 ../../libiberty/concat.o \
378 ../../libiberty/xmalloc.o \
379 ../../libiberty/xstrdup.o \
380 ../../libiberty/xexit.o
382 # By default, build socket support units. On platforms that do not support
383 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
384 # to LIBGNAT_TARGET_PAIRS.
386 GNATRTL_SOCKETS_OBJS = g-soccon$(objext) g-socket$(objext) g-socthi$(objext) \
387 g-soliop$(objext) g-sothco$(objext) g-sttsne$(objext)
389 DUMMY_SOCKETS_TARGET_PAIRS = \
390 g-socket.adb<g-socket-dummy.adb \
391 g-socket.ads<g-socket-dummy.ads \
392 g-socthi.adb<g-socthi-dummy.adb \
393 g-socthi.ads<g-socthi-dummy.ads \
394 g-sothco.adb<g-sothco-dummy.adb \
395 g-sothco.ads<g-sothco-dummy.ads \
396 g-sttsne.ads<g-sttsne-dummy.ads
398 LIB_VERSION = $(strip $(shell grep ' Library_Version :' $(fsrcpfx)ada/gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
400 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
401 # $(strip STRING) removes leading and trailing spaces from STRING.
402 # If what's left is null then it's a match.
404 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
405 LIBGNAT_TARGET_PAIRS = \
406 a-intnam.ads<a-intnam-vxworks.ads \
407 a-numaux.ads<a-numaux-vxworks.ads \
408 s-inmaop.adb<s-inmaop-posix.adb \
409 s-interr.adb<s-interr-hwint.adb \
410 s-intman.ads<s-intman-vxworks.ads \
411 s-intman.adb<s-intman-vxworks.adb \
412 s-osinte.adb<s-osinte-vxworks.adb \
413 s-osinte.ads<s-osinte-vxworks.ads \
414 s-osprim.adb<s-osprim-vxworks.adb \
415 s-parame.ads<s-parame-vxworks.ads \
416 s-parame.adb<s-parame-vxworks.adb \
417 s-stchop.ads<s-stchop-limit.ads \
418 s-stchop.adb<s-stchop-vxworks.adb \
419 s-taprop.adb<s-taprop-vxworks.adb \
420 s-tasinf.ads<s-tasinf-vxworks.ads \
421 s-taspri.ads<s-taspri-vxworks.ads \
422 s-tpopsp.adb<s-tpopsp-vxworks.adb \
423 s-vxwork.ads<s-vxwork-m68k.ads \
424 g-socthi.ads<g-socthi-vxworks.ads \
425 g-socthi.adb<g-socthi-vxworks.adb \
426 g-stsifd.adb<g-stsifd-sockets.adb \
427 g-sttsne.adb<g-sttsne-vxworks.adb \
428 g-sttsne.ads<g-sttsne-locking.ads \
429 g-trasym.ads<g-trasym-unimplemented.ads \
430 g-trasym.adb<g-trasym-unimplemented.adb \
431 system.ads<system-vxworks-m68k.ads
433 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb
435 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
436 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
438 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
439 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
441 ifeq ($(strip $(filter-out yes,$(TRACE))),)
442 LIBGNAT_TARGET_PAIRS += \
443 s-traces.adb<s-traces-default.adb \
444 s-tratas.adb<s-tratas-default.adb \
445 s-trafor.adb<s-trafor-default.adb \
446 s-trafor.ads<s-trafor-default.ads \
447 s-tfsetr.adb<s-tfsetr-vxworks.adb
451 ifeq ($(strip $(filter-out powerpc% wrs vxworks,$(targ))),)
452 LIBGNAT_TARGET_PAIRS = \
453 a-intnam.ads<a-intnam-vxworks.ads \
454 a-numaux.ads<a-numaux-vxworks.ads \
455 s-inmaop.adb<s-inmaop-posix.adb \
456 s-intman.ads<s-intman-vxworks.ads \
457 s-intman.adb<s-intman-vxworks.adb \
458 s-osinte.ads<s-osinte-vxworks.ads \
459 s-osinte.adb<s-osinte-vxworks.adb \
460 s-osprim.adb<s-osprim-vxworks.adb \
461 s-parame.ads<s-parame-vxworks.ads \
462 s-parame.adb<s-parame-vxworks.adb \
463 s-stchop.ads<s-stchop-limit.ads \
464 s-stchop.adb<s-stchop-vxworks.adb \
465 s-taprop.adb<s-taprop-vxworks.adb \
466 s-tasinf.ads<s-tasinf-vxworks.ads \
467 s-taspri.ads<s-taspri-vxworks.ads \
468 s-vxwork.ads<s-vxwork-ppc.ads \
469 g-socthi.ads<g-socthi-vxworks.ads \
470 g-socthi.adb<g-socthi-vxworks.adb \
471 g-stsifd.adb<g-stsifd-sockets.adb \
472 g-sttsne.adb<g-sttsne-vxworks.adb \
473 g-sttsne.ads<g-sttsne-locking.ads \
474 g-trasym.ads<g-trasym-unimplemented.ads \
475 g-trasym.adb<g-trasym-unimplemented.adb
478 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
479 indepsw.adb<indepsw-gnu.adb
481 ifeq ($(strip $(filter-out yes,$(TRACE))),)
482 LIBGNAT_TARGET_PAIRS += \
483 s-traces.adb<s-traces-default.adb \
484 s-trafor.adb<s-trafor-default.adb \
485 s-trafor.ads<s-trafor-default.ads \
486 s-tratas.adb<s-tratas-default.adb \
487 s-tfsetr.adb<s-tfsetr-vxworks.adb
490 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
491 LIBGNAT_TARGET_PAIRS += \
492 s-vxwext.ads<s-vxwext-rtp.ads \
493 s-vxwext.adb<s-vxwext-rtp.adb \
494 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
495 system.ads<system-vxworks-ppc-rtp.ads
497 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
499 ifeq ($(strip $(filter-out rtp-smp,$(THREAD_KIND))),)
500 LIBGNAT_TARGET_PAIRS += \
501 s-vxwext.ads<s-vxwext-rtp.ads \
502 s-vxwext.adb<s-vxwext-rtp-smp.adb \
503 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
504 system.ads<system-vxworks-ppc-rtp.ads
506 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
507 EXTRA_GNATRTL_TASKING_OBJS=affinity.o
509 ifeq ($(strip $(filter-out kernel-smp,$(THREAD_KIND))),)
510 LIBGNAT_TARGET_PAIRS += \
511 s-interr.adb<s-interr-hwint.adb \
512 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
513 s-vxwext.ads<s-vxwext-kernel.ads \
514 s-vxwext.adb<s-vxwext-kernel-smp.adb \
515 system.ads<system-vxworks-ppc-kernel.ads
517 EXTRA_GNATRTL_TASKING_OBJS=affinity.o
519 LIBGNAT_TARGET_PAIRS += \
520 s-interr.adb<s-interr-hwint.adb \
521 s-tpopsp.adb<s-tpopsp-vxworks.adb
523 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
524 LIBGNAT_TARGET_PAIRS += \
525 s-vxwext.ads<s-vxwext-kernel.ads \
526 s-vxwext.adb<s-vxwext-kernel.adb \
527 system.ads<system-vxworks-ppc-kernel.ads
529 LIBGNAT_TARGET_PAIRS += \
530 system.ads<system-vxworks-ppc.ads
533 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
537 EXTRA_GNATRTL_TASKING_OBJS += s-vxwork.o s-vxwext.o
539 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
540 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
543 # vxworksae / vxworks 653
544 ifeq ($(strip $(filter-out powerpc% wrs vxworksae,$(targ))),)
545 # target pairs for vthreads runtime
546 LIBGNAT_TARGET_PAIRS = \
547 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
548 a-intnam.ads<a-intnam-vxworks.ads \
549 a-numaux.ads<a-numaux-vxworks.ads \
550 g-io.adb<g-io-vxworks-ppc-cert.adb \
551 g-io.ads<g-io-vxworks-ppc-cert.ads \
552 s-inmaop.adb<s-inmaop-posix.adb \
553 s-interr.adb<s-interr-hwint.adb \
554 s-intman.ads<s-intman-vxworks.ads \
555 s-intman.adb<s-intman-vxworks.adb \
556 s-osinte.adb<s-osinte-vxworks.adb \
557 s-osinte.ads<s-osinte-vxworks.ads \
558 s-osprim.adb<s-osprim-vxworks.adb \
559 s-parame.ads<s-parame-ae653.ads \
560 s-parame.adb<s-parame-vxworks.adb \
561 s-taprop.adb<s-taprop-vxworks.adb \
562 s-tasinf.ads<s-tasinf-vxworks.ads \
563 s-taspri.ads<s-taspri-vxworks.ads \
564 s-tpopsp.adb<s-tpopsp-vxworks.adb \
565 s-vxwext.adb<s-vxwext-noints.adb \
566 s-vxwext.ads<s-vxwext-vthreads.ads \
567 s-vxwork.ads<s-vxwork-ppc.ads \
568 g-trasym.ads<g-trasym-unimplemented.ads \
569 g-trasym.adb<g-trasym-unimplemented.adb \
570 system.ads<system-vxworks-ppc-vthread.ads
573 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
574 indepsw.adb<indepsw-gnu.adb
576 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
577 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
579 # Extra pairs for the vthreads runtime
580 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
581 LIBGNAT_TARGET_PAIRS += \
582 s-thread.adb<s-thread-ae653.adb \
583 $(DUMMY_SOCKETS_TARGET_PAIRS)
585 GNATRTL_SOCKETS_OBJS =
586 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o
588 LIBGNAT_TARGET_PAIRS += \
589 g-socthi.ads<g-socthi-vxworks.ads \
590 g-socthi.adb<g-socthi-vxworks.adb \
591 g-stsifd.adb<g-stsifd-sockets.adb \
592 g-sttsne.adb<g-sttsne-vxworks.adb \
593 g-sttsne.ads<g-sttsne-locking.ads
596 ifeq ($(strip $(filter-out yes,$(TRACE))),)
597 LIBGNAT_TARGET_PAIRS += \
598 s-traces.adb<s-traces-default.adb \
599 s-trafor.adb<s-trafor-default.adb \
600 s-trafor.ads<s-trafor-default.ads \
601 s-tratas.adb<s-tratas-default.adb \
602 s-tfsetr.adb<s-tfsetr-vxworks.adb
606 # vxworksae / vxworks 653 for x86 (vxsim)
607 ifeq ($(strip $(filter-out %86 wrs vxworksae,$(targ))),)
608 # target pairs for kernel + vthreads runtime
609 LIBGNAT_TARGET_PAIRS = \
610 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
611 a-intnam.ads<a-intnam-vxworks.ads \
612 a-numaux.ads<a-numaux-x86.ads \
613 a-numaux.adb<a-numaux-x86.adb \
614 a-sytaco.ads<1asytaco.ads \
615 a-sytaco.adb<1asytaco.adb \
616 g-bytswa.adb<g-bytswa-x86.adb \
617 g-io.adb<g-io-vxworks-ppc-cert.adb \
618 g-io.ads<g-io-vxworks-ppc-cert.ads \
619 s-inmaop.adb<s-inmaop-posix.adb \
620 s-interr.adb<s-interr-hwint.adb \
621 s-intman.ads<s-intman-vxworks.ads \
622 s-intman.adb<s-intman-vxworks.adb \
623 s-osinte.adb<s-osinte-vxworks.adb \
624 s-osinte.ads<s-osinte-vxworks.ads \
625 s-osprim.adb<s-osprim-vxworks.adb \
626 s-parame.ads<s-parame-ae653.ads \
627 s-taprop.adb<s-taprop-vxworks.adb \
628 s-tasinf.ads<s-tasinf-vxworks.ads \
629 s-taspri.ads<s-taspri-vxworks.ads \
630 s-thread.adb<s-thread-ae653.adb \
631 s-tpopsp.adb<s-tpopsp-vxworks.adb \
632 s-vxwext.adb<s-vxwext-noints.adb \
633 s-vxwext.ads<s-vxwext-vthreads.ads \
634 s-vxwork.ads<s-vxwork-x86.ads \
635 g-trasym.ads<g-trasym-unimplemented.ads \
636 g-trasym.adb<g-trasym-unimplemented.adb \
637 system.ads<system-vxworks-x86.ads
640 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
641 indepsw.adb<indepsw-gnu.adb
643 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
644 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
646 # Extra pairs for the vthreads runtime
647 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
648 LIBGNAT_TARGET_PAIRS += \
649 s-thread.adb<s-thread-ae653.adb \
650 $(DUMMY_SOCKETS_TARGET_PAIRS)
652 GNATRTL_SOCKETS_OBJS =
653 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o
655 LIBGNAT_TARGET_PAIRS += \
656 g-socthi.ads<g-socthi-vxworks.ads \
657 g-socthi.adb<g-socthi-vxworks.adb \
658 g-stsifd.adb<g-stsifd-sockets.adb \
659 g-sttsne.adb<g-sttsne-vxworks.adb \
660 g-sttsne.ads<g-sttsne-locking.ads
663 ifeq ($(strip $(filter-out yes,$(TRACE))),)
664 LIBGNAT_TARGET_PAIRS += \
665 s-traces.adb<s-traces-default.adb \
666 s-trafor.adb<s-trafor-default.adb \
667 s-trafor.ads<s-trafor-default.ads \
668 s-tratas.adb<s-tratas-default.adb \
669 s-tfsetr.adb<s-tfsetr-vxworks.adb
673 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
674 LIBGNAT_TARGET_PAIRS = \
675 a-intnam.ads<a-intnam-vxworks.ads \
676 a-numaux.ads<a-numaux-vxworks.ads \
677 s-inmaop.adb<s-inmaop-posix.adb \
678 s-interr.adb<s-interr-hwint.adb \
679 s-intman.ads<s-intman-vxworks.ads \
680 s-intman.adb<s-intman-vxworks.adb \
681 s-osinte.adb<s-osinte-vxworks.adb \
682 s-osinte.ads<s-osinte-vxworks.ads \
683 s-osprim.adb<s-osprim-vxworks.adb \
684 s-parame.ads<s-parame-vxworks.ads \
685 s-parame.adb<s-parame-vxworks.adb \
686 s-stchop.ads<s-stchop-limit.ads \
687 s-stchop.adb<s-stchop-vxworks.adb \
688 s-taprop.adb<s-taprop-vxworks.adb \
689 s-tasinf.ads<s-tasinf-vxworks.ads \
690 s-taspri.ads<s-taspri-vxworks.ads \
691 s-tpopsp.adb<s-tpopsp-vxworks.adb \
692 s-vxwork.ads<s-vxwork-sparcv9.ads \
693 g-socthi.ads<g-socthi-vxworks.ads \
694 g-socthi.adb<g-socthi-vxworks.adb \
695 g-stsifd.adb<g-stsifd-sockets.adb \
696 g-sttsne.adb<g-sttsne-vxworks.adb \
697 g-sttsne.ads<g-sttsne-locking.ads \
698 g-trasym.ads<g-trasym-unimplemented.ads \
699 g-trasym.adb<g-trasym-unimplemented.adb \
700 system.ads<system-vxworks-sparcv9.ads \
703 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
704 indepsw.adb<indepsw-gnu.adb
706 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
707 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
709 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
710 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
713 ifeq ($(strip $(filter-out %86 wrs vxworks,$(targ))),)
714 LIBGNAT_TARGET_PAIRS = \
715 a-intnam.ads<a-intnam-vxworks.ads \
716 i-vxwork.ads<i-vxwork-x86.ads \
717 s-osinte.adb<s-osinte-vxworks.adb \
718 s-osinte.ads<s-osinte-vxworks.ads \
719 s-inmaop.adb<s-inmaop-posix.adb \
720 s-intman.ads<s-intman-vxworks.ads \
721 s-intman.adb<s-intman-vxworks.adb \
722 a-numaux.adb<a-numaux-x86.adb \
723 a-numaux.ads<a-numaux-x86.ads \
724 s-osprim.adb<s-osprim-vxworks.adb \
725 s-parame.ads<s-parame-vxworks.ads \
726 s-parame.adb<s-parame-vxworks.adb \
727 s-stchop.ads<s-stchop-limit.ads \
728 s-stchop.adb<s-stchop-vxworks.adb \
729 s-taprop.adb<s-taprop-vxworks.adb \
730 s-tasinf.ads<s-tasinf-vxworks.ads \
731 s-taspri.ads<s-taspri-vxworks.ads \
732 s-vxwork.ads<s-vxwork-x86.ads \
733 g-bytswa.adb<g-bytswa-x86.adb \
734 g-socthi.ads<g-socthi-vxworks.ads \
735 g-socthi.adb<g-socthi-vxworks.adb \
736 g-stsifd.adb<g-stsifd-sockets.adb \
737 g-sttsne.adb<g-sttsne-vxworks.adb \
738 g-sttsne.ads<g-sttsne-locking.ads \
739 g-trasym.ads<g-trasym-unimplemented.ads \
740 g-trasym.adb<g-trasym-unimplemented.adb
743 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
744 indepsw.adb<indepsw-gnu.adb
746 ifeq ($(strip $(filter-out yes,$(TRACE))),)
747 LIBGNAT_TARGET_PAIRS += \
748 s-traces.adb<s-traces-default.adb \
749 s-trafor.adb<s-trafor-default.adb \
750 s-trafor.ads<s-trafor-default.ads \
751 s-tratas.adb<s-tratas-default.adb \
752 s-tfsetr.adb<s-tfsetr-vxworks.adb
755 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
756 LIBGNAT_TARGET_PAIRS += \
757 s-vxwext.ads<s-vxwext-rtp.ads \
758 s-vxwext.adb<s-vxwext-rtp.adb \
759 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
760 system.ads<system-vxworks-x86-rtp.ads
762 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
764 ifeq ($(strip $(filter-out rtp-smp, $(THREAD_KIND))),)
765 LIBGNAT_TARGET_PAIRS += \
766 s-vxwext.ads<s-vxwext-rtp.ads \
767 s-vxwext.adb<s-vxwext-rtp-smp.adb \
768 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
769 system.ads<system-vxworks-x86-rtp.ads
771 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
772 EXTRA_GNATRTL_TASKING_OBJS=affinity.o
774 ifeq ($(strip $(filter-out kernel-smp, $(THREAD_KIND))),)
775 LIBGNAT_TARGET_PAIRS += \
776 s-interr.adb<s-interr-hwint.adb \
777 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
778 s-vxwext.ads<s-vxwext-kernel.ads \
779 s-vxwext.adb<s-vxwext-kernel-smp.adb \
780 system.ads<system-vxworks-x86-kernel.ads
781 EXTRA_GNATRTL_TASKING_OBJS=affinity.o
783 LIBGNAT_TARGET_PAIRS += \
784 s-interr.adb<s-interr-hwint.adb \
785 s-tpopsp.adb<s-tpopsp-vxworks.adb
787 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
788 LIBGNAT_TARGET_PAIRS += \
789 s-vxwext.ads<s-vxwext-kernel.ads \
790 s-vxwext.adb<s-vxwext-kernel.adb \
791 system.ads<system-vxworks-x86-kernel.ads
793 LIBGNAT_TARGET_PAIRS += \
794 system.ads<system-vxworks-x86.ads
798 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
801 EXTRA_GNATRTL_TASKING_OBJS += s-vxwork.o s-vxwext.o
803 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
804 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
807 ifeq ($(strip $(filter-out arm% coff wrs vx%,$(targ))),)
808 LIBGNAT_TARGET_PAIRS = \
809 a-intnam.ads<a-intnam-vxworks.ads \
810 a-numaux.ads<a-numaux-vxworks.ads \
811 s-inmaop.adb<s-inmaop-posix.adb \
812 s-interr.adb<s-interr-hwint.adb \
813 s-intman.ads<s-intman-vxworks.ads \
814 s-intman.adb<s-intman-vxworks.adb \
815 s-osinte.adb<s-osinte-vxworks.adb \
816 s-osinte.ads<s-osinte-vxworks.ads \
817 s-osprim.adb<s-osprim-vxworks.adb \
818 s-parame.ads<s-parame-vxworks.ads \
819 s-parame.adb<s-parame-vxworks.adb \
820 s-stchop.ads<s-stchop-limit.ads \
821 s-stchop.adb<s-stchop-vxworks.adb \
822 s-taprop.adb<s-taprop-vxworks.adb \
823 s-tasinf.ads<s-tasinf-vxworks.ads \
824 s-taspri.ads<s-taspri-vxworks.ads \
825 s-tpopsp.adb<s-tpopsp-vxworks.adb \
826 s-vxwork.ads<s-vxwork-arm.ads \
827 g-socthi.ads<g-socthi-vxworks.ads \
828 g-socthi.adb<g-socthi-vxworks.adb \
829 g-stsifd.adb<g-stsifd-sockets.adb \
830 g-sttsne.adb<g-sttsne-vxworks.adb \
831 g-sttsne.ads<g-sttsne-locking.ads \
832 g-trasym.ads<g-trasym-unimplemented.ads \
833 g-trasym.adb<g-trasym-unimplemented.adb \
834 system.ads<system-vxworks-arm.ads
837 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
838 indepsw.adb<indepsw-gnu.adb
840 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
841 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
843 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
844 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
847 ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)
848 LIBGNAT_TARGET_PAIRS = \
849 a-intnam.ads<a-intnam-vxworks.ads \
850 a-numaux.ads<a-numaux-vxworks.ads \
851 s-inmaop.adb<s-inmaop-posix.adb \
852 s-interr.adb<s-interr-hwint.adb \
853 s-intman.ads<s-intman-vxworks.ads \
854 s-intman.adb<s-intman-vxworks.adb \
855 s-osinte.adb<s-osinte-vxworks.adb \
856 s-osinte.ads<s-osinte-vxworks.ads \
857 s-osprim.adb<s-osprim-vxworks.adb \
858 s-parame.ads<s-parame-vxworks.ads \
859 s-parame.adb<s-parame-vxworks.adb \
860 s-stchop.ads<s-stchop-limit.ads \
861 s-stchop.adb<s-stchop-vxworks.adb \
862 s-taprop.adb<s-taprop-vxworks.adb \
863 s-tasinf.ads<s-tasinf-vxworks.ads \
864 s-taspri.ads<s-taspri-vxworks.ads \
865 s-tpopsp.adb<s-tpopsp-vxworks.adb \
866 s-vxwork.ads<s-vxwork-mips.ads \
867 g-socthi.ads<g-socthi-vxworks.ads \
868 g-socthi.adb<g-socthi-vxworks.adb \
869 g-stsifd.adb<g-stsifd-sockets.adb \
870 g-sttsne.adb<g-sttsne-vxworks.adb \
871 g-sttsne.ads<g-sttsne-locking.ads \
872 g-trasym.ads<g-trasym-unimplemented.ads \
873 g-trasym.adb<g-trasym-unimplemented.adb \
874 system.ads<system-vxworks-mips.ads
877 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
878 indepsw.adb<indepsw-gnu.adb
880 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
881 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
883 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
884 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
887 ifeq ($(strip $(filter-out sparc% sun solaris%,$(targ))),)
888 LIBGNAT_TARGET_PAIRS_COMMON = \
889 a-intnam.ads<a-intnam-solaris.ads \
890 s-inmaop.adb<s-inmaop-posix.adb \
891 s-intman.adb<s-intman-solaris.adb \
892 s-osinte.adb<s-osinte-solaris.adb \
893 s-osinte.ads<s-osinte-solaris.ads \
894 s-osprim.adb<s-osprim-solaris.adb \
895 s-taprop.adb<s-taprop-solaris.adb \
896 s-tasinf.adb<s-tasinf-solaris.adb \
897 s-tasinf.ads<s-tasinf-solaris.ads \
898 s-taspri.ads<s-taspri-solaris.ads \
899 s-tpopsp.adb<s-tpopsp-solaris.adb \
900 g-soliop.ads<g-soliop-solaris.ads
902 LIBGNAT_TARGET_PAIRS_32 = \
903 system.ads<system-solaris-sparc.ads
905 LIBGNAT_TARGET_PAIRS_64 = \
906 system.ads<system-solaris-sparcv9.ads
908 ifeq ($(strip $(filter-out sparc sun solaris%,$(targ))),)
909 ifeq ($(strip $(MULTISUBDIR)),/sparcv9)
910 LIBGNAT_TARGET_PAIRS = \
911 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
913 LIBGNAT_TARGET_PAIRS = \
914 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
917 ifeq ($(strip $(MULTISUBDIR)),/sparcv7)
918 LIBGNAT_TARGET_PAIRS = \
919 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
921 LIBGNAT_TARGET_PAIRS = \
922 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
926 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
929 THREADSLIB = -lposix4 -lthread
930 MISCLIB = -lposix4 -lnsl -lsocket
932 GNATLIB_SHARED = gnatlib-shared-dual
934 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
935 LIBRARY_VERSION := $(LIB_VERSION)
937 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
938 LIBGNAT_TARGET_PAIRS = \
939 a-intnam.ads<a-intnam-solaris.ads \
940 s-inmaop.adb<s-inmaop-posix.adb \
941 s-intman.adb<s-intman-posix.adb \
942 s-osinte.adb<s-osinte-posix.adb \
943 s-osinte.ads<s-osinte-solaris-posix.ads \
944 s-osprim.adb<s-osprim-solaris.adb \
945 s-taprop.adb<s-taprop-posix.adb \
946 s-taspri.ads<s-taspri-posix.ads \
947 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
948 g-soliop.ads<g-soliop-solaris.ads \
949 system.ads<system-solaris-sparc.ads
951 THREADSLIB = -lposix4 -lpthread
954 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
955 LIBGNAT_TARGET_PAIRS = $(LIBGNAT_TARGET_PAIRS_64)
959 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
960 LIBGNAT_TARGET_PAIRS = \
961 a-numaux.adb<a-numaux-x86.adb \
962 a-numaux.ads<a-numaux-x86.ads \
963 a-intnam.ads<a-intnam-solaris.ads \
964 s-inmaop.adb<s-inmaop-posix.adb \
965 s-intman.adb<s-intman-solaris.adb \
966 s-osinte.adb<s-osinte-solaris.adb \
967 s-osinte.ads<s-osinte-solaris.ads \
968 s-osprim.adb<s-osprim-solaris.adb \
969 s-taprop.adb<s-taprop-solaris.adb \
970 s-tasinf.adb<s-tasinf-solaris.adb \
971 s-tasinf.ads<s-tasinf-solaris.ads \
972 s-taspri.ads<s-taspri-solaris.ads \
973 s-tpopsp.adb<s-tpopsp-solaris.adb \
974 g-soliop.ads<g-soliop-solaris.ads
976 ifeq ($(strip $(MULTISUBDIR)),/amd64)
977 LIBGNAT_TARGET_PAIRS += \
978 system.ads<system-solaris-x86_64.ads
980 LIBGNAT_TARGET_PAIRS += \
981 g-bytswa.adb<g-bytswa-x86.adb \
982 system.ads<system-solaris-x86.ads
985 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
988 THREADSLIB = -lposix4 -lthread
989 MISCLIB = -lposix4 -lnsl -lsocket
991 GNATLIB_SHARED = gnatlib-shared-dual
993 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
994 LIBRARY_VERSION := $(LIB_VERSION)
997 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
998 LIBGNAT_TARGET_PAIRS = \
999 a-intnam.ads<a-intnam-linux.ads \
1000 a-numaux.adb<a-numaux-x86.adb \
1001 a-numaux.ads<a-numaux-x86.ads \
1002 g-bytswa.adb<g-bytswa-x86.adb \
1003 s-inmaop.adb<s-inmaop-posix.adb \
1004 s-intman.adb<s-intman-posix.adb \
1005 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1006 g-sercom.adb<g-sercom-linux.adb
1008 ifeq ($(strip $(filter-out marte,$(THREAD_KIND))),)
1009 LIBGNAT_TARGET_PAIRS += \
1010 a-exetim.adb<a-exetim-linux-marte.adb \
1011 a-exetim.ads<a-exetim-linux-marte.ads \
1012 a-extiti.adb<a-extiti-linux-marte.adb \
1013 a-extiti.ads<a-extiti-linux-marte.ads \
1014 a-rttiev.adb<a-rttiev-linux-marte.adb \
1015 a-rttiev.ads<a-rttiev-linux-marte.ads \
1016 s-osinte.adb<s-osinte-linux-marte.adb \
1017 s-osinte.ads<s-osinte-linux-marte.ads \
1018 s-osprim.adb<s-osprim-posix.adb \
1019 s-taprop.adb<s-taprop-linux-marte.adb \
1020 s-taspri.ads<s-taspri-posix.ads \
1021 system.ads<system-linux-x86.ads
1023 EXTRA_GNATRTL_TASKING_OBJS=a-exetim.o a-extiti.o
1026 THREADSLIB = -lmarte
1028 LIBGNAT_TARGET_PAIRS += \
1029 s-linux.ads<s-linux.ads \
1030 s-osinte.adb<s-osinte-posix.adb
1032 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
1033 LIBGNAT_TARGET_PAIRS += \
1034 s-osinte.ads<s-osinte-linux-xenomai.ads \
1035 s-osprim.adb<s-osprim-linux-xenomai.adb \
1036 s-taprop.adb<s-taprop-linux-xenomai.adb \
1037 s-taspri.ads<s-taspri-linux-xenomai.ads \
1038 system.ads<system-linux-x86-xenomai.ads
1042 LIBGNAT_TARGET_PAIRS += \
1043 s-osinte.ads<s-osinte-linux.ads \
1044 s-osprim.adb<s-osprim-posix.adb \
1045 s-taprop.adb<s-taprop-linux.adb \
1046 s-tasinf.ads<s-tasinf-linux.ads \
1047 s-tasinf.adb<s-tasinf-linux.adb \
1048 s-taspri.ads<s-taspri-posix.ads \
1049 system.ads<system-linux-x86.ads
1054 THREADSLIB = -lpthread
1055 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1058 TOOLS_TARGET_PAIRS = \
1059 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1060 indepsw.adb<indepsw-gnu.adb
1062 GNATLIB_SHARED = gnatlib-shared-dual
1064 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1065 LIBRARY_VERSION := $(LIB_VERSION)
1068 ifeq ($(strip $(filter-out %86 kfreebsd%,$(arch) $(osys))),)
1069 LIBGNAT_TARGET_PAIRS = \
1070 a-intnam.ads<a-intnam-freebsd.ads \
1071 a-numaux.adb<a-numaux-x86.adb \
1072 a-numaux.ads<a-numaux-x86.ads \
1073 s-inmaop.adb<s-inmaop-posix.adb \
1074 s-intman.adb<s-intman-posix.adb \
1075 s-osinte.adb<s-osinte-posix.adb \
1076 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
1077 s-osprim.adb<s-osprim-posix.adb \
1078 s-taprop.adb<s-taprop-linux.adb \
1079 s-tasinf.ads<s-tasinf-linux.ads \
1080 s-tasinf.adb<s-tasinf-linux.adb \
1081 s-taspri.ads<s-taspri-posix.ads \
1082 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1083 system.ads<system-freebsd-x86.ads
1085 TOOLS_TARGET_PAIRS = \
1086 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1087 indepsw.adb<indepsw-gnu.adb
1090 THREADSLIB = -lpthread
1091 GNATLIB_SHARED = gnatlib-shared-dual
1093 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1094 LIBRARY_VERSION := $(LIB_VERSION)
1097 ifeq ($(strip $(filter-out %86 freebsd%,$(arch) $(osys))),)
1098 LIBGNAT_TARGET_PAIRS = \
1099 a-intnam.ads<a-intnam-freebsd.ads \
1100 a-numaux.adb<a-numaux-x86.adb \
1101 a-numaux.ads<a-numaux-x86.ads \
1102 g-bytswa.adb<g-bytswa-x86.adb \
1103 s-inmaop.adb<s-inmaop-posix.adb \
1104 s-intman.adb<s-intman-posix.adb \
1105 s-osinte.adb<s-osinte-freebsd.adb \
1106 s-osinte.ads<s-osinte-freebsd.ads \
1107 s-osprim.adb<s-osprim-posix.adb \
1108 s-taprop.adb<s-taprop-posix.adb \
1109 s-taspri.ads<s-taspri-posix.ads \
1110 s-tpopsp.adb<s-tpopsp-posix.adb \
1111 system.ads<system-freebsd-x86.ads
1113 TOOLS_TARGET_PAIRS = \
1114 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
1115 GNATLIB_SHARED = gnatlib-shared-dual
1118 THREADSLIB= -lpthread
1120 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1121 LIBRARY_VERSION := $(LIB_VERSION)
1124 ifeq ($(strip $(filter-out s390% linux%,$(arch) $(osys))),)
1125 LIBGNAT_TARGET_PAIRS_COMMON = \
1126 a-intnam.ads<a-intnam-linux.ads \
1127 s-inmaop.adb<s-inmaop-posix.adb \
1128 s-intman.adb<s-intman-posix.adb \
1129 s-linux.ads<s-linux.ads \
1130 s-osinte.adb<s-osinte-posix.adb \
1131 s-osinte.ads<s-osinte-linux.ads \
1132 s-osprim.adb<s-osprim-posix.adb \
1133 s-taprop.adb<s-taprop-linux.adb \
1134 s-tasinf.ads<s-tasinf-linux.ads \
1135 s-tasinf.adb<s-tasinf-linux.adb \
1136 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1137 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1138 g-trasym.ads<g-trasym-unimplemented.ads \
1139 g-trasym.adb<g-trasym-unimplemented.adb
1141 LIBGNAT_TARGET_PAIRS_32 = \
1142 system.ads<system-linux-s390.ads
1144 LIBGNAT_TARGET_PAIRS_64 = \
1145 system.ads<system-linux-s390x.ads
1147 ifeq ($(strip $(filter-out s390x,$(arch))),)
1148 ifeq ($(strip $(MULTISUBDIR)),/32)
1149 LIBGNAT_TARGET_PAIRS = \
1150 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1152 LIBGNAT_TARGET_PAIRS = \
1153 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1156 LIBGNAT_TARGET_PAIRS = \
1157 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1160 TOOLS_TARGET_PAIRS = \
1161 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1162 indepsw.adb<indepsw-gnu.adb
1164 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1166 THREADSLIB = -lpthread
1167 GNATLIB_SHARED = gnatlib-shared-dual
1168 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1169 LIBRARY_VERSION := $(LIB_VERSION)
1172 ifeq ($(strip $(filter-out mips sgi irix%,$(targ))),)
1173 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
1174 LIBGNAT_TARGET_PAIRS = \
1175 a-intnam.ads<a-intnam-irix.ads \
1176 s-inmaop.adb<s-inmaop-posix.adb \
1177 s-intman.adb<s-intman-irix.adb \
1178 s-mastop.adb<s-mastop-irix.adb \
1179 s-osinte.adb<s-osinte-irix.adb \
1180 s-osinte.ads<s-osinte-irix.ads \
1181 s-osprim.adb<s-osprim-posix.adb \
1182 s-proinf.adb<s-proinf-irix-athread.adb \
1183 s-proinf.ads<s-proinf-irix-athread.ads \
1184 s-taprop.adb<s-taprop-irix.adb \
1185 s-tasinf.ads<s-tasinf-irix.ads \
1186 s-taspri.ads<s-taspri-posix.ads \
1187 s-tpopsp.adb<s-tpopsp-posix.adb \
1188 s-traceb.adb<s-traceb-mastop.adb
1190 ifeq ($(strip $(MULTISUBDIR)),/64)
1191 LIBGNAT_TARGET_PAIRS += \
1192 system.ads<system-irix-n64.ads
1194 ifeq ($(strip $(MULTISUBDIR)),/32)
1195 LIBGNAT_TARGET_PAIRS += \
1196 system.ads<system-irix-o32.ads
1198 LIBGNAT_TARGET_PAIRS += \
1199 system.ads<system-irix-n32.ads
1203 THREADSLIB = -lpthread
1204 GNATLIB_SHARED = gnatlib-shared-default
1207 LIBGNAT_TARGET_PAIRS += \
1208 s-mastop.adb<s-mastop-irix.adb \
1209 s-osprim.adb<s-osprim-posix.adb \
1210 s-traceb.adb<s-traceb-mastop.adb \
1211 system.ads<system-irix-o32.ads
1215 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-specific-irix.adb
1218 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1219 LIBRARY_VERSION := $(LIB_VERSION)
1223 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
1224 LIBGNAT_TARGET_PAIRS = \
1225 a-excpol.adb<a-excpol-abort.adb \
1226 a-intnam.ads<a-intnam-hpux.ads \
1227 s-inmaop.adb<s-inmaop-posix.adb \
1228 s-interr.adb<s-interr-sigaction.adb \
1229 s-intman.adb<s-intman-posix.adb \
1230 s-osinte.adb<s-osinte-hpux-dce.adb \
1231 s-osinte.ads<s-osinte-hpux-dce.ads \
1232 s-parame.ads<s-parame-hpux.ads \
1233 s-osprim.adb<s-osprim-posix.adb \
1234 s-taprop.adb<s-taprop-hpux-dce.adb \
1235 s-taspri.ads<s-taspri-hpux-dce.ads \
1236 s-tpopsp.adb<s-tpopsp-posix.adb \
1237 system.ads<system-hpux.ads
1240 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1243 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
1244 LIBGNAT_TARGET_PAIRS = \
1245 a-intnam.ads<a-intnam-hpux.ads \
1246 s-inmaop.adb<s-inmaop-posix.adb \
1247 s-intman.adb<s-intman-posix.adb \
1248 s-osinte.adb<s-osinte-posix.adb \
1249 s-osinte.ads<s-osinte-hpux.ads \
1250 s-parame.ads<s-parame-hpux.ads \
1251 s-osprim.adb<s-osprim-posix.adb \
1252 s-traceb.adb<s-traceb-hpux.adb \
1253 s-taprop.adb<s-taprop-posix.adb \
1254 s-taspri.ads<s-taspri-posix.ads \
1255 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1256 system.ads<system-hpux.ads
1258 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb
1260 TGT_LIB = /usr/lib/libcl.a
1261 THREADSLIB = -lpthread
1265 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1266 GNATLIB_SHARED = gnatlib-shared-dual
1267 LIBRARY_VERSION := $(LIB_VERSION)
1270 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
1271 LIBGNAT_TARGET_PAIRS_COMMON = \
1272 a-intnam.ads<a-intnam-aix.ads \
1273 s-inmaop.adb<s-inmaop-posix.adb \
1274 s-intman.adb<s-intman-posix.adb \
1275 s-osinte.adb<s-osinte-aix.adb \
1276 s-osinte.ads<s-osinte-aix.ads \
1277 s-osprim.adb<s-osprim-posix.adb \
1278 s-taprop.adb<s-taprop-posix.adb \
1279 s-taspri.ads<s-taspri-posix.ads \
1280 s-tpopsp.adb<s-tpopsp-posix.adb
1282 LIBGNAT_TARGET_PAIRS_32 = \
1283 system.ads<system-aix.ads
1285 LIBGNAT_TARGET_PAIRS_64 = \
1286 system.ads<system-aix64.ads
1288 ifeq ($(findstring ppc64, \
1289 $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) \
1290 -print-multi-os-directory)), \
1292 LIBGNAT_TARGET_PAIRS = \
1293 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1295 LIBGNAT_TARGET_PAIRS = \
1296 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1299 THREADSLIB = -lpthreads
1300 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1302 TOOLS_TARGET_PAIRS = \
1303 mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb \
1304 indepsw.adb<indepsw-aix.adb
1309 ifeq ($(strip $(filter-out lynxos,$(osys))),)
1310 TOOLS_TARGET_PAIRS = \
1311 mlib-tgt-specific.adb<mlib-tgt-specific-lynxos.adb \
1312 indepsw.adb<indepsw-gnu.adb
1314 ifeq ($(strip $(filter-out %86 lynxos,$(arch) $(osys))),)
1315 LIBGNAT_TARGET_PAIRS = \
1316 a-numaux.adb<a-numaux-x86.adb \
1317 a-numaux.ads<a-numaux-x86.ads \
1318 a-intnam.ads<a-intnam-lynxos.ads \
1319 g-bytswa.adb<g-bytswa-x86.adb \
1320 g-sttsne.adb<g-sttsne-locking.adb \
1321 g-sttsne.ads<g-sttsne-locking.ads \
1322 s-inmaop.adb<s-inmaop-posix.adb \
1323 s-intman.adb<s-intman-posix.adb \
1324 s-osinte.adb<s-osinte-lynxos.adb \
1325 s-osinte.ads<s-osinte-lynxos.ads \
1326 s-osprim.adb<s-osprim-posix.adb \
1327 s-taprop.adb<s-taprop-lynxos.adb \
1328 s-taspri.ads<s-taspri-lynxos.ads \
1329 s-tpopsp.adb<s-tpopsp-lynxos.adb \
1330 g-trasym.ads<g-trasym-unimplemented.ads \
1331 g-trasym.adb<g-trasym-unimplemented.adb \
1332 system.ads<system-lynxos-x86.ads
1334 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1337 LIBGNAT_TARGET_PAIRS = \
1338 a-intnam.ads<a-intnam-lynxos.ads \
1339 g-sttsne.adb<g-sttsne-locking.adb \
1340 g-sttsne.ads<g-sttsne-locking.ads \
1341 s-inmaop.adb<s-inmaop-posix.adb \
1342 s-intman.adb<s-intman-posix.adb \
1343 s-osinte.adb<s-osinte-lynxos.adb \
1344 s-osinte.ads<s-osinte-lynxos.ads \
1345 s-osprim.adb<s-osprim-posix.adb \
1346 s-taprop.adb<s-taprop-lynxos.adb \
1347 s-taspri.ads<s-taspri-lynxos.ads \
1348 s-tpopsp.adb<s-tpopsp-lynxos.adb \
1349 g-trasym.ads<g-trasym-unimplemented.ads \
1350 g-trasym.adb<g-trasym-unimplemented.adb \
1351 system.ads<system-lynxos-ppc.ads
1355 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1356 LIBGNAT_TARGET_PAIRS = \
1357 system.ads<system-rtems.ads \
1358 a-intnam.ads<a-intnam-rtems.ads \
1359 s-inmaop.adb<s-inmaop-posix.adb \
1360 s-intman.adb<s-intman-posix.adb \
1361 s-osinte.adb<s-osinte-rtems.adb \
1362 s-osinte.ads<s-osinte-rtems.ads \
1363 s-osprim.adb<s-osprim-posix.adb \
1364 s-parame.adb<s-parame-rtems.adb \
1365 s-taprop.adb<s-taprop-posix.adb \
1366 s-taspri.ads<s-taspri-posix.ads \
1367 s-tpopsp.adb<s-tpopsp-rtems.adb \
1368 s-stchop.adb<s-stchop-rtems.adb \
1369 s-interr.adb<s-interr-hwint.adb \
1370 g-trasym.ads<g-trasym-unimplemented.ads \
1371 g-trasym.adb<g-trasym-unimplemented.adb
1374 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1375 LIBGNAT_TARGET_PAIRS = \
1376 a-intnam.ads<a-intnam-tru64.ads \
1377 s-inmaop.adb<s-inmaop-posix.adb \
1378 s-intman.adb<s-intman-posix.adb \
1379 s-mastop.adb<s-mastop-tru64.adb \
1380 s-osinte.adb<s-osinte-tru64.adb \
1381 s-osinte.ads<s-osinte-tru64.ads \
1382 s-osprim.adb<s-osprim-unix.adb \
1383 s-taprop.adb<s-taprop-tru64.adb \
1384 s-tasinf.ads<s-tasinf-tru64.ads \
1385 s-taspri.ads<s-taspri-tru64.ads \
1386 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1387 s-traceb.adb<s-traceb-mastop.adb \
1388 system.ads<system-tru64.ads
1390 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-tru64.adb
1394 THREADSLIB = -lpthread -lmach -lexc -lrt
1395 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1396 GNATLIB_SHARED = gnatlib-shared-default
1397 LIBRARY_VERSION := $(LIB_VERSION)
1400 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(host))),)
1410 @ gnu:[bin]vmssymvec $<
1413 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1414 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1415 LIBGNAT_TARGET_PAIRS_AUX1 = \
1416 g-enblsp.adb<g-enblsp-vms-ia64.adb \
1417 g-trasym.adb<g-trasym-vms-ia64.adb \
1418 s-asthan.adb<s-asthan-vms-ia64.adb \
1419 s-osinte.adb<s-osinte-vms-ia64.adb \
1420 s-osinte.ads<s-osinte-vms-ia64.ads \
1421 s-vaflop.adb<s-vaflop-vms-ia64.adb \
1422 g-trasym.ads<g-trasym-unimplemented.ads \
1423 g-trasym.adb<g-trasym-unimplemented.adb \
1424 system.ads<system-vms-ia64.ads
1426 LIBGNAT_TARGET_PAIRS_AUX2 = \
1427 s-parame.ads<s-parame-vms-ia64.ads
1429 ifeq ($(strip $(filter-out alpha64 dec vms% openvms% alphavms%,$(targ))),)
1430 LIBGNAT_TARGET_PAIRS_AUX1 = \
1431 g-enblsp.adb<g-enblsp-vms-alpha.adb \
1432 g-trasym.adb<g-trasym-vms-alpha.adb \
1433 s-traent.adb<s-traent-vms.adb \
1434 s-traent.ads<s-traent-vms.ads \
1435 s-asthan.adb<s-asthan-vms-alpha.adb \
1436 s-osinte.adb<s-osinte-vms.adb \
1437 s-osinte.ads<s-osinte-vms.ads \
1438 s-vaflop.adb<s-vaflop-vms-alpha.adb \
1439 system.ads<system-vms_64.ads
1441 ifeq ($(strip $(filter-out express EXPRESS,$(THREAD_KIND))),)
1442 LIBGNAT_TARGET_PAIRS_AUX2 = \
1443 s-parame.ads<s-parame-vms-restrict.ads
1445 LIBGNAT_TARGET_PAIRS_AUX2 = \
1446 s-parame.ads<s-parame-vms-alpha.ads
1451 LIBGNAT_TARGET_PAIRS = \
1452 a-caldel.adb<a-caldel-vms.adb \
1453 a-calend.adb<a-calend-vms.adb \
1454 a-calend.ads<a-calend-vms.ads \
1455 a-dirval.adb<a-dirval-vms.adb \
1456 a-excpol.adb<a-excpol-abort.adb \
1457 a-intnam.ads<a-intnam-vms.ads \
1458 a-numaux.ads<a-numaux-vms.ads \
1459 g-expect.adb<g-expect-vms.adb \
1460 g-socthi.ads<g-socthi-vms.ads \
1461 g-socthi.adb<g-socthi-vms.adb \
1462 g-stsifd.adb<g-stsifd-sockets.adb \
1463 g-sttsne.adb<g-sttsne-locking.adb \
1464 g-sttsne.ads<g-sttsne-locking.ads \
1465 i-c.ads<i-c-vms_64.ads \
1466 i-cstrin.ads<i-cstrin-vms_64.ads \
1467 i-cstrin.adb<i-cstrin-vms_64.adb \
1468 i-cpoint.ads<i-cpoint-vms_64.ads \
1469 i-cpoint.adb<i-cpoint-vms_64.adb \
1470 i-cstrea.adb<i-cstrea-vms.adb \
1471 memtrack.adb<memtrack-vms_64.adb \
1472 s-auxdec.ads<s-auxdec-vms_64.ads \
1473 s-crtl.ads<s-crtl-vms_64.ads \
1474 s-inmaop.adb<s-inmaop-vms.adb \
1475 s-interr.adb<s-interr-vms.adb \
1476 s-intman.adb<s-intman-vms.adb \
1477 s-intman.ads<s-intman-vms.ads \
1478 s-memory.adb<s-memory-vms_64.adb \
1479 s-memory.ads<s-memory-vms_64.ads \
1480 s-osprim.adb<s-osprim-vms.adb \
1481 s-osprim.ads<s-osprim-vms.ads \
1482 s-taprop.adb<s-taprop-vms.adb \
1483 s-tasdeb.adb<s-tasdeb-vms.adb \
1484 s-taspri.ads<s-taspri-vms.ads \
1485 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1486 s-tpopde.adb<s-tpopde-vms.adb \
1487 s-tpopde.ads<s-tpopde-vms.ads \
1488 $(LIBGNAT_TARGET_PAIRS_AUX1) \
1489 $(LIBGNAT_TARGET_PAIRS_AUX2)
1491 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1492 TOOLS_TARGET_PAIRS= \
1493 mlib-tgt-specific.adb<mlib-tgt-specific-vms-ia64.adb \
1494 symbols.adb<symbols-vms.adb \
1495 symbols-processing.adb<symbols-processing-vms-ia64.adb
1497 TOOLS_TARGET_PAIRS= \
1498 mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \
1499 symbols.adb<symbols-vms.adb \
1500 symbols-processing.adb<symbols-processing-vms-alpha.adb
1503 adamsg.o: adamsg.msg
1504 -$(DECC) --cc=message adamsg.msg -o adamsg.o
1506 EXTRA_GNATMAKE_OBJS = mlib-tgt-vms_common.o
1510 GNATLIB_SHARED=gnatlib-shared-vms
1511 ifeq ($(strip $(filter-out alpha64 dec vms% openvms% alphavms%,$(targ))),)
1512 EXTRA_LIBGNAT_SRCS=vmshandler.asm
1513 EXTRA_LIBGNAT_OBJS=vmshandler.o
1515 EXTRA_LIBGNAT_SRCS+=adamsg.msg
1516 EXTRA_LIBGNAT_OBJS+=adamsg.o
1517 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1519 ../../gnatlbr$(exeext) \
1520 ../../gnatsym$(exeext) \
1521 ../../vms_help$(exeext) \
1523 # This command transforms (YYYYMMDD) into YY,MMDD
1524 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)ada/gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\).*/\2,\3/')
1525 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1526 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1529 ifeq ($(strip $(filter-out avr none powerpc% eabispe leon% erc32% unknown elf,$(targ))),)
1530 TOOLS_TARGET_PAIRS=\
1531 mlib-tgt-specific.adb<mlib-tgt-specific-xi.adb \
1532 indepsw.adb<indepsw-gnu.adb
1535 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1536 LIBGNAT_TARGET_PAIRS = \
1537 a-dirval.adb<a-dirval-mingw.adb \
1538 a-excpol.adb<a-excpol-abort.adb \
1539 a-numaux.adb<a-numaux-x86.adb \
1540 a-numaux.ads<a-numaux-x86.ads \
1541 s-gloloc.adb<s-gloloc-mingw.adb \
1542 s-inmaop.adb<s-inmaop-dummy.adb \
1543 s-memory.adb<s-memory-mingw.adb \
1544 s-taspri.ads<s-taspri-mingw.ads \
1545 s-tasinf.adb<s-tasinf-mingw.adb \
1546 s-tasinf.ads<s-tasinf-mingw.ads \
1547 g-bytswa.adb<g-bytswa-x86.adb \
1548 g-socthi.ads<g-socthi-mingw.ads \
1549 g-socthi.adb<g-socthi-mingw.adb \
1550 g-stsifd.adb<g-stsifd-sockets.adb \
1551 g-soliop.ads<g-soliop-mingw.ads
1553 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss,$(THREAD_KIND))),)
1554 LIBGNAT_TARGET_PAIRS += \
1555 s-intman.adb<s-intman-dummy.adb \
1556 s-osinte.ads<s-osinte-rtx.ads \
1557 s-osprim.adb<s-osprim-rtx.adb \
1558 s-taprop.adb<s-taprop-rtx.adb
1560 EXTRA_GNATRTL_NONTASKING_OBJS = s-win32.o
1562 ifeq ($(strip $(filter-out rtx_w32,$(THREAD_KIND))),)
1563 LIBGNAT_TARGET_PAIRS += system.ads<system-rtx.ads
1567 LIBGNAT_TARGET_PAIRS += \
1568 system.ads<system-rtx-rtss.ads \
1569 s-parame.adb<s-parame-vxworks.adb
1575 LIBGNAT_TARGET_PAIRS += \
1576 a-exetim.adb<a-exetim-mingw.adb \
1577 a-exetim.ads<a-exetim-mingw.ads \
1578 a-intnam.ads<a-intnam-mingw.ads \
1579 g-sercom.adb<g-sercom-mingw.adb \
1580 s-interr.adb<s-interr-sigaction.adb \
1581 s-intman.adb<s-intman-mingw.adb \
1582 s-osinte.ads<s-osinte-mingw.ads \
1583 s-osprim.adb<s-osprim-mingw.adb \
1584 s-taprop.adb<s-taprop-mingw.adb
1586 ifeq ($(strip $(filter-out x86_64%,$(arch))),)
1587 LIBGNAT_TARGET_PAIRS += \
1588 system.ads<system-mingw-x86_64.ads
1590 LIBGNAT_TARGET_PAIRS += \
1591 system.ads<system-mingw.ads
1594 EXTRA_GNATRTL_NONTASKING_OBJS = s-win32.o s-winext.o g-regist.o
1595 EXTRA_GNATRTL_TASKING_OBJS = a-exetim.o
1599 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1600 # auto-import support for array/record will be done.
1601 GNATLIB_SHARED = gnatlib-shared-win32
1604 TOOLS_TARGET_PAIRS= \
1605 mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb \
1606 indepsw.adb<indepsw-mingw.adb
1609 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1610 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1611 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1613 LIBRARY_VERSION := $(LIB_VERSION)
1616 ifeq ($(strip $(filter-out mips linux%,$(arch) $(osys))),)
1617 LIBGNAT_TARGET_PAIRS = \
1618 a-intnam.ads<a-intnam-linux.ads \
1619 s-inmaop.adb<s-inmaop-posix.adb \
1620 s-intman.adb<s-intman-posix.adb \
1621 s-linux.ads<s-linux.ads \
1622 s-osinte.adb<s-osinte-posix.adb \
1623 s-osinte.ads<s-osinte-linux.ads \
1624 s-osprim.adb<s-osprim-posix.adb \
1625 s-taprop.adb<s-taprop-linux.adb \
1626 s-tasinf.ads<s-tasinf-linux.ads \
1627 s-tasinf.adb<s-tasinf-linux.adb \
1628 s-taspri.ads<s-taspri-posix.ads \
1629 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1630 system.ads<system-linux-mips.ads
1633 THREADSLIB = -lpthread
1634 GNATLIB_SHARED = gnatlib-shared-dual
1636 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1637 LIBRARY_VERSION := $(LIB_VERSION)
1640 ifeq ($(strip $(filter-out mipsel linux%,$(arch) $(osys))),)
1641 LIBGNAT_TARGET_PAIRS_COMMON = \
1642 a-intnam.ads<a-intnam-linux.ads \
1643 s-inmaop.adb<s-inmaop-posix.adb \
1644 s-intman.adb<s-intman-posix.adb \
1645 s-linux.ads<s-linux-mipsel.ads \
1646 s-osinte.adb<s-osinte-posix.adb \
1647 s-osinte.ads<s-osinte-linux.ads \
1648 s-osprim.adb<s-osprim-posix.adb \
1649 s-taprop.adb<s-taprop-linux.adb \
1650 s-tasinf.ads<s-tasinf-linux.ads \
1651 s-tasinf.adb<s-tasinf-linux.adb \
1652 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1653 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1654 g-sercom.adb<g-sercom-linux.adb
1656 LIBGNAT_TARGET_PAIRS_32 = \
1657 system.ads<system-linux-mipsel.ads
1659 LIBGNAT_TARGET_PAIRS_64 = \
1660 system.ads<system-linux-mips64el.ads
1662 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1663 LIBGNAT_TARGET_PAIRS = \
1664 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1666 LIBGNAT_TARGET_PAIRS = \
1667 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1670 TOOLS_TARGET_PAIRS = \
1671 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1672 indepsw.adb<indepsw-gnu.adb
1674 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1676 THREADSLIB = -lpthread
1677 GNATLIB_SHARED = gnatlib-shared-dual
1679 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1680 LIBRARY_VERSION := $(LIB_VERSION)
1683 ifeq ($(strip $(filter-out mips64el linux%,$(arch) $(osys))),)
1684 LIBGNAT_TARGET_PAIRS_COMMON = \
1685 a-intnam.ads<a-intnam-linux.ads \
1686 s-inmaop.adb<s-inmaop-posix.adb \
1687 s-intman.adb<s-intman-posix.adb \
1688 s-linux.ads<s-linux-mipsel.ads \
1689 s-osinte.adb<s-osinte-posix.adb \
1690 s-osinte.ads<s-osinte-linux.ads \
1691 s-osprim.adb<s-osprim-posix.adb \
1692 s-taprop.adb<s-taprop-linux.adb \
1693 s-tasinf.ads<s-tasinf-linux.ads \
1694 s-tasinf.adb<s-tasinf-linux.adb \
1695 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1696 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1697 g-sercom.adb<g-sercom-linux.adb
1699 LIBGNAT_TARGET_PAIRS_32 = \
1700 system.ads<system-linux-mipsel.ads
1702 LIBGNAT_TARGET_PAIRS_64 = \
1703 system.ads<system-linux-mips64el.ads
1705 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1706 LIBGNAT_TARGET_PAIRS = \
1707 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1709 LIBGNAT_TARGET_PAIRS = \
1710 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1713 TOOLS_TARGET_PAIRS = \
1714 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1715 indepsw.adb<indepsw-gnu.adb
1717 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1719 THREADSLIB = -lpthread
1720 GNATLIB_SHARED = gnatlib-shared-dual
1722 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1723 LIBRARY_VERSION := $(LIB_VERSION)
1726 ifeq ($(strip $(filter-out powerpc% linux%,$(arch) $(osys))),)
1727 LIBGNAT_TARGET_PAIRS_COMMON = \
1728 a-intnam.ads<a-intnam-linux.ads \
1729 s-inmaop.adb<s-inmaop-posix.adb \
1730 s-intman.adb<s-intman-posix.adb \
1731 s-linux.ads<s-linux.ads \
1732 s-osinte.adb<s-osinte-posix.adb \
1733 s-osinte.ads<s-osinte-linux.ads \
1734 s-osprim.adb<s-osprim-posix.adb \
1735 s-taprop.adb<s-taprop-linux.adb \
1736 s-tasinf.ads<s-tasinf-linux.ads \
1737 s-tasinf.adb<s-tasinf-linux.adb \
1738 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1739 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1740 g-sercom.adb<g-sercom-linux.adb
1742 LIBGNAT_TARGET_PAIRS_32 = \
1743 system.ads<system-linux-ppc.ads
1745 LIBGNAT_TARGET_PAIRS_64 = \
1746 system.ads<system-linux-ppc64.ads
1748 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1749 LIBGNAT_TARGET_PAIRS = \
1750 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1752 LIBGNAT_TARGET_PAIRS = \
1753 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1756 TOOLS_TARGET_PAIRS = \
1757 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1758 indepsw.adb<indepsw-gnu.adb
1760 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1762 THREADSLIB = -lpthread
1763 GNATLIB_SHARED = gnatlib-shared-dual
1765 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1766 LIBRARY_VERSION := $(LIB_VERSION)
1769 ifeq ($(strip $(filter-out sparc% linux%,$(arch) $(osys))),)
1770 LIBGNAT_TARGET_PAIRS_COMMON = \
1771 a-intnam.ads<a-intnam-linux.ads \
1772 s-inmaop.adb<s-inmaop-posix.adb \
1773 s-intman.adb<s-intman-posix.adb \
1774 s-linux.ads<s-linux.ads \
1775 s-osinte.adb<s-osinte-posix.adb \
1776 s-osinte.ads<s-osinte-linux.ads \
1777 s-osprim.adb<s-osprim-posix.adb \
1778 s-taprop.adb<s-taprop-linux.adb \
1779 s-tasinf.ads<s-tasinf-linux.ads \
1780 s-tasinf.adb<s-tasinf-linux.adb \
1781 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1782 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
1784 LIBGNAT_TARGET_PAIRS_32 = \
1785 g-trasym.ads<g-trasym-unimplemented.ads \
1786 g-trasym.adb<g-trasym-unimplemented.adb \
1787 system.ads<system-linux-sparc.ads
1789 LIBGNAT_TARGET_PAIRS_64 = \
1790 system.ads<system-linux-sparcv9.ads
1792 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1793 LIBGNAT_TARGET_PAIRS = \
1794 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1796 LIBGNAT_TARGET_PAIRS = \
1797 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1800 TOOLS_TARGET_PAIRS = \
1801 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1802 indepsw.adb<indepsw-gnu.adb
1804 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1806 THREADSLIB = -lpthread
1807 GNATLIB_SHARED = gnatlib-shared-dual
1809 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1810 LIBRARY_VERSION := $(LIB_VERSION)
1813 ifeq ($(strip $(filter-out hppa% linux%,$(arch) $(osys))),)
1814 LIBGNAT_TARGET_PAIRS = \
1815 a-intnam.ads<a-intnam-linux.ads \
1816 s-inmaop.adb<s-inmaop-posix.adb \
1817 s-intman.adb<s-intman-posix.adb \
1818 s-linux.ads<s-linux-hppa.ads \
1819 s-osinte.adb<s-osinte-posix.adb \
1820 s-osinte.ads<s-osinte-linux.ads \
1821 s-osprim.adb<s-osprim-posix.adb \
1822 s-taprop.adb<s-taprop-linux.adb \
1823 s-tasinf.ads<s-tasinf-linux.ads \
1824 s-tasinf.adb<s-tasinf-linux.adb \
1825 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1826 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1827 g-trasym.ads<g-trasym-unimplemented.ads \
1828 g-trasym.adb<g-trasym-unimplemented.adb \
1829 system.ads<system-linux-hppa.ads
1831 TOOLS_TARGET_PAIRS = \
1832 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1833 indepsw.adb<indepsw-gnu.adb
1835 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1837 THREADSLIB = -lpthread
1838 GNATLIB_SHARED = gnatlib-shared-dual
1840 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1841 LIBRARY_VERSION := $(LIB_VERSION)
1844 ifeq ($(strip $(filter-out sh4% linux%,$(arch) $(osys))),)
1845 LIBGNAT_TARGET_PAIRS = \
1846 a-intnam.ads<a-intnam-linux.ads \
1847 s-inmaop.adb<s-inmaop-posix.adb \
1848 s-intman.adb<s-intman-posix.adb \
1849 s-linux.ads<s-linux.ads \
1850 s-osinte.adb<s-osinte-posix.adb \
1851 s-osinte.ads<s-osinte-linux.ads \
1852 s-osprim.adb<s-osprim-posix.adb \
1853 s-taprop.adb<s-taprop-linux.adb \
1854 s-tasinf.ads<s-tasinf-linux.ads \
1855 s-tasinf.adb<s-tasinf-linux.adb \
1856 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1857 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1858 system.ads<system-linux-sh4.ads
1860 TOOLS_TARGET_PAIRS = \
1861 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1862 indepsw.adb<indepsw-linux.adb
1864 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1867 THREADSLIB = -lpthread
1868 GNATLIB_SHARED = gnatlib-shared-dual
1870 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1871 LIBRARY_VERSION := $(LIB_VERSION)
1874 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1875 LIBGNAT_TARGET_PAIRS = \
1876 a-intnam.ads<a-intnam-linux.ads \
1877 a-numaux.ads<a-numaux-libc-x86.ads \
1878 s-inmaop.adb<s-inmaop-posix.adb \
1879 s-intman.adb<s-intman-posix.adb \
1880 s-linux.ads<s-linux.ads \
1881 s-osinte.ads<s-osinte-linux.ads \
1882 s-osinte.adb<s-osinte-posix.adb \
1883 s-osprim.adb<s-osprim-posix.adb \
1884 s-taprop.adb<s-taprop-linux.adb \
1885 s-tasinf.ads<s-tasinf-linux.ads \
1886 s-tasinf.adb<s-tasinf-linux.adb \
1887 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1888 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1889 g-sercom.adb<g-sercom-linux.adb \
1890 system.ads<system-linux-ia64.ads
1892 TOOLS_TARGET_PAIRS = \
1893 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1894 indepsw.adb<indepsw-gnu.adb
1896 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1899 THREADSLIB=-lpthread
1900 GNATLIB_SHARED=gnatlib-shared-dual
1902 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1903 LIBRARY_VERSION := $(LIB_VERSION)
1906 ifeq ($(strip $(filter-out ia64% hp hpux%,$(targ))),)
1907 LIBGNAT_TARGET_PAIRS = \
1908 a-intnam.ads<a-intnam-hpux.ads \
1909 s-inmaop.adb<s-inmaop-posix.adb \
1910 s-intman.adb<s-intman-posix.adb \
1911 s-osinte.adb<s-osinte-posix.adb \
1912 s-osinte.ads<s-osinte-hpux.ads \
1913 s-osprim.adb<s-osprim-posix.adb \
1914 s-taprop.adb<s-taprop-posix.adb \
1915 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1916 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1917 system.ads<system-hpux-ia64.ads
1919 TOOLS_TARGET_PAIRS = \
1920 mlib-tgt-specific.adb<mlib-tgt-specific-ia64-hpux.adb
1923 THREADSLIB=-lpthread
1924 GNATLIB_SHARED=gnatlib-shared-dual
1928 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1929 LIBRARY_VERSION := $(LIB_VERSION)
1932 ifeq ($(strip $(filter-out alpha% linux%,$(arch) $(osys))),)
1933 LIBGNAT_TARGET_PAIRS = \
1934 a-intnam.ads<a-intnam-linux.ads \
1935 s-inmaop.adb<s-inmaop-posix.adb \
1936 s-intman.adb<s-intman-posix.adb \
1937 s-linux.ads<s-linux-alpha.ads \
1938 s-osinte.ads<s-osinte-linux.ads \
1939 s-osinte.adb<s-osinte-posix.adb \
1940 s-osprim.adb<s-osprim-posix.adb \
1941 s-taprop.adb<s-taprop-linux.adb \
1942 s-tasinf.ads<s-tasinf-linux.ads \
1943 s-tasinf.adb<s-tasinf-linux.adb \
1944 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1945 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1946 g-trasym.ads<g-trasym-unimplemented.ads \
1947 g-trasym.adb<g-trasym-unimplemented.adb \
1948 system.ads<system-linux-alpha.ads
1950 TOOLS_TARGET_PAIRS = \
1951 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1952 indepsw.adb<indepsw-gnu.adb
1954 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1957 THREADSLIB=-lpthread
1958 GNATLIB_SHARED=gnatlib-shared-dual
1959 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1960 LIBRARY_VERSION := $(LIB_VERSION)
1963 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
1964 LIBGNAT_TARGET_PAIRS = \
1965 a-intnam.ads<a-intnam-linux.ads \
1966 a-numaux.adb<a-numaux-x86.adb \
1967 a-numaux.ads<a-numaux-x86.ads \
1968 s-inmaop.adb<s-inmaop-posix.adb \
1969 s-intman.adb<s-intman-posix.adb \
1970 s-linux.ads<s-linux.ads \
1971 s-osinte.ads<s-osinte-linux.ads \
1972 s-osinte.adb<s-osinte-posix.adb \
1973 s-osprim.adb<s-osprim-posix.adb \
1974 s-taprop.adb<s-taprop-linux.adb \
1975 s-tasinf.ads<s-tasinf-linux.ads \
1976 s-tasinf.adb<s-tasinf-linux.adb \
1977 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1978 s-taspri.ads<s-taspri-posix.ads \
1979 g-sercom.adb<g-sercom-linux.adb \
1980 system.ads<system-linux-x86_64.ads
1982 TOOLS_TARGET_PAIRS = \
1983 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1984 indepsw.adb<indepsw-gnu.adb
1986 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1988 THREADSLIB=-lpthread
1989 GNATLIB_SHARED=gnatlib-shared-dual
1991 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1992 LIBRARY_VERSION := $(LIB_VERSION)
1995 ifeq ($(strip $(filter-out darwin%,$(osys))),)
1996 ifeq ($(strip $(filter-out %86,$(arch))),)
1997 LIBGNAT_TARGET_PAIRS = \
1998 a-intnam.ads<a-intnam-darwin.ads \
1999 s-inmaop.adb<s-inmaop-posix.adb \
2000 s-intman.adb<s-intman-susv3.adb \
2001 s-osinte.adb<s-osinte-darwin.adb \
2002 s-osinte.ads<s-osinte-darwin.ads \
2003 s-osprim.adb<s-osprim-darwin.adb \
2004 s-taprop.adb<s-taprop-posix.adb \
2005 s-taspri.ads<s-taspri-posix.ads \
2006 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2007 g-trasym.ads<g-trasym-unimplemented.ads \
2008 g-trasym.adb<g-trasym-unimplemented.adb \
2009 a-numaux.ads<a-numaux-x86.ads \
2010 a-numaux.adb<a-numaux-x86.adb
2011 ifeq ($(strip $(MULTISUBDIR)),/x86_64)
2012 LIBGNAT_TARGET_PAIRS += \
2013 system.ads<system-darwin-x86_64.ads
2015 LIBGNAT_TARGET_PAIRS += \
2016 system.ads<system-darwin-x86.ads
2020 ifeq ($(strip $(filter-out %x86_64,$(arch))),)
2021 LIBGNAT_TARGET_PAIRS = \
2022 a-intnam.ads<a-intnam-darwin.ads \
2023 s-inmaop.adb<s-inmaop-posix.adb \
2024 s-intman.adb<s-intman-susv3.adb \
2025 s-osinte.adb<s-osinte-darwin.adb \
2026 s-osinte.ads<s-osinte-darwin.ads \
2027 s-osprim.adb<s-osprim-darwin.adb \
2028 s-taprop.adb<s-taprop-posix.adb \
2029 s-taspri.ads<s-taspri-posix.ads \
2030 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2031 a-numaux.ads<a-numaux-x86.ads \
2032 a-numaux.adb<a-numaux-x86.adb \
2033 g-trasym.ads<g-trasym-unimplemented.ads \
2034 g-trasym.adb<g-trasym-unimplemented.adb \
2035 system.ads<system-darwin-x86_64.ads
2038 ifeq ($(strip $(filter-out powerpc%,$(arch))),)
2039 LIBGNAT_TARGET_PAIRS = \
2040 a-intnam.ads<a-intnam-darwin.ads \
2041 s-inmaop.adb<s-inmaop-posix.adb \
2042 s-intman.adb<s-intman-posix.adb \
2043 s-osinte.adb<s-osinte-darwin.adb \
2044 s-osinte.ads<s-osinte-darwin.ads \
2045 s-osprim.adb<s-osprim-posix.adb \
2046 s-taprop.adb<s-taprop-posix.adb \
2047 s-taspri.ads<s-taspri-posix.ads \
2048 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2049 a-numaux.ads<a-numaux-darwin.ads \
2050 a-numaux.adb<a-numaux-darwin.adb \
2051 g-trasym.ads<g-trasym-unimplemented.ads \
2052 g-trasym.adb<g-trasym-unimplemented.adb \
2053 system.ads<system-darwin-ppc.ads
2056 TOOLS_TARGET_PAIRS = \
2057 mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb
2060 GNATLIB_SHARED = gnatlib-shared-darwin
2061 SO_OPTS = -Wl,-flat_namespace -shared-libgcc
2064 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
2065 LIBRARY_VERSION := $(LIB_VERSION)
2069 ifneq ($(EH_MECHANISM),)
2070 LIBGNAT_TARGET_PAIRS += a-exexpr.adb<a-exexpr$(EH_MECHANISM).adb
2071 EXTRA_LIBGNAT_SRCS+=raise$(EH_MECHANISM).c
2072 EXTRA_LIBGNAT_OBJS+=raise$(EH_MECHANISM).o
2075 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
2076 # explicitly already. The base files (a-except.ad?) are used only for building
2077 # the compiler and other basic tools.
2078 # These base versions lack Ada 2005 additions which would cause bootstrap
2079 # problems if included in the compiler and other basic tools.
2081 ifeq ($(filter-out a-except%,$(LIBGNAT_TARGET_PAIRS)),$(LIBGNAT_TARGET_PAIRS))
2082 LIBGNAT_TARGET_PAIRS += \
2083 a-except.ads<a-except-2005.ads \
2084 a-except.adb<a-except-2005.adb
2087 # The runtime library for gnat comprises two directories. One contains the
2088 # Ada source files that the compiler (gnat1) needs -- these files are listed
2089 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
2090 # corresponding .ali files for the parts written in Ada, libgnat.a for
2091 # the parts of the runtime written in C, and libgthreads.a for the pthreads
2092 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
2093 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
2094 # go into the directory. The pthreads emulation is built in the threads
2095 # subdirectory and copied.
2096 LIBGNAT_SRCS = adaint.c adaint.h argv.c cio.c cstreams.c \
2097 errno.c exit.c cal.c ctrl_c.c env.c env.h arit64.c \
2098 raise.h raise.c sysdep.c aux-io.c init.c initialize.c seh_init.c \
2099 final.c tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c expect.c mkdir.c \
2100 socket.c gsocket.h targext.c $(EXTRA_LIBGNAT_SRCS)
2102 LIBGNAT_OBJS = adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o env.o \
2103 raise.o sysdep.o aux-io.o init.o initialize.o seh_init.o cal.o arit64.o \
2104 final.o tracebak.o expect.o mkdir.o socket.o targext.o $(EXTRA_LIBGNAT_OBJS)
2106 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2107 # the library installation will change and there will be a
2108 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2109 # from ADA_INCLUDE_SRCS.
2111 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2112 # the following include file:
2114 include $(fsrcdir)/ada/Makefile.rtl
2116 GNATRTL_LINEARALGEBRA_OBJS = a-nlcoar.o a-nllcar.o a-nllrar.o a-nlrear.o \
2117 a-nucoar.o a-nurear.o i-forbla.o i-forlap.o s-gearop.o
2119 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
2120 $(GNATRTL_LINEARALGEBRA_OBJS) g-trasym.o memtrack.o
2122 # Default run time files
2125 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2126 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2127 sequenio.ads system.ads memtrack.adb \
2128 a-[a-o]*.adb a-[p-z]*.adb a-[a-o]*.ads a-[p-z]*.ads g-*.ad? i-*.ad? \
2129 s-[a-o]*.adb s-[p-z]*.adb s-[a-o]*.ads s-[p-z]*.ads
2131 LIBGNAT=../$(RTSDIR)/libgnat.a
2133 GCC_LINK=$(CC) -static-libgcc $(ADA_INCLUDES)
2135 # when compiling the tools, the runtime has to be first on the path so that
2136 # it hides the runtime files lying with the rest of the sources
2137 ifeq ($(TOOLSCASE),native)
2138 vpath %.ads ../$(RTSDIR) ../
2139 vpath %.adb ../$(RTSDIR) ../
2140 vpath %.c ../$(RTSDIR) ../
2141 vpath %.h ../$(RTSDIR) ../
2144 # in the cross tools case, everything is compiled with the native
2145 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2146 ifeq ($(TOOLSCASE),cross)
2154 $(GNATMAKE) -c -b $(ADA_INCLUDES) \
2155 --GNATBIND="$(GNATBIND)" --GCC="$(CC) $(ALL_ADAFLAGS)" \
2156 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2157 gnatclean -bargs $(ADA_INCLUDES) $(GNATBIND_FLAGS)
2158 $(GNATLINK) -v gnatcmd -o ../../gnat$(exeext) \
2159 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2160 $(GNATLINK) -v gnatchop -o ../../gnatchop$(exeext) \
2161 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2162 $(GNATLINK) -v gnatkr -o ../../gnatkr$(exeext) \
2163 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2164 $(GNATLINK) -v gnatls -o ../../gnatls$(exeext) \
2165 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2166 $(GNATLINK) -v gnatprep -o ../../gnatprep$(exeext) \
2167 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2168 $(GNATLINK) -v gnatxref -o ../../gnatxref$(exeext) \
2169 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2170 $(GNATLINK) -v gnatfind -o ../../gnatfind$(exeext) \
2171 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2172 $(GNATLINK) -v gnatname -o ../../gnatname$(exeext) \
2173 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2174 $(GNATLINK) -v gnatclean -o ../../gnatclean$(exeext) \
2175 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2177 ../../gnatsym$(exeext):
2178 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
2179 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
2180 $(GNATLINK) -v gnatsym -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2182 ../../gnatdll$(exeext):
2183 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
2184 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatdll
2185 $(GNATLINK) -v gnatdll -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2187 ../../vxaddr2line$(exeext): targext.o
2188 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
2189 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
2190 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(GCC_LINK)" targext.o $(CLIB)
2192 gnatmake-re: link.o targext.o
2193 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
2194 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
2195 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
2196 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
2197 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2199 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2200 # with the former version of gnatlink itself which cannot override itself.
2201 gnatlink-re: link.o targext.o
2202 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
2203 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
2204 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
2205 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2206 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
2208 # Needs to be built with CC=gcc
2209 # Since the RTL should be built with the latest compiler, remove the
2210 # stamp target in the parent directory whenever gnat1 is rebuilt
2212 # Likewise for the tools
2213 ../../gnatmake$(exeext): $(P) b_gnatm.o link.o targext.o $(GNATMAKE_OBJS)
2214 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
2217 ../../gnatlink$(exeext): $(P) b_gnatl.o link.o targext.o $(GNATLINK_OBJS)
2218 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
2221 ../stamp-gnatlib-$(RTSDIR):
2222 @if [ ! -f stamp-gnatlib-$(RTSDIR) ] ; \
2224 $(ECHO) You must first build the GNAT library: make gnatlib; \
2230 install-gnatlib: ../stamp-gnatlib-$(RTSDIR)
2231 # Create the directory before deleting it, in case the directory is
2232 # a list of directories (as it may be on VMS). This ensures we are
2233 # deleting the right one.
2234 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2235 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2236 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2237 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2238 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2239 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2240 for file in $(RTSDIR)/*.ali; do \
2241 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2243 -$(INSTALL_DATA) $(RTSDIR)/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2244 -cd $(RTSDIR); for file in *$(arext);do \
2245 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2246 $(RANLIB_FOR_TARGET) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
2248 -$(foreach file, $(EXTRA_ADALIB_FILES), \
2249 $(INSTALL_DATA_DATE) $(RTSDIR)/$(file) $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
2251 # Install the shared libraries, if any, using $(INSTALL) instead
2252 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2253 # for shared libraries on some targets, e.g. on HP-UX where the x
2254 # permission is required.
2255 # Also install the .dSYM directories if they exist (these directories
2256 # contain the debug information for the shared libraries on darwin)
2257 for file in gnat gnarl; do \
2258 if [ -f $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
2259 $(INSTALL) $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2260 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2262 if [ -f $(RTSDIR)/lib$${file}$(soext) ]; then \
2263 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2264 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
2266 if [ -d $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM ]; then \
2267 $(CP) -r $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM \
2268 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2271 # This copy must be done preserving the date on the original file.
2272 for file in $(RTSDIR)/*.ad?; do \
2273 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
2275 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
2276 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
2278 ../stamp-gnatlib2-$(RTSDIR):
2279 $(RM) $(RTSDIR)/s-*.ali
2280 $(RM) $(RTSDIR)/s-*$(objext)
2281 $(RM) $(RTSDIR)/a-*.ali
2282 $(RM) $(RTSDIR)/a-*$(objext)
2283 $(RM) $(RTSDIR)/*.ali
2284 $(RM) $(RTSDIR)/*$(objext)
2285 $(RM) $(RTSDIR)/*$(arext)
2286 $(RM) $(RTSDIR)/*$(soext)
2287 touch ../stamp-gnatlib2-$(RTSDIR)
2288 $(RM) ../stamp-gnatlib-$(RTSDIR)
2290 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
2291 # successive target commands. Although the Gnu make documentation
2292 # implies this is true on all systems, I suspect it may not be, So care
2293 # has been taken to allow a sed script to look for ";)" and substitue
2294 # for ";" the appropriate character in the range of lines below
2295 # beginning with "GNULLI Begin" and ending with "GNULLI End"
2297 # GNULLI Begin ###########################################################
2299 ../stamp-gnatlib1-$(RTSDIR): Makefile ../stamp-gnatlib2-$(RTSDIR)
2302 $(CHMOD) u+w $(RTSDIR)
2303 # Copy target independent sources
2304 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
2305 $(LN_S) $(fsrcpfx)ada/$(f) $(RTSDIR) ;) true
2306 # Remove files to be replaced by target dependent sources
2307 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2308 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR))))
2309 $(RM) $(RTSDIR)/*-*-*.ads $(RTSDIR)/*-*-*.adb
2310 # Copy new target dependent sources
2311 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2312 $(LN_S) $(fsrcpfx)ada/$(word 2,$(subst <, ,$(PAIR))) \
2313 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)));)
2314 # Copy generated target dependent sources
2315 $(RM) $(RTSDIR)/s-oscons.ads
2316 (cd $(RTSDIR); $(LN_S) ../s-oscons.ads s-oscons.ads)
2317 $(RM) ../stamp-gnatlib-$(RTSDIR)
2318 touch ../stamp-gnatlib1-$(RTSDIR)
2320 # GNULLI End #############################################################
2322 # Don't use semicolon separated shell commands that involve list expansions.
2323 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
2324 # line lengths in excess of 256 characters.
2325 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
2326 # is guaranteed to overflow the buffer.
2328 gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../stamp-gnatlib2-$(RTSDIR)
2329 $(MAKE) -C $(RTSDIR) \
2330 CC="`echo \"$(GCC_FOR_TARGET)\" \
2331 | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2332 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2333 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
2334 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2336 -f ../Makefile $(LIBGNAT_OBJS)
2337 $(MAKE) -C $(RTSDIR) \
2338 CC="`echo \"$(GCC_FOR_TARGET)\" \
2339 | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2341 CFLAGS="$(GNATLIBCFLAGS)" \
2342 ADAFLAGS="$(GNATLIBFLAGS)" \
2343 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2347 $(RM) $(RTSDIR)/libgnat$(arext) $(RTSDIR)/libgnarl$(arext)
2348 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnat$(arext) \
2349 $(addprefix $(RTSDIR)/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
2350 ifneq ($(PREFIX_OBJS),)
2351 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgccprefix$(arext) \
2353 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgccprefix$(arext)
2355 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnat$(arext)
2356 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnarl$(arext) \
2357 $(addprefix $(RTSDIR)/,$(GNATRTL_TASKING_OBJS))
2358 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnarl$(arext)
2359 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnala$(arext) \
2360 $(addprefix $(RTSDIR)/,$(GNATRTL_LINEARALGEBRA_OBJS))
2361 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnala$(arext)
2362 ifeq ($(GMEM_LIB),gmemlib)
2363 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgmem$(arext) \
2364 $(RTSDIR)/memtrack.o
2365 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgmem$(arext)
2367 $(CHMOD) a-wx $(RTSDIR)/*.ali
2368 touch ../stamp-gnatlib-$(RTSDIR)
2370 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2371 gnatlib-shared-default:
2372 $(MAKE) $(FLAGS_TO_PASS) \
2373 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2374 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2375 MULTISUBDIR="$(MULTISUBDIR)" \
2376 THREAD_KIND="$(THREAD_KIND)" \
2378 $(RM) $(RTSDIR)/libgna*$(soext)
2379 cd $(RTSDIR); ../../xgcc -B../../ -shared $(GNATLIBCFLAGS) \
2380 $(TARGET_LIBGCC2_CFLAGS) \
2381 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2382 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2383 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2385 cd $(RTSDIR); ../../xgcc -B../../ -shared $(GNATLIBCFLAGS) \
2386 $(TARGET_LIBGCC2_CFLAGS) \
2387 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2388 $(GNATRTL_TASKING_OBJS) \
2389 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2391 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2393 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2396 gnatlib-shared-dual:
2397 $(MAKE) $(FLAGS_TO_PASS) \
2398 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2399 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2400 MULTISUBDIR="$(MULTISUBDIR)" \
2401 THREAD_KIND="$(THREAD_KIND)" \
2402 gnatlib-shared-default
2403 $(MV) $(RTSDIR)/libgna*$(soext) .
2404 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2405 $(MAKE) $(FLAGS_TO_PASS) \
2406 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2407 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2408 MULTISUBDIR="$(MULTISUBDIR)" \
2409 THREAD_KIND="$(THREAD_KIND)" \
2411 $(MV) libgna*$(soext) $(RTSDIR)
2413 gnatlib-shared-dual-win32:
2414 $(MAKE) $(FLAGS_TO_PASS) \
2415 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2416 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2417 MULTISUBDIR="$(MULTISUBDIR)" \
2418 THREAD_KIND="$(THREAD_KIND)" \
2419 gnatlib-shared-win32
2420 $(MV) $(RTSDIR)/libgna*$(soext) .
2421 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2422 $(MAKE) $(FLAGS_TO_PASS) \
2423 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2424 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2425 MULTISUBDIR="$(MULTISUBDIR)" \
2426 THREAD_KIND="$(THREAD_KIND)" \
2428 $(MV) libgna*$(soext) $(RTSDIR)
2430 # ??? we need to add the option to support auto-import of arrays/records to
2431 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2432 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2434 gnatlib-shared-win32:
2435 $(MAKE) $(FLAGS_TO_PASS) \
2436 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2437 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2438 MULTISUBDIR="$(MULTISUBDIR)" \
2439 THREAD_KIND="$(THREAD_KIND)" \
2441 $(RM) $(RTSDIR)/libgna*$(soext)
2442 cd $(RTSDIR); ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2443 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2444 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2445 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
2446 cd $(RTSDIR); ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2447 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2448 $(GNATRTL_TASKING_OBJS) \
2449 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2450 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2452 gnatlib-shared-darwin:
2453 $(MAKE) $(FLAGS_TO_PASS) \
2454 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2455 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) \
2457 MULTISUBDIR="$(MULTISUBDIR)" \
2458 THREAD_KIND="$(THREAD_KIND)" \
2460 $(RM) $(RTSDIR)/libgnat$(soext) $(RTSDIR)/libgnarl$(soext)
2461 cd $(RTSDIR); ../../xgcc -B../../ -dynamiclib $(TARGET_LIBGCC2_CFLAGS) \
2462 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2463 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2465 -Wl,-install_name,@rpath/libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2467 cd $(RTSDIR); ../../xgcc -B../../ -dynamiclib $(TARGET_LIBGCC2_CFLAGS) \
2468 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2469 $(GNATRTL_TASKING_OBJS) \
2471 -Wl,-install_name,@rpath/libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2472 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2473 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2475 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2477 cd $(RTSDIR); dsymutil libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2478 cd $(RTSDIR); dsymutil libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext)
2481 $(MAKE) $(FLAGS_TO_PASS) \
2482 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2483 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2484 MULTISUBDIR="$(MULTISUBDIR)" \
2485 THREAD_KIND="$(THREAD_KIND)" \
2487 $(RM) $(RTSDIR)/libgna*$(soext)
2489 ../../gnatsym -s SYMVEC_$$$$.opt \
2490 $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) && \
2491 ../../xgcc -g -B../../ -shared -shared-libgcc \
2492 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
2493 sys\$$library:trace.exe \
2494 --for-linker=/noinform \
2495 --for-linker=SYMVEC_$$$$.opt \
2496 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2498 ../../gnatsym -s SYMVEC_$$$$.opt \
2499 $(GNATRTL_TASKING_OBJS) && \
2500 ../../xgcc -g -B../../ -shared -shared-libgcc \
2501 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2502 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2503 sys\$$library:trace.exe \
2504 --for-linker=/noinform \
2505 --for-linker=SYMVEC_$$$$.opt \
2506 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2509 $(MAKE) $(FLAGS_TO_PASS) \
2510 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2511 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2512 MULTISUBDIR="$(MULTISUBDIR)" \
2513 THREAD_KIND="$(THREAD_KIND)" \
2514 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
2518 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="" ../stamp-gnatlib1-$(RTSDIR)
2519 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2520 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2521 $(MAKE) $(FLAGS_TO_PASS) \
2523 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2524 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2525 MULTISUBDIR="$(MULTISUBDIR)" \
2526 THREAD_KIND="$(THREAD_KIND)" \
2527 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2530 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="-gcc" ../stamp-gnatlib1-$(RTSDIR)
2531 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2532 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2533 $(MAKE) $(FLAGS_TO_PASS) \
2534 EH_MECHANISM="-gcc" \
2535 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2536 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2537 MULTISUBDIR="$(MULTISUBDIR)" \
2538 THREAD_KIND="$(THREAD_KIND)" \
2539 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2541 # .s files for cross-building
2543 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
2545 # Compiling object files from source files.
2547 # Note that dependencies on obstack.h are not written
2548 # because that file is not part of GCC.
2549 # Dependencies on gvarargs.h are not written
2550 # because all that file does, when not compiling with GCC,
2551 # is include the system varargs.h.
2553 b_gnatl.c : $(GNATLINK_OBJS)
2554 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatl.c gnatlink.ali
2555 b_gnatl.o : b_gnatl.c
2557 b_gnatm.c : $(GNATMAKE_OBJS)
2558 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatm.c gnatmake.ali
2559 b_gnatm.o : b_gnatm.c
2561 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2562 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2564 # force no sibling call optimization on s-traceb.o so the number of stack
2565 # frames to be skipped when computing a call chain is not modified by
2566 # optimization. However we can do that only when building the runtime
2567 # (not the compiler) because the -fno-optimize-sibling-calls option exists
2568 # only in GCC 3 and above.
2570 ifneq (,$(findstring xgcc,$(CC)))
2571 NO_SIBLING_ADAFLAGS=-fno-optimize-sibling-calls
2573 NO_SIBLING_ADAFLAGS=
2576 s-traceb.o : s-traceb.adb
2577 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2578 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) \
2581 # force debugging information on s-tasdeb.o so that it is always
2582 # possible to set conditional breakpoints on tasks.
2584 s-tasdeb.o : s-tasdeb.adb s-tasdeb.ads
2585 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2588 # force no function reordering on a-except.o because of the exclusion bounds
2589 # mechanism (see the source file for more detailed information). However we
2590 # can do that only when building the runtime (not the compiler) because the
2591 # -fno-toplevel-reorder option exists only in GCC 4.2 and above.
2593 ifneq (,$(findstring xgcc,$(CC)))
2594 NO_REORDER_ADAFLAGS=-fno-toplevel-reorder
2596 NO_REORDER_ADAFLAGS=
2599 # force debugging information on a-except.o so that it is always
2600 # possible to set conditional breakpoints on exceptions.
2601 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2603 a-except.o : a-except.adb a-except.ads
2604 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O1 -fno-inline \
2605 $(NO_REORDER_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
2607 # compile s-except.o without optimization and with debug info to let the
2608 # debugger set breakpoints and inspect subprogram parameters on exception
2611 s-except.o : s-except.adb s-except.ads
2612 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2615 # force debugging information on s-assert.o so that it is always
2616 # possible to set breakpoint on assert failures.
2618 s-assert.o : s-assert.adb s-assert.ads a-except.ads
2619 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O2 $(ADA_INCLUDES) \
2622 adadecode.o : adadecode.c adadecode.h
2626 deftarg.o : deftarg.c
2628 exit.o : adaint.h exit.c
2634 socket.o : socket.c gsocket.h
2636 raise-gcc.o : raise-gcc.c raise.h
2637 raise.o : raise.c raise.h
2638 vx_stack_info.o : vx_stack_info.c
2641 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2642 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2644 init.o : init.c adaint.h raise.h
2645 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2646 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2648 initialize.o : initialize.c raise.h
2649 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2650 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2652 targext.o : targext.c
2653 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2654 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
2657 # Need to keep the frame pointer in this file to pop the stack properly on
2659 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2660 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
2661 $(INCLUDES) -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2663 # In GNU Make, ignore whether `stage*' exists.
2664 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2665 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2669 # Gnatlbr, Vms_help, and Gnat.hlp are only used on VMS
2671 ../../gnatlbr$(exeext): ../../prefix.o
2672 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlbr --GCC="$(CC) $(ALL_ADAFLAGS)"
2673 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlbr
2674 $(GNATLINK) -v gnatlbr -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2676 ../../vms_help$(exeext):
2677 $(GNATMAKE) -c $(ADA_INCLUDES) vms_help --GCC="$(CC) $(ALL_ADAFLAGS)"
2678 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vms_help
2679 $(GNATLINK) -v vms_help -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2681 ../../gnat.hlp: ../../vms_help$(exeext)
2682 ../../vms_help$(exeext) $(fsrcdir)/ada/gnat.help_in \
2683 $(fsrcdir)/ada/vms_data.ads ../../gnat.hlp