1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2004 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 2, or (at your option)
11 #GCC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 #GNU General Public License for more details.
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING. If not, write to
18 #the Free Software Foundation, 59 Temple Place - Suite 330,
19 #Boston, MA 02111-1307, USA.
21 # The makefile built from this file lives in the language subdirectory.
22 # Its purpose is to provide support for:
24 # 1) recursion where necessary, and only then (building .o's), and
25 # 2) building and debugging cc1 from the language subdirectory, and
28 # The parent makefile handles all other chores, with help from the
29 # language makefile fragment, of course.
31 # The targets for external use are:
32 # all, TAGS, ???mostlyclean, ???clean.
34 # This makefile will only work with Gnu make.
35 # The rules are written assuming a minimum subset of tools are available:
38 # MAKE: Only Gnu make will work.
39 # MV: Must accept (at least) one, maybe wildcard, source argument,
40 # a file or directory destination, and support creation/
41 # modification date preservation. Gnu mv -f works.
42 # RM: Must accept an arbitrary number of space separated file
43 # arguments, or one wildcard argument. Gnu rm works.
44 # RMDIR: Must delete a directory and all its contents. Gnu rm -rf works.
45 # ECHO: Must support command line redirection. Any Unix-like
46 # shell will typically provide this, otherwise a custom version
47 # is trivial to write.
49 # MKDIR: Gnu mkdir works.
50 # CHMOD: Gnu chmod works.
51 # true: Does nothing and returns a normal successful return code.
52 # pwd: Prints the current directory on stdout.
53 # cd: Change directory.
56 # BISON: Gnu bison works.
57 # FLEX: Gnu flex works.
58 # Other miscellaneous tools for obscure targets.
60 # Tell GNU make 3.79 not to run this directory in parallel.
61 # Not all of the required dependencies are present.
64 # Suppress smart makes who think they know how to automake Yacc files
67 # Variables that exist for you to override.
68 # See below for how to change them for certain systems.
70 # Various ways of specifying flags for compilations:
71 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
72 # BOOT_CFLAGS is the value of CFLAGS to pass
73 # to the stage2 and stage3 compilations
74 # XCFLAGS is used for most compilations but not when using the GCC just built.
77 BOOT_CFLAGS
= -O
$(CFLAGS
)
78 # These exists to be overridden by the x-* and t-* files, respectively.
109 RANLIB_FLAGS
= @ranlib_flags@
112 PWD_COMMAND
= $${PWDCMD-pwd
}
113 # How to copy preserving the date
114 INSTALL_DATA_DATE
= cp
-p
117 GNATBIND
= $(STAGE_PREFIX
)gnatbind
118 GNATBIND_FLAGS
= -static
-x
120 ADAFLAGS
= -W
-Wall
-gnatpg
-gnata
121 SOME_ADAFLAGS
=-gnata
122 FORCE_DEBUG_ADAFLAGS
= -g
123 GNATLIBFLAGS
= -gnatpg
-nostdinc
124 GNATLIBCFLAGS
= -g
-O2
125 GNATLIBCFLAGS_FOR_C
= $(GNATLIBCFLAGS
) $(TARGET_LIBGCC2_CFLAGS
) -fexceptions \
127 ALL_ADA_CFLAGS
= $(X_ADA_CFLAGS
) $(T_ADA_CFLAGS
) $(ADA_CFLAGS
)
128 ALL_ADAFLAGS
= $(CFLAGS
) $(ALL_ADA_CFLAGS
) $(X_ADAFLAGS
) $(T_ADAFLAGS
) \
130 MOST_ADAFLAGS
= $(CFLAGS
) $(ALL_ADA_CFLAGS
) $(X_ADAFLAGS
) $(T_ADAFLAGS
) \
136 SYMDEPS
= $(LIBINTL_DEP
)
137 OUTPUT_OPTION
= @OUTPUT_OPTION@
146 # Define this as & to perform parallel make on a Sequent.
147 # Note that this has some bugs, and it seems currently necessary
148 # to compile all the gen* files first by hand to avoid erroneous results.
151 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
152 # It omits XCFLAGS, and specifies -B./.
153 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
154 GCC_CFLAGS
= $(INTERNAL_CFLAGS
) $(X_CFLAGS
) $(T_CFLAGS
) $(CFLAGS
)
156 # Tools to use when building a cross-compiler.
157 # These are used because `configure' appends `cross-make'
158 # to the makefile when making a cross-compiler.
160 # We don't use cross-make. Instead we use the tools from the build tree,
161 # if they are available.
162 # program_transform_name and objdir are set by configure.in.
163 program_transform_name
=
167 xmake_file
= @xmake_file@
168 tmake_file
= @tmake_file@
169 host_canonical
=@host@
170 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
171 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
173 # Directory where sources are, from where we are.
177 fsrcdir
:= $(shell cd
$(srcdir);${PWD_COMMAND})
178 fsrcpfx
:= $(shell cd
$(srcdir);${PWD_COMMAND})/
179 fcurdir
:= $(shell ${PWD_COMMAND})
180 fcurpfx
:= $(shell ${PWD_COMMAND})/
182 # Top build directory, relative to here.
185 # Internationalization library.
187 LIBINTL_DEP
= @LIBINTL_DEP@
189 # Any system libraries needed just for GNAT.
190 SYSLIBS
= @GNAT_LIBEXC@
192 # List of extra object files linked in with various programs.
193 EXTRA_GNATTOOLS_OBJS
= ..
/..
/prefix.o ..
/..
/version.o
195 # List extra gnattools
198 # List of target dependent sources, overridden below as necessary
201 # Type of tools build we are doing; default is not compiling tools.
204 # End of variables for you to override.
208 # This tells GNU Make version 3 not to put all variables in the environment.
211 # tmake_file and xmake_file expand to lists with entries of the form
212 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
213 # need to adjust the paths. There can't be spaces in the subst arguments
214 # or we get spurious spaces in the actual list of files to include.
217 ifneq ($(tmake_file
),)
218 include $(subst /config
,/..
/config
,$(tmake_file
))
222 ifneq ($(xmake_file
),)
223 include $(subst /config
,/..
/config
,$(xmake_file
))
226 # Now figure out from those variables how to compile and link.
228 all.indirect
: Makefile ..
/gnat1
$(exeext
)
230 # IN_GCC distinguishes between code compiled into GCC itself and other
231 # programs built during a bootstrap.
232 # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler.
233 INTERNAL_CFLAGS
= @CROSS@
-DIN_GCC
235 # This is the variable actually used when we compile.
236 LOOSE_CFLAGS
= `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
237 ALL_CFLAGS
= $(INTERNAL_CFLAGS
) $(X_CFLAGS
) $(T_CFLAGS
) $(LOOSE_CFLAGS
) \
241 ALL_CPPFLAGS
= $(CPPFLAGS
) $(X_CPPFLAGS
) $(T_CPPFLAGS
)
243 # This is where we get libiberty.a from.
244 LIBIBERTY
= ..
/..
/libiberty
/libiberty.a
246 # How to link with both our special library facilities
247 # and the system's installed libraries.
248 LIBS
= $(LIBINTL
) $(LIBIBERTY
) $(SYSLIBS
)
249 LIBDEPS
= $(LIBINTL_DEP
) $(LIBIBERTY
)
250 TOOLS_LIBS
= $(LIBGNAT
) $(EXTRA_GNATTOOLS_OBJS
) link.o ..
/..
/..
/libiberty
/libiberty.a
$(SYSLIBS
)
252 # Specify the directories to be searched for header files.
253 # Both . and srcdir are used, in that order,
254 # so that tm.h and config.h will be found in the compilation
255 # subdirectory rather than in the source directory.
256 INCLUDES
= -I-
-I.
-I..
-I
$(srcdir) -I
$(srcdir)/..
-I
$(srcdir)/..
/config \
257 -I
$(srcdir)/..
/..
/include
259 ADA_INCLUDES
= -I-
-I.
-I
$(srcdir)
261 INCLUDES_FOR_SUBDIR
= -I.
-I..
-I..
/..
-I
$(fsrcdir
) -I
$(fsrcdir
)/..
/config \
262 -I
$(fsrcdir
)/..
/..
/include -I
$(fsrcdir
)/..
263 ADA_INCLUDES_FOR_SUBDIR
= -I.
-I
$(fsrcdir
)
265 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
268 # Say how to compile Ada programs.
269 .SUFFIXES
: .ada .adb .ads .asm
271 # Always use -I$(srcdir)/config when compiling.
273 $(CC
) -c
-x assembler
$< $(OUTPUT_OPTION
)
276 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) $(INCLUDES
) $< \
280 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
283 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
285 # how to regenerate this file
286 Makefile
: ..
/config.status
$(srcdir)/Makefile.in
$(srcdir)/..
/version.c
288 LANGUAGES
="$(CONFIG_LANGUAGES)" \
290 CONFIG_FILES
=ada
/Makefile
$(SHELL
) config.status
292 # This tells GNU make version 3 not to export all the variables
293 # defined in this file into the environment.
296 # Lists of files for various purposes.
298 GNATLINK_OBJS
= gnatlink.o \
299 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o gnatvsn.o \
300 hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o osint.o output.o rident.o \
301 s-exctab.o s-secsta.o s-stalib.o s-stoele.o sdefault.o stylesw.o switch.o system.o \
302 table.o tree_io.o types.o validsw.o widechar.o
304 GNATMAKE_OBJS
= a-except.o ctrl_c.o ali.o ali-util.o s-casuti.o \
305 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
306 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
307 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
308 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o mlib-utl.o \
309 namet.o nlists.o opt.o osint.o osint-m.o output.o \
310 prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o prj-err.o prj-ext.o prj-nmsc.o \
311 prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o \
312 rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
313 scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o \
314 sinfo.o sinput.o sinput-c.o sinput-p.o \
315 snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o switch.o switch-m.o \
316 table.o targparm.o tempdir.o tree_io.o types.o \
317 uintp.o uname.o urealp.o usage.o widechar.o \
318 $(EXTRA_GNATMAKE_OBJS
)
320 # Convert the target variable into a space separated list of architecture,
321 # manufacturer, and operating system and assign each of those to its own
324 host
:=$(subst -, ,$(host_canonical
))
325 targ
:=$(subst -, ,$(target
))
326 arch
:=$(word 1,$(targ
))
327 ifeq ($(words $(targ
)),2)
329 osys
:=$(word 2,$(targ
))
331 manu
:=$(word 2,$(targ
))
332 osys
:=$(word 3,$(targ
))
335 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
336 # The members of each pair must be separated by a '<' and no whitespace.
337 # Each pair must be separated by some amount of whitespace from the following
342 LIBGNAT_TARGET_PAIRS
= \
343 a-intnam.ads
<a-intnam-dummy.ads \
344 s-inmaop.adb
<s-inmaop-dummy.adb \
345 s-intman.adb
<s-intman-dummy.adb \
346 s-osinte.ads
<s-osinte-dummy.ads \
347 s-osprim.adb
<s-osprim-posix.adb \
348 s-taprop.adb
<s-taprop-dummy.adb \
349 s-taspri.ads
<s-taspri-dummy.ads
351 # Default shared object option. Note that we rely on the fact that the "soname"
352 # option will always be present and last in this flag, so that we can have
353 # $(SO_OPTS)libgnat-x.xx
355 SO_OPTS
= -Wl
,-soname
,
357 # Default gnatlib-shared target.
358 # By default, equivalent to gnatlib.
359 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
360 # target when supported.
361 GNATLIB_SHARED
= gnatlib
363 # default value for gnatmake's target dependent file
366 # By default, do not distribute prefix.o (in libgccprefix), since it is only
367 # needed by external GNAT tools such as gnatdist and Glide.
368 # Override this variable on native platforms when needed.
371 # To avoid duplicate code, use this variable to set PREFIX_OBJS when needed:
372 PREFIX_REAL_OBJS
= ..
/prefix.o \
373 ..
/..
/libiberty
/concat.o \
374 ..
/..
/libiberty
/xmalloc.o \
375 ..
/..
/libiberty
/xstrdup.o \
376 ..
/..
/libiberty
/xexit.o
378 LIB_VERSION
= $(strip $(shell grep
' Library_Version :' $(fsrcpfx
)gnatvsn.ads | sed
-e
's/.*"\(.*\)".*/\1/'))
380 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
381 # $(strip STRING) removes leading and trailing spaces from STRING.
382 # If what's left is null then it's a match.
384 ifeq ($(strip $(filter-out %86 os2 OS2 os2_emx
,$(arch
) $(osys
))),)
385 LIBGNAT_TARGET_PAIRS
= \
386 a-excpol.adb
<a-excpol-abort.adb \
387 a-intnam.ads
<a-intnam-dummy.ads \
388 a-numaux.adb
<a-numaux-x86.adb \
389 a-numaux.ads
<a-numaux-x86.ads \
390 s-inmaop.adb
<s-inmaop-dummy.adb \
391 s-interr.adb
<s-interr-dummy.adb \
392 s-intman.adb
<s-intman-dummy.adb \
393 s-mastop.adb
<s-mastop-x86.adb \
394 s-osinte.adb
<s-osinte-os2.adb \
395 s-osinte.ads
<s-osinte-os2.ads \
396 s-osprim.adb
<s-osprim-os2.adb \
397 s-parame.adb
<s-parame-os2.adb \
398 system.ads
<system-os2.ads \
399 s-taprop.adb
<s-taprop-os2.adb \
400 s-taspri.ads
<s-taspri-os2.ads
402 EXTRA_GNATRTL_NONTASKING_OBJS
= \
409 ifeq ($(strip $(filter-out %86 interix
%,$(arch
) $(osys
))),)
410 LIBGNAT_TARGET_PAIRS
= \
411 a-excpol.adb
<a-excpol-interix.adb \
412 a-intnam.ads
<a-intnam-interix.ads \
413 a-numaux.adb
<a-numaux-x86.adb \
414 a-numaux.ads
<a-numaux-x86.ads \
415 g-soccon.ads
<g-soccon-interix.ads \
416 s-inmaop.adb
<s-inmaop-posix.adb \
417 s-intman.adb
<s-intman-posix.adb \
418 s-mastop.adb
<s-mastop-x86.adb \
419 s-osinte.adb
<s-osinte-fsu.adb \
420 s-osinte.ads
<s-osinte-interix.ads \
421 s-osprim.adb
<s-osprim-unix.adb \
422 s-taprop.adb
<s-taprop-posix.adb \
423 system.ads
<system-interix.ads \
424 s-taspri.ads
<s-taspri-posix.ads \
425 s-tpopsp.adb
<s-tpopsp-posix.adb
427 THREADSLIB
= -lgthreads
-lmalloc
428 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
431 # sysv5uw is SCO UnixWare 7
432 ifeq ($(strip $(filter-out %86 sysv5uw
%,$(arch
) $(osys
))),)
433 LIBGNAT_TARGET_PAIRS
= \
434 a-excpol.adb
<a-excpol-abort.adb \
435 a-intnam.ads
<a-intnam-unixware.ads \
436 a-numaux.adb
<a-numaux-x86.adb \
437 a-numaux.ads
<a-numaux-x86.ads \
438 s-inmaop.adb
<s-inmaop-posix.adb \
439 s-intman.adb
<s-intman-posix.adb \
440 s-mastop.adb
<s-mastop-x86.adb \
441 s-osinte.ads
<s-osinte-unixware.ads \
442 s-osinte.adb
<s-osinte-unixware.adb \
443 s-osprim.adb
<s-osprim-unix.adb \
444 s-taprop.adb
<s-taprop-posix.adb \
445 s-taspri.ads
<s-taspri-posix.ads \
446 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
447 system.ads
<system-unixware.ads \
448 g-soccon.ads
<g-soccon-unixware.ads \
449 g-soliop.ads
<g-soliop-unixware.ads
451 THREADSLIB
= -lthread
452 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
454 GNATLIB_SHARED
= gnatlib-shared-dual
455 LIBRARY_VERSION
:= $(LIB_VERSION
)
458 ifeq ($(strip $(filter-out alpha
% dec vx
%,$(targ
))),)
459 LIBGNAT_TARGET_PAIRS
= \
460 a-sytaco.ads
<a-sytaco-vxworks.ads \
461 a-sytaco.adb
<a-sytaco-vxworks.adb \
462 a-intnam.ads
<a-intnam-vxworks.ads \
463 a-numaux.ads
<a-numaux-vxworks.ads \
464 s-inmaop.adb
<s-inmaop-posix.adb \
465 s-interr.adb
<s-interr-vxworks.adb \
466 s-intman.ads
<s-intman-vxworks.ads \
467 s-intman.adb
<s-intman-vxworks.adb \
468 s-osinte.adb
<s-osinte-vxworks.adb \
469 s-osinte.ads
<s-osinte-vxworks.ads \
470 s-osprim.adb
<s-osprim-vxworks.adb \
471 s-parame.ads
<s-parame-vxworks.ads \
472 s-stchop.adb
<s-stchop-vxworks.adb \
473 s-taprop.adb
<s-taprop-vxworks.adb \
474 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
475 s-taspri.ads
<s-taspri-vxworks.ads \
476 s-vxwork.ads
<s-vxwork-alpha.ads \
477 g-soccon.ads
<g-soccon-vxworks.ads \
478 g-socthi.ads
<g-socthi-vxworks.ads \
479 g-socthi.adb
<g-socthi-vxworks.adb \
480 system.ads
<system-vxworks-alpha.ads
482 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
483 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
486 ifeq ($(strip $(filter-out m68k
% wrs vx
%,$(targ
))),)
487 LIBGNAT_TARGET_PAIRS
= \
488 a-sytaco.ads
<a-sytaco-vxworks.ads \
489 a-sytaco.adb
<a-sytaco-vxworks.adb \
490 a-intnam.ads
<a-intnam-vxworks.ads \
491 a-numaux.ads
<a-numaux-vxworks.ads \
492 s-inmaop.adb
<s-inmaop-posix.adb \
493 s-interr.adb
<s-interr-vxworks.adb \
494 s-intman.ads
<s-intman-vxworks.ads \
495 s-intman.adb
<s-intman-vxworks.adb \
496 s-osinte.adb
<s-osinte-vxworks.adb \
497 s-osinte.ads
<s-osinte-vxworks.ads \
498 s-osprim.adb
<s-osprim-vxworks.adb \
499 s-parame.ads
<s-parame-vxworks.ads \
500 s-stchop.adb
<s-stchop-vxworks.adb \
501 s-taprop.adb
<s-taprop-vxworks.adb \
502 s-taspri.ads
<s-taspri-vxworks.ads \
503 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
504 s-vxwork.ads
<s-vxwork-m68k.ads \
505 g-soccon.ads
<g-soccon-vxworks.ads \
506 g-socthi.ads
<g-socthi-vxworks.ads \
507 g-socthi.adb
<g-socthi-vxworks.adb \
508 system.ads
<system-vxworks-m68k.ads
510 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
512 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
513 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
515 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
516 LIBGNAT_TARGET_PAIRS
+= \
517 s-traces.adb
<s-traces-default.adb \
518 s-tratas.adb
<s-tratas-default.adb \
519 s-trafor.adb
<s-trafor-default.adb \
520 s-trafor.ads
<s-trafor-default.ads \
521 s-tfsetr.adb
<s-tfsetr-vxworks.adb
525 ifeq ($(strip $(filter-out powerpc
% wrs vxworks
,$(targ
))),)
526 LIBGNAT_TARGET_PAIRS
= \
527 a-sytaco.ads
<a-sytaco-vxworks.ads \
528 a-sytaco.adb
<a-sytaco-vxworks.adb \
529 a-intnam.ads
<a-intnam-vxworks.ads \
530 a-numaux.ads
<a-numaux-vxworks.ads \
531 s-inmaop.adb
<s-inmaop-posix.adb \
532 s-interr.adb
<s-interr-vxworks.adb \
533 s-intman.ads
<s-intman-vxworks.ads \
534 s-intman.adb
<s-intman-vxworks.adb \
535 s-osinte.adb
<s-osinte-vxworks.adb \
536 s-osinte.ads
<s-osinte-vxworks.ads \
537 s-osprim.adb
<s-osprim-vxworks.adb \
538 s-parame.ads
<s-parame-vxworks.ads \
539 s-stchop.adb
<s-stchop-vxworks.adb \
540 s-taprop.adb
<s-taprop-vxworks.adb \
541 s-taspri.ads
<s-taspri-vxworks.ads \
542 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
543 s-vxwork.ads
<s-vxwork-ppc.ads \
544 g-soccon.ads
<g-soccon-vxworks.ads \
545 g-socthi.ads
<g-socthi-vxworks.ads \
546 g-socthi.adb
<g-socthi-vxworks.adb \
547 system.ads
<system-vxworks-ppc.ads
549 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
551 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
552 LIBGNAT_TARGET_PAIRS
+= \
553 s-traces.adb
<s-traces-default.adb \
554 s-trafor.adb
<s-trafor-default.adb \
555 s-trafor.ads
<s-trafor-default.ads \
556 s-tratas.adb
<s-tratas-default.adb \
557 s-tfsetr.adb
<s-tfsetr-vxworks.adb
560 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
561 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
564 ifeq ($(strip $(filter-out sparc
% wrs vx
%,$(targ
))),)
565 LIBGNAT_TARGET_PAIRS
= \
566 a-sytaco.ads
<a-sytaco-vxworks.ads \
567 a-sytaco.adb
<a-sytaco-vxworks.adb \
568 a-intnam.ads
<a-intnam-vxworks.ads \
569 a-numaux.ads
<a-numaux-vxworks.ads \
570 s-inmaop.adb
<s-inmaop-posix.adb \
571 s-interr.adb
<s-interr-vxworks.adb \
572 s-intman.ads
<s-intman-vxworks.ads \
573 s-intman.adb
<s-intman-vxworks.adb \
574 s-osinte.adb
<s-osinte-vxworks.adb \
575 s-osinte.ads
<s-osinte-vxworks.ads \
576 s-osprim.adb
<s-osprim-vxworks.adb \
577 s-parame.ads
<s-parame-vxworks.ads \
578 s-stchop.adb
<s-stchop-vxworks.adb \
579 s-taprop.adb
<s-taprop-vxworks.adb \
580 s-taspri.ads
<s-taspri-vxworks.ads \
581 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
582 s-vxwork.ads
<s-vxwork-sparcv9.ads \
583 g-soccon.ads
<g-soccon-vxworks.ads \
584 g-socthi.ads
<g-socthi-vxworks.ads \
585 g-socthi.adb
<g-socthi-vxworks.adb \
586 system.ads
<system-vxworks-sparcv9.ads \
588 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
590 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
591 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
594 ifeq ($(strip $(filter-out %86 wrs vxworks
,$(targ
))),)
595 LIBGNAT_TARGET_PAIRS
= \
596 a-sytaco.ads
<a-sytaco-vxworks.ads \
597 a-sytaco.adb
<a-sytaco-vxworks.adb \
598 a-intnam.ads
<a-intnam-vxworks.ads \
599 i-vxwork.ads
<i-vxwork-x86.ads \
600 s-inmaop.adb
<s-inmaop-posix.adb \
601 s-interr.adb
<s-interr-vxworks.adb \
602 s-intman.ads
<s-intman-vxworks.ads \
603 s-intman.adb
<s-intman-vxworks.adb \
604 a-numaux.adb
<a-numaux-x86.adb \
605 a-numaux.ads
<a-numaux-x86.ads \
606 s-osinte.adb
<s-osinte-vxworks.adb \
607 s-osinte.ads
<s-osinte-vxworks.ads \
608 s-osprim.adb
<s-osprim-vxworks.adb \
609 s-parame.ads
<s-parame-vxworks.ads \
610 s-stchop.adb
<s-stchop-vxworks.adb \
611 s-taprop.adb
<s-taprop-vxworks.adb \
612 s-taspri.ads
<s-taspri-vxworks.ads \
613 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
614 s-vxwork.ads
<s-vxwork-x86.ads \
615 g-soccon.ads
<g-soccon-vxworks.ads \
616 g-socthi.ads
<g-socthi-vxworks.ads \
617 g-socthi.adb
<g-socthi-vxworks.adb \
618 system.ads
<system-vxworks-x86.ads
620 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
622 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
623 LIBGNAT_TARGET_PAIRS
+= \
624 s-traces.adb
<s-traces-default.adb \
625 s-trafor.adb
<s-trafor-default.adb \
626 s-trafor.ads
<s-trafor-default.ads \
627 s-tratas.adb
<s-tratas-default.adb \
628 s-tfsetr.adb
<s-tfsetr-vxworks.adb
631 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
632 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
635 ifeq ($(strip $(filter-out xscale
% coff wrs vx
%,$(targ
))),)
636 LIBGNAT_TARGET_PAIRS
= \
637 a-sytaco.ads
<a-sytaco-vxworks.ads \
638 a-sytaco.adb
<a-sytaco-vxworks.adb \
639 a-intnam.ads
<a-intnam-vxworks.ads \
640 a-numaux.ads
<a-numaux-vxworks.ads \
641 s-inmaop.adb
<s-inmaop-posix.adb \
642 s-interr.adb
<s-interr-vxworks.adb \
643 s-intman.ads
<s-intman-vxworks.ads \
644 s-intman.adb
<s-intman-vxworks.adb \
645 s-osinte.adb
<s-osinte-vxworks.adb \
646 s-osinte.ads
<s-osinte-vxworks.ads \
647 s-osprim.adb
<s-osprim-vxworks.adb \
648 s-parame.ads
<s-parame-vxworks.ads \
649 s-stchop.adb
<s-stchop-vxworks.adb \
650 s-taprop.adb
<s-taprop-vxworks.adb \
651 s-taspri.ads
<s-taspri-vxworks.ads \
652 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
653 s-vxwork.ads
<s-vxwork-xscale.ads \
654 g-soccon.ads
<g-soccon-vxworks.ads \
655 g-socthi.ads
<g-socthi-vxworks.ads \
656 g-socthi.adb
<g-socthi-vxworks.adb \
657 system.ads
<system-elf-sparc.ads
659 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
661 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
662 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
665 ifeq ($(strip $(filter-out mips
% wrs vx
%,$(targ
))),)
666 LIBGNAT_TARGET_PAIRS
= \
667 a-sytaco.ads
<a-sytaco-vxworks.ads \
668 a-sytaco.adb
<a-sytaco-vxworks.adb \
669 a-intnam.ads
<a-intnam-vxworks.ads \
670 a-numaux.ads
<a-numaux-vxworks.ads \
671 s-inmaop.adb
<s-inmaop-posix.adb \
672 s-interr.adb
<s-interr-vxworks.adb \
673 s-intman.ads
<s-intman-vxworks.ads \
674 s-intman.adb
<s-intman-vxworks.adb \
675 s-osinte.adb
<s-osinte-vxworks.adb \
676 s-osinte.ads
<s-osinte-vxworks.ads \
677 s-osprim.adb
<s-osprim-vxworks.adb \
678 s-parame.ads
<s-parame-vxworks.ads \
679 s-stchop.adb
<s-stchop-vxworks.adb \
680 s-taprop.adb
<s-taprop-vxworks.adb \
681 s-taspri.ads
<s-taspri-vxworks.ads \
682 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
683 s-vxwork.ads
<s-vxwork-mips.ads \
684 g-soccon.ads
<g-soccon-vxworks.ads \
685 g-socthi.ads
<g-socthi-vxworks.ads \
686 g-socthi.adb
<g-socthi-vxworks.adb \
687 system.ads
<system-vxworks-mips.ads
689 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-vxworks.adb
691 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
692 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
695 ifeq ($(strip $(filter-out sparc sun solaris
%,$(targ
))),)
696 LIBGNAT_TARGET_PAIRS
= \
697 a-intnam.ads
<a-intnam-solaris.ads \
698 s-inmaop.adb
<s-inmaop-posix.adb \
699 s-intman.adb
<s-intman-solaris.adb \
700 s-osinte.adb
<s-osinte-solaris.adb \
701 s-osinte.ads
<s-osinte-solaris.ads \
702 s-osprim.adb
<s-osprim-solaris.adb \
703 s-parame.adb
<s-parame-solaris.adb \
704 s-taprop.adb
<s-taprop-solaris.adb \
705 s-tasinf.adb
<s-tasinf-solaris.adb \
706 s-tasinf.ads
<s-tasinf-solaris.ads \
707 s-taspri.ads
<s-taspri-solaris.ads \
708 s-tpopsp.adb
<s-tpopsp-solaris.adb \
709 g-soccon.ads
<g-soccon-solaris.ads \
710 g-soliop.ads
<g-soliop-solaris.ads \
711 system.ads
<system-solaris-sparc.ads
713 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-solaris.adb
715 THREADSLIB
= -lposix4
-lthread
716 MISCLIB
= -lposix4
-lnsl
-lsocket
718 GNATLIB_SHARED
= gnatlib-shared-dual
720 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
721 LIBRARY_VERSION
:= $(LIB_VERSION
)
723 ifeq ($(strip $(filter-out fsu FSU
,$(THREAD_KIND
))),)
724 LIBGNAT_TARGET_PAIRS
= \
725 a-intnam.ads
<a-intnam-solaris.ads \
726 s-inmaop.adb
<s-inmaop-posix.adb \
727 s-intman.adb
<s-intman-solaris.adb \
728 s-osinte.adb
<s-osinte-fsu.adb \
729 s-osinte.ads
<s-osinte-solaris-fsu.ads \
730 s-osprim.adb
<s-osprim-solaris.adb \
731 s-taprop.adb
<s-taprop-posix.adb \
732 s-taspri.ads
<s-taspri-posix.ads \
733 s-tpopsp.adb
<s-tpopsp-posix.adb \
734 g-soccon.ads
<g-soccon-solaris.ads \
735 g-soliop.ads
<g-soliop-solaris.ads \
736 system.ads
<system-solaris-sparc.ads
738 THREADSLIB
= -lgthreads
-lmalloc
741 ifeq ($(strip $(filter-out pthread PTHREAD
,$(THREAD_KIND
))),)
742 LIBGNAT_TARGET_PAIRS
= \
743 a-intnam.ads
<a-intnam-solaris.ads \
744 s-inmaop.adb
<s-inmaop-posix.adb \
745 s-intman.adb
<s-intman-posix.adb \
746 s-osinte.adb
<s-osinte-posix.adb \
747 s-osinte.ads
<s-osinte-solaris-posix.ads \
748 s-osprim.adb
<s-osprim-solaris.adb \
749 s-taprop.adb
<s-taprop-posix.adb \
750 s-taspri.ads
<s-taspri-posix.ads \
751 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
752 g-soccon.ads
<g-soccon-solaris.ads \
753 g-soliop.ads
<g-soliop-solaris.ads \
754 system.ads
<system-solaris-sparc.ads
756 THREADSLIB
= -lposix4
-lpthread
759 ifeq ($(strip $(filter-out m64
,$(THREAD_KIND
))),)
760 LIBGNAT_TARGET_PAIRS
= \
761 a-intnam.ads
<a-intnam-solaris.ads \
762 s-inmaop.adb
<s-inmaop-posix.adb \
763 s-intman.adb
<s-intman-solaris.adb \
764 s-osinte.adb
<s-osinte-solaris.adb \
765 s-osinte.ads
<s-osinte-solaris.ads \
766 s-osprim.adb
<s-osprim-solaris.adb \
767 s-parame.adb
<s-parame-solaris.adb \
768 s-taprop.adb
<s-taprop-solaris.adb \
769 s-tasinf.adb
<s-tasinf-solaris.adb \
770 s-tasinf.ads
<s-tasinf-solaris.ads \
771 s-taspri.ads
<s-taspri-solaris.ads \
772 s-tpopsp.adb
<s-tpopsp-solaris.adb \
773 g-soccon.ads
<g-soccon-solaris.ads \
774 g-soliop.ads
<g-soliop-solaris.ads \
775 system.ads
<system-solaris-sparcv9.ads
779 ifeq ($(strip $(filter-out %86 solaris2
%,$(arch
) $(osys
))),)
780 LIBGNAT_TARGET_PAIRS
= \
781 a-numaux.adb
<a-numaux-x86.adb \
782 a-numaux.ads
<a-numaux-x86.ads \
783 a-intnam.ads
<a-intnam-solaris.ads \
784 s-inmaop.adb
<s-inmaop-posix.adb \
785 s-intman.adb
<s-intman-solaris.adb \
786 s-mastop.adb
<s-mastop-x86.adb \
787 s-osinte.adb
<s-osinte-solaris.adb \
788 s-osinte.ads
<s-osinte-solaris.ads \
789 s-osprim.adb
<s-osprim-solaris.adb \
790 s-parame.adb
<s-parame-solaris.adb \
791 s-taprop.adb
<s-taprop-solaris.adb \
792 s-tasinf.adb
<s-tasinf-solaris.adb \
793 s-tasinf.ads
<s-tasinf-solaris.ads \
794 s-taspri.ads
<s-taspri-solaris.ads \
795 s-tpopsp.adb
<s-tpopsp-solaris.adb \
796 g-soccon.ads
<g-soccon-solaris.ads \
797 g-soliop.ads
<g-soliop-solaris.ads \
798 system.ads
<system-solaris-x86.ads
800 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-solaris.adb
802 THREADSLIB
= -lposix4
-lthread
803 MISCLIB
= -lposix4
-lnsl
-lsocket
805 GNATLIB_SHARED
= gnatlib-shared-dual
807 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
808 LIBRARY_VERSION
:= $(LIB_VERSION
)
811 ifeq ($(strip $(filter-out %86 linux
%,$(arch
) $(osys
))),)
812 LIBGNAT_TARGET_PAIRS
= \
813 a-intnam.ads
<a-intnam-linux.ads \
814 a-numaux.adb
<a-numaux-x86.adb \
815 a-numaux.ads
<a-numaux-x86.ads \
816 s-inmaop.adb
<s-inmaop-posix.adb \
817 s-intman.adb
<s-intman-posix.adb \
818 s-mastop.adb
<s-mastop-x86.adb \
819 s-osinte.adb
<s-osinte-posix.adb \
820 s-osinte.ads
<s-osinte-linux.ads \
821 s-osprim.adb
<s-osprim-posix.adb \
822 s-taprop.adb
<s-taprop-linux.adb \
823 s-taspri.ads
<s-taspri-linux.ads \
824 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
825 s-parame.adb
<s-parame-linux.adb \
826 system.ads
<system-linux-x86.ads
828 TOOLS_TARGET_PAIRS
= \
829 mlib-tgt.adb
<mlib-tgt-linux.adb \
830 indepsw.adb
<indepsw-linux.adb
832 THREADSLIB
= -lpthread
833 GNATLIB_SHARED
= gnatlib-shared-dual
835 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
836 LIBRARY_VERSION
:= $(LIB_VERSION
)
838 ifeq ($(strip $(filter-out fsu FSU
,$(THREAD_KIND
))),)
839 LIBGNAT_TARGET_PAIRS
= \
840 a-intnam.ads
<a-intnam-linux.ads \
841 a-numaux.adb
<a-numaux-x86.adb \
842 a-numaux.ads
<a-numaux-x86.ads \
843 s-inmaop.adb
<s-inmaop-posix.adb \
844 s-intman.adb
<s-intman-posix.adb \
845 s-mastop.adb
<s-mastop-x86.adb \
846 s-osinte.adb
<s-osinte-fsu.adb \
847 s-osinte.ads
<s-osinte-linux-fsu.ads \
848 s-osprim.adb
<s-osprim-posix.adb \
849 s-taprop.adb
<s-taprop-posix.adb \
850 s-taspri.ads
<s-taspri-posix.ads \
851 s-tpopsp.adb
<s-tpopsp-posix.adb \
852 system.ads
<system-linux-x86.ads
854 THREADSLIB
= -lgthreads
-lmalloc
858 ifeq ($(strip $(filter-out %86 freebsd
%,$(arch
) $(osys
))),)
859 LIBGNAT_TARGET_PAIRS
= \
860 a-intnam.ads
<a-intnam-freebsd.ads \
861 a-numaux.adb
<a-numaux-x86.adb \
862 a-numaux.ads
<a-numaux-x86.ads \
863 g-soccon.ads
<g-soccon-freebsd.ads \
864 s-inmaop.adb
<s-inmaop-posix.adb \
865 s-intman.adb
<s-intman-posix.adb \
866 s-mastop.adb
<s-mastop-x86.adb \
867 s-osinte.adb
<s-osinte-freebsd.adb \
868 s-osinte.ads
<s-osinte-freebsd.ads \
869 s-osprim.adb
<s-osprim-posix.adb \
870 s-taprop.adb
<s-taprop-posix.adb \
871 s-taspri.ads
<s-taspri-posix.ads \
872 s-tpopsp.adb
<s-tpopsp-posix.adb \
873 system.ads
<system-freebsd-x86.ads
875 TOOLS_TARGET_PAIRS
= \
876 mlib-tgt.adb
<mlib-tgt-linux.adb
877 GNATLIB_SHARED
= gnatlib-shared-dual
881 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
882 LIBRARY_VERSION
:= $(LIB_VERSION
)
885 ifeq ($(strip $(filter-out s390
% linux
%,$(arch
) $(osys
))),)
886 ifeq ($(strip $(filter-out s390x
,$(arch
))),)
887 LIBGNAT_TARGET_PAIRS
= \
888 a-intnam.ads
<a-intnam-linux.ads \
889 s-inmaop.adb
<s-inmaop-posix.adb \
890 s-intman.adb
<s-intman-posix.adb \
891 s-osinte.adb
<s-osinte-posix.adb \
892 s-osinte.ads
<s-osinte-linux.ads \
893 s-osprim.adb
<s-osprim-posix.adb \
894 s-taprop.adb
<s-taprop-linux.adb \
895 s-taspri.ads
<s-taspri-linux.ads \
896 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
897 s-parame.adb
<s-parame-linux.adb \
898 system.ads
<system-linux-s390x.ads
900 LIBGNAT_TARGET_PAIRS
= \
901 a-intnam.ads
<a-intnam-linux.ads \
902 s-inmaop.adb
<s-inmaop-posix.adb \
903 s-intman.adb
<s-intman-posix.adb \
904 s-osinte.adb
<s-osinte-posix.adb \
905 s-osinte.ads
<s-osinte-linux.ads \
906 s-osprim.adb
<s-osprim-posix.adb \
907 s-taprop.adb
<s-taprop-linux.adb \
908 s-taspri.ads
<s-taspri-linux.ads \
909 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
910 s-parame.adb
<s-parame-linux.adb \
911 system.ads
<system-linux-s390.ads
914 TOOLS_TARGET_PAIRS
= \
915 mlib-tgt.adb
<mlib-tgt-linux.adb
917 THREADSLIB
= -lpthread
918 GNATLIB_SHARED
= gnatlib-shared-dual
919 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
920 LIBRARY_VERSION
:= $(LIB_VERSION
)
923 ifeq ($(strip $(filter-out mips sgi irix
%,$(targ
))),)
924 ifeq ($(strip $(filter-out mips sgi irix6
%,$(targ
))),)
925 LIBGNAT_TARGET_PAIRS
= \
926 a-intnam.ads
<a-intnam-irix.ads \
927 s-inmaop.adb
<s-inmaop-posix.adb \
928 s-intman.adb
<s-intman-irix.adb \
929 s-mastop.adb
<s-mastop-irix.adb \
930 s-osinte.adb
<s-osinte-irix.adb \
931 s-osinte.ads
<s-osinte-irix.ads \
932 s-osprim.adb
<s-osprim-posix.adb \
933 s-proinf.adb
<s-proinf-irix-athread.adb \
934 s-proinf.ads
<s-proinf-irix-athread.ads \
935 s-taprop.adb
<s-taprop-irix.adb \
936 s-tasinf.ads
<s-tasinf-irix.ads \
937 s-taspri.ads
<s-taspri-posix.ads \
938 s-tpopsp.adb
<s-tpopsp-posix.adb \
939 s-traceb.adb
<s-traceb-mastop.adb \
940 g-soccon.ads
<g-soccon-irix.ads \
941 system.ads
<system-irix-n32.ads
943 THREADSLIB
= -lpthread
944 GNATLIB_SHARED
= gnatlib-shared-default
947 LIBGNAT_TARGET_PAIRS
= \
948 a-intnam.ads
<a-intnam-irix.ads \
949 s-inmaop.adb
<s-inmaop-dummy.adb \
950 s-interr.adb
<s-interr-sigaction.adb \
951 s-intman.adb
<s-intman-irix-athread.adb \
952 s-mastop.adb
<s-mastop-irix.adb \
953 s-osinte.adb
<s-osinte-irix.adb \
954 s-osinte.ads
<s-osinte-irix-athread.ads \
955 s-osprim.adb
<s-osprim-posix.adb \
956 s-proinf.adb
<s-proinf-irix-athread.adb \
957 s-proinf.ads
<s-proinf-irix-athread.ads \
958 s-taprop.adb
<s-taprop-irix-athread.adb \
959 s-tasinf.adb
<s-tasinf-irix-athread.adb \
960 s-tasinf.ads
<s-tasinf-irix-athread.ads \
961 s-taspri.ads
<s-taspri-posix.ads \
962 s-traceb.adb
<s-traceb-mastop.adb \
963 g-soccon.ads
<g-soccon-irix.ads \
964 system.ads
<system-irix-o32.ads
967 TOOLS_TARGET_PAIRS
= mlib-tgt.adb
<mlib-tgt-irix.adb
970 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
971 LIBRARY_VERSION
:= $(LIB_VERSION
)
974 ifeq ($(strip $(filter-out hppa
% hp hpux10
%,$(targ
))),)
975 LIBGNAT_TARGET_PAIRS
= \
976 a-excpol.adb
<a-excpol-abort.adb \
977 a-intnam.ads
<a-intnam-hpux.ads \
978 s-inmaop.adb
<s-inmaop-posix.adb \
979 s-interr.adb
<s-interr-sigaction.adb \
980 s-intman.adb
<s-intman-posix.adb \
981 s-osinte.adb
<s-osinte-hpux-dce.adb \
982 s-osinte.ads
<s-osinte-hpux-dce.ads \
983 s-parame.ads
<s-parame-hpux.ads \
984 s-osprim.adb
<s-osprim-posix.adb \
985 s-taprop.adb
<s-taprop-hpux-dce.adb \
986 s-taspri.ads
<s-taspri-hpux-dce.ads \
987 s-tpopsp.adb
<s-tpopsp-posix.adb \
988 g-soccon.ads
<g-soccon-hpux.ads \
989 system.ads
<system-hpux.ads
991 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
994 ifeq ($(strip $(filter-out hppa
% hp hpux11
%,$(targ
))),)
995 LIBGNAT_TARGET_PAIRS
= \
996 a-intnam.ads
<a-intnam-hpux.ads \
997 s-inmaop.adb
<s-inmaop-posix.adb \
998 s-intman.adb
<s-intman-posix.adb \
999 s-osinte.adb
<s-osinte-posix.adb \
1000 s-osinte.ads
<s-osinte-hpux.ads \
1001 s-parame.ads
<s-parame-hpux.ads \
1002 s-osprim.adb
<s-osprim-posix.adb \
1003 s-traceb.adb
<s-traceb-hpux.adb \
1004 s-taprop.adb
<s-taprop-posix.adb \
1005 s-taspri.ads
<s-taspri-posix.ads \
1006 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1007 g-soccon.ads
<g-soccon-hpux.ads \
1008 system.ads
<system-hpux.ads
1010 TOOLS_TARGET_PAIRS
= mlib-tgt.adb
<mlib-tgt-hpux.adb
1011 TGT_LIB
= /usr
/lib
/libcl.a
1012 THREADSLIB
= -lpthread
1016 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1017 GNATLIB_SHARED
= gnatlib-shared-dual
1018 LIBRARY_VERSION
:= $(LIB_VERSION
)
1020 ifeq ($(strip $(filter-out dce DCE
,$(THREAD_KIND
))),)
1021 LIBGNAT_TARGET_PAIRS
= \
1022 a-excpol.adb
<a-excpol-abort.adb \
1023 a-intnam.ads
<a-intnam-hpux.ads \
1024 s-inmaop.adb
<s-inmaop-posix.adb \
1025 s-interr.adb
<s-interr-sigaction.adb \
1026 s-intman.adb
<s-intman-posix.adb \
1027 s-osinte.adb
<s-osinte-hpux-dce.adb \
1028 s-osinte.ads
<s-osinte-hpux-dce.ads \
1029 s-parame.ads
<s-parame-hpux.ads \
1030 s-osprim.adb
<s-osprim-posix.adb \
1031 s-taprop.adb
<s-taprop-hpux-dce.adb \
1032 s-taspri.ads
<s-taspri-hpux-dce.ads \
1033 s-tpopsp.adb
<s-tpopsp-posix.adb \
1034 g-soccon.ads
<g-soccon-hpux.ads \
1035 system.ads
<system-hpux.ads
1042 ifeq ($(strip $(filter-out ibm aix
%,$(manu
) $(osys
))),)
1043 LIBGNAT_TARGET_PAIRS
= \
1044 a-intnam.ads
<a-intnam-aix.ads \
1045 s-inmaop.adb
<s-inmaop-posix.adb \
1046 s-intman.adb
<s-intman-posix.adb \
1047 s-osinte.adb
<s-osinte-aix.adb \
1048 s-osinte.ads
<s-osinte-aix.ads \
1049 s-osprim.adb
<s-osprim-posix.adb \
1050 s-taprop.adb
<s-taprop-posix.adb \
1051 s-taspri.ads
<s-taspri-posix.ads \
1052 s-tpopsp.adb
<s-tpopsp-posix.adb \
1053 g-soccon.ads
<g-soccon-aix.ads \
1054 system.ads
<system-aix.ads
1056 THREADSLIB
= -lpthreads
1057 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1059 ifeq ($(strip $(filter-out fsu FSU
,$(THREAD_KIND
))),)
1060 LIBGNAT_TARGET_PAIRS
= \
1061 a-intnam.ads
<a-intnam-aix.ads \
1062 s-inmaop.adb
<s-inmaop-posix.adb \
1063 s-intman.adb
<s-intman-posix.adb \
1064 s-osinte.adb
<s-osinte-fsu.adb \
1065 s-osinte.ads
<s-osinte-aix-fsu.ads \
1066 s-osprim.adb
<s-osprim-posix.adb \
1067 s-taprop.adb
<s-taprop-posix.adb \
1068 s-taspri.ads
<s-taspri-posix.ads \
1069 s-tpopsp.adb
<s-tpopsp-posix.adb \
1070 g-soccon.ads
<g-soccon-aix.ads \
1071 system.ads
<system-aix.ads
1073 THREADSLIB
= -lgthreads
-lmalloc
1076 TOOLS_TARGET_PAIRS
= \
1077 mlib-tgt.adb
<mlib-tgt-aix.adb \
1078 indepsw.adb
<indepsw-aix.adb
1083 ifeq ($(strip $(filter-out lynxos
,$(osys
))),)
1084 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-lynxos.adb
1086 ifeq ($(strip $(filter-out %86 lynxos
,$(arch
) $(osys
))),)
1087 LIBGNAT_TARGET_PAIRS
= \
1088 a-numaux.adb
<a-numaux-x86.adb \
1089 a-numaux.ads
<a-numaux-x86.ads \
1090 a-intnam.ads
<a-intnam-lynxos.ads \
1091 s-mastop.adb
<s-mastop-x86.adb \
1092 s-inmaop.adb
<s-inmaop-posix.adb \
1093 s-intman.adb
<s-intman-posix.adb \
1094 s-osinte.adb
<s-osinte-lynxos.adb \
1095 s-osinte.ads
<s-osinte-lynxos.ads \
1096 s-osprim.adb
<s-osprim-posix.adb \
1097 s-taprop.adb
<s-taprop-lynxos.adb \
1098 s-taspri.ads
<s-taspri-lynxos.ads \
1099 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
1100 system.ads
<system-lynxos-x86.ads
1102 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1105 LIBGNAT_TARGET_PAIRS
= \
1106 a-intnam.ads
<a-intnam-lynxos.ads \
1107 s-inmaop.adb
<s-inmaop-posix.adb \
1108 s-intman.adb
<s-intman-posix.adb \
1109 s-osinte.adb
<s-osinte-lynxos-3.adb \
1110 s-osinte.ads
<s-osinte-lynxos-3.ads \
1111 s-osprim.adb
<s-osprim-posix.adb \
1112 s-taprop.adb
<s-taprop-posix.adb \
1113 s-taspri.ads
<s-taspri-posix.ads \
1114 s-tpopsp.adb
<s-tpopsp-posix.adb \
1115 system.ads
<system-lynxos-ppc.ads
1117 ifeq ($(strip $(filter-out pthread PTHREAD
,$(THREAD_KIND
))),)
1118 LIBGNAT_TARGET_PAIRS
= \
1119 a-intnam.ads
<a-intnam-lynxos.ads \
1120 s-inmaop.adb
<s-inmaop-posix.adb \
1121 s-intman.adb
<s-intman-posix.adb \
1122 s-osinte.adb
<s-osinte-lynxos.adb \
1123 s-osinte.ads
<s-osinte-lynxos.ads \
1124 s-osprim.adb
<s-osprim-posix.adb \
1125 s-taprop.adb
<s-taprop-lynxos.adb \
1126 s-taspri.ads
<s-taspri-lynxos.ads \
1127 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
1128 system.ads
<system-lynxos-ppc.ads
1133 ifeq ($(strip $(filter-out rtems
%,$(osys
))),)
1134 LIBGNAT_TARGET_PAIRS
= \
1135 a-intnam.ads
<4rintnam.ads \
1136 s-inmaop.adb
<s-inmaop-posix.adb \
1137 s-intman.adb
<s-intman-posix.adb \
1138 s-osinte.adb
<5rosinte.adb \
1139 s-osinte.ads
<5rosinte.ads \
1140 s-osprim.adb
<s-osprim-posix.adb \
1141 s-parame.adb
<5rparame.adb \
1142 s-taprop.adb
<s-taprop-posix.adb \
1143 s-taspri.ads
<s-taspri-posix.ads \
1144 s-tpopsp.adb
<5rtpopsp.adb
1147 ifeq ($(strip $(filter-out alpha
% dec osf
%,$(targ
))),)
1148 LIBGNAT_TARGET_PAIRS
= \
1149 a-intnam.ads
<a-intnam-tru64.ads \
1150 s-inmaop.adb
<s-inmaop-posix.adb \
1151 s-intman.adb
<s-intman-posix.adb \
1152 s-mastop.adb
<s-mastop-tru64.adb \
1153 s-osinte.adb
<s-osinte-tru64.adb \
1154 s-osinte.ads
<s-osinte-tru64.ads \
1155 s-osprim.adb
<s-osprim-unix.adb \
1156 s-taprop.adb
<s-taprop-tru64.adb \
1157 s-tasinf.ads
<s-tasinf-tru64.ads \
1158 s-taspri.ads
<s-taspri-tru64.ads \
1159 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1160 s-traceb.adb
<s-traceb-mastop.adb \
1161 g-soccon.ads
<g-soccon-tru64.ads \
1162 system.ads
<system-tru64.ads
1164 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-tru64.adb
1167 THREADSLIB
= -lpthread
-lmach
-lexc
-lrt
1168 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1169 GNATLIB_SHARED
= gnatlib-shared-default
1170 LIBRARY_VERSION
:= $(LIB_VERSION
)
1173 ifeq ($(strip $(filter-out alpha
% ia64 dec hp vms
% openvms
% alphavms
%,$(host
))),)
1178 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1185 @ gnu
:[bin
]vmssymvec
$<
1188 ifeq ($(strip $(filter-out alpha
% ia64 dec hp vms
% openvms
% alphavms
%,$(targ
))),)
1189 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1190 LIBGNAT_TARGET_PAIRS_AUX1
= \
1191 s-auxdec.ads
<s-auxdec-vms_64.ads \
1192 s-crtl.ads
<s-crtl-vms.ads \
1193 s-osinte.adb
<s-osinte-vms-ia64.adb \
1194 s-osinte.ads
<s-osinte-vms-ia64.ads \
1195 system.ads
<system-vms_64.ads
1197 ifeq ($(strip $(filter-out alpha
% dec vms
% openvms
% alphavms
%,$(targ
))),)
1198 LIBGNAT_TARGET_PAIRS_AUX1
= \
1199 s-crtl.ads
<s-crtl-vms.ads \
1200 s-osinte.adb
<s-osinte-vms.adb \
1201 s-osinte.ads
<s-osinte-vms.ads \
1202 s-vaflop.adb
<s-vaflop-vms-alpha.adb \
1203 system.ads
<system-vms-zcx.ads
1206 ifeq ($(strip $(filter-out express EXPRESS
,$(THREAD_KIND
))),)
1207 LIBGNAT_TARGET_PAIRS_AUX2
= \
1208 s-parame.ads
<s-parame-vms-restrict.ads
1210 LIBGNAT_TARGET_PAIRS_AUX2
= \
1211 s-parame.ads
<s-parame-vms.ads
1214 LIBGNAT_TARGET_PAIRS
= \
1215 a-caldel.adb
<a-caldel-vms.adb \
1216 a-calend.adb
<a-calend-vms.adb \
1217 a-calend.ads
<a-calend-vms.ads \
1218 a-dirval.adb
<a-dirval-vms.adb \
1219 a-excpol.adb
<a-excpol-abort.adb \
1220 a-intnam.ads
<a-intnam-vms.ads \
1221 a-numaux.ads
<a-numaux-vms.ads \
1222 g-expect.adb
<g-expect-vms.adb \
1223 g-soccon.ads
<g-soccon-vms.adb \
1224 g-socthi.ads
<g-socthi-vms.ads \
1225 g-socthi.adb
<g-socthi-vms.adb \
1226 g-trasym.adb
<g-trasym-vms.adb \
1227 i-cstrea.adb
<i-cstrea-vms.adb \
1228 i-cpp.adb
<i-cpp-vms.adb \
1229 interfac.ads
<interfac-vms.ads \
1230 s-asthan.adb
<s-asthan-vms.adb \
1231 s-inmaop.adb
<s-inmaop-vms.adb \
1232 s-interr.adb
<s-interr-vms.adb \
1233 s-intman.adb
<s-intman-vms.adb \
1234 s-intman.ads
<s-intman-vms.ads \
1235 s-osprim.adb
<s-osprim-vms.adb \
1236 s-osprim.ads
<s-osprim-vms.ads \
1237 s-taprop.adb
<s-taprop-vms.adb \
1238 s-taspri.ads
<s-taspri-vms.ads \
1239 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1240 s-tpopde.adb
<s-tpopde-vms.adb \
1241 s-tpopde.ads
<s-tpopde-vms.ads \
1242 s-traent.adb
<s-traent-vms.adb \
1243 s-traent.ads
<s-traent-vms.ads \
1244 $(LIBGNAT_TARGET_PAIRS_AUX1
) \
1245 $(LIBGNAT_TARGET_PAIRS_AUX2
)
1247 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1248 TOOLS_TARGET_PAIRS
= \
1249 mlib-tgt.adb
<mlib-tgt-vms-ia64.adb \
1250 symbols.adb
<symbols-vms-ia64.adb
1252 TOOLS_TARGET_PAIRS
= \
1253 mlib-tgt.adb
<mlib-tgt-vms-alpha.adb \
1254 symbols.adb
<symbols-vms-alpha.adb
1257 GNATLIB_SHARED
=gnatlib-shared-vms
1258 ifeq ($(strip $(filter-out alpha
% dec vms
% openvms
% alphavms
%,$(targ
))),)
1259 EXTRA_LIBGNAT_SRCS
=vmshandler.asm
1260 EXTRA_LIBGNAT_OBJS
=vmshandler.o
1262 EXTRA_GNATRTL_TASKING_OBJS
=s-tpopde.o
1264 ..
/..
/gnatlbr
$(exeext
) \
1265 ,,/..
/gnatsym
$(exeext
)
1266 # This command transforms (YYYYMMDD) into YY,MMDD
1267 GSMATCH_VERSION
:= $(shell grep
"^ *Gnat_Static_Version_String" $(fsrcpfx
)gnatvsn.ads | sed
-e
's/.*(\(.*\)).*/\1/' -e
's/\(..\)\(..\)\(....\)/\2,\3/')
1268 TOOLS_LIBS_LO
:= --for-linker
=sys
\\$$\
$$library:trace.exe
1269 LIBRARY_VERSION
:= $(subst .
,_
,$(LIB_VERSION
))
1272 ifeq ($(strip $(filter-out cygwin32
% mingw32
% pe
,$(osys
))),)
1273 LIBGNAT_TARGET_PAIRS
= \
1274 a-calend.adb
<a-calend-mingw.adb \
1275 a-dirval.adb
<a-dirval-mingw.adb \
1276 a-excpol.adb
<a-excpol-abort.adb \
1277 a-intnam.ads
<a-intnam-mingw.ads \
1278 a-numaux.adb
<a-numaux-x86.adb \
1279 a-numaux.ads
<a-numaux-x86.ads \
1280 s-gloloc.adb
<s-gloloc-mingw.adb \
1281 s-inmaop.adb
<s-inmaop-dummy.adb \
1282 s-interr.adb
<s-interr-sigaction.adb \
1283 s-intman.adb
<s-intman-mingw.adb \
1284 s-mastop.adb
<s-mastop-x86.adb \
1285 s-memory.adb
<s-memory-mingw.adb \
1286 s-osinte.ads
<s-osinte-mingw.ads \
1287 s-osprim.adb
<s-osprim-mingw.adb \
1288 s-taprop.adb
<s-taprop-mingw.adb \
1289 s-taspri.ads
<s-taspri-mingw.ads \
1290 s-parame.adb
<s-parame-mingw.adb \
1291 g-socthi.ads
<g-socthi-mingw.ads \
1292 g-socthi.adb
<g-socthi-mingw.adb \
1293 g-soccon.ads
<g-soccon-mingw.ads \
1294 g-soliop.ads
<g-soliop-mingw.ads \
1295 system.ads
<system-mingw.ads
1297 TOOLS_TARGET_PAIRS
= \
1298 mlib-tgt.adb
<mlib-tgt-mingw.adb \
1299 indepsw.adb
<indepsw-mingw.adb
1303 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1304 EXTRA_GNATTOOLS
= ..
/..
/gnatdll
$(exeext
)
1305 EXTRA_GNATMAKE_OBJS
= mdll.o mdll-utl.o mdll-fil.o
1306 EXTRA_GNATRTL_NONTASKING_OBJS
= g-regist.o
1308 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT auto-import
1309 # support for array/record will be done.
1310 GNATLIB_SHARED
= gnatlib-shared-win32
1311 LIBRARY_VERSION
:= $(LIB_VERSION
)
1314 ifeq ($(strip $(filter-out powerpc
% linux
%,$(arch
) $(osys
))),)
1315 LIBGNAT_TARGET_PAIRS
= \
1316 a-intnam.ads
<a-intnam-linux.ads \
1317 s-inmaop.adb
<s-inmaop-posix.adb \
1318 s-intman.adb
<s-intman-posix.adb \
1319 s-osinte.adb
<s-osinte-posix.adb \
1320 s-osinte.ads
<s-osinte-linux.ads \
1321 s-osprim.adb
<s-osprim-posix.adb \
1322 s-taprop.adb
<s-taprop-linux.adb \
1323 s-taspri.ads
<s-taspri-linux.ads \
1324 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1325 s-parame.adb
<s-parame-linux.adb \
1326 system.ads
<system-linux-ppc.ads
1328 TOOLS_TARGET_PAIRS
= \
1329 mlib-tgt.adb
<mlib-tgt-linux.adb \
1330 indepsw.adb
<indepsw-linux.adb
1332 THREADSLIB
= -lpthread
1333 GNATLIB_SHARED
= gnatlib-shared-dual
1335 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1336 LIBRARY_VERSION
:= $(LIB_VERSION
)
1340 ifeq ($(strip $(filter-out %ia64 linux
%,$(arch
) $(osys
))),)
1341 LIBGNAT_TARGET_PAIRS
= \
1342 a-intnam.ads
<a-intnam-linux.ads \
1343 a-numaux.ads
<a-numaux-libc-x86.ads \
1344 s-inmaop.adb
<s-inmaop-posix.adb \
1345 s-intman.adb
<s-intman-posix.adb \
1346 s-osinte.ads
<s-osinte-linux.ads \
1347 s-osinte.adb
<s-osinte-posix.adb \
1348 s-osprim.adb
<s-osprim-posix.adb \
1349 s-taprop.adb
<s-taprop-linux.adb \
1350 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1351 s-taspri.ads
<s-taspri-linux.ads \
1352 system.ads
<system-linux-ia64.ads
1354 TOOLS_TARGET_PAIRS
= \
1355 mlib-tgt.adb
<mlib-tgt-linux.adb \
1356 indepsw.adb
<indepsw-linux.adb
1359 THREADSLIB
=-lpthread
1360 GNATLIB_SHARED
=gnatlib-shared-dual
1361 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1362 LIBRARY_VERSION
:= $(LIB_VERSION
)
1365 ifeq ($(strip $(filter-out %x86_64 linux
%,$(arch
) $(osys
))),)
1366 LIBGNAT_TARGET_PAIRS
= \
1367 a-intnam.ads
<a-intnam-linux.ads \
1368 a-numaux.adb
<a-numaux-x86.adb \
1369 a-numaux.ads
<a-numaux-x86.ads \
1370 s-inmaop.adb
<s-inmaop-posix.adb \
1371 s-intman.adb
<s-intman-posix.adb \
1372 s-osinte.ads
<s-osinte-linux.ads \
1373 s-osinte.adb
<s-osinte-posix.adb \
1374 s-osprim.adb
<s-osprim-posix.adb \
1375 s-taprop.adb
<s-taprop-linux.adb \
1376 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1377 s-taspri.ads
<s-taspri-linux.ads \
1378 system.ads
<system-linux-x86_64.ads
1380 TOOLS_TARGET_PAIRS
=mlib-tgt.adb
<mlib-tgt-linux.adb
1381 THREADSLIB
=-lpthread
1382 GNATLIB_SHARED
=gnatlib-shared-dual
1384 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1385 LIBRARY_VERSION
:= $(LIB_VERSION
)
1388 ifeq ($(strip $(filter-out powerpc darwin
%,$(arch
) $(osys
))),)
1389 LIBGNAT_TARGET_PAIRS
= \
1390 a-intnam.ads
<a-intnam-darwin.ads \
1391 s-inmaop.adb
<s-inmaop-posix.adb \
1392 s-intman.adb
<s-intman-posix.adb \
1393 s-osinte.adb
<s-osinte-darwin.adb \
1394 s-osinte.ads
<s-osinte-darwin.ads \
1395 s-osprim.adb
<s-osprim-posix.adb \
1396 s-taprop.adb
<s-taprop-posix.adb \
1397 s-taspri.ads
<s-taspri-posix.ads \
1398 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1399 g-soccon.ads
<g-soccon-darwin.ads \
1400 a-numaux.ads
<a-numaux-darwin.ads \
1401 a-numaux.adb
<a-numaux-darwin.adb \
1402 system.ads
<system-darwin-ppc.ads
1404 TOOLS_TARGET_PAIRS
= \
1405 mlib-tgt.adb
<mlib-tgt-darwin.adb
1407 GNATLIB_SHARED
= gnatlib-shared-darwin
1408 SO_OPTS
= -Wl
,-flat_namespace
1412 LIBRARY_VERSION
:= $(LIB_VERSION
)
1416 # The runtime library for gnat comprises two directories. One contains the
1417 # Ada source files that the compiler (gnat1) needs -- these files are listed
1418 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1419 # corresponding .ali files for the parts written in Ada, libgnat.a for
1420 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1421 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1422 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1423 # go into the directory. The pthreads emulation is built in the threads
1424 # subdirectory and copied.
1425 LIBGNAT_SRCS
= ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1426 errno.c exit.c cal.c ctrl_c.c \
1427 raise.h raise.c sysdep.c aux-io.c init.c \
1428 final.c tracebak.c tb-alvms.c tb-alvxw.c expect.c mkdir.c socket.c gsocket.h \
1429 $(EXTRA_LIBGNAT_SRCS
)
1431 LIBGNAT_OBJS
= adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o \
1432 raise.o sysdep.o aux-io.o init.o cal.o final.o \
1433 tracebak.o expect.o mkdir.o socket.o
$(EXTRA_LIBGNAT_OBJS
)
1435 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1436 # the library installation will change and there will be a
1437 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1438 # from ADA_INCLUDE_SRCS.
1440 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1441 # the following include file:
1443 include $(fsrcdir
)/Makefile.rtl
1445 GNATRTL_OBJS
= $(GNATRTL_NONTASKING_OBJS
) $(GNATRTL_TASKING_OBJS
) \
1446 g-trasym.o memtrack.o
1448 # Default run time files
1451 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1452 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1453 sequenio.ads system.ads Makefile.prolog Makefile.generic \
1455 a-
*.adb a-
*.ads g-
*.ad? i-
*.ad? \
1456 s-
[a-o
]*.adb s-
[p-z
]*.adb \
1457 s-
[a-o
]*.ads s-
[p-z
]*.ads
1459 LIBGNAT
=..
/rts
/libgnat.a
1460 TOOLS_FLAGS_TO_PASS
= \
1462 "CFLAGS=$(CFLAGS)" \
1463 "LDFLAGS=$(LDFLAGS)" \
1464 "ADAFLAGS=$(ADAFLAGS)" \
1465 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
1466 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
1467 "libsubdir=$(libsubdir)" \
1468 "exeext=$(exeext)" \
1469 "fsrcdir=$(fsrcdir)" \
1470 "srcdir=$(fsrcdir)" \
1471 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
1472 "GNATMAKE=$(GNATMAKE)" \
1473 "GNATLINK=$(GNATLINK)" \
1474 "GNATBIND=$(GNATBIND)"
1476 # Build directory for the tools. Let's copy the target-dependent
1477 # sources using the same mechanism as for gnatlib. The other sources are
1478 # accessed using the vpath directive below
1484 -(cd tools
; $(LN_S
) ..
/sdefault.adb .
)
1485 -$(foreach PAIR
,$(TOOLS_TARGET_PAIRS
), \
1486 $(RM
) tools
/$(word 1,$(subst <, ,$(PAIR
)));\
1487 $(LN_S
) $(fsrcdir
)/$(word 2,$(subst <, ,$(PAIR
))) \
1488 tools
/$(word 1,$(subst <, ,$(PAIR
)));)
1489 touch ..
/stamp-tools
1491 # when compiling the tools, the runtime has to be first on the path so that
1492 # it hides the runtime files lying with the rest of the sources
1493 ifeq ($(TOOLSCASE
),native
)
1494 vpath
%.ads ..
/rts ..
/
1495 vpath
%.adb ..
/rts ..
/
1496 vpath
%.c ..
/rts ..
/
1497 vpath
%.h ..
/rts ..
/
1500 # in the cross tools case, everything is compiled with the native
1501 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1502 ifeq ($(TOOLSCASE
),cross
)
1509 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
1510 # reasons: gnatmake should be built with a recent compiler, a recent compiler
1511 # may not generate ALI files compatible with an old gnatmake so it is important
1512 # to be able to build gnatmake without a version of gnatmake around. Once
1513 # everything has been compiled once, gnatmake can be recompiled with itself
1514 # (see target gnattools1-re)
1515 gnattools1
: ..
/stamp-tools ..
/stamp-gnatlib
1516 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
1518 ..
/..
/gnatmake
$(exeext
) ..
/..
/gnatlink
$(exeext
) ..
/..
/gnatbl
$(exeext
)
1520 # gnatmake/link can be built with recent gnatmake/link if they are available.
1521 # This is especially convenient for building cross tools or for rebuilding
1522 # the tools when the original bootstrap has already be done.
1523 gnattools1-re
: ..
/stamp-tools
1524 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
1525 TOOLSCASE
=cross INCLUDES
="" gnatmake-re gnatlink-re
1527 # these tools are built with gnatmake & are common to native and cross
1528 gnattools2
: ..
/stamp-tools
1529 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
1531 ..
/..
/gnatchop
$(exeext
) ..
/..
/gnat
$(exeext
) ..
/..
/gnatkr
$(exeext
) \
1532 ..
/..
/gnatls
$(exeext
) ..
/..
/gnatprep
$(exeext
) \
1533 ..
/..
/gnatxref
$(exeext
) \
1534 ..
/..
/gnatfind
$(exeext
) ..
/..
/gnatname
$(exeext
) \
1535 ..
/..
/gnatclean
$(exeext
) ..
/..
/gprmake
$(exeext
)
1537 # These tools are only built for the native version.
1538 gnattools3
: ..
/stamp-tools
1539 ifneq ($(EXTRA_GNATTOOLS
),)
1540 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
1541 TOOLSCASE
=native top_builddir
=..
/..
/..
$(EXTRA_GNATTOOLS
)
1544 # those tools are only built for the cross version
1545 gnattools4
: ..
/stamp-tools
1546 $(MAKE
) -C tools
-f ..
/Makefile
$(TOOLS_FLAGS_TO_PASS
) \
1547 TOOLSCASE
=cross top_buildir
=..
/..
/.. \
1548 ..
/..
/vxaddr2line
$(exeext
)
1550 ..
/..
/gnatchop
$(exeext
): ..
/stamp-tools
1551 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatchop
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1552 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatchop
1553 $(GNATLINK
) -v gnatchop
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1556 ..
/..
/gnat
$(exeext
): ..
/stamp-tools
1557 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatcmd
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1558 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatcmd
1559 $(GNATLINK
) -v gnatcmd
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS
)
1561 ..
/..
/gnatkr
$(exeext
): ..
/stamp-tools
1562 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatkr
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1563 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatkr
1564 $(GNATLINK
) -v gnatkr
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS
)
1566 ..
/..
/gnatls
$(exeext
): ..
/stamp-tools
1567 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatls
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1568 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatls
1569 $(GNATLINK
) -v gnatls
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS
)
1571 ..
/..
/gnatname
$(exeext
): ..
/stamp-tools
1572 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatname
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1573 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatname
1574 $(GNATLINK
) -v gnatname
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1577 ..
/..
/gprmake
$(exeext
): ..
/stamp-tools
1578 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gprmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1579 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gprmake
1580 $(GNATLINK
) -v gprmake
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1583 ..
/..
/gnatprep
$(exeext
): ..
/stamp-tools
1584 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatprep
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1585 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatprep
1586 $(GNATLINK
) -v gnatprep
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1589 ..
/..
/gnatxref
$(exeext
): ..
/stamp-tools
1590 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatxref
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1591 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatxref
1592 $(GNATLINK
) -v gnatxref
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1595 ..
/..
/gnatfind
$(exeext
): ..
/stamp-tools
1596 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatfind
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1597 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatfind
1598 $(GNATLINK
) -v gnatfind
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1601 ..
/..
/gnatclean
$(exeext
): ..
/stamp-tools
1602 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatclean
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1603 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatclean
1604 $(GNATLINK
) -v gnatclean
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1607 ..
/..
/gnatsym
$(exeext
): ..
/stamp-tools
1608 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatsym
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1609 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatsym
1610 $(GNATLINK
) -v gnatsym
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1613 ..
/..
/gnatdll
$(exeext
): ..
/stamp-tools
1614 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatdll
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1615 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) $(GNATBIND_FLAGS
) gnatdll
1616 $(GNATLINK
) -v gnatdll
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \
1619 ..
/..
/vxaddr2line
$(exeext
): ..
/stamp-tools
1620 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vxaddr2line
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1621 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vxaddr2line
1622 $(GNATLINK
) -v vxaddr2line
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" $(CLIB
)
1624 gnatmake-re
: ..
/stamp-tools link.o
1625 $(GNATMAKE
) $(ADA_INCLUDES
) -u sdefault
--GCC
="$(CC) $(MOST_ADA_FLAGS)"
1626 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1627 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmake
1628 $(GNATLINK
) -v gnatmake
-o ..
/..
/gnatmake
$(exeext
) \
1629 --GCC
="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS
)
1631 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1632 # with the former version of gnatlink itself which cannot override itself.
1633 gnatlink-re
: ..
/stamp-tools link.o
1634 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlink
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1635 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlink
1636 $(GNATLINK
) -v gnatlink
-o ..
/..
/gnatlinknew
$(exeext
) \
1637 --GCC
="$(CC) $(ADA_INCLUDES)" $(TOOLS_LIBS
)
1638 $(MV
) ..
/..
/gnatlinknew
$(exeext
) ..
/..
/gnatlink
$(exeext
)
1640 # Needs to be built with CC=gcc
1641 # Since the RTL should be built with the latest compiler, remove the
1642 # stamp target in the parent directory whenever gnat1 is rebuilt
1644 # Likewise for the tools
1645 ..
/..
/gnatmake
$(exeext
): $(P
) b_gnatm.o link.o
$(GNATMAKE_OBJS
)
1646 $(CC
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatm.o
$(GNATMAKE_OBJS
) \
1649 ..
/..
/gnatlink
$(exeext
): $(P
) b_gnatl.o link.o
$(GNATLINK_OBJS
)
1650 $(CC
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatl.o
$(GNATLINK_OBJS
) \
1653 ..
/..
/gnatbl
$(exeext
): gnatbl.o
1654 $(CC
) -o
$@
$(ALL_CFLAGS
) $(LDFLAGS
) gnatbl.o
$(TOOLS_LIBS
)
1656 gnatbl.o
: gnatbl.c adaint.h
1657 $(CC
) $(ALL_CFLAGS
) $(INCLUDES
) -c
$< $(OUTPUT_OPTION
)
1660 @if
[ ! -f stamp-gnatlib
] ; \
1662 $(ECHO
) You must first build the GNAT library
: make gnatlib
; \
1668 install-gnatlib
: ..
/stamp-gnatlib
1669 # Create the directory before deleting it, in case the directory is
1670 # a list of directories (as it may be on VMS). This ensures we are
1671 # deleting the right one.
1672 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1673 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1674 -$(MKDIR
) $(DESTDIR
)$(ADA_SHARE_MAKE_DIR
)
1675 $(RMDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1676 $(RMDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1677 $(RMDIR
) $(DESTDIR
)$(ADA_SHARE_MAKE_DIR
)
1678 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1679 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1680 -$(MKDIR
) $(DESTDIR
)$(ADA_SHARE_MAKE_DIR
)
1681 -$(INSTALL_DATA
) rts
/Makefile.prolog
$(DESTDIR
)$(ADA_SHARE_MAKE_DIR
)
1682 -$(INSTALL_DATA
) rts
/Makefile.generic
$(DESTDIR
)$(ADA_SHARE_MAKE_DIR
)
1683 for file in rts
/*.ali
; do \
1684 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1686 -$(INSTALL_DATA
) rts
/g-trasym
$(objext
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1687 -cd rts
; for file in
*$(arext
);do \
1688 $(INSTALL_DATA
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1689 $(RANLIB
) $(RANLIB_FLAGS
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/$$file; \
1691 -$(foreach file
, $(EXTRA_ADALIB_FILES
), \
1692 $(INSTALL_DATA_DATE
) rts
/$(file
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
) && \
1694 # Install the shared libraries, if any, using $(INSTALL) instead
1695 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1696 # for shared libraries on some targets, e.g. on HP-UX where the x
1697 # permission is required.
1698 for file in gnat gnarl
; do \
1699 if
[ -f rts
/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) ]; then \
1700 $(INSTALL
) rts
/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1701 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1703 if
[ -f rts
/lib
$${file}$(soext
) ]; then \
1704 $(LN_S
) lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1705 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/lib
$${file}$(soext
); \
1708 # This copy must be done preserving the date on the original file.
1709 for file in rts
/*.adb rts
/*.ads
; do \
1710 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_INCLUDE_DIR
); \
1712 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.adb
1713 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.ads
1717 $(RM
) rts
/s-
*$(objext
)
1719 $(RM
) rts
/a-
*$(objext
)
1721 $(RM
) rts
/*$(objext
)
1724 touch ..
/stamp-gnatlib2
1725 $(RM
) ..
/stamp-gnatlib
1727 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1728 # successive target commands. Although the Gnu make documentation
1729 # implies this is true on all systems, I suspect it may not be, So care
1730 # has been taken to allow a sed script to look for ";)" and substitue
1731 # for ";" the appropriate character in the range of lines below
1732 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1734 # GNULLI Begin ###########################################################
1736 ..
/stamp-gnatlib1
: Makefile ..
/stamp-gnatlib2
1740 # Copy target independent sources
1741 $(foreach f
,$(ADA_INCLUDE_SRCS
) $(LIBGNAT_SRCS
), \
1742 $(LN_S
) $(fsrcpfx
)$(f
) rts
;) true
1743 # Remove files to be replaced by target dependent sources
1744 $(RM
) $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
1745 rts
/$(word 1,$(subst <, ,$(PAIR
))))
1746 $(RM
) rts
/*-*-*.ads rts
/*-*-*.adb
1747 # Copy new target dependent sources
1748 $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
1749 $(LN_S
) $(fsrcpfx
)$(word 2,$(subst <, ,$(PAIR
))) \
1750 rts
/$(word 1,$(subst <, ,$(PAIR
)));)
1751 $(RM
) ..
/stamp-gnatlib
1752 touch ..
/stamp-gnatlib1
1754 # GNULLI End #############################################################
1756 # Don't use semicolon separated shell commands that involve list expansions.
1757 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1758 # line lengths in excess of 256 characters.
1759 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1760 # is guaranteed to overflow the buffer.
1762 gnatlib
: ..
/stamp-gnatlib1 ..
/stamp-gnatlib2
1763 $(MAKE
) -C rts CC
="../../xgcc -B../../" \
1764 INCLUDES
="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1765 CFLAGS
="$(GNATLIBCFLAGS_FOR_C)" \
1767 -f ..
/Makefile
$(LIBGNAT_OBJS
)
1768 $(MAKE
) -C rts CC
="../../xgcc -B../../" \
1770 CFLAGS
="$(GNATLIBCFLAGS)" \
1771 ADAFLAGS
="$(GNATLIBFLAGS)" \
1775 $(RM
) rts
/libgnat
$(arext
) rts
/libgnarl
$(arext
)
1776 $(AR
) $(AR_FLAGS
) rts
/libgnat
$(arext
) \
1777 $(addprefix rts
/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
1778 ifneq ($(PREFIX_OBJS
),)
1779 $(AR
) $(AR_FLAGS
) rts
/libgccprefix
$(arext
) $(PREFIX_OBJS
);
1781 -$(RANLIB
) $(RANLIB_FLAGS
) rts
/libgnat
$(arext
)
1782 $(AR
) $(AR_FLAGS
) rts
/libgnarl
$(arext
) \
1783 $(addprefix rts
/,$(GNATRTL_TASKING_OBJS
))
1784 -$(RANLIB
) $(RANLIB_FLAGS
) rts
/libgnarl
$(arext
)
1785 ifeq ($(GMEM_LIB
),gmemlib
)
1786 $(AR
) $(AR_FLAGS
) rts
/libgmem
$(arext
) rts
/memtrack.o
1787 -$(RANLIB
) $(RANLIB_FLAGS
) rts
/libgmem
$(arext
)
1789 $(CHMOD
) a-wx rts
/*.ali
1790 touch ..
/stamp-gnatlib
1792 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
1793 gnatlib-shared-default
:
1794 $(MAKE
) $(FLAGS_TO_PASS
) \
1795 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1796 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1797 THREAD_KIND
="$(THREAD_KIND)" \
1799 $(RM
) rts
/libgna
*$(soext
)
1800 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
1801 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1802 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
1803 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1805 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
1806 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1807 $(GNATRTL_TASKING_OBJS
) \
1808 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1810 cd rts
; $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1812 cd rts
; $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1815 gnatlib-shared-dual
:
1816 $(MAKE
) $(FLAGS_TO_PASS
) \
1817 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1818 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1819 THREAD_KIND
="$(THREAD_KIND)" \
1820 gnatlib-shared-default
1821 $(MV
) rts
/libgna
*$(soext
) .
1822 $(RM
) ..
/stamp-gnatlib2
1823 $(MAKE
) $(FLAGS_TO_PASS
) \
1824 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1825 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1826 THREAD_KIND
="$(THREAD_KIND)" \
1828 $(MV
) libgna
*$(soext
) rts
1830 gnatlib-shared-dual-win32
:
1831 $(MAKE
) $(FLAGS_TO_PASS
) \
1832 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1833 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1834 THREAD_KIND
="$(THREAD_KIND)" \
1835 gnatlib-shared-win32
1836 $(MV
) rts
/libgna
*$(soext
) .
1837 $(RM
) ..
/stamp-gnatlib2
1838 $(MAKE
) $(FLAGS_TO_PASS
) \
1839 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1840 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1841 THREAD_KIND
="$(THREAD_KIND)" \
1843 $(MV
) libgna
*$(soext
) rts
1845 # ??? we need to add the option to support auto-import of arrays/records to
1846 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
1847 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
1849 gnatlib-shared-win32
:
1850 $(MAKE
) $(FLAGS_TO_PASS
) \
1851 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1852 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1853 THREAD_KIND
="$(THREAD_KIND)" \
1855 $(RM
) rts
/libgna
*$(soext
)
1856 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
1857 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1858 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
1859 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) $(MISCLIB
)
1860 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
1861 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1862 $(GNATRTL_TASKING_OBJS
) \
1863 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1864 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
1866 gnatlib-shared-darwin
:
1867 $(MAKE
) $(FLAGS_TO_PASS
) \
1868 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1869 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) \
1871 THREAD_KIND
="$(THREAD_KIND)" \
1873 $(RM
) rts
/libgnat
$(soext
) rts
/libgnarl
$(soext
)
1874 cd rts
; ..
/..
/xgcc
-B..
/..
/ -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
1875 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1876 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
1879 cd rts
; ..
/..
/xgcc
-B..
/..
/ -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
1880 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1881 $(GNATRTL_TASKING_OBJS
) \
1883 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
1884 cd rts
; $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1886 cd rts
; $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1890 $(MAKE
) $(FLAGS_TO_PASS
) \
1891 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1892 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1893 THREAD_KIND
="$(THREAD_KIND)" \
1895 $(RM
) rts
/libgna
*$(soext
)
1896 cd rts
&& echo
"case_sensitive=yes" > SYMVEC_
$$$$.opt
&& \
1897 objdump
--syms
$(LIBGNAT_OBJS
) $(GNATRTL_NONTASKING_OBJS
) | \
1898 $(SHLIB_SYMVEC
) >> SYMVEC_
$$$$.opt
&& \
1899 echo
"case_sensitive=NO" >> SYMVEC_
$$$$.opt
&& \
1900 ..
/..
/xgcc
-g
-B..
/..
/ -nostartfiles
-shared
-shared-libgcc \
1901 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) libgnat.a \
1902 sys\
$$library:trace.exe \
1903 --for-linker
=/noinform \
1904 --for-linker
=SYMVEC_
$$$$.opt \
1905 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
1906 cd rts
&& echo
"case_sensitive=yes" > SYMVEC_
$$$$.opt
&& \
1907 objdump
--syms
$(GNATRTL_TASKING_OBJS
) | \
1908 $(SHLIB_SYMVEC
) >> SYMVEC_
$$$$.opt
&& \
1909 echo
"case_sensitive=NO" >> SYMVEC_
$$$$.opt
&& \
1910 ..
/..
/xgcc
-g
-B..
/..
/ -nostartfiles
-shared
-shared-libgcc \
1911 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1912 libgnarl.a libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1913 sys\
$$library:trace.exe \
1914 --for-linker
=/noinform \
1915 --for-linker
=SYMVEC_
$$$$.opt \
1916 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
1919 $(MAKE
) $(FLAGS_TO_PASS
) \
1920 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1921 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1922 THREAD_KIND
="$(THREAD_KIND)" \
1923 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" \
1926 gnatlib-sjlj
: ..
/stamp-gnatlib1
1927 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' rts
/system.ads
> rts
/s.ads
1928 $(MV
) rts
/s.ads rts
/system.ads
1929 $(MAKE
) $(FLAGS_TO_PASS
) \
1930 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1931 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1932 THREAD_KIND
="$(THREAD_KIND)" \
1933 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
1935 gnatlib-zcx
: ..
/stamp-gnatlib1
1936 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' rts
/system.ads
> rts
/s.ads
1937 $(MV
) rts
/s.ads rts
/system.ads
1938 $(MAKE
) $(FLAGS_TO_PASS
) \
1939 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1940 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1941 THREAD_KIND
="$(THREAD_KIND)" \
1942 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
1944 # .s files for cross-building
1946 make
$(GNAT1_ADA_OBJS
) CC
="gcc -B../stage1/" CFLAGS
="-S -gnatp"
1948 # Compiling object files from source files.
1950 # Note that dependencies on obstack.h are not written
1951 # because that file is not part of GCC.
1952 # Dependencies on gvarargs.h are not written
1953 # because all that file does, when not compiling with GCC,
1954 # is include the system varargs.h.
1956 b_gnatl.c
: $(GNATLINK_OBJS
)
1957 $(GNATBIND
) -C
$(ADA_INCLUDES
) -o b_gnatl.c gnatlink.ali
1958 b_gnatl.o
: b_gnatl.c
1960 b_gnatm.c
: $(GNATMAKE_OBJS
)
1961 $(GNATBIND
) -C
$(ADA_INCLUDES
) -o b_gnatm.c gnatmake.ali
1962 b_gnatm.o
: b_gnatm.c
1964 ADA_INCLUDE_DIR
= $(libsubdir
)/adainclude
1965 ADA_RTL_OBJ_DIR
= $(libsubdir
)/adalib
1966 ADA_SHARE_MAKE_DIR
= $(prefix)/share
/gnat
1968 # force no sibling call optimization on s-traceb.o so the number of stack
1969 # frames to be skipped when computing a call chain is not modified by
1970 # optimization. However we can do that only when building the runtime
1971 # (not the compiler) because the -fno-optimize-sibling-calls exists
1974 ifneq (,$(findstring xgcc
,$(CC
)))
1975 NO_SIBLING_ADAFLAGS
=-fno-optimize-sibling-calls
1977 NO_SIBLING_ADAFLAGS
=
1980 s-traceb.o
: s-traceb.adb
1981 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) \
1982 $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) \
1985 # force debugging information on s-tasdeb.o so that it is always
1986 # possible to set conditional breakpoints on tasks.
1988 s-tasdeb.o
: s-tasdeb.adb s-tasdeb.ads
1989 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
1992 # force debugging information on a-except.o so that it is always
1993 # possible to set conditional breakpoints on exceptions.
1994 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
1996 a-except.o
: a-except.adb a-except.ads
1997 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O1
-fno-inline \
1998 $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2000 # force debugging information on s-assert.o so that it is always
2001 # possible to set breakpoint on assert failures.
2003 s-assert.o
: s-assert.adb s-assert.ads a-except.ads
2004 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O2
$(ADA_INCLUDES
) \
2007 adadecode.o
: adadecode.c adadecode.h
2011 deftarg.o
: deftarg.c
2013 exit.o
: raise.h exit.c
2015 final.o
: raise.h final.c
2019 socket.o
: socket.c gsocket.h
2023 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(RT_FLAGS
) \
2024 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2026 init.o
: init.c ada.h types.h raise.h
2027 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(RT_FLAGS
) \
2028 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2030 raise.o
: raise.c raise.h
2031 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(RT_FLAGS
) \
2032 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2034 # Need to keep the frame pointer in this file to pop the stack properly on
2036 tracebak.o
: tracebak.c tb-alvms.c tb-alvxw.c
2037 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) $(INCLUDES
) \
2038 -fno-omit-frame-pointer
$< $(OUTPUT_OPTION
)
2040 # In GNU Make, ignore whether `stage*' exists.
2041 .PHONY
: stage1 stage2 stage3 stage4
clean realclean TAGS bootstrap
2042 .PHONY
: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2046 # Gnatlbr is only used on VMS
2048 ..
/..
/gnatlbr
$(exeext
): ..
/..
/prefix.o
2049 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlbr
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2050 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlbr
2051 $(GNATLINK
) -v gnatlbr
-o
$@
--GCC
="$(CC) $(ADA_INCLUDES)" \