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.
111 PWD_COMMAND
= $${PWDCMD-pwd
}
112 # How to copy preserving the date
113 INSTALL_DATA_DATE
= cp
-p
116 GNATBIND
= $(STAGE_PREFIX
)gnatbind
117 GNATBIND_FLAGS
= -static
-x
119 ADAFLAGS
= -W
-Wall
-gnatpg
-gnata
120 SOME_ADAFLAGS
=-gnata
121 FORCE_DEBUG_ADAFLAGS
= -g
122 GNATLIBFLAGS
= -gnatpg
-nostdinc
123 GNATLIBCFLAGS
= -g
-O2
124 GNATLIBCFLAGS_FOR_C
= $(GNATLIBCFLAGS
) $(TARGET_LIBGCC2_CFLAGS
) -fexceptions \
126 ALL_ADA_CFLAGS
= $(X_ADA_CFLAGS
) $(T_ADA_CFLAGS
) $(ADA_CFLAGS
)
127 ALL_ADAFLAGS
= $(CFLAGS
) $(ALL_ADA_CFLAGS
) $(X_ADAFLAGS
) $(T_ADAFLAGS
) \
129 MOST_ADAFLAGS
= $(CFLAGS
) $(ALL_ADA_CFLAGS
) $(X_ADAFLAGS
) $(T_ADAFLAGS
) \
136 ADDR2LINE_SYMLIB
= -laddr2line
-lbfd
-liberty
$(LIBINTL
)
137 SYMDEPS
= $(LIBINTL_DEP
)
138 OUTPUT_OPTION
= @OUTPUT_OPTION@
147 # Define this as & to perform parallel make on a Sequent.
148 # Note that this has some bugs, and it seems currently necessary
149 # to compile all the gen* files first by hand to avoid erroneous results.
152 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
153 # It omits XCFLAGS, and specifies -B./.
154 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
155 GCC_CFLAGS
= $(INTERNAL_CFLAGS
) $(X_CFLAGS
) $(T_CFLAGS
) $(CFLAGS
)
157 # Tools to use when building a cross-compiler.
158 # These are used because `configure' appends `cross-make'
159 # to the makefile when making a cross-compiler.
161 # We don't use cross-make. Instead we use the tools from the build tree,
162 # if they are available.
163 # program_transform_name and objdir are set by configure.in.
164 program_transform_name
=
168 xmake_file
= @xmake_file@
169 tmake_file
= @tmake_file@
170 host_canonical
=@host@
171 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
172 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
174 # Directory where sources are, from where we are.
178 fsrcdir
:= $(shell cd
$(srcdir);${PWD_COMMAND})
179 fsrcpfx
:= $(shell cd
$(srcdir);${PWD_COMMAND})/
180 fcurdir
:= $(shell ${PWD_COMMAND})
181 fcurpfx
:= $(shell ${PWD_COMMAND})/
183 # Top build directory, relative to here.
186 # Internationalization library.
188 LIBINTL_DEP
= @LIBINTL_DEP@
190 # Any system libraries needed just for GNAT.
191 SYSLIBS
= @GNAT_LIBEXC@
193 # List of extra object files linked in with various programs.
194 EXTRA_GNATTOOLS_OBJS
= ..
/..
/prefix.o ..
/..
/version.o
196 # List extra gnattools
199 # List of target dependent sources, overridden below as necessary
202 # Type of tools build we are doing; default is not compiling tools.
205 # End of variables for you to override.
209 # This tells GNU Make version 3 not to put all variables in the environment.
212 # tmake_file and xmake_file expand to lists with entries of the form
213 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
214 # need to adjust the paths. There can't be spaces in the subst arguments
215 # or we get spurious spaces in the actual list of files to include.
218 ifneq ($(tmake_file
),)
219 include $(subst /config
,/..
/config
,$(tmake_file
))
223 ifneq ($(xmake_file
),)
224 include $(subst /config
,/..
/config
,$(xmake_file
))
227 # Now figure out from those variables how to compile and link.
229 all.indirect
: Makefile ..
/gnat1
$(exeext
)
231 # IN_GCC distinguishes between code compiled into GCC itself and other
232 # programs built during a bootstrap.
233 # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler.
234 INTERNAL_CFLAGS
= @CROSS@
-DIN_GCC
236 # This is the variable actually used when we compile.
237 LOOSE_CFLAGS
= `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
238 ALL_CFLAGS
= $(INTERNAL_CFLAGS
) $(X_CFLAGS
) $(T_CFLAGS
) $(LOOSE_CFLAGS
) \
242 ALL_CPPFLAGS
= $(CPPFLAGS
) $(X_CPPFLAGS
) $(T_CPPFLAGS
)
244 # This is where we get libiberty.a from.
245 LIBIBERTY
= ..
/..
/libiberty
/libiberty.a
247 # How to link with both our special library facilities
248 # and the system's installed libraries.
249 LIBS
= $(LIBINTL
) $(LIBIBERTY
) $(SYSLIBS
)
250 LIBDEPS
= $(LIBINTL_DEP
) $(LIBIBERTY
)
251 TOOLS_LIBS
= $(LIBGNAT
) $(EXTRA_GNATTOOLS_OBJS
) link.o ..
/..
/..
/libiberty
/libiberty.a
$(SYSLIBS
)
253 # Specify the directories to be searched for header files.
254 # Both . and srcdir are used, in that order,
255 # so that tm.h and config.h will be found in the compilation
256 # subdirectory rather than in the source directory.
257 INCLUDES
= -I-
-I.
-I..
-I
$(srcdir) -I
$(srcdir)/..
-I
$(srcdir)/..
/config \
258 -I
$(srcdir)/..
/..
/include
260 ADA_INCLUDES
= -I-
-I.
-I
$(srcdir)
262 INCLUDES_FOR_SUBDIR
= -I.
-I..
-I..
/..
-I
$(fsrcdir
) -I
$(fsrcdir
)/..
/config \
263 -I
$(fsrcdir
)/..
/..
/include -I
$(fsrcdir
)/..
264 ADA_INCLUDES_FOR_SUBDIR
= -I.
-I
$(fsrcdir
)
266 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
269 # Say how to compile Ada programs.
270 .SUFFIXES
: .ada .adb .ads .asm
272 # Always use -I$(srcdir)/config when compiling.
274 $(CC
) -c
-x assembler
$< $(OUTPUT_OPTION
)
277 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) $(INCLUDES
) $< \
281 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
284 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
286 # how to regenerate this file
287 Makefile
: ..
/config.status
$(srcdir)/Makefile.in
$(srcdir)/..
/version.c
289 LANGUAGES
="$(CONFIG_LANGUAGES)" \
291 CONFIG_FILES
=ada
/Makefile
$(SHELL
) config.status
293 # This tells GNU make version 3 not to export all the variables
294 # defined in this file into the environment.
297 # Lists of files for various purposes.
299 GNATLINK_OBJS
= gnatlink.o \
300 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o gnatvsn.o \
301 hostparm.o interfac.o i-c.o i-cstrin.o namet.o opt.o osint.o output.o rident.o \
302 s-exctab.o s-secsta.o s-stalib.o s-stoele.o sdefault.o stylesw.o switch.o system.o \
303 table.o tree_io.o types.o validsw.o widechar.o
305 GNATMAKE_OBJS
= a-except.o ctrl_c.o ali.o ali-util.o s-casuti.o \
306 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
307 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
308 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
309 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o mlib-utl.o \
310 namet.o nlists.o opt.o osint.o osint-m.o output.o \
311 prj.o prj-attr.o prj-com.o prj-dect.o prj-env.o prj-err.o prj-ext.o prj-nmsc.o \
312 prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o \
313 rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
314 scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o \
315 sinfo.o sinput.o sinput-c.o sinput-p.o \
316 snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o switch.o switch-m.o \
317 table.o targparm.o tempdir.o tree_io.o types.o \
318 uintp.o uname.o urealp.o usage.o widechar.o \
319 $(EXTRA_GNATMAKE_OBJS
)
321 # Convert the target variable into a space separated list of architecture,
322 # manufacturer, and operating system and assign each of those to its own
325 host
:=$(subst -, ,$(host_canonical
))
326 targ
:=$(subst -, ,$(target
))
327 arch
:=$(word 1,$(targ
))
328 ifeq ($(words $(targ
)),2)
330 osys
:=$(word 2,$(targ
))
332 manu
:=$(word 2,$(targ
))
333 osys
:=$(word 3,$(targ
))
336 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
337 # The members of each pair must be separated by a '<' and no whitespace.
338 # Each pair must be separated by some amount of whitespace from the following
343 LIBGNAT_TARGET_PAIRS
= \
344 a-intnam.ads
<a-intnam-dummy.ads \
345 s-inmaop.adb
<s-inmaop-dummy.adb \
346 s-intman.adb
<s-intman-dummy.adb \
347 s-osinte.ads
<s-osinte-dummy.ads \
348 s-osprim.adb
<s-osprim-posix.adb \
349 s-taprop.adb
<s-taprop-dummy.adb \
350 s-taspri.ads
<s-taspri-dummy.ads
352 # Default shared object option. Note that we rely on the fact that the "soname"
353 # option will always be present and last in this flag, so that we can have
354 # $(SO_OPTS)libgnat-x.xx
356 SO_OPTS
= -Wl
,-soname
,
358 # Default gnatlib-shared target.
359 # By default, equivalent to gnatlib.
360 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
361 # target when supported.
362 GNATLIB_SHARED
= gnatlib
364 # default value for gnatmake's target dependent file
367 # By default, do not distribute prefix.o (in libgccprefix), since it is only
368 # needed by external GNAT tools such as gnatdist and Glide.
369 # Override this variable on native platforms when needed.
372 # To avoid duplicate code, use this variable to set PREFIX_OBJS when needed:
373 PREFIX_REAL_OBJS
= ..
/prefix.o \
374 ..
/..
/libiberty
/concat.o \
375 ..
/..
/libiberty
/xmalloc.o \
376 ..
/..
/libiberty
/xstrdup.o \
377 ..
/..
/libiberty
/xexit.o
379 LIB_VERSION
= $(strip $(shell grep
' Library_Version :' $(fsrcpfx
)gnatvsn.ads | sed
-e
's/.*"\(.*\)".*/\1/'))
381 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
382 # $(strip STRING) removes leading and trailing spaces from STRING.
383 # If what's left is null then it's a match.
385 ifeq ($(strip $(filter-out %86 os2 OS2 os2_emx
,$(arch
) $(osys
))),)
386 LIBGNAT_TARGET_PAIRS
= \
387 a-excpol.adb
<a-excpol-abort.adb \
388 a-intnam.ads
<a-intnam-dummy.ads \
389 a-numaux.adb
<a-numaux-x86.adb \
390 a-numaux.ads
<a-numaux-x86.ads \
391 s-inmaop.adb
<s-inmaop-dummy.adb \
392 s-interr.adb
<s-interr-dummy.adb \
393 s-intman.adb
<s-intman-dummy.adb \
394 s-mastop.adb
<s-mastop-x86.adb \
395 s-osinte.adb
<s-osinte-os2.adb \
396 s-osinte.ads
<s-osinte-os2.ads \
397 s-osprim.adb
<s-osprim-os2.adb \
398 s-parame.adb
<s-parame-os2.adb \
399 system.ads
<system-os2.ads \
400 s-taprop.adb
<s-taprop-os2.adb \
401 s-taspri.ads
<s-taspri-os2.ads
403 EXTRA_GNATRTL_NONTASKING_OBJS
= \
410 ifeq ($(strip $(filter-out %86 interix
%,$(arch
) $(osys
))),)
411 LIBGNAT_TARGET_PAIRS
= \
412 a-excpol.adb
<a-excpol-interix.adb \
413 a-intnam.ads
<a-intnam-interix.ads \
414 a-numaux.adb
<a-numaux-x86.adb \
415 a-numaux.ads
<a-numaux-x86.ads \
416 g-soccon.ads
<g-soccon-interix.ads \
417 s-inmaop.adb
<s-inmaop-posix.adb \
418 s-intman.adb
<s-intman-posix.adb \
419 s-mastop.adb
<s-mastop-x86.adb \
420 s-osinte.adb
<s-osinte-fsu.adb \
421 s-osinte.ads
<s-osinte-interix.ads \
422 s-osprim.adb
<s-osprim-unix.adb \
423 s-taprop.adb
<s-taprop-posix.adb \
424 system.ads
<system-interix.ads \
425 s-taspri.ads
<s-taspri-posix.ads \
426 s-tpopsp.adb
<s-tpopsp-posix.adb
428 THREADSLIB
= -lgthreads
-lmalloc
429 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
432 # sysv5uw is SCO UnixWare 7
433 ifeq ($(strip $(filter-out %86 sysv5uw
%,$(arch
) $(osys
))),)
434 LIBGNAT_TARGET_PAIRS
= \
435 a-excpol.adb
<a-excpol-abort.adb \
436 a-intnam.ads
<a-intnam-unixware.ads \
437 a-numaux.adb
<a-numaux-x86.adb \
438 a-numaux.ads
<a-numaux-x86.ads \
439 s-inmaop.adb
<s-inmaop-posix.adb \
440 s-intman.adb
<s-intman-posix.adb \
441 s-mastop.adb
<s-mastop-x86.adb \
442 s-osinte.ads
<s-osinte-unixware.ads \
443 s-osinte.adb
<s-osinte-unixware.adb \
444 s-osprim.adb
<s-osprim-unix.adb \
445 s-taprop.adb
<s-taprop-posix.adb \
446 s-taspri.ads
<s-taspri-posix.ads \
447 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
448 system.ads
<system-unixware.ads \
449 g-soccon.ads
<g-soccon-unixware.ads \
450 g-soliop.ads
<g-soliop-unixware.ads
452 THREADSLIB
= -lthread
453 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
455 GNATLIB_SHARED
= gnatlib-shared-dual
456 LIBRARY_VERSION
:= $(LIB_VERSION
)
459 ifeq ($(strip $(filter-out alpha
% dec vx
%,$(targ
))),)
460 LIBGNAT_TARGET_PAIRS
= \
461 a-sytaco.ads
<a-sytaco-vxworks.ads \
462 a-sytaco.adb
<a-sytaco-vxworks.adb \
463 a-intnam.ads
<a-intnam-vxworks.ads \
464 a-numaux.ads
<a-numaux-vxworks.ads \
465 s-inmaop.adb
<s-inmaop-posix.adb \
466 s-interr.adb
<s-interr-vxworks.adb \
467 s-intman.ads
<s-intman-vxworks.ads \
468 s-intman.adb
<s-intman-vxworks.adb \
469 s-osinte.adb
<s-osinte-vxworks.adb \
470 s-osinte.ads
<s-osinte-vxworks.ads \
471 s-osprim.adb
<s-osprim-vxworks.adb \
472 s-parame.ads
<s-parame-vxworks.ads \
473 s-stchop.adb
<s-stchop-vxworks.adb \
474 s-taprop.adb
<s-taprop-vxworks.adb \
475 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
476 s-taspri.ads
<s-taspri-vxworks.ads \
477 s-vxwork.ads
<s-vxwork-alpha.ads \
478 g-soccon.ads
<g-soccon-vxworks.ads \
479 g-socthi.ads
<g-socthi-vxworks.ads \
480 g-socthi.adb
<g-socthi-vxworks.adb \
481 system.ads
<system-vxworks-alpha.ads
483 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
484 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
487 ifeq ($(strip $(filter-out m68k
% wrs vx
%,$(targ
))),)
488 LIBGNAT_TARGET_PAIRS
= \
489 a-sytaco.ads
<a-sytaco-vxworks.ads \
490 a-sytaco.adb
<a-sytaco-vxworks.adb \
491 a-intnam.ads
<a-intnam-vxworks.ads \
492 a-numaux.ads
<a-numaux-vxworks.ads \
493 s-inmaop.adb
<s-inmaop-posix.adb \
494 s-interr.adb
<s-interr-vxworks.adb \
495 s-intman.ads
<s-intman-vxworks.ads \
496 s-intman.adb
<s-intman-vxworks.adb \
497 s-osinte.adb
<s-osinte-vxworks.adb \
498 s-osinte.ads
<s-osinte-vxworks.ads \
499 s-osprim.adb
<s-osprim-vxworks.adb \
500 s-parame.ads
<s-parame-vxworks.ads \
501 s-stchop.adb
<s-stchop-vxworks.adb \
502 s-taprop.adb
<s-taprop-vxworks.adb \
503 s-taspri.ads
<s-taspri-vxworks.ads \
504 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
505 s-vxwork.ads
<s-vxwork-m68k.ads \
506 g-soccon.ads
<g-soccon-vxworks.ads \
507 g-socthi.ads
<g-socthi-vxworks.ads \
508 g-socthi.adb
<g-socthi-vxworks.adb \
509 system.ads
<system-vxworks-m68k.ads
511 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
513 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
514 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
516 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
517 LIBGNAT_TARGET_PAIRS
+= \
518 s-traces.adb
<s-traces-default.adb \
519 s-tratas.adb
<s-tratas-default.adb \
520 s-trafor.adb
<s-trafor-default.adb \
521 s-trafor.ads
<s-trafor-default.ads \
522 s-tfsetr.adb
<s-tfsetr-vxworks.adb
526 ifeq ($(strip $(filter-out powerpc
% wrs vxworks
,$(targ
))),)
527 LIBGNAT_TARGET_PAIRS
= \
528 a-sytaco.ads
<a-sytaco-vxworks.ads \
529 a-sytaco.adb
<a-sytaco-vxworks.adb \
530 a-intnam.ads
<a-intnam-vxworks.ads \
531 a-numaux.ads
<a-numaux-vxworks.ads \
532 s-inmaop.adb
<s-inmaop-posix.adb \
533 s-interr.adb
<s-interr-vxworks.adb \
534 s-intman.ads
<s-intman-vxworks.ads \
535 s-intman.adb
<s-intman-vxworks.adb \
536 s-osinte.adb
<s-osinte-vxworks.adb \
537 s-osinte.ads
<s-osinte-vxworks.ads \
538 s-osprim.adb
<s-osprim-vxworks.adb \
539 s-parame.ads
<s-parame-vxworks.ads \
540 s-stchop.adb
<s-stchop-vxworks.adb \
541 s-taprop.adb
<s-taprop-vxworks.adb \
542 s-taspri.ads
<s-taspri-vxworks.ads \
543 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
544 s-vxwork.ads
<s-vxwork-ppc.ads \
545 g-soccon.ads
<g-soccon-vxworks.ads \
546 g-socthi.ads
<g-socthi-vxworks.ads \
547 g-socthi.adb
<g-socthi-vxworks.adb \
548 system.ads
<system-vxworks-ppc.ads
550 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
552 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
553 LIBGNAT_TARGET_PAIRS
+= \
554 s-traces.adb
<s-traces-default.adb \
555 s-trafor.adb
<s-trafor-default.adb \
556 s-trafor.ads
<s-trafor-default.ads \
557 s-tratas.adb
<s-tratas-default.adb \
558 s-tfsetr.adb
<s-tfsetr-vxworks.adb
562 ifeq ($(strip $(filter-out sparc
% wrs vx
%,$(targ
))),)
563 LIBGNAT_TARGET_PAIRS
= \
564 a-sytaco.ads
<a-sytaco-vxworks.ads \
565 a-sytaco.adb
<a-sytaco-vxworks.adb \
566 a-intnam.ads
<a-intnam-vxworks.ads \
567 a-numaux.ads
<a-numaux-vxworks.ads \
568 s-inmaop.adb
<s-inmaop-posix.adb \
569 s-interr.adb
<s-interr-vxworks.adb \
570 s-intman.ads
<s-intman-vxworks.ads \
571 s-intman.adb
<s-intman-vxworks.adb \
572 s-osinte.adb
<s-osinte-vxworks.adb \
573 s-osinte.ads
<s-osinte-vxworks.ads \
574 s-osprim.adb
<s-osprim-vxworks.adb \
575 s-parame.ads
<s-parame-vxworks.ads \
576 s-stchop.adb
<s-stchop-vxworks.adb \
577 s-taprop.adb
<s-taprop-vxworks.adb \
578 s-taspri.ads
<s-taspri-vxworks.ads \
579 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
580 s-vxwork.ads
<s-vxwork-sparcv9.ads \
581 g-soccon.ads
<g-soccon-vxworks.ads \
582 g-socthi.ads
<g-socthi-vxworks.ads \
583 g-socthi.adb
<g-socthi-vxworks.adb \
584 system.ads
<system-vxworks-sparcv9.ads \
586 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
588 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
589 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
592 ifeq ($(strip $(filter-out xscale
% coff wrs vx
%,$(targ
))),)
593 LIBGNAT_TARGET_PAIRS
= \
594 a-sytaco.ads
<a-sytaco-vxworks.ads \
595 a-sytaco.adb
<a-sytaco-vxworks.adb \
596 a-intnam.ads
<a-intnam-vxworks.ads \
597 a-numaux.ads
<a-numaux-vxworks.ads \
598 s-inmaop.adb
<s-inmaop-posix.adb \
599 s-interr.adb
<s-interr-vxworks.adb \
600 s-intman.ads
<s-intman-vxworks.ads \
601 s-intman.adb
<s-intman-vxworks.adb \
602 s-osinte.adb
<s-osinte-vxworks.adb \
603 s-osinte.ads
<s-osinte-vxworks.ads \
604 s-osprim.adb
<s-osprim-vxworks.adb \
605 s-parame.ads
<s-parame-vxworks.ads \
606 s-stchop.adb
<s-stchop-vxworks.adb \
607 s-taprop.adb
<s-taprop-vxworks.adb \
608 s-taspri.ads
<s-taspri-vxworks.ads \
609 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
610 s-vxwork.ads
<s-vxwork-xscale.ads \
611 g-soccon.ads
<g-soccon-vxworks.ads \
612 g-socthi.ads
<g-socthi-vxworks.ads \
613 g-socthi.adb
<g-socthi-vxworks.adb \
614 system.ads
<system-elf-sparc.ads
616 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
618 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
619 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
622 ifeq ($(strip $(filter-out mips
% wrs vx
%,$(targ
))),)
623 LIBGNAT_TARGET_PAIRS
= \
624 a-sytaco.ads
<a-sytaco-vxworks.ads \
625 a-sytaco.adb
<a-sytaco-vxworks.adb \
626 a-intnam.ads
<a-intnam-vxworks.ads \
627 a-numaux.ads
<a-numaux-vxworks.ads \
628 s-inmaop.adb
<s-inmaop-posix.adb \
629 s-interr.adb
<s-interr-vxworks.adb \
630 s-intman.ads
<s-intman-vxworks.ads \
631 s-intman.adb
<s-intman-vxworks.adb \
632 s-osinte.adb
<s-osinte-vxworks.adb \
633 s-osinte.ads
<s-osinte-vxworks.ads \
634 s-osprim.adb
<s-osprim-vxworks.adb \
635 s-parame.ads
<s-parame-vxworks.ads \
636 s-stchop.adb
<s-stchop-vxworks.adb \
637 s-taprop.adb
<s-taprop-vxworks.adb \
638 s-taspri.ads
<s-taspri-vxworks.ads \
639 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
640 s-vxwork.ads
<s-vxwork-mips.ads \
641 g-soccon.ads
<g-soccon-vxworks.ads \
642 g-socthi.ads
<g-socthi-vxworks.ads \
643 g-socthi.adb
<g-socthi-vxworks.adb \
644 system.ads
<system-vxworks-mips.ads
646 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
648 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
649 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
652 ifeq ($(strip $(filter-out sparc sun solaris
%,$(targ
))),)
653 LIBGNAT_TARGET_PAIRS
= \
654 a-intnam.ads
<a-intnam-solaris.ads \
655 s-inmaop.adb
<s-inmaop-posix.adb \
656 s-intman.adb
<s-intman-solaris.adb \
657 s-osinte.adb
<s-osinte-solaris.adb \
658 s-osinte.ads
<s-osinte-solaris.ads \
659 s-osprim.adb
<s-osprim-solaris.adb \
660 s-parame.adb
<s-parame-solaris.adb \
661 s-taprop.adb
<s-taprop-solaris.adb \
662 s-tasinf.adb
<s-tasinf-solaris.adb \
663 s-tasinf.ads
<s-tasinf-solaris.ads \
664 s-taspri.ads
<s-taspri-solaris.ads \
665 s-tpopsp.adb
<s-tpopsp-solaris.adb \
666 g-soccon.ads
<g-soccon-solaris.ads \
667 g-soliop.ads
<g-soliop-solaris.ads \
668 system.ads
<system-solaris-sparc.ads
670 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-solaris.adb
672 THREADSLIB
= -lposix4
-lthread
673 MISCLIB
= -lposix4
-lnsl
-lsocket
674 SYMLIB
= $(ADDR2LINE_SYMLIB
)
676 GNATLIB_SHARED
= gnatlib-shared-dual
678 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
679 LIBRARY_VERSION
:= $(LIB_VERSION
)
681 ifeq ($(strip $(filter-out fsu FSU
,$(THREAD_KIND
))),)
682 LIBGNAT_TARGET_PAIRS
= \
683 a-intnam.ads
<a-intnam-solaris.ads \
684 s-inmaop.adb
<s-inmaop-posix.adb \
685 s-intman.adb
<s-intman-solaris.adb \
686 s-osinte.adb
<s-osinte-fsu.adb \
687 s-osinte.ads
<s-osinte-solaris-fsu.ads \
688 s-osprim.adb
<s-osprim-solaris.adb \
689 s-taprop.adb
<s-taprop-posix.adb \
690 s-taspri.ads
<s-taspri-posix.ads \
691 s-tpopsp.adb
<s-tpopsp-posix.adb \
692 g-soccon.ads
<g-soccon-solaris.ads \
693 g-soliop.ads
<g-soliop-solaris.ads \
694 system.ads
<system-solaris-sparc.ads
696 THREADSLIB
= -lgthreads
-lmalloc
699 ifeq ($(strip $(filter-out pthread PTHREAD
,$(THREAD_KIND
))),)
700 LIBGNAT_TARGET_PAIRS
= \
701 a-intnam.ads
<a-intnam-solaris.ads \
702 s-inmaop.adb
<s-inmaop-posix.adb \
703 s-intman.adb
<s-intman-posix.adb \
704 s-osinte.adb
<s-osinte-posix.adb \
705 s-osinte.ads
<s-osinte-solaris-posix.ads \
706 s-osprim.adb
<s-osprim-solaris.adb \
707 s-taprop.adb
<s-taprop-posix.adb \
708 s-taspri.ads
<s-taspri-posix.ads \
709 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
710 g-soccon.ads
<g-soccon-solaris.ads \
711 g-soliop.ads
<g-soliop-solaris.ads \
712 system.ads
<system-solaris-sparc.ads
714 THREADSLIB
= -lposix4
-lpthread
717 ifeq ($(strip $(filter-out m64
,$(THREAD_KIND
))),)
718 LIBGNAT_TARGET_PAIRS
= \
719 a-intnam.ads
<a-intnam-solaris.ads \
720 s-inmaop.adb
<s-inmaop-posix.adb \
721 s-intman.adb
<s-intman-solaris.adb \
722 s-osinte.adb
<s-osinte-solaris.adb \
723 s-osinte.ads
<s-osinte-solaris.ads \
724 s-osprim.adb
<s-osprim-solaris.adb \
725 s-parame.adb
<s-parame-solaris.adb \
726 s-taprop.adb
<s-taprop-solaris.adb \
727 s-tasinf.adb
<s-tasinf-solaris.adb \
728 s-tasinf.ads
<s-tasinf-solaris.ads \
729 s-taspri.ads
<s-taspri-solaris.ads \
730 s-tpopsp.adb
<s-tpopsp-solaris.adb \
731 g-soccon.ads
<g-soccon-solaris.ads \
732 g-soliop.ads
<g-soliop-solaris.ads \
733 system.ads
<system-solaris-sparcv9.ads
737 ifeq ($(strip $(filter-out %86 solaris2
%,$(arch
) $(osys
))),)
738 LIBGNAT_TARGET_PAIRS
= \
739 a-numaux.adb
<a-numaux-x86.adb \
740 a-numaux.ads
<a-numaux-x86.ads \
741 a-intnam.ads
<a-intnam-solaris.ads \
742 s-inmaop.adb
<s-inmaop-posix.adb \
743 s-intman.adb
<s-intman-solaris.adb \
744 s-mastop.adb
<s-mastop-x86.adb \
745 s-osinte.adb
<s-osinte-solaris.adb \
746 s-osinte.ads
<s-osinte-solaris.ads \
747 s-osprim.adb
<s-osprim-solaris.adb \
748 s-parame.adb
<s-parame-solaris.adb \
749 s-taprop.adb
<s-taprop-solaris.adb \
750 s-tasinf.adb
<s-tasinf-solaris.adb \
751 s-tasinf.ads
<s-tasinf-solaris.ads \
752 s-taspri.ads
<s-taspri-solaris.ads \
753 s-tpopsp.adb
<s-tpopsp-solaris.adb \
754 g-soccon.ads
<g-soccon-solaris.ads \
755 g-soliop.ads
<g-soliop-solaris.ads \
756 system.ads
<system-solaris-x86.ads
758 THREADSLIB
= -lposix4
-lthread
759 MISCLIB
= -lposix4
-lnsl
-lsocket
761 GNATLIB_SHARED
= gnatlib-shared-dual
762 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
763 LIBRARY_VERSION
:= $(LIB_VERSION
)
766 ifeq ($(strip $(filter-out %86 linux
%,$(arch
) $(osys
))),)
767 LIBGNAT_TARGET_PAIRS
= \
768 a-intnam.ads
<a-intnam-linux.ads \
769 a-numaux.adb
<a-numaux-x86.adb \
770 a-numaux.ads
<a-numaux-x86.ads \
771 s-inmaop.adb
<s-inmaop-posix.adb \
772 s-intman.adb
<s-intman-posix.adb \
773 s-mastop.adb
<s-mastop-x86.adb \
774 s-osinte.adb
<s-osinte-posix.adb \
775 s-osinte.ads
<s-osinte-linux.ads \
776 s-osprim.adb
<s-osprim-posix.adb \
777 s-taprop.adb
<s-taprop-linux.adb \
778 s-taspri.ads
<s-taspri-linux.ads \
779 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
780 s-parame.adb
<s-parame-linux.adb \
781 system.ads
<system-linux-x86.ads
783 TOOLS_TARGET_PAIRS
= \
784 mlib-tgt.adb
<mlib-tgt-linux.adb
786 SYMLIB
= $(ADDR2LINE_SYMLIB
)
787 THREADSLIB
= -lpthread
788 GNATLIB_SHARED
= gnatlib-shared-dual
790 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
791 LIBRARY_VERSION
:= $(LIB_VERSION
)
793 ifeq ($(strip $(filter-out fsu FSU
,$(THREAD_KIND
))),)
794 LIBGNAT_TARGET_PAIRS
= \
795 a-intnam.ads
<a-intnam-linux.ads \
796 a-numaux.adb
<a-numaux-x86.adb \
797 a-numaux.ads
<a-numaux-x86.ads \
798 s-inmaop.adb
<s-inmaop-posix.adb \
799 s-intman.adb
<s-intman-posix.adb \
800 s-mastop.adb
<s-mastop-x86.adb \
801 s-osinte.adb
<s-osinte-fsu.adb \
802 s-osinte.ads
<s-osinte-linux-fsu.ads \
803 s-osprim.adb
<s-osprim-posix.adb \
804 s-taprop.adb
<s-taprop-posix.adb \
805 s-taspri.ads
<s-taspri-posix.ads \
806 s-tpopsp.adb
<s-tpopsp-posix.adb \
807 system.ads
<system-linux-x86.ads
809 THREADSLIB
= -lgthreads
-lmalloc
813 ifeq ($(strip $(filter-out %86 freebsd
%,$(arch
) $(osys
))),)
814 LIBGNAT_TARGET_PAIRS
= \
815 a-intnam.ads
<a-intnam-freebsd.ads \
816 a-numaux.adb
<a-numaux-x86.adb \
817 a-numaux.ads
<a-numaux-x86.ads \
818 g-soccon.ads
<g-soccon-freebsd.ads \
819 s-inmaop.adb
<s-inmaop-posix.adb \
820 s-intman.adb
<s-intman-posix.adb \
821 s-mastop.adb
<s-mastop-x86.adb \
822 s-osinte.adb
<s-osinte-freebsd.adb \
823 s-osinte.ads
<s-osinte-freebsd.ads \
824 s-osprim.adb
<s-osprim-posix.adb \
825 s-taprop.adb
<s-taprop-posix.adb \
826 s-taspri.ads
<s-taspri-posix.ads \
827 s-tpopsp.adb
<s-tpopsp-posix.adb \
828 system.ads
<system-freebsd-x86.ads
830 TOOLS_TARGET_PAIRS
= \
831 mlib-tgt.adb
<mlib-tgt-linux.adb
832 GNATLIB_SHARED
= gnatlib-shared-dual
834 SYMLIB
= $(ADDR2LINE_SYMLIB
)
837 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
838 LIBRARY_VERSION
:= $(LIB_VERSION
)
841 ifeq ($(strip $(filter-out s390
% linux
%,$(arch
) $(osys
))),)
842 ifeq ($(strip $(filter-out s390x
,$(arch
))),)
843 LIBGNAT_TARGET_PAIRS
= \
844 a-intnam.ads
<a-intnam-linux.ads \
845 s-inmaop.adb
<s-inmaop-posix.adb \
846 s-intman.adb
<s-intman-posix.adb \
847 s-osinte.adb
<s-osinte-posix.adb \
848 s-osinte.ads
<s-osinte-linux.ads \
849 s-osprim.adb
<s-osprim-posix.adb \
850 s-taprop.adb
<s-taprop-linux.adb \
851 s-taspri.ads
<s-taspri-linux.ads \
852 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
853 s-parame.adb
<s-parame-linux.adb \
854 system.ads
<system-linux-s390x.ads
856 LIBGNAT_TARGET_PAIRS
= \
857 a-intnam.ads
<a-intnam-linux.ads \
858 s-inmaop.adb
<s-inmaop-posix.adb \
859 s-intman.adb
<s-intman-posix.adb \
860 s-osinte.adb
<s-osinte-posix.adb \
861 s-osinte.ads
<s-osinte-linux.ads \
862 s-osprim.adb
<s-osprim-posix.adb \
863 s-taprop.adb
<s-taprop-linux.adb \
864 s-taspri.ads
<s-taspri-linux.ads \
865 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
866 s-parame.adb
<s-parame-linux.adb \
867 system.ads
<system-linux-s390.ads
870 TOOLS_TARGET_PAIRS
= \
871 mlib-tgt.adb
<mlib-tgt-linux.adb
873 THREADSLIB
= -lpthread
874 GNATLIB_SHARED
= gnatlib-shared-dual
875 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
876 LIBRARY_VERSION
:= $(LIB_VERSION
)
879 ifeq ($(strip $(filter-out mips sgi irix
%,$(targ
))),)
880 ifeq ($(strip $(filter-out mips sgi irix6
%,$(targ
))),)
881 LIBGNAT_TARGET_PAIRS
= \
882 a-intnam.ads
<a-intnam-irix.ads \
883 s-inmaop.adb
<s-inmaop-posix.adb \
884 s-intman.adb
<s-intman-irix.adb \
885 s-mastop.adb
<s-mastop-irix.adb \
886 s-osinte.adb
<s-osinte-irix.adb \
887 s-osinte.ads
<s-osinte-irix.ads \
888 s-osprim.adb
<s-osprim-posix.adb \
889 s-proinf.adb
<s-proinf-irix-athread.adb \
890 s-proinf.ads
<s-proinf-irix-athread.ads \
891 s-taprop.adb
<s-taprop-irix.adb \
892 s-tasinf.ads
<s-tasinf-irix.ads \
893 s-taspri.ads
<s-taspri-posix.ads \
894 s-tpopsp.adb
<s-tpopsp-posix.adb \
895 s-traceb.adb
<s-traceb-mastop.adb \
896 g-soccon.ads
<g-soccon-irix.ads \
897 system.ads
<system-irix-n32.ads
899 THREADSLIB
= -lpthread
900 GNATLIB_SHARED
= gnatlib-shared-default
903 LIBGNAT_TARGET_PAIRS
= \
904 a-intnam.ads
<a-intnam-irix.ads \
905 s-inmaop.adb
<s-inmaop-dummy.adb \
906 s-interr.adb
<s-interr-sigaction.adb \
907 s-intman.adb
<s-intman-irix-athread.adb \
908 s-mastop.adb
<s-mastop-irix.adb \
909 s-osinte.adb
<s-osinte-irix.adb \
910 s-osinte.ads
<s-osinte-irix-athread.ads \
911 s-osprim.adb
<s-osprim-posix.adb \
912 s-proinf.adb
<s-proinf-irix-athread.adb \
913 s-proinf.ads
<s-proinf-irix-athread.ads \
914 s-taprop.adb
<s-taprop-irix-athread.adb \
915 s-tasinf.adb
<s-tasinf-irix-athread.adb \
916 s-tasinf.ads
<s-tasinf-irix-athread.ads \
917 s-taspri.ads
<s-taspri-posix.ads \
918 s-traceb.adb
<s-traceb-mastop.adb \
919 g-soccon.ads
<g-soccon-irix.ads \
920 system.ads
<system-irix-o32.ads
923 TOOLS_TARGET_PAIRS
= mlib-tgt.adb
<mlib-tgt-irix.adb
926 SO_OPTS
= -Wl
,-all,-set_version
,sgi1.0
,-update_registry
,..
/so_locations
,-soname
,
927 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
928 LIBRARY_VERSION
:= $(LIB_VERSION
)
931 ifeq ($(strip $(filter-out hppa
% hp hpux10
%,$(targ
))),)
932 LIBGNAT_TARGET_PAIRS
= \
933 a-excpol.adb
<a-excpol-abort.adb \
934 a-intnam.ads
<a-intnam-hpux.ads \
935 s-inmaop.adb
<s-inmaop-posix.adb \
936 s-interr.adb
<s-interr-sigaction.adb \
937 s-intman.adb
<s-intman-posix.adb \
938 s-osinte.adb
<s-osinte-hpux-dce.adb \
939 s-osinte.ads
<s-osinte-hpux-dce.ads \
940 s-parame.ads
<s-parame-hpux.ads \
941 s-osprim.adb
<s-osprim-posix.adb \
942 s-taprop.adb
<s-taprop-hpux-dce.adb \
943 s-taspri.ads
<s-taspri-hpux-dce.ads \
944 s-tpopsp.adb
<s-tpopsp-posix.adb \
945 g-soccon.ads
<g-soccon-hpux.ads \
946 system.ads
<system-hpux.ads
948 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
951 ifeq ($(strip $(filter-out hppa
% hp hpux11
%,$(targ
))),)
952 LIBGNAT_TARGET_PAIRS
= \
953 a-intnam.ads
<a-intnam-hpux.ads \
954 s-inmaop.adb
<s-inmaop-posix.adb \
955 s-intman.adb
<s-intman-posix.adb \
956 s-osinte.adb
<s-osinte-posix.adb \
957 s-osinte.ads
<s-osinte-hpux.ads \
958 s-parame.ads
<s-parame-hpux.ads \
959 s-osprim.adb
<s-osprim-posix.adb \
960 s-traceb.adb
<s-traceb-hpux.adb \
961 s-taprop.adb
<s-taprop-posix.adb \
962 s-taspri.ads
<s-taspri-posix.ads \
963 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
964 g-soccon.ads
<g-soccon-hpux.ads \
965 system.ads
<system-hpux.ads
967 TOOLS_TARGET_PAIRS
= mlib-tgt.adb
<mlib-tgt-hpux.adb
968 TGT_LIB
= /usr
/lib
/libcl.a
969 THREADSLIB
= -lpthread
970 SYMLIB
= $(ADDR2LINE_SYMLIB
)
974 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
975 GNATLIB_SHARED
= gnatlib-shared-dual
976 LIBRARY_VERSION
:= $(LIB_VERSION
)
978 ifeq ($(strip $(filter-out dce DCE
,$(THREAD_KIND
))),)
979 LIBGNAT_TARGET_PAIRS
= \
980 a-excpol.adb
<a-excpol-abort.adb \
981 a-intnam.ads
<a-intnam-hpux.ads \
982 s-inmaop.adb
<s-inmaop-posix.adb \
983 s-interr.adb
<s-interr-sigaction.adb \
984 s-intman.adb
<s-intman-posix.adb \
985 s-osinte.adb
<s-osinte-hpux-dce.adb \
986 s-osinte.ads
<s-osinte-hpux-dce.ads \
987 s-parame.ads
<s-parame-hpux.ads \
988 s-osprim.adb
<s-osprim-posix.adb \
989 s-taprop.adb
<s-taprop-hpux-dce.adb \
990 s-taspri.ads
<s-taspri-hpux-dce.ads \
991 s-tpopsp.adb
<s-tpopsp-posix.adb \
992 g-soccon.ads
<g-soccon-hpux.ads \
993 system.ads
<system-hpux.ads
1000 ifeq ($(strip $(filter-out ibm aix
%,$(manu
) $(osys
))),)
1001 LIBGNAT_TARGET_PAIRS
= \
1002 a-intnam.ads
<a-intnam-aix.ads \
1003 s-inmaop.adb
<s-inmaop-posix.adb \
1004 s-intman.adb
<s-intman-posix.adb \
1005 s-osinte.adb
<s-osinte-aix.adb \
1006 s-osinte.ads
<s-osinte-aix.ads \
1007 s-osprim.adb
<s-osprim-posix.adb \
1008 s-taprop.adb
<s-taprop-posix.adb \
1009 s-taspri.ads
<s-taspri-posix.ads \
1010 s-tpopsp.adb
<s-tpopsp-posix.adb \
1011 g-soccon.ads
<g-soccon-aix.ads \
1012 system.ads
<system-aix.ads
1014 THREADSLIB
= -lpthreads
1015 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1017 ifeq ($(strip $(filter-out fsu FSU
,$(THREAD_KIND
))),)
1018 LIBGNAT_TARGET_PAIRS
= \
1019 a-intnam.ads
<a-intnam-aix.ads \
1020 s-inmaop.adb
<s-inmaop-posix.adb \
1021 s-intman.adb
<s-intman-posix.adb \
1022 s-osinte.adb
<s-osinte-fsu.adb \
1023 s-osinte.ads
<s-osinte-aix-fsu.ads \
1024 s-osprim.adb
<s-osprim-posix.adb \
1025 s-taprop.adb
<s-taprop-posix.adb \
1026 s-taspri.ads
<s-taspri-posix.ads \
1027 s-tpopsp.adb
<s-tpopsp-posix.adb \
1028 g-soccon.ads
<g-soccon-aix.ads \
1029 system.ads
<system-aix.ads
1031 THREADSLIB
= -lgthreads
-lmalloc
1034 TOOLS_TARGET_PAIRS
= mlib-tgt.adb
<mlib-tgt-aix.adb
1036 SYMLIB
= $(ADDR2LINE_SYMLIB
)
1040 ifeq ($(strip $(filter-out lynxos
,$(osys
))),)
1041 ifeq ($(strip $(filter-out %86 lynxos
,$(arch
) $(osys
))),)
1042 LIBGNAT_TARGET_PAIRS
= \
1043 a-numaux.adb
<a-numaux-x86.adb \
1044 a-numaux.ads
<a-numaux-x86.ads \
1045 a-intnam.ads
<a-intnam-lynxos.ads \
1046 s-mastop.adb
<s-mastop-x86.adb \
1047 s-inmaop.adb
<s-inmaop-posix.adb \
1048 s-intman.adb
<s-intman-posix.adb \
1049 s-osinte.adb
<s-osinte-lynxos.adb \
1050 s-osinte.ads
<s-osinte-lynxos.ads \
1051 s-osprim.adb
<s-osprim-posix.adb \
1052 s-taprop.adb
<s-taprop-lynxos.adb \
1053 s-taspri.ads
<s-taspri-lynxos.ads \
1054 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
1055 system.ads
<system-lynxos-x86.ads
1057 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1060 LIBGNAT_TARGET_PAIRS
= \
1061 a-intnam.ads
<a-intnam-lynxos.ads \
1062 s-inmaop.adb
<s-inmaop-posix.adb \
1063 s-intman.adb
<s-intman-posix.adb \
1064 s-osinte.adb
<s-osinte-lynxos-3.adb \
1065 s-osinte.ads
<s-osinte-lynxos-3.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 system.ads
<system-lynxos-ppc.ads
1072 ifeq ($(strip $(filter-out pthread PTHREAD
,$(THREAD_KIND
))),)
1073 LIBGNAT_TARGET_PAIRS
= \
1074 a-intnam.ads
<a-intnam-lynxos.ads \
1075 s-inmaop.adb
<s-inmaop-posix.adb \
1076 s-intman.adb
<s-intman-posix.adb \
1077 s-osinte.adb
<s-osinte-lynxos.adb \
1078 s-osinte.ads
<s-osinte-lynxos.ads \
1079 s-osprim.adb
<s-osprim-posix.adb \
1080 s-taprop.adb
<s-taprop-lynxos.adb \
1081 s-taspri.ads
<s-taspri-lynxos.ads \
1082 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
1083 system.ads
<system-lynxos-ppc.ads
1089 ifeq ($(strip $(filter-out rtems
%,$(osys
))),)
1090 LIBGNAT_TARGET_PAIRS
= \
1091 a-intnam.ads
<4rintnam.ads \
1092 s-inmaop.adb
<s-inmaop-posix.adb \
1093 s-intman.adb
<s-intman-posix.adb \
1094 s-osinte.adb
<5rosinte.adb \
1095 s-osinte.ads
<5rosinte.ads \
1096 s-osprim.adb
<s-osprim-posix.adb \
1097 s-parame.adb
<5rparame.adb \
1098 s-taprop.adb
<s-taprop-posix.adb \
1099 s-taspri.ads
<s-taspri-posix.ads \
1100 s-tpopsp.adb
<5rtpopsp.adb
1103 ifeq ($(strip $(filter-out alpha
% dec osf
%,$(targ
))),)
1104 LIBGNAT_TARGET_PAIRS
= \
1105 a-intnam.ads
<a-intnam-tru64.ads \
1106 s-inmaop.adb
<s-inmaop-posix.adb \
1107 s-intman.adb
<s-intman-posix.adb \
1108 s-mastop.adb
<s-mastop-tru64.adb \
1109 s-osinte.adb
<s-osinte-tru64.adb \
1110 s-osinte.ads
<s-osinte-tru64.ads \
1111 s-osprim.adb
<s-osprim-unix.adb \
1112 s-taprop.adb
<s-taprop-tru64.adb \
1113 s-tasinf.ads
<s-tasinf-tru64.ads \
1114 s-taspri.ads
<s-taspri-tru64.ads \
1115 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1116 s-traceb.adb
<s-traceb-mastop.adb \
1117 g-soccon.ads
<g-soccon-tru64.ads \
1118 system.ads
<system-tru64.ads
1120 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-tru64.adb
1123 SYMLIB
= $(ADDR2LINE_SYMLIB
)
1124 THREADSLIB
= -lpthread
-lmach
-lexc
-lrt
1125 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1126 GNATLIB_SHARED
= gnatlib-shared-default
1127 LIBRARY_VERSION
:= $(LIB_VERSION
)
1130 ifeq ($(strip $(filter-out alpha
% ia64 dec hp vms
% openvms
% alphavms
%,$(host
))),)
1135 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1142 @ gnu
:[bin
]vmssymvec
$<
1145 ifeq ($(strip $(filter-out alpha
% ia64 dec hp vms
% openvms
% alphavms
%,$(targ
))),)
1146 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1147 LIBGNAT_TARGET_PAIRS_AUX1
= \
1148 s-auxdec.ads
<5qauxdec.ads \
1149 s-crtl.ads
<s-crtl-vms.ads \
1150 s-osinte.adb
<s-osinte-vms-ia64.adb \
1151 s-osinte.ads
<s-osinte-vms-ia64.ads \
1152 system.ads
<5qsystem.ads
1154 ifeq ($(strip $(filter-out alpha
% dec vms
% openvms
% alphavms
%,$(targ
))),)
1155 LIBGNAT_TARGET_PAIRS_AUX1
= \
1156 s-crtl.ads
<s-crtl-vms.ads \
1157 s-osinte.adb
<s-osinte-vms.adb \
1158 s-osinte.ads
<s-osinte-vms.ads \
1159 system.ads
<system-vms-zcx.ads
1162 ifeq ($(strip $(filter-out express EXPRESS
,$(THREAD_KIND
))),)
1163 LIBGNAT_TARGET_PAIRS_AUX2
= \
1164 s-parame.ads
<s-parame-vms-restrict.ads
1166 LIBGNAT_TARGET_PAIRS_AUX2
= \
1167 s-parame.ads
<s-parame-vms.ads
1170 LIBGNAT_TARGET_PAIRS
= \
1171 a-caldel.adb
<a-caldel-vms.adb \
1172 a-calend.adb
<a-calend-vms.adb \
1173 a-calend.ads
<a-calend-vms.ads \
1174 a-dirval.adb
<a-dirval-vms.adb \
1175 a-excpol.adb
<a-excpol-abort.adb \
1176 a-intnam.ads
<a-intnam-vms.ads \
1177 a-numaux.ads
<a-numaux-vms.ads \
1178 g-expect.adb
<g-expect-vms.adb \
1179 g-soccon.ads
<g-soccon-vms.adb \
1180 g-socthi.ads
<g-socthi-vms.ads \
1181 g-socthi.adb
<g-socthi-vms.adb \
1182 g-trasym.adb
<g-trasym-vms.adb \
1183 i-cstrea.adb
<i-cstrea-vms.adb \
1184 i-cpp.adb
<i-cpp-vms.adb \
1185 interfac.ads
<interfac-vms.ads \
1186 s-asthan.adb
<s-asthan-vms.adb \
1187 s-inmaop.adb
<s-inmaop-vms.adb \
1188 s-interr.adb
<s-interr-vms.adb \
1189 s-intman.adb
<s-intman-vms.adb \
1190 s-intman.ads
<s-intman-vms.ads \
1191 s-osprim.adb
<s-osprim-vms.adb \
1192 s-osprim.ads
<s-osprim-vms.ads \
1193 s-taprop.adb
<s-taprop-vms.adb \
1194 s-taspri.ads
<s-taspri-vms.ads \
1195 s-tpopsp.adb
<s-tpopsp-posix.adb \
1196 s-tpopde.adb
<s-tpopde-vms.adb \
1197 s-tpopde.ads
<s-tpopde-vms.ads \
1198 s-traent.adb
<s-traent-vms.adb \
1199 s-traent.ads
<s-traent-vms.ads \
1200 s-vaflop.adb
<s-vaflop-vms.adb \
1201 $(LIBGNAT_TARGET_PAIRS_AUX1
) \
1202 $(LIBGNAT_TARGET_PAIRS_AUX2
)
1204 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vms.adb
1206 GNATLIB_SHARED
=gnatlib-shared-vms
1207 ifeq ($(strip $(filter-out alpha
% dec vms
% openvms
% alphavms
%,$(targ
))),)
1208 EXTRA_LIBGNAT_SRCS
=vmshandler.asm
1209 EXTRA_LIBGNAT_OBJS
=vmshandler.o
1211 EXTRA_GNATRTL_TASKING_OBJS
=s-tpopde.o
1213 ..
/..
/gnatlbr
$(exeext
) \
1214 ,,/..
/gnatsym
$(exeext
)
1215 # This command transforms (YYYYMMDD) into YY,MMDD
1216 GSMATCH_VERSION
:= $(shell grep
"^ *Gnat_Static_Version_String" $(fsrcpfx
)gnatvsn.ads | sed
-e
's/.*(\(.*\)).*/\1/' -e
's/\(..\)\(..\)\(....\)/\2,\3/')
1217 TOOLS_LIBS_LO
:= --for-linker
=sys
\\$$\
$$library:trace.exe
1218 LIBRARY_VERSION
:= $(subst .
,_
,$(LIB_VERSION
))
1221 ifeq ($(strip $(filter-out cygwin32
% mingw32
% pe
,$(osys
))),)
1222 LIBGNAT_TARGET_PAIRS
= \
1223 a-calend.adb
<a-calend-mingw.adb \
1224 a-dirval.adb
<a-dirval-mingw.adb \
1225 a-excpol.adb
<a-excpol-abort.adb \
1226 a-intnam.ads
<a-intnam-mingw.ads \
1227 a-numaux.adb
<a-numaux-x86.adb \
1228 a-numaux.ads
<a-numaux-x86.ads \
1229 s-gloloc.adb
<s-gloloc-mingw.adb \
1230 s-inmaop.adb
<s-inmaop-dummy.adb \
1231 s-interr.adb
<s-interr-sigaction.adb \
1232 s-intman.adb
<s-intman-mingw.adb \
1233 s-mastop.adb
<s-mastop-x86.adb \
1234 s-memory.adb
<s-memory-mingw.adb \
1235 s-osinte.ads
<s-osinte-mingw.ads \
1236 s-osprim.adb
<s-osprim-mingw.adb \
1237 s-taprop.adb
<s-taprop-mingw.adb \
1238 s-taspri.ads
<s-taspri-mingw.ads \
1239 g-socthi.ads
<g-socthi-mingw.ads \
1240 g-socthi.adb
<g-socthi-mingw.adb \
1241 g-soccon.ads
<g-soccon-mingw.ads \
1242 g-soliop.ads
<g-soliop-mingw.ads \
1243 system.ads
<system-mingw.ads
1245 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-mingw.adb
1247 SYMLIB
= $(ADDR2LINE_SYMLIB
)
1249 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1250 EXTRA_GNATTOOLS
= ..
/..
/gnatdll
$(exeext
)
1251 EXTRA_GNATMAKE_OBJS
= mdll.o mdll-utl.o mdll-fil.o
1252 EXTRA_GNATRTL_NONTASKING_OBJS
= g-regist.o
1254 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT auto-import
1255 # support for array/record will be done.
1256 GNATLIB_SHARED
= gnatlib-shared-win32
1257 LIBRARY_VERSION
:= $(LIB_VERSION
)
1260 ifeq ($(strip $(filter-out %ia64 linux
%,$(arch
) $(osys
))),)
1261 LIBGNAT_TARGET_PAIRS
= \
1262 a-intnam.ads
<a-intnam-linux.ads \
1263 s-inmaop.adb
<s-inmaop-posix.adb \
1264 s-intman.adb
<s-intman-posix.adb \
1265 s-osinte.ads
<s-osinte-linux.ads \
1266 s-osinte.adb
<s-osinte-posix.adb \
1267 s-osprim.adb
<s-osprim-posix.adb \
1268 s-taprop.adb
<s-taprop-linux.adb \
1269 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1270 s-taspri.ads
<s-taspri-linux.ads \
1271 system.ads
<s-osinte-linux-ia64.ads
1273 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-linux.adb
1275 THREADSLIB
=-lpthread
1276 GNATLIB_SHARED
=gnatlib-shared-dual
1277 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1278 LIBRARY_VERSION
:= $(LIB_VERSION
)
1281 ifeq ($(strip $(filter-out %x86_64 linux
%,$(arch
) $(osys
))),)
1282 LIBGNAT_TARGET_PAIRS
= \
1283 a-intnam.ads
<a-intnam-linux.ads \
1284 a-numaux.adb
<a-numaux-x86.adb \
1285 a-numaux.ads
<a-numaux-x86.ads \
1286 s-inmaop.adb
<s-inmaop-posix.adb \
1287 s-intman.adb
<s-intman-posix.adb \
1288 s-osinte.ads
<s-osinte-linux.ads \
1289 s-osinte.adb
<s-osinte-posix.adb \
1290 s-osprim.adb
<s-osprim-posix.adb \
1291 s-taprop.adb
<s-taprop-linux.adb \
1292 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1293 s-taspri.ads
<s-taspri-linux.ads \
1294 system.ads
<system-linux-x86_64.ads
1296 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-linux.adb
1297 SYMLIB
= $(ADDR2LINE_SYMLIB
)
1298 THREADSLIB
=-lpthread
1299 GNATLIB_SHARED
=gnatlib-shared-dual
1301 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1302 LIBRARY_VERSION
:= $(LIB_VERSION
)
1305 ifeq ($(strip $(filter-out powerpc darwin
%,$(arch
) $(osys
))),)
1306 LIBGNAT_TARGET_PAIRS
= \
1307 a-intnam.ads
<a-intnam-darwin.ads \
1308 s-inmaop.adb
<s-inmaop-posix.adb \
1309 s-intman.adb
<s-intman-posix.adb \
1310 s-osinte.adb
<s-osinte-darwin.adb \
1311 s-osinte.ads
<s-osinte-darwin.ads \
1312 s-osprim.adb
<s-osprim-posix.adb \
1313 s-taprop.adb
<s-taprop-posix.adb \
1314 s-taspri.ads
<s-taspri-posix.ads \
1315 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1316 g-soccon.ads
<g-soccon-aix.ads \
1317 system.ads
<system-darwin-ppc.ads
1320 # The runtime library for gnat comprises two directories. One contains the
1321 # Ada source files that the compiler (gnat1) needs -- these files are listed
1322 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1323 # corresponding .ali files for the parts written in Ada, libgnat.a for
1324 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1325 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1326 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1327 # go into the directory. The pthreads emulation is built in the threads
1328 # subdirectory and copied.
1329 LIBGNAT_SRCS
= ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1330 errno.c exit.c cal.c ctrl_c.c \
1331 raise.h raise.c sysdep.c aux-io.c init.c \
1332 final.c tracebak.c tb-alvms.c tb-alvxw.c expect.c mkdir.c socket.c \
1333 $(EXTRA_LIBGNAT_SRCS
)
1335 LIBGNAT_OBJS
= adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o \
1336 raise.o sysdep.o aux-io.o init.o cal.o final.o \
1337 tracebak.o expect.o mkdir.o socket.o
$(EXTRA_LIBGNAT_OBJS
)
1339 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1340 # the library installation will change and there will be a
1341 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1342 # from ADA_INCLUDE_SRCS.
1344 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1345 # the following include file:
1347 include $(fsrcdir
)/Makefile.rtl
1349 GNATRTL_OBJS
= $(GNATRTL_NONTASKING_OBJS
) $(GNATRTL_TASKING_OBJS
) \
1350 g-trasym.o memtrack.o
1352 # Default run time files
1355 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1356 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1357 sequenio.ads system.ads Makefile.prolog Makefile.generic \
1359 a-
*.adb a-
*.ads g-
*.ad? i-
*.ad? \
1360 s-
[a-o
]*.adb s-
[p-z
]*.adb \
1361 s-
[a-o
]*.ads s-
[p-z
]*.ads
1363 LIBGNAT
=..
/rts
/libgnat.a
1364 TOOLS_FLAGS_TO_PASS
= \
1366 "CFLAGS=$(CFLAGS)" \
1367 "LDFLAGS=$(LDFLAGS)" \
1368 "ADAFLAGS=$(ADAFLAGS)" \
1369 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
1370 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
1371 "libsubdir=$(libsubdir)" \
1372 "exeext=$(exeext)" \
1373 "fsrcdir=$(fsrcdir)" \
1374 "srcdir=$(fsrcdir)" \
1375 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
1376 "GNATMAKE=$(GNATMAKE)" \
1377 "GNATLINK=$(GNATLINK)" \
1378 "GNATBIND=$(GNATBIND)"
1380 # Build directory for the tools. Let's copy the target-dependent
1381 # sources using the same mechanism as for gnatlib. The other sources are
1382 # accessed using the vpath directive below
1388 -(cd tools
; $(LN_S
) ..
/sdefault.adb .
)
1389 -$(foreach PAIR
,$(TOOLS_TARGET_PAIRS
), \
1390 $(RM
) tools
/$(word 1,$(subst <, ,$(PAIR
)));\
1391 $(LN_S
) $(fsrcdir
)/$(word 2,$(subst <, ,$(PAIR
))) \
1392 tools
/$(word 1,$(subst <, ,$(PAIR
)));)
1393 touch ..
/stamp-tools
1395 # when compiling the tools, the runtime has to be first on the path so that
1396 # it hides the runtime files lying with the rest of the sources
1397 ifeq ($(TOOLSCASE
),native
)
1398 vpath
%.ads ..
/rts ..
/
1399 vpath
%.adb ..
/rts ..
/
1400 vpath
%.c ..
/rts ..
/
1401 vpath
%.h ..
/rts ..
/
1404 # in the cross tools case, everything is compiled with the native
1405 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1406 ifeq ($(TOOLSCASE
),cross
)
1413 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
1414 # reasons: gnatmake should be built with a recent compiler, a recent compiler
1415 # may not generate ALI files compatible with an old gnatmake so it is important
1416 # to be able to build gnatmake without a version of gnatmake around. Once
1417 # everything has been compiled once, gnatmake can be recompiled with itself
1418 # (see target gnattools1-re)
1419 gnattools1
: ..
/stamp-tools ..
/stamp-gnatlib
1420 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
1422 ..
/..
/gnatmake
$(exeext
) ..
/..
/gnatlink
$(exeext
) ..
/..
/gnatbl
$(exeext
)
1424 # gnatmake/link can be built with recent gnatmake/link if they are available.
1425 # This is especially convenient for building cross tools or for rebuilding
1426 # the tools when the original bootstrap has already be done.
1427 gnattools1-re
: ..
/stamp-tools
1428 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
1429 TOOLSCASE
=cross INCLUDES
="" gnatmake-re gnatlink-re
1431 # these tools are built with gnatmake & are common to native and cross
1432 gnattools2
: ..
/stamp-tools
1433 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
1435 ..
/..
/gnatchop
$(exeext
) ..
/..
/gnat
$(exeext
) ..
/..
/gnatkr
$(exeext
) \
1436 ..
/..
/gnatls
$(exeext
) ..
/..
/gnatprep
$(exeext
) \
1437 ..
/..
/gnatxref
$(exeext
) \
1438 ..
/..
/gnatfind
$(exeext
) ..
/..
/gnatname
$(exeext
) \
1439 ..
/..
/gnatclean
$(exeext
) ..
/..
/gprmake
$(exeext
) \
1440 ..
/..
/gprcmd
$(exeext
) ..
/..
/gpr2make
$(exeext
)
1442 # These tools are only built for the native version.
1443 gnattools3
: ..
/stamp-tools
1444 # $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
1445 # TOOLSCASE=native top_builddir=../../.. \
1446 # ../../gnatmem$(exeext) $(EXTRA_GNATTOOLS)
1448 # those tools are only built for the cross version
1449 gnattools4
: ..
/stamp-tools
1450 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
1451 TOOLSCASE
=cross top_buildir
=..
/..
/.. \
1452 ..
/..
/vxaddr2line
$(exeext
)
1454 ..
/..
/gnatchop
$(exeext
): ..
/stamp-tools
1455 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatchop
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1456 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatchop
1457 $(GNATLINK
) -v gnatchop
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1460 ..
/..
/gnat
$(exeext
): ..
/stamp-tools
1461 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatcmd
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1462 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatcmd
1463 $(GNATLINK
) -v gnatcmd
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS
)
1465 ..
/..
/gnatkr
$(exeext
): ..
/stamp-tools
1466 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatkr
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1467 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatkr
1468 $(GNATLINK
) -v gnatkr
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS
)
1470 ..
/..
/gnatls
$(exeext
): ..
/stamp-tools
1471 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatls
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1472 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatls
1473 $(GNATLINK
) -v gnatls
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS
)
1475 ..
/..
/gnatname
$(exeext
): ..
/stamp-tools
1476 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatname
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1477 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatname
1478 $(GNATLINK
) -v gnatname
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1481 ..
/..
/gprmake
$(exeext
): ..
/stamp-tools
1482 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gprmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1483 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gprmake
1484 $(GNATLINK
) -v gprmake
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1487 ..
/..
/gpr2make
$(exeext
): ..
/stamp-tools
1488 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gpr2make
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1489 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gpr2make
1490 $(GNATLINK
) -v gpr2make
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1493 ..
/..
/gnatprep
$(exeext
): ..
/stamp-tools
1494 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatprep
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1495 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatprep
1496 $(GNATLINK
) -v gnatprep
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1499 ..
/..
/gnatxref
$(exeext
): ..
/stamp-tools
1500 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatxref
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1501 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatxref
1502 $(GNATLINK
) -v gnatxref
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1505 ..
/..
/gnatfind
$(exeext
): ..
/stamp-tools
1506 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatfind
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1507 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatfind
1508 $(GNATLINK
) -v gnatfind
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1511 ..
/..
/gnatclean
$(exeext
): ..
/stamp-tools
1512 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatclean
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1513 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatclean
1514 $(GNATLINK
) -v gnatclean
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1517 ..
/..
/gnatsym
$(exeext
): ..
/stamp-tools
1518 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatsym
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1519 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatsym
1520 $(GNATLINK
) -v gnatsym
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1523 ..
/..
/gnatmem
$(exeext
): ..
/stamp-tools gmem.o
$(SYMDEPS
)
1524 ifeq ($(GMEM_LIB
),gmemlib
)
1525 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatmem
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1526 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmem
1527 $(GNATLINK
) -v gnatmem
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1528 gmem.o
$(SYMLIB
) $(TOOLS_LIBS
)
1531 ..
/..
/gnatdll
$(exeext
): ..
/stamp-tools
1532 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatdll
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1533 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) $(GNATBIND_FLAGS
) gnatdll
1534 $(GNATLINK
) -v gnatdll
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1537 ..
/..
/gprcmd
$(exeext
): ..
/stamp-tools
1538 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gprcmd
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1539 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gprcmd
1540 $(GNATLINK
) -v gprcmd
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS
)
1542 ..
/..
/vxaddr2line
$(exeext
): ..
/stamp-tools
1543 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vxaddr2line
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1544 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vxaddr2line
1545 $(GNATLINK
) -v vxaddr2line
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" $(CLIB
)
1547 gnatmake-re
: ..
/stamp-tools link.o
1548 $(GNATMAKE
) $(ADA_INCLUDES
) -u sdefault
--GCC
="$(CC) $(MOST_ADA_FLAGS)"
1549 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1550 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmake
1551 $(GNATLINK
) -v gnatmake
-o ..
/..
/gnatmake
$(exeext
) \
1552 --GCC
="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS
)
1554 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1555 # with the former version of gnatlink itself which cannot override itself.
1556 gnatlink-re
: ..
/stamp-tools link.o
1557 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlink
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1558 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlink
1559 $(GNATLINK
) -v gnatlink
-o ..
/..
/gnatlinknew
$(exeext
) \
1560 --GCC
="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS
)
1561 $(MV
) ..
/..
/gnatlinknew
$(exeext
) ..
/..
/gnatlink
$(exeext
)
1563 # Needs to be built with CC=gcc
1564 # Since the RTL should be built with the latest compiler, remove the
1565 # stamp target in the parent directory whenever gnat1 is rebuilt
1567 # Likewise for the tools
1568 ..
/..
/gnatmake
$(exeext
): $(P
) b_gnatm.o link.o
$(GNATMAKE_OBJS
)
1569 $(CC
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatm.o
$(GNATMAKE_OBJS
) \
1572 ..
/..
/gnatlink
$(exeext
): $(P
) b_gnatl.o link.o
$(GNATLINK_OBJS
)
1573 $(CC
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatl.o
$(GNATLINK_OBJS
) \
1576 ..
/..
/gnatbl
$(exeext
): gnatbl.o
1577 $(CC
) -o
$@
$(ALL_CFLAGS
) $(LDFLAGS
) gnatbl.o
$(TOOLS_LIBS
)
1579 gnatbl.o
: gnatbl.c adaint.h
1580 $(CC
) $(ALL_CFLAGS
) $(INCLUDES
) -c
$< $(OUTPUT_OPTION
)
1583 @if
[ ! -f stamp-gnatlib
] ; \
1585 $(ECHO
) You must first build the GNAT library
: make gnatlib
; \
1591 install-gnatlib
: ..
/stamp-gnatlib
1592 # Create the directory before deleting it, in case the directory is
1593 # a list of directories (as it may be on VMS). This ensures we are
1594 # deleting the right one.
1595 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1596 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1597 -$(MKDIR
) $(DESTDIR
)$(ADA_SHARE_MAKE_DIR
)
1598 $(RMDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1599 $(RMDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1600 $(RMDIR
) $(DESTDIR
)$(ADA_SHARE_MAKE_DIR
)
1601 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1602 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1603 -$(MKDIR
) $(DESTDIR
)$(ADA_SHARE_MAKE_DIR
)
1604 -$(INSTALL_DATA
) rts
/Makefile.prolog
$(DESTDIR
)$(ADA_SHARE_MAKE_DIR
)
1605 -$(INSTALL_DATA
) rts
/Makefile.generic
$(DESTDIR
)$(ADA_SHARE_MAKE_DIR
)
1606 for file in rts
/*.ali
; do \
1607 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1609 -$(INSTALL_DATA
) rts
/g-trasym
$(objext
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1610 -cd rts
; for file in
*$(arext
);do \
1611 $(INSTALL_DATA
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1612 $(RANLIB
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/$$file; \
1614 # Install the shared libraries, if any, using $(INSTALL) instead
1615 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1616 # for shared libraries on some targets, e.g. on HP-UX where the x
1617 # permission is required.
1618 for file in gnat gnarl
; do \
1619 if
[ -f rts
/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) ]; then \
1620 $(INSTALL
) rts
/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1621 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1623 if
[ -f rts
/lib
$${file}$(soext
) ]; then \
1624 $(LN_S
) lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1625 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/lib
$${file}$(soext
); \
1628 # This copy must be done preserving the date on the original file.
1629 for file in rts
/*.adb rts
/*.ads
; do \
1630 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_INCLUDE_DIR
); \
1632 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.adb
1633 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.ads
1637 $(RM
) rts
/s-
*$(objext
)
1639 $(RM
) rts
/a-
*$(objext
)
1641 $(RM
) rts
/*$(objext
)
1644 touch ..
/stamp-gnatlib2
1645 $(RM
) ..
/stamp-gnatlib
1647 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1648 # successive target commands. Although the Gnu make documentation
1649 # implies this is true on all systems, I suspect it may not be, So care
1650 # has been taken to allow a sed script to look for ";)" and substitue
1651 # for ";" the appropriate character in the range of lines below
1652 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1654 # GNULLI Begin ###########################################################
1656 ..
/stamp-gnatlib1
: Makefile ..
/stamp-gnatlib2
1660 # Copy target independent sources
1661 $(foreach f
,$(ADA_INCLUDE_SRCS
) $(LIBGNAT_SRCS
), \
1662 $(LN_S
) $(fsrcpfx
)$(f
) rts
;) true
1663 # Remove files to be replaced by target dependent sources
1664 $(RM
) $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
1665 rts
/$(word 1,$(subst <, ,$(PAIR
))))
1666 # Copy new target dependent sources
1667 $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
1668 $(LN_S
) $(fsrcpfx
)$(word 2,$(subst <, ,$(PAIR
))) \
1669 rts
/$(word 1,$(subst <, ,$(PAIR
)));)
1670 $(RM
) ..
/stamp-gnatlib
1671 touch ..
/stamp-gnatlib1
1673 # GNULLI End #############################################################
1675 # Don't use semicolon separated shell commands that involve list expansions.
1676 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1677 # line lengths in excess of 256 characters.
1678 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1679 # is guaranteed to overflow the buffer.
1681 gnatlib
: ..
/stamp-gnatlib1 ..
/stamp-gnatlib2
1682 $(MAKE
) -C rts CC
="../../xgcc -B../../" \
1683 INCLUDES
="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1684 CFLAGS
="$(GNATLIBCFLAGS_FOR_C)" \
1686 -f ..
/Makefile
$(LIBGNAT_OBJS
)
1687 $(MAKE
) -C rts CC
="../../xgcc -B../../" \
1689 CFLAGS
="$(GNATLIBCFLAGS)" \
1690 ADAFLAGS
="$(GNATLIBFLAGS)" \
1694 $(RM
) rts
/libgnat
$(arext
) rts
/libgnarl
$(arext
)
1695 $(AR
) $(AR_FLAGS
) rts
/libgnat
$(arext
) \
1696 $(addprefix rts
/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
1697 ifneq ($(PREFIX_OBJS
),)
1698 $(AR
) $(AR_FLAGS
) rts
/libgccprefix
$(arext
) $(PREFIX_OBJS
);
1700 -$(RANLIB
) rts
/libgnat
$(arext
)
1701 $(AR
) $(AR_FLAGS
) rts
/libgnarl
$(arext
) \
1702 $(addprefix rts
/,$(GNATRTL_TASKING_OBJS
))
1703 -$(RANLIB
) rts
/libgnarl
$(arext
)
1704 ifeq ($(GMEM_LIB
),gmemlib
)
1705 $(AR
) $(AR_FLAGS
) rts
/libgmem
$(arext
) rts
/memtrack.o
1706 -$(RANLIB
) rts
/libgmem
$(arext
)
1708 $(CHMOD
) a-wx rts
/*.ali
1709 touch ..
/stamp-gnatlib
1711 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
1712 gnatlib-shared-default
:
1713 $(MAKE
) $(FLAGS_TO_PASS
) \
1714 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1715 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1716 THREAD_KIND
="$(THREAD_KIND)" \
1718 $(RM
) rts
/libgna
*$(soext
)
1719 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
1720 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1721 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
1722 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1724 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
1725 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1726 $(GNATRTL_TASKING_OBJS
) \
1727 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1729 cd rts
; $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1731 cd rts
; $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1734 gnatlib-shared-dual
:
1735 $(MAKE
) $(FLAGS_TO_PASS
) \
1736 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1737 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1738 THREAD_KIND
="$(THREAD_KIND)" \
1739 gnatlib-shared-default
1740 $(MV
) rts
/libgna
*$(soext
) .
1741 $(RM
) ..
/stamp-gnatlib2
1742 $(MAKE
) $(FLAGS_TO_PASS
) \
1743 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1744 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1745 THREAD_KIND
="$(THREAD_KIND)" \
1747 $(MV
) libgna
*$(soext
) rts
1749 gnatlib-shared-dual-win32
:
1750 $(MAKE
) $(FLAGS_TO_PASS
) \
1751 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1752 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1753 THREAD_KIND
="$(THREAD_KIND)" \
1754 gnatlib-shared-win32
1755 $(MV
) rts
/libgna
*$(soext
) .
1756 $(RM
) ..
/stamp-gnatlib2
1757 $(MAKE
) $(FLAGS_TO_PASS
) \
1758 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1759 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1760 THREAD_KIND
="$(THREAD_KIND)" \
1762 $(MV
) libgna
*$(soext
) rts
1764 # ??? we need to add the option to support auto-import of arrays/records to
1765 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
1766 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
1768 gnatlib-shared-win32
:
1769 $(MAKE
) $(FLAGS_TO_PASS
) \
1770 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1771 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1772 THREAD_KIND
="$(THREAD_KIND)" \
1774 $(RM
) rts
/libgna
*$(soext
)
1775 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
1776 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1777 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
1778 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) $(MISCLIB
)
1779 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
1780 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1781 $(GNATRTL_TASKING_OBJS
) \
1782 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1783 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
1786 $(MAKE
) $(FLAGS_TO_PASS
) \
1787 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1788 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1789 THREAD_KIND
="$(THREAD_KIND)" \
1791 $(RM
) rts
/libgna
*$(soext
)
1792 cd rts
&& echo
"case_sensitive=yes" > SYMVEC_
$$$$.opt
&& \
1793 objdump
--syms
$(LIBGNAT_OBJS
) $(GNATRTL_NONTASKING_OBJS
) | \
1794 $(SHLIB_SYMVEC
) >> SYMVEC_
$$$$.opt
&& \
1795 echo
"case_sensitive=NO" >> SYMVEC_
$$$$.opt
&& \
1796 ..
/..
/xgcc
-g
-B..
/..
/ -nostartfiles
-shared
-shared-libgcc \
1797 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) libgnat.a \
1798 sys\
$$library:trace.exe \
1799 --for-linker
=/noinform \
1800 --for-linker
=SYMVEC_
$$$$.opt \
1801 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
1802 cd rts
&& echo
"case_sensitive=yes" > SYMVEC_
$$$$.opt
&& \
1803 objdump
--syms
$(GNATRTL_TASKING_OBJS
) | \
1804 $(SHLIB_SYMVEC
) >> SYMVEC_
$$$$.opt
&& \
1805 echo
"case_sensitive=NO" >> SYMVEC_
$$$$.opt
&& \
1806 ..
/..
/xgcc
-g
-B..
/..
/ -nostartfiles
-shared
-shared-libgcc \
1807 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1808 libgnarl.a libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1809 sys\
$$library:trace.exe \
1810 --for-linker
=/noinform \
1811 --for-linker
=SYMVEC_
$$$$.opt \
1812 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
1815 $(MAKE
) $(FLAGS_TO_PASS
) \
1816 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1817 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1818 THREAD_KIND
="$(THREAD_KIND)" \
1819 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" \
1822 gnatlib-sjlj
: ..
/stamp-gnatlib1
1823 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' rts
/system.ads
> rts
/s.ads
1824 $(MV
) rts
/s.ads rts
/system.ads
1825 $(MAKE
) $(FLAGS_TO_PASS
) \
1826 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1827 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1828 THREAD_KIND
="$(THREAD_KIND)" \
1829 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
1831 gnatlib-zcx
: ..
/stamp-gnatlib1
1832 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' rts
/system.ads
> rts
/s.ads
1833 $(MV
) rts
/s.ads rts
/system.ads
1834 $(MAKE
) $(FLAGS_TO_PASS
) \
1835 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1836 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1837 THREAD_KIND
="$(THREAD_KIND)" \
1838 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
1840 # .s files for cross-building
1842 make
$(GNAT1_ADA_OBJS
) CC
="gcc -B../stage1/" CFLAGS
="-S -gnatp"
1844 # Compiling object files from source files.
1846 # Note that dependencies on obstack.h are not written
1847 # because that file is not part of GCC.
1848 # Dependencies on gvarargs.h are not written
1849 # because all that file does, when not compiling with GCC,
1850 # is include the system varargs.h.
1852 b_gnatl.c
: $(GNATLINK_OBJS
)
1853 $(GNATBIND
) -C
$(ADA_INCLUDES
) -o b_gnatl.c gnatlink.ali
1854 b_gnatl.o
: b_gnatl.c
1856 b_gnatm.c
: $(GNATMAKE_OBJS
)
1857 $(GNATBIND
) -C
$(ADA_INCLUDES
) -o b_gnatm.c gnatmake.ali
1858 b_gnatm.o
: b_gnatm.c
1860 ADA_INCLUDE_DIR
= $(libsubdir
)/adainclude
1861 ADA_RTL_OBJ_DIR
= $(libsubdir
)/adalib
1862 ADA_SHARE_MAKE_DIR
= $(prefix)/share
/gnat
1864 # force no sibling call optimization on s-traceb.o so the number of stack
1865 # frames to be skipped when computing a call chain is not modified by
1866 # optimization. However we can do that only when building the runtime
1867 # (not the compiler) because the -fno-optimize-sibling-calls exists
1870 ifneq (,$(findstring xgcc
,$(CC
)))
1871 NO_SIBLING_ADAFLAGS
=-fno-optimize-sibling-calls
1873 NO_SIBLING_ADAFLAGS
=
1876 s-traceb.o
: s-traceb.adb
1877 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) \
1878 $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) \
1881 adadecode.o
: adadecode.c adadecode.h
1885 deftarg.o
: deftarg.c
1887 exit.o
: raise.h exit.c
1889 final.o
: raise.h final.c
1897 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(RT_FLAGS
) \
1898 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
1900 init.o
: init.c ada.h types.h raise.h
1901 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(RT_FLAGS
) \
1902 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
1904 raise.o
: raise.c raise.h
1905 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(RT_FLAGS
) \
1906 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
1908 # Need to keep the frame pointer in this file to pop the stack properly on
1910 tracebak.o
: tracebak.c tb-alvms.c tb-alvxw.c
1911 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) $(INCLUDES
) \
1912 -fno-omit-frame-pointer
$< $(OUTPUT_OPTION
)
1914 # In GNU Make, ignore whether `stage*' exists.
1915 .PHONY
: stage1 stage2 stage3 stage4
clean realclean TAGS bootstrap
1916 .PHONY
: risky-stage1 risky-stage2 risky-stage3 risky-stage4
1920 # Gnatlbr is only used on VMS
1922 ..
/..
/gnatlbr
$(exeext
): ..
/..
/prefix.o
1923 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlbr
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1924 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlbr
1925 $(GNATLINK
) -v gnatlbr
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \