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 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
1757 LIBGNAT_TARGET_PAIRS += \
1758 s-osinte.ads<s-osinte-linux-xenomai.ads \
1759 s-osprim.adb<s-osprim-linux-xenomai.adb \
1760 s-taprop.adb<s-taprop-linux-xenomai.adb \
1761 s-taspri.ads<s-taspri-linux-xenomai.ads \
1762 system.ads<system-linux-ppc-xenomai.ads
1764 LIBGNAT_TARGET_PAIRS += \
1765 s-osinte.ads<s-osinte-linux.ads \
1766 s-osprim.adb<s-osprim-posix.adb \
1767 s-taprop.adb<s-taprop-linux.adb \
1768 s-tasinf.ads<s-tasinf-linux.ads \
1769 s-tasinf.adb<s-tasinf-linux.adb \
1770 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1771 system.ads<system-linux-ppc.ads
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 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1784 LIBRARY_VERSION := $(LIB_VERSION)
1787 ifeq ($(strip $(filter-out sparc% linux%,$(arch) $(osys))),)
1788 LIBGNAT_TARGET_PAIRS_COMMON = \
1789 a-intnam.ads<a-intnam-linux.ads \
1790 s-inmaop.adb<s-inmaop-posix.adb \
1791 s-intman.adb<s-intman-posix.adb \
1792 s-linux.ads<s-linux.ads \
1793 s-osinte.adb<s-osinte-posix.adb \
1794 s-osinte.ads<s-osinte-linux.ads \
1795 s-osprim.adb<s-osprim-posix.adb \
1796 s-taprop.adb<s-taprop-linux.adb \
1797 s-tasinf.ads<s-tasinf-linux.ads \
1798 s-tasinf.adb<s-tasinf-linux.adb \
1799 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1800 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
1802 LIBGNAT_TARGET_PAIRS_32 = \
1803 g-trasym.ads<g-trasym-unimplemented.ads \
1804 g-trasym.adb<g-trasym-unimplemented.adb \
1805 system.ads<system-linux-sparc.ads
1807 LIBGNAT_TARGET_PAIRS_64 = \
1808 system.ads<system-linux-sparcv9.ads
1810 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1811 LIBGNAT_TARGET_PAIRS = \
1812 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1814 LIBGNAT_TARGET_PAIRS = \
1815 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1818 TOOLS_TARGET_PAIRS = \
1819 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1820 indepsw.adb<indepsw-gnu.adb
1822 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1824 THREADSLIB = -lpthread
1825 GNATLIB_SHARED = gnatlib-shared-dual
1827 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1828 LIBRARY_VERSION := $(LIB_VERSION)
1831 ifeq ($(strip $(filter-out hppa% linux%,$(arch) $(osys))),)
1832 LIBGNAT_TARGET_PAIRS = \
1833 a-intnam.ads<a-intnam-linux.ads \
1834 s-inmaop.adb<s-inmaop-posix.adb \
1835 s-intman.adb<s-intman-posix.adb \
1836 s-linux.ads<s-linux-hppa.ads \
1837 s-osinte.adb<s-osinte-posix.adb \
1838 s-osinte.ads<s-osinte-linux.ads \
1839 s-osprim.adb<s-osprim-posix.adb \
1840 s-taprop.adb<s-taprop-linux.adb \
1841 s-tasinf.ads<s-tasinf-linux.ads \
1842 s-tasinf.adb<s-tasinf-linux.adb \
1843 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1844 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1845 g-trasym.ads<g-trasym-unimplemented.ads \
1846 g-trasym.adb<g-trasym-unimplemented.adb \
1847 system.ads<system-linux-hppa.ads
1849 TOOLS_TARGET_PAIRS = \
1850 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1851 indepsw.adb<indepsw-gnu.adb
1853 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1855 THREADSLIB = -lpthread
1856 GNATLIB_SHARED = gnatlib-shared-dual
1858 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1859 LIBRARY_VERSION := $(LIB_VERSION)
1862 ifeq ($(strip $(filter-out sh4% linux%,$(arch) $(osys))),)
1863 LIBGNAT_TARGET_PAIRS = \
1864 a-intnam.ads<a-intnam-linux.ads \
1865 s-inmaop.adb<s-inmaop-posix.adb \
1866 s-intman.adb<s-intman-posix.adb \
1867 s-linux.ads<s-linux.ads \
1868 s-osinte.adb<s-osinte-posix.adb \
1869 s-osinte.ads<s-osinte-linux.ads \
1870 s-osprim.adb<s-osprim-posix.adb \
1871 s-taprop.adb<s-taprop-linux.adb \
1872 s-tasinf.ads<s-tasinf-linux.ads \
1873 s-tasinf.adb<s-tasinf-linux.adb \
1874 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1875 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1876 system.ads<system-linux-sh4.ads
1878 TOOLS_TARGET_PAIRS = \
1879 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1880 indepsw.adb<indepsw-linux.adb
1882 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1885 THREADSLIB = -lpthread
1886 GNATLIB_SHARED = gnatlib-shared-dual
1888 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1889 LIBRARY_VERSION := $(LIB_VERSION)
1892 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1893 LIBGNAT_TARGET_PAIRS = \
1894 a-intnam.ads<a-intnam-linux.ads \
1895 a-numaux.ads<a-numaux-libc-x86.ads \
1896 s-inmaop.adb<s-inmaop-posix.adb \
1897 s-intman.adb<s-intman-posix.adb \
1898 s-linux.ads<s-linux.ads \
1899 s-osinte.ads<s-osinte-linux.ads \
1900 s-osinte.adb<s-osinte-posix.adb \
1901 s-osprim.adb<s-osprim-posix.adb \
1902 s-taprop.adb<s-taprop-linux.adb \
1903 s-tasinf.ads<s-tasinf-linux.ads \
1904 s-tasinf.adb<s-tasinf-linux.adb \
1905 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1906 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1907 g-sercom.adb<g-sercom-linux.adb \
1908 system.ads<system-linux-ia64.ads
1910 TOOLS_TARGET_PAIRS = \
1911 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1912 indepsw.adb<indepsw-gnu.adb
1914 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1917 THREADSLIB=-lpthread
1918 GNATLIB_SHARED=gnatlib-shared-dual
1920 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1921 LIBRARY_VERSION := $(LIB_VERSION)
1924 ifeq ($(strip $(filter-out ia64% hp hpux%,$(targ))),)
1925 LIBGNAT_TARGET_PAIRS = \
1926 a-intnam.ads<a-intnam-hpux.ads \
1927 s-inmaop.adb<s-inmaop-posix.adb \
1928 s-intman.adb<s-intman-posix.adb \
1929 s-osinte.adb<s-osinte-posix.adb \
1930 s-osinte.ads<s-osinte-hpux.ads \
1931 s-osprim.adb<s-osprim-posix.adb \
1932 s-taprop.adb<s-taprop-posix.adb \
1933 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1934 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1935 system.ads<system-hpux-ia64.ads
1937 TOOLS_TARGET_PAIRS = \
1938 mlib-tgt-specific.adb<mlib-tgt-specific-ia64-hpux.adb
1941 THREADSLIB=-lpthread
1942 GNATLIB_SHARED=gnatlib-shared-dual
1946 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1947 LIBRARY_VERSION := $(LIB_VERSION)
1950 ifeq ($(strip $(filter-out alpha% linux%,$(arch) $(osys))),)
1951 LIBGNAT_TARGET_PAIRS = \
1952 a-intnam.ads<a-intnam-linux.ads \
1953 s-inmaop.adb<s-inmaop-posix.adb \
1954 s-intman.adb<s-intman-posix.adb \
1955 s-linux.ads<s-linux-alpha.ads \
1956 s-osinte.ads<s-osinte-linux.ads \
1957 s-osinte.adb<s-osinte-posix.adb \
1958 s-osprim.adb<s-osprim-posix.adb \
1959 s-taprop.adb<s-taprop-linux.adb \
1960 s-tasinf.ads<s-tasinf-linux.ads \
1961 s-tasinf.adb<s-tasinf-linux.adb \
1962 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1963 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1964 g-trasym.ads<g-trasym-unimplemented.ads \
1965 g-trasym.adb<g-trasym-unimplemented.adb \
1966 system.ads<system-linux-alpha.ads
1968 TOOLS_TARGET_PAIRS = \
1969 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1970 indepsw.adb<indepsw-gnu.adb
1972 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1975 THREADSLIB=-lpthread
1976 GNATLIB_SHARED=gnatlib-shared-dual
1977 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1978 LIBRARY_VERSION := $(LIB_VERSION)
1981 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
1982 LIBGNAT_TARGET_PAIRS = \
1983 a-intnam.ads<a-intnam-linux.ads \
1984 a-numaux.adb<a-numaux-x86.adb \
1985 a-numaux.ads<a-numaux-x86.ads \
1986 s-inmaop.adb<s-inmaop-posix.adb \
1987 s-intman.adb<s-intman-posix.adb \
1988 s-linux.ads<s-linux.ads \
1989 s-osinte.ads<s-osinte-linux.ads \
1990 s-osinte.adb<s-osinte-posix.adb \
1991 s-osprim.adb<s-osprim-posix.adb \
1992 s-taprop.adb<s-taprop-linux.adb \
1993 s-tasinf.ads<s-tasinf-linux.ads \
1994 s-tasinf.adb<s-tasinf-linux.adb \
1995 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1996 s-taspri.ads<s-taspri-posix.ads \
1997 g-sercom.adb<g-sercom-linux.adb \
1998 system.ads<system-linux-x86_64.ads
2000 TOOLS_TARGET_PAIRS = \
2001 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2002 indepsw.adb<indepsw-gnu.adb
2004 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
2006 THREADSLIB=-lpthread
2007 GNATLIB_SHARED=gnatlib-shared-dual
2009 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
2010 LIBRARY_VERSION := $(LIB_VERSION)
2013 ifeq ($(strip $(filter-out darwin%,$(osys))),)
2014 ifeq ($(strip $(filter-out %86,$(arch))),)
2015 LIBGNAT_TARGET_PAIRS = \
2016 a-intnam.ads<a-intnam-darwin.ads \
2017 s-inmaop.adb<s-inmaop-posix.adb \
2018 s-intman.adb<s-intman-susv3.adb \
2019 s-osinte.adb<s-osinte-darwin.adb \
2020 s-osinte.ads<s-osinte-darwin.ads \
2021 s-osprim.adb<s-osprim-darwin.adb \
2022 s-taprop.adb<s-taprop-posix.adb \
2023 s-taspri.ads<s-taspri-posix.ads \
2024 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2025 g-trasym.ads<g-trasym-unimplemented.ads \
2026 g-trasym.adb<g-trasym-unimplemented.adb \
2027 a-numaux.ads<a-numaux-x86.ads \
2028 a-numaux.adb<a-numaux-x86.adb
2029 ifeq ($(strip $(MULTISUBDIR)),/x86_64)
2030 LIBGNAT_TARGET_PAIRS += \
2031 system.ads<system-darwin-x86_64.ads
2033 LIBGNAT_TARGET_PAIRS += \
2034 system.ads<system-darwin-x86.ads
2038 ifeq ($(strip $(filter-out %x86_64,$(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-susv3.adb \
2043 s-osinte.adb<s-osinte-darwin.adb \
2044 s-osinte.ads<s-osinte-darwin.ads \
2045 s-osprim.adb<s-osprim-darwin.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-x86.ads \
2050 a-numaux.adb<a-numaux-x86.adb \
2051 g-trasym.ads<g-trasym-unimplemented.ads \
2052 g-trasym.adb<g-trasym-unimplemented.adb \
2053 system.ads<system-darwin-x86_64.ads
2056 ifeq ($(strip $(filter-out powerpc%,$(arch))),)
2057 LIBGNAT_TARGET_PAIRS = \
2058 a-intnam.ads<a-intnam-darwin.ads \
2059 s-inmaop.adb<s-inmaop-posix.adb \
2060 s-intman.adb<s-intman-posix.adb \
2061 s-osinte.adb<s-osinte-darwin.adb \
2062 s-osinte.ads<s-osinte-darwin.ads \
2063 s-osprim.adb<s-osprim-posix.adb \
2064 s-taprop.adb<s-taprop-posix.adb \
2065 s-taspri.ads<s-taspri-posix.ads \
2066 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2067 a-numaux.ads<a-numaux-darwin.ads \
2068 a-numaux.adb<a-numaux-darwin.adb \
2069 g-trasym.ads<g-trasym-unimplemented.ads \
2070 g-trasym.adb<g-trasym-unimplemented.adb \
2071 system.ads<system-darwin-ppc.ads
2074 TOOLS_TARGET_PAIRS = \
2075 mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb
2078 GNATLIB_SHARED = gnatlib-shared-darwin
2079 SO_OPTS = -Wl,-flat_namespace -shared-libgcc
2082 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
2083 LIBRARY_VERSION := $(LIB_VERSION)
2087 ifneq ($(EH_MECHANISM),)
2088 LIBGNAT_TARGET_PAIRS += a-exexpr.adb<a-exexpr$(EH_MECHANISM).adb
2089 EXTRA_LIBGNAT_SRCS+=raise$(EH_MECHANISM).c
2090 EXTRA_LIBGNAT_OBJS+=raise$(EH_MECHANISM).o
2093 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
2094 # explicitly already. The base files (a-except.ad?) are used only for building
2095 # the compiler and other basic tools.
2096 # These base versions lack Ada 2005 additions which would cause bootstrap
2097 # problems if included in the compiler and other basic tools.
2099 ifeq ($(filter-out a-except%,$(LIBGNAT_TARGET_PAIRS)),$(LIBGNAT_TARGET_PAIRS))
2100 LIBGNAT_TARGET_PAIRS += \
2101 a-except.ads<a-except-2005.ads \
2102 a-except.adb<a-except-2005.adb
2105 # The runtime library for gnat comprises two directories. One contains the
2106 # Ada source files that the compiler (gnat1) needs -- these files are listed
2107 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
2108 # corresponding .ali files for the parts written in Ada, libgnat.a for
2109 # the parts of the runtime written in C, and libgthreads.a for the pthreads
2110 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
2111 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
2112 # go into the directory. The pthreads emulation is built in the threads
2113 # subdirectory and copied.
2114 LIBGNAT_SRCS = adaint.c adaint.h argv.c cio.c cstreams.c \
2115 errno.c exit.c cal.c ctrl_c.c env.c env.h arit64.c \
2116 raise.h raise.c sysdep.c aux-io.c init.c initialize.c seh_init.c \
2117 final.c tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c expect.c mkdir.c \
2118 socket.c gsocket.h targext.c $(EXTRA_LIBGNAT_SRCS)
2120 LIBGNAT_OBJS = adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o env.o \
2121 raise.o sysdep.o aux-io.o init.o initialize.o seh_init.o cal.o arit64.o \
2122 final.o tracebak.o expect.o mkdir.o socket.o targext.o $(EXTRA_LIBGNAT_OBJS)
2124 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2125 # the library installation will change and there will be a
2126 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2127 # from ADA_INCLUDE_SRCS.
2129 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2130 # the following include file:
2132 include $(fsrcdir)/ada/Makefile.rtl
2134 GNATRTL_LINEARALGEBRA_OBJS = a-nlcoar.o a-nllcar.o a-nllrar.o a-nlrear.o \
2135 a-nucoar.o a-nurear.o i-forbla.o i-forlap.o s-gearop.o
2137 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
2138 $(GNATRTL_LINEARALGEBRA_OBJS) g-trasym.o memtrack.o
2140 # Default run time files
2143 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2144 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2145 sequenio.ads system.ads memtrack.adb \
2146 a-[a-o]*.adb a-[p-z]*.adb a-[a-o]*.ads a-[p-z]*.ads g-*.ad? i-*.ad? \
2147 s-[a-o]*.adb s-[p-z]*.adb s-[a-o]*.ads s-[p-z]*.ads
2149 LIBGNAT=../$(RTSDIR)/libgnat.a
2151 GCC_LINK=$(CC) -static-libgcc $(ADA_INCLUDES)
2153 # when compiling the tools, the runtime has to be first on the path so that
2154 # it hides the runtime files lying with the rest of the sources
2155 ifeq ($(TOOLSCASE),native)
2156 vpath %.ads ../$(RTSDIR) ../
2157 vpath %.adb ../$(RTSDIR) ../
2158 vpath %.c ../$(RTSDIR) ../
2159 vpath %.h ../$(RTSDIR) ../
2162 # in the cross tools case, everything is compiled with the native
2163 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2164 ifeq ($(TOOLSCASE),cross)
2172 $(GNATMAKE) -c -b $(ADA_INCLUDES) \
2173 --GNATBIND="$(GNATBIND)" --GCC="$(CC) $(ALL_ADAFLAGS)" \
2174 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2175 gnatclean -bargs $(ADA_INCLUDES) $(GNATBIND_FLAGS)
2176 $(GNATLINK) -v gnatcmd -o ../../gnat$(exeext) \
2177 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2178 $(GNATLINK) -v gnatchop -o ../../gnatchop$(exeext) \
2179 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2180 $(GNATLINK) -v gnatkr -o ../../gnatkr$(exeext) \
2181 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2182 $(GNATLINK) -v gnatls -o ../../gnatls$(exeext) \
2183 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2184 $(GNATLINK) -v gnatprep -o ../../gnatprep$(exeext) \
2185 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2186 $(GNATLINK) -v gnatxref -o ../../gnatxref$(exeext) \
2187 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2188 $(GNATLINK) -v gnatfind -o ../../gnatfind$(exeext) \
2189 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2190 $(GNATLINK) -v gnatname -o ../../gnatname$(exeext) \
2191 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2192 $(GNATLINK) -v gnatclean -o ../../gnatclean$(exeext) \
2193 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2195 ../../gnatsym$(exeext):
2196 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
2197 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
2198 $(GNATLINK) -v gnatsym -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2200 ../../gnatdll$(exeext):
2201 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
2202 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatdll
2203 $(GNATLINK) -v gnatdll -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2205 ../../vxaddr2line$(exeext): targext.o
2206 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
2207 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
2208 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(GCC_LINK)" targext.o $(CLIB)
2210 gnatmake-re: link.o targext.o
2211 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
2212 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
2213 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
2214 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
2215 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2217 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2218 # with the former version of gnatlink itself which cannot override itself.
2219 gnatlink-re: link.o targext.o
2220 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
2221 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
2222 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
2223 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2224 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
2226 # Needs to be built with CC=gcc
2227 # Since the RTL should be built with the latest compiler, remove the
2228 # stamp target in the parent directory whenever gnat1 is rebuilt
2230 # Likewise for the tools
2231 ../../gnatmake$(exeext): $(P) b_gnatm.o link.o targext.o $(GNATMAKE_OBJS)
2232 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
2235 ../../gnatlink$(exeext): $(P) b_gnatl.o link.o targext.o $(GNATLINK_OBJS)
2236 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
2239 ../stamp-gnatlib-$(RTSDIR):
2240 @if [ ! -f stamp-gnatlib-$(RTSDIR) ] ; \
2242 $(ECHO) You must first build the GNAT library: make gnatlib; \
2248 install-gnatlib: ../stamp-gnatlib-$(RTSDIR)
2249 # Create the directory before deleting it, in case the directory is
2250 # a list of directories (as it may be on VMS). This ensures we are
2251 # deleting the right one.
2252 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2253 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2254 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2255 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2256 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2257 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2258 for file in $(RTSDIR)/*.ali; do \
2259 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2261 -$(INSTALL_DATA) $(RTSDIR)/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2262 -cd $(RTSDIR); for file in *$(arext);do \
2263 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2264 $(RANLIB_FOR_TARGET) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
2266 -$(foreach file, $(EXTRA_ADALIB_FILES), \
2267 $(INSTALL_DATA_DATE) $(RTSDIR)/$(file) $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
2269 # Install the shared libraries, if any, using $(INSTALL) instead
2270 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2271 # for shared libraries on some targets, e.g. on HP-UX where the x
2272 # permission is required.
2273 # Also install the .dSYM directories if they exist (these directories
2274 # contain the debug information for the shared libraries on darwin)
2275 for file in gnat gnarl; do \
2276 if [ -f $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
2277 $(INSTALL) $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2278 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2280 if [ -f $(RTSDIR)/lib$${file}$(soext) ]; then \
2281 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2282 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
2284 if [ -d $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM ]; then \
2285 $(CP) -r $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM \
2286 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2289 # This copy must be done preserving the date on the original file.
2290 for file in $(RTSDIR)/*.ad?; do \
2291 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
2293 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
2294 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
2296 ../stamp-gnatlib2-$(RTSDIR):
2297 $(RM) $(RTSDIR)/s-*.ali
2298 $(RM) $(RTSDIR)/s-*$(objext)
2299 $(RM) $(RTSDIR)/a-*.ali
2300 $(RM) $(RTSDIR)/a-*$(objext)
2301 $(RM) $(RTSDIR)/*.ali
2302 $(RM) $(RTSDIR)/*$(objext)
2303 $(RM) $(RTSDIR)/*$(arext)
2304 $(RM) $(RTSDIR)/*$(soext)
2305 touch ../stamp-gnatlib2-$(RTSDIR)
2306 $(RM) ../stamp-gnatlib-$(RTSDIR)
2308 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
2309 # successive target commands. Although the Gnu make documentation
2310 # implies this is true on all systems, I suspect it may not be, So care
2311 # has been taken to allow a sed script to look for ";)" and substitue
2312 # for ";" the appropriate character in the range of lines below
2313 # beginning with "GNULLI Begin" and ending with "GNULLI End"
2315 # GNULLI Begin ###########################################################
2317 ../stamp-gnatlib1-$(RTSDIR): Makefile ../stamp-gnatlib2-$(RTSDIR)
2320 $(CHMOD) u+w $(RTSDIR)
2321 # Copy target independent sources
2322 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
2323 $(LN_S) $(fsrcpfx)ada/$(f) $(RTSDIR) ;) true
2324 # Remove files to be replaced by target dependent sources
2325 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2326 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR))))
2327 $(RM) $(RTSDIR)/*-*-*.ads $(RTSDIR)/*-*-*.adb
2328 # Copy new target dependent sources
2329 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2330 $(LN_S) $(fsrcpfx)ada/$(word 2,$(subst <, ,$(PAIR))) \
2331 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)));)
2332 # Copy generated target dependent sources
2333 $(RM) $(RTSDIR)/s-oscons.ads
2334 (cd $(RTSDIR); $(LN_S) ../s-oscons.ads s-oscons.ads)
2335 $(RM) ../stamp-gnatlib-$(RTSDIR)
2336 touch ../stamp-gnatlib1-$(RTSDIR)
2338 # GNULLI End #############################################################
2340 # Don't use semicolon separated shell commands that involve list expansions.
2341 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
2342 # line lengths in excess of 256 characters.
2343 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
2344 # is guaranteed to overflow the buffer.
2346 gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../stamp-gnatlib2-$(RTSDIR)
2347 $(MAKE) -C $(RTSDIR) \
2348 CC="`echo \"$(GCC_FOR_TARGET)\" \
2349 | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2350 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2351 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
2352 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2354 -f ../Makefile $(LIBGNAT_OBJS)
2355 $(MAKE) -C $(RTSDIR) \
2356 CC="`echo \"$(GCC_FOR_TARGET)\" \
2357 | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2359 CFLAGS="$(GNATLIBCFLAGS)" \
2360 ADAFLAGS="$(GNATLIBFLAGS)" \
2361 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2365 $(RM) $(RTSDIR)/libgnat$(arext) $(RTSDIR)/libgnarl$(arext)
2366 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnat$(arext) \
2367 $(addprefix $(RTSDIR)/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
2368 ifneq ($(PREFIX_OBJS),)
2369 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgccprefix$(arext) \
2371 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgccprefix$(arext)
2373 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnat$(arext)
2374 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnarl$(arext) \
2375 $(addprefix $(RTSDIR)/,$(GNATRTL_TASKING_OBJS))
2376 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnarl$(arext)
2377 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnala$(arext) \
2378 $(addprefix $(RTSDIR)/,$(GNATRTL_LINEARALGEBRA_OBJS))
2379 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnala$(arext)
2380 ifeq ($(GMEM_LIB),gmemlib)
2381 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgmem$(arext) \
2382 $(RTSDIR)/memtrack.o
2383 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgmem$(arext)
2385 $(CHMOD) a-wx $(RTSDIR)/*.ali
2386 touch ../stamp-gnatlib-$(RTSDIR)
2388 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2389 gnatlib-shared-default:
2390 $(MAKE) $(FLAGS_TO_PASS) \
2391 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2392 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2393 MULTISUBDIR="$(MULTISUBDIR)" \
2394 THREAD_KIND="$(THREAD_KIND)" \
2396 $(RM) $(RTSDIR)/libgna*$(soext)
2397 cd $(RTSDIR); ../../xgcc -B../../ -shared $(GNATLIBCFLAGS) \
2398 $(TARGET_LIBGCC2_CFLAGS) \
2399 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2400 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2401 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2403 cd $(RTSDIR); ../../xgcc -B../../ -shared $(GNATLIBCFLAGS) \
2404 $(TARGET_LIBGCC2_CFLAGS) \
2405 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2406 $(GNATRTL_TASKING_OBJS) \
2407 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2409 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2411 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2414 gnatlib-shared-dual:
2415 $(MAKE) $(FLAGS_TO_PASS) \
2416 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2417 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2418 MULTISUBDIR="$(MULTISUBDIR)" \
2419 THREAD_KIND="$(THREAD_KIND)" \
2420 gnatlib-shared-default
2421 $(MV) $(RTSDIR)/libgna*$(soext) .
2422 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2423 $(MAKE) $(FLAGS_TO_PASS) \
2424 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2425 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2426 MULTISUBDIR="$(MULTISUBDIR)" \
2427 THREAD_KIND="$(THREAD_KIND)" \
2429 $(MV) libgna*$(soext) $(RTSDIR)
2431 gnatlib-shared-dual-win32:
2432 $(MAKE) $(FLAGS_TO_PASS) \
2433 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2434 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2435 MULTISUBDIR="$(MULTISUBDIR)" \
2436 THREAD_KIND="$(THREAD_KIND)" \
2437 gnatlib-shared-win32
2438 $(MV) $(RTSDIR)/libgna*$(soext) .
2439 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2440 $(MAKE) $(FLAGS_TO_PASS) \
2441 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2442 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2443 MULTISUBDIR="$(MULTISUBDIR)" \
2444 THREAD_KIND="$(THREAD_KIND)" \
2446 $(MV) libgna*$(soext) $(RTSDIR)
2448 # ??? we need to add the option to support auto-import of arrays/records to
2449 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2450 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2452 gnatlib-shared-win32:
2453 $(MAKE) $(FLAGS_TO_PASS) \
2454 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2455 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2456 MULTISUBDIR="$(MULTISUBDIR)" \
2457 THREAD_KIND="$(THREAD_KIND)" \
2459 $(RM) $(RTSDIR)/libgna*$(soext)
2460 cd $(RTSDIR); ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2461 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2462 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2463 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
2464 cd $(RTSDIR); ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2465 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2466 $(GNATRTL_TASKING_OBJS) \
2467 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2468 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2470 gnatlib-shared-darwin:
2471 $(MAKE) $(FLAGS_TO_PASS) \
2472 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2473 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) \
2475 MULTISUBDIR="$(MULTISUBDIR)" \
2476 THREAD_KIND="$(THREAD_KIND)" \
2478 $(RM) $(RTSDIR)/libgnat$(soext) $(RTSDIR)/libgnarl$(soext)
2479 cd $(RTSDIR); ../../xgcc -B../../ -dynamiclib $(TARGET_LIBGCC2_CFLAGS) \
2480 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2481 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2483 -Wl,-install_name,@rpath/libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2485 cd $(RTSDIR); ../../xgcc -B../../ -dynamiclib $(TARGET_LIBGCC2_CFLAGS) \
2486 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2487 $(GNATRTL_TASKING_OBJS) \
2489 -Wl,-install_name,@rpath/libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2490 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2491 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2493 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2495 cd $(RTSDIR); dsymutil libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2496 cd $(RTSDIR); dsymutil libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext)
2499 $(MAKE) $(FLAGS_TO_PASS) \
2500 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2501 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2502 MULTISUBDIR="$(MULTISUBDIR)" \
2503 THREAD_KIND="$(THREAD_KIND)" \
2505 $(RM) $(RTSDIR)/libgna*$(soext)
2507 ../../gnatsym -s SYMVEC_$$$$.opt \
2508 $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) && \
2509 ../../xgcc -g -B../../ -shared -shared-libgcc \
2510 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
2511 sys\$$library:trace.exe \
2512 --for-linker=/noinform \
2513 --for-linker=SYMVEC_$$$$.opt \
2514 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2516 ../../gnatsym -s SYMVEC_$$$$.opt \
2517 $(GNATRTL_TASKING_OBJS) && \
2518 ../../xgcc -g -B../../ -shared -shared-libgcc \
2519 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2520 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2521 sys\$$library:trace.exe \
2522 --for-linker=/noinform \
2523 --for-linker=SYMVEC_$$$$.opt \
2524 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2527 $(MAKE) $(FLAGS_TO_PASS) \
2528 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2529 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2530 MULTISUBDIR="$(MULTISUBDIR)" \
2531 THREAD_KIND="$(THREAD_KIND)" \
2532 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
2536 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="" ../stamp-gnatlib1-$(RTSDIR)
2537 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2538 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2539 $(MAKE) $(FLAGS_TO_PASS) \
2541 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2542 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2543 MULTISUBDIR="$(MULTISUBDIR)" \
2544 THREAD_KIND="$(THREAD_KIND)" \
2545 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2548 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="-gcc" ../stamp-gnatlib1-$(RTSDIR)
2549 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2550 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2551 $(MAKE) $(FLAGS_TO_PASS) \
2552 EH_MECHANISM="-gcc" \
2553 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2554 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2555 MULTISUBDIR="$(MULTISUBDIR)" \
2556 THREAD_KIND="$(THREAD_KIND)" \
2557 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2559 # .s files for cross-building
2561 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
2563 # Compiling object files from source files.
2565 # Note that dependencies on obstack.h are not written
2566 # because that file is not part of GCC.
2567 # Dependencies on gvarargs.h are not written
2568 # because all that file does, when not compiling with GCC,
2569 # is include the system varargs.h.
2571 b_gnatl.c : $(GNATLINK_OBJS)
2572 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatl.c gnatlink.ali
2573 b_gnatl.o : b_gnatl.c
2575 b_gnatm.c : $(GNATMAKE_OBJS)
2576 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatm.c gnatmake.ali
2577 b_gnatm.o : b_gnatm.c
2579 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2580 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2582 # force no sibling call optimization on s-traceb.o so the number of stack
2583 # frames to be skipped when computing a call chain is not modified by
2584 # optimization. However we can do that only when building the runtime
2585 # (not the compiler) because the -fno-optimize-sibling-calls option exists
2586 # only in GCC 3 and above.
2588 ifneq (,$(findstring xgcc,$(CC)))
2589 NO_SIBLING_ADAFLAGS=-fno-optimize-sibling-calls
2591 NO_SIBLING_ADAFLAGS=
2594 s-traceb.o : s-traceb.adb
2595 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2596 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) \
2599 # force debugging information on s-tasdeb.o so that it is always
2600 # possible to set conditional breakpoints on tasks.
2602 s-tasdeb.o : s-tasdeb.adb s-tasdeb.ads
2603 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2606 # force no function reordering on a-except.o because of the exclusion bounds
2607 # mechanism (see the source file for more detailed information). However we
2608 # can do that only when building the runtime (not the compiler) because the
2609 # -fno-toplevel-reorder option exists only in GCC 4.2 and above.
2611 ifneq (,$(findstring xgcc,$(CC)))
2612 NO_REORDER_ADAFLAGS=-fno-toplevel-reorder
2614 NO_REORDER_ADAFLAGS=
2617 # force debugging information on a-except.o so that it is always
2618 # possible to set conditional breakpoints on exceptions.
2619 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2621 a-except.o : a-except.adb a-except.ads
2622 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O1 -fno-inline \
2623 $(NO_REORDER_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
2625 # compile s-except.o without optimization and with debug info to let the
2626 # debugger set breakpoints and inspect subprogram parameters on exception
2629 s-except.o : s-except.adb s-except.ads
2630 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2633 # force debugging information on s-assert.o so that it is always
2634 # possible to set breakpoint on assert failures.
2636 s-assert.o : s-assert.adb s-assert.ads a-except.ads
2637 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O2 $(ADA_INCLUDES) \
2640 adadecode.o : adadecode.c adadecode.h
2644 deftarg.o : deftarg.c
2646 exit.o : adaint.h exit.c
2652 socket.o : socket.c gsocket.h
2654 raise-gcc.o : raise-gcc.c raise.h
2655 raise.o : raise.c raise.h
2656 vx_stack_info.o : vx_stack_info.c
2659 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2660 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2662 init.o : init.c adaint.h raise.h
2663 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2664 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2666 initialize.o : initialize.c raise.h
2667 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2668 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2670 targext.o : targext.c
2671 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
2672 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
2675 # Need to keep the frame pointer in this file to pop the stack properly on
2677 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2678 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
2679 $(INCLUDES) -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2681 # In GNU Make, ignore whether `stage*' exists.
2682 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2683 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2687 # Gnatlbr, Vms_help, and Gnat.hlp are only used on VMS
2689 ../../gnatlbr$(exeext): ../../prefix.o
2690 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlbr --GCC="$(CC) $(ALL_ADAFLAGS)"
2691 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlbr
2692 $(GNATLINK) -v gnatlbr -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2694 ../../vms_help$(exeext):
2695 $(GNATMAKE) -c $(ADA_INCLUDES) vms_help --GCC="$(CC) $(ALL_ADAFLAGS)"
2696 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vms_help
2697 $(GNATLINK) -v vms_help -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2699 ../../gnat.hlp: ../../vms_help$(exeext)
2700 ../../vms_help$(exeext) $(fsrcdir)/ada/gnat.help_in \
2701 $(fsrcdir)/ada/vms_data.ads ../../gnat.hlp