1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2007 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 2, 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 COPYING. If not, write to
18 #the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19 #Boston, MA 02110-1301, USA.
21 # The makefile built from this file lives in the language subdirectory.
22 # Its purpose is to provide support for:
24 # 1) recursion where necessary, and only then (building .o's), and
25 # 2) building and debugging cc1 from the language subdirectory, and
28 # The parent makefile handles all other chores, with help from the
29 # language makefile fragment, of course.
31 # The targets for external use are:
32 # all, TAGS, ???mostlyclean, ???clean.
34 # This makefile will only work with Gnu make.
35 # The rules are written assuming a minimum subset of tools are available:
38 # MAKE: Only Gnu make will work.
39 # MV: Must accept (at least) one, maybe wildcard, source argument,
40 # a file or directory destination, and support creation/
41 # modification date preservation. Gnu mv -f works.
42 # RM: Must accept an arbitrary number of space separated file
43 # arguments, or one wildcard argument. Gnu rm works.
44 # RMDIR: Must delete a directory and all its contents. Gnu rm -rf works.
45 # ECHO: Must support command line redirection. Any Unix-like
46 # shell will typically provide this, otherwise a custom version
47 # is trivial to write.
49 # MKDIR: Gnu mkdir works.
50 # CHMOD: Gnu chmod works.
51 # true: Does nothing and returns a normal successful return code.
52 # pwd: Prints the current directory on stdout.
53 # cd: Change directory.
56 # BISON: Gnu bison works.
57 # FLEX: Gnu flex works.
58 # Other miscellaneous tools for obscure targets.
60 # Tell GNU make 3.79 not to run this directory in parallel.
61 # Not all of the required dependencies are present.
64 # Suppress smart makes who think they know how to automake Yacc files
67 # Variables that exist for you to override.
68 # See below for how to change them for certain systems.
70 # Various ways of specifying flags for compilations:
71 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
72 # BOOT_CFLAGS is the value of CFLAGS to pass
73 # to the stage2 and stage3 compilations
74 # XCFLAGS is used for most compilations but not when using the GCC just built.
77 BOOT_CFLAGS = -O $(CFLAGS)
78 # These exists to be overridden by the x-* and t-* files, respectively.
109 RANLIB_FLAGS = @ranlib_flags@
112 PWD_COMMAND = $${PWDCMD-pwd}
113 # How to copy preserving the date
114 INSTALL_DATA_DATE = cp -p
118 GNATBIND_FLAGS = -static -x
120 ADAFLAGS = -W -Wall -gnatpg -gnata
121 SOME_ADAFLAGS =-gnata
122 FORCE_DEBUG_ADAFLAGS = -g
123 GNATLIBFLAGS = -gnatpg -nostdinc
124 GNATLIBCFLAGS = -g -O2
125 GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
127 ALL_ADA_CFLAGS = $(X_ADA_CFLAGS) $(T_ADA_CFLAGS) $(ADA_CFLAGS)
128 ALL_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \
130 MOST_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \
136 SYMDEPS = $(LIBINTL_DEP)
137 OUTPUT_OPTION = @OUTPUT_OPTION@
146 # Define this as & to perform parallel make on a Sequent.
147 # Note that this has some bugs, and it seems currently necessary
148 # to compile all the gen* files first by hand to avoid erroneous results.
151 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
152 # It omits XCFLAGS, and specifies -B./.
153 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
154 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)
156 # Tools to use when building a cross-compiler.
157 # These are used because `configure' appends `cross-make'
158 # to the makefile when making a cross-compiler.
160 # We don't use cross-make. Instead we use the tools from the build tree,
161 # if they are available.
162 # program_transform_name and objdir are set by configure.in.
163 program_transform_name =
166 target_alias=@target_alias@
168 xmake_file = @xmake_file@
169 tmake_file = @tmake_file@
170 host_canonical=@host@
171 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
172 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
174 # Directory where sources are, from where we are.
178 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
179 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
180 fcurdir := $(shell ${PWD_COMMAND})
181 fcurpfx := $(shell ${PWD_COMMAND})/
183 # Top build directory, relative to here.
186 # Internationalization library.
188 LIBINTL_DEP = @LIBINTL_DEP@
190 # Any system libraries needed just for GNAT.
191 SYSLIBS = @GNAT_LIBEXC@
193 # List of extra object files linked in with various programs.
194 EXTRA_GNATTOOLS_OBJS = ../../prefix.o ../../version.o
196 # List of target dependent sources, overridden below as necessary
199 # Type of tools build we are doing; default is not compiling tools.
202 # End of variables for you to override.
206 # This tells GNU Make version 3 not to put all variables in the environment.
209 # tmake_file and xmake_file expand to lists with entries of the form
210 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
211 # need to adjust the paths. There can't be spaces in the subst arguments
212 # or we get spurious spaces in the actual list of files to include.
215 ifneq ($(tmake_file),)
216 include $(subst /config,/../config,$(tmake_file))
220 ifneq ($(xmake_file),)
221 include $(subst /config,/../config,$(xmake_file))
224 # Now figure out from those variables how to compile and link.
226 all.indirect: Makefile ../gnat1$(exeext)
228 # IN_GCC distinguishes between code compiled into GCC itself and other
229 # programs built during a bootstrap.
230 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
231 # compiler which does not use the native libraries and headers.
232 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
234 # This is the variable actually used when we compile.
235 LOOSE_CFLAGS = `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
236 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_CFLAGS) \
240 ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
242 # This is where we get libiberty.a from.
243 LIBIBERTY = ../../libiberty/libiberty.a
245 # How to link with both our special library facilities
246 # and the system's installed libraries.
247 LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
248 LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
249 # Default is no TGT_LIB; one might be passed down or something
251 TOOLS_LIBS = $(EXTRA_GNATTOOLS_OBJS) targext.o link.o $(LIBGNAT) ../../../libiberty/libiberty.a $(SYSLIBS) $(TGT_LIB)
253 # Specify the directories to be searched for header files.
254 # Both . and srcdir are used, in that order,
255 # so that tm.h and config.h will be found in the compilation
256 # subdirectory rather than in the source directory.
257 INCLUDES = -I- -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config \
258 -I$(srcdir)/../../include
260 ADA_INCLUDES = -I- -I. -I$(srcdir)
262 INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir) -I$(fsrcdir)/../config \
263 -I$(fsrcdir)/../../include -I$(fsrcdir)/..
264 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)
266 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
269 # Say how to compile Ada programs.
270 .SUFFIXES: .ada .adb .ads .asm
272 # Always use -I$(srcdir)/config when compiling.
274 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
277 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< \
281 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
284 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
286 # how to regenerate this file
287 Makefile: ../config.status $(srcdir)/Makefile.in $(srcdir)/../version.c
289 LANGUAGES="$(CONFIG_LANGUAGES)" \
291 CONFIG_FILES=ada/Makefile $(SHELL) config.status
293 # This tells GNU make version 3 not to export all the variables
294 # defined in this file into the environment.
297 # Lists of files for various purposes.
299 GNATLINK_OBJS = gnatlink.o \
300 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
301 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
302 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
303 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
304 types.o validsw.o widechar.o
306 GNATMAKE_OBJS = a-except.o ali.o ali-util.o s-casuti.o \
307 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
308 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
309 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
310 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
311 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o output.o \
312 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 \
313 prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o \
314 rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
315 scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o \
316 sinfo.o sinput.o sinput-c.o sinput-p.o \
317 snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o switch.o switch-m.o \
318 table.o targparm.o tempdir.o tree_io.o types.o \
319 uintp.o uname.o urealp.o usage.o widechar.o \
320 $(EXTRA_GNATMAKE_OBJS)
322 # Convert the target variable into a space separated list of architecture,
323 # manufacturer, and operating system and assign each of those to its own
326 host:=$(subst -, ,$(host_canonical))
327 targ:=$(subst -, ,$(target))
328 arch:=$(word 1,$(targ))
329 ifeq ($(words $(targ)),2)
331 osys:=$(word 2,$(targ))
333 manu:=$(word 2,$(targ))
334 osys:=$(word 3,$(targ))
337 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
338 # The members of each pair must be separated by a '<' and no whitespace.
339 # Each pair must be separated by some amount of whitespace from the following
344 LIBGNAT_TARGET_PAIRS = \
345 a-intnam.ads<a-intnam-dummy.ads \
346 s-inmaop.adb<s-inmaop-dummy.adb \
347 s-intman.adb<s-intman-dummy.adb \
348 s-osinte.ads<s-osinte-dummy.ads \
349 s-osprim.adb<s-osprim-posix.adb \
350 s-taprop.adb<s-taprop-dummy.adb \
351 s-taspri.ads<s-taspri-dummy.ads
353 # When using the GCC exception handling mechanism, we need to use an
354 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
358 # Default shared object option. Note that we rely on the fact that the "soname"
359 # option will always be present and last in this flag, so that we can have
360 # $(SO_OPTS)libgnat-x.xx
362 SO_OPTS = -Wl,-soname,
364 # Default gnatlib-shared target.
365 # By default, equivalent to gnatlib.
366 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
367 # target when supported.
368 GNATLIB_SHARED = gnatlib
370 # default value for gnatmake's target dependent file
373 # By default, do not distribute prefix.o (in libgccprefix), since it is only
374 # needed by external GNAT tools such as gnatdist and Glide.
375 # Override this variable on native platforms when needed.
378 # To avoid duplicate code, use this variable to set PREFIX_OBJS when needed:
379 PREFIX_REAL_OBJS = ../prefix.o \
380 ../../libiberty/concat.o \
381 ../../libiberty/xmalloc.o \
382 ../../libiberty/xstrdup.o \
383 ../../libiberty/xexit.o
385 LIB_VERSION = $(strip $(shell grep ' Library_Version :' $(fsrcpfx)gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
387 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
388 # $(strip STRING) removes leading and trailing spaces from STRING.
389 # If what's left is null then it's a match.
391 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
392 LIBGNAT_TARGET_PAIRS = \
393 a-intnam.ads<a-intnam-vxworks.ads \
394 a-numaux.ads<a-numaux-vxworks.ads \
395 s-inmaop.adb<s-inmaop-posix.adb \
396 s-interr.adb<s-interr-vxworks.adb \
397 s-intman.ads<s-intman-vxworks.ads \
398 s-intman.adb<s-intman-vxworks.adb \
399 s-osinte.adb<s-osinte-vxworks.adb \
400 s-osinte.ads<s-osinte-vxworks.ads \
401 s-osprim.adb<s-osprim-vxworks.adb \
402 s-parame.ads<s-parame-vxworks.ads \
403 s-parame.adb<s-parame-vxworks.adb \
404 s-stchop.adb<s-stchop-vxworks.adb \
405 s-taprop.adb<s-taprop-vxworks.adb \
406 s-taspri.ads<s-taspri-vxworks.ads \
407 s-tpopsp.adb<s-tpopsp-vxworks.adb \
408 s-vxwork.ads<s-vxwork-m68k.ads \
409 g-soccon.ads<g-soccon-vxworks.ads \
410 g-socthi.ads<g-socthi-vxworks.ads \
411 g-socthi.adb<g-socthi-vxworks.adb \
412 g-stsifd.adb<g-stsifd-sockets.adb \
413 g-sttsne.adb<g-sttsne-vxworks.adb \
414 g-sttsne.ads<g-sttsne-vxworks.ads \
415 system.ads<system-vxworks-m68k.ads
417 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-vxworks.adb
419 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
420 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
422 ifeq ($(strip $(filter-out yes,$(TRACE))),)
423 LIBGNAT_TARGET_PAIRS += \
424 s-traces.adb<s-traces-default.adb \
425 s-tratas.adb<s-tratas-default.adb \
426 s-trafor.adb<s-trafor-default.adb \
427 s-trafor.ads<s-trafor-default.ads \
428 s-tfsetr.adb<s-tfsetr-vxworks.adb
432 ifeq ($(strip $(filter-out powerpc% wrs vxworks,$(targ))),)
433 LIBGNAT_TARGET_PAIRS = \
434 a-intnam.ads<a-intnam-vxworks.ads \
435 a-numaux.ads<a-numaux-vxworks.ads \
436 s-inmaop.adb<s-inmaop-posix.adb \
437 s-intman.ads<s-intman-vxworks.ads \
438 s-intman.adb<s-intman-vxworks.adb \
439 s-osprim.adb<s-osprim-vxworks.adb \
440 s-parame.ads<s-parame-vxworks.ads \
441 s-parame.adb<s-parame-vxworks.adb \
442 s-stchop.adb<s-stchop-vxworks.adb \
443 s-taprop.adb<s-taprop-vxworks.adb \
444 s-taspri.ads<s-taspri-vxworks.ads \
445 s-vxwork.ads<s-vxwork-ppc.ads \
446 g-soccon.ads<g-soccon-vxworks.ads \
447 g-socthi.ads<g-socthi-vxworks.ads \
448 g-socthi.adb<g-socthi-vxworks.adb \
449 g-stsifd.adb<g-stsifd-sockets.adb \
450 g-sttsne.adb<g-sttsne-vxworks.adb \
451 g-sttsne.ads<g-sttsne-vxworks.ads
453 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-vxworks.adb
455 ifeq ($(strip $(filter-out yes,$(TRACE))),)
456 LIBGNAT_TARGET_PAIRS += \
457 s-traces.adb<s-traces-default.adb \
458 s-trafor.adb<s-trafor-default.adb \
459 s-trafor.ads<s-trafor-default.ads \
460 s-tratas.adb<s-tratas-default.adb \
461 s-tfsetr.adb<s-tfsetr-vxworks.adb
464 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
465 LIBGNAT_TARGET_PAIRS += \
466 s-osinte.adb<s-osinte-vxworks-rtp.adb \
467 s-osinte.ads<s-osinte-vxworks6.ads \
468 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
469 system.ads<system-vxworks-ppc-rtp.ads
471 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
473 LIBGNAT_TARGET_PAIRS += \
474 s-interr.adb<s-interr-vxworks.adb \
475 s-osinte.adb<s-osinte-vxworks.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
483 LIBGNAT_TARGET_PAIRS += \
484 s-osinte.ads<s-osinte-vxworks.ads
487 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
490 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
493 # vxworksae / vxworks 653
494 ifeq ($(strip $(filter-out powerpc% wrs vxworksae,$(targ))),)
495 # target pairs for kernel + vthreads runtime
496 LIBGNAT_TARGET_PAIRS = \
497 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
498 a-intnam.ads<a-intnam-vxworks.ads \
499 a-numaux.ads<a-numaux-vxworks.ads \
500 g-io.adb<g-io-vxworks-ppc-cert.adb \
501 g-io.ads<g-io-vxworks-ppc-cert.ads \
502 s-inmaop.adb<s-inmaop-posix.adb \
503 s-interr.adb<s-interr-vxworks.adb \
504 s-intman.ads<s-intman-vxworks.ads \
505 s-intman.adb<s-intman-vxworks.adb \
506 s-osinte.adb<s-osinte-vxworks.adb \
507 s-osinte.ads<s-osinte-vxworks.ads \
508 s-osprim.adb<s-osprim-vxworks.adb \
509 s-parame.ads<s-parame-ae653.ads \
510 s-parame.adb<s-parame-vxworks.adb \
511 s-taprop.adb<s-taprop-vxworks.adb \
512 s-taspri.ads<s-taspri-vxworks.ads \
513 s-tpopsp.adb<s-tpopsp-vxworks.adb \
514 s-vxwork.ads<s-vxwork-ppc.ads \
515 g-soccon.ads<g-soccon-vxworks.ads \
516 g-socthi.ads<g-socthi-vxworks.ads \
517 g-socthi.adb<g-socthi-vxworks.adb \
518 g-stsifd.adb<g-stsifd-sockets.adb \
519 g-sttsne.adb<g-sttsne-vxworks.adb \
520 g-sttsne.ads<g-sttsne-vxworks.ads \
521 system.ads<system-vxworks-ppc-vthread.ads
523 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-vxworks.adb
525 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
526 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
528 # Extra pairs for the vthreads runtime
529 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
530 LIBGNAT_TARGET_PAIRS += \
531 s-thread.adb<s-thread-ae653.adb
532 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o
535 ifeq ($(strip $(filter-out yes,$(TRACE))),)
536 LIBGNAT_TARGET_PAIRS += \
537 s-traces.adb<s-traces-default.adb \
538 s-trafor.adb<s-trafor-default.adb \
539 s-trafor.ads<s-trafor-default.ads \
540 s-tratas.adb<s-tratas-default.adb \
541 s-tfsetr.adb<s-tfsetr-vxworks.adb
545 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
546 LIBGNAT_TARGET_PAIRS = \
547 a-intnam.ads<a-intnam-vxworks.ads \
548 a-numaux.ads<a-numaux-vxworks.ads \
549 s-inmaop.adb<s-inmaop-posix.adb \
550 s-interr.adb<s-interr-vxworks.adb \
551 s-intman.ads<s-intman-vxworks.ads \
552 s-intman.adb<s-intman-vxworks.adb \
553 s-osinte.adb<s-osinte-vxworks.adb \
554 s-osinte.ads<s-osinte-vxworks.ads \
555 s-osprim.adb<s-osprim-vxworks.adb \
556 s-parame.ads<s-parame-vxworks.ads \
557 s-parame.adb<s-parame-vxworks.adb \
558 s-stchop.adb<s-stchop-vxworks.adb \
559 s-taprop.adb<s-taprop-vxworks.adb \
560 s-taspri.ads<s-taspri-vxworks.ads \
561 s-tpopsp.adb<s-tpopsp-vxworks.adb \
562 s-vxwork.ads<s-vxwork-sparcv9.ads \
563 g-soccon.ads<g-soccon-vxworks.ads \
564 g-socthi.ads<g-socthi-vxworks.ads \
565 g-socthi.adb<g-socthi-vxworks.adb \
566 g-stsifd.adb<g-stsifd-sockets.adb \
567 g-sttsne.adb<g-sttsne-vxworks.adb \
568 g-sttsne.ads<g-sttsne-vxworks.ads \
569 system.ads<system-vxworks-sparcv9.ads \
571 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-vxworks.adb
573 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
574 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
577 ifeq ($(strip $(filter-out %86 wrs vxworks,$(targ))),)
578 LIBGNAT_TARGET_PAIRS = \
579 a-intnam.ads<a-intnam-vxworks.ads \
580 i-vxwork.ads<i-vxwork-x86.ads \
581 s-inmaop.adb<s-inmaop-posix.adb \
582 s-intman.ads<s-intman-vxworks.ads \
583 s-intman.adb<s-intman-vxworks.adb \
584 a-numaux.adb<a-numaux-x86.adb \
585 a-numaux.ads<a-numaux-x86.ads \
586 s-osprim.adb<s-osprim-vxworks.adb \
587 s-parame.ads<s-parame-vxworks.ads \
588 s-parame.adb<s-parame-vxworks.adb \
589 s-stchop.adb<s-stchop-vxworks.adb \
590 s-taprop.adb<s-taprop-vxworks.adb \
591 s-taspri.ads<s-taspri-vxworks.ads \
592 s-vxwork.ads<s-vxwork-x86.ads \
593 g-bytswa.adb<g-bytswa-x86.adb \
594 g-soccon.ads<g-soccon-vxworks.ads \
595 g-socthi.ads<g-socthi-vxworks.ads \
596 g-socthi.adb<g-socthi-vxworks.adb \
597 g-stsifd.adb<g-stsifd-sockets.adb \
598 g-sttsne.adb<g-sttsne-vxworks.adb \
599 g-sttsne.ads<g-sttsne-vxworks.ads
601 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-vxworks.adb
603 ifeq ($(strip $(filter-out yes,$(TRACE))),)
604 LIBGNAT_TARGET_PAIRS += \
605 s-traces.adb<s-traces-default.adb \
606 s-trafor.adb<s-trafor-default.adb \
607 s-trafor.ads<s-trafor-default.ads \
608 s-tratas.adb<s-tratas-default.adb \
609 s-tfsetr.adb<s-tfsetr-vxworks.adb
612 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
613 LIBGNAT_TARGET_PAIRS += \
614 s-osinte.adb<s-osinte-vxworks-rtp.adb \
615 s-osinte.ads<s-osinte-vxworks6.ads \
616 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
617 system.ads<system-vxworks-x86-rtp.ads
619 EXTRA_GNATRTL_NONTASKING_OBJS=s-vxwexc.o
621 LIBGNAT_TARGET_PAIRS += \
622 s-interr.adb<s-interr-vxworks.adb \
623 s-osinte.adb<s-osinte-vxworks.adb \
624 s-tpopsp.adb<s-tpopsp-vxworks.adb \
625 system.ads<system-vxworks-x86.ads
627 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
628 LIBGNAT_TARGET_PAIRS += \
629 s-osinte.ads<s-osinte-vxworks6.ads
631 LIBGNAT_TARGET_PAIRS += \
632 s-osinte.ads<s-osinte-vxworks.ads
635 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
638 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
641 ifeq ($(strip $(filter-out arm% coff wrs vx%,$(targ))),)
642 LIBGNAT_TARGET_PAIRS = \
643 a-intnam.ads<a-intnam-vxworks.ads \
644 a-numaux.ads<a-numaux-vxworks.ads \
645 s-inmaop.adb<s-inmaop-posix.adb \
646 s-interr.adb<s-interr-vxworks.adb \
647 s-intman.ads<s-intman-vxworks.ads \
648 s-intman.adb<s-intman-vxworks.adb \
649 s-osinte.adb<s-osinte-vxworks.adb \
650 s-osinte.ads<s-osinte-vxworks.ads \
651 s-osprim.adb<s-osprim-vxworks.adb \
652 s-parame.ads<s-parame-vxworks.ads \
653 s-parame.adb<s-parame-vxworks.adb \
654 s-stchop.adb<s-stchop-vxworks.adb \
655 s-taprop.adb<s-taprop-vxworks.adb \
656 s-taspri.ads<s-taspri-vxworks.ads \
657 s-tpopsp.adb<s-tpopsp-vxworks.adb \
658 s-vxwork.ads<s-vxwork-arm.ads \
659 g-soccon.ads<g-soccon-vxworks.ads \
660 g-socthi.ads<g-socthi-vxworks.ads \
661 g-socthi.adb<g-socthi-vxworks.adb \
662 g-stsifd.adb<g-stsifd-sockets.adb \
663 g-sttsne.adb<g-sttsne-vxworks.adb \
664 g-sttsne.ads<g-sttsne-vxworks.ads \
665 system.ads<system-vxworks-arm.ads
667 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-vxworks.adb
669 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
670 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
673 ifeq ($(strip $(filter-out mips% 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-vxworks.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.adb<s-stchop-vxworks.adb \
687 s-taprop.adb<s-taprop-vxworks.adb \
688 s-taspri.ads<s-taspri-vxworks.ads \
689 s-tpopsp.adb<s-tpopsp-vxworks.adb \
690 s-vxwork.ads<s-vxwork-mips.ads \
691 g-soccon.ads<g-soccon-vxworks.ads \
692 g-socthi.ads<g-socthi-vxworks.ads \
693 g-socthi.adb<g-socthi-vxworks.adb \
694 g-stsifd.adb<g-stsifd-sockets.adb \
695 g-sttsne.adb<g-sttsne-vxworks.adb \
696 g-sttsne.ads<g-sttsne-vxworks.ads \
697 system.ads<system-vxworks-mips.ads
699 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-vxworks.adb
701 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
702 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
705 ifeq ($(strip $(filter-out sparc% sun solaris%,$(targ))),)
706 LIBGNAT_TARGET_PAIRS_32 = \
707 a-intnam.ads<a-intnam-solaris.ads \
708 s-inmaop.adb<s-inmaop-posix.adb \
709 s-intman.adb<s-intman-solaris.adb \
710 s-osinte.adb<s-osinte-solaris.adb \
711 s-osinte.ads<s-osinte-solaris.ads \
712 s-osprim.adb<s-osprim-solaris.adb \
713 s-taprop.adb<s-taprop-solaris.adb \
714 s-tasinf.adb<s-tasinf-solaris.adb \
715 s-tasinf.ads<s-tasinf-solaris.ads \
716 s-taspri.ads<s-taspri-solaris.ads \
717 s-tpopsp.adb<s-tpopsp-solaris.adb \
718 g-soccon.ads<g-soccon-solaris.ads \
719 g-soliop.ads<g-soliop-solaris.ads \
720 system.ads<system-solaris-sparc.ads
722 LIBGNAT_TARGET_PAIRS_64 = \
723 a-intnam.ads<a-intnam-solaris.ads \
724 s-inmaop.adb<s-inmaop-posix.adb \
725 s-intman.adb<s-intman-solaris.adb \
726 s-osinte.adb<s-osinte-solaris.adb \
727 s-osinte.ads<s-osinte-solaris.ads \
728 s-osprim.adb<s-osprim-solaris.adb \
729 s-taprop.adb<s-taprop-solaris.adb \
730 s-tasinf.adb<s-tasinf-solaris.adb \
731 s-tasinf.ads<s-tasinf-solaris.ads \
732 s-taspri.ads<s-taspri-solaris.ads \
733 s-tpopsp.adb<s-tpopsp-solaris.adb \
734 g-soccon.ads<g-soccon-solaris-64.ads \
735 g-soliop.ads<g-soliop-solaris.ads \
736 system.ads<system-solaris-sparcv9.ads
738 ifeq ($(strip $(filter-out sparc sun solaris%,$(targ))),)
739 LIBGNAT_TARGET_PAIRS = $(LIBGNAT_TARGET_PAIRS_32)
741 LIBGNAT_TARGET_PAIRS = $(LIBGNAT_TARGET_PAIRS_64)
744 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-solaris.adb
747 THREADSLIB = -lposix4 -lthread
748 MISCLIB = -lposix4 -lnsl -lsocket
750 GNATLIB_SHARED = gnatlib-shared-dual
752 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
753 LIBRARY_VERSION := $(LIB_VERSION)
755 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
756 LIBGNAT_TARGET_PAIRS = \
757 a-intnam.ads<a-intnam-solaris.ads \
758 s-inmaop.adb<s-inmaop-posix.adb \
759 s-intman.adb<s-intman-posix.adb \
760 s-osinte.adb<s-osinte-posix.adb \
761 s-osinte.ads<s-osinte-solaris-posix.ads \
762 s-osprim.adb<s-osprim-solaris.adb \
763 s-taprop.adb<s-taprop-posix.adb \
764 s-taspri.ads<s-taspri-posix.ads \
765 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
766 g-soccon.ads<g-soccon-solaris.ads \
767 g-soliop.ads<g-soliop-solaris.ads \
768 system.ads<system-solaris-sparc.ads
770 THREADSLIB = -lposix4 -lpthread
773 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
774 LIBGNAT_TARGET_PAIRS = $(LIBGNAT_TARGET_PAIRS_64)
778 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
779 LIBGNAT_TARGET_PAIRS = \
780 a-numaux.adb<a-numaux-x86.adb \
781 a-numaux.ads<a-numaux-x86.ads \
782 a-intnam.ads<a-intnam-solaris.ads \
783 s-inmaop.adb<s-inmaop-posix.adb \
784 s-intman.adb<s-intman-solaris.adb \
785 s-osinte.adb<s-osinte-solaris.adb \
786 s-osinte.ads<s-osinte-solaris.ads \
787 s-osprim.adb<s-osprim-solaris.adb \
788 s-taprop.adb<s-taprop-solaris.adb \
789 s-tasinf.adb<s-tasinf-solaris.adb \
790 s-tasinf.ads<s-tasinf-solaris.ads \
791 s-taspri.ads<s-taspri-solaris.ads \
792 s-tpopsp.adb<s-tpopsp-solaris.adb \
793 g-bytswa.adb<g-bytswa-x86.adb \
794 g-soccon.ads<g-soccon-solaris.ads \
795 g-soliop.ads<g-soliop-solaris.ads \
796 system.ads<system-solaris-x86.ads
798 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-solaris.adb
800 THREADSLIB = -lposix4 -lthread
801 MISCLIB = -lposix4 -lnsl -lsocket
803 GNATLIB_SHARED = gnatlib-shared-dual
805 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
806 LIBRARY_VERSION := $(LIB_VERSION)
809 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
810 LIBGNAT_TARGET_PAIRS = \
811 a-intnam.ads<a-intnam-linux.ads \
812 a-numaux.adb<a-numaux-x86.adb \
813 a-numaux.ads<a-numaux-x86.ads \
814 g-bytswa.adb<g-bytswa-x86.adb \
815 s-inmaop.adb<s-inmaop-posix.adb \
816 s-intman.adb<s-intman-posix.adb \
817 s-osprim.adb<s-osprim-posix.adb \
818 s-taspri.ads<s-taspri-posix.ads \
819 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
820 system.ads<system-linux-x86.ads
822 ifeq ($(strip $(filter-out marte,$(THREAD_KIND))),)
823 LIBGNAT_TARGET_PAIRS += \
824 a-exetim.adb<a-exetim-linux-marte.adb \
825 a-exetim.ads<a-exetim-linux-marte.ads \
826 a-extiti.adb<a-extiti-linux-marte.adb \
827 a-extiti.ads<a-extiti-linux-marte.ads \
828 a-rttiev.adb<a-rttiev-linux-marte.adb \
829 a-rttiev.ads<a-rttiev-linux-marte.ads \
830 g-soccon.ads<g-soccon-linux-x86-marte.ads \
831 s-osinte.adb<s-osinte-linux-marte.adb \
832 s-osinte.ads<s-osinte-linux-marte.ads \
833 s-taprop.adb<s-taprop-linux-marte.adb
835 EXTRA_GNATRTL_TASKING_OBJS=a-exetim.o a-extiti.o
840 LIBGNAT_TARGET_PAIRS += \
841 g-soccon.ads<g-soccon-linux-x86.ads \
842 s-osinte.adb<s-osinte-posix.adb \
843 s-osinte.ads<s-osinte-linux.ads \
844 s-taprop.adb<s-taprop-linux.adb
847 THREADSLIB = -lpthread
850 TOOLS_TARGET_PAIRS = \
851 mlib-tgt-specific.adb<mlib-tgt-linux.adb \
852 indepsw.adb<indepsw-gnu.adb
854 GNATLIB_SHARED = gnatlib-shared-dual
856 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
857 LIBRARY_VERSION := $(LIB_VERSION)
860 ifeq ($(strip $(filter-out %86 kfreebsd%,$(arch) $(osys))),)
861 LIBGNAT_TARGET_PAIRS = \
862 a-intnam.ads<a-intnam-freebsd.ads \
863 a-numaux.adb<a-numaux-x86.adb \
864 a-numaux.ads<a-numaux-x86.ads \
865 s-inmaop.adb<s-inmaop-posix.adb \
866 s-intman.adb<s-intman-posix.adb \
867 g-soccon.ads<g-soccon-freebsd.ads \
868 s-osinte.adb<s-osinte-posix.adb \
869 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
870 s-osprim.adb<s-osprim-posix.adb \
871 s-taprop.adb<s-taprop-linux.adb \
872 s-taspri.ads<s-taspri-posix.ads \
873 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
874 system.ads<system-freebsd-x86.ads
876 TOOLS_TARGET_PAIRS = \
877 mlib-tgt.adb<mlib-tgt-linux.adb \
878 indepsw.adb<indepsw-gnu.adb
880 SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
881 THREADSLIB = -lpthread
882 GNATLIB_SHARED = gnatlib-shared-dual
884 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
885 LIBRARY_VERSION := $(LIB_VERSION)
888 ifeq ($(strip $(filter-out %86 freebsd%,$(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 g-bytswa.adb<g-bytswa-x86.adb \
894 g-soccon.ads<g-soccon-freebsd.ads \
895 s-inmaop.adb<s-inmaop-posix.adb \
896 s-intman.adb<s-intman-posix.adb \
897 s-osinte.adb<s-osinte-freebsd.adb \
898 s-osinte.ads<s-osinte-freebsd.ads \
899 s-osprim.adb<s-osprim-posix.adb \
900 s-taprop.adb<s-taprop-posix.adb \
901 s-taspri.ads<s-taspri-posix.ads \
902 s-tpopsp.adb<s-tpopsp-posix.adb \
903 system.ads<system-freebsd-x86.ads
905 TOOLS_TARGET_PAIRS = \
906 mlib-tgt-specific.adb<mlib-tgt-linux.adb
907 GNATLIB_SHARED = gnatlib-shared-dual
910 THREADSLIB= -lpthread
912 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
913 LIBRARY_VERSION := $(LIB_VERSION)
916 ifeq ($(strip $(filter-out s390% linux%,$(arch) $(osys))),)
917 ifeq ($(strip $(filter-out s390x,$(arch))),)
918 LIBGNAT_TARGET_PAIRS = \
919 a-intnam.ads<a-intnam-linux.ads \
920 s-inmaop.adb<s-inmaop-posix.adb \
921 s-intman.adb<s-intman-posix.adb \
922 s-osinte.adb<s-osinte-posix.adb \
923 s-osinte.ads<s-osinte-linux.ads \
924 s-osprim.adb<s-osprim-posix.adb \
925 s-taprop.adb<s-taprop-linux.adb \
926 s-taspri.ads<s-taspri-posix.ads \
927 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
928 system.ads<system-linux-s390x.ads
930 LIBGNAT_TARGET_PAIRS = \
931 a-intnam.ads<a-intnam-linux.ads \
932 s-inmaop.adb<s-inmaop-posix.adb \
933 s-intman.adb<s-intman-posix.adb \
934 s-osinte.adb<s-osinte-posix.adb \
935 s-osinte.ads<s-osinte-linux.ads \
936 s-osprim.adb<s-osprim-posix.adb \
937 s-taprop.adb<s-taprop-linux.adb \
938 s-taspri.ads<s-taspri-posix.ads \
939 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
940 system.ads<system-linux-s390.ads
943 TOOLS_TARGET_PAIRS = \
944 mlib-tgt-specific.adb<mlib-tgt-linux.adb
947 THREADSLIB = -lpthread
948 GNATLIB_SHARED = gnatlib-shared-dual
949 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
950 LIBRARY_VERSION := $(LIB_VERSION)
953 ifeq ($(strip $(filter-out mips sgi irix%,$(targ))),)
954 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
955 LIBGNAT_TARGET_PAIRS = \
956 a-intnam.ads<a-intnam-irix.ads \
957 s-inmaop.adb<s-inmaop-posix.adb \
958 s-intman.adb<s-intman-irix.adb \
959 s-mastop.adb<s-mastop-irix.adb \
960 s-osinte.adb<s-osinte-irix.adb \
961 s-osinte.ads<s-osinte-irix.ads \
962 s-osprim.adb<s-osprim-posix.adb \
963 s-proinf.adb<s-proinf-irix-athread.adb \
964 s-proinf.ads<s-proinf-irix-athread.ads \
965 s-taprop.adb<s-taprop-irix.adb \
966 s-tasinf.ads<s-tasinf-irix.ads \
967 s-taspri.ads<s-taspri-posix.ads \
968 s-tpopsp.adb<s-tpopsp-posix.adb \
969 s-traceb.adb<s-traceb-mastop.adb \
970 g-soccon.ads<g-soccon-irix.ads \
971 system.ads<system-irix-n32.ads
973 THREADSLIB = -lpthread
974 GNATLIB_SHARED = gnatlib-shared-default
977 LIBGNAT_TARGET_PAIRS += \
978 s-mastop.adb<s-mastop-irix.adb \
979 s-osprim.adb<s-osprim-posix.adb \
980 s-traceb.adb<s-traceb-mastop.adb \
981 g-soccon.ads<g-soccon-irix.ads \
982 system.ads<system-irix-o32.ads
986 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-irix.adb
989 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
990 LIBRARY_VERSION := $(LIB_VERSION)
993 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
994 LIBGNAT_TARGET_PAIRS = \
995 a-excpol.adb<a-excpol-abort.adb \
996 a-intnam.ads<a-intnam-hpux.ads \
997 s-inmaop.adb<s-inmaop-posix.adb \
998 s-interr.adb<s-interr-sigaction.adb \
999 s-intman.adb<s-intman-posix.adb \
1000 s-osinte.adb<s-osinte-hpux-dce.adb \
1001 s-osinte.ads<s-osinte-hpux-dce.ads \
1002 s-parame.ads<s-parame-hpux.ads \
1003 s-osprim.adb<s-osprim-posix.adb \
1004 s-taprop.adb<s-taprop-hpux-dce.adb \
1005 s-taspri.ads<s-taspri-hpux-dce.ads \
1006 s-tpopsp.adb<s-tpopsp-posix.adb \
1007 g-soccon.ads<g-soccon-hpux.ads \
1008 system.ads<system-hpux.ads
1011 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1014 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
1015 LIBGNAT_TARGET_PAIRS = \
1016 a-intnam.ads<a-intnam-hpux.ads \
1017 s-inmaop.adb<s-inmaop-posix.adb \
1018 s-intman.adb<s-intman-posix.adb \
1019 s-osinte.adb<s-osinte-posix.adb \
1020 s-osinte.ads<s-osinte-hpux.ads \
1021 s-parame.ads<s-parame-hpux.ads \
1022 s-osprim.adb<s-osprim-posix.adb \
1023 s-traceb.adb<s-traceb-hpux.adb \
1024 s-taprop.adb<s-taprop-posix.adb \
1025 s-taspri.ads<s-taspri-posix.ads \
1026 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1027 g-soccon.ads<g-soccon-hpux.ads \
1028 system.ads<system-hpux.ads
1030 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-hpux.adb
1032 TGT_LIB = /usr/lib/libcl.a
1033 THREADSLIB = -lpthread
1037 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1038 GNATLIB_SHARED = gnatlib-shared-dual
1039 LIBRARY_VERSION := $(LIB_VERSION)
1042 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
1043 LIBGNAT_TARGET_PAIRS = \
1044 a-intnam.ads<a-intnam-aix.ads \
1045 s-inmaop.adb<s-inmaop-posix.adb \
1046 s-intman.adb<s-intman-posix.adb \
1047 s-osinte.adb<s-osinte-aix.adb \
1048 s-osinte.ads<s-osinte-aix.ads \
1049 s-osprim.adb<s-osprim-posix.adb \
1050 s-taprop.adb<s-taprop-posix.adb \
1051 s-taspri.ads<s-taspri-posix.ads \
1052 s-tpopsp.adb<s-tpopsp-posix.adb \
1053 g-soccon.ads<g-soccon-aix.ads \
1054 system.ads<system-aix.ads
1056 THREADSLIB = -lpthreads
1057 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1059 TOOLS_TARGET_PAIRS = \
1060 mlib-tgt-specific.adb<mlib-tgt-aix.adb \
1061 indepsw.adb<indepsw-aix.adb
1066 ifeq ($(strip $(filter-out lynxos,$(osys))),)
1067 TOOLS_TARGET_PAIRS = \
1068 mlib-tgt-specific.adb<mlib-tgt-lynxos.adb \
1069 indepsw.adb<indepsw-gnu.adb
1071 ifeq ($(strip $(filter-out %86 lynxos,$(arch) $(osys))),)
1072 LIBGNAT_TARGET_PAIRS = \
1073 a-numaux.adb<a-numaux-x86.adb \
1074 a-numaux.ads<a-numaux-x86.ads \
1075 a-intnam.ads<a-intnam-lynxos.ads \
1076 g-bytswa.adb<g-bytswa-x86.adb \
1077 g-soccon.ads<g-soccon-lynxos.ads \
1078 s-inmaop.adb<s-inmaop-posix.adb \
1079 s-intman.adb<s-intman-posix.adb \
1080 s-osinte.adb<s-osinte-lynxos.adb \
1081 s-osinte.ads<s-osinte-lynxos.ads \
1082 s-osprim.adb<s-osprim-posix.adb \
1083 s-taprop.adb<s-taprop-lynxos.adb \
1084 s-taspri.ads<s-taspri-lynxos.ads \
1085 s-tpopsp.adb<s-tpopsp-lynxos.adb \
1086 system.ads<system-lynxos-x86.ads
1088 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1091 LIBGNAT_TARGET_PAIRS = \
1092 a-intnam.ads<a-intnam-lynxos.ads \
1093 g-soccon.ads<g-soccon-lynxos.ads \
1094 s-inmaop.adb<s-inmaop-posix.adb \
1095 s-intman.adb<s-intman-posix.adb \
1096 s-osinte.adb<s-osinte-lynxos.adb \
1097 s-osinte.ads<s-osinte-lynxos.ads \
1098 s-osprim.adb<s-osprim-posix.adb \
1099 s-taprop.adb<s-taprop-lynxos.adb \
1100 s-taspri.ads<s-taspri-lynxos.ads \
1101 s-tpopsp.adb<s-tpopsp-lynxos.adb \
1102 system.ads<system-lynxos-ppc.ads
1106 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1107 LIBGNAT_TARGET_PAIRS = \
1108 a-intnam.ads<a-intnam-rtems.ads \
1109 s-inmaop.adb<s-inmaop-posix.adb \
1110 s-intman.adb<s-intman-posix.adb \
1111 s-osinte.adb<s-osinte-rtems.adb \
1112 s-osinte.ads<s-osinte-rtems.ads \
1113 s-osprim.adb<s-osprim-posix.adb \
1114 s-parame.adb<s-parame-rtems.adb \
1115 s-taprop.adb<s-taprop-posix.adb \
1116 s-taspri.ads<s-taspri-posix.ads \
1117 s-auxdec.ads<s-auxdec-empty.ads \
1118 s-auxdec.adb<s-auxdec-empty.adb \
1119 s-tpopsp.adb<s-tpopsp-rtems.adb
1122 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1123 LIBGNAT_TARGET_PAIRS = \
1124 a-intnam.ads<a-intnam-tru64.ads \
1125 s-inmaop.adb<s-inmaop-posix.adb \
1126 s-intman.adb<s-intman-posix.adb \
1127 s-mastop.adb<s-mastop-tru64.adb \
1128 s-osinte.adb<s-osinte-tru64.adb \
1129 s-osinte.ads<s-osinte-tru64.ads \
1130 s-osprim.adb<s-osprim-unix.adb \
1131 s-taprop.adb<s-taprop-tru64.adb \
1132 s-tasinf.ads<s-tasinf-tru64.ads \
1133 s-taspri.ads<s-taspri-tru64.ads \
1134 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1135 s-traceb.adb<s-traceb-mastop.adb \
1136 g-soccon.ads<g-soccon-tru64.ads \
1137 system.ads<system-tru64.ads
1139 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-tru64.adb
1143 THREADSLIB = -lpthread -lmach -lexc -lrt
1144 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1145 GNATLIB_SHARED = gnatlib-shared-default
1146 LIBRARY_VERSION := $(LIB_VERSION)
1149 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(host))),)
1159 @ gnu:[bin]vmssymvec $<
1162 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1163 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1164 LIBGNAT_TARGET_PAIRS_AUX1 = \
1165 g-enblsp.adb<g-enblsp-vms-ia64.adb \
1166 g-trasym.adb<g-trasym-vms-ia64.adb \
1167 s-auxdec.ads<s-auxdec-vms_64.ads \
1168 s-crtl.ads<s-crtl-vms64.ads \
1169 s-osinte.adb<s-osinte-vms-ia64.adb \
1170 s-osinte.ads<s-osinte-vms-ia64.ads \
1171 s-vaflop.adb<s-vaflop-vms-ia64.adb \
1172 system.ads<system-vms_64.ads
1174 LIBGNAT_TARGET_PAIRS_AUX2 = \
1175 s-parame.ads<s-parame-vms-ia64.ads
1177 ifeq ($(strip $(filter-out alpha64 dec vms% openvms% alphavms%,$(targ))),)
1178 LIBGNAT_TARGET_PAIRS_AUX1 = \
1179 g-enblsp.adb<g-enblsp-vms-alpha.adb \
1180 g-trasym.adb<g-trasym-vms-alpha.adb \
1181 s-asthan.adb<s-asthan-vms-alpha.adb \
1182 s-auxdec.ads<s-auxdec-vms_64.ads \
1183 s-crtl.ads<s-crtl-vms64.ads \
1184 s-osinte.adb<s-osinte-vms.adb \
1185 s-osinte.ads<s-osinte-vms.ads \
1186 s-vaflop.adb<s-vaflop-vms-alpha.adb \
1187 system.ads<system-vms_64.ads
1189 ifeq ($(strip $(filter-out express EXPRESS,$(THREAD_KIND))),)
1190 LIBGNAT_TARGET_PAIRS_AUX2 = \
1191 s-parame.ads<s-parame-vms-restrict.ads
1193 LIBGNAT_TARGET_PAIRS_AUX2 = \
1194 s-parame.ads<s-parame-vms-alpha.ads
1199 LIBGNAT_TARGET_PAIRS = \
1200 a-caldel.adb<a-caldel-vms.adb \
1201 a-calend.adb<a-calend-vms.adb \
1202 a-calend.ads<a-calend-vms.ads \
1203 a-dirval.adb<a-dirval-vms.adb \
1204 a-excpol.adb<a-excpol-abort.adb \
1205 a-intnam.ads<a-intnam-vms.ads \
1206 a-numaux.ads<a-numaux-vms.ads \
1207 g-expect.adb<g-expect-vms.adb \
1208 g-soccon.ads<g-soccon-vms.ads \
1209 g-socthi.ads<g-socthi-vms.ads \
1210 g-socthi.adb<g-socthi-vms.adb \
1211 g-stsifd.adb<g-stsifd-sockets.adb \
1212 g-sttsne.adb<g-sttsne-locking.adb \
1213 g-sttsne.ads<g-sttsne-locking.ads \
1214 i-c.ads<i-c-vms_64.ads \
1215 i-cstrin.ads<i-cstrin-vms_64.ads \
1216 i-cstrin.adb<i-cstrin-vms_64.adb \
1217 i-cpoint.ads<i-cpoint-vms_64.ads \
1218 i-cpoint.adb<i-cpoint-vms_64.adb \
1219 i-cstrea.adb<i-cstrea-vms.adb \
1220 s-inmaop.adb<s-inmaop-vms.adb \
1221 s-interr.adb<s-interr-vms.adb \
1222 s-intman.adb<s-intman-vms.adb \
1223 s-intman.ads<s-intman-vms.ads \
1224 s-osprim.adb<s-osprim-vms.adb \
1225 s-osprim.ads<s-osprim-vms.ads \
1226 s-taprop.adb<s-taprop-vms.adb \
1227 s-taspri.ads<s-taspri-vms.ads \
1228 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1229 s-tpopde.adb<s-tpopde-vms.adb \
1230 s-tpopde.ads<s-tpopde-vms.ads \
1231 s-traent.adb<s-traent-vms.adb \
1232 s-traent.ads<s-traent-vms.ads \
1233 $(LIBGNAT_TARGET_PAIRS_AUX1) \
1234 $(LIBGNAT_TARGET_PAIRS_AUX2)
1236 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1237 TOOLS_TARGET_PAIRS= \
1238 mlib-tgt-specific.adb<mlib-tgt-vms-ia64.adb \
1239 symbols.adb<symbols-vms.adb \
1240 symbols-processing.adb<symbols-processing-vms-ia64.adb
1242 TOOLS_TARGET_PAIRS= \
1243 mlib-tgt-specific.adb<mlib-tgt-vms-alpha.adb \
1244 symbols.adb<symbols-vms.adb \
1245 symbols-processing.adb<symbols-processing-vms-alpha.adb
1249 EXTRA_GNATMAKE_OBJS = mlib-tgt-vms.o
1253 GNATLIB_SHARED=gnatlib-shared-vms
1254 ifeq ($(strip $(filter-out alpha64 dec vms% openvms% alphavms%,$(targ))),)
1255 EXTRA_LIBGNAT_SRCS=vmshandler.asm
1256 EXTRA_LIBGNAT_OBJS=vmshandler.o
1258 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1260 ../../gnatlbr$(exeext) \
1261 ../../gnatsym$(exeext) \
1262 ../../vms_help$(exeext) \
1264 # This command transforms (YYYYMMDD) into YY,MMDD
1265 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\)/\2,\3/')
1266 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1267 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1270 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1271 LIBGNAT_TARGET_PAIRS = \
1272 a-dirval.adb<a-dirval-mingw.adb \
1273 a-excpol.adb<a-excpol-abort.adb \
1274 a-intnam.ads<a-intnam-mingw.ads \
1275 a-numaux.adb<a-numaux-x86.adb \
1276 a-numaux.ads<a-numaux-x86.ads \
1277 s-gloloc.adb<s-gloloc-mingw.adb \
1278 s-inmaop.adb<s-inmaop-dummy.adb \
1279 s-interr.adb<s-interr-sigaction.adb \
1280 s-intman.adb<s-intman-mingw.adb \
1281 s-memory.adb<s-memory-mingw.adb \
1282 s-osinte.ads<s-osinte-mingw.ads \
1283 s-osprim.adb<s-osprim-mingw.adb \
1284 s-taprop.adb<s-taprop-mingw.adb \
1285 s-taspri.ads<s-taspri-mingw.ads \
1286 g-bytswa.adb<g-bytswa-x86.adb \
1287 g-socthi.ads<g-socthi-mingw.ads \
1288 g-socthi.adb<g-socthi-mingw.adb \
1289 g-stsifd.adb<g-stsifd-sockets.adb \
1290 g-soccon.ads<g-soccon-mingw.ads \
1291 g-soliop.ads<g-soliop-mingw.ads \
1292 system.ads<system-mingw.ads
1294 TOOLS_TARGET_PAIRS= \
1295 mlib-tgt-specific.adb<mlib-tgt-mingw.adb \
1296 indepsw.adb<indepsw-mingw.adb
1300 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1301 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1302 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1303 EXTRA_GNATRTL_NONTASKING_OBJS = g-regist.o
1305 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT auto-import
1306 # support for array/record will be done.
1307 GNATLIB_SHARED = gnatlib-shared-win32
1308 LIBRARY_VERSION := $(LIB_VERSION)
1311 ifeq ($(strip $(filter-out powerpc% linux%,$(arch) $(osys))),)
1312 LIBGNAT_TARGET_PAIRS = \
1313 a-intnam.ads<a-intnam-linux.ads \
1314 g-soccon.ads<g-soccon-linux-ppc.ads \
1315 s-inmaop.adb<s-inmaop-posix.adb \
1316 s-intman.adb<s-intman-posix.adb \
1317 s-osinte.adb<s-osinte-posix.adb \
1318 s-osinte.ads<s-osinte-linux.ads \
1319 s-osprim.adb<s-osprim-posix.adb \
1320 s-taprop.adb<s-taprop-linux.adb \
1321 s-taspri.ads<s-taspri-posix.ads \
1322 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1323 system.ads<system-linux-ppc.ads
1325 TOOLS_TARGET_PAIRS = \
1326 mlib-tgt-specific.adb<mlib-tgt-linux.adb \
1327 indepsw.adb<indepsw-gnu.adb
1330 THREADSLIB = -lpthread
1331 GNATLIB_SHARED = gnatlib-shared-dual
1333 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1334 LIBRARY_VERSION := $(LIB_VERSION)
1337 ifeq ($(strip $(filter-out sparc% linux%,$(arch) $(osys))),)
1338 LIBGNAT_TARGET_PAIRS = \
1339 a-intnam.ads<a-intnam-linux.ads \
1340 s-inmaop.adb<s-inmaop-posix.adb \
1341 s-intman.adb<s-intman-posix.adb \
1342 s-osinte.adb<s-osinte-posix.adb \
1343 s-osinte.ads<s-osinte-linux.ads \
1344 s-osprim.adb<s-osprim-posix.adb \
1345 s-taprop.adb<s-taprop-linux.adb \
1346 s-taspri.ads<s-taspri-posix.ads \
1347 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1348 system.ads<system-linux-sparc.ads
1350 TOOLS_TARGET_PAIRS = \
1351 mlib-tgt-specific.adb<mlib-tgt-linux.adb \
1352 indepsw.adb<indepsw-gnu.adb
1355 THREADSLIB = -lpthread
1356 GNATLIB_SHARED = gnatlib-shared-dual
1358 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1359 LIBRARY_VERSION := $(LIB_VERSION)
1362 ifeq ($(strip $(filter-out hppa% linux%,$(arch) $(osys))),)
1363 LIBGNAT_TARGET_PAIRS = \
1364 a-intnam.ads<a-intnam-linux.ads \
1365 s-inmaop.adb<s-inmaop-posix.adb \
1366 s-intman.adb<s-intman-posix.adb \
1367 s-osinte.adb<s-osinte-posix.adb \
1368 s-osinte.ads<s-osinte-linux-hppa.ads \
1369 s-osprim.adb<s-osprim-posix.adb \
1370 s-taprop.adb<s-taprop-linux.adb \
1371 s-taspri.ads<s-taspri-posix.ads \
1372 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1373 system.ads<system-linux-hppa.ads
1375 TOOLS_TARGET_PAIRS = \
1376 mlib-tgt-specific.adb<mlib-tgt-linux.adb \
1377 indepsw.adb<indepsw-gnu.adb
1380 THREADSLIB = -lpthread
1381 GNATLIB_SHARED = gnatlib-shared-dual
1383 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1384 LIBRARY_VERSION := $(LIB_VERSION)
1387 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1388 LIBGNAT_TARGET_PAIRS = \
1389 a-intnam.ads<a-intnam-linux.ads \
1390 a-numaux.ads<a-numaux-libc-x86.ads \
1391 g-soccon.ads<g-soccon-linux-64.ads \
1392 s-inmaop.adb<s-inmaop-posix.adb \
1393 s-intman.adb<s-intman-posix.adb \
1394 s-osinte.ads<s-osinte-linux.ads \
1395 s-osinte.adb<s-osinte-posix.adb \
1396 s-osprim.adb<s-osprim-posix.adb \
1397 s-taprop.adb<s-taprop-linux.adb \
1398 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1399 s-taspri.ads<s-taspri-posix.ads \
1400 system.ads<system-linux-ia64.ads
1402 TOOLS_TARGET_PAIRS = \
1403 mlib-tgt-specific.adb<mlib-tgt-linux.adb \
1404 indepsw.adb<indepsw-gnu.adb
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 alpha% 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-osinte.ads<s-osinte-linux-alpha.ads \
1421 s-osinte.adb<s-osinte-posix.adb \
1422 s-osprim.adb<s-osprim-posix.adb \
1423 s-taprop.adb<s-taprop-linux.adb \
1424 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1425 s-taspri.ads<s-taspri-posix.ads \
1426 system.ads<system-linux-alpha.ads
1428 TOOLS_TARGET_PAIRS = \
1429 mlib-tgt-specific.adb<mlib-tgt-linux.adb \
1430 indepsw.adb<indepsw-gnu.adb
1434 THREADSLIB=-lpthread
1435 GNATLIB_SHARED=gnatlib-shared-dual
1436 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1437 LIBRARY_VERSION := $(LIB_VERSION)
1440 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
1441 LIBGNAT_TARGET_PAIRS = \
1442 a-intnam.ads<a-intnam-linux.ads \
1443 a-numaux.adb<a-numaux-x86.adb \
1444 a-numaux.ads<a-numaux-x86.ads \
1445 g-soccon.ads<g-soccon-linux-64.ads \
1446 s-inmaop.adb<s-inmaop-posix.adb \
1447 s-intman.adb<s-intman-posix.adb \
1448 s-osinte.ads<s-osinte-linux.ads \
1449 s-osinte.adb<s-osinte-posix.adb \
1450 s-osprim.adb<s-osprim-posix.adb \
1451 s-taprop.adb<s-taprop-linux.adb \
1452 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1453 s-taspri.ads<s-taspri-posix.ads \
1454 system.ads<system-linux-x86_64.ads
1456 TOOLS_TARGET_PAIRS = \
1457 mlib-tgt-specific.adb<mlib-tgt-linux.adb \
1458 indepsw.adb<indepsw-gnu.adb
1461 THREADSLIB=-lpthread
1462 GNATLIB_SHARED=gnatlib-shared-dual
1464 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1465 LIBRARY_VERSION := $(LIB_VERSION)
1468 ifeq ($(strip $(filter-out powerpc darwin%,$(arch) $(osys))),)
1469 LIBGNAT_TARGET_PAIRS = \
1470 a-intnam.ads<a-intnam-darwin.ads \
1471 a-numaux.ads<a-numaux-darwin.ads \
1472 a-numaux.adb<a-numaux-darwin.adb \
1473 g-soccon.ads<g-soccon-darwin.ads \
1474 i-forbla.adb<i-forbla-darwin.adb \
1475 s-inmaop.adb<s-inmaop-posix.adb \
1476 s-intman.adb<s-intman-posix.adb \
1477 s-osinte.adb<s-osinte-darwin.adb \
1478 s-osinte.ads<s-osinte-darwin.ads \
1479 s-osprim.adb<s-osprim-posix.adb \
1480 s-taprop.adb<s-taprop-posix.adb \
1481 s-taspri.ads<s-taspri-posix.ads \
1482 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1483 system.ads<system-darwin-ppc.ads
1485 TOOLS_TARGET_PAIRS = \
1486 mlib-tgt-specific.adb<mlib-tgt-darwin.adb
1489 GNATLIB_SHARED = gnatlib-shared-darwin
1490 SO_OPTS = -Wl,-flat_namespace -shared-libgcc
1493 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1494 LIBRARY_VERSION := $(LIB_VERSION)
1498 ifneq ($(EH_MECHANISM),)
1499 LIBGNAT_TARGET_PAIRS += a-exexpr.adb<a-exexpr$(EH_MECHANISM).adb
1500 EXTRA_LIBGNAT_SRCS+=raise$(EH_MECHANISM).c
1501 EXTRA_LIBGNAT_OBJS+=raise$(EH_MECHANISM).o
1504 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
1505 # explicitly already. The base files (a-except.ad?) are used only for building
1506 # the compiler and other basic tools.
1507 # These base versions lack Ada 2005 additions which would cause bootstrap
1508 # problems if included in the compiler and other basic tools.
1510 ifeq ($(filter-out a-except%,$(LIBGNAT_TARGET_PAIRS)),$(LIBGNAT_TARGET_PAIRS))
1511 LIBGNAT_TARGET_PAIRS += \
1512 a-except.ads<a-except-2005.ads \
1513 a-except.adb<a-except-2005.adb
1516 # The runtime library for gnat comprises two directories. One contains the
1517 # Ada source files that the compiler (gnat1) needs -- these files are listed
1518 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1519 # corresponding .ali files for the parts written in Ada, libgnat.a for
1520 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1521 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1522 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1523 # go into the directory. The pthreads emulation is built in the threads
1524 # subdirectory and copied.
1525 LIBGNAT_SRCS = ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1526 errno.c exit.c cal.c ctrl_c.c env.c env.h \
1527 raise.h raise.c sysdep.c aux-io.c init.c initialize.c seh_init.c \
1528 final.c tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c expect.c mkdir.c \
1529 socket.c gsocket.h targext.c $(EXTRA_LIBGNAT_SRCS)
1531 LIBGNAT_OBJS = adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o env.o \
1532 raise.o sysdep.o aux-io.o init.o initialize.o seh_init.o cal.o \
1533 final.o tracebak.o expect.o mkdir.o socket.o targext.o $(EXTRA_LIBGNAT_OBJS)
1535 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1536 # the library installation will change and there will be a
1537 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1538 # from ADA_INCLUDE_SRCS.
1540 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1541 # the following include file:
1543 include $(fsrcdir)/Makefile.rtl
1545 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
1546 g-trasym.o memtrack.o
1548 # Default run time files
1551 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1552 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1553 sequenio.ads system.ads memtrack.adb \
1554 a-[a-o]*.adb a-[p-z]*.adb a-[a-o]*.ads a-[p-z]*.ads g-*.ad? i-*.ad? \
1555 s-[a-o]*.adb s-[p-z]*.adb s-[a-o]*.ads s-[p-z]*.ads
1557 LIBGNAT=../rts/libgnat.a
1558 GCC_LINK=$(CC) -static-libgcc $(ADA_INCLUDES)
1560 # when compiling the tools, the runtime has to be first on the path so that
1561 # it hides the runtime files lying with the rest of the sources
1562 ifeq ($(TOOLSCASE),native)
1563 vpath %.ads ../rts ../
1564 vpath %.adb ../rts ../
1565 vpath %.c ../rts ../
1566 vpath %.h ../rts ../
1569 # in the cross tools case, everything is compiled with the native
1570 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1571 ifeq ($(TOOLSCASE),cross)
1579 ../../gnatchop$(exeext):
1580 $(GNATMAKE) -c $(ADA_INCLUDES) gnatchop --GCC="$(CC) $(ALL_ADAFLAGS)"
1581 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatchop
1582 $(GNATLINK) -v gnatchop -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1584 ../../gnat$(exeext):
1585 $(GNATMAKE) -c $(ADA_INCLUDES) gnatcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1586 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatcmd
1587 $(GNATLINK) -v gnatcmd -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1589 ../../gnatkr$(exeext):
1590 $(GNATMAKE) -c $(ADA_INCLUDES) gnatkr --GCC="$(CC) $(ALL_ADAFLAGS)"
1591 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatkr
1592 $(GNATLINK) -v gnatkr -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1594 ../../gnatls$(exeext):
1595 $(GNATMAKE) -c $(ADA_INCLUDES) gnatls --GCC="$(CC) $(ALL_ADAFLAGS)"
1596 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatls
1597 $(GNATLINK) -v gnatls -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1599 ../../gnatname$(exeext):
1600 $(GNATMAKE) -c $(ADA_INCLUDES) gnatname --GCC="$(CC) $(ALL_ADAFLAGS)"
1601 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatname
1602 $(GNATLINK) -v gnatname -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1604 ../../gprmake$(exeext):
1605 $(GNATMAKE) -c $(ADA_INCLUDES) gprmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1606 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gprmake
1607 $(GNATLINK) -v gprmake -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1609 ../../gnatprep$(exeext):
1610 $(GNATMAKE) -c $(ADA_INCLUDES) gnatprep --GCC="$(CC) $(ALL_ADAFLAGS)"
1611 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatprep
1612 $(GNATLINK) -v gnatprep -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1614 ../../gnatxref$(exeext):
1615 $(GNATMAKE) -c $(ADA_INCLUDES) gnatxref --GCC="$(CC) $(ALL_ADAFLAGS)"
1616 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatxref
1617 $(GNATLINK) -v gnatxref -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1619 ../../gnatfind$(exeext):
1620 $(GNATMAKE) -c $(ADA_INCLUDES) gnatfind --GCC="$(CC) $(ALL_ADAFLAGS)"
1621 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatfind
1622 $(GNATLINK) -v gnatfind -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1624 ../../gnatclean$(exeext):
1625 $(GNATMAKE) -c $(ADA_INCLUDES) gnatclean --GCC="$(CC) $(ALL_ADAFLAGS)"
1626 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatclean
1627 $(GNATLINK) -v gnatclean -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1629 ../../gnatsym$(exeext):
1630 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
1631 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
1632 $(GNATLINK) -v gnatsym -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1634 ../../gnatdll$(exeext):
1635 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
1636 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) $(GNATBIND_FLAGS) gnatdll
1637 $(GNATLINK) -v gnatdll -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1639 ../../vxaddr2line$(exeext): targext.o
1640 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
1641 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
1642 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(GCC_LINK)" targext.o $(CLIB)
1644 gnatmake-re: link.o targext.o
1645 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
1646 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1647 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
1648 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
1649 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1651 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1652 # with the former version of gnatlink itself which cannot override itself.
1653 gnatlink-re: link.o targext.o
1654 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
1655 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
1656 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
1657 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
1658 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
1660 # Needs to be built with CC=gcc
1661 # Since the RTL should be built with the latest compiler, remove the
1662 # stamp target in the parent directory whenever gnat1 is rebuilt
1664 # Likewise for the tools
1665 ../../gnatmake$(exeext): $(P) b_gnatm.o link.o targext.o $(GNATMAKE_OBJS)
1666 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
1669 ../../gnatlink$(exeext): $(P) b_gnatl.o link.o targext.o $(GNATLINK_OBJS)
1670 $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
1673 ../../gnatbl$(exeext): gnatbl.o
1674 $(GCC_LINK) -o $@ $(ALL_CFLAGS) $(LDFLAGS) gnatbl.o $(TOOLS_LIBS)
1676 gnatbl.o: gnatbl.c adaint.h
1677 $(CC) $(ALL_CFLAGS) $(INCLUDES) -c $< $(OUTPUT_OPTION)
1680 @if [ ! -f stamp-gnatlib ] ; \
1682 $(ECHO) You must first build the GNAT library: make gnatlib; \
1688 install-gnatlib: ../stamp-gnatlib
1689 # Create the directory before deleting it, in case the directory is
1690 # a list of directories (as it may be on VMS). This ensures we are
1691 # deleting the right one.
1692 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1693 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1694 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1695 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1696 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1697 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1698 for file in rts/*.ali; do \
1699 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1701 -$(INSTALL_DATA) rts/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1702 -cd rts; for file in *$(arext);do \
1703 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1704 $(RANLIB_FOR_TARGET) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
1706 -$(foreach file, $(EXTRA_ADALIB_FILES), \
1707 $(INSTALL_DATA_DATE) rts/$(file) $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
1709 # Install the shared libraries, if any, using $(INSTALL) instead
1710 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1711 # for shared libraries on some targets, e.g. on HP-UX where the x
1712 # permission is required.
1713 for file in gnat gnarl; do \
1714 if [ -f rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
1715 $(INSTALL) rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1716 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1718 if [ -f rts/lib$${file}$(soext) ]; then \
1719 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1720 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
1723 # This copy must be done preserving the date on the original file.
1724 for file in rts/*.ad?; do \
1725 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
1727 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
1728 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
1732 $(RM) rts/s-*$(objext)
1734 $(RM) rts/a-*$(objext)
1736 $(RM) rts/*$(objext)
1739 touch ../stamp-gnatlib2
1740 $(RM) ../stamp-gnatlib
1742 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1743 # successive target commands. Although the Gnu make documentation
1744 # implies this is true on all systems, I suspect it may not be, So care
1745 # has been taken to allow a sed script to look for ";)" and substitue
1746 # for ";" the appropriate character in the range of lines below
1747 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1749 # GNULLI Begin ###########################################################
1751 ../stamp-gnatlib1: Makefile ../stamp-gnatlib2
1755 # Copy target independent sources
1756 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
1757 $(LN_S) $(fsrcpfx)$(f) rts ;) true
1758 # Remove files to be replaced by target dependent sources
1759 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1760 rts/$(word 1,$(subst <, ,$(PAIR))))
1761 $(RM) rts/*-*-*.ads rts/*-*-*.adb
1762 # Copy new target dependent sources
1763 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1764 $(LN_S) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1765 rts/$(word 1,$(subst <, ,$(PAIR)));)
1766 $(RM) ../stamp-gnatlib
1767 touch ../stamp-gnatlib1
1769 # GNULLI End #############################################################
1771 # Don't use semicolon separated shell commands that involve list expansions.
1772 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1773 # line lengths in excess of 256 characters.
1774 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1775 # is guaranteed to overflow the buffer.
1777 gnatlib: ../stamp-gnatlib1 ../stamp-gnatlib2
1779 CC="`echo \"$(GCC_FOR_TARGET)\" \
1780 | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
1781 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1782 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
1784 -f ../Makefile $(LIBGNAT_OBJS)
1786 CC="`echo \"$(GCC_FOR_TARGET)\" \
1787 | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
1789 CFLAGS="$(GNATLIBCFLAGS)" \
1790 ADAFLAGS="$(GNATLIBFLAGS)" \
1794 $(RM) rts/libgnat$(arext) rts/libgnarl$(arext)
1795 $(AR_FOR_TARGET) $(AR_FLAGS) rts/libgnat$(arext) \
1796 $(addprefix rts/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
1797 ifneq ($(PREFIX_OBJS),)
1798 $(AR_FOR_TARGET) $(AR_FLAGS) rts/libgccprefix$(arext) \
1800 $(RANLIB_FOR_TARGET) rts/libgccprefix$(arext)
1802 $(RANLIB_FOR_TARGET) rts/libgnat$(arext)
1803 $(AR_FOR_TARGET) $(AR_FLAGS) rts/libgnarl$(arext) \
1804 $(addprefix rts/,$(GNATRTL_TASKING_OBJS))
1805 $(RANLIB_FOR_TARGET) rts/libgnarl$(arext)
1806 ifeq ($(GMEM_LIB),gmemlib)
1807 $(AR_FOR_TARGET) $(AR_FLAGS) rts/libgmem$(arext) \
1809 $(RANLIB_FOR_TARGET) rts/libgmem$(arext)
1811 $(CHMOD) a-wx rts/*.ali
1812 touch ../stamp-gnatlib
1814 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
1815 gnatlib-shared-default:
1816 $(MAKE) $(FLAGS_TO_PASS) \
1817 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1818 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1819 THREAD_KIND="$(THREAD_KIND)" \
1821 $(RM) rts/libgna*$(soext)
1822 cd rts; ../../xgcc -B../../ -shared $(GNATLIBCFLAGS) \
1823 $(TARGET_LIBGCC2_CFLAGS) \
1824 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1825 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1826 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1828 cd rts; ../../xgcc -B../../ -shared $(GNATLIBCFLAGS) \
1829 $(TARGET_LIBGCC2_CFLAGS) \
1830 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1831 $(GNATRTL_TASKING_OBJS) \
1832 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1834 cd rts; $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1836 cd rts; $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1839 gnatlib-shared-dual:
1840 $(MAKE) $(FLAGS_TO_PASS) \
1841 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1842 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1843 THREAD_KIND="$(THREAD_KIND)" \
1844 gnatlib-shared-default
1845 $(MV) rts/libgna*$(soext) .
1846 $(RM) ../stamp-gnatlib2
1847 $(MAKE) $(FLAGS_TO_PASS) \
1848 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1849 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1850 THREAD_KIND="$(THREAD_KIND)" \
1852 $(MV) libgna*$(soext) rts
1854 gnatlib-shared-dual-win32:
1855 $(MAKE) $(FLAGS_TO_PASS) \
1856 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1857 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1858 THREAD_KIND="$(THREAD_KIND)" \
1859 gnatlib-shared-win32
1860 $(MV) rts/libgna*$(soext) .
1861 $(RM) ../stamp-gnatlib2
1862 $(MAKE) $(FLAGS_TO_PASS) \
1863 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1864 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1865 THREAD_KIND="$(THREAD_KIND)" \
1867 $(MV) libgna*$(soext) rts
1869 # ??? we need to add the option to support auto-import of arrays/records to
1870 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
1871 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
1873 gnatlib-shared-win32:
1874 $(MAKE) $(FLAGS_TO_PASS) \
1875 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1876 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1877 THREAD_KIND="$(THREAD_KIND)" \
1879 $(RM) rts/libgna*$(soext)
1880 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1881 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1882 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1883 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
1884 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1885 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1886 $(GNATRTL_TASKING_OBJS) \
1887 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1888 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
1890 gnatlib-shared-darwin:
1891 $(MAKE) $(FLAGS_TO_PASS) \
1892 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1893 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) \
1895 THREAD_KIND="$(THREAD_KIND)" \
1897 $(RM) rts/libgnat$(soext) rts/libgnarl$(soext)
1898 cd rts; ../../xgcc -B../../ -dynamiclib $(TARGET_LIBGCC2_CFLAGS) \
1899 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1900 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1903 cd rts; ../../xgcc -B../../ -dynamiclib $(TARGET_LIBGCC2_CFLAGS) \
1904 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1905 $(GNATRTL_TASKING_OBJS) \
1907 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
1908 cd rts; $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1910 cd rts; $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1914 $(MAKE) $(FLAGS_TO_PASS) \
1915 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1916 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1917 THREAD_KIND="$(THREAD_KIND)" \
1919 $(RM) rts/libgna*$(soext)
1920 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
1921 objdump --syms $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) | \
1922 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
1923 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
1924 ../../xgcc -g -B../../ -shared -shared-libgcc \
1925 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
1926 sys\$$library:trace.exe \
1927 --for-linker=/noinform \
1928 --for-linker=SYMVEC_$$$$.opt \
1929 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
1930 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
1931 objdump --syms $(GNATRTL_TASKING_OBJS) | \
1932 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
1933 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
1934 ../../xgcc -g -B../../ -shared -shared-libgcc \
1935 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1936 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1937 sys\$$library:trace.exe \
1938 --for-linker=/noinform \
1939 --for-linker=SYMVEC_$$$$.opt \
1940 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
1943 $(MAKE) $(FLAGS_TO_PASS) \
1944 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1945 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1946 THREAD_KIND="$(THREAD_KIND)" \
1947 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
1951 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="" ../stamp-gnatlib1
1952 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' rts/system.ads > rts/s.ads
1953 $(MV) rts/s.ads rts/system.ads
1954 $(MAKE) $(FLAGS_TO_PASS) \
1956 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1957 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1958 THREAD_KIND="$(THREAD_KIND)" \
1959 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
1962 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="-gcc" ../stamp-gnatlib1
1963 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' rts/system.ads > rts/s.ads
1964 $(MV) rts/s.ads rts/system.ads
1965 $(MAKE) $(FLAGS_TO_PASS) \
1966 EH_MECHANISM="-gcc" \
1967 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1968 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1969 THREAD_KIND="$(THREAD_KIND)" \
1970 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
1972 # .s files for cross-building
1974 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
1976 # Compiling object files from source files.
1978 # Note that dependencies on obstack.h are not written
1979 # because that file is not part of GCC.
1980 # Dependencies on gvarargs.h are not written
1981 # because all that file does, when not compiling with GCC,
1982 # is include the system varargs.h.
1984 b_gnatl.c : $(GNATLINK_OBJS)
1985 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatl.c gnatlink.ali
1986 b_gnatl.o : b_gnatl.c
1988 b_gnatm.c : $(GNATMAKE_OBJS)
1989 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatm.c gnatmake.ali
1990 b_gnatm.o : b_gnatm.c
1992 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
1993 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
1995 # force no sibling call optimization on s-traceb.o so the number of stack
1996 # frames to be skipped when computing a call chain is not modified by
1997 # optimization. However we can do that only when building the runtime
1998 # (not the compiler) because the -fno-optimize-sibling-calls option exists
1999 # only in GCC 3 and above.
2001 ifneq (,$(findstring xgcc,$(CC)))
2002 NO_SIBLING_ADAFLAGS=-fno-optimize-sibling-calls
2004 NO_SIBLING_ADAFLAGS=
2007 s-traceb.o : s-traceb.adb
2008 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2009 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) \
2012 # force debugging information on s-tasdeb.o so that it is always
2013 # possible to set conditional breakpoints on tasks.
2015 s-tasdeb.o : s-tasdeb.adb s-tasdeb.ads
2016 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2019 # force no function reordering on a-except.o because of the exclusion bounds
2020 # mechanism (see the source file for more detailed information). However we
2021 # can do that only when building the runtime (not the compiler) because the
2022 # -fno-toplevel-reorder option exists only in GCC 4.2 and above.
2024 ifneq (,$(findstring xgcc,$(CC)))
2025 NO_REORDER_ADAFLAGS=-fno-toplevel-reorder
2027 NO_REORDER_ADAFLAGS=
2030 # force debugging information on a-except.o so that it is always
2031 # possible to set conditional breakpoints on exceptions.
2032 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2034 a-except.o : a-except.adb a-except.ads
2035 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O1 -fno-inline \
2036 $(NO_REORDER_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
2038 # compile s-except.o without optimization and with debug info to let the
2039 # debugger set breakpoints and inspect subprogram parameters on exception
2042 s-except.o : s-except.adb s-except.ads
2043 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2046 # force debugging information on s-assert.o so that it is always
2047 # possible to set breakpoint on assert failures.
2049 s-assert.o : s-assert.adb s-assert.ads a-except.ads
2050 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O2 $(ADA_INCLUDES) \
2053 adadecode.o : adadecode.c adadecode.h
2057 deftarg.o : deftarg.c
2059 exit.o : adaint.h exit.c
2065 socket.o : socket.c gsocket.h
2067 raise-gcc.o : raise-gcc.c raise.h
2068 raise.o : raise.c raise.h
2070 gen-soccon: gen-soccon.c gsocket.h
2071 $(CC) $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
2072 -UIN_GCC -DTARGET=\"$(target_alias)\" \
2076 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) \
2077 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2079 init.o : init.c adaint.h raise.h
2080 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) \
2081 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2083 initialize.o : initialize.c raise.h
2084 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) \
2085 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2087 targext.o : targext.c
2088 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) \
2089 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
2092 # No optimization to compile this file as optimizations (-O1 or above) breaks
2093 # the SEH handling on Windows. The reasons are not clear.
2094 seh_init.o : seh_init.c raise.h
2095 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) -O0 \
2096 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2098 # Need to keep the frame pointer in this file to pop the stack properly on
2100 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2101 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
2102 -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2104 # In GNU Make, ignore whether `stage*' exists.
2105 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2106 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2110 # Gnatlbr, Vms_help, and Gnat.hlp are only used on VMS
2112 ../../gnatlbr$(exeext): ../../prefix.o
2113 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlbr --GCC="$(CC) $(ALL_ADAFLAGS)"
2114 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlbr
2115 $(GNATLINK) -v gnatlbr -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2117 ../../vms_help$(exeext):
2118 $(GNATMAKE) -c $(ADA_INCLUDES) vms_help --GCC="$(CC) $(ALL_ADAFLAGS)"
2119 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vms_help
2120 $(GNATLINK) -v vms_help -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2122 ../../gnat.hlp: ../../vms_help$(exeext)
2123 ../../vms_help$(exeext) $(fsrcdir)/gnat.help_in \
2124 $(fsrcdir)/vms_data.ads ../../gnat.hlp