1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2008 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@
95 PWD_COMMAND = $${PWDCMD-pwd}
96 # How to copy preserving the date
97 INSTALL_DATA_DATE = cp -p
101 GNATBIND_FLAGS = -static -x
103 ADAFLAGS = -W -Wall -gnatpg -gnata
104 SOME_ADAFLAGS =-gnata
105 FORCE_DEBUG_ADAFLAGS = -g
106 GNATLIBFLAGS = -gnatpg -nostdinc
107 GNATLIBCFLAGS = -g -O2
108 GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
110 ALL_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(ADAFLAGS)
111 MOST_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(SOME_ADAFLAGS)
116 SYMDEPS = $(LIBINTL_DEP)
117 OUTPUT_OPTION = @OUTPUT_OPTION@
126 # Define this as & to perform parallel make on a Sequent.
127 # Note that this has some bugs, and it seems currently necessary
128 # to compile all the gen* files first by hand to avoid erroneous results.
131 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
133 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
134 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS)
136 # Tools to use when building a cross-compiler.
137 # These are used because `configure' appends `cross-make'
138 # to the makefile when making a cross-compiler.
140 # We don't use cross-make. Instead we use the tools from the build tree,
141 # if they are available.
142 # program_transform_name and objdir are set by configure.in.
143 program_transform_name =
146 target_alias=@target_alias@
148 xmake_file = @xmake_file@
149 tmake_file = @tmake_file@
150 host_canonical=@host@
151 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
152 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
154 # Directory where sources are, from where we are.
157 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
158 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
159 fcurdir := $(shell ${PWD_COMMAND})
160 fcurpfx := $(shell ${PWD_COMMAND})/
162 # Top build directory, relative to here.
165 # Internationalization library.
167 LIBINTL_DEP = @LIBINTL_DEP@
169 # Any system libraries needed just for GNAT.
170 SYSLIBS = @GNAT_LIBEXC@
172 # List of extra object files linked in with various programs.
173 EXTRA_GNATTOOLS_OBJS = ../../prefix.o ../../version.o
175 # List of target dependent sources, overridden below as necessary
178 # Type of tools build we are doing; default is not compiling tools.
183 RTSDIR = rts$(subst /,_,$(MULTISUBDIR))
185 # End of variables for you to override.
189 # This tells GNU Make version 3 not to put all variables in the environment.
192 # tmake_file and xmake_file expand to lists with entries of the form
193 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
194 # need to adjust the paths. There can't be spaces in the subst arguments
195 # or we get spurious spaces in the actual list of files to include.
198 ifneq ($(tmake_file),)
199 include $(subst /config,/../config,$(tmake_file))
203 ifneq ($(xmake_file),)
204 include $(subst /config,/../config,$(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 # This is where we get libiberty.a from.
225 LIBIBERTY = ../../libiberty/libiberty.a
227 # How to link with both our special library facilities
228 # and the system's installed libraries.
229 LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
230 LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
231 # Default is no TGT_LIB; one might be passed down or something
233 TOOLS_LIBS = $(EXTRA_GNATTOOLS_OBJS) targext.o link.o $(LIBGNAT) ../../../libiberty/libiberty.a $(SYSLIBS) $(TGT_LIB)
235 # Specify the directories to be searched for header files.
236 # Both . and srcdir are used, in that order,
237 # so that tm.h and config.h will be found in the compilation
238 # subdirectory rather than in the source directory.
239 INCLUDES = -I- -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config \
240 -I$(srcdir)/../../include
242 ADA_INCLUDES = -I- -I. -I$(srcdir)
244 INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir) -I$(fsrcdir)/../config \
245 -I$(fsrcdir)/../../include -I$(fsrcdir)/..
246 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir) -I$(fsrcdir)/gcc
248 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
251 # Say how to compile Ada programs.
252 .SUFFIXES: .ada .adb .ads .asm
254 # Always use -I$(srcdir)/config when compiling.
256 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
259 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< \
263 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
266 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
268 # how to regenerate this file
269 Makefile: ../config.status $(srcdir)/gcc-interface/Makefile.in $(srcdir)/Makefile.in $(srcdir)/../version.c
271 LANGUAGES="$(CONFIG_LANGUAGES)" \
273 CONFIG_FILES="ada/gcc-interface/Makefile ada/Makefile" $(SHELL) config.status
275 # This tells GNU make version 3 not to export all the variables
276 # defined in this file into the environment.
279 # Lists of files for various purposes.
281 GNATLINK_OBJS = gnatlink.o \
282 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
283 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
284 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
285 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
286 types.o validsw.o widechar.o
288 GNATMAKE_OBJS = a-except.o ali.o ali-util.o s-casuti.o \
289 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
290 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
291 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
292 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
293 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o output.o \
294 prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o prj-err.o prj-ext.o prj-nmsc.o \
295 prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o \
296 rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
297 scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o \
298 sinfo.o sinput.o sinput-c.o sinput-p.o \
299 snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o switch.o switch-m.o \
300 table.o targparm.o tempdir.o tree_io.o types.o \
301 uintp.o uname.o urealp.o usage.o widechar.o \
302 $(EXTRA_GNATMAKE_OBJS)
304 # Convert the target variable into a space separated list of architecture,
305 # manufacturer, and operating system and assign each of those to its own
308 host:=$(subst -, ,$(host_canonical))
309 targ:=$(subst -, ,$(target))
310 arch:=$(word 1,$(targ))
311 ifeq ($(words $(targ)),2)
313 osys:=$(word 2,$(targ))
315 manu:=$(word 2,$(targ))
316 osys:=$(word 3,$(targ))
319 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
320 # The members of each pair must be separated by a '<' and no whitespace.
321 # Each pair must be separated by some amount of whitespace from the following
326 LIBGNAT_TARGET_PAIRS = \
327 a-intnam.ads<a-intnam-dummy.ads \
328 s-inmaop.adb<s-inmaop-dummy.adb \
329 s-intman.adb<s-intman-dummy.adb \
330 s-osinte.ads<s-osinte-dummy.ads \
331 s-osprim.adb<s-osprim-posix.adb \
332 s-taprop.adb<s-taprop-dummy.adb \
333 s-taspri.ads<s-taspri-dummy.ads
335 # When using the GCC exception handling mechanism, we need to use an
336 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
340 # Default shared object option. Note that we rely on the fact that the "soname"
341 # option will always be present and last in this flag, so that we can have
342 # $(SO_OPTS)libgnat-x.xx
344 SO_OPTS = -Wl,-soname,
346 # Default gnatlib-shared target.
347 # By default, equivalent to gnatlib.
348 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
349 # target when supported.
350 GNATLIB_SHARED = gnatlib
352 # default value for gnatmake's target dependent file
355 # By default, do not distribute prefix.o (in libgccprefix), since it is only
356 # needed by external GNAT tools such as gnatdist and Glide.
357 # Override this variable on native platforms when needed.
360 # To avoid duplicate code, use this variable to set PREFIX_OBJS when needed:
361 PREFIX_REAL_OBJS = ../prefix.o \
362 ../../libiberty/concat.o \
363 ../../libiberty/xmalloc.o \
364 ../../libiberty/xstrdup.o \
365 ../../libiberty/xexit.o
367 # By default, build socket support units. On platforms that do not support
368 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
369 # to LIBGNAT_TARGET_PAIRS.
371 GNATRTL_SOCKETS_OBJS = g-soccon$(objext) g-socket$(objext) g-socthi$(objext) \
372 g-soliop$(objext) g-sothco$(objext) g-sttsne$(objext)
374 DUMMY_SOCKETS_TARGET_PAIRS = \
375 g-socket.adb<g-socket-dummy.adb \
376 g-socket.ads<g-socket-dummy.ads \
377 g-socthi.adb<g-socthi-dummy.adb \
378 g-socthi.ads<g-socthi-dummy.ads \
379 g-sothco.adb<g-sothco-dummy.adb \
380 g-sothco.ads<g-sothco-dummy.ads \
381 g-sttsne.ads<g-sttsne-dummy.ads
383 LIB_VERSION = $(strip $(shell grep ' Library_Version :' $(fsrcpfx)gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
385 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
386 # $(strip STRING) removes leading and trailing spaces from STRING.
387 # If what's left is null then it's a match.
389 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
390 LIBGNAT_TARGET_PAIRS = \
391 a-intnam.ads<a-intnam-vxworks.ads \
392 a-numaux.ads<a-numaux-vxworks.ads \
393 s-inmaop.adb<s-inmaop-posix.adb \
394 s-interr.adb<s-interr-hwint.adb \
395 s-intman.ads<s-intman-vxworks.ads \
396 s-intman.adb<s-intman-vxworks.adb \
397 s-osinte.adb<s-osinte-vxworks-kernel.adb \
398 s-osinte.ads<s-osinte-vxworks.ads \
399 s-osprim.adb<s-osprim-vxworks.adb \
400 s-parame.ads<s-parame-vxworks.ads \
401 s-parame.adb<s-parame-vxworks.adb \
402 s-stchop.ads<s-stchop-limit.ads \
403 s-stchop.adb<s-stchop-vxworks.adb \
404 s-taprop.adb<s-taprop-vxworks.adb \
405 s-taspri.ads<s-taspri-vxworks.ads \
406 s-tpopsp.adb<s-tpopsp-vxworks.adb \
407 s-vxwork.ads<s-vxwork-m68k.ads \
408 g-socthi.ads<g-socthi-vxworks.ads \
409 g-socthi.adb<g-socthi-vxworks.adb \
410 g-stsifd.adb<g-stsifd-sockets.adb \
411 g-sttsne.adb<g-sttsne-vxworks.adb \
412 g-sttsne.ads<g-sttsne-locking.ads \
413 system.ads<system-vxworks-m68k.ads
415 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb
417 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
418 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
420 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
421 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
423 ifeq ($(strip $(filter-out yes,$(TRACE))),)
424 LIBGNAT_TARGET_PAIRS += \
425 s-traces.adb<s-traces-default.adb \
426 s-tratas.adb<s-tratas-default.adb \
427 s-trafor.adb<s-trafor-default.adb \
428 s-trafor.ads<s-trafor-default.ads \
429 s-tfsetr.adb<s-tfsetr-vxworks.adb
433 ifeq ($(strip $(filter-out powerpc% wrs vxworks,$(targ))),)
434 LIBGNAT_TARGET_PAIRS = \
435 a-intnam.ads<a-intnam-vxworks.ads \
436 a-numaux.ads<a-numaux-vxworks.ads \
437 s-inmaop.adb<s-inmaop-posix.adb \
438 s-intman.ads<s-intman-vxworks.ads \
439 s-intman.adb<s-intman-vxworks.adb \
440 s-osprim.adb<s-osprim-vxworks.adb \
441 s-parame.ads<s-parame-vxworks.ads \
442 s-parame.adb<s-parame-vxworks.adb \
443 s-stchop.ads<s-stchop-limit.ads \
444 s-stchop.adb<s-stchop-vxworks.adb \
445 s-taprop.adb<s-taprop-vxworks.adb \
446 s-taspri.ads<s-taspri-vxworks.ads \
447 s-vxwork.ads<s-vxwork-ppc.ads \
448 g-socthi.ads<g-socthi-vxworks.ads \
449 g-socthi.adb<g-socthi-vxworks.adb \
450 g-stsifd.adb<g-stsifd-sockets.adb \
451 g-sttsne.adb<g-sttsne-vxworks.adb \
452 g-sttsne.ads<g-sttsne-locking.ads
454 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb
456 ifeq ($(strip $(filter-out yes,$(TRACE))),)
457 LIBGNAT_TARGET_PAIRS += \
458 s-traces.adb<s-traces-default.adb \
459 s-trafor.adb<s-trafor-default.adb \
460 s-trafor.ads<s-trafor-default.ads \
461 s-tratas.adb<s-tratas-default.adb \
462 s-tfsetr.adb<s-tfsetr-vxworks.adb
465 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
466 LIBGNAT_TARGET_PAIRS += \
467 s-osinte.adb<s-osinte-vxworks-rtp.adb \
468 s-osinte.ads<s-osinte-vxworks6.ads \
469 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
470 system.ads<system-vxworks-ppc-rtp.ads
472 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
474 LIBGNAT_TARGET_PAIRS += \
475 s-interr.adb<s-interr-hwint.adb \
476 s-tpopsp.adb<s-tpopsp-vxworks.adb \
477 system.ads<system-vxworks-ppc.ads
479 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
480 LIBGNAT_TARGET_PAIRS += \
481 s-osinte.ads<s-osinte-vxworks6.ads \
482 s-osinte.adb<s-osinte-vxworks-kernel.adb
484 LIBGNAT_TARGET_PAIRS += \
485 s-osinte.ads<s-osinte-vxworks.ads \
486 s-osinte.adb<s-osinte-vxworks.adb
489 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
492 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
494 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
495 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
498 # vxworksae / vxworks 653
499 ifeq ($(strip $(filter-out powerpc% wrs vxworksae,$(targ))),)
500 # target pairs for kernel + vthreads runtime
501 LIBGNAT_TARGET_PAIRS = \
502 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
503 a-intnam.ads<a-intnam-vxworks.ads \
504 a-numaux.ads<a-numaux-vxworks.ads \
505 g-io.adb<g-io-vxworks-ppc-cert.adb \
506 g-io.ads<g-io-vxworks-ppc-cert.ads \
507 s-inmaop.adb<s-inmaop-posix.adb \
508 s-interr.adb<s-interr-hwint.adb \
509 s-intman.ads<s-intman-vxworks.ads \
510 s-intman.adb<s-intman-vxworks.adb \
511 s-osinte.adb<s-osinte-vxworks-kernel.adb \
512 s-osinte.ads<s-osinte-vxworks.ads \
513 s-osprim.adb<s-osprim-vxworks.adb \
514 s-parame.ads<s-parame-ae653.ads \
515 s-parame.adb<s-parame-vxworks.adb \
516 s-taprop.adb<s-taprop-vxworks.adb \
517 s-taspri.ads<s-taspri-vxworks.ads \
518 s-tpopsp.adb<s-tpopsp-vxworks.adb \
519 s-vxwork.ads<s-vxwork-ppc.ads \
520 g-socthi.ads<g-socthi-vxworks.ads \
521 g-socthi.adb<g-socthi-vxworks.adb \
522 g-stsifd.adb<g-stsifd-sockets.adb \
523 g-sttsne.adb<g-sttsne-vxworks.adb \
524 g-sttsne.ads<g-sttsne-locking.ads \
525 system.ads<system-vxworks-ppc-vthread.ads
527 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb
529 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
530 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
532 # Extra pairs for the vthreads runtime
533 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
534 LIBGNAT_TARGET_PAIRS += \
535 s-thread.adb<s-thread-ae653.adb
536 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o
539 ifeq ($(strip $(filter-out yes,$(TRACE))),)
540 LIBGNAT_TARGET_PAIRS += \
541 s-traces.adb<s-traces-default.adb \
542 s-trafor.adb<s-trafor-default.adb \
543 s-trafor.ads<s-trafor-default.ads \
544 s-tratas.adb<s-tratas-default.adb \
545 s-tfsetr.adb<s-tfsetr-vxworks.adb
549 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
550 LIBGNAT_TARGET_PAIRS = \
551 a-intnam.ads<a-intnam-vxworks.ads \
552 a-numaux.ads<a-numaux-vxworks.ads \
553 s-inmaop.adb<s-inmaop-posix.adb \
554 s-interr.adb<s-interr-hwint.adb \
555 s-intman.ads<s-intman-vxworks.ads \
556 s-intman.adb<s-intman-vxworks.adb \
557 s-osinte.adb<s-osinte-vxworks-kernel.adb \
558 s-osinte.ads<s-osinte-vxworks.ads \
559 s-osprim.adb<s-osprim-vxworks.adb \
560 s-parame.ads<s-parame-vxworks.ads \
561 s-parame.adb<s-parame-vxworks.adb \
562 s-stchop.ads<s-stchop-limit.ads \
563 s-stchop.adb<s-stchop-vxworks.adb \
564 s-taprop.adb<s-taprop-vxworks.adb \
565 s-taspri.ads<s-taspri-vxworks.ads \
566 s-tpopsp.adb<s-tpopsp-vxworks.adb \
567 s-vxwork.ads<s-vxwork-sparcv9.ads \
568 g-socthi.ads<g-socthi-vxworks.ads \
569 g-socthi.adb<g-socthi-vxworks.adb \
570 g-stsifd.adb<g-stsifd-sockets.adb \
571 g-sttsne.adb<g-sttsne-vxworks.adb \
572 g-sttsne.ads<g-sttsne-locking.ads \
573 system.ads<system-vxworks-sparcv9.ads \
575 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb
577 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
578 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
580 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
581 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
584 ifeq ($(strip $(filter-out %86 wrs vxworks,$(targ))),)
585 LIBGNAT_TARGET_PAIRS = \
586 a-intnam.ads<a-intnam-vxworks.ads \
587 i-vxwork.ads<i-vxwork-x86.ads \
588 s-inmaop.adb<s-inmaop-posix.adb \
589 s-intman.ads<s-intman-vxworks.ads \
590 s-intman.adb<s-intman-vxworks.adb \
591 a-numaux.adb<a-numaux-x86.adb \
592 a-numaux.ads<a-numaux-x86.ads \
593 s-osprim.adb<s-osprim-vxworks.adb \
594 s-parame.ads<s-parame-vxworks.ads \
595 s-parame.adb<s-parame-vxworks.adb \
596 s-stchop.ads<s-stchop-limit.ads \
597 s-stchop.adb<s-stchop-vxworks.adb \
598 s-taprop.adb<s-taprop-vxworks.adb \
599 s-taspri.ads<s-taspri-vxworks.ads \
600 s-vxwork.ads<s-vxwork-x86.ads \
601 g-bytswa.adb<g-bytswa-x86.adb \
602 g-socthi.ads<g-socthi-vxworks.ads \
603 g-socthi.adb<g-socthi-vxworks.adb \
604 g-stsifd.adb<g-stsifd-sockets.adb \
605 g-sttsne.adb<g-sttsne-vxworks.adb \
606 g-sttsne.ads<g-sttsne-locking.ads
608 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb
610 ifeq ($(strip $(filter-out yes,$(TRACE))),)
611 LIBGNAT_TARGET_PAIRS += \
612 s-traces.adb<s-traces-default.adb \
613 s-trafor.adb<s-trafor-default.adb \
614 s-trafor.ads<s-trafor-default.ads \
615 s-tratas.adb<s-tratas-default.adb \
616 s-tfsetr.adb<s-tfsetr-vxworks.adb
619 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
620 LIBGNAT_TARGET_PAIRS += \
621 s-osinte.adb<s-osinte-vxworks-rtp.adb \
622 s-osinte.ads<s-osinte-vxworks6.ads \
623 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
624 system.ads<system-vxworks-x86-rtp.ads
626 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
628 LIBGNAT_TARGET_PAIRS += \
629 s-interr.adb<s-interr-hwint.adb \
630 s-tpopsp.adb<s-tpopsp-vxworks.adb \
631 system.ads<system-vxworks-x86.ads
633 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
634 LIBGNAT_TARGET_PAIRS += \
635 s-osinte.ads<s-osinte-vxworks6.ads \
636 s-osinte.adb<s-osinte-vxworks-kernel.adb
638 LIBGNAT_TARGET_PAIRS += \
639 s-osinte.ads<s-osinte-vxworks.ads \
640 s-osinte.adb<s-osinte-vxworks.adb
643 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
646 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
648 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
649 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
652 ifeq ($(strip $(filter-out arm% coff wrs vx%,$(targ))),)
653 LIBGNAT_TARGET_PAIRS = \
654 a-intnam.ads<a-intnam-vxworks.ads \
655 a-numaux.ads<a-numaux-vxworks.ads \
656 s-inmaop.adb<s-inmaop-posix.adb \
657 s-interr.adb<s-interr-hwint.adb \
658 s-intman.ads<s-intman-vxworks.ads \
659 s-intman.adb<s-intman-vxworks.adb \
660 s-osinte.adb<s-osinte-vxworks-kernel.adb \
661 s-osinte.ads<s-osinte-vxworks.ads \
662 s-osprim.adb<s-osprim-vxworks.adb \
663 s-parame.ads<s-parame-vxworks.ads \
664 s-parame.adb<s-parame-vxworks.adb \
665 s-stchop.ads<s-stchop-limit.ads \
666 s-stchop.adb<s-stchop-vxworks.adb \
667 s-taprop.adb<s-taprop-vxworks.adb \
668 s-taspri.ads<s-taspri-vxworks.ads \
669 s-tpopsp.adb<s-tpopsp-vxworks.adb \
670 s-vxwork.ads<s-vxwork-arm.ads \
671 g-socthi.ads<g-socthi-vxworks.ads \
672 g-socthi.adb<g-socthi-vxworks.adb \
673 g-stsifd.adb<g-stsifd-sockets.adb \
674 g-sttsne.adb<g-sttsne-vxworks.adb \
675 g-sttsne.ads<g-sttsne-locking.ads \
676 system.ads<system-vxworks-arm.ads
678 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb
680 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
681 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
683 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
684 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
687 ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)
688 LIBGNAT_TARGET_PAIRS = \
689 a-intnam.ads<a-intnam-vxworks.ads \
690 a-numaux.ads<a-numaux-vxworks.ads \
691 s-inmaop.adb<s-inmaop-posix.adb \
692 s-interr.adb<s-interr-hwint.adb \
693 s-intman.ads<s-intman-vxworks.ads \
694 s-intman.adb<s-intman-vxworks.adb \
695 s-osinte.adb<s-osinte-vxworks-kernel.adb \
696 s-osinte.ads<s-osinte-vxworks.ads \
697 s-osprim.adb<s-osprim-vxworks.adb \
698 s-parame.ads<s-parame-vxworks.ads \
699 s-parame.adb<s-parame-vxworks.adb \
700 s-stchop.ads<s-stchop-limit.ads \
701 s-stchop.adb<s-stchop-vxworks.adb \
702 s-taprop.adb<s-taprop-vxworks.adb \
703 s-taspri.ads<s-taspri-vxworks.ads \
704 s-tpopsp.adb<s-tpopsp-vxworks.adb \
705 s-vxwork.ads<s-vxwork-mips.ads \
706 g-socthi.ads<g-socthi-vxworks.ads \
707 g-socthi.adb<g-socthi-vxworks.adb \
708 g-stsifd.adb<g-stsifd-sockets.adb \
709 g-sttsne.adb<g-sttsne-vxworks.adb \
710 g-sttsne.ads<g-sttsne-locking.ads \
711 system.ads<system-vxworks-mips.ads
713 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb
715 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
716 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
718 EXTRA_LIBGNAT_SRCS+=vx_stack_info.c
719 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
722 ifeq ($(strip $(filter-out sparc% sun solaris%,$(targ))),)
723 LIBGNAT_TARGET_PAIRS_32 = \
724 a-intnam.ads<a-intnam-solaris.ads \
725 s-inmaop.adb<s-inmaop-posix.adb \
726 s-intman.adb<s-intman-solaris.adb \
727 s-osinte.adb<s-osinte-solaris.adb \
728 s-osinte.ads<s-osinte-solaris.ads \
729 s-osprim.adb<s-osprim-solaris.adb \
730 s-taprop.adb<s-taprop-solaris.adb \
731 s-tasinf.adb<s-tasinf-solaris.adb \
732 s-tasinf.ads<s-tasinf-solaris.ads \
733 s-taspri.ads<s-taspri-solaris.ads \
734 s-tpopsp.adb<s-tpopsp-solaris.adb \
735 g-soliop.ads<g-soliop-solaris.ads \
736 system.ads<system-solaris-sparc.ads
738 LIBGNAT_TARGET_PAIRS_64 = \
739 a-intnam.ads<a-intnam-solaris.ads \
740 s-inmaop.adb<s-inmaop-posix.adb \
741 s-intman.adb<s-intman-solaris.adb \
742 s-osinte.adb<s-osinte-solaris.adb \
743 s-osinte.ads<s-osinte-solaris.ads \
744 s-osprim.adb<s-osprim-solaris.adb \
745 s-taprop.adb<s-taprop-solaris.adb \
746 s-tasinf.adb<s-tasinf-solaris.adb \
747 s-tasinf.ads<s-tasinf-solaris.ads \
748 s-taspri.ads<s-taspri-solaris.ads \
749 s-tpopsp.adb<s-tpopsp-solaris.adb \
750 g-soliop.ads<g-soliop-solaris.ads \
751 system.ads<system-solaris-sparcv9.ads
753 ifeq ($(strip $(filter-out sparc sun solaris%,$(targ))),)
754 LIBGNAT_TARGET_PAIRS = $(LIBGNAT_TARGET_PAIRS_32)
756 LIBGNAT_TARGET_PAIRS = $(LIBGNAT_TARGET_PAIRS_64)
759 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
762 THREADSLIB = -lposix4 -lthread
763 MISCLIB = -lposix4 -lnsl -lsocket
765 GNATLIB_SHARED = gnatlib-shared-dual
767 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
768 LIBRARY_VERSION := $(LIB_VERSION)
770 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
771 LIBGNAT_TARGET_PAIRS = \
772 a-intnam.ads<a-intnam-solaris.ads \
773 s-inmaop.adb<s-inmaop-posix.adb \
774 s-intman.adb<s-intman-posix.adb \
775 s-osinte.adb<s-osinte-posix.adb \
776 s-osinte.ads<s-osinte-solaris-posix.ads \
777 s-osprim.adb<s-osprim-solaris.adb \
778 s-taprop.adb<s-taprop-posix.adb \
779 s-taspri.ads<s-taspri-posix.ads \
780 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
781 g-soliop.ads<g-soliop-solaris.ads \
782 system.ads<system-solaris-sparc.ads
784 THREADSLIB = -lposix4 -lpthread
787 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
788 LIBGNAT_TARGET_PAIRS = $(LIBGNAT_TARGET_PAIRS_64)
792 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
793 LIBGNAT_TARGET_PAIRS = \
794 a-numaux.adb<a-numaux-x86.adb \
795 a-numaux.ads<a-numaux-x86.ads \
796 a-intnam.ads<a-intnam-solaris.ads \
797 s-inmaop.adb<s-inmaop-posix.adb \
798 s-intman.adb<s-intman-solaris.adb \
799 s-osinte.adb<s-osinte-solaris.adb \
800 s-osinte.ads<s-osinte-solaris.ads \
801 s-osprim.adb<s-osprim-solaris.adb \
802 s-taprop.adb<s-taprop-solaris.adb \
803 s-tasinf.adb<s-tasinf-solaris.adb \
804 s-tasinf.ads<s-tasinf-solaris.ads \
805 s-taspri.ads<s-taspri-solaris.ads \
806 s-tpopsp.adb<s-tpopsp-solaris.adb \
807 g-bytswa.adb<g-bytswa-x86.adb \
808 g-soliop.ads<g-soliop-solaris.ads \
809 system.ads<system-solaris-x86.ads
811 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
814 THREADSLIB = -lposix4 -lthread
815 MISCLIB = -lposix4 -lnsl -lsocket
817 GNATLIB_SHARED = gnatlib-shared-dual
819 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
820 LIBRARY_VERSION := $(LIB_VERSION)
823 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
824 LIBGNAT_TARGET_PAIRS = \
825 a-intnam.ads<a-intnam-linux.ads \
826 a-numaux.adb<a-numaux-x86.adb \
827 a-numaux.ads<a-numaux-x86.ads \
828 g-bytswa.adb<g-bytswa-x86.adb \
829 s-inmaop.adb<s-inmaop-posix.adb \
830 s-intman.adb<s-intman-posix.adb \
831 s-osprim.adb<s-osprim-posix.adb \
832 s-taspri.ads<s-taspri-posix.ads \
833 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
834 g-sercom.adb<g-sercom-linux.adb \
835 system.ads<system-linux-x86.ads
837 ifeq ($(strip $(filter-out marte,$(THREAD_KIND))),)
838 LIBGNAT_TARGET_PAIRS += \
839 a-exetim.adb<a-exetim-linux-marte.adb \
840 a-exetim.ads<a-exetim-linux-marte.ads \
841 a-extiti.adb<a-extiti-linux-marte.adb \
842 a-extiti.ads<a-extiti-linux-marte.ads \
843 a-rttiev.adb<a-rttiev-linux-marte.adb \
844 a-rttiev.ads<a-rttiev-linux-marte.ads \
845 s-osinte.adb<s-osinte-linux-marte.adb \
846 s-osinte.ads<s-osinte-linux-marte.ads \
847 s-taprop.adb<s-taprop-linux-marte.adb
849 EXTRA_GNATRTL_TASKING_OBJS=a-exetim.o a-extiti.o
854 LIBGNAT_TARGET_PAIRS += \
855 s-linux.ads<s-linux.ads \
856 s-osinte.adb<s-osinte-posix.adb
858 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
859 LIBGNAT_TARGET_PAIRS += \
860 s-osinte.ads<s-osinte-linux-xenomai.ads \
861 s-taprop.adb<s-taprop-linux-xenomai.adb
865 LIBGNAT_TARGET_PAIRS += \
866 s-osinte.ads<s-osinte-linux.ads \
867 s-taprop.adb<s-taprop-linux.adb \
868 s-tasinf.ads<s-tasinf-linux.ads \
869 s-tasinf.adb<s-tasinf-linux.adb
874 THREADSLIB = -lpthread
875 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
878 TOOLS_TARGET_PAIRS = \
879 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
880 indepsw.adb<indepsw-gnu.adb
882 GNATLIB_SHARED = gnatlib-shared-dual
884 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
885 LIBRARY_VERSION := $(LIB_VERSION)
888 ifeq ($(strip $(filter-out %86 kfreebsd%,$(arch) $(osys))),)
889 LIBGNAT_TARGET_PAIRS = \
890 a-intnam.ads<a-intnam-freebsd.ads \
891 a-numaux.adb<a-numaux-x86.adb \
892 a-numaux.ads<a-numaux-x86.ads \
893 s-inmaop.adb<s-inmaop-posix.adb \
894 s-intman.adb<s-intman-posix.adb \
895 s-osinte.adb<s-osinte-posix.adb \
896 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
897 s-osprim.adb<s-osprim-posix.adb \
898 s-taprop.adb<s-taprop-linux.adb \
899 s-tasinf.ads<s-tasinf-linux.ads \
900 s-tasinf.adb<s-tasinf-linux.adb \
901 s-taspri.ads<s-taspri-posix.ads \
902 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
903 system.ads<system-freebsd-x86.ads
905 TOOLS_TARGET_PAIRS = \
906 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
907 indepsw.adb<indepsw-gnu.adb
910 THREADSLIB = -lpthread
911 GNATLIB_SHARED = gnatlib-shared-dual
913 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
914 LIBRARY_VERSION := $(LIB_VERSION)
917 ifeq ($(strip $(filter-out %86 freebsd%,$(arch) $(osys))),)
918 LIBGNAT_TARGET_PAIRS = \
919 a-intnam.ads<a-intnam-freebsd.ads \
920 a-numaux.adb<a-numaux-x86.adb \
921 a-numaux.ads<a-numaux-x86.ads \
922 g-bytswa.adb<g-bytswa-x86.adb \
923 s-inmaop.adb<s-inmaop-posix.adb \
924 s-intman.adb<s-intman-posix.adb \
925 s-osinte.adb<s-osinte-freebsd.adb \
926 s-osinte.ads<s-osinte-freebsd.ads \
927 s-osprim.adb<s-osprim-posix.adb \
928 s-taprop.adb<s-taprop-posix.adb \
929 s-taspri.ads<s-taspri-posix.ads \
930 s-tpopsp.adb<s-tpopsp-posix.adb \
931 system.ads<system-freebsd-x86.ads
933 TOOLS_TARGET_PAIRS = \
934 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
935 GNATLIB_SHARED = gnatlib-shared-dual
938 THREADSLIB= -lpthread
940 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
941 LIBRARY_VERSION := $(LIB_VERSION)
944 ifeq ($(strip $(filter-out s390% linux%,$(arch) $(osys))),)
945 ifeq ($(strip $(filter-out s390x,$(arch))),)
946 LIBGNAT_TARGET_PAIRS = \
947 a-intnam.ads<a-intnam-linux.ads \
948 s-inmaop.adb<s-inmaop-posix.adb \
949 s-intman.adb<s-intman-posix.adb \
950 s-linux.ads<s-linux.ads \
951 s-osinte.adb<s-osinte-posix.adb \
952 s-osinte.ads<s-osinte-linux.ads \
953 s-osprim.adb<s-osprim-posix.adb \
954 s-taprop.adb<s-taprop-linux.adb \
955 s-tasinf.ads<s-tasinf-linux.ads \
956 s-tasinf.adb<s-tasinf-linux.adb \
957 s-taspri.ads<s-taspri-posix-noaltstack.ads \
958 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
959 system.ads<system-linux-s390x.ads
961 LIBGNAT_TARGET_PAIRS = \
962 a-intnam.ads<a-intnam-linux.ads \
963 s-inmaop.adb<s-inmaop-posix.adb \
964 s-intman.adb<s-intman-posix.adb \
965 s-linux.ads<s-linux.ads \
966 s-osinte.adb<s-osinte-posix.adb \
967 s-osinte.ads<s-osinte-linux.ads \
968 s-osprim.adb<s-osprim-posix.adb \
969 s-taprop.adb<s-taprop-linux.adb \
970 s-tasinf.ads<s-tasinf-linux.ads \
971 s-tasinf.adb<s-tasinf-linux.adb \
972 s-taspri.ads<s-taspri-posix-noaltstack.ads \
973 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
974 system.ads<system-linux-s390.ads
977 TOOLS_TARGET_PAIRS = \
978 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
980 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
982 THREADSLIB = -lpthread
983 GNATLIB_SHARED = gnatlib-shared-dual
984 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
985 LIBRARY_VERSION := $(LIB_VERSION)
988 ifeq ($(strip $(filter-out mips sgi irix%,$(targ))),)
989 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
990 LIBGNAT_TARGET_PAIRS = \
991 a-intnam.ads<a-intnam-irix.ads \
992 s-inmaop.adb<s-inmaop-posix.adb \
993 s-intman.adb<s-intman-irix.adb \
994 s-mastop.adb<s-mastop-irix.adb \
995 s-osinte.adb<s-osinte-irix.adb \
996 s-osinte.ads<s-osinte-irix.ads \
997 s-osprim.adb<s-osprim-posix.adb \
998 s-proinf.adb<s-proinf-irix-athread.adb \
999 s-proinf.ads<s-proinf-irix-athread.ads \
1000 s-taprop.adb<s-taprop-irix.adb \
1001 s-tasinf.ads<s-tasinf-irix.ads \
1002 s-taspri.ads<s-taspri-posix.ads \
1003 s-tpopsp.adb<s-tpopsp-posix.adb \
1004 s-traceb.adb<s-traceb-mastop.adb \
1005 system.ads<system-irix-n32.ads
1007 THREADSLIB = -lpthread
1008 GNATLIB_SHARED = gnatlib-shared-default
1011 LIBGNAT_TARGET_PAIRS += \
1012 s-mastop.adb<s-mastop-irix.adb \
1013 s-osprim.adb<s-osprim-posix.adb \
1014 s-traceb.adb<s-traceb-mastop.adb \
1015 system.ads<system-irix-o32.ads
1019 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-specific-irix.adb
1022 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1023 LIBRARY_VERSION := $(LIB_VERSION)
1027 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
1028 LIBGNAT_TARGET_PAIRS = \
1029 a-excpol.adb<a-excpol-abort.adb \
1030 a-intnam.ads<a-intnam-hpux.ads \
1031 s-inmaop.adb<s-inmaop-posix.adb \
1032 s-interr.adb<s-interr-sigaction.adb \
1033 s-intman.adb<s-intman-posix.adb \
1034 s-osinte.adb<s-osinte-hpux-dce.adb \
1035 s-osinte.ads<s-osinte-hpux-dce.ads \
1036 s-parame.ads<s-parame-hpux.ads \
1037 s-osprim.adb<s-osprim-posix.adb \
1038 s-taprop.adb<s-taprop-hpux-dce.adb \
1039 s-taspri.ads<s-taspri-hpux-dce.ads \
1040 s-tpopsp.adb<s-tpopsp-posix.adb \
1041 system.ads<system-hpux.ads
1044 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1047 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
1048 LIBGNAT_TARGET_PAIRS = \
1049 a-intnam.ads<a-intnam-hpux.ads \
1050 s-inmaop.adb<s-inmaop-posix.adb \
1051 s-intman.adb<s-intman-posix.adb \
1052 s-osinte.adb<s-osinte-posix.adb \
1053 s-osinte.ads<s-osinte-hpux.ads \
1054 s-parame.ads<s-parame-hpux.ads \
1055 s-osprim.adb<s-osprim-posix.adb \
1056 s-traceb.adb<s-traceb-hpux.adb \
1057 s-taprop.adb<s-taprop-posix.adb \
1058 s-taspri.ads<s-taspri-posix.ads \
1059 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1060 system.ads<system-hpux.ads
1062 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb
1064 TGT_LIB = /usr/lib/libcl.a
1065 THREADSLIB = -lpthread
1069 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1070 GNATLIB_SHARED = gnatlib-shared-dual
1071 LIBRARY_VERSION := $(LIB_VERSION)
1074 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
1075 LIBGNAT_TARGET_PAIRS = \
1076 a-intnam.ads<a-intnam-aix.ads \
1077 s-inmaop.adb<s-inmaop-posix.adb \
1078 s-intman.adb<s-intman-posix.adb \
1079 s-osinte.adb<s-osinte-aix.adb \
1080 s-osinte.ads<s-osinte-aix.ads \
1081 s-osprim.adb<s-osprim-posix.adb \
1082 s-taprop.adb<s-taprop-posix.adb \
1083 s-taspri.ads<s-taspri-posix.ads \
1084 s-tpopsp.adb<s-tpopsp-posix.adb \
1085 system.ads<system-aix.ads
1087 THREADSLIB = -lpthreads
1088 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1090 TOOLS_TARGET_PAIRS = \
1091 mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb \
1092 indepsw.adb<indepsw-aix.adb
1097 ifeq ($(strip $(filter-out lynxos,$(osys))),)
1098 TOOLS_TARGET_PAIRS = \
1099 mlib-tgt-specific.adb<mlib-tgt-specific-lynxos.adb \
1100 indepsw.adb<indepsw-gnu.adb
1102 ifeq ($(strip $(filter-out %86 lynxos,$(arch) $(osys))),)
1103 LIBGNAT_TARGET_PAIRS = \
1104 a-numaux.adb<a-numaux-x86.adb \
1105 a-numaux.ads<a-numaux-x86.ads \
1106 a-intnam.ads<a-intnam-lynxos.ads \
1107 g-bytswa.adb<g-bytswa-x86.adb \
1108 g-sttsne.adb<g-sttsne-locking.adb \
1109 g-sttsne.ads<g-sttsne-locking.ads \
1110 s-inmaop.adb<s-inmaop-posix.adb \
1111 s-intman.adb<s-intman-posix.adb \
1112 s-osinte.adb<s-osinte-lynxos.adb \
1113 s-osinte.ads<s-osinte-lynxos.ads \
1114 s-osprim.adb<s-osprim-posix.adb \
1115 s-taprop.adb<s-taprop-lynxos.adb \
1116 s-taspri.ads<s-taspri-lynxos.ads \
1117 s-tpopsp.adb<s-tpopsp-lynxos.adb \
1118 system.ads<system-lynxos-x86.ads
1120 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1123 LIBGNAT_TARGET_PAIRS = \
1124 a-intnam.ads<a-intnam-lynxos.ads \
1125 g-sttsne.adb<g-sttsne-locking.adb \
1126 g-sttsne.ads<g-sttsne-locking.ads \
1127 s-inmaop.adb<s-inmaop-posix.adb \
1128 s-intman.adb<s-intman-posix.adb \
1129 s-osinte.adb<s-osinte-lynxos.adb \
1130 s-osinte.ads<s-osinte-lynxos.ads \
1131 s-osprim.adb<s-osprim-posix.adb \
1132 s-taprop.adb<s-taprop-lynxos.adb \
1133 s-taspri.ads<s-taspri-lynxos.ads \
1134 s-tpopsp.adb<s-tpopsp-lynxos.adb \
1135 system.ads<system-lynxos-ppc.ads
1139 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1140 LIBGNAT_TARGET_PAIRS = \
1141 system.ads<system-rtems.ads \
1142 a-intnam.ads<a-intnam-rtems.ads \
1143 s-inmaop.adb<s-inmaop-posix.adb \
1144 s-intman.adb<s-intman-posix.adb \
1145 s-osinte.adb<s-osinte-rtems.adb \
1146 s-osinte.ads<s-osinte-rtems.ads \
1147 s-osprim.adb<s-osprim-posix.adb \
1148 s-parame.adb<s-parame-rtems.adb \
1149 s-taprop.adb<s-taprop-posix.adb \
1150 s-taspri.ads<s-taspri-posix.ads \
1151 s-tpopsp.adb<s-tpopsp-rtems.adb \
1152 s-stchop.adb<s-stchop-rtems.adb \
1153 s-interr.adb<s-interr-hwint.adb
1156 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1157 LIBGNAT_TARGET_PAIRS = \
1158 a-intnam.ads<a-intnam-tru64.ads \
1159 s-inmaop.adb<s-inmaop-posix.adb \
1160 s-intman.adb<s-intman-posix.adb \
1161 s-mastop.adb<s-mastop-tru64.adb \
1162 s-osinte.adb<s-osinte-tru64.adb \
1163 s-osinte.ads<s-osinte-tru64.ads \
1164 s-osprim.adb<s-osprim-unix.adb \
1165 s-taprop.adb<s-taprop-tru64.adb \
1166 s-tasinf.ads<s-tasinf-tru64.ads \
1167 s-taspri.ads<s-taspri-tru64.ads \
1168 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1169 s-traceb.adb<s-traceb-mastop.adb \
1170 system.ads<system-tru64.ads
1172 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-tru64.adb
1176 THREADSLIB = -lpthread -lmach -lexc -lrt
1177 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1178 GNATLIB_SHARED = gnatlib-shared-default
1179 LIBRARY_VERSION := $(LIB_VERSION)
1182 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(host))),)
1192 @ gnu:[bin]vmssymvec $<
1195 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1196 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1197 LIBGNAT_TARGET_PAIRS_AUX1 = \
1198 g-enblsp.adb<g-enblsp-vms-ia64.adb \
1199 g-trasym.adb<g-trasym-vms-ia64.adb \
1200 s-asthan.adb<s-asthan-vms-ia64.adb \
1201 s-osinte.adb<s-osinte-vms-ia64.adb \
1202 s-osinte.ads<s-osinte-vms-ia64.ads \
1203 s-vaflop.adb<s-vaflop-vms-ia64.adb \
1204 system.ads<system-vms-ia64.ads
1206 LIBGNAT_TARGET_PAIRS_AUX2 = \
1207 s-parame.ads<s-parame-vms-ia64.ads
1209 ifeq ($(strip $(filter-out alpha64 dec vms% openvms% alphavms%,$(targ))),)
1210 LIBGNAT_TARGET_PAIRS_AUX1 = \
1211 g-enblsp.adb<g-enblsp-vms-alpha.adb \
1212 g-trasym.adb<g-trasym-vms-alpha.adb \
1213 s-traent.adb<s-traent-vms.adb \
1214 s-traent.ads<s-traent-vms.ads \
1215 s-asthan.adb<s-asthan-vms-alpha.adb \
1216 s-osinte.adb<s-osinte-vms.adb \
1217 s-osinte.ads<s-osinte-vms.ads \
1218 s-vaflop.adb<s-vaflop-vms-alpha.adb \
1219 system.ads<system-vms_64.ads
1221 ifeq ($(strip $(filter-out express EXPRESS,$(THREAD_KIND))),)
1222 LIBGNAT_TARGET_PAIRS_AUX2 = \
1223 s-parame.ads<s-parame-vms-restrict.ads
1225 LIBGNAT_TARGET_PAIRS_AUX2 = \
1226 s-parame.ads<s-parame-vms-alpha.ads
1231 LIBGNAT_TARGET_PAIRS = \
1232 a-caldel.adb<a-caldel-vms.adb \
1233 a-calend.adb<a-calend-vms.adb \
1234 a-calend.ads<a-calend-vms.ads \
1235 a-dirval.adb<a-dirval-vms.adb \
1236 a-excpol.adb<a-excpol-abort.adb \
1237 a-intnam.ads<a-intnam-vms.ads \
1238 a-numaux.ads<a-numaux-vms.ads \
1239 g-expect.adb<g-expect-vms.adb \
1240 g-socthi.ads<g-socthi-vms.ads \
1241 g-socthi.adb<g-socthi-vms.adb \
1242 g-stsifd.adb<g-stsifd-sockets.adb \
1243 g-sttsne.adb<g-sttsne-locking.adb \
1244 g-sttsne.ads<g-sttsne-locking.ads \
1245 i-c.ads<i-c-vms_64.ads \
1246 i-cstrin.ads<i-cstrin-vms_64.ads \
1247 i-cstrin.adb<i-cstrin-vms_64.adb \
1248 i-cpoint.ads<i-cpoint-vms_64.ads \
1249 i-cpoint.adb<i-cpoint-vms_64.adb \
1250 i-cstrea.adb<i-cstrea-vms.adb \
1251 memtrack.adb<memtrack-vms_64.adb \
1252 s-auxdec.ads<s-auxdec-vms_64.ads \
1253 s-crtl.ads<s-crtl-vms_64.ads \
1254 s-inmaop.adb<s-inmaop-vms.adb \
1255 s-interr.adb<s-interr-vms.adb \
1256 s-intman.adb<s-intman-vms.adb \
1257 s-intman.ads<s-intman-vms.ads \
1258 s-memory.adb<s-memory-vms_64.adb \
1259 s-memory.ads<s-memory-vms_64.ads \
1260 s-osprim.adb<s-osprim-vms.adb \
1261 s-osprim.ads<s-osprim-vms.ads \
1262 s-taprop.adb<s-taprop-vms.adb \
1263 s-taspri.ads<s-taspri-vms.ads \
1264 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1265 s-tpopde.adb<s-tpopde-vms.adb \
1266 s-tpopde.ads<s-tpopde-vms.ads \
1267 $(LIBGNAT_TARGET_PAIRS_AUX1) \
1268 $(LIBGNAT_TARGET_PAIRS_AUX2)
1270 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1271 TOOLS_TARGET_PAIRS= \
1272 mlib-tgt-specific.adb<mlib-tgt-specific-vms-ia64.adb \
1273 symbols.adb<symbols-vms.adb \
1274 symbols-processing.adb<symbols-processing-vms-ia64.adb
1276 TOOLS_TARGET_PAIRS= \
1277 mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \
1278 symbols.adb<symbols-vms.adb \
1279 symbols-processing.adb<symbols-processing-vms-alpha.adb
1282 adamsg.o: adamsg.msg
1283 -$(DECC) --cc=message adamsg.msg -o adamsg.o
1285 EXTRA_GNATMAKE_OBJS = mlib-tgt-vms_common.o
1289 GNATLIB_SHARED=gnatlib-shared-vms
1290 ifeq ($(strip $(filter-out alpha64 dec vms% openvms% alphavms%,$(targ))),)
1291 EXTRA_LIBGNAT_SRCS=vmshandler.asm
1292 EXTRA_LIBGNAT_OBJS=vmshandler.o
1294 EXTRA_LIBGNAT_SRCS+=adamsg.msg
1295 EXTRA_LIBGNAT_OBJS+=adamsg.o
1296 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1298 ../../gnatlbr$(exeext) \
1299 ../../gnatsym$(exeext) \
1300 ../../vms_help$(exeext) \
1302 # This command transforms (YYYYMMDD) into YY,MMDD
1303 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\).*/\2,\3/')
1304 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1305 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1308 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1309 LIBGNAT_TARGET_PAIRS = \
1310 a-dirval.adb<a-dirval-mingw.adb \
1311 a-excpol.adb<a-excpol-abort.adb \
1312 a-numaux.adb<a-numaux-x86.adb \
1313 a-numaux.ads<a-numaux-x86.ads \
1314 s-gloloc.adb<s-gloloc-mingw.adb \
1315 s-inmaop.adb<s-inmaop-dummy.adb \
1316 s-memory.adb<s-memory-mingw.adb \
1317 s-taspri.ads<s-taspri-mingw.ads \
1318 s-tasinf.adb<s-tasinf-mingw.adb \
1319 s-tasinf.ads<s-tasinf-mingw.ads \
1320 g-bytswa.adb<g-bytswa-x86.adb \
1321 g-socthi.ads<g-socthi-mingw.ads \
1322 g-socthi.adb<g-socthi-mingw.adb \
1323 g-stsifd.adb<g-stsifd-sockets.adb \
1324 g-soliop.ads<g-soliop-mingw.ads
1326 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss,$(THREAD_KIND))),)
1327 LIBGNAT_TARGET_PAIRS += \
1328 s-intman.adb<s-intman-dummy.adb \
1329 s-osinte.ads<s-osinte-rtx.ads \
1330 s-osprim.adb<s-osprim-rtx.adb \
1331 s-taprop.adb<s-taprop-rtx.adb
1333 EXTRA_GNATRTL_NONTASKING_OBJS = s-win32.o
1335 ifeq ($(strip $(filter-out rtx_w32,$(THREAD_KIND))),)
1336 LIBGNAT_TARGET_PAIRS += system.ads<system-rtx.ads
1340 LIBGNAT_TARGET_PAIRS += \
1341 system.ads<system-rtx-rtss.ads \
1342 s-parame.adb<s-parame-vxworks.adb
1348 LIBGNAT_TARGET_PAIRS += \
1349 a-exetim.adb<a-exetim-mingw.adb \
1350 a-exetim.ads<a-exetim-mingw.ads \
1351 a-intnam.ads<a-intnam-mingw.ads \
1352 g-sercom.adb<g-sercom-mingw.adb \
1353 s-interr.adb<s-interr-sigaction.adb \
1354 s-intman.adb<s-intman-mingw.adb \
1355 s-osinte.ads<s-osinte-mingw.ads \
1356 s-osprim.adb<s-osprim-mingw.adb \
1357 s-taprop.adb<s-taprop-mingw.adb
1359 ifeq ($(strip $(filter-out x86_64%,$(arch))),)
1360 LIBGNAT_TARGET_PAIRS += \
1361 system.ads<system-mingw-x86_64.ads
1363 LIBGNAT_TARGET_PAIRS += \
1364 system.ads<system-mingw.ads
1367 EXTRA_GNATRTL_NONTASKING_OBJS = s-win32.o s-winext.o g-regist.o
1368 EXTRA_GNATRTL_TASKING_OBJS = a-exetim.o
1372 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1373 # auto-import support for array/record will be done.
1374 GNATLIB_SHARED = gnatlib-shared-win32
1379 TOOLS_TARGET_PAIRS= \
1380 mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb \
1381 indepsw.adb<indepsw-mingw.adb
1384 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1385 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1386 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1388 LIBRARY_VERSION := $(LIB_VERSION)
1391 ifeq ($(strip $(filter-out mips linux%,$(arch) $(osys))),)
1392 LIBGNAT_TARGET_PAIRS = \
1393 a-intnam.ads<a-intnam-linux.ads \
1394 s-inmaop.adb<s-inmaop-posix.adb \
1395 s-intman.adb<s-intman-posix.adb \
1396 s-linux.ads<s-linux.ads \
1397 s-osinte.adb<s-osinte-posix.adb \
1398 s-osinte.ads<s-osinte-linux.ads \
1399 s-osprim.adb<s-osprim-posix.adb \
1400 s-taprop.adb<s-taprop-linux.adb \
1401 s-tasinf.ads<s-tasinf-linux.ads \
1402 s-tasinf.adb<s-tasinf-linux.adb \
1403 s-taspri.ads<s-taspri-posix.ads \
1404 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1405 system.ads<system-linux-mips.ads
1408 THREADSLIB = -lpthread
1409 GNATLIB_SHARED = gnatlib-shared-dual
1411 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1412 LIBRARY_VERSION := $(LIB_VERSION)
1415 ifeq ($(strip $(filter-out mipsel linux%,$(arch) $(osys))),)
1416 LIBGNAT_TARGET_PAIRS = \
1417 a-intnam.ads<a-intnam-linux.ads \
1418 s-inmaop.adb<s-inmaop-posix.adb \
1419 s-intman.adb<s-intman-posix.adb \
1420 s-linux.ads<s-linux.ads \
1421 s-osinte.adb<s-osinte-posix.adb \
1422 s-osinte.ads<s-osinte-linux.ads \
1423 s-osprim.adb<s-osprim-posix.adb \
1424 s-taprop.adb<s-taprop-linux.adb \
1425 s-tasinf.ads<s-tasinf-linux.ads \
1426 s-tasinf.adb<s-tasinf-linux.adb \
1427 s-taspri.ads<s-taspri-posix.ads \
1428 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1429 system.ads<system-linux-mipsel.ads
1432 THREADSLIB = -lpthread
1433 GNATLIB_SHARED = gnatlib-shared-dual
1435 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1436 LIBRARY_VERSION := $(LIB_VERSION)
1439 ifeq ($(strip $(filter-out powerpc% linux%,$(arch) $(osys))),)
1440 LIBGNAT_TARGET_PAIRS = \
1441 a-intnam.ads<a-intnam-linux.ads \
1442 s-inmaop.adb<s-inmaop-posix.adb \
1443 s-intman.adb<s-intman-posix.adb \
1444 s-linux.ads<s-linux.ads \
1445 s-osinte.adb<s-osinte-posix.adb \
1446 s-osinte.ads<s-osinte-linux.ads \
1447 s-osprim.adb<s-osprim-posix.adb \
1448 s-taprop.adb<s-taprop-linux.adb \
1449 s-tasinf.ads<s-tasinf-linux.ads \
1450 s-tasinf.adb<s-tasinf-linux.adb \
1451 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1452 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1453 g-sercom.adb<g-sercom-linux.adb \
1454 system.ads<system-linux-ppc.ads
1456 TOOLS_TARGET_PAIRS = \
1457 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1458 indepsw.adb<indepsw-gnu.adb
1460 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1462 THREADSLIB = -lpthread
1463 GNATLIB_SHARED = gnatlib-shared-dual
1465 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1466 LIBRARY_VERSION := $(LIB_VERSION)
1469 ifeq ($(strip $(filter-out sparc% linux%,$(arch) $(osys))),)
1470 LIBGNAT_TARGET_PAIRS = \
1471 a-intnam.ads<a-intnam-linux.ads \
1472 s-inmaop.adb<s-inmaop-posix.adb \
1473 s-intman.adb<s-intman-posix.adb \
1474 s-linux.ads<s-linux.ads \
1475 s-osinte.adb<s-osinte-posix.adb \
1476 s-osinte.ads<s-osinte-linux.ads \
1477 s-osprim.adb<s-osprim-posix.adb \
1478 s-taprop.adb<s-taprop-linux.adb \
1479 s-tasinf.ads<s-tasinf-linux.ads \
1480 s-tasinf.adb<s-tasinf-linux.adb \
1481 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1482 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1483 system.ads<system-linux-sparc.ads
1485 TOOLS_TARGET_PAIRS = \
1486 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1487 indepsw.adb<indepsw-gnu.adb
1489 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1491 THREADSLIB = -lpthread
1492 GNATLIB_SHARED = gnatlib-shared-dual
1494 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1495 LIBRARY_VERSION := $(LIB_VERSION)
1498 ifeq ($(strip $(filter-out hppa% linux%,$(arch) $(osys))),)
1499 LIBGNAT_TARGET_PAIRS = \
1500 a-intnam.ads<a-intnam-linux.ads \
1501 s-inmaop.adb<s-inmaop-posix.adb \
1502 s-intman.adb<s-intman-posix.adb \
1503 s-linux.ads<s-linux-hppa.ads \
1504 s-osinte.adb<s-osinte-posix.adb \
1505 s-osinte.ads<s-osinte-linux.ads \
1506 s-osprim.adb<s-osprim-posix.adb \
1507 s-taprop.adb<s-taprop-linux.adb \
1508 s-tasinf.ads<s-tasinf-linux.ads \
1509 s-tasinf.adb<s-tasinf-linux.adb \
1510 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1511 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1512 system.ads<system-linux-hppa.ads
1514 TOOLS_TARGET_PAIRS = \
1515 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1516 indepsw.adb<indepsw-gnu.adb
1518 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1520 THREADSLIB = -lpthread
1521 GNATLIB_SHARED = gnatlib-shared-dual
1523 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1524 LIBRARY_VERSION := $(LIB_VERSION)
1527 ifeq ($(strip $(filter-out sh4% linux%,$(arch) $(osys))),)
1528 LIBGNAT_TARGET_PAIRS = \
1529 a-intnam.ads<a-intnam-linux.ads \
1530 s-inmaop.adb<s-inmaop-posix.adb \
1531 s-intman.adb<s-intman-posix.adb \
1532 s-linux.ads<s-linux.ads \
1533 s-osinte.adb<s-osinte-posix.adb \
1534 s-osinte.ads<s-osinte-linux.ads \
1535 s-osprim.adb<s-osprim-posix.adb \
1536 s-taprop.adb<s-taprop-linux.adb \
1537 s-tasinf.ads<s-tasinf-linux.ads \
1538 s-tasinf.adb<s-tasinf-linux.adb \
1539 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1540 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1541 system.ads<system-linux-sh4.ads
1543 TOOLS_TARGET_PAIRS = \
1544 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1545 indepsw.adb<indepsw-linux.adb
1547 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1550 THREADSLIB = -lpthread
1551 GNATLIB_SHARED = gnatlib-shared-dual
1553 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1554 LIBRARY_VERSION := $(LIB_VERSION)
1557 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1558 LIBGNAT_TARGET_PAIRS = \
1559 a-intnam.ads<a-intnam-linux.ads \
1560 a-numaux.ads<a-numaux-libc-x86.ads \
1561 s-inmaop.adb<s-inmaop-posix.adb \
1562 s-intman.adb<s-intman-posix.adb \
1563 s-linux.ads<s-linux.ads \
1564 s-osinte.ads<s-osinte-linux.ads \
1565 s-osinte.adb<s-osinte-posix.adb \
1566 s-osprim.adb<s-osprim-posix.adb \
1567 s-taprop.adb<s-taprop-linux.adb \
1568 s-tasinf.ads<s-tasinf-linux.ads \
1569 s-tasinf.adb<s-tasinf-linux.adb \
1570 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1571 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1572 g-sercom.adb<g-sercom-linux.adb \
1573 system.ads<system-linux-ia64.ads
1575 TOOLS_TARGET_PAIRS = \
1576 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1577 indepsw.adb<indepsw-gnu.adb
1579 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1582 THREADSLIB=-lpthread
1583 GNATLIB_SHARED=gnatlib-shared-dual
1585 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1586 LIBRARY_VERSION := $(LIB_VERSION)
1589 ifeq ($(strip $(filter-out alpha% linux%,$(arch) $(osys))),)
1590 LIBGNAT_TARGET_PAIRS = \
1591 a-intnam.ads<a-intnam-linux.ads \
1592 s-inmaop.adb<s-inmaop-posix.adb \
1593 s-intman.adb<s-intman-posix.adb \
1594 s-linux.ads<s-linux-alpha.ads \
1595 s-osinte.ads<s-osinte-linux.ads \
1596 s-osinte.adb<s-osinte-posix.adb \
1597 s-osprim.adb<s-osprim-posix.adb \
1598 s-taprop.adb<s-taprop-linux.adb \
1599 s-tasinf.ads<s-tasinf-linux.ads \
1600 s-tasinf.adb<s-tasinf-linux.adb \
1601 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1602 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1603 system.ads<system-linux-alpha.ads
1605 TOOLS_TARGET_PAIRS = \
1606 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1607 indepsw.adb<indepsw-gnu.adb
1609 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1612 THREADSLIB=-lpthread
1613 GNATLIB_SHARED=gnatlib-shared-dual
1614 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1615 LIBRARY_VERSION := $(LIB_VERSION)
1618 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
1619 LIBGNAT_TARGET_PAIRS = \
1620 a-intnam.ads<a-intnam-linux.ads \
1621 a-numaux.adb<a-numaux-x86.adb \
1622 a-numaux.ads<a-numaux-x86.ads \
1623 s-inmaop.adb<s-inmaop-posix.adb \
1624 s-intman.adb<s-intman-posix.adb \
1625 s-linux.ads<s-linux.ads \
1626 s-osinte.ads<s-osinte-linux.ads \
1627 s-osinte.adb<s-osinte-posix.adb \
1628 s-osprim.adb<s-osprim-posix.adb \
1629 s-taprop.adb<s-taprop-linux.adb \
1630 s-tasinf.ads<s-tasinf-linux.ads \
1631 s-tasinf.adb<s-tasinf-linux.adb \
1632 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1633 s-taspri.ads<s-taspri-posix.ads \
1634 g-sercom.adb<g-sercom-linux.adb \
1635 system.ads<system-linux-x86_64.ads
1637 TOOLS_TARGET_PAIRS = \
1638 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1639 indepsw.adb<indepsw-gnu.adb
1641 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1643 THREADSLIB=-lpthread
1644 GNATLIB_SHARED=gnatlib-shared-dual
1646 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1647 LIBRARY_VERSION := $(LIB_VERSION)
1650 ifeq ($(strip $(filter-out darwin%,$(osys))),)
1651 ifeq ($(strip $(filter-out %86,$(arch))),)
1652 LIBGNAT_TARGET_PAIRS = \
1653 a-intnam.ads<a-intnam-darwin.ads \
1654 s-inmaop.adb<s-inmaop-posix.adb \
1655 s-intman.adb<s-intman-posix.adb \
1656 s-osinte.adb<s-osinte-darwin.adb \
1657 s-osinte.ads<s-osinte-darwin.ads \
1658 s-osprim.adb<s-osprim-posix.adb \
1659 s-taprop.adb<s-taprop-posix.adb \
1660 s-taspri.ads<s-taspri-posix.ads \
1661 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1662 a-numaux.ads<a-numaux-x86.ads \
1663 a-numaux.adb<a-numaux-x86.adb \
1664 system.ads<system-darwin-x86.ads
1666 LIBGNAT_TARGET_PAIRS = \
1667 a-intnam.ads<a-intnam-darwin.ads \
1668 s-inmaop.adb<s-inmaop-posix.adb \
1669 s-intman.adb<s-intman-posix.adb \
1670 s-osinte.adb<s-osinte-darwin.adb \
1671 s-osinte.ads<s-osinte-darwin.ads \
1672 s-osprim.adb<s-osprim-posix.adb \
1673 s-taprop.adb<s-taprop-posix.adb \
1674 s-taspri.ads<s-taspri-posix.ads \
1675 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1676 a-numaux.ads<a-numaux-darwin.ads \
1677 a-numaux.adb<a-numaux-darwin.adb \
1678 system.ads<system-darwin-ppc.ads
1681 TOOLS_TARGET_PAIRS = \
1682 mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb
1685 GNATLIB_SHARED = gnatlib-shared-darwin
1686 SO_OPTS = -Wl,-flat_namespace -shared-libgcc
1689 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1690 LIBRARY_VERSION := $(LIB_VERSION)
1694 ifneq ($(EH_MECHANISM),)
1695 LIBGNAT_TARGET_PAIRS += a-exexpr.adb<a-exexpr$(EH_MECHANISM).adb
1696 EXTRA_LIBGNAT_SRCS+=raise$(EH_MECHANISM).c
1697 EXTRA_LIBGNAT_OBJS+=raise$(EH_MECHANISM).o
1700 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
1701 # explicitly already. The base files (a-except.ad?) are used only for building
1702 # the compiler and other basic tools.
1703 # These base versions lack Ada 2005 additions which would cause bootstrap
1704 # problems if included in the compiler and other basic tools.
1706 ifeq ($(filter-out a-except%,$(LIBGNAT_TARGET_PAIRS)),$(LIBGNAT_TARGET_PAIRS))
1707 LIBGNAT_TARGET_PAIRS += \
1708 a-except.ads<a-except-2005.ads \
1709 a-except.adb<a-except-2005.adb
1712 # The runtime library for gnat comprises two directories. One contains the
1713 # Ada source files that the compiler (gnat1) needs -- these files are listed
1714 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1715 # corresponding .ali files for the parts written in Ada, libgnat.a for
1716 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1717 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1718 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1719 # go into the directory. The pthreads emulation is built in the threads
1720 # subdirectory and copied.
1721 LIBGNAT_SRCS = adaint.c adaint.h argv.c cio.c cstreams.c \
1722 errno.c exit.c cal.c ctrl_c.c env.c env.h arit64.c \
1723 raise.h raise.c sysdep.c aux-io.c init.c initialize.c seh_init.c \
1724 final.c tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c expect.c mkdir.c \
1725 socket.c gsocket.h targext.c $(EXTRA_LIBGNAT_SRCS)
1727 LIBGNAT_OBJS = adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o env.o \
1728 raise.o sysdep.o aux-io.o init.o initialize.o seh_init.o cal.o arit64.o \
1729 final.o tracebak.o expect.o mkdir.o socket.o targext.o $(EXTRA_LIBGNAT_OBJS)
1731 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1732 # the library installation will change and there will be a
1733 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1734 # from ADA_INCLUDE_SRCS.
1736 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1737 # the following include file:
1739 include $(fsrcdir)/Makefile.rtl
1741 GNATRTL_LINEARALGEBRA_OBJS = a-nlcoar.o a-nllcar.o a-nllrar.o a-nlrear.o \
1742 a-nucoar.o a-nurear.o i-forbla.o i-forlap.o s-gearop.o
1744 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
1745 $(GNATRTL_LINEARALGEBRA_OBJS) g-trasym.o memtrack.o
1747 # Default run time files
1750 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1751 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1752 sequenio.ads system.ads memtrack.adb \
1753 a-[a-o]*.adb a-[p-z]*.adb a-[a-o]*.ads a-[p-z]*.ads g-*.ad? i-*.ad? \
1754 s-[a-o]*.adb s-[p-z]*.adb s-[a-o]*.ads s-[p-z]*.ads
1756 LIBGNAT=../$(RTSDIR)/libgnat.a
1758 GCC_LINK=$(CC) -static-libgcc $(ADA_INCLUDES)
1760 # when compiling the tools, the runtime has to be first on the path so that
1761 # it hides the runtime files lying with the rest of the sources
1762 ifeq ($(TOOLSCASE),native)
1763 vpath %.ads ../$(RTSDIR) ../
1764 vpath %.adb ../$(RTSDIR) ../
1765 vpath %.c ../$(RTSDIR) ../
1766 vpath %.h ../$(RTSDIR) ../
1769 # in the cross tools case, everything is compiled with the native
1770 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1771 ifeq ($(TOOLSCASE),cross)
1779 $(GNATMAKE) -c -b $(ADA_INCLUDES) \
1780 --GNATBIND="$(GNATBIND)" --GCC="$(CC) $(ALL_ADAFLAGS)" \
1781 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
1782 gnatclean -bargs $(ADA_INCLUDES) $(GNATBIND_FLAGS)
1783 $(GNATLINK) -v gnatcmd -o ../../gnat$(exeext) \
1784 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1785 $(GNATLINK) -v gnatchop -o ../../gnatchop$(exeext) \
1786 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1787 $(GNATLINK) -v gnatkr -o ../../gnatkr$(exeext) \
1788 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1789 $(GNATLINK) -v gnatls -o ../../gnatls$(exeext) \
1790 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1791 $(GNATLINK) -v gnatprep -o ../../gnatprep$(exeext) \
1792 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1793 $(GNATLINK) -v gnatxref -o ../../gnatxref$(exeext) \
1794 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1795 $(GNATLINK) -v gnatfind -o ../../gnatfind$(exeext) \
1796 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1797 $(GNATLINK) -v gnatname -o ../../gnatname$(exeext) \
1798 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1799 $(GNATLINK) -v gnatclean -o ../../gnatclean$(exeext) \
1800 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1802 ../../gnatsym$(exeext):
1803 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
1804 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
1805 $(GNATLINK) -v gnatsym -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1807 ../../gnatdll$(exeext):
1808 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
1809 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatdll
1810 $(GNATLINK) -v gnatdll -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1812 ../../vxaddr2line$(exeext): targext.o
1813 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
1814 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
1815 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(GCC_LINK)" targext.o $(CLIB)
1817 gnatmake-re: link.o targext.o
1818 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
1819 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1820 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
1821 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
1822 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1824 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1825 # with the former version of gnatlink itself which cannot override itself.
1826 gnatlink-re: link.o targext.o
1827 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
1828 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
1829 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
1830 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1831 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
1833 # Needs to be built with CC=gcc
1834 # Since the RTL should be built with the latest compiler, remove the
1835 # stamp target in the parent directory whenever gnat1 is rebuilt
1837 # Likewise for the tools
1838 ../../gnatmake$(exeext): $(P) b_gnatm.o link.o targext.o $(GNATMAKE_OBJS)
1839 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
1842 ../../gnatlink$(exeext): $(P) b_gnatl.o link.o targext.o $(GNATLINK_OBJS)
1843 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
1846 ../stamp-gnatlib-$(RTSDIR):
1847 @if [ ! -f stamp-gnatlib-$(RTSDIR) ] ; \
1849 $(ECHO) You must first build the GNAT library: make gnatlib; \
1855 install-gnatlib: ../stamp-gnatlib-$(RTSDIR)
1856 # Create the directory before deleting it, in case the directory is
1857 # a list of directories (as it may be on VMS). This ensures we are
1858 # deleting the right one.
1859 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1860 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1861 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1862 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1863 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1864 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1865 for file in $(RTSDIR)/*.ali; do \
1866 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1868 -$(INSTALL_DATA) $(RTSDIR)/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1869 -cd $(RTSDIR); for file in *$(arext);do \
1870 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1871 $(RANLIB_FOR_TARGET) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
1873 -$(foreach file, $(EXTRA_ADALIB_FILES), \
1874 $(INSTALL_DATA_DATE) $(RTSDIR)/$(file) $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
1876 # Install the shared libraries, if any, using $(INSTALL) instead
1877 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1878 # for shared libraries on some targets, e.g. on HP-UX where the x
1879 # permission is required.
1880 for file in gnat gnarl; do \
1881 if [ -f $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
1882 $(INSTALL) $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1883 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1885 if [ -f $(RTSDIR)/lib$${file}$(soext) ]; then \
1886 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1887 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
1890 # This copy must be done preserving the date on the original file.
1891 for file in $(RTSDIR)/*.ad?; do \
1892 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
1894 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
1895 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
1897 ../stamp-gnatlib2-$(RTSDIR):
1898 $(RM) $(RTSDIR)/s-*.ali
1899 $(RM) $(RTSDIR)/s-*$(objext)
1900 $(RM) $(RTSDIR)/a-*.ali
1901 $(RM) $(RTSDIR)/a-*$(objext)
1902 $(RM) $(RTSDIR)/*.ali
1903 $(RM) $(RTSDIR)/*$(objext)
1904 $(RM) $(RTSDIR)/*$(arext)
1905 $(RM) $(RTSDIR)/*$(soext)
1906 touch ../stamp-gnatlib2-$(RTSDIR)
1907 $(RM) ../stamp-gnatlib-$(RTSDIR)
1909 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1910 # successive target commands. Although the Gnu make documentation
1911 # implies this is true on all systems, I suspect it may not be, So care
1912 # has been taken to allow a sed script to look for ";)" and substitue
1913 # for ";" the appropriate character in the range of lines below
1914 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1916 # GNULLI Begin ###########################################################
1918 ../stamp-gnatlib1-$(RTSDIR): Makefile ../stamp-gnatlib2-$(RTSDIR)
1921 $(CHMOD) u+w $(RTSDIR)
1922 # Copy target independent sources
1923 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
1924 $(LN_S) $(fsrcpfx)$(f) $(RTSDIR) ;) true
1925 # Remove files to be replaced by target dependent sources
1926 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1927 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR))))
1928 $(RM) $(RTSDIR)/*-*-*.ads $(RTSDIR)/*-*-*.adb
1929 # Copy new target dependent sources
1930 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1931 $(LN_S) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1932 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)));)
1933 # Copy generated target dependent sources
1934 $(RM) $(RTSDIR)/s-oscons.ads
1935 (cd $(RTSDIR); $(LN_S) ../s-oscons.ads s-oscons.ads)
1936 $(RM) ../stamp-gnatlib-$(RTSDIR)
1937 touch ../stamp-gnatlib1-$(RTSDIR)
1939 # GNULLI End #############################################################
1941 # Don't use semicolon separated shell commands that involve list expansions.
1942 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1943 # line lengths in excess of 256 characters.
1944 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1945 # is guaranteed to overflow the buffer.
1947 gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../stamp-gnatlib2-$(RTSDIR)
1948 $(MAKE) -C $(RTSDIR) \
1949 CC="`echo \"$(GCC_FOR_TARGET)\" \
1950 | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
1951 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1952 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
1953 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
1955 -f ../Makefile $(LIBGNAT_OBJS)
1956 $(MAKE) -C $(RTSDIR) \
1957 CC="`echo \"$(GCC_FOR_TARGET)\" \
1958 | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
1960 CFLAGS="$(GNATLIBCFLAGS)" \
1961 ADAFLAGS="$(GNATLIBFLAGS)" \
1962 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
1966 $(RM) $(RTSDIR)/libgnat$(arext) $(RTSDIR)/libgnarl$(arext)
1967 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnat$(arext) \
1968 $(addprefix $(RTSDIR)/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
1969 ifneq ($(PREFIX_OBJS),)
1970 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgccprefix$(arext) \
1972 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgccprefix$(arext)
1974 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnat$(arext)
1975 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnarl$(arext) \
1976 $(addprefix $(RTSDIR)/,$(GNATRTL_TASKING_OBJS))
1977 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnarl$(arext)
1978 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnala$(arext) \
1979 $(addprefix $(RTSDIR)/,$(GNATRTL_LINEARALGEBRA_OBJS))
1980 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnala$(arext)
1981 ifeq ($(GMEM_LIB),gmemlib)
1982 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgmem$(arext) \
1983 $(RTSDIR)/memtrack.o
1984 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgmem$(arext)
1986 $(CHMOD) a-wx $(RTSDIR)/*.ali
1987 touch ../stamp-gnatlib-$(RTSDIR)
1989 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
1990 gnatlib-shared-default:
1991 $(MAKE) $(FLAGS_TO_PASS) \
1992 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1993 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1994 MULTISUBDIR="$(MULTISUBDIR)" \
1995 THREAD_KIND="$(THREAD_KIND)" \
1997 $(RM) $(RTSDIR)/libgna*$(soext)
1998 cd $(RTSDIR); ../../xgcc -B../../ -shared $(GNATLIBCFLAGS) \
1999 $(TARGET_LIBGCC2_CFLAGS) \
2000 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2001 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2002 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2004 cd $(RTSDIR); ../../xgcc -B../../ -shared $(GNATLIBCFLAGS) \
2005 $(TARGET_LIBGCC2_CFLAGS) \
2006 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2007 $(GNATRTL_TASKING_OBJS) \
2008 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2010 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2012 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2015 gnatlib-shared-dual:
2016 $(MAKE) $(FLAGS_TO_PASS) \
2017 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2018 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2019 MULTISUBDIR="$(MULTISUBDIR)" \
2020 THREAD_KIND="$(THREAD_KIND)" \
2021 gnatlib-shared-default
2022 $(MV) $(RTSDIR)/libgna*$(soext) .
2023 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2024 $(MAKE) $(FLAGS_TO_PASS) \
2025 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2026 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2027 MULTISUBDIR="$(MULTISUBDIR)" \
2028 THREAD_KIND="$(THREAD_KIND)" \
2030 $(MV) libgna*$(soext) $(RTSDIR)
2032 gnatlib-shared-dual-win32:
2033 $(MAKE) $(FLAGS_TO_PASS) \
2034 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2035 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2036 MULTISUBDIR="$(MULTISUBDIR)" \
2037 THREAD_KIND="$(THREAD_KIND)" \
2038 gnatlib-shared-win32
2039 $(MV) $(RTSDIR)/libgna*$(soext) .
2040 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2041 $(MAKE) $(FLAGS_TO_PASS) \
2042 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2043 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2044 MULTISUBDIR="$(MULTISUBDIR)" \
2045 THREAD_KIND="$(THREAD_KIND)" \
2047 $(MV) libgna*$(soext) $(RTSDIR)
2049 # ??? we need to add the option to support auto-import of arrays/records to
2050 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2051 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2053 gnatlib-shared-win32:
2054 $(MAKE) $(FLAGS_TO_PASS) \
2055 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2056 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2057 MULTISUBDIR="$(MULTISUBDIR)" \
2058 THREAD_KIND="$(THREAD_KIND)" \
2060 $(RM) $(RTSDIR)/libgna*$(soext)
2061 cd $(RTSDIR); ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2062 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2063 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2064 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
2065 cd $(RTSDIR); ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
2066 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2067 $(GNATRTL_TASKING_OBJS) \
2068 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2069 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2071 gnatlib-shared-darwin:
2072 $(MAKE) $(FLAGS_TO_PASS) \
2073 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2074 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) \
2076 MULTISUBDIR="$(MULTISUBDIR)" \
2077 THREAD_KIND="$(THREAD_KIND)" \
2079 $(RM) $(RTSDIR)/libgnat$(soext) $(RTSDIR)/libgnarl$(soext)
2080 cd $(RTSDIR); ../../xgcc -B../../ -dynamiclib $(TARGET_LIBGCC2_CFLAGS) \
2081 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2082 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2085 cd $(RTSDIR); ../../xgcc -B../../ -dynamiclib $(TARGET_LIBGCC2_CFLAGS) \
2086 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2087 $(GNATRTL_TASKING_OBJS) \
2089 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2090 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2092 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2096 $(MAKE) $(FLAGS_TO_PASS) \
2097 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2098 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2099 MULTISUBDIR="$(MULTISUBDIR)" \
2100 THREAD_KIND="$(THREAD_KIND)" \
2102 $(RM) $(RTSDIR)/libgna*$(soext)
2104 ../../gnatsym -s SYMVEC_$$$$.opt \
2105 $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) && \
2106 ../../xgcc -g -B../../ -shared -shared-libgcc \
2107 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
2108 sys\$$library:trace.exe \
2109 --for-linker=/noinform \
2110 --for-linker=SYMVEC_$$$$.opt \
2111 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2113 ../../gnatsym -s SYMVEC_$$$$.opt \
2114 $(GNATRTL_TASKING_OBJS) && \
2115 ../../xgcc -g -B../../ -shared -shared-libgcc \
2116 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2117 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2118 sys\$$library:trace.exe \
2119 --for-linker=/noinform \
2120 --for-linker=SYMVEC_$$$$.opt \
2121 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2124 $(MAKE) $(FLAGS_TO_PASS) \
2125 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2126 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2127 MULTISUBDIR="$(MULTISUBDIR)" \
2128 THREAD_KIND="$(THREAD_KIND)" \
2129 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
2133 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="" ../stamp-gnatlib1-$(RTSDIR)
2134 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2135 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2136 $(MAKE) $(FLAGS_TO_PASS) \
2138 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2139 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2140 MULTISUBDIR="$(MULTISUBDIR)" \
2141 THREAD_KIND="$(THREAD_KIND)" \
2142 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2145 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="-gcc" ../stamp-gnatlib1-$(RTSDIR)
2146 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2147 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2148 $(MAKE) $(FLAGS_TO_PASS) \
2149 EH_MECHANISM="-gcc" \
2150 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2151 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2152 MULTISUBDIR="$(MULTISUBDIR)" \
2153 THREAD_KIND="$(THREAD_KIND)" \
2154 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2156 # .s files for cross-building
2158 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
2160 # Compiling object files from source files.
2162 # Note that dependencies on obstack.h are not written
2163 # because that file is not part of GCC.
2164 # Dependencies on gvarargs.h are not written
2165 # because all that file does, when not compiling with GCC,
2166 # is include the system varargs.h.
2168 b_gnatl.c : $(GNATLINK_OBJS)
2169 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatl.c gnatlink.ali
2170 b_gnatl.o : b_gnatl.c
2172 b_gnatm.c : $(GNATMAKE_OBJS)
2173 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatm.c gnatmake.ali
2174 b_gnatm.o : b_gnatm.c
2176 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2177 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2179 # force no sibling call optimization on s-traceb.o so the number of stack
2180 # frames to be skipped when computing a call chain is not modified by
2181 # optimization. However we can do that only when building the runtime
2182 # (not the compiler) because the -fno-optimize-sibling-calls option exists
2183 # only in GCC 3 and above.
2185 ifneq (,$(findstring xgcc,$(CC)))
2186 NO_SIBLING_ADAFLAGS=-fno-optimize-sibling-calls
2188 NO_SIBLING_ADAFLAGS=
2191 s-traceb.o : s-traceb.adb
2192 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2193 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) \
2196 # force debugging information on s-tasdeb.o so that it is always
2197 # possible to set conditional breakpoints on tasks.
2199 s-tasdeb.o : s-tasdeb.adb s-tasdeb.ads
2200 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2203 # force no function reordering on a-except.o because of the exclusion bounds
2204 # mechanism (see the source file for more detailed information). However we
2205 # can do that only when building the runtime (not the compiler) because the
2206 # -fno-toplevel-reorder option exists only in GCC 4.2 and above.
2208 ifneq (,$(findstring xgcc,$(CC)))
2209 NO_REORDER_ADAFLAGS=-fno-toplevel-reorder
2211 NO_REORDER_ADAFLAGS=
2214 # force debugging information on a-except.o so that it is always
2215 # possible to set conditional breakpoints on exceptions.
2216 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2218 a-except.o : a-except.adb a-except.ads
2219 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O1 -fno-inline \
2220 $(NO_REORDER_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
2222 # compile s-except.o without optimization and with debug info to let the
2223 # debugger set breakpoints and inspect subprogram parameters on exception
2226 s-except.o : s-except.adb s-except.ads
2227 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2230 # force debugging information on s-assert.o so that it is always
2231 # possible to set breakpoint on assert failures.
2233 s-assert.o : s-assert.adb s-assert.ads a-except.ads
2234 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O2 $(ADA_INCLUDES) \
2237 adadecode.o : adadecode.c adadecode.h
2241 deftarg.o : deftarg.c
2243 exit.o : adaint.h exit.c
2249 socket.o : socket.c gsocket.h
2251 raise-gcc.o : raise-gcc.c raise.h
2252 raise.o : raise.c raise.h
2253 vx_stack_info.o : vx_stack_info.c
2256 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) \
2257 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2259 init.o : init.c adaint.h raise.h
2260 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) \
2261 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2263 initialize.o : initialize.c raise.h
2264 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) \
2265 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2267 targext.o : targext.c
2268 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) \
2269 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
2272 # No optimization to compile this file as optimizations (-O1 or above) breaks
2273 # the SEH handling on Windows. The reasons are not clear.
2274 seh_init.o : seh_init.c raise.h
2275 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) -O0 \
2276 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2278 # Need to keep the frame pointer in this file to pop the stack properly on
2280 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2281 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
2282 -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2284 # In GNU Make, ignore whether `stage*' exists.
2285 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2286 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2290 # Gnatlbr, Vms_help, and Gnat.hlp are only used on VMS
2292 ../../gnatlbr$(exeext): ../../prefix.o
2293 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlbr --GCC="$(CC) $(ALL_ADAFLAGS)"
2294 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlbr
2295 $(GNATLINK) -v gnatlbr -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2297 ../../vms_help$(exeext):
2298 $(GNATMAKE) -c $(ADA_INCLUDES) vms_help --GCC="$(CC) $(ALL_ADAFLAGS)"
2299 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vms_help
2300 $(GNATLINK) -v vms_help -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2302 ../../gnat.hlp: ../../vms_help$(exeext)
2303 ../../vms_help$(exeext) $(fsrcdir)/gnat.help_in \
2304 $(fsrcdir)/vms_data.ads ../../gnat.hlp