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.
108 # How to invoke ranlib.
110 # Test to use to see whether ranlib exists on the system.
111 RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
114 PWD_COMMAND = $${PWDCMD-pwd}
115 # How to copy preserving the date
116 INSTALL_DATA_DATE = cp -p
119 GNATBIND = $(STAGE_PREFIX)gnatbind
120 GNATBIND_FLAGS = -static -x
122 ADAFLAGS = -W -Wall -gnatpg -gnata
123 SOME_ADAFLAGS =-gnata
124 FORCE_DEBUG_ADAFLAGS = -g
125 GNATLIBFLAGS = -gnatpg -nostdinc
126 GNATLIBCFLAGS = -g -O2
127 GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
129 ALL_ADA_CFLAGS = $(X_ADA_CFLAGS) $(T_ADA_CFLAGS) $(ADA_CFLAGS)
130 ALL_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \
132 MOST_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \
139 ADDR2LINE_SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
140 SYMDEPS = $(LIBINTL_DEP)
141 OUTPUT_OPTION = @OUTPUT_OPTION@
150 # Define this as & to perform parallel make on a Sequent.
151 # Note that this has some bugs, and it seems currently necessary
152 # to compile all the gen* files first by hand to avoid erroneous results.
155 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
156 # It omits XCFLAGS, and specifies -B./.
157 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
158 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)
160 # Tools to use when building a cross-compiler.
161 # These are used because `configure' appends `cross-make'
162 # to the makefile when making a cross-compiler.
164 # We don't use cross-make. Instead we use the tools from the build tree,
165 # if they are available.
166 # program_transform_name and objdir are set by configure.in.
167 program_transform_name =
171 xmake_file = @xmake_file@
172 tmake_file = @tmake_file@
173 host_canonical=@host@
174 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
175 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
177 # Directory where sources are, from where we are.
181 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
182 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
183 fcurdir := $(shell ${PWD_COMMAND})
184 fcurpfx := $(shell ${PWD_COMMAND})/
186 # Top build directory, relative to here.
189 # Internationalization library.
191 LIBINTL_DEP = @LIBINTL_DEP@
193 # Any system libraries needed just for GNAT.
194 SYSLIBS = @GNAT_LIBEXC@
196 # List of extra object files linked in with various programs.
197 EXTRA_GNATTOOLS_OBJS = ../../prefix.o ../../version.o
199 # List extra gnattools
202 # List of target dependent sources, overridden below as necessary
205 # Type of tools build we are doing; default is not compiling tools.
208 # End of variables for you to override.
212 # This tells GNU Make version 3 not to put all variables in the environment.
215 # tmake_file and xmake_file expand to lists with entries of the form
216 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
217 # need to adjust the paths. There can't be spaces in the subst arguments
218 # or we get spurious spaces in the actual list of files to include.
221 ifneq ($(tmake_file),)
222 include $(subst /config,/../config,$(tmake_file))
226 ifneq ($(xmake_file),)
227 include $(subst /config,/../config,$(xmake_file))
230 # Now figure out from those variables how to compile and link.
232 all.indirect: Makefile ../gnat1$(exeext)
234 # IN_GCC distinguishes between code compiled into GCC itself and other
235 # programs built during a bootstrap.
236 # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler.
237 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
239 # This is the variable actually used when we compile.
240 LOOSE_CFLAGS = `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
241 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_CFLAGS) \
245 ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
247 # This is where we get libiberty.a from.
248 LIBIBERTY = ../../libiberty/libiberty.a
250 # How to link with both our special library facilities
251 # and the system's installed libraries.
252 LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
253 LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
254 TOOLS_LIBS = $(LIBGNAT) $(EXTRA_GNATTOOLS_OBJS) link.o ../../../libiberty/libiberty.a $(SYSLIBS)
256 # Specify the directories to be searched for header files.
257 # Both . and srcdir are used, in that order,
258 # so that tm.h and config.h will be found in the compilation
259 # subdirectory rather than in the source directory.
260 INCLUDES = -I- -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config \
261 -I$(srcdir)/../../include
263 ADA_INCLUDES = -I- -I. -I$(srcdir)
265 INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir) -I$(fsrcdir)/../config \
266 -I$(fsrcdir)/../../include -I$(fsrcdir)/..
267 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)
269 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
272 # Say how to compile Ada programs.
273 .SUFFIXES: .ada .adb .ads .asm
275 # Always use -I$(srcdir)/config when compiling.
277 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
280 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< \
284 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
287 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
289 # how to regenerate this file
290 Makefile: ../config.status $(srcdir)/Makefile.in $(srcdir)/../version.c
292 LANGUAGES="$(CONFIG_LANGUAGES)" \
294 CONFIG_FILES=ada/Makefile $(SHELL) config.status
296 # This tells GNU make version 3 not to export all the variables
297 # defined in this file into the environment.
300 # Lists of files for various purposes.
302 GNATLINK_OBJS = gnatlink.o \
303 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o gnatvsn.o \
304 hostparm.o interfac.o i-c.o i-cstrin.o namet.o opt.o osint.o output.o rident.o \
305 s-exctab.o s-secsta.o s-stalib.o s-stoele.o sdefault.o stylesw.o switch.o system.o \
306 table.o tree_io.o types.o validsw.o widechar.o
308 GNATMAKE_OBJS = a-except.o ctrl_c.o ali.o ali-util.o s-casuti.o \
309 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
310 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
311 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
312 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o mlib-utl.o \
313 namet.o nlists.o opt.o osint.o osint-m.o output.o \
314 prj.o prj-attr.o prj-com.o prj-dect.o prj-env.o prj-err.o prj-ext.o prj-nmsc.o \
315 prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o \
316 rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
317 scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o \
318 sinfo.o sinput.o sinput-c.o sinput-p.o \
319 snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o switch.o switch-m.o \
320 table.o targparm.o tempdir.o tree_io.o types.o \
321 uintp.o uname.o urealp.o usage.o widechar.o \
322 $(EXTRA_GNATMAKE_OBJS)
324 # Convert the target variable into a space separated list of architecture,
325 # manufacturer, and operating system and assign each of those to its own
328 host:=$(subst -, ,$(host_canonical))
329 targ:=$(subst -, ,$(target))
330 arch:=$(word 1,$(targ))
331 ifeq ($(words $(targ)),2)
333 osys:=$(word 2,$(targ))
335 manu:=$(word 2,$(targ))
336 osys:=$(word 3,$(targ))
339 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
340 # The members of each pair must be separated by a '<' and no whitespace.
341 # Each pair must be separated by some amount of whitespace from the following
346 LIBGNAT_TARGET_PAIRS = \
347 a-intnam.ads<4nintnam.ads \
348 s-inmaop.adb<5ninmaop.adb \
349 s-intman.adb<5nintman.adb \
350 s-osinte.ads<5nosinte.ads \
351 s-osprim.adb<7sosprim.adb \
352 s-taprop.adb<5ntaprop.adb \
353 s-taspri.ads<5ntaspri.ads
355 # Default shared object option. Note that we rely on the fact that the "soname"
356 # option will always be present and last in this flag, so that we can have
357 # $(SO_OPTS)libgnat-x.xx
359 SO_OPTS = -Wl,-soname,
361 # Default gnatlib-shared target.
362 # By default, equivalent to gnatlib.
363 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
364 # target when supported.
365 GNATLIB_SHARED = gnatlib
367 # default value for gnatmake's target dependent file
370 # By default, do not distribute prefix.o (in libgccprefix), since it is only
371 # needed by external GNAT tools such as gnatdist and Glide.
372 # Override this variable on native platforms when needed.
375 # To avoid duplicate code, use this variable to set PREFIX_OBJS when needed:
376 PREFIX_REAL_OBJS = ../prefix.o \
377 ../../libiberty/concat.o \
378 ../../libiberty/xmalloc.o \
379 ../../libiberty/xstrdup.o \
380 ../../libiberty/xexit.o
382 LIB_VERSION = $(strip $(shell grep ' Library_Version :' $(fsrcpfx)gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
384 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
385 # $(strip STRING) removes leading and trailing spaces from STRING.
386 # If what's left is null then it's a match.
388 ifeq ($(strip $(filter-out %86 os2 OS2 os2_emx,$(arch) $(osys))),)
389 LIBGNAT_TARGET_PAIRS = \
390 a-excpol.adb<4wexcpol.adb \
391 a-intnam.ads<4nintnam.ads \
392 a-numaux.adb<86numaux.adb \
393 a-numaux.ads<86numaux.ads \
394 s-inmaop.adb<5ninmaop.adb \
395 s-interr.adb<5ointerr.adb \
396 s-intman.adb<5nintman.adb \
397 s-mastop.adb<5omastop.adb \
398 s-osinte.adb<5oosinte.adb \
399 s-osinte.ads<5oosinte.ads \
400 s-osprim.adb<5oosprim.adb \
401 s-parame.adb<5oparame.adb \
402 system.ads<5osystem.ads \
403 s-taprop.adb<5otaprop.adb \
404 s-taspri.ads<5otaspri.ads
406 EXTRA_GNATRTL_NONTASKING_OBJS = \
413 ifeq ($(strip $(filter-out %86 interix%,$(arch) $(osys))),)
414 LIBGNAT_TARGET_PAIRS = \
415 a-excpol.adb<4hexcpol.adb \
416 a-intnam.ads<4pintnam.ads \
417 a-numaux.adb<86numaux.adb \
418 a-numaux.ads<86numaux.ads \
419 g-soccon.ads<3psoccon.ads \
420 s-inmaop.adb<7sinmaop.adb \
421 s-intman.adb<7sintman.adb \
422 s-mastop.adb<5omastop.adb \
423 s-osinte.adb<7sosinte.adb \
424 s-osinte.ads<5posinte.ads \
425 s-osprim.adb<5posprim.adb \
426 s-taprop.adb<7staprop.adb \
427 system.ads<5psystem.ads \
428 s-taspri.ads<7staspri.ads \
429 s-tpopsp.adb<7stpopsp.adb
431 THREADSLIB = -lgthreads -lmalloc
432 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
435 # sysv5uw is SCO UnixWare 7
436 ifeq ($(strip $(filter-out %86 sysv5uw%,$(arch) $(osys))),)
437 LIBGNAT_TARGET_PAIRS = \
438 a-excpol.adb<4wexcpol.adb \
439 a-intnam.ads<41intnam.ads \
440 a-numaux.adb<86numaux.adb \
441 a-numaux.ads<86numaux.ads \
442 s-inmaop.adb<7sinmaop.adb \
443 s-intman.adb<7sintman.adb \
444 s-mastop.adb<5omastop.adb \
445 s-osinte.ads<51osinte.ads \
446 s-osinte.adb<51osinte.adb \
447 s-osprim.adb<5posprim.adb \
448 s-taprop.adb<7staprop.adb \
449 s-taspri.ads<7staspri.ads \
450 s-tpopsp.adb<5atpopsp.adb \
451 system.ads<51system.ads \
452 g-soccon.ads<31soccon.ads \
453 g-soliop.ads<31soliop.ads
455 THREADSLIB = -lthread
456 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
458 GNATLIB_SHARED = gnatlib-shared-dual
459 LIBRARY_VERSION := $(LIB_VERSION)
462 ifeq ($(strip $(filter-out alpha% dec vx%,$(targ))),)
463 LIBGNAT_TARGET_PAIRS = \
464 a-sytaco.ads<4zsytaco.ads \
465 a-sytaco.adb<4zsytaco.adb \
466 a-intnam.ads<4zintnam.ads \
467 a-numaux.ads<4znumaux.ads \
468 s-inmaop.adb<7sinmaop.adb \
469 s-interr.adb<5zinterr.adb \
470 s-intman.ads<5zintman.ads \
471 s-intman.adb<5zintman.adb \
472 s-osinte.adb<5zosinte.adb \
473 s-osinte.ads<5zosinte.ads \
474 s-osprim.adb<5zosprim.adb \
475 s-parame.ads<5zparame.ads \
476 s-stchop.adb<5zstchop.adb \
477 s-taprop.adb<5ztaprop.adb \
478 s-tpopsp.adb<5ztpopsp.adb \
479 s-taspri.ads<5ztaspri.ads \
480 s-vxwork.ads<5avxwork.ads \
481 g-soccon.ads<3zsoccon.ads \
482 g-socthi.ads<3zsocthi.ads \
483 g-socthi.adb<3zsocthi.adb \
484 system.ads<5zsystem.ads
486 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
487 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
490 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
491 LIBGNAT_TARGET_PAIRS = \
492 a-sytaco.ads<4zsytaco.ads \
493 a-sytaco.adb<4zsytaco.adb \
494 a-intnam.ads<4zintnam.ads \
495 a-numaux.ads<4znumaux.ads \
496 s-inmaop.adb<7sinmaop.adb \
497 s-interr.adb<5zinterr.adb \
498 s-intman.ads<5zintman.ads \
499 s-intman.adb<5zintman.adb \
500 s-osinte.adb<5zosinte.adb \
501 s-osinte.ads<5zosinte.ads \
502 s-osprim.adb<5zosprim.adb \
503 s-parame.ads<5zparame.ads \
504 s-stchop.adb<5zstchop.adb \
505 s-taprop.adb<5ztaprop.adb \
506 s-taspri.ads<5ztaspri.ads \
507 s-tpopsp.adb<5ztpopsp.adb \
508 s-vxwork.ads<5kvxwork.ads \
509 g-soccon.ads<3zsoccon.ads \
510 g-socthi.ads<3zsocthi.ads \
511 g-socthi.adb<3zsocthi.adb \
512 system.ads<5ksystem.ads
514 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
516 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
517 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
519 ifeq ($(strip $(filter-out yes,$(TRACE))),)
520 LIBGNAT_TARGET_PAIRS += \
521 s-traces.adb<7straces.adb \
522 s-tratas.adb<7stratas.adb \
523 s-trafor.adb<7strafor.adb \
524 s-trafor.ads<7strafor.ads \
525 s-tfsetr.adb<5ztfsetr.adb
529 ifeq ($(strip $(filter-out powerpc% wrs vxworks,$(targ))),)
530 LIBGNAT_TARGET_PAIRS = \
531 a-sytaco.ads<4zsytaco.ads \
532 a-sytaco.adb<4zsytaco.adb \
533 a-intnam.ads<4zintnam.ads \
534 a-numaux.ads<4znumaux.ads \
535 s-inmaop.adb<7sinmaop.adb \
536 s-interr.adb<5zinterr.adb \
537 s-intman.ads<5zintman.ads \
538 s-intman.adb<5zintman.adb \
539 s-osinte.adb<5zosinte.adb \
540 s-osinte.ads<5zosinte.ads \
541 s-osprim.adb<5zosprim.adb \
542 s-parame.ads<5zparame.ads \
543 s-stchop.adb<5zstchop.adb \
544 s-taprop.adb<5ztaprop.adb \
545 s-taspri.ads<5ztaspri.ads \
546 s-tpopsp.adb<5ztpopsp.adb \
547 s-vxwork.ads<5pvxwork.ads \
548 g-soccon.ads<3zsoccon.ads \
549 g-socthi.ads<3zsocthi.ads \
550 g-socthi.adb<3zsocthi.adb \
551 system.ads<5ysystem.ads
553 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
555 EXTRA_HIE_NONE_TARGET_PAIRS= \
556 system.ads<50system.ads
558 EXTRA_RAVEN_SOURCES=i-vxwork.ads s-vxwork.ads
559 EXTRA_RAVEN_OBJS=i-vxwork.o s-vxwork.o
560 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
561 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
562 HIE_RAVEN_TARGET_PAIRS=\
563 $(HIE_NONE_TARGET_PAIRS) \
564 a-reatim.ads<1areatim.ads \
565 a-reatim.adb<1areatim.adb \
566 a-retide.adb<1aretide.adb \
567 a-interr.adb<1ainterr.adb \
568 s-interr.ads<1sinterr.ads \
569 s-interr.adb<1sinterr.adb \
570 s-taskin.ads<1staskin.ads \
571 s-taskin.adb<1staskin.adb \
572 s-taspri.ads<1staspri.ads \
573 s-tarest.adb<1starest.adb \
574 s-tposen.ads<1stposen.ads \
575 s-tposen.adb<1stposen.adb \
576 s-osinte.adb<1sosinte.adb \
577 s-taprop.ads<1staprop.ads \
578 s-taprop.adb<1staprop.adb \
579 s-taprob.ads<1staprob.ads \
580 s-taprob.adb<1staprob.adb \
581 a-sytaco.ads<1asytaco.ads \
582 a-sytaco.adb<1asytaco.adb \
583 a-intnam.ads<4zintnam.ads \
584 s-osinte.ads<5zosinte.ads \
585 s-parame.ads<5zparame.ads \
586 s-vxwork.ads<5pvxwork.ads \
587 a-taside.adb<1ataside.adb \
589 ifeq ($(strip $(filter-out yes,$(TRACE))),)
590 LIBGNAT_TARGET_PAIRS += \
591 s-traces.adb<7straces.adb \
592 s-trafor.adb<7strafor.adb \
593 s-trafor.ads<7strafor.ads \
594 s-tratas.adb<7stratas.adb \
595 s-tfsetr.adb<5ztfsetr.adb
599 ifeq ($(strip $(filter-out powerpc% unknown elf,$(targ))),)
600 EXTRA_HIE_NONE_TARGET_PAIRS= \
601 system.ads<59system.ads
603 LIBGNAT_TARGET_PAIRS = \
604 $(HIE_NONE_TARGET_PAIRS)
607 ifeq ($(strip $(filter-out sparc% unknown elf,$(targ))),)
608 EXTRA_HIE_NONE_TARGET_PAIRS= \
609 system.ads<5rsystem.ads
611 LIBGNAT_TARGET_PAIRS = \
612 $(HIE_NONE_TARGET_PAIRS)
615 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
616 LIBGNAT_TARGET_PAIRS = \
617 a-sytaco.ads<4zsytaco.ads \
618 a-sytaco.adb<4zsytaco.adb \
619 a-intnam.ads<4zintnam.ads \
620 a-numaux.ads<4znumaux.ads \
621 s-inmaop.adb<7sinmaop.adb \
622 s-interr.adb<5zinterr.adb \
623 s-intman.ads<5zintman.ads \
624 s-intman.adb<5zintman.adb \
625 s-osinte.adb<5zosinte.adb \
626 s-osinte.ads<5zosinte.ads \
627 s-osprim.adb<5zosprim.adb \
628 s-parame.ads<5zparame.ads \
629 s-stchop.adb<5zstchop.adb \
630 s-taprop.adb<5ztaprop.adb \
631 s-taspri.ads<5ztaspri.ads \
632 s-tpopsp.adb<5ztpopsp.adb \
633 s-vxwork.ads<5svxwork.ads \
634 g-soccon.ads<3zsoccon.ads \
635 g-socthi.ads<3zsocthi.ads \
636 g-socthi.adb<3zsocthi.adb \
637 system.ads<5csystem.ads \
639 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
641 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
642 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
645 ifeq ($(strip $(filter-out xscale% coff wrs vx%,$(targ))),)
646 LIBGNAT_TARGET_PAIRS = \
647 a-sytaco.ads<4zsytaco.ads \
648 a-sytaco.adb<4zsytaco.adb \
649 a-intnam.ads<4zintnam.ads \
650 a-numaux.ads<4znumaux.ads \
651 s-inmaop.adb<7sinmaop.adb \
652 s-interr.adb<5zinterr.adb \
653 s-intman.ads<5zintman.ads \
654 s-intman.adb<5zintman.adb \
655 s-osinte.adb<5zosinte.adb \
656 s-osinte.ads<5zosinte.ads \
657 s-osprim.adb<5zosprim.adb \
658 s-parame.ads<5zparame.ads \
659 s-stchop.adb<5zstchop.adb \
660 s-taprop.adb<5ztaprop.adb \
661 s-taspri.ads<5ztaspri.ads \
662 s-tpopsp.adb<5ztpopsp.adb \
663 s-vxwork.ads<5xvxwork.ads \
664 g-soccon.ads<3zsoccon.ads \
665 g-socthi.ads<3zsocthi.ads \
666 g-socthi.adb<3zsocthi.adb \
667 system.ads<5rsystem.ads
669 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.adb
671 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
672 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
675 ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)
676 LIBGNAT_TARGET_PAIRS = \
677 a-sytaco.ads<4zsytaco.ads \
678 a-sytaco.adb<4zsytaco.adb \
679 a-intnam.ads<4zintnam.ads \
680 a-numaux.ads<4znumaux.ads \
681 s-inmaop.adb<7sinmaop.adb \
682 s-interr.adb<5zinterr.adb \
683 s-intman.ads<5zintman.ads \
684 s-intman.adb<5zintman.adb \
685 s-osinte.adb<5zosinte.adb \
686 s-osinte.ads<5zosinte.ads \
687 s-osprim.adb<5zosprim.adb \
688 s-parame.ads<5zparame.ads \
689 s-stchop.adb<5zstchop.adb \
690 s-taprop.adb<5ztaprop.adb \
691 s-taspri.ads<5ztaspri.ads \
692 s-tpopsp.adb<5ztpopsp.adb \
693 s-vxwork.ads<5mvxwork.ads \
694 g-soccon.ads<3zsoccon.ads \
695 g-socthi.ads<3zsocthi.ads \
696 g-socthi.adb<3zsocthi.adb \
697 system.ads<5msystem.ads
699 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5zml-tgt.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 = \
707 a-intnam.ads<4sintnam.ads \
708 s-inmaop.adb<7sinmaop.adb \
709 s-intman.adb<5sintman.adb \
710 s-osinte.adb<5sosinte.adb \
711 s-osinte.ads<5sosinte.ads \
712 s-osprim.adb<5sosprim.adb \
713 s-parame.adb<5sparame.adb \
714 s-taprop.adb<5staprop.adb \
715 s-tasinf.adb<5stasinf.adb \
716 s-tasinf.ads<5stasinf.ads \
717 s-taspri.ads<5staspri.ads \
718 s-tpopsp.adb<5stpopsp.adb \
719 g-soccon.ads<3ssoccon.ads \
720 g-soliop.ads<3ssoliop.ads \
721 system.ads<5ssystem.ads
723 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5sml-tgt.adb
725 THREADSLIB = -lposix4 -lthread
726 MISCLIB = -lposix4 -lnsl -lsocket
727 SYMLIB = $(ADDR2LINE_SYMLIB)
729 GNATLIB_SHARED = gnatlib-shared-dual
731 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
732 LIBRARY_VERSION := $(LIB_VERSION)
734 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
735 LIBGNAT_TARGET_PAIRS = \
736 a-intnam.ads<4sintnam.ads \
737 s-inmaop.adb<7sinmaop.adb \
738 s-intman.adb<5sintman.adb \
739 s-osinte.adb<7sosinte.adb \
740 s-osinte.ads<5tosinte.ads \
741 s-osprim.adb<5sosprim.adb \
742 s-taprop.adb<7staprop.adb \
743 s-taspri.ads<7staspri.ads \
744 s-tpopsp.adb<7stpopsp.adb \
745 g-soccon.ads<3ssoccon.ads \
746 g-soliop.ads<3ssoliop.ads \
747 system.ads<5ssystem.ads
749 THREADSLIB = -lgthreads -lmalloc
752 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
753 LIBGNAT_TARGET_PAIRS = \
754 a-intnam.ads<4sintnam.ads \
755 s-inmaop.adb<7sinmaop.adb \
756 s-intman.adb<7sintman.adb \
757 s-osinte.adb<5iosinte.adb \
758 s-osinte.ads<54osinte.ads \
759 s-osprim.adb<5sosprim.adb \
760 s-taprop.adb<7staprop.adb \
761 s-taspri.ads<7staspri.ads \
762 s-tpopsp.adb<5atpopsp.adb \
763 g-soccon.ads<3ssoccon.ads \
764 g-soliop.ads<3ssoliop.ads \
765 system.ads<5ssystem.ads
767 THREADSLIB = -lposix4 -lpthread
770 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
771 LIBGNAT_TARGET_PAIRS = \
772 a-intnam.ads<4sintnam.ads \
773 s-inmaop.adb<7sinmaop.adb \
774 s-intman.adb<5sintman.adb \
775 s-osinte.adb<5sosinte.adb \
776 s-osinte.ads<5sosinte.ads \
777 s-osprim.adb<5sosprim.adb \
778 s-parame.adb<5sparame.adb \
779 s-taprop.adb<5staprop.adb \
780 s-tasinf.adb<5stasinf.adb \
781 s-tasinf.ads<5stasinf.ads \
782 s-taspri.ads<5staspri.ads \
783 s-tpopsp.adb<5stpopsp.adb \
784 g-soccon.ads<3ssoccon.ads \
785 g-soliop.ads<3ssoliop.ads \
786 system.ads<5usystem.ads
790 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
791 LIBGNAT_TARGET_PAIRS = \
792 a-numaux.adb<86numaux.adb \
793 a-numaux.ads<86numaux.ads \
794 a-intnam.ads<4sintnam.ads \
795 s-inmaop.adb<7sinmaop.adb \
796 s-intman.adb<5sintman.adb \
797 s-mastop.adb<5omastop.adb \
798 s-osinte.adb<5sosinte.adb \
799 s-osinte.ads<5sosinte.ads \
800 s-osprim.adb<5sosprim.adb \
801 s-parame.adb<5sparame.adb \
802 s-taprop.adb<5staprop.adb \
803 s-tasinf.adb<5stasinf.adb \
804 s-tasinf.ads<5stasinf.ads \
805 s-taspri.ads<5staspri.ads \
806 s-tpopsp.adb<5stpopsp.adb \
807 g-soccon.ads<3ssoccon.ads \
808 g-soliop.ads<3ssoliop.ads \
809 system.ads<5esystem.ads
811 THREADSLIB = -lposix4 -lthread
812 MISCLIB = -lposix4 -lnsl -lsocket
814 GNATLIB_SHARED = gnatlib-shared-dual
815 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
816 LIBRARY_VERSION := $(LIB_VERSION)
819 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
820 LIBGNAT_TARGET_PAIRS = \
821 a-intnam.ads<4lintnam.ads \
822 a-numaux.adb<86numaux.adb \
823 a-numaux.ads<86numaux.ads \
824 s-inmaop.adb<7sinmaop.adb \
825 s-intman.adb<7sintman.adb \
826 s-mastop.adb<5omastop.adb \
827 s-osinte.adb<5iosinte.adb \
828 s-osinte.ads<5iosinte.ads \
829 s-osprim.adb<7sosprim.adb \
830 s-taprop.adb<5itaprop.adb \
831 s-taspri.ads<5itaspri.ads \
832 s-tpopsp.adb<5atpopsp.adb \
833 s-parame.adb<5lparame.adb \
834 system.ads<5lsystem.ads
836 TOOLS_TARGET_PAIRS = \
837 mlib-tgt.adb<5lml-tgt.adb
839 SYMLIB = $(ADDR2LINE_SYMLIB)
840 THREADSLIB = -lpthread
841 GNATLIB_SHARED = gnatlib-shared-dual
843 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
844 LIBRARY_VERSION := $(LIB_VERSION)
846 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
847 LIBGNAT_TARGET_PAIRS = \
848 a-intnam.ads<4lintnam.ads \
849 a-numaux.adb<86numaux.adb \
850 a-numaux.ads<86numaux.ads \
851 s-inmaop.adb<7sinmaop.adb \
852 s-intman.adb<7sintman.adb \
853 s-mastop.adb<5omastop.adb \
854 s-osinte.adb<7sosinte.adb \
855 s-osinte.ads<5losinte.ads \
856 s-osprim.adb<7sosprim.adb \
857 s-taprop.adb<7staprop.adb \
858 s-taspri.ads<7staspri.ads \
859 s-tpopsp.adb<7stpopsp.adb \
860 system.ads<5lsystem.ads
862 THREADSLIB = -lgthreads -lmalloc
866 ifeq ($(strip $(filter-out %86 freebsd%,$(arch) $(osys))),)
867 LIBGNAT_TARGET_PAIRS = \
868 a-intnam.ads<45intnam.ads \
869 a-numaux.adb<86numaux.adb \
870 a-numaux.ads<86numaux.ads \
871 g-soccon.ads<35soccon.ads \
872 s-inmaop.adb<7sinmaop.adb \
873 s-intman.adb<7sintman.adb \
874 s-mastop.adb<5omastop.adb \
875 s-osinte.adb<55osinte.adb \
876 s-osinte.ads<55osinte.ads \
877 s-osprim.adb<7sosprim.adb \
878 s-taprop.adb<7staprop.adb \
879 s-taspri.ads<7staspri.ads \
880 s-tpopsp.adb<7stpopsp.adb \
881 system.ads<56system.ads
883 TOOLS_TARGET_PAIRS = \
884 mlib-tgt.adb<5lml-tgt.adb
885 GNATLIB_SHARED = gnatlib-shared-dual
887 SYMLIB = $(ADDR2LINE_SYMLIB)
890 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
891 LIBRARY_VERSION := $(LIB_VERSION)
894 ifeq ($(strip $(filter-out mips sgi irix%,$(targ))),)
895 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
896 LIBGNAT_TARGET_PAIRS = \
897 a-intnam.ads<4gintnam.ads \
898 s-inmaop.adb<7sinmaop.adb \
899 s-intman.adb<5fintman.adb \
900 s-mastop.adb<5gmastop.adb \
901 s-osinte.adb<5fosinte.adb \
902 s-osinte.ads<5fosinte.ads \
903 s-osprim.adb<7sosprim.adb \
904 s-proinf.adb<5gproinf.adb \
905 s-proinf.ads<5gproinf.ads \
906 s-taprop.adb<5ftaprop.adb \
907 s-tasinf.ads<5ftasinf.ads \
908 s-taspri.ads<7staspri.ads \
909 s-tpopsp.adb<7stpopsp.adb \
910 s-traceb.adb<7straceb.adb \
911 g-soccon.ads<3gsoccon.ads \
912 system.ads<5gsystem.ads
914 THREADSLIB = -lpthread
915 GNATLIB_SHARED = gnatlib-shared-default
918 LIBGNAT_TARGET_PAIRS = \
919 a-intnam.ads<4gintnam.ads \
920 s-inmaop.adb<5ninmaop.adb \
921 s-interr.adb<5ginterr.adb \
922 s-intman.adb<5gintman.adb \
923 s-mastop.adb<5gmastop.adb \
924 s-osinte.adb<5fosinte.adb \
925 s-osinte.ads<5gosinte.ads \
926 s-osprim.adb<7sosprim.adb \
927 s-proinf.adb<5gproinf.adb \
928 s-proinf.ads<5gproinf.ads \
929 s-taprop.adb<5gtaprop.adb \
930 s-tasinf.adb<5gtasinf.adb \
931 s-tasinf.ads<5gtasinf.ads \
932 s-taspri.ads<7staspri.ads \
933 s-traceb.adb<7straceb.adb \
934 g-soccon.ads<3gsoccon.ads \
935 system.ads<5fsystem.ads
938 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5gml-tgt.adb
941 SO_OPTS = -Wl,-all,-set_version,sgi1.0,-update_registry,../so_locations,-soname,
942 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
943 LIBRARY_VERSION := $(LIB_VERSION)
946 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
947 LIBGNAT_TARGET_PAIRS = \
948 a-excpol.adb<4wexcpol.adb \
949 a-intnam.ads<4hintnam.ads \
950 s-inmaop.adb<7sinmaop.adb \
951 s-interr.adb<5ginterr.adb \
952 s-intman.adb<7sintman.adb \
953 s-osinte.adb<5hosinte.adb \
954 s-osinte.ads<5hosinte.ads \
955 s-parame.ads<5hparame.ads \
956 s-osprim.adb<7sosprim.adb \
957 s-taprop.adb<5htaprop.adb \
958 s-taspri.ads<5htaspri.ads \
959 s-tpopsp.adb<7stpopsp.adb \
960 g-soccon.ads<3hsoccon.ads \
961 system.ads<5hsystem.ads
963 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
966 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
967 LIBGNAT_TARGET_PAIRS = \
968 a-intnam.ads<4hintnam.ads \
969 s-inmaop.adb<7sinmaop.adb \
970 s-intman.adb<7sintman.adb \
971 s-osinte.adb<5iosinte.adb \
972 s-osinte.ads<53osinte.ads \
973 s-parame.ads<5hparame.ads \
974 s-osprim.adb<7sosprim.adb \
975 s-traceb.adb<5htraceb.adb \
976 s-taprop.adb<7staprop.adb \
977 s-taspri.ads<7staspri.ads \
978 s-tpopsp.adb<5atpopsp.adb \
979 g-soccon.ads<3hsoccon.ads \
980 system.ads<5hsystem.ads
982 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5hml-tgt.adb
983 TGT_LIB = /usr/lib/libcl.a
984 THREADSLIB = -lpthread
985 SYMLIB = $(ADDR2LINE_SYMLIB)
989 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
990 GNATLIB_SHARED = gnatlib-shared-dual
991 LIBRARY_VERSION := $(LIB_VERSION)
993 ifeq ($(strip $(filter-out dce DCE,$(THREAD_KIND))),)
994 LIBGNAT_TARGET_PAIRS = \
995 a-excpol.adb<4wexcpol.adb \
996 a-intnam.ads<4hintnam.ads \
997 s-inmaop.adb<7sinmaop.adb \
998 s-interr.adb<5ginterr.adb \
999 s-intman.adb<7sintman.adb \
1000 s-osinte.adb<5hosinte.adb \
1001 s-osinte.ads<5hosinte.ads \
1002 s-parame.ads<5hparame.ads \
1003 s-osprim.adb<7sosprim.adb \
1004 s-taprop.adb<5htaprop.adb \
1005 s-taspri.ads<5htaspri.ads \
1006 s-tpopsp.adb<7stpopsp.adb \
1007 g-soccon.ads<3hsoccon.ads \
1008 system.ads<5hsystem.ads
1015 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
1016 LIBGNAT_TARGET_PAIRS = \
1017 a-intnam.ads<4cintnam.ads \
1018 s-inmaop.adb<7sinmaop.adb \
1019 s-intman.adb<7sintman.adb \
1020 s-osinte.adb<5bosinte.adb \
1021 s-osinte.ads<5bosinte.ads \
1022 s-osprim.adb<7sosprim.adb \
1023 s-taprop.adb<7staprop.adb \
1024 s-taspri.ads<7staspri.ads \
1025 s-tpopsp.adb<7stpopsp.adb \
1026 g-soccon.ads<3bsoccon.ads \
1027 system.ads<5bsystem.ads
1029 THREADSLIB = -lpthreads
1030 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1032 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
1033 LIBGNAT_TARGET_PAIRS = \
1034 a-intnam.ads<4cintnam.ads \
1035 s-inmaop.adb<7sinmaop.adb \
1036 s-intman.adb<7sintman.adb \
1037 s-osinte.adb<7sosinte.adb \
1038 s-osinte.ads<5cosinte.ads \
1039 s-osprim.adb<7sosprim.adb \
1040 s-taprop.adb<7staprop.adb \
1041 s-taspri.ads<7staspri.ads \
1042 s-tpopsp.adb<7stpopsp.adb \
1043 g-soccon.ads<3bsoccon.ads \
1044 system.ads<5bsystem.ads
1046 THREADSLIB = -lgthreads -lmalloc
1049 TOOLS_TARGET_PAIRS = mlib-tgt.adb<5bml-tgt.adb
1051 SYMLIB = $(ADDR2LINE_SYMLIB)
1055 ifeq ($(strip $(filter-out lynxos,$(osys))),)
1056 ifeq ($(strip $(filter-out %86 lynxos,$(arch) $(osys))),)
1057 LIBGNAT_TARGET_PAIRS = \
1058 a-numaux.adb<86numaux.adb \
1059 a-numaux.ads<86numaux.ads \
1060 a-intnam.ads<42intnam.ads \
1061 s-mastop.adb<5omastop.adb \
1062 s-inmaop.adb<7sinmaop.adb \
1063 s-intman.adb<7sintman.adb \
1064 s-osinte.adb<56osinte.adb \
1065 s-osinte.ads<56osinte.ads \
1066 s-osprim.adb<7sosprim.adb \
1067 s-taprop.adb<56taprop.adb \
1068 s-taspri.ads<56taspri.ads \
1069 s-tpopsp.adb<56tpopsp.adb \
1070 system.ads<58system.ads
1072 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1075 LIBGNAT_TARGET_PAIRS = \
1076 a-intnam.ads<42intnam.ads \
1077 s-inmaop.adb<7sinmaop.adb \
1078 s-intman.adb<7sintman.adb \
1079 s-osinte.adb<52osinte.adb \
1080 s-osinte.ads<52osinte.ads \
1081 s-osprim.adb<7sosprim.adb \
1082 s-taprop.adb<7staprop.adb \
1083 s-taspri.ads<7staspri.ads \
1084 s-tpopsp.adb<7stpopsp.adb \
1085 system.ads<57system.ads
1087 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
1088 LIBGNAT_TARGET_PAIRS = \
1089 a-intnam.ads<42intnam.ads \
1090 s-inmaop.adb<7sinmaop.adb \
1091 s-intman.adb<7sintman.adb \
1092 s-osinte.adb<56osinte.adb \
1093 s-osinte.ads<56osinte.ads \
1094 s-osprim.adb<7sosprim.adb \
1095 s-taprop.adb<56taprop.adb \
1096 s-taspri.ads<56taspri.ads \
1097 s-tpopsp.adb<56tpopsp.adb \
1098 system.ads<57system.ads
1104 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1105 LIBGNAT_TARGET_PAIRS = \
1106 a-intnam.ads<4rintnam.ads \
1107 s-inmaop.adb<7sinmaop.adb \
1108 s-intman.adb<7sintman.adb \
1109 s-osinte.adb<5rosinte.adb \
1110 s-osinte.ads<5rosinte.ads \
1111 s-osprim.adb<7sosprim.adb \
1112 s-parame.adb<5rparame.adb \
1113 s-taprop.adb<7staprop.adb \
1114 s-taspri.ads<7staspri.ads \
1115 s-tpopsp.adb<5rtpopsp.adb
1118 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1119 LIBGNAT_TARGET_PAIRS = \
1120 a-intnam.ads<4aintnam.ads \
1121 s-inmaop.adb<7sinmaop.adb \
1122 s-intman.adb<7sintman.adb \
1123 s-mastop.adb<5amastop.adb \
1124 s-osinte.adb<5aosinte.adb \
1125 s-osinte.ads<5aosinte.ads \
1126 s-osprim.adb<5posprim.adb \
1127 s-taprop.adb<5ataprop.adb \
1128 s-tasinf.ads<5atasinf.ads \
1129 s-taspri.ads<5ataspri.ads \
1130 s-tpopsp.adb<5atpopsp.adb \
1131 s-traceb.adb<7straceb.adb \
1132 g-soccon.ads<3asoccon.ads \
1133 system.ads<5asystem.ads
1135 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5aml-tgt.adb
1138 SYMLIB = $(ADDR2LINE_SYMLIB)
1139 THREADSLIB = -lpthread -lmach -lexc -lrt
1140 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1141 GNATLIB_SHARED = gnatlib-shared-default
1142 LIBRARY_VERSION := $(LIB_VERSION)
1145 ifeq ($(strip $(filter-out alpha% ia64 dec hp vms% openvms% alphavms%,$(host))),)
1153 @ gnu:[bin]vmssymvec $<
1156 ifeq ($(strip $(filter-out alpha% ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1157 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1158 LIBGNAT_TARGET_PAIRS_AUX1 = \
1159 s-crtl.ads<5xcrtl.ads \
1160 s-osinte.adb<5xosinte.adb \
1161 s-osinte.ads<5xosinte.ads \
1162 system.ads<5qsystem.ads
1164 ifeq ($(strip $(filter-out alpha% dec vms% openvms% alphavms%,$(targ))),)
1165 LIBGNAT_TARGET_PAIRS_AUX1 = \
1166 s-crtl.ads<5vcrtl.ads \
1167 s-osinte.adb<5vosinte.adb \
1168 s-osinte.ads<5vosinte.ads \
1169 system.ads<5xsystem.ads
1172 ifeq ($(strip $(filter-out express EXPRESS,$(THREAD_KIND))),)
1173 LIBGNAT_TARGET_PAIRS_AUX2 = \
1174 s-parame.ads<5xparame.ads
1176 LIBGNAT_TARGET_PAIRS_AUX2 = \
1177 s-parame.ads<5vparame.ads
1180 LIBGNAT_TARGET_PAIRS = \
1181 a-caldel.adb<4vcaldel.adb \
1182 a-calend.adb<4vcalend.adb \
1183 a-calend.ads<4vcalend.ads \
1184 a-dirval.adb<5vdirval.adb \
1185 a-excpol.adb<4wexcpol.adb \
1186 a-intnam.ads<4vintnam.ads \
1187 a-numaux.ads<4vnumaux.ads \
1188 g-expect.adb<3vexpect.adb \
1189 g-soccon.ads<3vsoccon.ads \
1190 g-socthi.ads<3vsocthi.ads \
1191 g-socthi.adb<3vsocthi.adb \
1192 g-trasym.adb<3vtrasym.adb \
1193 i-cstrea.adb<6vcstrea.adb \
1194 i-cpp.adb<6vcpp.adb \
1195 interfac.ads<6vinterf.ads \
1196 s-asthan.adb<5vasthan.adb \
1197 s-inmaop.adb<5vinmaop.adb \
1198 s-interr.adb<5vinterr.adb \
1199 s-intman.adb<5vintman.adb \
1200 s-intman.ads<5vintman.ads \
1201 s-osprim.adb<5vosprim.adb \
1202 s-osprim.ads<5vosprim.ads \
1203 s-taprop.adb<5vtaprop.adb \
1204 s-taspri.ads<5vtaspri.ads \
1205 s-tpopsp.adb<7stpopsp.adb \
1206 s-tpopde.adb<5vtpopde.adb \
1207 s-tpopde.ads<5vtpopde.ads \
1208 s-traent.adb<5vtraent.adb \
1209 s-traent.ads<5vtraent.ads \
1210 s-vaflop.adb<5vvaflop.adb \
1211 $(LIBGNAT_TARGET_PAIRS_AUX1) \
1212 $(LIBGNAT_TARGET_PAIRS_AUX2)
1214 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5vml-tgt.adb
1216 GNATLIB_SHARED=gnatlib-shared-vms
1217 ifeq ($(strip $(filter-out alpha% dec vms% openvms% alphavms%,$(targ))),)
1218 EXTRA_LIBGNAT_SRCS=vmshandler.asm
1219 EXTRA_LIBGNAT_OBJS=vmshandler.o
1221 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1223 ../../gnatlbr$(exeext) \
1224 ,,/../gnatsym$(exeext)
1225 # This command transforms (YYYYMMDD) into YY,MMDD
1226 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\)/\2,\3/')
1227 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1228 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1231 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1232 LIBGNAT_TARGET_PAIRS = \
1233 a-calend.adb<4wcalend.adb \
1234 a-dirval.adb<5wdirval.adb \
1235 a-excpol.adb<4wexcpol.adb \
1236 a-intnam.ads<4wintnam.ads \
1237 a-numaux.adb<86numaux.adb \
1238 a-numaux.ads<86numaux.ads \
1239 s-gloloc.adb<5wgloloc.adb \
1240 s-inmaop.adb<5ninmaop.adb \
1241 s-interr.adb<5ginterr.adb \
1242 s-intman.adb<5wintman.adb \
1243 s-mastop.adb<5omastop.adb \
1244 s-memory.adb<5wmemory.adb \
1245 s-osinte.ads<5wosinte.ads \
1246 s-osprim.adb<5wosprim.adb \
1247 s-taprop.adb<5wtaprop.adb \
1248 s-taspri.ads<5wtaspri.ads \
1249 g-socthi.ads<3wsocthi.ads \
1250 g-socthi.adb<3wsocthi.adb \
1251 g-soccon.ads<3wsoccon.ads \
1252 g-soliop.ads<3wsoliop.ads \
1253 system.ads<5wsystem.ads
1255 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5wml-tgt.adb
1257 SYMLIB = $(ADDR2LINE_SYMLIB)
1259 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1260 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1261 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1262 EXTRA_GNATRTL_NONTASKING_OBJS = g-regist.o
1264 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT auto-import
1265 # support for array/record will be done.
1266 GNATLIB_SHARED = gnatlib-shared-win32
1267 LIBRARY_VERSION := $(LIB_VERSION)
1270 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1271 LIBGNAT_TARGET_PAIRS = \
1272 a-intnam.ads<4lintnam.ads \
1273 s-inmaop.adb<7sinmaop.adb \
1274 s-intman.adb<7sintman.adb \
1275 s-osinte.ads<5iosinte.ads \
1276 s-osinte.adb<5iosinte.adb \
1277 s-osprim.adb<7sosprim.adb \
1278 s-taprop.adb<5itaprop.adb \
1279 s-tpopsp.adb<5atpopsp.adb \
1280 s-taspri.ads<5itaspri.ads \
1281 system.ads<55system.ads
1283 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5lml-tgt.adb
1285 THREADSLIB=-lpthread
1286 GNATLIB_SHARED=gnatlib-shared-dual
1287 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1288 LIBRARY_VERSION := $(LIB_VERSION)
1291 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
1292 LIBGNAT_TARGET_PAIRS = \
1293 a-intnam.ads<4lintnam.ads \
1294 a-numaux.adb<86numaux.adb \
1295 a-numaux.ads<86numaux.ads \
1296 s-inmaop.adb<7sinmaop.adb \
1297 s-intman.adb<7sintman.adb \
1298 s-osinte.ads<5iosinte.ads \
1299 s-osinte.adb<5iosinte.adb \
1300 s-osprim.adb<7sosprim.adb \
1301 s-taprop.adb<5itaprop.adb \
1302 s-tpopsp.adb<5atpopsp.adb \
1303 s-taspri.ads<5itaspri.ads \
1304 system.ads<5nsystem.ads
1306 TOOLS_TARGET_PAIRS=mlib-tgt.adb<5lml-tgt.adb
1307 SYMLIB = $(ADDR2LINE_SYMLIB)
1308 THREADSLIB=-lpthread
1309 GNATLIB_SHARED=gnatlib-shared-dual
1311 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1312 LIBRARY_VERSION := $(LIB_VERSION)
1316 # The runtime library for gnat comprises two directories. One contains the
1317 # Ada source files that the compiler (gnat1) needs -- these files are listed
1318 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1319 # corresponding .ali files for the parts written in Ada, libgnat.a for
1320 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1321 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1322 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1323 # go into the directory. The pthreads emulation is built in the threads
1324 # subdirectory and copied.
1325 LIBGNAT_SRCS = ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1326 errno.c exit.c cal.c ctrl_c.c \
1327 raise.h raise.c sysdep.c aux-io.c init.c \
1328 final.c tracebak.c tb-alvms.c tb-alvxw.c expect.c mkdir.c socket.c \
1329 $(EXTRA_LIBGNAT_SRCS)
1331 LIBGNAT_OBJS = adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o \
1332 raise.o sysdep.o aux-io.o init.o cal.o final.o \
1333 tracebak.o expect.o mkdir.o socket.o $(EXTRA_LIBGNAT_OBJS)
1335 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1336 # the library installation will change and there will be a
1337 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1338 # from ADA_INCLUDE_SRCS.
1340 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1341 # the following include file:
1343 include $(fsrcdir)/Makefile.rtl
1345 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
1346 g-trasym.o memtrack.o
1348 # Files which are suitable in no run time/hi integrity mode
1350 COMPILABLE_HIE_SOURCES= \
1370 a-except.adb $(EXTRA_HIE_SOURCES)
1372 NON_COMPILABLE_HIE_SOURCES= \
1383 HIE_SOURCES = $(NON_COMPILABLE_HIE_SOURCES) $(COMPILABLE_HIE_SOURCES)
1385 # Object to generate for the HI run time
1403 a-tags.o $(EXTRA_HIE_OBJS)
1405 # Files which are needed in ravenscar mode
1407 COMPILABLE_RAVEN_SOURCES = \
1408 $(COMPILABLE_HIE_SOURCES) \
1440 a-taside.adb $(EXTRA_RAVEN_SOURCES)
1442 NON_COMPILABLE_RAVEN_SOURCES= $(NON_COMPILABLE_HIE_SOURCES)
1444 RAVEN_SOURCES = $(NON_COMPILABLE_RAVEN_SOURCES) $(COMPILABLE_RAVEN_SOURCES)
1446 # Objects to generate for the ravenscar run time
1448 RAVEN_LIBGNARL_OBJS = \
1467 a-taside.o $(EXTRA_RAVEN_OBJS)
1471 $(RAVEN_LIBGNARL_OBJS)
1473 # Default run time files
1476 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1477 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1478 sequenio.ads system.ads Makefile.prolog Makefile.generic \
1480 a-*.adb a-*.ads g-*.ad? i-*.ad? \
1481 s-[a-o]*.adb s-[p-z]*.adb \
1482 s-[a-o]*.ads s-[p-z]*.ads
1484 LIBGNAT=../rts/libgnat.a
1485 TOOLS_FLAGS_TO_PASS= \
1487 "CFLAGS=$(CFLAGS)" \
1488 "LDFLAGS=$(LDFLAGS)" \
1489 "ADAFLAGS=$(ADAFLAGS)" \
1490 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
1491 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
1492 "libsubdir=$(libsubdir)" \
1493 "exeext=$(exeext)" \
1494 "fsrcdir=$(fsrcdir)" \
1495 "srcdir=$(fsrcdir)" \
1496 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
1497 "GNATMAKE=$(GNATMAKE)" \
1498 "GNATLINK=$(GNATLINK)" \
1499 "GNATBIND=$(GNATBIND)"
1501 # Build directory for the tools. Let's copy the target-dependent
1502 # sources using the same mechanism as for gnatlib. The other sources are
1503 # accessed using the vpath directive below
1509 -(cd tools; $(LN_S) ../sdefault.adb .)
1510 -$(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
1511 $(RM) tools/$(word 1,$(subst <, ,$(PAIR)));\
1512 $(LN_S) $(fsrcdir)/$(word 2,$(subst <, ,$(PAIR))) \
1513 tools/$(word 1,$(subst <, ,$(PAIR)));)
1514 touch ../stamp-tools
1516 # when compiling the tools, the runtime has to be first on the path so that
1517 # it hides the runtime files lying with the rest of the sources
1518 ifeq ($(TOOLSCASE),native)
1519 vpath %.ads ../rts ../
1520 vpath %.adb ../rts ../
1521 vpath %.c ../rts ../
1522 vpath %.h ../rts ../
1525 # in the cross tools case, everything is compiled with the native
1526 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1527 ifeq ($(TOOLSCASE),cross)
1534 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
1535 # reasons: gnatmake should be built with a recent compiler, a recent compiler
1536 # may not generate ALI files compatible with an old gnatmake so it is important
1537 # to be able to build gnatmake without a version of gnatmake around. Once
1538 # everything has been compiled once, gnatmake can be recompiled with itself
1539 # (see target gnattools1-re)
1540 gnattools1: ../stamp-tools ../stamp-gnatlib
1541 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1543 ../../gnatmake$(exeext) ../../gnatlink$(exeext) ../../gnatbl$(exeext)
1545 # gnatmake/link can be built with recent gnatmake/link if they are available.
1546 # This is especially convenient for building cross tools or for rebuilding
1547 # the tools when the original bootstrap has already be done.
1548 gnattools1-re: ../stamp-tools
1549 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1550 TOOLSCASE=cross INCLUDES="" gnatmake-re gnatlink-re
1552 # these tools are built with gnatmake & are common to native and cross
1553 gnattools2: ../stamp-tools
1554 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1556 ../../gnatchop$(exeext) ../../gnat$(exeext) ../../gnatkr$(exeext) \
1557 ../../gnatls$(exeext) ../../gnatprep$(exeext) \
1558 ../../gnatxref$(exeext) \
1559 ../../gnatfind$(exeext) ../../gnatname$(exeext) \
1560 ../../gnatclean$(exeext) \
1561 ../../gprcmd$(exeext) ../../gpr2make$(exeext)
1563 # These tools are only built for the native version.
1564 gnattools3: ../stamp-tools
1565 # $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1566 # TOOLSCASE=native top_builddir=../../.. \
1567 # ../../gnatmem$(exeext) $(EXTRA_GNATTOOLS)
1569 # those tools are only built for the cross version
1570 gnattools4: ../stamp-tools
1571 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1572 TOOLSCASE=cross top_buildir=../../.. \
1573 ../../vxaddr2line$(exeext)
1575 ../../gnatchop$(exeext): ../stamp-tools
1576 $(GNATMAKE) -c $(ADA_INCLUDES) gnatchop --GCC="$(CC) $(ALL_ADAFLAGS)"
1577 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatchop
1578 $(GNATLINK) -v gnatchop -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1581 ../../gnat$(exeext): ../stamp-tools
1582 $(GNATMAKE) -c $(ADA_INCLUDES) gnatcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1583 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatcmd
1584 $(GNATLINK) -v gnatcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1586 ../../gnatkr$(exeext): ../stamp-tools
1587 $(GNATMAKE) -c $(ADA_INCLUDES) gnatkr --GCC="$(CC) $(ALL_ADAFLAGS)"
1588 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatkr
1589 $(GNATLINK) -v gnatkr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1591 ../../gnatls$(exeext): ../stamp-tools
1592 $(GNATMAKE) -c $(ADA_INCLUDES) gnatls --GCC="$(CC) $(ALL_ADAFLAGS)"
1593 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatls
1594 $(GNATLINK) -v gnatls -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1596 ../../gnatname$(exeext): ../stamp-tools
1597 $(GNATMAKE) -c $(ADA_INCLUDES) gnatname --GCC="$(CC) $(ALL_ADAFLAGS)"
1598 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatname
1599 $(GNATLINK) -v gnatname -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1602 ../../gpr2make$(exeext): ../stamp-tools
1603 $(GNATMAKE) -c $(ADA_INCLUDES) gpr2make --GCC="$(CC) $(ALL_ADAFLAGS)"
1604 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gpr2make
1605 $(GNATLINK) -v gpr2make -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1608 ../../gnatprep$(exeext): ../stamp-tools
1609 $(GNATMAKE) -c $(ADA_INCLUDES) gnatprep --GCC="$(CC) $(ALL_ADAFLAGS)"
1610 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatprep
1611 $(GNATLINK) -v gnatprep -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1614 ../../gnatxref$(exeext): ../stamp-tools
1615 $(GNATMAKE) -c $(ADA_INCLUDES) gnatxref --GCC="$(CC) $(ALL_ADAFLAGS)"
1616 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatxref
1617 $(GNATLINK) -v gnatxref -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1620 ../../gnatfind$(exeext): ../stamp-tools
1621 $(GNATMAKE) -c $(ADA_INCLUDES) gnatfind --GCC="$(CC) $(ALL_ADAFLAGS)"
1622 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatfind
1623 $(GNATLINK) -v gnatfind -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1626 ../../gnatclean$(exeext): ../stamp-tools
1627 $(GNATMAKE) -c $(ADA_INCLUDES) gnatclean --GCC="$(CC) $(ALL_ADAFLAGS)"
1628 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatclean
1629 $(GNATLINK) -v gnatclean -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1632 ../../gnatsym$(exeext): ../stamp-tools
1633 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
1634 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
1635 $(GNATLINK) -v gnatsym -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1638 ../../gnatmem$(exeext): ../stamp-tools gmem.o $(SYMDEPS)
1639 ifeq ($(GMEM_LIB),gmemlib)
1640 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmem --GCC="$(CC) $(ALL_ADAFLAGS)"
1641 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmem
1642 $(GNATLINK) -v gnatmem -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1643 gmem.o $(SYMLIB) $(TOOLS_LIBS)
1646 ../../gnatdll$(exeext): ../stamp-tools
1647 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
1648 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) $(GNATBIND_FLAGS) gnatdll
1649 $(GNATLINK) -v gnatdll -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \
1652 ../../gprcmd$(exeext): ../stamp-tools
1653 $(GNATMAKE) -c $(ADA_INCLUDES) gprcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1654 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gprcmd
1655 $(GNATLINK) -v gprcmd -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1657 ../../vxaddr2line$(exeext): ../stamp-tools
1658 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
1659 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
1660 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(CC) $(ADA_INCLUDES)" $(CLIB)
1662 gnatmake-re: ../stamp-tools link.o
1663 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
1664 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1665 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
1666 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
1667 --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1669 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1670 # with the former version of gnatlink itself which cannot override itself.
1671 gnatlink-re: ../stamp-tools link.o
1672 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
1673 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
1674 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
1675 --GCC="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS)
1676 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
1678 # Needs to be built with CC=gcc
1679 # Since the RTL should be built with the latest compiler, remove the
1680 # stamp target in the parent directory whenever gnat1 is rebuilt
1682 # Likewise for the tools
1683 ../../gnatmake$(exeext): $(P) b_gnatm.o link.o $(GNATMAKE_OBJS)
1684 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
1687 ../../gnatlink$(exeext): $(P) b_gnatl.o link.o $(GNATLINK_OBJS)
1688 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
1691 ../../gnatbl$(exeext): gnatbl.o
1692 $(CC) -o $@ $(ALL_CFLAGS) $(LDFLAGS) gnatbl.o $(TOOLS_LIBS)
1694 gnatbl.o: gnatbl.c adaint.h
1695 $(CC) $(ALL_CFLAGS) $(INCLUDES) -c $< $(OUTPUT_OPTION)
1698 @if [ ! -f stamp-gnatlib ] ; \
1700 $(ECHO) You must first build the GNAT library: make gnatlib; \
1706 install-gnatlib: ../stamp-gnatlib
1707 # Create the directory before deleting it, in case the directory is
1708 # a list of directories (as it may be on VMS). This ensures we are
1709 # deleting the right one.
1710 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1711 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1712 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1713 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1714 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1715 $(RMDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1716 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1717 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1718 -$(MKDIR) $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1719 -$(INSTALL_DATA) rts/Makefile.prolog $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1720 -$(INSTALL_DATA) rts/Makefile.generic $(DESTDIR)$(ADA_SHARE_MAKE_DIR)
1721 for file in rts/*.ali; do \
1722 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1724 -$(INSTALL_DATA) rts/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1725 -for file in rts/*$(arext);do \
1726 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1728 # Install the shared libraries, if any, using $(INSTALL) instead
1729 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1730 # for shared libraries on some targets, e.g. on HP-UX where the x
1731 # permission is required.
1732 for file in gnat gnarl; do \
1733 if [ -f rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
1734 $(INSTALL) rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1735 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1737 if [ -f rts/lib$${file}$(soext) ]; then \
1738 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1739 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
1742 # This copy must be done preserving the date on the original file.
1743 for file in rts/*.adb rts/*.ads; do \
1744 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
1746 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
1747 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
1751 $(RM) rts/s-*$(objext)
1753 $(RM) rts/a-*$(objext)
1755 $(RM) rts/*$(objext)
1758 touch ../stamp-gnatlib2
1759 $(RM) ../stamp-gnatlib
1761 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1762 # successive target commands. Although the Gnu make documentation
1763 # implies this is true on all systems, I suspect it may not be, So care
1764 # has been taken to allow a sed script to look for ";)" and substitue
1765 # for ";" the appropriate character in the range of lines below
1766 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1768 # GNULLI Begin ###########################################################
1770 ../stamp-gnatlib1: Makefile ../stamp-gnatlib2
1774 # Copy target independent sources
1775 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
1776 $(LN_S) $(fsrcpfx)$(f) rts ;) true
1777 # Remove files to be replaced by target dependent sources
1778 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1779 rts/$(word 1,$(subst <, ,$(PAIR))))
1780 # Copy new target dependent sources
1781 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1782 $(LN_S) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1783 rts/$(word 1,$(subst <, ,$(PAIR)));)
1784 $(RM) ../stamp-gnatlib
1785 touch ../stamp-gnatlib1
1787 # GNULLI End #############################################################
1789 # Don't use semicolon separated shell commands that involve list expansions.
1790 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1791 # line lengths in excess of 256 characters.
1792 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1793 # is guaranteed to overflow the buffer.
1795 gnatlib: ../stamp-gnatlib1 ../stamp-gnatlib2
1796 $(MAKE) -C rts CC="../../xgcc -B../../" \
1797 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1798 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
1800 -f ../Makefile $(LIBGNAT_OBJS)
1801 $(MAKE) -C rts CC="../../xgcc -B../../" \
1803 CFLAGS="$(GNATLIBCFLAGS)" \
1804 ADAFLAGS="$(GNATLIBFLAGS)" \
1808 $(RM) rts/libgnat$(arext) rts/libgnarl$(arext)
1809 $(AR) $(AR_FLAGS) rts/libgnat$(arext) \
1810 $(addprefix rts/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
1811 ifneq ($(PREFIX_OBJS),)
1812 $(AR) $(AR_FLAGS) rts/libgccprefix$(arext) $(PREFIX_OBJS);
1814 if $(RANLIB_TEST) ; then $(RANLIB) rts/libgnat$(arext); else true; fi
1815 $(AR) $(AR_FLAGS) rts/libgnarl$(arext) \
1816 $(addprefix rts/,$(GNATRTL_TASKING_OBJS))
1817 if $(RANLIB_TEST) ; then $(RANLIB) rts/libgnarl$(arext); else true; fi
1818 ifeq ($(GMEM_LIB),gmemlib)
1819 $(AR) $(AR_FLAGS) rts/libgmem$(arext) rts/memtrack.o;
1821 $(CHMOD) a-wx rts/*.ali
1822 touch ../stamp-gnatlib
1824 HIE_NONE_TARGET_PAIRS=\
1825 a-except.ads<1aexcept.ads \
1826 a-except.adb<1aexcept.adb \
1827 a-tags.ads<1atags.ads \
1828 a-tags.adb<1atags.adb \
1829 s-secsta.ads<1ssecsta.ads \
1830 s-secsta.adb<1ssecsta.adb \
1831 i-c.ads<1ic.ads $(EXTRA_HIE_NONE_TARGET_PAIRS)
1833 # This target needs RTS_NAME, RTS_SRCS, RTS_TARGET_PAIRS to be set properly
1834 # it creates a rts with the proper structure and the right target
1837 $(RMDIR) rts-$(RTS_NAME)
1838 $(MKDIR) rts-$(RTS_NAME)
1839 $(CHMOD) u+w rts-$(RTS_NAME)
1840 $(MKDIR) rts-$(RTS_NAME)/adalib
1841 $(MKDIR) rts-$(RTS_NAME)/adainclude
1842 $(CHMOD) u+w rts-$(RTS_NAME)/*
1843 # Generate the project file
1844 $(ECHO) "project $(RTS_NAME) is" > rts-$(RTS_NAME)/$(RTS_NAME).gpr
1845 $(ECHO) " for Source_Dirs use (\"adainclude\");" \
1846 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1847 $(ECHO) " for Object_Dir use \"adalib\";" \
1848 >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1849 $(ECHO) " for Source_List_File use " \
1850 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1851 $(ECHO) " \"rts-$(RTS_NAME)_source_list.txt\";" \
1852 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1853 $(ECHO) " package Builder is" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1854 $(ECHO) " for Default_Switches (\"Ada\") use (\"-a\");" \
1855 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1856 $(ECHO) " end Builder;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1857 $(ECHO) " package Compiler is" >> rts-$(RTS_NAME)/$(RTS_NAME).gpr
1858 $(ECHO) " for Default_Switches (\"Ada\") use (\"-nostdinc\");" \
1859 >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1860 $(ECHO) " end Compiler;" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1861 $(ECHO) "end $(RTS_NAME);" >>rts-$(RTS_NAME)/$(RTS_NAME).gpr
1863 $(foreach f, $(COMPILABLE_SOURCES), \
1865 rts-$(RTS_NAME)/rts-$(RTS_NAME)_source_list.txt ;) true
1866 # Copy target independent sources
1867 $(foreach f,$(RTS_SRCS), \
1868 $(CP) $(fsrcpfx)$(f) rts-$(RTS_NAME)/adainclude/ ;) true
1869 # Remove files to be replaced by target dependent sources
1870 $(RM) $(foreach PAIR,$(RTS_TARGET_PAIRS), \
1871 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR))))
1872 # Copy new target dependent sources
1873 $(foreach PAIR,$(RTS_TARGET_PAIRS), \
1874 $(CP) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1875 rts-$(RTS_NAME)/adainclude/$(word 1,$(subst <, ,$(PAIR)));)
1878 $(CP) -r rts-$(RTS_NAME) $(DESTDIR)$(libsubdir)/
1881 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
1882 RTS_NAME=zfp RTS_SRCS="$(HIE_SOURCES)" \
1883 RTS_TARGET_PAIRS="$(HIE_NONE_TARGET_PAIRS)" \
1884 COMPILABLE_SOURCES="$(COMPILABLE_HIE_SOURCES)"
1885 $(GNATMAKE) -Prts-zfp/zfp.gpr --GCC="../../../xgcc -B../../../"
1886 cd rts-zfp/adalib/ ; $(AR) r libgnat.a *.o
1887 $(RM) rts-zfp/adalib/*.o
1888 $(CHMOD) a-wx rts-zfp/adalib/*.ali
1889 $(CHMOD) a-wx rts-zfp/adalib/libgnat.a
1891 rts-ravenscar: force
1892 $(MAKE) $(FLAGS_TO_PASS) prepare-rts \
1893 RTS_NAME=ravenscar RTS_SRCS="$(RAVEN_SOURCES)" \
1894 RTS_TARGET_PAIRS="$(HIE_RAVEN_TARGET_PAIRS)" \
1895 COMPILABLE_SOURCES="$(COMPILABLE_RAVEN_SOURCES)"
1896 $(GNATMAKE) -Prts-ravenscar/ravenscar.gpr \
1897 --GCC="../../../xgcc -B../../../"
1898 cd rts-ravenscar/adalib ; \
1899 $(foreach FILE,$(RAVEN_LIBGNARL_OBJS), $(AR) r libgnarl.a $(FILE);) \
1900 $(foreach FILE,$(HIE_OBJS), $(AR) r libgnat.a $(FILE);)
1901 $(RM) rts-ravenscar/adalib/*.o
1902 $(CHMOD) a-wx rts-ravenscar/adalib/*.ali
1903 $(CHMOD) a-wx rts-ravenscar/adalib/libgnat.a
1904 $(CHMOD) a-wx rts-ravenscar/adalib/libgnarl.a
1906 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
1907 gnatlib-shared-default:
1908 $(MAKE) $(FLAGS_TO_PASS) \
1909 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1910 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1911 THREAD_KIND="$(THREAD_KIND)" \
1913 $(RM) rts/libgnat$(soext) rts/libgnarl$(soext)
1914 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1915 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1916 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1917 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1919 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1920 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1921 $(GNATRTL_TASKING_OBJS) \
1922 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1924 cd rts; $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1926 cd rts; $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1929 gnatlib-shared-dual:
1930 $(MAKE) $(FLAGS_TO_PASS) \
1931 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1932 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1933 THREAD_KIND="$(THREAD_KIND)" \
1934 gnatlib-shared-default
1935 $(MV) rts/libgna*$(soext) .
1936 $(RM) ../stamp-gnatlib2
1937 $(MAKE) $(FLAGS_TO_PASS) \
1938 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1939 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1940 THREAD_KIND="$(THREAD_KIND)" \
1942 $(MV) libgna*$(soext) rts
1944 gnatlib-shared-dual-win32:
1945 $(MAKE) $(FLAGS_TO_PASS) \
1946 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1947 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1948 THREAD_KIND="$(THREAD_KIND)" \
1949 gnatlib-shared-win32
1950 $(MV) rts/libgna*$(soext) .
1951 $(RM) ../stamp-gnatlib2
1952 $(MAKE) $(FLAGS_TO_PASS) \
1953 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1954 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1955 THREAD_KIND="$(THREAD_KIND)" \
1957 $(MV) libgna*$(soext) rts
1959 # ??? we need to add the option to support auto-import of arrays/records to
1960 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
1961 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
1963 gnatlib-shared-win32:
1964 $(MAKE) $(FLAGS_TO_PASS) \
1965 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1966 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1967 THREAD_KIND="$(THREAD_KIND)" \
1969 $(RM) rts/libgnat$(soext) rts/libgnarl$(soext)
1970 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1971 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1972 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1973 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
1974 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1975 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1976 $(GNATRTL_TASKING_OBJS) \
1977 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1978 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
1981 $(MAKE) $(FLAGS_TO_PASS) \
1982 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1983 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1984 THREAD_KIND="$(THREAD_KIND)" \
1986 $(RM) rts/libgnat*$(soext) rts/libgnarl*$(soext)
1987 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
1988 objdump --syms $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) | \
1989 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
1990 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
1991 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
1992 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
1993 sys\$$library:trace.exe \
1994 --for-linker=/noinform \
1995 --for-linker=SYMVEC_$$$$.opt \
1996 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
1997 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
1998 objdump --syms $(GNATRTL_TASKING_OBJS) | \
1999 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
2000 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
2001 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
2002 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2003 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2004 sys\$$library:trace.exe \
2005 --for-linker=/noinform \
2006 --for-linker=SYMVEC_$$$$.opt \
2007 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2010 $(MAKE) $(FLAGS_TO_PASS) \
2011 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2012 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2013 THREAD_KIND="$(THREAD_KIND)" \
2014 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
2017 gnatlib-sjlj: ../stamp-gnatlib1
2018 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' rts/system.ads > rts/s.ads
2019 $(MV) rts/s.ads rts/system.ads
2020 $(MAKE) $(FLAGS_TO_PASS) \
2021 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2022 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2023 THREAD_KIND="$(THREAD_KIND)" \
2024 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2026 gnatlib-zcx: ../stamp-gnatlib1
2027 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' rts/system.ads > rts/s.ads
2028 $(MV) rts/s.ads rts/system.ads
2029 $(MAKE) $(FLAGS_TO_PASS) \
2030 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2031 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2032 THREAD_KIND="$(THREAD_KIND)" \
2033 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2035 # .s files for cross-building
2037 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
2039 # Compiling object files from source files.
2041 # Note that dependencies on obstack.h are not written
2042 # because that file is not part of GCC.
2043 # Dependencies on gvarargs.h are not written
2044 # because all that file does, when not compiling with GCC,
2045 # is include the system varargs.h.
2047 b_gnatl.c : $(GNATLINK_OBJS)
2048 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatl.c gnatlink.ali
2049 b_gnatl.o : b_gnatl.c
2051 b_gnatm.c : $(GNATMAKE_OBJS)
2052 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatm.c gnatmake.ali
2053 b_gnatm.o : b_gnatm.c
2055 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2056 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2057 ADA_SHARE_MAKE_DIR = $(prefix)/share/gnat
2059 # force no sibling call optimization on s-traceb.o so the number of stack
2060 # frames to be skipped when computing a call chain is not modified by
2061 # optimization. However we can do that only when building the runtime
2062 # (not the compiler) because the -fno-optimize-sibling-calls exists
2065 ifneq (,$(findstring xgcc,$(CC)))
2066 NO_SIBLING_ADAFLAGS=-fno-optimize-sibling-calls
2068 NO_SIBLING_ADAFLAGS=
2071 s-traceb.o : s-traceb.adb
2072 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2073 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) \
2076 adadecode.o : adadecode.c adadecode.h
2080 deftarg.o : deftarg.c
2082 exit.o : raise.h exit.c
2084 final.o : raise.h final.c
2092 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2093 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2095 init.o : init.c ada.h types.h raise.h
2096 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2097 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2099 raise.o : raise.c raise.h
2100 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(RT_FLAGS) \
2101 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2103 # Need to keep the frame pointer in this file to pop the stack properly on
2105 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c
2106 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
2107 -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2109 # In GNU Make, ignore whether `stage*' exists.
2110 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2111 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2115 # Gnatlbr is only used on VMS
2117 ../../gnatlbr$(exeext): ../../prefix.o
2118 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlbr --GCC="$(CC) $(ALL_ADAFLAGS)"
2119 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlbr
2120 $(GNATLINK) -v gnatlbr -o $@ --GCC="$(CC) $(ADA_INCLUDES)" \