1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2005 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 2, or (at your option)
11 #GCC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING. If not, write to
18 #the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19 #Boston, MA 02110-1301, USA.
21 # The makefile built from this file lives in the language subdirectory.
22 # Its purpose is to provide support for:
24 # 1) recursion where necessary, and only then (building .o's), and
25 # 2) building and debugging cc1 from the language subdirectory, and
28 # The parent makefile handles all other chores, with help from the
29 # language makefile fragment, of course.
31 # The targets for external use are:
32 # all, TAGS, ???mostlyclean, ???clean.
34 # This makefile will only work with Gnu make.
35 # The rules are written assuming a minimum subset of tools are available:
38 # MAKE: Only Gnu make will work.
39 # MV: Must accept (at least) one, maybe wildcard, source argument,
40 # a file or directory destination, and support creation/
41 # modification date preservation. Gnu mv -f works.
42 # RM: Must accept an arbitrary number of space separated file
43 # arguments, or one wildcard argument. Gnu rm works.
44 # RMDIR: Must delete a directory and all its contents. Gnu rm -rf works.
45 # ECHO: Must support command line redirection. Any Unix-like
46 # shell will typically provide this, otherwise a custom version
47 # is trivial to write.
49 # MKDIR: Gnu mkdir works.
50 # CHMOD: Gnu chmod works.
51 # true: Does nothing and returns a normal successful return code.
52 # pwd: Prints the current directory on stdout.
53 # cd: Change directory.
56 # BISON: Gnu bison works.
57 # FLEX: Gnu flex works.
58 # Other miscellaneous tools for obscure targets.
60 # Tell GNU make 3.79 not to run this directory in parallel.
61 # Not all of the required dependencies are present.
64 # Suppress smart makes who think they know how to automake Yacc files
67 # Variables that exist for you to override.
68 # See below for how to change them for certain systems.
70 # Various ways of specifying flags for compilations:
71 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
72 # BOOT_CFLAGS is the value of CFLAGS to pass
73 # to the stage2 and stage3 compilations
74 # XCFLAGS is used for most compilations but not when using the GCC just built.
77 BOOT_CFLAGS
= -O
$(CFLAGS
)
78 # These exists to be overridden by the x-* and t-* files, respectively.
109 RANLIB_FLAGS
= @ranlib_flags@
112 PWD_COMMAND
= $${PWDCMD-pwd
}
113 # How to copy preserving the date
114 INSTALL_DATA_DATE
= cp
-p
117 GNATBIND
= $(STAGE_PREFIX
)gnatbind
118 GNATBIND_FLAGS
= -static
-x
120 ADAFLAGS
= -W
-Wall
-gnatpg
-gnata
121 SOME_ADAFLAGS
=-gnata
122 FORCE_DEBUG_ADAFLAGS
= -g
123 GNATLIBFLAGS
= -gnatpg
-nostdinc
124 GNATLIBCFLAGS
= -g
-O2
125 GNATLIBCFLAGS_FOR_C
= $(GNATLIBCFLAGS
) $(TARGET_LIBGCC2_CFLAGS
) -fexceptions \
127 ALL_ADA_CFLAGS
= $(X_ADA_CFLAGS
) $(T_ADA_CFLAGS
) $(ADA_CFLAGS
)
128 ALL_ADAFLAGS
= $(CFLAGS
) $(ALL_ADA_CFLAGS
) $(X_ADAFLAGS
) $(T_ADAFLAGS
) \
130 MOST_ADAFLAGS
= $(CFLAGS
) $(ALL_ADA_CFLAGS
) $(X_ADAFLAGS
) $(T_ADAFLAGS
) \
136 SYMDEPS
= $(LIBINTL_DEP
)
137 OUTPUT_OPTION
= @OUTPUT_OPTION@
146 # Define this as & to perform parallel make on a Sequent.
147 # Note that this has some bugs, and it seems currently necessary
148 # to compile all the gen* files first by hand to avoid erroneous results.
151 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
152 # It omits XCFLAGS, and specifies -B./.
153 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
154 GCC_CFLAGS
= $(INTERNAL_CFLAGS
) $(X_CFLAGS
) $(T_CFLAGS
) $(CFLAGS
)
156 # Tools to use when building a cross-compiler.
157 # These are used because `configure' appends `cross-make'
158 # to the makefile when making a cross-compiler.
160 # We don't use cross-make. Instead we use the tools from the build tree,
161 # if they are available.
162 # program_transform_name and objdir are set by configure.in.
163 program_transform_name
=
166 target_alias
=@target_alias@
168 xmake_file
= @xmake_file@
169 tmake_file
= @tmake_file@
170 host_canonical
=@host@
171 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
172 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
174 # Directory where sources are, from where we are.
178 fsrcdir
:= $(shell cd
$(srcdir);${PWD_COMMAND})
179 fsrcpfx
:= $(shell cd
$(srcdir);${PWD_COMMAND})/
180 fcurdir
:= $(shell ${PWD_COMMAND})
181 fcurpfx
:= $(shell ${PWD_COMMAND})/
183 # Top build directory, relative to here.
186 # Internationalization library.
188 LIBINTL_DEP
= @LIBINTL_DEP@
190 # Any system libraries needed just for GNAT.
191 SYSLIBS
= @GNAT_LIBEXC@
193 # List of extra object files linked in with various programs.
194 EXTRA_GNATTOOLS_OBJS
= ..
/..
/prefix.o ..
/..
/version.o
196 # List of target dependent sources, overridden below as necessary
199 # Type of tools build we are doing; default is not compiling tools.
202 # End of variables for you to override.
206 # This tells GNU Make version 3 not to put all variables in the environment.
209 # tmake_file and xmake_file expand to lists with entries of the form
210 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
211 # need to adjust the paths. There can't be spaces in the subst arguments
212 # or we get spurious spaces in the actual list of files to include.
215 ifneq ($(tmake_file
),)
216 include $(subst /config
,/..
/config
,$(tmake_file
))
220 ifneq ($(xmake_file
),)
221 include $(subst /config
,/..
/config
,$(xmake_file
))
224 # Now figure out from those variables how to compile and link.
226 all.indirect
: Makefile ..
/gnat1
$(exeext
)
228 # IN_GCC distinguishes between code compiled into GCC itself and other
229 # programs built during a bootstrap.
230 # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler.
231 INTERNAL_CFLAGS
= @CROSS@
-DIN_GCC
233 # This is the variable actually used when we compile.
234 LOOSE_CFLAGS
= `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
235 ALL_CFLAGS
= $(INTERNAL_CFLAGS
) $(X_CFLAGS
) $(T_CFLAGS
) $(LOOSE_CFLAGS
) \
239 ALL_CPPFLAGS
= $(CPPFLAGS
) $(X_CPPFLAGS
) $(T_CPPFLAGS
)
241 # This is where we get libiberty.a from.
242 LIBIBERTY
= ..
/..
/libiberty
/libiberty.a
244 # How to link with both our special library facilities
245 # and the system's installed libraries.
246 LIBS
= $(LIBINTL
) $(LIBIBERTY
) $(SYSLIBS
)
247 LIBDEPS
= $(LIBINTL_DEP
) $(LIBIBERTY
)
248 # Default is no TGT_LIB; one might be passed down or something
250 TOOLS_LIBS
= $(EXTRA_GNATTOOLS_OBJS
) targext.o link.o
$(LIBGNAT
) ..
/..
/..
/libiberty
/libiberty.a
$(SYSLIBS
) $(TGT_LIB
)
252 # Specify the directories to be searched for header files.
253 # Both . and srcdir are used, in that order,
254 # so that tm.h and config.h will be found in the compilation
255 # subdirectory rather than in the source directory.
256 INCLUDES
= -I-
-I.
-I..
-I
$(srcdir) -I
$(srcdir)/..
-I
$(srcdir)/..
/config \
257 -I
$(srcdir)/..
/..
/include
259 ADA_INCLUDES
= -I-
-I.
-I
$(srcdir)
261 INCLUDES_FOR_SUBDIR
= -I.
-I..
-I..
/..
-I
$(fsrcdir
) -I
$(fsrcdir
)/..
/config \
262 -I
$(fsrcdir
)/..
/..
/include -I
$(fsrcdir
)/..
263 ADA_INCLUDES_FOR_SUBDIR
= -I.
-I
$(fsrcdir
)
265 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
268 # Say how to compile Ada programs.
269 .SUFFIXES
: .ada .adb .ads .asm
271 # Always use -I$(srcdir)/config when compiling.
273 $(CC
) -c
-x assembler
$< $(OUTPUT_OPTION
)
276 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) $(INCLUDES
) $< \
280 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
283 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
285 # how to regenerate this file
286 Makefile
: ..
/config.status
$(srcdir)/Makefile.in
$(srcdir)/..
/version.c
288 LANGUAGES
="$(CONFIG_LANGUAGES)" \
290 CONFIG_FILES
=ada
/Makefile
$(SHELL
) config.status
292 # This tells GNU make version 3 not to export all the variables
293 # defined in this file into the environment.
296 # Lists of files for various purposes.
298 GNATLINK_OBJS
= gnatlink.o \
299 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
300 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
301 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
302 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
303 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-attr-pm.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 # When using the GCC exception handling mechanism, we need to use an
353 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
357 # Default shared object option. Note that we rely on the fact that the "soname"
358 # option will always be present and last in this flag, so that we can have
359 # $(SO_OPTS)libgnat-x.xx
361 SO_OPTS
= -Wl
,-soname
,
363 # Default gnatlib-shared target.
364 # By default, equivalent to gnatlib.
365 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
366 # target when supported.
367 GNATLIB_SHARED
= gnatlib
369 # default value for gnatmake's target dependent file
372 # By default, do not distribute prefix.o (in libgccprefix), since it is only
373 # needed by external GNAT tools such as gnatdist and Glide.
374 # Override this variable on native platforms when needed.
377 # To avoid duplicate code, use this variable to set PREFIX_OBJS when needed:
378 PREFIX_REAL_OBJS
= ..
/prefix.o \
379 ..
/..
/libiberty
/concat.o \
380 ..
/..
/libiberty
/xmalloc.o \
381 ..
/..
/libiberty
/xstrdup.o \
382 ..
/..
/libiberty
/xexit.o
384 LIB_VERSION
= $(strip $(shell grep
' Library_Version :' $(fsrcpfx
)gnatvsn.ads | sed
-e
's/.*"\(.*\)".*/\1/'))
386 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
387 # $(strip STRING) removes leading and trailing spaces from STRING.
388 # If what's left is null then it's a match.
390 ifeq ($(strip $(filter-out m68k
% wrs vx
%,$(targ
))),)
391 LIBGNAT_TARGET_PAIRS
= \
392 a-intnam.ads
<a-intnam-vxworks.ads \
393 a-numaux.ads
<a-numaux-vxworks.ads \
394 s-inmaop.adb
<s-inmaop-posix.adb \
395 s-interr.adb
<s-interr-vxworks.adb \
396 s-intman.ads
<s-intman-vxworks.ads \
397 s-intman.adb
<s-intman-vxworks.adb \
398 s-osinte.adb
<s-osinte-vxworks.adb \
399 s-osinte.ads
<s-osinte-vxworks.ads \
400 s-osprim.adb
<s-osprim-vxworks.adb \
401 s-parame.ads
<s-parame-vxworks.ads \
402 s-stchop.adb
<s-stchop-vxworks.adb \
403 s-taprop.adb
<s-taprop-vxworks.adb \
404 s-taspri.ads
<s-taspri-vxworks.ads \
405 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
406 s-vxwork.ads
<s-vxwork-m68k.ads \
407 g-soccon.ads
<g-soccon-vxworks.ads \
408 g-socthi.ads
<g-socthi-vxworks.ads \
409 g-socthi.adb
<g-socthi-vxworks.adb \
410 system.ads
<system-vxworks-m68k.ads
412 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
414 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
415 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
417 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
418 LIBGNAT_TARGET_PAIRS
+= \
419 s-traces.adb
<s-traces-default.adb \
420 s-tratas.adb
<s-tratas-default.adb \
421 s-trafor.adb
<s-trafor-default.adb \
422 s-trafor.ads
<s-trafor-default.ads \
423 s-tfsetr.adb
<s-tfsetr-vxworks.adb
427 ifeq ($(strip $(filter-out powerpc
% wrs vxworks
,$(targ
))),)
428 LIBGNAT_TARGET_PAIRS
= \
429 a-intnam.ads
<a-intnam-vxworks.ads \
430 a-numaux.ads
<a-numaux-vxworks.ads \
431 s-inmaop.adb
<s-inmaop-posix.adb \
432 s-interr.adb
<s-interr-vxworks.adb \
433 s-intman.ads
<s-intman-vxworks.ads \
434 s-intman.adb
<s-intman-vxworks.adb \
435 s-osinte.ads
<s-osinte-vxworks.ads \
436 s-osprim.adb
<s-osprim-vxworks.adb \
437 s-parame.ads
<s-parame-vxworks.ads \
438 s-stchop.adb
<s-stchop-vxworks.adb \
439 s-taprop.adb
<s-taprop-vxworks.adb \
440 s-taspri.ads
<s-taspri-vxworks.ads \
441 s-vxwork.ads
<s-vxwork-ppc.ads \
442 g-soccon.ads
<g-soccon-vxworks.ads \
443 g-socthi.ads
<g-socthi-vxworks.ads \
444 g-socthi.adb
<g-socthi-vxworks.adb
446 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
448 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
449 LIBGNAT_TARGET_PAIRS
+= \
450 s-traces.adb
<s-traces-default.adb \
451 s-trafor.adb
<s-trafor-default.adb \
452 s-trafor.ads
<s-trafor-default.ads \
453 s-tratas.adb
<s-tratas-default.adb \
454 s-tfsetr.adb
<s-tfsetr-vxworks.adb
457 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
458 LIBGNAT_TARGET_PAIRS
+= \
459 s-osinte.adb
<s-osinte-vxworks-rtp.adb \
460 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
461 system.ads
<system-vxworks-ppc-rtp.ads
463 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
465 LIBGNAT_TARGET_PAIRS
+= \
466 s-osinte.adb
<s-osinte-vxworks.adb \
467 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
468 system.ads
<system-vxworks-ppc.ads
470 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
473 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
476 ifeq ($(strip $(filter-out sparc
% wrs vx
%,$(targ
))),)
477 LIBGNAT_TARGET_PAIRS
= \
478 a-intnam.ads
<a-intnam-vxworks.ads \
479 a-numaux.ads
<a-numaux-vxworks.ads \
480 s-inmaop.adb
<s-inmaop-posix.adb \
481 s-interr.adb
<s-interr-vxworks.adb \
482 s-intman.ads
<s-intman-vxworks.ads \
483 s-intman.adb
<s-intman-vxworks.adb \
484 s-osinte.adb
<s-osinte-vxworks.adb \
485 s-osinte.ads
<s-osinte-vxworks.ads \
486 s-osprim.adb
<s-osprim-vxworks.adb \
487 s-parame.ads
<s-parame-vxworks.ads \
488 s-stchop.adb
<s-stchop-vxworks.adb \
489 s-taprop.adb
<s-taprop-vxworks.adb \
490 s-taspri.ads
<s-taspri-vxworks.ads \
491 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
492 s-vxwork.ads
<s-vxwork-sparcv9.ads \
493 g-soccon.ads
<g-soccon-vxworks.ads \
494 g-socthi.ads
<g-socthi-vxworks.ads \
495 g-socthi.adb
<g-socthi-vxworks.adb \
496 system.ads
<system-vxworks-sparcv9.ads \
498 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
500 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
501 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
504 ifeq ($(strip $(filter-out %86 wrs vxworks
,$(targ
))),)
505 LIBGNAT_TARGET_PAIRS
= \
506 a-intnam.ads
<a-intnam-vxworks.ads \
507 i-vxwork.ads
<i-vxwork-x86.ads \
508 s-inmaop.adb
<s-inmaop-posix.adb \
509 s-interr.adb
<s-interr-vxworks.adb \
510 s-intman.ads
<s-intman-vxworks.ads \
511 s-intman.adb
<s-intman-vxworks.adb \
512 a-numaux.adb
<a-numaux-x86.adb \
513 a-numaux.ads
<a-numaux-x86.ads \
514 s-osinte.adb
<s-osinte-vxworks.adb \
515 s-osinte.ads
<s-osinte-vxworks.ads \
516 s-osprim.adb
<s-osprim-vxworks.adb \
517 s-parame.ads
<s-parame-vxworks.ads \
518 s-stchop.adb
<s-stchop-vxworks.adb \
519 s-taprop.adb
<s-taprop-vxworks.adb \
520 s-taspri.ads
<s-taspri-vxworks.ads \
521 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
522 s-vxwork.ads
<s-vxwork-x86.ads \
523 g-soccon.ads
<g-soccon-vxworks.ads \
524 g-socthi.ads
<g-socthi-vxworks.ads \
525 g-socthi.adb
<g-socthi-vxworks.adb \
526 system.ads
<system-vxworks-x86.ads
528 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
530 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
531 LIBGNAT_TARGET_PAIRS
+= \
532 s-traces.adb
<s-traces-default.adb \
533 s-trafor.adb
<s-trafor-default.adb \
534 s-trafor.ads
<s-trafor-default.ads \
535 s-tratas.adb
<s-tratas-default.adb \
536 s-tfsetr.adb
<s-tfsetr-vxworks.adb
539 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
540 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
543 ifeq ($(strip $(filter-out arm
% coff wrs vx
%,$(targ
))),)
544 LIBGNAT_TARGET_PAIRS
= \
545 a-intnam.ads
<a-intnam-vxworks.ads \
546 a-numaux.ads
<a-numaux-vxworks.ads \
547 s-inmaop.adb
<s-inmaop-posix.adb \
548 s-interr.adb
<s-interr-vxworks.adb \
549 s-intman.ads
<s-intman-vxworks.ads \
550 s-intman.adb
<s-intman-vxworks.adb \
551 s-osinte.adb
<s-osinte-vxworks.adb \
552 s-osinte.ads
<s-osinte-vxworks.ads \
553 s-osprim.adb
<s-osprim-vxworks.adb \
554 s-parame.ads
<s-parame-vxworks.ads \
555 s-stchop.adb
<s-stchop-vxworks.adb \
556 s-taprop.adb
<s-taprop-vxworks.adb \
557 s-taspri.ads
<s-taspri-vxworks.ads \
558 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
559 s-vxwork.ads
<s-vxwork-arm.ads \
560 g-soccon.ads
<g-soccon-vxworks.ads \
561 g-socthi.ads
<g-socthi-vxworks.ads \
562 g-socthi.adb
<g-socthi-vxworks.adb \
563 system.ads
<system-vxworks-arm.ads
565 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
567 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
568 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
571 ifeq ($(strip $(filter-out mips
% wrs vx
%,$(targ
))),)
572 LIBGNAT_TARGET_PAIRS
= \
573 a-intnam.ads
<a-intnam-vxworks.ads \
574 a-numaux.ads
<a-numaux-vxworks.ads \
575 s-inmaop.adb
<s-inmaop-posix.adb \
576 s-interr.adb
<s-interr-vxworks.adb \
577 s-intman.ads
<s-intman-vxworks.ads \
578 s-intman.adb
<s-intman-vxworks.adb \
579 s-osinte.adb
<s-osinte-vxworks.adb \
580 s-osinte.ads
<s-osinte-vxworks.ads \
581 s-osprim.adb
<s-osprim-vxworks.adb \
582 s-parame.ads
<s-parame-vxworks.ads \
583 s-stchop.adb
<s-stchop-vxworks.adb \
584 s-taprop.adb
<s-taprop-vxworks.adb \
585 s-taspri.ads
<s-taspri-vxworks.ads \
586 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
587 s-vxwork.ads
<s-vxwork-mips.ads \
588 g-soccon.ads
<g-soccon-vxworks.ads \
589 g-socthi.ads
<g-socthi-vxworks.ads \
590 g-socthi.adb
<g-socthi-vxworks.adb \
591 system.ads
<system-vxworks-mips.ads
593 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
595 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
596 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
599 # vxworksae / vxworks 653
600 ifeq ($(strip $(filter-out powerpc
% wrs vxworksae
,$(targ
))),)
601 # target pairs for kernel + vthreads runtime
602 LIBGNAT_TARGET_PAIRS
= \
603 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
604 a-intnam.ads
<a-intnam-vxworks.ads \
605 a-numaux.ads
<a-numaux-vxworks.ads \
606 a-sytaco.ads
<1asytaco.ads \
607 a-sytaco.adb
<1asytaco.adb \
608 g-io.adb
<g-io-vxworks-ppc-cert.adb \
609 g-io.ads
<g-io-vxworks-ppc-cert.ads \
610 s-inmaop.adb
<s-inmaop-posix.adb \
611 s-interr.adb
<s-interr-vxworks.adb \
612 s-intman.ads
<s-intman-vxworks.ads \
613 s-intman.adb
<s-intman-vxworks.adb \
614 s-osinte.adb
<s-osinte-vxworks.adb \
615 s-osinte.ads
<s-osinte-vxworks.ads \
616 s-osprim.adb
<s-osprim-vxworks.adb \
617 s-parame.ads
<s-parame-ae653.ads \
618 s-taprop.adb
<s-taprop-vxworks.adb \
619 s-taspri.ads
<s-taspri-vxworks.ads \
620 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
621 s-vxwork.ads
<s-vxwork-ppc.ads \
622 g-soccon.ads
<g-soccon-vxworks.ads \
623 g-socthi.ads
<g-socthi-vxworks.ads \
624 g-socthi.adb
<g-socthi-vxworks.adb \
625 system.ads
<system-vxworks-ppc-vthread.ads
627 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
629 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
630 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
632 # Extra pairs for the vthreads runtime
633 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
634 LIBGNAT_TARGET_PAIRS
+= \
635 s-thread.adb
<s-thread-ae653.adb
636 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
639 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
640 LIBGNAT_TARGET_PAIRS
+= \
641 s-traces.adb
<s-traces-default.adb \
642 s-trafor.adb
<s-trafor-default.adb \
643 s-trafor.ads
<s-trafor-default.ads \
644 s-tratas.adb
<s-tratas-default.adb \
645 s-tfsetr.adb
<s-tfsetr-vxworks.adb
649 ifeq ($(strip $(filter-out sparc sun solaris
%,$(targ
))),)
650 LIBGNAT_TARGET_PAIRS
= \
651 a-intnam.ads
<a-intnam-solaris.ads \
652 s-inmaop.adb
<s-inmaop-posix.adb \
653 s-intman.adb
<s-intman-solaris.adb \
654 s-osinte.adb
<s-osinte-solaris.adb \
655 s-osinte.ads
<s-osinte-solaris.ads \
656 s-osprim.adb
<s-osprim-solaris.adb \
657 s-parame.adb
<s-parame-solaris.adb \
658 s-taprop.adb
<s-taprop-solaris.adb \
659 s-tasinf.adb
<s-tasinf-solaris.adb \
660 s-tasinf.ads
<s-tasinf-solaris.ads \
661 s-taspri.ads
<s-taspri-solaris.ads \
662 s-tpopsp.adb
<s-tpopsp-solaris.adb \
663 g-soccon.ads
<g-soccon-solaris.ads \
664 g-soliop.ads
<g-soliop-solaris.ads \
665 system.ads
<system-solaris-sparc.ads
667 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-solaris.adb
670 THREADSLIB
= -lposix4
-lthread
671 MISCLIB
= -lposix4
-lnsl
-lsocket
673 GNATLIB_SHARED
= gnatlib-shared-dual
675 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
676 LIBRARY_VERSION
:= $(LIB_VERSION
)
678 ifeq ($(strip $(filter-out pthread PTHREAD
,$(THREAD_KIND
))),)
679 LIBGNAT_TARGET_PAIRS
= \
680 a-intnam.ads
<a-intnam-solaris.ads \
681 s-inmaop.adb
<s-inmaop-posix.adb \
682 s-intman.adb
<s-intman-posix.adb \
683 s-osinte.adb
<s-osinte-posix.adb \
684 s-osinte.ads
<s-osinte-solaris-posix.ads \
685 s-osprim.adb
<s-osprim-solaris.adb \
686 s-taprop.adb
<s-taprop-posix.adb \
687 s-taspri.ads
<s-taspri-posix.ads \
688 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
689 g-soccon.ads
<g-soccon-solaris.ads \
690 g-soliop.ads
<g-soliop-solaris.ads \
691 system.ads
<system-solaris-sparc.ads
693 THREADSLIB
= -lposix4
-lpthread
696 ifeq ($(strip $(filter-out m64
,$(THREAD_KIND
))),)
697 LIBGNAT_TARGET_PAIRS
= \
698 a-intnam.ads
<a-intnam-solaris.ads \
699 s-inmaop.adb
<s-inmaop-posix.adb \
700 s-intman.adb
<s-intman-solaris.adb \
701 s-osinte.adb
<s-osinte-solaris.adb \
702 s-osinte.ads
<s-osinte-solaris.ads \
703 s-osprim.adb
<s-osprim-solaris.adb \
704 s-parame.adb
<s-parame-solaris.adb \
705 s-taprop.adb
<s-taprop-solaris.adb \
706 s-tasinf.adb
<s-tasinf-solaris.adb \
707 s-tasinf.ads
<s-tasinf-solaris.ads \
708 s-taspri.ads
<s-taspri-solaris.ads \
709 s-tpopsp.adb
<s-tpopsp-solaris.adb \
710 g-soccon.ads
<g-soccon-solaris-64.ads \
711 g-soliop.ads
<g-soliop-solaris.ads \
712 system.ads
<system-solaris-sparcv9.ads
716 ifeq ($(strip $(filter-out %86 solaris2
%,$(arch
) $(osys
))),)
717 LIBGNAT_TARGET_PAIRS
= \
718 a-numaux.adb
<a-numaux-x86.adb \
719 a-numaux.ads
<a-numaux-x86.ads \
720 a-intnam.ads
<a-intnam-solaris.ads \
721 s-inmaop.adb
<s-inmaop-posix.adb \
722 s-intman.adb
<s-intman-solaris.adb \
723 s-osinte.adb
<s-osinte-solaris.adb \
724 s-osinte.ads
<s-osinte-solaris.ads \
725 s-osprim.adb
<s-osprim-solaris.adb \
726 s-parame.adb
<s-parame-solaris.adb \
727 s-taprop.adb
<s-taprop-solaris.adb \
728 s-tasinf.adb
<s-tasinf-solaris.adb \
729 s-tasinf.ads
<s-tasinf-solaris.ads \
730 s-taspri.ads
<s-taspri-solaris.ads \
731 s-tpopsp.adb
<s-tpopsp-solaris.adb \
732 g-soccon.ads
<g-soccon-solaris.ads \
733 g-soliop.ads
<g-soliop-solaris.ads \
734 system.ads
<system-solaris-x86.ads
736 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-solaris.adb
738 THREADSLIB
= -lposix4
-lthread
739 MISCLIB
= -lposix4
-lnsl
-lsocket
741 GNATLIB_SHARED
= gnatlib-shared-dual
743 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
744 LIBRARY_VERSION
:= $(LIB_VERSION
)
747 ifeq ($(strip $(filter-out %86 linux
%,$(arch
) $(osys
))),)
748 LIBGNAT_TARGET_PAIRS
= \
749 a-intnam.ads
<a-intnam-linux.ads \
750 a-numaux.adb
<a-numaux-x86.adb \
751 a-numaux.ads
<a-numaux-x86.ads \
752 g-soccon.ads
<g-soccon-linux-x86.ads \
753 s-inmaop.adb
<s-inmaop-posix.adb \
754 s-intman.adb
<s-intman-posix.adb \
755 s-osinte.adb
<s-osinte-posix.adb \
756 s-osinte.ads
<s-osinte-linux.ads \
757 s-osprim.adb
<s-osprim-posix.adb \
758 s-taprop.adb
<s-taprop-linux.adb \
759 s-taspri.ads
<s-taspri-posix.ads \
760 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
761 s-parame.adb
<s-parame-linux.adb \
762 system.ads
<system-linux-x86.ads
764 TOOLS_TARGET_PAIRS
= \
765 mlib-tgt.adb
<mlib-tgt-linux.adb \
766 indepsw.adb
<indepsw-gnu.adb
769 THREADSLIB
= -lpthread
770 GNATLIB_SHARED
= gnatlib-shared-dual
772 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
773 LIBRARY_VERSION
:= $(LIB_VERSION
)
776 ifeq ($(strip $(filter-out %86 freebsd
%,$(arch
) $(osys
))),)
777 LIBGNAT_TARGET_PAIRS
= \
778 a-intnam.ads
<a-intnam-freebsd.ads \
779 a-numaux.adb
<a-numaux-x86.adb \
780 a-numaux.ads
<a-numaux-x86.ads \
781 g-soccon.ads
<g-soccon-freebsd.ads \
782 s-inmaop.adb
<s-inmaop-posix.adb \
783 s-intman.adb
<s-intman-posix.adb \
784 s-osinte.adb
<s-osinte-freebsd.adb \
785 s-osinte.ads
<s-osinte-freebsd.ads \
786 s-osprim.adb
<s-osprim-posix.adb \
787 s-taprop.adb
<s-taprop-posix.adb \
788 s-taspri.ads
<s-taspri-posix.ads \
789 s-tpopsp.adb
<s-tpopsp-posix.adb \
790 system.ads
<system-freebsd-x86.ads
792 TOOLS_TARGET_PAIRS
= \
793 mlib-tgt.adb
<mlib-tgt-linux.adb
794 GNATLIB_SHARED
= gnatlib-shared-dual
798 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
799 LIBRARY_VERSION
:= $(LIB_VERSION
)
802 ifeq ($(strip $(filter-out s390
% linux
%,$(arch
) $(osys
))),)
803 ifeq ($(strip $(filter-out s390x
,$(arch
))),)
804 LIBGNAT_TARGET_PAIRS
= \
805 a-intnam.ads
<a-intnam-linux.ads \
806 s-inmaop.adb
<s-inmaop-posix.adb \
807 s-intman.adb
<s-intman-posix.adb \
808 s-osinte.adb
<s-osinte-posix.adb \
809 s-osinte.ads
<s-osinte-linux.ads \
810 s-osprim.adb
<s-osprim-posix.adb \
811 s-taprop.adb
<s-taprop-linux.adb \
812 s-taspri.ads
<s-taspri-posix.ads \
813 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
814 s-parame.adb
<s-parame-linux.adb \
815 system.ads
<system-linux-s390x.ads
817 LIBGNAT_TARGET_PAIRS
= \
818 a-intnam.ads
<a-intnam-linux.ads \
819 s-inmaop.adb
<s-inmaop-posix.adb \
820 s-intman.adb
<s-intman-posix.adb \
821 s-osinte.adb
<s-osinte-posix.adb \
822 s-osinte.ads
<s-osinte-linux.ads \
823 s-osprim.adb
<s-osprim-posix.adb \
824 s-taprop.adb
<s-taprop-linux.adb \
825 s-taspri.ads
<s-taspri-posix.ads \
826 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
827 s-parame.adb
<s-parame-linux.adb \
828 system.ads
<system-linux-s390.ads
831 TOOLS_TARGET_PAIRS
= \
832 mlib-tgt.adb
<mlib-tgt-linux.adb
835 THREADSLIB
= -lpthread
836 GNATLIB_SHARED
= gnatlib-shared-dual
837 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
838 LIBRARY_VERSION
:= $(LIB_VERSION
)
841 ifeq ($(strip $(filter-out mips sgi irix
%,$(targ
))),)
842 ifeq ($(strip $(filter-out mips sgi irix6
%,$(targ
))),)
843 LIBGNAT_TARGET_PAIRS
= \
844 a-intnam.ads
<a-intnam-irix.ads \
845 s-inmaop.adb
<s-inmaop-posix.adb \
846 s-intman.adb
<s-intman-irix.adb \
847 s-mastop.adb
<s-mastop-irix.adb \
848 s-osinte.adb
<s-osinte-irix.adb \
849 s-osinte.ads
<s-osinte-irix.ads \
850 s-osprim.adb
<s-osprim-posix.adb \
851 s-proinf.adb
<s-proinf-irix-athread.adb \
852 s-proinf.ads
<s-proinf-irix-athread.ads \
853 s-taprop.adb
<s-taprop-irix.adb \
854 s-tasinf.ads
<s-tasinf-irix.ads \
855 s-taspri.ads
<s-taspri-posix.ads \
856 s-tpopsp.adb
<s-tpopsp-posix.adb \
857 s-traceb.adb
<s-traceb-mastop.adb \
858 g-soccon.ads
<g-soccon-irix.ads \
859 system.ads
<system-irix-n32.ads
861 THREADSLIB
= -lpthread
862 GNATLIB_SHARED
= gnatlib-shared-default
865 LIBGNAT_TARGET_PAIRS
+= \
866 s-mastop.adb
<s-mastop-irix.adb \
867 s-osprim.adb
<s-osprim-posix.adb \
868 s-traceb.adb
<s-traceb-mastop.adb \
869 g-soccon.ads
<g-soccon-irix.ads \
870 system.ads
<system-irix-o32.ads
874 TOOLS_TARGET_PAIRS
= mlib-tgt.adb
<mlib-tgt-irix.adb
877 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
878 LIBRARY_VERSION
:= $(LIB_VERSION
)
881 ifeq ($(strip $(filter-out hppa
% hp hpux10
%,$(targ
))),)
882 LIBGNAT_TARGET_PAIRS
= \
883 a-excpol.adb
<a-excpol-abort.adb \
884 a-intnam.ads
<a-intnam-hpux.ads \
885 s-inmaop.adb
<s-inmaop-posix.adb \
886 s-interr.adb
<s-interr-sigaction.adb \
887 s-intman.adb
<s-intman-posix.adb \
888 s-osinte.adb
<s-osinte-hpux-dce.adb \
889 s-osinte.ads
<s-osinte-hpux-dce.ads \
890 s-parame.ads
<s-parame-hpux.ads \
891 s-osprim.adb
<s-osprim-posix.adb \
892 s-taprop.adb
<s-taprop-hpux-dce.adb \
893 s-taspri.ads
<s-taspri-hpux-dce.ads \
894 s-tpopsp.adb
<s-tpopsp-posix.adb \
895 g-soccon.ads
<g-soccon-hpux.ads \
896 system.ads
<system-hpux.ads
899 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
902 ifeq ($(strip $(filter-out hppa
% hp hpux11
%,$(targ
))),)
903 LIBGNAT_TARGET_PAIRS
= \
904 a-intnam.ads
<a-intnam-hpux.ads \
905 s-inmaop.adb
<s-inmaop-posix.adb \
906 s-intman.adb
<s-intman-posix.adb \
907 s-osinte.adb
<s-osinte-posix.adb \
908 s-osinte.ads
<s-osinte-hpux.ads \
909 s-parame.ads
<s-parame-hpux.ads \
910 s-osprim.adb
<s-osprim-posix.adb \
911 s-traceb.adb
<s-traceb-hpux.adb \
912 s-taprop.adb
<s-taprop-posix.adb \
913 s-taspri.ads
<s-taspri-posix.ads \
914 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
915 g-soccon.ads
<g-soccon-hpux.ads \
916 system.ads
<system-hpux.ads
918 TOOLS_TARGET_PAIRS
= mlib-tgt.adb
<mlib-tgt-hpux.adb
920 TGT_LIB
= /usr
/lib
/libcl.a
921 THREADSLIB
= -lpthread
925 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
926 GNATLIB_SHARED
= gnatlib-shared-dual
927 LIBRARY_VERSION
:= $(LIB_VERSION
)
930 ifeq ($(strip $(filter-out ibm aix
%,$(manu
) $(osys
))),)
931 LIBGNAT_TARGET_PAIRS
= \
932 a-intnam.ads
<a-intnam-aix.ads \
933 s-inmaop.adb
<s-inmaop-posix.adb \
934 s-intman.adb
<s-intman-posix.adb \
935 s-osinte.adb
<s-osinte-aix.adb \
936 s-osinte.ads
<s-osinte-aix.ads \
937 s-osprim.adb
<s-osprim-posix.adb \
938 s-taprop.adb
<s-taprop-posix.adb \
939 s-taspri.ads
<s-taspri-posix.ads \
940 s-tpopsp.adb
<s-tpopsp-posix.adb \
941 g-soccon.ads
<g-soccon-aix.ads \
942 system.ads
<system-aix.ads
944 THREADSLIB
= -lpthreads
945 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
947 TOOLS_TARGET_PAIRS
= \
948 mlib-tgt.adb
<mlib-tgt-aix.adb \
949 indepsw.adb
<indepsw-aix.adb
954 ifeq ($(strip $(filter-out lynxos
,$(osys
))),)
955 TOOLS_TARGET_PAIRS
= \
956 mlib-tgt.adb
<mlib-tgt-lynxos.adb \
957 indepsw.adb
<indepsw-gnu.adb
959 ifeq ($(strip $(filter-out %86 lynxos
,$(arch
) $(osys
))),)
960 LIBGNAT_TARGET_PAIRS
= \
961 a-numaux.adb
<a-numaux-x86.adb \
962 a-numaux.ads
<a-numaux-x86.ads \
963 a-intnam.ads
<a-intnam-lynxos.ads \
964 s-inmaop.adb
<s-inmaop-posix.adb \
965 s-intman.adb
<s-intman-posix.adb \
966 s-osinte.adb
<s-osinte-lynxos.adb \
967 s-osinte.ads
<s-osinte-lynxos.ads \
968 s-osprim.adb
<s-osprim-posix.adb \
969 s-taprop.adb
<s-taprop-lynxos.adb \
970 s-taspri.ads
<s-taspri-lynxos.ads \
971 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
972 system.ads
<system-lynxos-x86.ads
974 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
977 LIBGNAT_TARGET_PAIRS
= \
978 a-intnam.ads
<a-intnam-lynxos.ads \
979 s-inmaop.adb
<s-inmaop-posix.adb \
980 s-intman.adb
<s-intman-posix.adb \
981 s-osinte.adb
<s-osinte-lynxos.adb \
982 s-osinte.ads
<s-osinte-lynxos.ads \
983 s-osprim.adb
<s-osprim-posix.adb \
984 s-taprop.adb
<s-taprop-lynxos.adb \
985 s-taspri.ads
<s-taspri-lynxos.ads \
986 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
987 system.ads
<system-lynxos-ppc.ads
991 ifeq ($(strip $(filter-out rtems
%,$(osys
))),)
992 LIBGNAT_TARGET_PAIRS
= \
993 a-intnam.ads
<a-intnam-rtems.ads \
994 s-inmaop.adb
<s-inmaop-posix.adb \
995 s-intman.adb
<s-intman-posix.adb \
996 s-osinte.adb
<s-osinte-rtems.adb \
997 s-osinte.ads
<s-osinte-rtems.ads \
998 s-osprim.adb
<s-osprim-posix.adb \
999 s-parame.adb
<s-parame-rtems.adb \
1000 s-taprop.adb
<s-taprop-posix.adb \
1001 s-taspri.ads
<s-taspri-posix.ads \
1002 s-auxdec.ads
<s-auxdec-empty.ads \
1003 s-auxdec.adb
<s-auxdec-empty.adb \
1004 s-tpopsp.adb
<s-tpopsp-rtems.adb
1007 ifeq ($(strip $(filter-out alpha
% dec osf
%,$(targ
))),)
1008 LIBGNAT_TARGET_PAIRS
= \
1009 a-intnam.ads
<a-intnam-tru64.ads \
1010 s-inmaop.adb
<s-inmaop-posix.adb \
1011 s-intman.adb
<s-intman-posix.adb \
1012 s-mastop.adb
<s-mastop-tru64.adb \
1013 s-osinte.adb
<s-osinte-tru64.adb \
1014 s-osinte.ads
<s-osinte-tru64.ads \
1015 s-osprim.adb
<s-osprim-unix.adb \
1016 s-taprop.adb
<s-taprop-tru64.adb \
1017 s-tasinf.ads
<s-tasinf-tru64.ads \
1018 s-taspri.ads
<s-taspri-tru64.ads \
1019 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1020 s-traceb.adb
<s-traceb-mastop.adb \
1021 g-soccon.ads
<g-soccon-tru64.ads \
1022 system.ads
<system-tru64.ads
1024 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-tru64.adb
1028 THREADSLIB
= -lpthread
-lmach
-lexc
-lrt
1029 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1030 GNATLIB_SHARED
= gnatlib-shared-default
1031 LIBRARY_VERSION
:= $(LIB_VERSION
)
1034 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(host
))),)
1044 @ gnu
:[bin
]vmssymvec
$<
1047 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(targ
))),)
1048 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1049 LIBGNAT_TARGET_PAIRS_AUX1
= \
1050 g-enblsp.adb
<g-enblsp-vms-ia64.adb \
1051 g-trasym.adb
<g-trasym-vms-ia64.adb \
1052 s-auxdec.ads
<s-auxdec-vms_64.ads \
1053 s-crtl.ads
<s-crtl-vms64.ads \
1054 s-osinte.adb
<s-osinte-vms-ia64.adb \
1055 s-osinte.ads
<s-osinte-vms-ia64.ads \
1056 s-vaflop.adb
<s-vaflop-vms-ia64.adb \
1057 system.ads
<system-vms_64.ads
1059 ifeq ($(strip $(filter-out alpha64 dec vms
% openvms
% alphavms
%,$(targ
))),)
1060 LIBGNAT_TARGET_PAIRS_AUX1
= \
1061 g-enblsp.adb
<g-enblsp-vms-alpha.adb \
1062 g-trasym.adb
<g-trasym-vms-alpha.adb \
1063 s-asthan.adb
<s-asthan-vms-alpha.adb \
1064 s-auxdec.ads
<s-auxdec-vms_64.ads \
1065 s-crtl.ads
<s-crtl-vms64.ads \
1066 s-osinte.adb
<s-osinte-vms.adb \
1067 s-osinte.ads
<s-osinte-vms.ads \
1068 s-vaflop.adb
<s-vaflop-vms-alpha.adb \
1069 system.ads
<system-vms_64.ads
1072 ifeq ($(strip $(filter-out express EXPRESS
,$(THREAD_KIND
))),)
1073 LIBGNAT_TARGET_PAIRS_AUX2
= \
1074 s-parame.ads
<s-parame-vms-restrict.ads
1076 LIBGNAT_TARGET_PAIRS_AUX2
= \
1077 s-parame.ads
<s-parame-vms.ads
1080 LIBGNAT_TARGET_PAIRS
= \
1081 a-caldel.adb
<a-caldel-vms.adb \
1082 a-calend.adb
<a-calend-vms.adb \
1083 a-calend.ads
<a-calend-vms.ads \
1084 a-dirval.adb
<a-dirval-vms.adb \
1085 a-excpol.adb
<a-excpol-abort.adb \
1086 a-intnam.ads
<a-intnam-vms.ads \
1087 a-numaux.ads
<a-numaux-vms.ads \
1088 g-expect.adb
<g-expect-vms.adb \
1089 g-soccon.ads
<g-soccon-vms.ads \
1090 g-socthi.ads
<g-socthi-vms.ads \
1091 g-socthi.adb
<g-socthi-vms.adb \
1092 i-cstrea.adb
<i-cstrea-vms.adb \
1093 s-inmaop.adb
<s-inmaop-vms.adb \
1094 s-interr.adb
<s-interr-vms.adb \
1095 s-intman.adb
<s-intman-vms.adb \
1096 s-intman.ads
<s-intman-vms.ads \
1097 s-osprim.adb
<s-osprim-vms.adb \
1098 s-osprim.ads
<s-osprim-vms.ads \
1099 s-taprop.adb
<s-taprop-vms.adb \
1100 s-taspri.ads
<s-taspri-vms.ads \
1101 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1102 s-tpopde.adb
<s-tpopde-vms.adb \
1103 s-tpopde.ads
<s-tpopde-vms.ads \
1104 s-traent.adb
<s-traent-vms.adb \
1105 s-traent.ads
<s-traent-vms.ads \
1106 $(LIBGNAT_TARGET_PAIRS_AUX1
) \
1107 $(LIBGNAT_TARGET_PAIRS_AUX2
)
1109 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1110 TOOLS_TARGET_PAIRS
= \
1111 mlib-tgt.adb
<mlib-tgt-vms-ia64.adb \
1112 symbols.adb
<symbols-vms.adb \
1113 symbols-processing.adb
<symbols-processing-vms-ia64.adb
1115 TOOLS_TARGET_PAIRS
= \
1116 mlib-tgt.adb
<mlib-tgt-vms-alpha.adb \
1117 symbols.adb
<symbols-vms.adb \
1118 symbols-processing.adb
<symbols-processing-vms-alpha.adb
1122 GNATLIB_SHARED
=gnatlib-shared-vms
1123 ifeq ($(strip $(filter-out alpha64 dec vms
% openvms
% alphavms
%,$(targ
))),)
1124 EXTRA_LIBGNAT_SRCS
=vmshandler.asm
1125 EXTRA_LIBGNAT_OBJS
=vmshandler.o
1127 EXTRA_GNATRTL_TASKING_OBJS
=s-tpopde.o
1129 ..
/..
/gnatlbr
$(exeext
) \
1130 ..
/..
/gnatsym
$(exeext
) \
1131 ..
/..
/vms_help
$(exeext
) \
1133 # This command transforms (YYYYMMDD) into YY,MMDD
1134 GSMATCH_VERSION
:= $(shell grep
"^ *Gnat_Static_Version_String" $(fsrcpfx
)gnatvsn.ads | sed
-e
's/.*(\(.*\)).*/\1/' -e
's/\(..\)\(..\)\(....\)/\2,\3/')
1135 TOOLS_LIBS_LO
:= --for-linker
=sys
\\$$\
$$library:trace.exe
1136 LIBRARY_VERSION
:= $(subst .
,_
,$(LIB_VERSION
))
1139 ifeq ($(strip $(filter-out cygwin32
% mingw32
% pe
,$(osys
))),)
1140 LIBGNAT_TARGET_PAIRS
= \
1141 a-calend.adb
<a-calend-mingw.adb \
1142 a-dirval.adb
<a-dirval-mingw.adb \
1143 a-excpol.adb
<a-excpol-abort.adb \
1144 a-intnam.ads
<a-intnam-mingw.ads \
1145 a-numaux.adb
<a-numaux-x86.adb \
1146 a-numaux.ads
<a-numaux-x86.ads \
1147 s-gloloc.adb
<s-gloloc-mingw.adb \
1148 s-inmaop.adb
<s-inmaop-dummy.adb \
1149 s-interr.adb
<s-interr-sigaction.adb \
1150 s-intman.adb
<s-intman-mingw.adb \
1151 s-memory.adb
<s-memory-mingw.adb \
1152 s-osinte.ads
<s-osinte-mingw.ads \
1153 s-osprim.adb
<s-osprim-mingw.adb \
1154 s-taprop.adb
<s-taprop-mingw.adb \
1155 s-taspri.ads
<s-taspri-mingw.ads \
1156 s-parame.adb
<s-parame-mingw.adb \
1157 g-socthi.ads
<g-socthi-mingw.ads \
1158 g-socthi.adb
<g-socthi-mingw.adb \
1159 g-soccon.ads
<g-soccon-mingw.ads \
1160 g-soliop.ads
<g-soliop-mingw.ads \
1161 system.ads
<system-mingw.ads
1163 TOOLS_TARGET_PAIRS
= \
1164 mlib-tgt.adb
<mlib-tgt-mingw.adb \
1165 indepsw.adb
<indepsw-mingw.adb
1169 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1170 EXTRA_GNATTOOLS
= ..
/..
/gnatdll
$(exeext
)
1171 EXTRA_GNATMAKE_OBJS
= mdll.o mdll-utl.o mdll-fil.o
1172 EXTRA_GNATRTL_NONTASKING_OBJS
= g-regist.o
1174 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT auto-import
1175 # support for array/record will be done.
1176 GNATLIB_SHARED
= gnatlib-shared-win32
1177 LIBRARY_VERSION
:= $(LIB_VERSION
)
1180 ifeq ($(strip $(filter-out powerpc
% linux
%,$(arch
) $(osys
))),)
1181 LIBGNAT_TARGET_PAIRS
= \
1182 a-intnam.ads
<a-intnam-linux.ads \
1183 g-soccon.ads
<g-soccon-linux-ppc.ads \
1184 s-inmaop.adb
<s-inmaop-posix.adb \
1185 s-intman.adb
<s-intman-posix.adb \
1186 s-osinte.adb
<s-osinte-posix.adb \
1187 s-osinte.ads
<s-osinte-linux.ads \
1188 s-osprim.adb
<s-osprim-posix.adb \
1189 s-taprop.adb
<s-taprop-linux.adb \
1190 s-taspri.ads
<s-taspri-posix.ads \
1191 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1192 s-parame.adb
<s-parame-linux.adb \
1193 system.ads
<system-linux-ppc.ads
1195 TOOLS_TARGET_PAIRS
= \
1196 mlib-tgt.adb
<mlib-tgt-linux.adb \
1197 indepsw.adb
<indepsw-gnu.adb
1200 THREADSLIB
= -lpthread
1201 GNATLIB_SHARED
= gnatlib-shared-dual
1203 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1204 LIBRARY_VERSION
:= $(LIB_VERSION
)
1207 ifeq ($(strip $(filter-out sparc
% linux
%,$(arch
) $(osys
))),)
1208 LIBGNAT_TARGET_PAIRS
= \
1209 a-intnam.ads
<a-intnam-linux.ads \
1210 s-inmaop.adb
<s-inmaop-posix.adb \
1211 s-intman.adb
<s-intman-posix.adb \
1212 s-osinte.adb
<s-osinte-posix.adb \
1213 s-osinte.ads
<s-osinte-linux.ads \
1214 s-osprim.adb
<s-osprim-posix.adb \
1215 s-taprop.adb
<s-taprop-linux.adb \
1216 s-taspri.ads
<s-taspri-posix.ads \
1217 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1218 s-parame.adb
<s-parame-linux.adb \
1219 system.ads
<system-linux-sparc.ads
1221 TOOLS_TARGET_PAIRS
= \
1222 mlib-tgt.adb
<mlib-tgt-linux.adb \
1223 indepsw.adb
<indepsw-gnu.adb
1226 THREADSLIB
= -lpthread
1227 GNATLIB_SHARED
= gnatlib-shared-dual
1229 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1230 LIBRARY_VERSION
:= $(LIB_VERSION
)
1233 ifeq ($(strip $(filter-out hppa
% linux
%,$(arch
) $(osys
))),)
1234 LIBGNAT_TARGET_PAIRS
= \
1235 a-intnam.ads
<a-intnam-linux.ads \
1236 s-inmaop.adb
<s-inmaop-posix.adb \
1237 s-intman.adb
<s-intman-posix.adb \
1238 s-osinte.adb
<s-osinte-posix.adb \
1239 s-osinte.ads
<s-osinte-linux-hppa.ads \
1240 s-osprim.adb
<s-osprim-posix.adb \
1241 s-taprop.adb
<s-taprop-linux.adb \
1242 s-taspri.ads
<s-taspri-posix.ads \
1243 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1244 s-parame.adb
<s-parame-linux.adb \
1245 system.ads
<system-linux-hppa.ads
1247 TOOLS_TARGET_PAIRS
= \
1248 mlib-tgt.adb
<mlib-tgt-linux.adb \
1249 indepsw.adb
<indepsw-gnu.adb
1252 THREADSLIB
= -lpthread
1253 GNATLIB_SHARED
= gnatlib-shared-dual
1255 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1256 LIBRARY_VERSION
:= $(LIB_VERSION
)
1259 ifeq ($(strip $(filter-out %ia64 linux
%,$(arch
) $(osys
))),)
1260 LIBGNAT_TARGET_PAIRS
= \
1261 a-intnam.ads
<a-intnam-linux.ads \
1262 a-numaux.ads
<a-numaux-libc-x86.ads \
1263 g-soccon.ads
<g-soccon-linux-64.ads \
1264 s-inmaop.adb
<s-inmaop-posix.adb \
1265 s-intman.adb
<s-intman-posix.adb \
1266 s-osinte.ads
<s-osinte-linux.ads \
1267 s-osinte.adb
<s-osinte-posix.adb \
1268 s-osprim.adb
<s-osprim-posix.adb \
1269 s-taprop.adb
<s-taprop-linux.adb \
1270 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1271 s-taspri.ads
<s-taspri-posix.ads \
1272 system.ads
<system-linux-ia64.ads
1274 TOOLS_TARGET_PAIRS
= \
1275 mlib-tgt.adb
<mlib-tgt-linux.adb \
1276 indepsw.adb
<indepsw-gnu.adb
1280 THREADSLIB
=-lpthread
1281 GNATLIB_SHARED
=gnatlib-shared-dual
1283 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1284 LIBRARY_VERSION
:= $(LIB_VERSION
)
1287 ifeq ($(strip $(filter-out alpha
% linux
%,$(arch
) $(osys
))),)
1288 LIBGNAT_TARGET_PAIRS
= \
1289 a-intnam.ads
<a-intnam-linux.ads \
1290 s-inmaop.adb
<s-inmaop-posix.adb \
1291 s-intman.adb
<s-intman-posix.adb \
1292 s-osinte.ads
<s-osinte-linux-alpha.ads \
1293 s-osinte.adb
<s-osinte-posix.adb \
1294 s-osprim.adb
<s-osprim-posix.adb \
1295 s-taprop.adb
<s-taprop-linux.adb \
1296 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1297 s-taspri.ads
<s-taspri-posix.ads \
1298 system.ads
<system-linux-alpha.ads
1300 TOOLS_TARGET_PAIRS
= \
1301 mlib-tgt.adb
<mlib-tgt-linux.adb \
1302 indepsw.adb
<indepsw-gnu.adb
1306 THREADSLIB
=-lpthread
1307 GNATLIB_SHARED
=gnatlib-shared-dual
1308 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1309 LIBRARY_VERSION
:= $(LIB_VERSION
)
1312 ifeq ($(strip $(filter-out %x86_64 linux
%,$(arch
) $(osys
))),)
1313 LIBGNAT_TARGET_PAIRS
= \
1314 a-intnam.ads
<a-intnam-linux.ads \
1315 a-numaux.adb
<a-numaux-x86.adb \
1316 a-numaux.ads
<a-numaux-x86.ads \
1317 g-soccon.ads
<g-soccon-linux-64.ads \
1318 s-inmaop.adb
<s-inmaop-posix.adb \
1319 s-intman.adb
<s-intman-posix.adb \
1320 s-osinte.ads
<s-osinte-linux.ads \
1321 s-osinte.adb
<s-osinte-posix.adb \
1322 s-osprim.adb
<s-osprim-posix.adb \
1323 s-taprop.adb
<s-taprop-linux.adb \
1324 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1325 s-taspri.ads
<s-taspri-posix.ads \
1326 system.ads
<system-linux-x86_64.ads
1328 TOOLS_TARGET_PAIRS
= \
1329 mlib-tgt.adb
<mlib-tgt-linux.adb \
1330 indepsw.adb
<indepsw-gnu.adb
1333 THREADSLIB
=-lpthread
1334 GNATLIB_SHARED
=gnatlib-shared-dual
1336 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1337 LIBRARY_VERSION
:= $(LIB_VERSION
)
1340 ifeq ($(strip $(filter-out powerpc darwin
%,$(arch
) $(osys
))),)
1341 LIBGNAT_TARGET_PAIRS
= \
1342 a-intnam.ads
<a-intnam-darwin.ads \
1343 s-inmaop.adb
<s-inmaop-posix.adb \
1344 s-intman.adb
<s-intman-posix.adb \
1345 s-osinte.adb
<s-osinte-darwin.adb \
1346 s-osinte.ads
<s-osinte-darwin.ads \
1347 s-osprim.adb
<s-osprim-posix.adb \
1348 s-taprop.adb
<s-taprop-posix.adb \
1349 s-taspri.ads
<s-taspri-posix.ads \
1350 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1351 g-soccon.ads
<g-soccon-darwin.ads \
1352 a-numaux.ads
<a-numaux-darwin.ads \
1353 a-numaux.adb
<a-numaux-darwin.adb \
1354 system.ads
<system-darwin-ppc.ads
1356 TOOLS_TARGET_PAIRS
= \
1357 mlib-tgt.adb
<mlib-tgt-darwin.adb
1360 GNATLIB_SHARED
= gnatlib-shared-darwin
1361 SO_OPTS
= -Wl
,-flat_namespace
-shared-libgcc
1364 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1365 LIBRARY_VERSION
:= $(LIB_VERSION
)
1369 ifneq ($(EH_MECHANISM
),)
1370 LIBGNAT_TARGET_PAIRS
+= a-exexpr.adb
<a-exexpr
$(EH_MECHANISM
).adb
1371 EXTRA_LIBGNAT_SRCS
+=raise
$(EH_MECHANISM
).c
1372 EXTRA_LIBGNAT_OBJS
+=raise
$(EH_MECHANISM
).o
1375 # The runtime library for gnat comprises two directories. One contains the
1376 # Ada source files that the compiler (gnat1) needs -- these files are listed
1377 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1378 # corresponding .ali files for the parts written in Ada, libgnat.a for
1379 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1380 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1381 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1382 # go into the directory. The pthreads emulation is built in the threads
1383 # subdirectory and copied.
1384 LIBGNAT_SRCS
= ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1385 errno.c exit.c cal.c ctrl_c.c \
1386 raise.h raise.c sysdep.c aux-io.c init.c initialize.c seh_init.c \
1387 final.c tracebak.c tb-alvms.c tb-alvxw.c expect.c mkdir.c socket.c gsocket.h \
1388 targext.c
$(EXTRA_LIBGNAT_SRCS
)
1390 LIBGNAT_OBJS
= adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o \
1391 raise.o sysdep.o aux-io.o init.o initialize.o seh_init.o cal.o \
1392 final.o tracebak.o expect.o mkdir.o socket.o targext.o
$(EXTRA_LIBGNAT_OBJS
)
1394 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1395 # the library installation will change and there will be a
1396 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1397 # from ADA_INCLUDE_SRCS.
1399 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1400 # the following include file:
1402 include $(fsrcdir
)/Makefile.rtl
1404 GNATRTL_OBJS
= $(GNATRTL_NONTASKING_OBJS
) $(GNATRTL_TASKING_OBJS
) \
1405 g-trasym.o memtrack.o
1407 # Default run time files
1410 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1411 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1412 sequenio.ads system.ads memtrack.adb \
1413 a-
[a-o
]*.adb a-
[p-z
]*.adb a-
[a-o
]*.ads a-
[p-z
]*.ads g-
*.ad? i-
*.ad? \
1414 s-
[a-o
]*.adb s-
[p-z
]*.adb s-
[a-o
]*.ads s-
[p-z
]*.ads
1416 LIBGNAT
=..
/rts
/libgnat.a
1417 GCC_LINK
=$(CC
) -static-libgcc
$(ADA_INCLUDES
)
1419 # when compiling the tools, the runtime has to be first on the path so that
1420 # it hides the runtime files lying with the rest of the sources
1421 ifeq ($(TOOLSCASE
),native
)
1422 vpath
%.ads ..
/rts ..
/
1423 vpath
%.adb ..
/rts ..
/
1424 vpath
%.c ..
/rts ..
/
1425 vpath
%.h ..
/rts ..
/
1428 # in the cross tools case, everything is compiled with the native
1429 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1430 ifeq ($(TOOLSCASE
),cross
)
1438 ..
/..
/gnatchop
$(exeext
):
1439 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatchop
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1440 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatchop
1441 $(GNATLINK
) -v gnatchop
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1443 ..
/..
/gnat
$(exeext
):
1444 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatcmd
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1445 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatcmd
1446 $(GNATLINK
) -v gnatcmd
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1448 ..
/..
/gnatkr
$(exeext
):
1449 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatkr
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1450 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatkr
1451 $(GNATLINK
) -v gnatkr
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1453 ..
/..
/gnatls
$(exeext
):
1454 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatls
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1455 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatls
1456 $(GNATLINK
) -v gnatls
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1458 ..
/..
/gnatname
$(exeext
):
1459 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatname
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1460 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatname
1461 $(GNATLINK
) -v gnatname
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1463 ..
/..
/gprmake
$(exeext
):
1464 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gprmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1465 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gprmake
1466 $(GNATLINK
) -v gprmake
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1468 ..
/..
/gnatprep
$(exeext
):
1469 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatprep
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1470 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatprep
1471 $(GNATLINK
) -v gnatprep
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1473 ..
/..
/gnatxref
$(exeext
):
1474 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatxref
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1475 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatxref
1476 $(GNATLINK
) -v gnatxref
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1478 ..
/..
/gnatfind
$(exeext
):
1479 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatfind
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1480 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatfind
1481 $(GNATLINK
) -v gnatfind
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1483 ..
/..
/gnatclean
$(exeext
):
1484 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatclean
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1485 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatclean
1486 $(GNATLINK
) -v gnatclean
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1488 ..
/..
/gnatsym
$(exeext
):
1489 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatsym
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1490 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatsym
1491 $(GNATLINK
) -v gnatsym
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1493 ..
/..
/gnatdll
$(exeext
):
1494 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatdll
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1495 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) $(GNATBIND_FLAGS
) gnatdll
1496 $(GNATLINK
) -v gnatdll
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1498 ..
/..
/vxaddr2line
$(exeext
): targext.o
1499 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vxaddr2line
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1500 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vxaddr2line
1501 $(GNATLINK
) -v vxaddr2line
-o
$@
--GCC
="$(GCC_LINK)" targext.o
$(CLIB
)
1503 gnatmake-re
: link.o targext.o
1504 $(GNATMAKE
) $(ADA_INCLUDES
) -u sdefault
--GCC
="$(CC) $(MOST_ADA_FLAGS)"
1505 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1506 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmake
1507 $(GNATLINK
) -v gnatmake
-o ..
/..
/gnatmake
$(exeext
) \
1508 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1510 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1511 # with the former version of gnatlink itself which cannot override itself.
1512 gnatlink-re
: link.o targext.o
1513 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlink
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1514 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlink
1515 $(GNATLINK
) -v gnatlink
-o ..
/..
/gnatlinknew
$(exeext
) \
1516 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1517 $(MV
) ..
/..
/gnatlinknew
$(exeext
) ..
/..
/gnatlink
$(exeext
)
1519 # Needs to be built with CC=gcc
1520 # Since the RTL should be built with the latest compiler, remove the
1521 # stamp target in the parent directory whenever gnat1 is rebuilt
1523 # Likewise for the tools
1524 ..
/..
/gnatmake
$(exeext
): $(P
) b_gnatm.o link.o targext.o
$(GNATMAKE_OBJS
)
1525 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatm.o
$(GNATMAKE_OBJS
) \
1528 ..
/..
/gnatlink
$(exeext
): $(P
) b_gnatl.o link.o targext.o
$(GNATLINK_OBJS
)
1529 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatl.o
$(GNATLINK_OBJS
) \
1532 ..
/..
/gnatbl
$(exeext
): gnatbl.o
1533 $(GCC_LINK
) -o
$@
$(ALL_CFLAGS
) $(LDFLAGS
) gnatbl.o
$(TOOLS_LIBS
)
1535 gnatbl.o
: gnatbl.c adaint.h
1536 $(CC
) $(ALL_CFLAGS
) $(INCLUDES
) -c
$< $(OUTPUT_OPTION
)
1539 @if
[ ! -f stamp-gnatlib
] ; \
1541 $(ECHO
) You must first build the GNAT library
: make gnatlib
; \
1547 install-gnatlib
: ..
/stamp-gnatlib
1548 # Create the directory before deleting it, in case the directory is
1549 # a list of directories (as it may be on VMS). This ensures we are
1550 # deleting the right one.
1551 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1552 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1553 $(RMDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1554 $(RMDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1555 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1556 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1557 for file in rts
/*.ali
; do \
1558 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1560 -$(INSTALL_DATA
) rts
/g-trasym
$(objext
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1561 -cd rts
; for file in
*$(arext
);do \
1562 $(INSTALL_DATA
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1563 $(RANLIB_FOR_TARGET
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/$$file; \
1565 -$(foreach file
, $(EXTRA_ADALIB_FILES
), \
1566 $(INSTALL_DATA_DATE
) rts
/$(file
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
) && \
1568 # Install the shared libraries, if any, using $(INSTALL) instead
1569 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1570 # for shared libraries on some targets, e.g. on HP-UX where the x
1571 # permission is required.
1572 for file in gnat gnarl
; do \
1573 if
[ -f rts
/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) ]; then \
1574 $(INSTALL
) rts
/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1575 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1577 if
[ -f rts
/lib
$${file}$(soext
) ]; then \
1578 $(LN_S
) lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1579 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/lib
$${file}$(soext
); \
1582 # This copy must be done preserving the date on the original file.
1583 for file in rts
/*.adb rts
/*.ads
; do \
1584 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_INCLUDE_DIR
); \
1586 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.adb
1587 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.ads
1591 $(RM
) rts
/s-
*$(objext
)
1593 $(RM
) rts
/a-
*$(objext
)
1595 $(RM
) rts
/*$(objext
)
1598 touch ..
/stamp-gnatlib2
1599 $(RM
) ..
/stamp-gnatlib
1601 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1602 # successive target commands. Although the Gnu make documentation
1603 # implies this is true on all systems, I suspect it may not be, So care
1604 # has been taken to allow a sed script to look for ";)" and substitue
1605 # for ";" the appropriate character in the range of lines below
1606 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1608 # GNULLI Begin ###########################################################
1610 ..
/stamp-gnatlib1
: Makefile ..
/stamp-gnatlib2
1614 # Copy target independent sources
1615 $(foreach f
,$(ADA_INCLUDE_SRCS
) $(LIBGNAT_SRCS
), \
1616 $(LN_S
) $(fsrcpfx
)$(f
) rts
;) true
1617 # Remove files to be replaced by target dependent sources
1618 $(RM
) $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
1619 rts
/$(word 1,$(subst <, ,$(PAIR
))))
1620 $(RM
) rts
/*-*-*.ads rts
/*-*-*.adb
1621 # Copy new target dependent sources
1622 $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
1623 $(LN_S
) $(fsrcpfx
)$(word 2,$(subst <, ,$(PAIR
))) \
1624 rts
/$(word 1,$(subst <, ,$(PAIR
)));)
1625 $(RM
) ..
/stamp-gnatlib
1626 touch ..
/stamp-gnatlib1
1628 # GNULLI End #############################################################
1630 # Don't use semicolon separated shell commands that involve list expansions.
1631 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1632 # line lengths in excess of 256 characters.
1633 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1634 # is guaranteed to overflow the buffer.
1636 gnatlib
: ..
/stamp-gnatlib1 ..
/stamp-gnatlib2
1638 CC
="`echo \"$(GCC_FOR_TARGET)\" \
1639 | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
1640 INCLUDES
="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1641 CFLAGS
="$(GNATLIBCFLAGS_FOR_C)" \
1643 -f ..
/Makefile
$(LIBGNAT_OBJS
)
1645 CC
="`echo \"$(GCC_FOR_TARGET)\" \
1646 | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
1648 CFLAGS
="$(GNATLIBCFLAGS)" \
1649 ADAFLAGS
="$(GNATLIBFLAGS)" \
1653 $(RM
) rts
/libgnat
$(arext
) rts
/libgnarl
$(arext
)
1654 $(AR_FOR_TARGET
) $(AR_FLAGS
) rts
/libgnat
$(arext
) \
1655 $(addprefix rts
/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
1656 ifneq ($(PREFIX_OBJS
),)
1657 $(AR_FOR_TARGET
) $(AR_FLAGS
) rts
/libgccprefix
$(arext
) \
1659 $(RANLIB_FOR_TARGET
) rts
/libgccprefix
$(arext
)
1661 $(RANLIB_FOR_TARGET
) rts
/libgnat
$(arext
)
1662 $(AR_FOR_TARGET
) $(AR_FLAGS
) rts
/libgnarl
$(arext
) \
1663 $(addprefix rts
/,$(GNATRTL_TASKING_OBJS
))
1664 $(RANLIB_FOR_TARGET
) rts
/libgnarl
$(arext
)
1665 ifeq ($(GMEM_LIB
),gmemlib
)
1666 $(AR_FOR_TARGET
) $(AR_FLAGS
) rts
/libgmem
$(arext
) \
1668 $(RANLIB_FOR_TARGET
) rts
/libgmem
$(arext
)
1670 $(CHMOD
) a-wx rts
/*.ali
1671 touch ..
/stamp-gnatlib
1673 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
1674 gnatlib-shared-default
:
1675 $(MAKE
) $(FLAGS_TO_PASS
) \
1676 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1677 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1678 THREAD_KIND
="$(THREAD_KIND)" \
1680 $(RM
) rts
/libgna
*$(soext
)
1681 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(GNATLIBCFLAGS
) \
1682 $(TARGET_LIBGCC2_CFLAGS
) \
1683 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1684 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
1685 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1687 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(GNATLIBCFLAGS
) \
1688 $(TARGET_LIBGCC2_CFLAGS
) \
1689 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1690 $(GNATRTL_TASKING_OBJS
) \
1691 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1693 cd rts
; $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1695 cd rts
; $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1698 gnatlib-shared-dual
:
1699 $(MAKE
) $(FLAGS_TO_PASS
) \
1700 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1701 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1702 THREAD_KIND
="$(THREAD_KIND)" \
1703 gnatlib-shared-default
1704 $(MV
) rts
/libgna
*$(soext
) .
1705 $(RM
) ..
/stamp-gnatlib2
1706 $(MAKE
) $(FLAGS_TO_PASS
) \
1707 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1708 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1709 THREAD_KIND
="$(THREAD_KIND)" \
1711 $(MV
) libgna
*$(soext
) rts
1713 gnatlib-shared-dual-win32
:
1714 $(MAKE
) $(FLAGS_TO_PASS
) \
1715 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1716 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1717 THREAD_KIND
="$(THREAD_KIND)" \
1718 gnatlib-shared-win32
1719 $(MV
) rts
/libgna
*$(soext
) .
1720 $(RM
) ..
/stamp-gnatlib2
1721 $(MAKE
) $(FLAGS_TO_PASS
) \
1722 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1723 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1724 THREAD_KIND
="$(THREAD_KIND)" \
1726 $(MV
) libgna
*$(soext
) rts
1728 # ??? we need to add the option to support auto-import of arrays/records to
1729 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
1730 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
1732 gnatlib-shared-win32
:
1733 $(MAKE
) $(FLAGS_TO_PASS
) \
1734 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1735 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1736 THREAD_KIND
="$(THREAD_KIND)" \
1738 $(RM
) rts
/libgna
*$(soext
)
1739 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
1740 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1741 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
1742 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) $(MISCLIB
)
1743 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
1744 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1745 $(GNATRTL_TASKING_OBJS
) \
1746 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1747 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
1749 gnatlib-shared-darwin
:
1750 $(MAKE
) $(FLAGS_TO_PASS
) \
1751 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1752 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) \
1754 THREAD_KIND
="$(THREAD_KIND)" \
1756 $(RM
) rts
/libgnat
$(soext
) rts
/libgnarl
$(soext
)
1757 cd rts
; ..
/..
/xgcc
-B..
/..
/ -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
1758 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1759 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
1762 cd rts
; ..
/..
/xgcc
-B..
/..
/ -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
1763 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1764 $(GNATRTL_TASKING_OBJS
) \
1766 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
1767 cd rts
; $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1769 cd rts
; $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1773 $(MAKE
) $(FLAGS_TO_PASS
) \
1774 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1775 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1776 THREAD_KIND
="$(THREAD_KIND)" \
1778 $(RM
) rts
/libgna
*$(soext
)
1779 cd rts
&& echo
"case_sensitive=yes" > SYMVEC_
$$$$.opt
&& \
1780 objdump
--syms
$(LIBGNAT_OBJS
) $(GNATRTL_NONTASKING_OBJS
) | \
1781 $(SHLIB_SYMVEC
) >> SYMVEC_
$$$$.opt
&& \
1782 echo
"case_sensitive=NO" >> SYMVEC_
$$$$.opt
&& \
1783 ..
/..
/xgcc
-g
-B..
/..
/ -nostartfiles
-shared
-shared-libgcc \
1784 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) libgnat.a \
1785 sys\
$$library:trace.exe \
1786 --for-linker
=/noinform \
1787 --for-linker
=SYMVEC_
$$$$.opt \
1788 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
1789 cd rts
&& echo
"case_sensitive=yes" > SYMVEC_
$$$$.opt
&& \
1790 objdump
--syms
$(GNATRTL_TASKING_OBJS
) | \
1791 $(SHLIB_SYMVEC
) >> SYMVEC_
$$$$.opt
&& \
1792 echo
"case_sensitive=NO" >> SYMVEC_
$$$$.opt
&& \
1793 ..
/..
/xgcc
-g
-B..
/..
/ -nostartfiles
-shared
-shared-libgcc \
1794 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1795 libgnarl.a libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1796 sys\
$$library:trace.exe \
1797 --for-linker
=/noinform \
1798 --for-linker
=SYMVEC_
$$$$.opt \
1799 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
1802 $(MAKE
) $(FLAGS_TO_PASS
) \
1803 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1804 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1805 THREAD_KIND
="$(THREAD_KIND)" \
1806 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" \
1810 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="" ..
/stamp-gnatlib1
1811 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' rts
/system.ads
> rts
/s.ads
1812 $(MV
) rts
/s.ads rts
/system.ads
1813 $(MAKE
) $(FLAGS_TO_PASS
) \
1814 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1815 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1816 THREAD_KIND
="$(THREAD_KIND)" \
1817 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
1820 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="-gcc" ..
/stamp-gnatlib1
1821 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' rts
/system.ads
> rts
/s.ads
1822 $(MV
) rts
/s.ads rts
/system.ads
1823 $(MAKE
) $(FLAGS_TO_PASS
) \
1824 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1825 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1826 THREAD_KIND
="$(THREAD_KIND)" \
1827 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
1829 # .s files for cross-building
1831 make
$(GNAT1_ADA_OBJS
) CC
="gcc -B../stage1/" CFLAGS
="-S -gnatp"
1833 # Compiling object files from source files.
1835 # Note that dependencies on obstack.h are not written
1836 # because that file is not part of GCC.
1837 # Dependencies on gvarargs.h are not written
1838 # because all that file does, when not compiling with GCC,
1839 # is include the system varargs.h.
1841 b_gnatl.c
: $(GNATLINK_OBJS
)
1842 $(GNATBIND
) -C
$(ADA_INCLUDES
) -o b_gnatl.c gnatlink.ali
1843 b_gnatl.o
: b_gnatl.c
1845 b_gnatm.c
: $(GNATMAKE_OBJS
)
1846 $(GNATBIND
) -C
$(ADA_INCLUDES
) -o b_gnatm.c gnatmake.ali
1847 b_gnatm.o
: b_gnatm.c
1849 ADA_INCLUDE_DIR
= $(libsubdir
)/adainclude
1850 ADA_RTL_OBJ_DIR
= $(libsubdir
)/adalib
1852 # force no sibling call optimization on s-traceb.o so the number of stack
1853 # frames to be skipped when computing a call chain is not modified by
1854 # optimization. However we can do that only when building the runtime
1855 # (not the compiler) because the -fno-optimize-sibling-calls exists
1858 ifneq (,$(findstring xgcc
,$(CC
)))
1859 NO_SIBLING_ADAFLAGS
=-fno-optimize-sibling-calls
1861 NO_SIBLING_ADAFLAGS
=
1864 s-traceb.o
: s-traceb.adb
1865 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) \
1866 $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) \
1869 # force debugging information on s-tasdeb.o so that it is always
1870 # possible to set conditional breakpoints on tasks.
1872 s-tasdeb.o
: s-tasdeb.adb s-tasdeb.ads
1873 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
1876 # force debugging information on a-except.o so that it is always
1877 # possible to set conditional breakpoints on exceptions.
1878 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
1880 a-except.o
: a-except.adb a-except.ads
1881 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O1
-fno-inline \
1882 $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
1884 # force debugging information on s-assert.o so that it is always
1885 # possible to set breakpoint on assert failures.
1887 s-assert.o
: s-assert.adb s-assert.ads a-except.ads
1888 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O2
$(ADA_INCLUDES
) \
1891 adadecode.o
: adadecode.c adadecode.h
1895 deftarg.o
: deftarg.c
1897 exit.o
: adaint.h exit.c
1903 socket.o
: socket.c gsocket.h
1905 raise-gcc.o
: raise-gcc.c raise.h
1906 raise.o
: raise.c raise.h
1908 gen-soccon
: gen-soccon.c gsocket.h
1909 $(CC
) $(ALL_CFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) $(INCLUDES
) \
1910 -UIN_GCC
-DTARGET
=\"$(target_alias
)\" \
1914 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) \
1915 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
1917 init.o
: init.c adaint.h raise.h
1918 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) \
1919 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
1921 initialize.o
: initialize.c raise.h
1922 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) \
1923 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
1925 targext.o
: targext.c
1926 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) \
1927 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
1930 # No optimization to compile this file as optimizations (-O1 or above) breaks
1931 # the SEH handling on Windows. The reasons are not clear.
1932 seh_init.o
: seh_init.c raise.h
1933 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) -O0 \
1934 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
1936 # Need to keep the frame pointer in this file to pop the stack properly on
1938 tracebak.o
: tracebak.c tb-alvms.c tb-alvxw.c
1939 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) $(INCLUDES
) \
1940 -fno-omit-frame-pointer
$< $(OUTPUT_OPTION
)
1942 # In GNU Make, ignore whether `stage*' exists.
1943 .PHONY
: stage1 stage2 stage3 stage4
clean realclean TAGS bootstrap
1944 .PHONY
: risky-stage1 risky-stage2 risky-stage3 risky-stage4
1948 # Gnatlbr, Vms_help, and Gnat.hlp are only used on VMS
1950 ..
/..
/gnatlbr
$(exeext
): ..
/..
/prefix.o
1951 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlbr
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1952 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlbr
1953 $(GNATLINK
) -v gnatlbr
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1955 ..
/..
/vms_help
$(exeext
):
1956 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vms_help
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1957 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vms_help
1958 $(GNATLINK
) -v vms_help
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1960 ..
/..
/gnat.hlp
: ..
/..
/vms_help
$(exeext
)
1961 ..
/..
/vms_help
$(exeext
) $(fsrcdir
)/gnat.help_in \
1962 $(fsrcdir
)/vms_data.ads ..
/..
/gnat.hlp