1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2004 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, 59 Temple Place - Suite 330,
19 #Boston, MA 02111-1307, 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
117 GNATBIND = $(STAGE_PREFIX)gnatbind
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 =
167 xmake_file = @xmake_file@
168 tmake_file = @tmake_file@
169 host_canonical=@host@
170 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
171 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
173 # Directory where sources are, from where we are.
177 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
178 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
179 fcurdir := $(shell ${PWD_COMMAND})
180 fcurpfx := $(shell ${PWD_COMMAND})/
182 # Top build directory, relative to here.
185 # Internationalization library.
187 LIBINTL_DEP = @LIBINTL_DEP@
189 # Any system libraries needed just for GNAT.
190 SYSLIBS = @GNAT_LIBEXC@
192 # List of extra object files linked in with various programs.
193 EXTRA_GNATTOOLS_OBJS = ../../prefix.o ../../version.o
195 # List extra gnattools
198 # List of target dependent sources, overridden below as necessary
201 # Type of tools build we are doing; default is not compiling tools.
204 # End of variables for you to override.
208 # This tells GNU Make version 3 not to put all variables in the environment.
211 # tmake_file and xmake_file expand to lists with entries of the form
212 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
213 # need to adjust the paths. There can't be spaces in the subst arguments
214 # or we get spurious spaces in the actual list of files to include.
217 ifneq ($(tmake_file),)
218 include $(subst /config,/../config,$(tmake_file))
222 ifneq ($(xmake_file),)
223 include $(subst /config,/../config,$(xmake_file))
226 # Now figure out from those variables how to compile and link.
228 all.indirect: Makefile ../gnat1$(exeext)
230 # IN_GCC distinguishes between code compiled into GCC itself and other
231 # programs built during a bootstrap.
232 # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler.
233 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
235 # This is the variable actually used when we compile.
236 LOOSE_CFLAGS = `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
237 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_CFLAGS) \
241 ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
243 # This is where we get libiberty.a from.
244 LIBIBERTY = ../../libiberty/libiberty.a
246 # How to link with both our special library facilities
247 # and the system's installed libraries.
248 LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
249 LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
250 TOOLS_LIBS = $(LIBGNAT) $(EXTRA_GNATTOOLS_OBJS) link.o ../../../libiberty/libiberty.a $(SYSLIBS)
252 # Specify the directories to be searched for header files.
253 # Both . and srcdir are used, in that order,
254 # so that tm.h and config.h will be found in the compilation
255 # subdirectory rather than in the source directory.
256 INCLUDES = -I- -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config \
257 -I$(srcdir)/../../include
259 ADA_INCLUDES = -I- -I. -I$(srcdir)
261 INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir) -I$(fsrcdir)/../config \
262 -I$(fsrcdir)/../../include -I$(fsrcdir)/..
263 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)
265 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
268 # Say how to compile Ada programs.
269 .SUFFIXES: .ada .adb .ads .asm
271 # Always use -I$(srcdir)/config when compiling.
273 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
276 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< \
280 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
283 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
285 # how to regenerate this file
286 Makefile: ../config.status $(srcdir)/Makefile.in $(srcdir)/../version.c
288 LANGUAGES="$(CONFIG_LANGUAGES)" \
290 CONFIG_FILES=ada/Makefile $(SHELL) config.status
292 # This tells GNU make version 3 not to export all the variables
293 # defined in this file into the environment.
296 # Lists of files for various purposes.
298 GNATLINK_OBJS = gnatlink.o \
299 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o gnatvsn.o \
300 hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o osint.o output.o rident.o \
301 s-exctab.o s-secsta.o s-stalib.o s-stoele.o sdefault.o stylesw.o switch.o system.o \
302 table.o tree_io.o types.o validsw.o widechar.o
304 GNATMAKE_OBJS = a-except.o ctrl_c.o ali.o ali-util.o s-casuti.o \
305 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
306 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
307 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
308 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o mlib-utl.o \
309 namet.o nlists.o opt.o osint.o osint-m.o output.o \
310 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 \
311 prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o \
312 rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
313 scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o \
314 sinfo.o sinput.o sinput-c.o sinput-p.o \
315 snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o switch.o switch-m.o \
316 table.o targparm.o tempdir.o tree_io.o types.o \
317 uintp.o uname.o urealp.o usage.o widechar.o \
318 $(EXTRA_GNATMAKE_OBJS)
320 # Convert the target variable into a space separated list of architecture,
321 # manufacturer, and operating system and assign each of those to its own
324 host:=$(subst -, ,$(host_canonical))
325 targ:=$(subst -, ,$(target))
326 arch:=$(word 1,$(targ))
327 ifeq ($(words $(targ)),2)
329 osys:=$(word 2,$(targ))
331 manu:=$(word 2,$(targ))
332 osys:=$(word 3,$(targ))
335 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
336 # The members of each pair must be separated by a '<' and no whitespace.
337 # Each pair must be separated by some amount of whitespace from the following
342 LIBGNAT_TARGET_PAIRS = \
343 a-intnam.ads<a-intnam-dummy.ads \
344 s-inmaop.adb<s-inmaop-dummy.adb \
345 s-intman.adb<s-intman-dummy.adb \
346 s-osinte.ads<s-osinte-dummy.ads \
347 s-osprim.adb<s-osprim-posix.adb \
348 s-taprop.adb<s-taprop-dummy.adb \
349 s-taspri.ads<s-taspri-dummy.ads
351 # Default shared object option. Note that we rely on the fact that the "soname"
352 # option will always be present and last in this flag, so that we can have
353 # $(SO_OPTS)libgnat-x.xx
355 SO_OPTS = -Wl,-soname,
357 # Default gnatlib-shared target.
358 # By default, equivalent to gnatlib.
359 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
360 # target when supported.
361 GNATLIB_SHARED = gnatlib
363 # default value for gnatmake's target dependent file
366 # By default, do not distribute prefix.o (in libgccprefix), since it is only
367 # needed by external GNAT tools such as gnatdist and Glide.
368 # Override this variable on native platforms when needed.
371 # To avoid duplicate code, use this variable to set PREFIX_OBJS when needed:
372 PREFIX_REAL_OBJS = ../prefix.o \
373 ../../libiberty/concat.o \
374 ../../libiberty/xmalloc.o \
375 ../../libiberty/xstrdup.o \
376 ../../libiberty/xexit.o
378 LIB_VERSION = $(strip $(shell grep ' Library_Version :' $(fsrcpfx)gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
380 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
381 # $(strip STRING) removes leading and trailing spaces from STRING.
382 # If what's left is null then it's a match.
384 ifeq ($(strip $(filter-out %86 os2 OS2 os2_emx,$(arch) $(osys))),)
385 LIBGNAT_TARGET_PAIRS = \
386 a-excpol.adb<a-excpol-abort.adb \
387 a-intnam.ads<a-intnam-dummy.ads \
388 a-numaux.adb<a-numaux-x86.adb \
389 a-numaux.ads<a-numaux-x86.ads \
390 s-inmaop.adb<s-inmaop-dummy.adb \
391 s-interr.adb<s-interr-dummy.adb \
392 s-intman.adb<s-intman-dummy.adb \
393 s-mastop.adb<s-mastop-x86.adb \
394 s-osinte.adb<s-osinte-os2.adb \
395 s-osinte.ads<s-osinte-os2.ads \
396 s-osprim.adb<s-osprim-os2.adb \
397 s-parame.adb<s-parame-os2.adb \
398 system.ads<system-os2.ads \
399 s-taprop.adb<s-taprop-os2.adb \
400 s-taspri.ads<s-taspri-os2.ads
402 EXTRA_GNATRTL_NONTASKING_OBJS = \
409 ifeq ($(strip $(filter-out %86 interix%,$(arch) $(osys))),)
410 LIBGNAT_TARGET_PAIRS = \
411 a-excpol.adb<a-excpol-interix.adb \
412 a-intnam.ads<a-intnam-interix.ads \
413 a-numaux.adb<a-numaux-x86.adb \
414 a-numaux.ads<a-numaux-x86.ads \
415 g-soccon.ads<g-soccon-interix.ads \
416 s-inmaop.adb<s-inmaop-posix.adb \
417 s-intman.adb<s-intman-posix.adb \
418 s-mastop.adb<s-mastop-x86.adb \
419 s-osinte.adb<s-osinte-fsu.adb \
420 s-osinte.ads<s-osinte-interix.ads \
421 s-osprim.adb<s-osprim-unix.adb \
422 s-taprop.adb<s-taprop-posix.adb \
423 system.ads<system-interix.ads \
424 s-taspri.ads<s-taspri-posix.ads \
425 s-tpopsp.adb<s-tpopsp-posix.adb
427 THREADSLIB = -lgthreads -lmalloc
428 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
431 # sysv5uw is SCO UnixWare 7
432 ifeq ($(strip $(filter-out %86 sysv5uw%,$(arch) $(osys))),)
433 LIBGNAT_TARGET_PAIRS = \
434 a-excpol.adb<a-excpol-abort.adb \
435 a-intnam.ads<a-intnam-unixware.ads \
436 a-numaux.adb<a-numaux-x86.adb \
437 a-numaux.ads<a-numaux-x86.ads \
438 s-inmaop.adb<s-inmaop-posix.adb \
439 s-intman.adb<s-intman-posix.adb \
440 s-mastop.adb<s-mastop-x86.adb \
441 s-osinte.ads<s-osinte-unixware.ads \
442 s-osinte.adb<s-osinte-unixware.adb \
443 s-osprim.adb<s-osprim-unix.adb \
444 s-taprop.adb<s-taprop-posix.adb \
445 s-taspri.ads<s-taspri-posix.ads \
446 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
447 system.ads<system-unixware.ads \
448 g-soccon.ads<g-soccon-unixware.ads \
449 g-soliop.ads<g-soliop-unixware.ads
451 THREADSLIB = -lthread
452 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
454 GNATLIB_SHARED = gnatlib-shared-dual
455 LIBRARY_VERSION := $(LIB_VERSION)
458 ifeq ($(strip $(filter-out alpha% dec vx%,$(targ))),)
459 LIBGNAT_TARGET_PAIRS = \
460 a-sytaco.ads<a-sytaco-vxworks.ads \
461 a-sytaco.adb<a-sytaco-vxworks.adb \
462 a-intnam.ads<a-intnam-vxworks.ads \
463 a-numaux.ads<a-numaux-vxworks.ads \
464 s-inmaop.adb<s-inmaop-posix.adb \
465 s-interr.adb<s-interr-vxworks.adb \
466 s-intman.ads<s-intman-vxworks.ads \
467 s-intman.adb<s-intman-vxworks.adb \
468 s-osinte.adb<s-osinte-vxworks.adb \
469 s-osinte.ads<s-osinte-vxworks.ads \
470 s-osprim.adb<s-osprim-vxworks.adb \
471 s-parame.ads<s-parame-vxworks.ads \
472 s-stchop.adb<s-stchop-vxworks.adb \
473 s-taprop.adb<s-taprop-vxworks.adb \
474 s-tpopsp.adb<s-tpopsp-vxworks.adb \
475 s-taspri.ads<s-taspri-vxworks.ads \
476 s-vxwork.ads<s-vxwork-alpha.ads \
477 g-soccon.ads<g-soccon-vxworks.ads \
478 g-socthi.ads<g-socthi-vxworks.ads \
479 g-socthi.adb<g-socthi-vxworks.adb \
480 system.ads<system-vxworks-alpha.ads
482 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
483 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
486 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
487 LIBGNAT_TARGET_PAIRS = \
488 a-sytaco.ads<a-sytaco-vxworks.ads \
489 a-sytaco.adb<a-sytaco-vxworks.adb \
490 a-intnam.ads<a-intnam-vxworks.ads \
491 a-numaux.ads<a-numaux-vxworks.ads \
492 s-inmaop.adb<s-inmaop-posix.adb \
493 s-interr.adb<s-interr-vxworks.adb \
494 s-intman.ads<s-intman-vxworks.ads \
495 s-intman.adb<s-intman-vxworks.adb \
496 s-osinte.adb<s-osinte-vxworks.adb \
497 s-osinte.ads<s-osinte-vxworks.ads \
498 s-osprim.adb<s-osprim-vxworks.adb \
499 s-parame.ads<s-parame-vxworks.ads \
500 s-stchop.adb<s-stchop-vxworks.adb \
501 s-taprop.adb<s-taprop-vxworks.adb \
502 s-taspri.ads<s-taspri-vxworks.ads \
503 s-tpopsp.adb<s-tpopsp-vxworks.adb \
504 s-vxwork.ads<s-vxwork-m68k.ads \
505 g-soccon.ads<g-soccon-vxworks.ads \
506 g-socthi.ads<g-socthi-vxworks.ads \
507 g-socthi.adb<g-socthi-vxworks.adb \
508 system.ads<system-vxworks-m68k.ads
510 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-vxworks.adb
512 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
513 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
515 ifeq ($(strip $(filter-out yes,$(TRACE))),)
516 LIBGNAT_TARGET_PAIRS += \
517 s-traces.adb<s-traces-default.adb \
518 s-tratas.adb<s-tratas-default.adb \
519 s-trafor.adb<s-trafor-default.adb \
520 s-trafor.ads<s-trafor-default.ads \
521 s-tfsetr.adb<s-tfsetr-vxworks.adb
525 ifeq ($(strip $(filter-out powerpc% wrs vxworks,$(targ))),)
526 LIBGNAT_TARGET_PAIRS = \
527 a-sytaco.ads<a-sytaco-vxworks.ads \
528 a-sytaco.adb<a-sytaco-vxworks.adb \
529 a-intnam.ads<a-intnam-vxworks.ads \
530 a-numaux.ads<a-numaux-vxworks.ads \
531 s-inmaop.adb<s-inmaop-posix.adb \
532 s-interr.adb<s-interr-vxworks.adb \
533 s-intman.ads<s-intman-vxworks.ads \
534 s-intman.adb<s-intman-vxworks.adb \
535 s-osinte.adb<s-osinte-vxworks.adb \
536 s-osinte.ads<s-osinte-vxworks.ads \
537 s-osprim.adb<s-osprim-vxworks.adb \
538 s-parame.ads<s-parame-vxworks.ads \
539 s-stchop.adb<s-stchop-vxworks.adb \
540 s-taprop.adb<s-taprop-vxworks.adb \
541 s-taspri.ads<s-taspri-vxworks.ads \
542 s-tpopsp.adb<s-tpopsp-vxworks.adb \
543 s-vxwork.ads<s-vxwork-ppc.ads \
544 g-soccon.ads<g-soccon-vxworks.ads \
545 g-socthi.ads<g-socthi-vxworks.ads \
546 g-socthi.adb<g-socthi-vxworks.adb \
547 system.ads<system-vxworks-ppc.ads
549 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-vxworks.adb
551 ifeq ($(strip $(filter-out yes,$(TRACE))),)
552 LIBGNAT_TARGET_PAIRS += \
553 s-traces.adb<s-traces-default.adb \
554 s-trafor.adb<s-trafor-default.adb \
555 s-trafor.ads<s-trafor-default.ads \
556 s-tratas.adb<s-tratas-default.adb \
557 s-tfsetr.adb<s-tfsetr-vxworks.adb
560 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
561 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
564 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
565 LIBGNAT_TARGET_PAIRS = \
566 a-sytaco.ads<a-sytaco-vxworks.ads \
567 a-sytaco.adb<a-sytaco-vxworks.adb \
568 a-intnam.ads<a-intnam-vxworks.ads \
569 a-numaux.ads<a-numaux-vxworks.ads \
570 s-inmaop.adb<s-inmaop-posix.adb \
571 s-interr.adb<s-interr-vxworks.adb \
572 s-intman.ads<s-intman-vxworks.ads \
573 s-intman.adb<s-intman-vxworks.adb \
574 s-osinte.adb<s-osinte-vxworks.adb \
575 s-osinte.ads<s-osinte-vxworks.ads \
576 s-osprim.adb<s-osprim-vxworks.adb \
577 s-parame.ads<s-parame-vxworks.ads \
578 s-stchop.adb<s-stchop-vxworks.adb \
579 s-taprop.adb<s-taprop-vxworks.adb \
580 s-taspri.ads<s-taspri-vxworks.ads \
581 s-tpopsp.adb<s-tpopsp-vxworks.adb \
582 s-vxwork.ads<s-vxwork-sparcv9.ads \
583 g-soccon.ads<g-soccon-vxworks.ads \
584 g-socthi.ads<g-socthi-vxworks.ads \
585 g-socthi.adb<g-socthi-vxworks.adb \
586 system.ads<system-vxworks-sparcv9.ads \
588 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-vxworks.adb
590 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
591 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
594 ifeq ($(strip $(filter-out %86 wrs vxworks,$(targ))),)
595 LIBGNAT_TARGET_PAIRS = \
596 a-sytaco.ads<a-sytaco-vxworks.ads \
597 a-sytaco.adb<a-sytaco-vxworks.adb \
598 a-intnam.ads<a-intnam-vxworks.ads \
599 i-vxwork.ads<i-vxwork-x86.ads \
600 s-inmaop.adb<s-inmaop-posix.adb \
601 s-interr.adb<s-interr-vxworks.adb \
602 s-intman.ads<s-intman-vxworks.ads \
603 s-intman.adb<s-intman-vxworks.adb \
604 a-numaux.adb<a-numaux-x86.adb \
605 a-numaux.ads<a-numaux-x86.ads \
606 s-osinte.adb<s-osinte-vxworks.adb \
607 s-osinte.ads<s-osinte-vxworks.ads \
608 s-osprim.adb<s-osprim-vxworks.adb \
609 s-parame.ads<s-parame-vxworks.ads \
610 s-stchop.adb<s-stchop-vxworks.adb \
611 s-taprop.adb<s-taprop-vxworks.adb \
612 s-taspri.ads<s-taspri-vxworks.ads \
613 s-tpopsp.adb<s-tpopsp-vxworks.adb \
614 s-vxwork.ads<s-vxwork-x86.ads \
615 g-soccon.ads<g-soccon-vxworks.ads \
616 g-socthi.ads<g-socthi-vxworks.ads \
617 g-socthi.adb<g-socthi-vxworks.adb \
618 system.ads<system-vxworks-x86.ads
620 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-vxworks.adb
622 ifeq ($(strip $(filter-out yes,$(TRACE))),)
623 LIBGNAT_TARGET_PAIRS += \
624 s-traces.adb<s-traces-default.adb \
625 s-trafor.adb<s-trafor-default.adb \
626 s-trafor.ads<s-trafor-default.ads \
627 s-tratas.adb<s-tratas-default.adb \
628 s-tfsetr.adb<s-tfsetr-vxworks.adb
631 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
632 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
635 ifeq ($(strip $(filter-out xscale% coff wrs vx%,$(targ))),)
636 LIBGNAT_TARGET_PAIRS = \
637 a-sytaco.ads<a-sytaco-vxworks.ads \
638 a-sytaco.adb<a-sytaco-vxworks.adb \
639 a-intnam.ads<a-intnam-vxworks.ads \
640 a-numaux.ads<a-numaux-vxworks.ads \
641 s-inmaop.adb<s-inmaop-posix.adb \
642 s-interr.adb<s-interr-vxworks.adb \
643 s-intman.ads<s-intman-vxworks.ads \
644 s-intman.adb<s-intman-vxworks.adb \
645 s-osinte.adb<s-osinte-vxworks.adb \
646 s-osinte.ads<s-osinte-vxworks.ads \
647 s-osprim.adb<s-osprim-vxworks.adb \
648 s-parame.ads<s-parame-vxworks.ads \
649 s-stchop.adb<s-stchop-vxworks.adb \
650 s-taprop.adb<s-taprop-vxworks.adb \
651 s-taspri.ads<s-taspri-vxworks.ads \
652 s-tpopsp.adb<s-tpopsp-vxworks.adb \
653 s-vxwork.ads<s-vxwork-xscale.ads \
654 g-soccon.ads<g-soccon-vxworks.ads \
655 g-socthi.ads<g-socthi-vxworks.ads \
656 g-socthi.adb<g-socthi-vxworks.adb \
657 system.ads<system-elf-sparc.ads
659 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-vxworks.adb
661 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
662 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
665 ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)
666 LIBGNAT_TARGET_PAIRS = \
667 a-sytaco.ads<a-sytaco-vxworks.ads \
668 a-sytaco.adb<a-sytaco-vxworks.adb \
669 a-intnam.ads<a-intnam-vxworks.ads \
670 a-numaux.ads<a-numaux-vxworks.ads \
671 s-inmaop.adb<s-inmaop-posix.adb \
672 s-interr.adb<s-interr-vxworks.adb \
673 s-intman.ads<s-intman-vxworks.ads \
674 s-intman.adb<s-intman-vxworks.adb \
675 s-osinte.adb<s-osinte-vxworks.adb \
676 s-osinte.ads<s-osinte-vxworks.ads \
677 s-osprim.adb<s-osprim-vxworks.adb \
678 s-parame.ads<s-parame-vxworks.ads \
679 s-stchop.adb<s-stchop-vxworks.adb \
680 s-taprop.adb<s-taprop-vxworks.adb \
681 s-taspri.ads<s-taspri-vxworks.ads \
682 s-tpopsp.adb<s-tpopsp-vxworks.adb \
683 s-vxwork.ads<s-vxwork-mips.ads \
684 g-soccon.ads<g-soccon-vxworks.ads \
685 g-socthi.ads<g-socthi-vxworks.ads \
686 g-socthi.adb<g-socthi-vxworks.adb \
687 system.ads<system-vxworks-mips.ads
689 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-vxworks.adb
691 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
692 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
695 ifeq ($(strip $(filter-out sparc sun solaris%,$(targ))),)
696 LIBGNAT_TARGET_PAIRS = \
697 a-intnam.ads<a-intnam-solaris.ads \
698 s-inmaop.adb<s-inmaop-posix.adb \
699 s-intman.adb<s-intman-solaris.adb \
700 s-osinte.adb<s-osinte-solaris.adb \
701 s-osinte.ads<s-osinte-solaris.ads \
702 s-osprim.adb<s-osprim-solaris.adb \
703 s-parame.adb<s-parame-solaris.adb \
704 s-taprop.adb<s-taprop-solaris.adb \
705 s-tasinf.adb<s-tasinf-solaris.adb \
706 s-tasinf.ads<s-tasinf-solaris.ads \
707 s-taspri.ads<s-taspri-solaris.ads \
708 s-tpopsp.adb<s-tpopsp-solaris.adb \
709 g-soccon.ads<g-soccon-solaris.ads \
710 g-soliop.ads<g-soliop-solaris.ads \
711 system.ads<system-solaris-sparc.ads
713 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-solaris.adb
715 THREADSLIB = -lposix4 -lthread
716 MISCLIB = -lposix4 -lnsl -lsocket
718 GNATLIB_SHARED = gnatlib-shared-dual
720 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
721 LIBRARY_VERSION := $(LIB_VERSION)
723 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
724 LIBGNAT_TARGET_PAIRS = \
725 a-intnam.ads<a-intnam-solaris.ads \
726 s-inmaop.adb<s-inmaop-posix.adb \
727 s-intman.adb<s-intman-solaris.adb \
728 s-osinte.adb<s-osinte-fsu.adb \
729 s-osinte.ads<s-osinte-solaris-fsu.ads \
730 s-osprim.adb<s-osprim-solaris.adb \
731 s-taprop.adb<s-taprop-posix.adb \
732 s-taspri.ads<s-taspri-posix.ads \
733 s-tpopsp.adb<s-tpopsp-posix.adb \
734 g-soccon.ads<g-soccon-solaris.ads \
735 g-soliop.ads<g-soliop-solaris.ads \
736 system.ads<system-solaris-sparc.ads
738 THREADSLIB = -lgthreads -lmalloc
741 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
742 LIBGNAT_TARGET_PAIRS = \
743 a-intnam.ads<a-intnam-solaris.ads \
744 s-inmaop.adb<s-inmaop-posix.adb \
745 s-intman.adb<s-intman-posix.adb \
746 s-osinte.adb<s-osinte-posix.adb \
747 s-osinte.ads<s-osinte-solaris-posix.ads \
748 s-osprim.adb<s-osprim-solaris.adb \
749 s-taprop.adb<s-taprop-posix.adb \
750 s-taspri.ads<s-taspri-posix.ads \
751 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
752 g-soccon.ads<g-soccon-solaris.ads \
753 g-soliop.ads<g-soliop-solaris.ads \
754 system.ads<system-solaris-sparc.ads
756 THREADSLIB = -lposix4 -lpthread
759 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
760 LIBGNAT_TARGET_PAIRS = \
761 a-intnam.ads<a-intnam-solaris.ads \
762 s-inmaop.adb<s-inmaop-posix.adb \
763 s-intman.adb<s-intman-solaris.adb \
764 s-osinte.adb<s-osinte-solaris.adb \
765 s-osinte.ads<s-osinte-solaris.ads \
766 s-osprim.adb<s-osprim-solaris.adb \
767 s-parame.adb<s-parame-solaris.adb \
768 s-taprop.adb<s-taprop-solaris.adb \
769 s-tasinf.adb<s-tasinf-solaris.adb \
770 s-tasinf.ads<s-tasinf-solaris.ads \
771 s-taspri.ads<s-taspri-solaris.ads \
772 s-tpopsp.adb<s-tpopsp-solaris.adb \
773 g-soccon.ads<g-soccon-solaris.ads \
774 g-soliop.ads<g-soliop-solaris.ads \
775 system.ads<system-solaris-sparcv9.ads
779 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
780 LIBGNAT_TARGET_PAIRS = \
781 a-numaux.adb<a-numaux-x86.adb \
782 a-numaux.ads<a-numaux-x86.ads \
783 a-intnam.ads<a-intnam-solaris.ads \
784 s-inmaop.adb<s-inmaop-posix.adb \
785 s-intman.adb<s-intman-solaris.adb \
786 s-mastop.adb<s-mastop-x86.adb \
787 s-osinte.adb<s-osinte-solaris.adb \
788 s-osinte.ads<s-osinte-solaris.ads \
789 s-osprim.adb<s-osprim-solaris.adb \
790 s-parame.adb<s-parame-solaris.adb \
791 s-taprop.adb<s-taprop-solaris.adb \
792 s-tasinf.adb<s-tasinf-solaris.adb \
793 s-tasinf.ads<s-tasinf-solaris.ads \
794 s-taspri.ads<s-taspri-solaris.ads \
795 s-tpopsp.adb<s-tpopsp-solaris.adb \
796 g-soccon.ads<g-soccon-solaris.ads \
797 g-soliop.ads<g-soliop-solaris.ads \
798 system.ads<system-solaris-x86.ads
800 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-solaris.adb
802 THREADSLIB = -lposix4 -lthread
803 MISCLIB = -lposix4 -lnsl -lsocket
805 GNATLIB_SHARED = gnatlib-shared-dual
807 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
808 LIBRARY_VERSION := $(LIB_VERSION)
811 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
812 LIBGNAT_TARGET_PAIRS = \
813 a-intnam.ads<a-intnam-linux.ads \
814 a-numaux.adb<a-numaux-x86.adb \
815 a-numaux.ads<a-numaux-x86.ads \
816 s-inmaop.adb<s-inmaop-posix.adb \
817 s-intman.adb<s-intman-posix.adb \
818 s-mastop.adb<s-mastop-x86.adb \
819 s-osinte.adb<s-osinte-posix.adb \
820 s-osinte.ads<s-osinte-linux.ads \
821 s-osprim.adb<s-osprim-posix.adb \
822 s-taprop.adb<s-taprop-linux.adb \
823 s-taspri.ads<s-taspri-linux.ads \
824 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
825 s-parame.adb<s-parame-linux.adb \
826 system.ads<system-linux-x86.ads
828 TOOLS_TARGET_PAIRS = \
829 mlib-tgt.adb<mlib-tgt-linux.adb \
830 indepsw.adb<indepsw-linux.adb
832 THREADSLIB = -lpthread
833 GNATLIB_SHARED = gnatlib-shared-dual
835 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
836 LIBRARY_VERSION := $(LIB_VERSION)
838 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
839 LIBGNAT_TARGET_PAIRS = \
840 a-intnam.ads<a-intnam-linux.ads \
841 a-numaux.adb<a-numaux-x86.adb \
842 a-numaux.ads<a-numaux-x86.ads \
843 s-inmaop.adb<s-inmaop-posix.adb \
844 s-intman.adb<s-intman-posix.adb \
845 s-mastop.adb<s-mastop-x86.adb \
846 s-osinte.adb<s-osinte-fsu.adb \
847 s-osinte.ads<s-osinte-linux-fsu.ads \
848 s-osprim.adb<s-osprim-posix.adb \
849 s-taprop.adb<s-taprop-posix.adb \
850 s-taspri.ads<s-taspri-posix.ads \
851 s-tpopsp.adb<s-tpopsp-posix.adb \
852 system.ads<system-linux-x86.ads
854 THREADSLIB = -lgthreads -lmalloc
858 ifeq ($(strip $(filter-out %86 freebsd%,$(arch) $(osys))),)
859 LIBGNAT_TARGET_PAIRS = \
860 a-intnam.ads<a-intnam-freebsd.ads \
861 a-numaux.adb<a-numaux-x86.adb \
862 a-numaux.ads<a-numaux-x86.ads \
863 g-soccon.ads<g-soccon-freebsd.ads \
864 s-inmaop.adb<s-inmaop-posix.adb \
865 s-intman.adb<s-intman-posix.adb \
866 s-mastop.adb<s-mastop-x86.adb \
867 s-osinte.adb<s-osinte-freebsd.adb \
868 s-osinte.ads<s-osinte-freebsd.ads \
869 s-osprim.adb<s-osprim-posix.adb \
870 s-taprop.adb<s-taprop-posix.adb \
871 s-taspri.ads<s-taspri-posix.ads \
872 s-tpopsp.adb<s-tpopsp-posix.adb \
873 system.ads<system-freebsd-x86.ads
875 TOOLS_TARGET_PAIRS = \
876 mlib-tgt.adb<mlib-tgt-linux.adb
877 GNATLIB_SHARED = gnatlib-shared-dual
881 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
882 LIBRARY_VERSION := $(LIB_VERSION)
885 ifeq ($(strip $(filter-out s390% linux%,$(arch) $(osys))),)
886 ifeq ($(strip $(filter-out s390x,$(arch))),)
887 LIBGNAT_TARGET_PAIRS = \
888 a-intnam.ads<a-intnam-linux.ads \
889 s-inmaop.adb<s-inmaop-posix.adb \
890 s-intman.adb<s-intman-posix.adb \
891 s-osinte.adb<s-osinte-posix.adb \
892 s-osinte.ads<s-osinte-linux.ads \
893 s-osprim.adb<s-osprim-posix.adb \
894 s-taprop.adb<s-taprop-linux.adb \
895 s-taspri.ads<s-taspri-linux.ads \
896 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
897 s-parame.adb<s-parame-linux.adb \
898 system.ads<system-linux-s390x.ads
900 LIBGNAT_TARGET_PAIRS = \
901 a-intnam.ads<a-intnam-linux.ads \
902 s-inmaop.adb<s-inmaop-posix.adb \
903 s-intman.adb<s-intman-posix.adb \
904 s-osinte.adb<s-osinte-posix.adb \
905 s-osinte.ads<s-osinte-linux.ads \
906 s-osprim.adb<s-osprim-posix.adb \
907 s-taprop.adb<s-taprop-linux.adb \
908 s-taspri.ads<s-taspri-linux.ads \
909 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
910 s-parame.adb<s-parame-linux.adb \
911 system.ads<system-linux-s390.ads
914 TOOLS_TARGET_PAIRS = \
915 mlib-tgt.adb<mlib-tgt-linux.adb
917 THREADSLIB = -lpthread
918 GNATLIB_SHARED = gnatlib-shared-dual
919 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
920 LIBRARY_VERSION := $(LIB_VERSION)
923 ifeq ($(strip $(filter-out mips sgi irix%,$(targ))),)
924 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
925 LIBGNAT_TARGET_PAIRS = \
926 a-intnam.ads<a-intnam-irix.ads \
927 s-inmaop.adb<s-inmaop-posix.adb \
928 s-intman.adb<s-intman-irix.adb \
929 s-mastop.adb<s-mastop-irix.adb \
930 s-osinte.adb<s-osinte-irix.adb \
931 s-osinte.ads<s-osinte-irix.ads \
932 s-osprim.adb<s-osprim-posix.adb \
933 s-proinf.adb<s-proinf-irix-athread.adb \
934 s-proinf.ads<s-proinf-irix-athread.ads \
935 s-taprop.adb<s-taprop-irix.adb \
936 s-tasinf.ads<s-tasinf-irix.ads \
937 s-taspri.ads<s-taspri-posix.ads \
938 s-tpopsp.adb<s-tpopsp-posix.adb \
939 s-traceb.adb<s-traceb-mastop.adb \
940 g-soccon.ads<g-soccon-irix.ads \
941 system.ads<system-irix-n32.ads
943 THREADSLIB = -lpthread
944 GNATLIB_SHARED = gnatlib-shared-default
947 LIBGNAT_TARGET_PAIRS = \
948 a-intnam.ads<a-intnam-irix.ads \
949 s-inmaop.adb<s-inmaop-dummy.adb \
950 s-interr.adb<s-interr-sigaction.adb \
951 s-intman.adb<s-intman-irix-athread.adb \
952 s-mastop.adb<s-mastop-irix.adb \
953 s-osinte.adb<s-osinte-irix.adb \
954 s-osinte.ads<s-osinte-irix-athread.ads \
955 s-osprim.adb<s-osprim-posix.adb \
956 s-proinf.adb<s-proinf-irix-athread.adb \
957 s-proinf.ads<s-proinf-irix-athread.ads \
958 s-taprop.adb<s-taprop-irix-athread.adb \
959 s-tasinf.adb<s-tasinf-irix-athread.adb \
960 s-tasinf.ads<s-tasinf-irix-athread.ads \
961 s-taspri.ads<s-taspri-posix.ads \
962 s-traceb.adb<s-traceb-mastop.adb \
963 g-soccon.ads<g-soccon-irix.ads \
964 system.ads<system-irix-o32.ads
967 TOOLS_TARGET_PAIRS = mlib-tgt.adb<mlib-tgt-irix.adb
970 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
971 LIBRARY_VERSION := $(LIB_VERSION)
974 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
975 LIBGNAT_TARGET_PAIRS = \
976 a-excpol.adb<a-excpol-abort.adb \
977 a-intnam.ads<a-intnam-hpux.ads \
978 s-inmaop.adb<s-inmaop-posix.adb \
979 s-interr.adb<s-interr-sigaction.adb \
980 s-intman.adb<s-intman-posix.adb \
981 s-osinte.adb<s-osinte-hpux-dce.adb \
982 s-osinte.ads<s-osinte-hpux-dce.ads \
983 s-parame.ads<s-parame-hpux.ads \
984 s-osprim.adb<s-osprim-posix.adb \
985 s-taprop.adb<s-taprop-hpux-dce.adb \
986 s-taspri.ads<s-taspri-hpux-dce.ads \
987 s-tpopsp.adb<s-tpopsp-posix.adb \
988 g-soccon.ads<g-soccon-hpux.ads \
989 system.ads<system-hpux.ads
991 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
994 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
995 LIBGNAT_TARGET_PAIRS = \
996 a-intnam.ads<a-intnam-hpux.ads \
997 s-inmaop.adb<s-inmaop-posix.adb \
998 s-intman.adb<s-intman-posix.adb \
999 s-osinte.adb<s-osinte-posix.adb \
1000 s-osinte.ads<s-osinte-hpux.ads \
1001 s-parame.ads<s-parame-hpux.ads \
1002 s-osprim.adb<s-osprim-posix.adb \
1003 s-traceb.adb<s-traceb-hpux.adb \
1004 s-taprop.adb<s-taprop-posix.adb \
1005 s-taspri.ads<s-taspri-posix.ads \
1006 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1007 g-soccon.ads<g-soccon-hpux.ads \
1008 system.ads<system-hpux.ads
1010 TOOLS_TARGET_PAIRS = mlib-tgt.adb<mlib-tgt-hpux.adb
1011 TGT_LIB = /usr/lib/libcl.a
1012 THREADSLIB = -lpthread
1016 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1017 GNATLIB_SHARED = gnatlib-shared-dual
1018 LIBRARY_VERSION := $(LIB_VERSION)
1020 ifeq ($(strip $(filter-out dce DCE,$(THREAD_KIND))),)
1021 LIBGNAT_TARGET_PAIRS = \
1022 a-excpol.adb<a-excpol-abort.adb \
1023 a-intnam.ads<a-intnam-hpux.ads \
1024 s-inmaop.adb<s-inmaop-posix.adb \
1025 s-interr.adb<s-interr-sigaction.adb \
1026 s-intman.adb<s-intman-posix.adb \
1027 s-osinte.adb<s-osinte-hpux-dce.adb \
1028 s-osinte.ads<s-osinte-hpux-dce.ads \
1029 s-parame.ads<s-parame-hpux.ads \
1030 s-osprim.adb<s-osprim-posix.adb \
1031 s-taprop.adb<s-taprop-hpux-dce.adb \
1032 s-taspri.ads<s-taspri-hpux-dce.ads \
1033 s-tpopsp.adb<s-tpopsp-posix.adb \
1034 g-soccon.ads<g-soccon-hpux.ads \
1035 system.ads<system-hpux.ads
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 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
1060 LIBGNAT_TARGET_PAIRS = \
1061 a-intnam.ads<a-intnam-aix.ads \
1062 s-inmaop.adb<s-inmaop-posix.adb \
1063 s-intman.adb<s-intman-posix.adb \
1064 s-osinte.adb<s-osinte-fsu.adb \
1065 s-osinte.ads<s-osinte-aix-fsu.ads \
1066 s-osprim.adb<s-osprim-posix.adb \
1067 s-taprop.adb<s-taprop-posix.adb \
1068 s-taspri.ads<s-taspri-posix.ads \
1069 s-tpopsp.adb<s-tpopsp-posix.adb \
1070 g-soccon.ads<g-soccon-aix.ads \
1071 system.ads<system-aix.ads
1073 THREADSLIB = -lgthreads -lmalloc
1076 TOOLS_TARGET_PAIRS = \
1077 mlib-tgt.adb<mlib-tgt-aix.adb \
1078 indepsw.adb<indepsw-aix.adb
1083 ifeq ($(strip $(filter-out lynxos,$(osys))),)
1084 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-lynxos.adb
1086 ifeq ($(strip $(filter-out %86 lynxos,$(arch) $(osys))),)
1087 LIBGNAT_TARGET_PAIRS = \
1088 a-numaux.adb<a-numaux-x86.adb \
1089 a-numaux.ads<a-numaux-x86.ads \
1090 a-intnam.ads<a-intnam-lynxos.ads \
1091 s-mastop.adb<s-mastop-x86.adb \
1092 s-inmaop.adb<s-inmaop-posix.adb \
1093 s-intman.adb<s-intman-posix.adb \
1094 s-osinte.adb<s-osinte-lynxos.adb \
1095 s-osinte.ads<s-osinte-lynxos.ads \
1096 s-osprim.adb<s-osprim-posix.adb \
1097 s-taprop.adb<s-taprop-lynxos.adb \
1098 s-taspri.ads<s-taspri-lynxos.ads \
1099 s-tpopsp.adb<s-tpopsp-lynxos.adb \
1100 system.ads<system-lynxos-x86.ads
1102 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1105 LIBGNAT_TARGET_PAIRS = \
1106 a-intnam.ads<a-intnam-lynxos.ads \
1107 s-inmaop.adb<s-inmaop-posix.adb \
1108 s-intman.adb<s-intman-posix.adb \
1109 s-osinte.adb<s-osinte-lynxos-3.adb \
1110 s-osinte.ads<s-osinte-lynxos-3.ads \
1111 s-osprim.adb<s-osprim-posix.adb \
1112 s-taprop.adb<s-taprop-posix.adb \
1113 s-taspri.ads<s-taspri-posix.ads \
1114 s-tpopsp.adb<s-tpopsp-posix.adb \
1115 system.ads<system-lynxos-ppc.ads
1117 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
1118 LIBGNAT_TARGET_PAIRS = \
1119 a-intnam.ads<a-intnam-lynxos.ads \
1120 s-inmaop.adb<s-inmaop-posix.adb \
1121 s-intman.adb<s-intman-posix.adb \
1122 s-osinte.adb<s-osinte-lynxos.adb \
1123 s-osinte.ads<s-osinte-lynxos.ads \
1124 s-osprim.adb<s-osprim-posix.adb \
1125 s-taprop.adb<s-taprop-lynxos.adb \
1126 s-taspri.ads<s-taspri-lynxos.ads \
1127 s-tpopsp.adb<s-tpopsp-lynxos.adb \
1128 system.ads<system-lynxos-ppc.ads
1133 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1134 LIBGNAT_TARGET_PAIRS = \
1135 a-intnam.ads<4rintnam.ads \
1136 s-inmaop.adb<s-inmaop-posix.adb \
1137 s-intman.adb<s-intman-posix.adb \
1138 s-osinte.adb<5rosinte.adb \
1139 s-osinte.ads<5rosinte.ads \
1140 s-osprim.adb<s-osprim-posix.adb \
1141 s-parame.adb<5rparame.adb \
1142 s-taprop.adb<s-taprop-posix.adb \
1143 s-taspri.ads<s-taspri-posix.ads \
1144 s-tpopsp.adb<5rtpopsp.adb
1147 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1148 LIBGNAT_TARGET_PAIRS = \
1149 a-intnam.ads<a-intnam-tru64.ads \
1150 s-inmaop.adb<s-inmaop-posix.adb \
1151 s-intman.adb<s-intman-posix.adb \
1152 s-mastop.adb<s-mastop-tru64.adb \
1153 s-osinte.adb<s-osinte-tru64.adb \
1154 s-osinte.ads<s-osinte-tru64.ads \
1155 s-osprim.adb<s-osprim-unix.adb \
1156 s-taprop.adb<s-taprop-tru64.adb \
1157 s-tasinf.ads<s-tasinf-tru64.ads \
1158 s-taspri.ads<s-taspri-tru64.ads \
1159 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1160 s-traceb.adb<s-traceb-mastop.adb \
1161 g-soccon.ads<g-soccon-tru64.ads \
1162 system.ads<system-tru64.ads
1164 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-tru64.adb
1167 THREADSLIB = -lpthread -lmach -lexc -lrt
1168 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1169 GNATLIB_SHARED = gnatlib-shared-default
1170 LIBRARY_VERSION := $(LIB_VERSION)
1173 ifeq ($(strip $(filter-out alpha% ia64 dec hp vms% openvms% alphavms%,$(host))),)
1178 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1185 @ gnu:[bin]vmssymvec $<
1188 ifeq ($(strip $(filter-out alpha% ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1189 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1190 LIBGNAT_TARGET_PAIRS_AUX1 = \
1191 s-auxdec.ads<s-auxdec-vms_64.ads \
1192 s-crtl.ads<s-crtl-vms.ads \
1193 s-osinte.adb<s-osinte-vms-ia64.adb \
1194 s-osinte.ads<s-osinte-vms-ia64.ads \
1195 system.ads<system-vms_64.ads
1197 ifeq ($(strip $(filter-out alpha% dec vms% openvms% alphavms%,$(targ))),)
1198 LIBGNAT_TARGET_PAIRS_AUX1 = \
1199 s-crtl.ads<s-crtl-vms.ads \
1200 s-osinte.adb<s-osinte-vms.adb \
1201 s-osinte.ads<s-osinte-vms.ads \
1202 s-vaflop.adb<s-vaflop-vms-alpha.adb \
1203 system.ads<system-vms-zcx.ads
1206 ifeq ($(strip $(filter-out express EXPRESS,$(THREAD_KIND))),)
1207 LIBGNAT_TARGET_PAIRS_AUX2 = \
1208 s-parame.ads<s-parame-vms-restrict.ads
1210 LIBGNAT_TARGET_PAIRS_AUX2 = \
1211 s-parame.ads<s-parame-vms.ads
1214 LIBGNAT_TARGET_PAIRS = \
1215 a-caldel.adb<a-caldel-vms.adb \
1216 a-calend.adb<a-calend-vms.adb \
1217 a-calend.ads<a-calend-vms.ads \
1218 a-dirval.adb<a-dirval-vms.adb \
1219 a-excpol.adb<a-excpol-abort.adb \
1220 a-intnam.ads<a-intnam-vms.ads \
1221 a-numaux.ads<a-numaux-vms.ads \
1222 g-expect.adb<g-expect-vms.adb \
1223 g-soccon.ads<g-soccon-vms.adb \
1224 g-socthi.ads<g-socthi-vms.ads \
1225 g-socthi.adb<g-socthi-vms.adb \
1226 g-trasym.adb<g-trasym-vms.adb \
1227 i-cstrea.adb<i-cstrea-vms.adb \
1228 i-cpp.adb<i-cpp-vms.adb \
1229 interfac.ads<interfac-vms.ads \
1230 s-asthan.adb<s-asthan-vms.adb \
1231 s-inmaop.adb<s-inmaop-vms.adb \
1232 s-interr.adb<s-interr-vms.adb \
1233 s-intman.adb<s-intman-vms.adb \
1234 s-intman.ads<s-intman-vms.ads \
1235 s-osprim.adb<s-osprim-vms.adb \
1236 s-osprim.ads<s-osprim-vms.ads \
1237 s-taprop.adb<s-taprop-vms.adb \
1238 s-taspri.ads<s-taspri-vms.ads \
1239 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1240 s-tpopde.adb<s-tpopde-vms.adb \
1241 s-tpopde.ads<s-tpopde-vms.ads \
1242 s-traent.adb<s-traent-vms.adb \
1243 s-traent.ads<s-traent-vms.ads \
1244 $(LIBGNAT_TARGET_PAIRS_AUX1) \
1245 $(LIBGNAT_TARGET_PAIRS_AUX2)
1247 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1248 TOOLS_TARGET_PAIRS= \
1249 mlib-tgt.adb<mlib-tgt-vms-ia64.adb \
1250 symbols.adb<symbols-vms-ia64.adb
1252 TOOLS_TARGET_PAIRS= \
1253 mlib-tgt.adb<mlib-tgt-vms-alpha.adb \
1254 symbols.adb<symbols-vms-alpha.adb
1257 GNATLIB_SHARED=gnatlib-shared-vms
1258 ifeq ($(strip $(filter-out alpha% dec vms% openvms% alphavms%,$(targ))),)
1259 EXTRA_LIBGNAT_SRCS=vmshandler.asm
1260 EXTRA_LIBGNAT_OBJS=vmshandler.o
1262 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1264 ../../gnatlbr$(exeext) \
1265 ,,/../gnatsym$(exeext)
1266 # This command transforms (YYYYMMDD) into YY,MMDD
1267 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\)/\2,\3/')
1268 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1269 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1272 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1273 LIBGNAT_TARGET_PAIRS = \
1274 a-calend.adb<a-calend-mingw.adb \
1275 a-dirval.adb<a-dirval-mingw.adb \
1276 a-excpol.adb<a-excpol-abort.adb \
1277 a-intnam.ads<a-intnam-mingw.ads \
1278 a-numaux.adb<a-numaux-x86.adb \
1279 a-numaux.ads<a-numaux-x86.ads \
1280 s-gloloc.adb<s-gloloc-mingw.adb \
1281 s-inmaop.adb<s-inmaop-dummy.adb \
1282 s-interr.adb<s-interr-sigaction.adb \
1283 s-intman.adb<s-intman-mingw.adb \
1284 s-mastop.adb<s-mastop-x86.adb \
1285 s-memory.adb<s-memory-mingw.adb \
1286 s-osinte.ads<s-osinte-mingw.ads \
1287 s-osprim.adb<s-osprim-mingw.adb \
1288 s-taprop.adb<s-taprop-mingw.adb \
1289 s-taspri.ads<s-taspri-mingw.ads \
1290 s-parame.adb<s-parame-mingw.adb \
1291 g-socthi.ads<g-socthi-mingw.ads \
1292 g-socthi.adb<g-socthi-mingw.adb \
1293 g-soccon.ads<g-soccon-mingw.ads \
1294 g-soliop.ads<g-soliop-mingw.ads \
1295 system.ads<system-mingw.ads
1297 TOOLS_TARGET_PAIRS= \
1298 mlib-tgt.adb<mlib-tgt-mingw.adb \
1299 indepsw.adb<indepsw-mingw.adb
1303 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1304 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1305 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1306 EXTRA_GNATRTL_NONTASKING_OBJS = g-regist.o
1308 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT auto-import
1309 # support for array/record will be done.
1310 GNATLIB_SHARED = gnatlib-shared-win32
1311 LIBRARY_VERSION := $(LIB_VERSION)
1314 ifeq ($(strip $(filter-out powerpc% linux%,$(arch) $(osys))),)
1315 LIBGNAT_TARGET_PAIRS = \
1316 a-intnam.ads<a-intnam-linux.ads \
1317 s-inmaop.adb<s-inmaop-posix.adb \
1318 s-intman.adb<s-intman-posix.adb \
1319 s-osinte.adb<s-osinte-posix.adb \
1320 s-osinte.ads<s-osinte-linux.ads \
1321 s-osprim.adb<s-osprim-posix.adb \
1322 s-taprop.adb<s-taprop-linux.adb \
1323 s-taspri.ads<s-taspri-linux.ads \
1324 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1325 s-parame.adb<s-parame-linux.adb \
1326 system.ads<system-linux-ppc.ads
1328 TOOLS_TARGET_PAIRS = \
1329 mlib-tgt.adb<mlib-tgt-linux.adb \
1330 indepsw.adb<indepsw-linux.adb
1332 THREADSLIB = -lpthread
1333 GNATLIB_SHARED = gnatlib-shared-dual
1335 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1336 LIBRARY_VERSION := $(LIB_VERSION)
1340 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1341 LIBGNAT_TARGET_PAIRS = \
1342 a-intnam.ads<a-intnam-linux.ads \
1343 a-numaux.ads<a-numaux-libc-x86.ads \
1344 s-inmaop.adb<s-inmaop-posix.adb \
1345 s-intman.adb<s-intman-posix.adb \
1346 s-osinte.ads<s-osinte-linux.ads \
1347 s-osinte.adb<s-osinte-posix.adb \
1348 s-osprim.adb<s-osprim-posix.adb \
1349 s-taprop.adb<s-taprop-linux.adb \
1350 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1351 s-taspri.ads<s-taspri-linux.ads \
1352 system.ads<system-linux-ia64.ads
1354 TOOLS_TARGET_PAIRS = \
1355 mlib-tgt.adb<mlib-tgt-linux.adb \
1356 indepsw.adb<indepsw-linux.adb
1359 THREADSLIB=-lpthread
1360 GNATLIB_SHARED=gnatlib-shared-dual
1361 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1362 LIBRARY_VERSION := $(LIB_VERSION)
1365 ifeq ($(strip $(filter-out alpha% linux%,$(arch) $(osys))),)
1366 LIBGNAT_TARGET_PAIRS = \
1367 a-intnam.ads<a-intnam-linux.ads \
1368 s-inmaop.adb<s-inmaop-posix.adb \
1369 s-intman.adb<s-intman-posix.adb \
1370 s-osinte.ads<s-osinte-linux-alpha.ads \
1371 s-osinte.adb<s-osinte-posix.adb \
1372 s-osprim.adb<s-osprim-posix.adb \
1373 s-taprop.adb<s-taprop-linux.adb \
1374 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1375 s-taspri.ads<s-taspri-linux.ads \
1376 system.ads<system-linux-alpha.ads
1378 TOOLS_TARGET_PAIRS = \
1379 mlib-tgt.adb<mlib-tgt-linux.adb \
1380 indepsw.adb<indepsw-linux.adb
1383 THREADSLIB=-lpthread
1384 GNATLIB_SHARED=gnatlib-shared-dual
1385 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1386 LIBRARY_VERSION := $(LIB_VERSION)
1389 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
1390 LIBGNAT_TARGET_PAIRS = \
1391 a-intnam.ads<a-intnam-linux.ads \
1392 a-numaux.adb<a-numaux-x86.adb \
1393 a-numaux.ads<a-numaux-x86.ads \
1394 s-inmaop.adb<s-inmaop-posix.adb \
1395 s-intman.adb<s-intman-posix.adb \
1396 s-osinte.ads<s-osinte-linux.ads \
1397 s-osinte.adb<s-osinte-posix.adb \
1398 s-osprim.adb<s-osprim-posix.adb \
1399 s-taprop.adb<s-taprop-linux.adb \
1400 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1401 s-taspri.ads<s-taspri-linux.ads \
1402 system.ads<system-linux-x86_64.ads
1404 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-linux.adb
1405 THREADSLIB=-lpthread
1406 GNATLIB_SHARED=gnatlib-shared-dual
1408 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1409 LIBRARY_VERSION := $(LIB_VERSION)
1412 ifeq ($(strip $(filter-out powerpc darwin%,$(arch) $(osys))),)
1413 LIBGNAT_TARGET_PAIRS = \
1414 a-intnam.ads<a-intnam-darwin.ads \
1415 s-inmaop.adb<s-inmaop-posix.adb \
1416 s-intman.adb<s-intman-posix.adb \
1417 s-osinte.adb<s-osinte-darwin.adb \
1418 s-osinte.ads<s-osinte-darwin.ads \
1419 s-osprim.adb<s-osprim-posix.adb \
1420 s-taprop.adb<s-taprop-posix.adb \
1421 s-taspri.ads<s-taspri-posix.ads \
1422 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1423 g-soccon.ads<g-soccon-darwin.ads \
1424 a-numaux.ads<a-numaux-darwin.ads \
1425 a-numaux.adb<a-numaux-darwin.adb \
1426 system.ads<system-darwin-ppc.ads
1428 TOOLS_TARGET_PAIRS = \
1429 mlib-tgt.adb<mlib-tgt-darwin.adb
1431 GNATLIB_SHARED = gnatlib-shared-darwin
1432 SO_OPTS = -Wl,-flat_namespace
1436 LIBRARY_VERSION := $(LIB_VERSION)
1440 # The runtime library for gnat comprises two directories. One contains the
1441 # Ada source files that the compiler (gnat1) needs -- these files are listed
1442 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1443 # corresponding .ali files for the parts written in Ada, libgnat.a for
1444 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1445 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1446 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1447 # go into the directory. The pthreads emulation is built in the threads
1448 # subdirectory and copied.
1449 LIBGNAT_SRCS = ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1450 errno.c exit.c cal.c ctrl_c.c \
1451 raise.h raise.c sysdep.c aux-io.c init.c \
1452 final.c tracebak.c tb-alvms.c tb-alvxw.c expect.c mkdir.c socket.c gsocket.h \
1453 $(EXTRA_LIBGNAT_SRCS)
1455 LIBGNAT_OBJS = adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o \
1456 raise.o sysdep.o aux-io.o init.o cal.o final.o \
1457 tracebak.o expect.o mkdir.o socket.o $(EXTRA_LIBGNAT_OBJS)
1459 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1460 # the library installation will change and there will be a
1461 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1462 # from ADA_INCLUDE_SRCS.
1464 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1465 # the following include file:
1467 include $(fsrcdir)/Makefile.rtl
1469 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
1470 g-trasym.o memtrack.o
1472 # Default run time files
1475 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1476 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1477 sequenio.ads system.ads Makefile.prolog Makefile.generic \
1479 a-*.adb a-*.ads g-*.ad? i-*.ad? \
1480 s-[a-o]*.adb s-[p-z]*.adb \
1481 s-[a-o]*.ads s-[p-z]*.ads
1483 LIBGNAT=../rts/libgnat.a
1484 TOOLS_FLAGS_TO_PASS= \
1486 "CFLAGS=$(CFLAGS)" \
1487 "LDFLAGS=$(LDFLAGS)" \
1488 "ADAFLAGS=$(ADAFLAGS)" \
1489 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
1490 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
1491 "libsubdir=$(libsubdir)" \
1492 "exeext=$(exeext)" \
1493 "fsrcdir=$(fsrcdir)" \
1494 "srcdir=$(fsrcdir)" \
1495 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
1496 "GNATMAKE=$(GNATMAKE)" \
1497 "GNATLINK=$(GNATLINK)" \
1498 "GNATBIND=$(GNATBIND)"
1500 # Build directory for the tools. Let's copy the target-dependent
1501 # sources using the same mechanism as for gnatlib. The other sources are
1502 # accessed using the vpath directive below
1508 -(cd tools; $(LN_S) ../sdefault.adb .)
1509 -$(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
1510 $(RM) tools/$(word 1,$(subst <, ,$(PAIR)));\
1511 $(LN_S) $(fsrcdir)/$(word 2,$(subst <, ,$(PAIR))) \
1512 tools/$(word 1,$(subst <, ,$(PAIR)));)
1513 touch ../stamp-tools
1515 # when compiling the tools, the runtime has to be first on the path so that
1516 # it hides the runtime files lying with the rest of the sources
1517 ifeq ($(TOOLSCASE),native)
1518 vpath %.ads ../rts ../
1519 vpath %.adb ../rts ../
1520 vpath %.c ../rts ../
1521 vpath %.h ../rts ../
1524 # in the cross tools case, everything is compiled with the native
1525 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1526 ifeq ($(TOOLSCASE),cross)
1533 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
1534 # reasons: gnatmake should be built with a recent compiler, a recent compiler
1535 # may not generate ALI files compatible with an old gnatmake so it is important
1536 # to be able to build gnatmake without a version of gnatmake around. Once
1537 # everything has been compiled once, gnatmake can be recompiled with itself
1538 # (see target gnattools1-re)
1539 gnattools1: ../stamp-tools ../stamp-gnatlib
1540 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1542 ../../gnatmake$(exeext) ../../gnatlink$(exeext) ../../gnatbl$(exeext)
1544 # gnatmake/link can be built with recent gnatmake/link if they are available.
1545 # This is especially convenient for building cross tools or for rebuilding
1546 # the tools when the original bootstrap has already be done.
1547 gnattools1-re: ../stamp-tools
1548 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1549 TOOLSCASE=cross INCLUDES="" gnatmake-re gnatlink-re
1551 # these tools are built with gnatmake & are common to native and cross
1552 gnattools2: ../stamp-tools
1553 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1555 ../../gnatchop$(exeext) ../../gnat$(exeext) ../../gnatkr$(exeext) \
1556 ../../gnatls$(exeext) ../../gnatprep$(exeext) \
1557 ../../gnatxref$(exeext) \
1558 ../../gnatfind$(exeext) ../../gnatname$(exeext) \
1559 ../../gnatclean$(exeext) ../../gprmake$(exeext)
1561 # These tools are only built for the native version.
1562 gnattools3: ../stamp-tools
1563 ifneq ($(EXTRA_GNATTOOLS),)
1564 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1565 TOOLSCASE=native top_builddir=../../.. $(EXTRA_GNATTOOLS)
1568 # those tools are only built for the cross version
1569 gnattools4: ../stamp-tools
1570 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1571 TOOLSCASE=cross top_buildir=../../.. \
1572 ../../vxaddr2line$(exeext)
1574 ../../gnatchop$(exeext): ../stamp-tools
1575 $(GNATMAKE) -c $(ADA_INCLUDES) gnatchop --GCC="$(CC) $(ALL_ADAFLAGS)"
1576 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatchop
1577 $(GNATLINK) -v gnatchop -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1580 ../../gnat$(exeext): ../stamp-tools
1581 $(GNATMAKE) -c $(ADA_INCLUDES) gnatcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1582 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatcmd
1583 $(GNATLINK) -v gnatcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1585 ../../gnatkr$(exeext): ../stamp-tools
1586 $(GNATMAKE) -c $(ADA_INCLUDES) gnatkr --GCC="$(CC) $(ALL_ADAFLAGS)"
1587 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatkr
1588 $(GNATLINK) -v gnatkr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1590 ../../gnatls$(exeext): ../stamp-tools
1591 $(GNATMAKE) -c $(ADA_INCLUDES) gnatls --GCC="$(CC) $(ALL_ADAFLAGS)"
1592 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatls
1593 $(GNATLINK) -v gnatls -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1595 ../../gnatname$(exeext): ../stamp-tools
1596 $(GNATMAKE) -c $(ADA_INCLUDES) gnatname --GCC="$(CC) $(ALL_ADAFLAGS)"
1597 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatname
1598 $(GNATLINK) -v gnatname -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1601 ../../gprmake$(exeext): ../stamp-tools
1602 $(GNATMAKE) -c $(ADA_INCLUDES) gprmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1603 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gprmake
1604 $(GNATLINK) -v gprmake -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1607 ../../gnatprep$(exeext): ../stamp-tools
1608 $(GNATMAKE) -c $(ADA_INCLUDES) gnatprep --GCC="$(CC) $(ALL_ADAFLAGS)"
1609 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatprep
1610 $(GNATLINK) -v gnatprep -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1613 ../../gnatxref$(exeext): ../stamp-tools
1614 $(GNATMAKE) -c $(ADA_INCLUDES) gnatxref --GCC="$(CC) $(ALL_ADAFLAGS)"
1615 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatxref
1616 $(GNATLINK) -v gnatxref -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1619 ../../gnatfind$(exeext): ../stamp-tools
1620 $(GNATMAKE) -c $(ADA_INCLUDES) gnatfind --GCC="$(CC) $(ALL_ADAFLAGS)"
1621 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatfind
1622 $(GNATLINK) -v gnatfind -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1625 ../../gnatclean$(exeext): ../stamp-tools
1626 $(GNATMAKE) -c $(ADA_INCLUDES) gnatclean --GCC="$(CC) $(ALL_ADAFLAGS)"
1627 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatclean
1628 $(GNATLINK) -v gnatclean -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1631 ../../gnatsym$(exeext): ../stamp-tools
1632 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
1633 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
1634 $(GNATLINK) -v gnatsym -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1637 ../../gnatdll$(exeext): ../stamp-tools
1638 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
1639 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) $(GNATBIND_FLAGS) gnatdll
1640 $(GNATLINK) -v gnatdll -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1643 ../../vxaddr2line$(exeext): ../stamp-tools
1644 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
1645 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
1646 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(CLIB)
1648 gnatmake-re: ../stamp-tools link.o
1649 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
1650 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1651 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
1652 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
1653 --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1655 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1656 # with the former version of gnatlink itself which cannot override itself.
1657 gnatlink-re: ../stamp-tools link.o
1658 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
1659 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
1660 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
1661 --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1662 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
1664 # Needs to be built with CC=gcc
1665 # Since the RTL should be built with the latest compiler, remove the
1666 # stamp target in the parent directory whenever gnat1 is rebuilt
1668 # Likewise for the tools
1669 ../../gnatmake$(exeext): $(P) b_gnatm.o link.o $(GNATMAKE_OBJS)
1670 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
1673 ../../gnatlink$(exeext): $(P) b_gnatl.o link.o $(GNATLINK_OBJS)
1674 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
1677 ../../gnatbl$(exeext): gnatbl.o
1678 $(CC) -o $@ $(ALL_CFLAGS) $(LDFLAGS) gnatbl.o $(TOOLS_LIBS)
1680 gnatbl.o: gnatbl.c adaint.h
1681 $(CC) $(ALL_CFLAGS) $(INCLUDES) -c $< $(OUTPUT_OPTION)
1684 @if [ ! -f stamp-gnatlib ] ; \
1686 $(ECHO) You must first build the GNAT library: make gnatlib; \
1692 install-gnatlib: ../stamp-gnatlib
1693 # Create the directory before deleting it, in case the directory is
1694 # a list of directories (as it may be on VMS). This ensures we are
1695 # deleting the right one.
1696 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1697 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1698 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1699 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1700 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1701 $(RMDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1702 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1703 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1704 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1705 -$(INSTALL_DATA) rts/Makefile.prolog $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1706 -$(INSTALL_DATA) rts/Makefile.generic $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1707 for file in rts/*.ali; do \
1708 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1710 -$(INSTALL_DATA) rts/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1711 -cd rts; for file in *$(arext);do \
1712 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1713 $(RANLIB) $(RANLIB_FLAGS) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
1715 -$(foreach file, $(EXTRA_ADALIB_FILES), \
1716 $(INSTALL_DATA_DATE) rts/$(file) $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
1718 # Install the shared libraries, if any, using $(INSTALL) instead
1719 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1720 # for shared libraries on some targets, e.g. on HP-UX where the x
1721 # permission is required.
1722 for file in gnat gnarl; do \
1723 if [ -f rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
1724 $(INSTALL) rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1725 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1727 if [ -f rts/lib$${file}$(soext) ]; then \
1728 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1729 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
1732 # This copy must be done preserving the date on the original file.
1733 for file in rts/*.adb rts/*.ads; do \
1734 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
1736 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
1737 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
1741 $(RM) rts/s-*$(objext)
1743 $(RM) rts/a-*$(objext)
1745 $(RM) rts/*$(objext)
1748 touch ../stamp-gnatlib2
1749 $(RM) ../stamp-gnatlib
1751 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1752 # successive target commands. Although the Gnu make documentation
1753 # implies this is true on all systems, I suspect it may not be, So care
1754 # has been taken to allow a sed script to look for ";)" and substitue
1755 # for ";" the appropriate character in the range of lines below
1756 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1758 # GNULLI Begin ###########################################################
1760 ../stamp-gnatlib1: Makefile ../stamp-gnatlib2
1764 # Copy target independent sources
1765 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
1766 $(LN_S) $(fsrcpfx)$(f) rts ;) true
1767 # Remove files to be replaced by target dependent sources
1768 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1769 rts/$(word 1,$(subst <, ,$(PAIR))))
1770 $(RM) rts/*-*-*.ads rts/*-*-*.adb
1771 # Copy new target dependent sources
1772 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1773 $(LN_S) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1774 rts/$(word 1,$(subst <, ,$(PAIR)));)
1775 $(RM) ../stamp-gnatlib
1776 touch ../stamp-gnatlib1
1778 # GNULLI End #############################################################
1780 # Don't use semicolon separated shell commands that involve list expansions.
1781 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1782 # line lengths in excess of 256 characters.
1783 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1784 # is guaranteed to overflow the buffer.
1786 gnatlib: ../stamp-gnatlib1 ../stamp-gnatlib2
1787 $(MAKE) -C rts CC="../../xgcc -B../../" \
1788 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1789 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
1791 -f ../Makefile $(LIBGNAT_OBJS)
1792 $(MAKE) -C rts CC="../../xgcc -B../../" \
1794 CFLAGS="$(GNATLIBCFLAGS)" \
1795 ADAFLAGS="$(GNATLIBFLAGS)" \
1799 $(RM) rts/libgnat$(arext) rts/libgnarl$(arext)
1800 $(AR) $(AR_FLAGS) rts/libgnat$(arext) \
1801 $(addprefix rts/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
1802 ifneq ($(PREFIX_OBJS),)
1803 $(AR) $(AR_FLAGS) rts/libgccprefix$(arext) $(PREFIX_OBJS);
1805 -$(RANLIB) $(RANLIB_FLAGS) rts/libgnat$(arext)
1806 $(AR) $(AR_FLAGS) rts/libgnarl$(arext) \
1807 $(addprefix rts/,$(GNATRTL_TASKING_OBJS))
1808 -$(RANLIB) $(RANLIB_FLAGS) rts/libgnarl$(arext)
1809 ifeq ($(GMEM_LIB),gmemlib)
1810 $(AR) $(AR_FLAGS) rts/libgmem$(arext) rts/memtrack.o
1811 -$(RANLIB) $(RANLIB_FLAGS) rts/libgmem$(arext)
1813 $(CHMOD) a-wx rts/*.ali
1814 touch ../stamp-gnatlib
1816 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
1817 gnatlib-shared-default:
1818 $(MAKE) $(FLAGS_TO_PASS) \
1819 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1820 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1821 THREAD_KIND="$(THREAD_KIND)" \
1823 $(RM) rts/libgna*$(soext)
1824 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1825 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1826 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1827 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1829 cd rts; ../../xgcc -B../../ -shared $(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../../ -nostartfiles -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../../ -nostartfiles -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)" \
1950 gnatlib-sjlj: ../stamp-gnatlib1
1951 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' rts/system.ads > rts/s.ads
1952 $(MV) rts/s.ads rts/system.ads
1953 $(MAKE) $(FLAGS_TO_PASS) \
1954 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1955 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1956 THREAD_KIND="$(THREAD_KIND)" \
1957 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
1959 gnatlib-zcx: ../stamp-gnatlib1
1960 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' rts/system.ads > rts/s.ads
1961 $(MV) rts/s.ads rts/system.ads
1962 $(MAKE) $(FLAGS_TO_PASS) \
1963 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1964 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1965 THREAD_KIND="$(THREAD_KIND)" \
1966 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
1968 # .s files for cross-building
1970 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
1972 # Compiling object files from source files.
1974 # Note that dependencies on obstack.h are not written
1975 # because that file is not part of GCC.
1976 # Dependencies on gvarargs.h are not written
1977 # because all that file does, when not compiling with GCC,
1978 # is include the system varargs.h.
1980 b_gnatl.c : $(GNATLINK_OBJS)
1981 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatl.c gnatlink.ali
1982 b_gnatl.o : b_gnatl.c
1984 b_gnatm.c : $(GNATMAKE_OBJS)
1985 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatm.c gnatmake.ali
1986 b_gnatm.o : b_gnatm.c
1988 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
1989 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
1990 ADA_SHARE_MAKE_DIR = $(prefix)/share/gnat
1992 # force no sibling call optimization on s-traceb.o so the number of stack
1993 # frames to be skipped when computing a call chain is not modified by
1994 # optimization. However we can do that only when building the runtime
1995 # (not the compiler) because the -fno-optimize-sibling-calls exists
1998 ifneq (,$(findstring xgcc,$(CC)))
1999 NO_SIBLING_ADAFLAGS=-fno-optimize-sibling-calls
2001 NO_SIBLING_ADAFLAGS=
2004 s-traceb.o : s-traceb.adb
2005 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2006 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) \
2009 # force debugging information on s-tasdeb.o so that it is always
2010 # possible to set conditional breakpoints on tasks.
2012 s-tasdeb.o : s-tasdeb.adb s-tasdeb.ads
2013 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2016 # force debugging information on a-except.o so that it is always
2017 # possible to set conditional breakpoints on exceptions.
2018 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2020 a-except.o : a-except.adb a-except.ads
2021 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O1 -fno-inline \
2022 $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
2024 # force debugging information on s-assert.o so that it is always
2025 # possible to set breakpoint on assert failures.
2027 s-assert.o : s-assert.adb s-assert.ads a-except.ads
2028 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O2 $(ADA_INCLUDES) \
2031 adadecode.o : adadecode.c adadecode.h
2035 deftarg.o : deftarg.c
2037 exit.o : raise.h exit.c
2039 final.o : raise.h final.c
2043 socket.o : socket.c gsocket.h
2047 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2048 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2050 init.o : init.c ada.h types.h raise.h
2051 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2052 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2054 raise.o : raise.c raise.h
2055 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2056 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2058 # Need to keep the frame pointer in this file to pop the stack properly on
2060 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c
2061 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
2062 -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2064 # In GNU Make, ignore whether `stage*' exists.
2065 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2066 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2070 # Gnatlbr is only used on VMS
2072 ../../gnatlbr$(exeext): ../../prefix.o
2073 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlbr --GCC="$(CC) $(ALL_ADAFLAGS)"
2074 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlbr
2075 $(GNATLINK) -v gnatlbr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \