1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2007 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 3, 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 COPYING3. If not see
18 #<http://www.gnu.org/licenses/>.
20 # The makefile built from this file lives in the language subdirectory.
21 # Its purpose is to provide support for:
23 # 1) recursion where necessary, and only then (building .o's), and
24 # 2) building and debugging cc1 from the language subdirectory, and
27 # The parent makefile handles all other chores, with help from the
28 # language makefile fragment, of course.
30 # The targets for external use are:
31 # all, TAGS, ???mostlyclean, ???clean.
33 # This makefile will only work with Gnu make.
34 # The rules are written assuming a minimum subset of tools are available:
37 # MAKE: Only Gnu make will work.
38 # MV: Must accept (at least) one, maybe wildcard, source argument,
39 # a file or directory destination, and support creation/
40 # modification date preservation. Gnu mv -f works.
41 # RM: Must accept an arbitrary number of space separated file
42 # arguments, or one wildcard argument. Gnu rm works.
43 # RMDIR: Must delete a directory and all its contents. Gnu rm -rf works.
44 # ECHO: Must support command line redirection. Any Unix-like
45 # shell will typically provide this, otherwise a custom version
46 # is trivial to write.
48 # MKDIR: Gnu mkdir works.
49 # CHMOD: Gnu chmod works.
50 # true: Does nothing and returns a normal successful return code.
51 # pwd: Prints the current directory on stdout.
52 # cd: Change directory.
55 # BISON: Gnu bison works.
56 # FLEX: Gnu flex works.
57 # Other miscellaneous tools for obscure targets.
59 # Tell GNU make 3.79 not to run this directory in parallel.
60 # Not all of the required dependencies are present.
63 # Suppress smart makes who think they know how to automake Yacc files
66 # Variables that exist for you to override.
67 # See below for how to change them for certain systems.
69 # Various ways of specifying flags for compilations:
70 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
71 # BOOT_CFLAGS is the value of CFLAGS to pass
72 # to the stage2 and stage3 compilations
73 # XCFLAGS is used for most compilations but not when using the GCC just built.
76 BOOT_CFLAGS
= -O
$(CFLAGS
)
77 # These exists to be overridden by the x-* and t-* files, respectively.
108 RANLIB_FLAGS
= @ranlib_flags@
111 PWD_COMMAND
= $${PWDCMD-pwd
}
112 # How to copy preserving the date
113 INSTALL_DATA_DATE
= cp
-p
117 GNATBIND_FLAGS
= -static
-x
119 ADAFLAGS
= -W
-Wall
-gnatpg
-gnata
120 SOME_ADAFLAGS
=-gnata
121 FORCE_DEBUG_ADAFLAGS
= -g
122 GNATLIBFLAGS
= -gnatpg
-nostdinc
123 GNATLIBCFLAGS
= -g
-O2
124 GNATLIBCFLAGS_FOR_C
= $(GNATLIBCFLAGS
) $(TARGET_LIBGCC2_CFLAGS
) -fexceptions \
126 ALL_ADA_CFLAGS
= $(X_ADA_CFLAGS
) $(T_ADA_CFLAGS
) $(ADA_CFLAGS
)
127 ALL_ADAFLAGS
= $(CFLAGS
) $(ALL_ADA_CFLAGS
) $(X_ADAFLAGS
) $(T_ADAFLAGS
) \
129 MOST_ADAFLAGS
= $(CFLAGS
) $(ALL_ADA_CFLAGS
) $(X_ADAFLAGS
) $(T_ADAFLAGS
) \
135 SYMDEPS
= $(LIBINTL_DEP
)
136 OUTPUT_OPTION
= @OUTPUT_OPTION@
145 # Define this as & to perform parallel make on a Sequent.
146 # Note that this has some bugs, and it seems currently necessary
147 # to compile all the gen* files first by hand to avoid erroneous results.
150 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
151 # It omits XCFLAGS, and specifies -B./.
152 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
153 GCC_CFLAGS
= $(INTERNAL_CFLAGS
) $(X_CFLAGS
) $(T_CFLAGS
) $(CFLAGS
)
155 # Tools to use when building a cross-compiler.
156 # These are used because `configure' appends `cross-make'
157 # to the makefile when making a cross-compiler.
159 # We don't use cross-make. Instead we use the tools from the build tree,
160 # if they are available.
161 # program_transform_name and objdir are set by configure.in.
162 program_transform_name
=
165 target_alias
=@target_alias@
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 of target dependent sources, overridden below as necessary
198 # Type of tools build we are doing; default is not compiling tools.
201 # End of variables for you to override.
205 # This tells GNU Make version 3 not to put all variables in the environment.
208 # tmake_file and xmake_file expand to lists with entries of the form
209 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
210 # need to adjust the paths. There can't be spaces in the subst arguments
211 # or we get spurious spaces in the actual list of files to include.
214 ifneq ($(tmake_file
),)
215 include $(subst /config
,/..
/config
,$(tmake_file
))
219 ifneq ($(xmake_file
),)
220 include $(subst /config
,/..
/config
,$(xmake_file
))
223 # Now figure out from those variables how to compile and link.
225 all.indirect
: Makefile ..
/gnat1
$(exeext
)
227 # IN_GCC distinguishes between code compiled into GCC itself and other
228 # programs built during a bootstrap.
229 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
230 # compiler which does not use the native libraries and headers.
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 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 \
310 mlib-tgt-specific.o mlib-utl.o 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-parame.adb
<s-parame-vxworks.adb \
403 s-stchop.adb
<s-stchop-vxworks.adb \
404 s-taprop.adb
<s-taprop-vxworks.adb \
405 s-taspri.ads
<s-taspri-vxworks.ads \
406 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
407 s-vxwork.ads
<s-vxwork-m68k.ads \
408 g-soccon.ads
<g-soccon-vxworks.ads \
409 g-socthi.ads
<g-socthi-vxworks.ads \
410 g-socthi.adb
<g-socthi-vxworks.adb \
411 g-stsifd.adb
<g-stsifd-sockets.adb \
412 g-sttsne.adb
<g-sttsne-vxworks.adb \
413 g-sttsne.ads
<g-sttsne-locking.ads \
414 system.ads
<system-vxworks-m68k.ads
416 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-vxworks.adb
418 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
419 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
421 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
422 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
424 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
425 LIBGNAT_TARGET_PAIRS
+= \
426 s-traces.adb
<s-traces-default.adb \
427 s-tratas.adb
<s-tratas-default.adb \
428 s-trafor.adb
<s-trafor-default.adb \
429 s-trafor.ads
<s-trafor-default.ads \
430 s-tfsetr.adb
<s-tfsetr-vxworks.adb
434 ifeq ($(strip $(filter-out powerpc
% wrs vxworks
,$(targ
))),)
435 LIBGNAT_TARGET_PAIRS
= \
436 a-intnam.ads
<a-intnam-vxworks.ads \
437 a-numaux.ads
<a-numaux-vxworks.ads \
438 s-inmaop.adb
<s-inmaop-posix.adb \
439 s-intman.ads
<s-intman-vxworks.ads \
440 s-intman.adb
<s-intman-vxworks.adb \
441 s-osprim.adb
<s-osprim-vxworks.adb \
442 s-parame.ads
<s-parame-vxworks.ads \
443 s-parame.adb
<s-parame-vxworks.adb \
444 s-stchop.adb
<s-stchop-vxworks.adb \
445 s-taprop.adb
<s-taprop-vxworks.adb \
446 s-taspri.ads
<s-taspri-vxworks.ads \
447 s-vxwork.ads
<s-vxwork-ppc.ads \
448 g-soccon.ads
<g-soccon-vxworks.ads \
449 g-socthi.ads
<g-socthi-vxworks.ads \
450 g-socthi.adb
<g-socthi-vxworks.adb \
451 g-stsifd.adb
<g-stsifd-sockets.adb \
452 g-sttsne.adb
<g-sttsne-vxworks.adb \
453 g-sttsne.ads
<g-sttsne-locking.ads
455 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-vxworks.adb
457 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
458 LIBGNAT_TARGET_PAIRS
+= \
459 s-traces.adb
<s-traces-default.adb \
460 s-trafor.adb
<s-trafor-default.adb \
461 s-trafor.ads
<s-trafor-default.ads \
462 s-tratas.adb
<s-tratas-default.adb \
463 s-tfsetr.adb
<s-tfsetr-vxworks.adb
466 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
467 LIBGNAT_TARGET_PAIRS
+= \
468 s-osinte.adb
<s-osinte-vxworks-rtp.adb \
469 s-osinte.ads
<s-osinte-vxworks6.ads \
470 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
471 system.ads
<system-vxworks-ppc-rtp.ads
473 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
475 LIBGNAT_TARGET_PAIRS
+= \
476 s-interr.adb
<s-interr-vxworks.adb \
477 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
478 system.ads
<system-vxworks-ppc.ads
480 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
481 LIBGNAT_TARGET_PAIRS
+= \
482 s-osinte.ads
<s-osinte-vxworks6.ads \
483 s-osinte.adb
<s-osinte-vxworks-kernel.adb
485 LIBGNAT_TARGET_PAIRS
+= \
486 s-osinte.ads
<s-osinte-vxworks.ads \
487 s-osinte.adb
<s-osinte-vxworks.adb
490 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
493 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
495 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
496 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
499 # vxworksae / vxworks 653
500 ifeq ($(strip $(filter-out powerpc
% wrs vxworksae
,$(targ
))),)
501 # target pairs for kernel + vthreads runtime
502 LIBGNAT_TARGET_PAIRS
= \
503 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
504 a-intnam.ads
<a-intnam-vxworks.ads \
505 a-numaux.ads
<a-numaux-vxworks.ads \
506 g-io.adb
<g-io-vxworks-ppc-cert.adb \
507 g-io.ads
<g-io-vxworks-ppc-cert.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 s-osinte.adb
<s-osinte-vxworks.adb \
513 s-osinte.ads
<s-osinte-vxworks.ads \
514 s-osprim.adb
<s-osprim-vxworks.adb \
515 s-parame.ads
<s-parame-ae653.ads \
516 s-parame.adb
<s-parame-vxworks.adb \
517 s-taprop.adb
<s-taprop-vxworks.adb \
518 s-taspri.ads
<s-taspri-vxworks.ads \
519 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
520 s-vxwork.ads
<s-vxwork-ppc.ads \
521 g-soccon.ads
<g-soccon-vxworks.ads \
522 g-socthi.ads
<g-socthi-vxworks.ads \
523 g-socthi.adb
<g-socthi-vxworks.adb \
524 g-stsifd.adb
<g-stsifd-sockets.adb \
525 g-sttsne.adb
<g-sttsne-vxworks.adb \
526 g-sttsne.ads
<g-sttsne-locking.ads \
527 system.ads
<system-vxworks-ppc-vthread.ads
529 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-vxworks.adb
531 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
532 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
534 # Extra pairs for the vthreads runtime
535 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
536 LIBGNAT_TARGET_PAIRS
+= \
537 s-thread.adb
<s-thread-ae653.adb
538 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
541 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
542 LIBGNAT_TARGET_PAIRS
+= \
543 s-traces.adb
<s-traces-default.adb \
544 s-trafor.adb
<s-trafor-default.adb \
545 s-trafor.ads
<s-trafor-default.ads \
546 s-tratas.adb
<s-tratas-default.adb \
547 s-tfsetr.adb
<s-tfsetr-vxworks.adb
551 ifeq ($(strip $(filter-out sparc
% wrs vx
%,$(targ
))),)
552 LIBGNAT_TARGET_PAIRS
= \
553 a-intnam.ads
<a-intnam-vxworks.ads \
554 a-numaux.ads
<a-numaux-vxworks.ads \
555 s-inmaop.adb
<s-inmaop-posix.adb \
556 s-interr.adb
<s-interr-vxworks.adb \
557 s-intman.ads
<s-intman-vxworks.ads \
558 s-intman.adb
<s-intman-vxworks.adb \
559 s-osinte.adb
<s-osinte-vxworks.adb \
560 s-osinte.ads
<s-osinte-vxworks.ads \
561 s-osprim.adb
<s-osprim-vxworks.adb \
562 s-parame.ads
<s-parame-vxworks.ads \
563 s-parame.adb
<s-parame-vxworks.adb \
564 s-stchop.adb
<s-stchop-vxworks.adb \
565 s-taprop.adb
<s-taprop-vxworks.adb \
566 s-taspri.ads
<s-taspri-vxworks.ads \
567 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
568 s-vxwork.ads
<s-vxwork-sparcv9.ads \
569 g-soccon.ads
<g-soccon-vxworks.ads \
570 g-socthi.ads
<g-socthi-vxworks.ads \
571 g-socthi.adb
<g-socthi-vxworks.adb \
572 g-stsifd.adb
<g-stsifd-sockets.adb \
573 g-sttsne.adb
<g-sttsne-vxworks.adb \
574 g-sttsne.ads
<g-sttsne-locking.ads \
575 system.ads
<system-vxworks-sparcv9.ads \
577 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-vxworks.adb
579 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
580 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
582 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
583 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
586 ifeq ($(strip $(filter-out %86 wrs vxworks
,$(targ
))),)
587 LIBGNAT_TARGET_PAIRS
= \
588 a-intnam.ads
<a-intnam-vxworks.ads \
589 i-vxwork.ads
<i-vxwork-x86.ads \
590 s-inmaop.adb
<s-inmaop-posix.adb \
591 s-intman.ads
<s-intman-vxworks.ads \
592 s-intman.adb
<s-intman-vxworks.adb \
593 a-numaux.adb
<a-numaux-x86.adb \
594 a-numaux.ads
<a-numaux-x86.ads \
595 s-osprim.adb
<s-osprim-vxworks.adb \
596 s-parame.ads
<s-parame-vxworks.ads \
597 s-parame.adb
<s-parame-vxworks.adb \
598 s-stchop.adb
<s-stchop-vxworks.adb \
599 s-taprop.adb
<s-taprop-vxworks.adb \
600 s-taspri.ads
<s-taspri-vxworks.ads \
601 s-vxwork.ads
<s-vxwork-x86.ads \
602 g-bytswa.adb
<g-bytswa-x86.adb \
603 g-soccon.ads
<g-soccon-vxworks.ads \
604 g-socthi.ads
<g-socthi-vxworks.ads \
605 g-socthi.adb
<g-socthi-vxworks.adb \
606 g-stsifd.adb
<g-stsifd-sockets.adb \
607 g-sttsne.adb
<g-sttsne-vxworks.adb \
608 g-sttsne.ads
<g-sttsne-locking.ads
610 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-vxworks.adb
612 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
613 LIBGNAT_TARGET_PAIRS
+= \
614 s-traces.adb
<s-traces-default.adb \
615 s-trafor.adb
<s-trafor-default.adb \
616 s-trafor.ads
<s-trafor-default.ads \
617 s-tratas.adb
<s-tratas-default.adb \
618 s-tfsetr.adb
<s-tfsetr-vxworks.adb
621 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
622 LIBGNAT_TARGET_PAIRS
+= \
623 s-osinte.adb
<s-osinte-vxworks-rtp.adb \
624 s-osinte.ads
<s-osinte-vxworks6.ads \
625 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
626 system.ads
<system-vxworks-x86-rtp.ads
628 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
630 LIBGNAT_TARGET_PAIRS
+= \
631 s-interr.adb
<s-interr-vxworks.adb \
632 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
633 system.ads
<system-vxworks-x86.ads
635 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
636 LIBGNAT_TARGET_PAIRS
+= \
637 s-osinte.ads
<s-osinte-vxworks6.ads \
638 s-osinte.adb
<s-osinte-vxworks-kernel.adb
640 LIBGNAT_TARGET_PAIRS
+= \
641 s-osinte.ads
<s-osinte-vxworks.ads \
642 s-osinte.adb
<s-osinte-vxworks.adb
645 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
648 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
650 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
651 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
654 ifeq ($(strip $(filter-out arm
% coff wrs vx
%,$(targ
))),)
655 LIBGNAT_TARGET_PAIRS
= \
656 a-intnam.ads
<a-intnam-vxworks.ads \
657 a-numaux.ads
<a-numaux-vxworks.ads \
658 s-inmaop.adb
<s-inmaop-posix.adb \
659 s-interr.adb
<s-interr-vxworks.adb \
660 s-intman.ads
<s-intman-vxworks.ads \
661 s-intman.adb
<s-intman-vxworks.adb \
662 s-osinte.adb
<s-osinte-vxworks.adb \
663 s-osinte.ads
<s-osinte-vxworks.ads \
664 s-osprim.adb
<s-osprim-vxworks.adb \
665 s-parame.ads
<s-parame-vxworks.ads \
666 s-parame.adb
<s-parame-vxworks.adb \
667 s-stchop.adb
<s-stchop-vxworks.adb \
668 s-taprop.adb
<s-taprop-vxworks.adb \
669 s-taspri.ads
<s-taspri-vxworks.ads \
670 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
671 s-vxwork.ads
<s-vxwork-arm.ads \
672 g-soccon.ads
<g-soccon-vxworks.ads \
673 g-socthi.ads
<g-socthi-vxworks.ads \
674 g-socthi.adb
<g-socthi-vxworks.adb \
675 g-stsifd.adb
<g-stsifd-sockets.adb \
676 g-sttsne.adb
<g-sttsne-vxworks.adb \
677 g-sttsne.ads
<g-sttsne-locking.ads \
678 system.ads
<system-vxworks-arm.ads
680 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-vxworks.adb
682 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
683 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
685 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
686 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
689 ifeq ($(strip $(filter-out mips
% wrs vx
%,$(targ
))),)
690 LIBGNAT_TARGET_PAIRS
= \
691 a-intnam.ads
<a-intnam-vxworks.ads \
692 a-numaux.ads
<a-numaux-vxworks.ads \
693 s-inmaop.adb
<s-inmaop-posix.adb \
694 s-interr.adb
<s-interr-vxworks.adb \
695 s-intman.ads
<s-intman-vxworks.ads \
696 s-intman.adb
<s-intman-vxworks.adb \
697 s-osinte.adb
<s-osinte-vxworks.adb \
698 s-osinte.ads
<s-osinte-vxworks.ads \
699 s-osprim.adb
<s-osprim-vxworks.adb \
700 s-parame.ads
<s-parame-vxworks.ads \
701 s-parame.adb
<s-parame-vxworks.adb \
702 s-stchop.adb
<s-stchop-vxworks.adb \
703 s-taprop.adb
<s-taprop-vxworks.adb \
704 s-taspri.ads
<s-taspri-vxworks.ads \
705 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
706 s-vxwork.ads
<s-vxwork-mips.ads \
707 g-soccon.ads
<g-soccon-vxworks.ads \
708 g-socthi.ads
<g-socthi-vxworks.ads \
709 g-socthi.adb
<g-socthi-vxworks.adb \
710 g-stsifd.adb
<g-stsifd-sockets.adb \
711 g-sttsne.adb
<g-sttsne-vxworks.adb \
712 g-sttsne.ads
<g-sttsne-locking.ads \
713 system.ads
<system-vxworks-mips.ads
715 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-vxworks.adb
717 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
718 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
720 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
721 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
724 ifeq ($(strip $(filter-out sparc
% sun solaris
%,$(targ
))),)
725 LIBGNAT_TARGET_PAIRS_32
= \
726 a-intnam.ads
<a-intnam-solaris.ads \
727 s-inmaop.adb
<s-inmaop-posix.adb \
728 s-intman.adb
<s-intman-solaris.adb \
729 s-osinte.adb
<s-osinte-solaris.adb \
730 s-osinte.ads
<s-osinte-solaris.ads \
731 s-osprim.adb
<s-osprim-solaris.adb \
732 s-taprop.adb
<s-taprop-solaris.adb \
733 s-tasinf.adb
<s-tasinf-solaris.adb \
734 s-tasinf.ads
<s-tasinf-solaris.ads \
735 s-taspri.ads
<s-taspri-solaris.ads \
736 s-tpopsp.adb
<s-tpopsp-solaris.adb \
737 g-soccon.ads
<g-soccon-solaris.ads \
738 g-soliop.ads
<g-soliop-solaris.ads \
739 system.ads
<system-solaris-sparc.ads
741 LIBGNAT_TARGET_PAIRS_64
= \
742 a-intnam.ads
<a-intnam-solaris.ads \
743 s-inmaop.adb
<s-inmaop-posix.adb \
744 s-intman.adb
<s-intman-solaris.adb \
745 s-osinte.adb
<s-osinte-solaris.adb \
746 s-osinte.ads
<s-osinte-solaris.ads \
747 s-osprim.adb
<s-osprim-solaris.adb \
748 s-taprop.adb
<s-taprop-solaris.adb \
749 s-tasinf.adb
<s-tasinf-solaris.adb \
750 s-tasinf.ads
<s-tasinf-solaris.ads \
751 s-taspri.ads
<s-taspri-solaris.ads \
752 s-tpopsp.adb
<s-tpopsp-solaris.adb \
753 g-soccon.ads
<g-soccon-solaris-64.ads \
754 g-soliop.ads
<g-soliop-solaris.ads \
755 system.ads
<system-solaris-sparcv9.ads
757 ifeq ($(strip $(filter-out sparc sun solaris
%,$(targ
))),)
758 LIBGNAT_TARGET_PAIRS
= $(LIBGNAT_TARGET_PAIRS_32
)
760 LIBGNAT_TARGET_PAIRS
= $(LIBGNAT_TARGET_PAIRS_64
)
763 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-solaris.adb
766 THREADSLIB
= -lposix4
-lthread
767 MISCLIB
= -lposix4
-lnsl
-lsocket
769 GNATLIB_SHARED
= gnatlib-shared-dual
771 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
772 LIBRARY_VERSION
:= $(LIB_VERSION
)
774 ifeq ($(strip $(filter-out pthread PTHREAD
,$(THREAD_KIND
))),)
775 LIBGNAT_TARGET_PAIRS
= \
776 a-intnam.ads
<a-intnam-solaris.ads \
777 s-inmaop.adb
<s-inmaop-posix.adb \
778 s-intman.adb
<s-intman-posix.adb \
779 s-osinte.adb
<s-osinte-posix.adb \
780 s-osinte.ads
<s-osinte-solaris-posix.ads \
781 s-osprim.adb
<s-osprim-solaris.adb \
782 s-taprop.adb
<s-taprop-posix.adb \
783 s-taspri.ads
<s-taspri-posix.ads \
784 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
785 g-soccon.ads
<g-soccon-solaris.ads \
786 g-soliop.ads
<g-soliop-solaris.ads \
787 system.ads
<system-solaris-sparc.ads
789 THREADSLIB
= -lposix4
-lpthread
792 ifeq ($(strip $(filter-out m64
,$(THREAD_KIND
))),)
793 LIBGNAT_TARGET_PAIRS
= $(LIBGNAT_TARGET_PAIRS_64
)
797 ifeq ($(strip $(filter-out %86 solaris2
%,$(arch
) $(osys
))),)
798 LIBGNAT_TARGET_PAIRS
= \
799 a-numaux.adb
<a-numaux-x86.adb \
800 a-numaux.ads
<a-numaux-x86.ads \
801 a-intnam.ads
<a-intnam-solaris.ads \
802 s-inmaop.adb
<s-inmaop-posix.adb \
803 s-intman.adb
<s-intman-solaris.adb \
804 s-osinte.adb
<s-osinte-solaris.adb \
805 s-osinte.ads
<s-osinte-solaris.ads \
806 s-osprim.adb
<s-osprim-solaris.adb \
807 s-taprop.adb
<s-taprop-solaris.adb \
808 s-tasinf.adb
<s-tasinf-solaris.adb \
809 s-tasinf.ads
<s-tasinf-solaris.ads \
810 s-taspri.ads
<s-taspri-solaris.ads \
811 s-tpopsp.adb
<s-tpopsp-solaris.adb \
812 g-bytswa.adb
<g-bytswa-x86.adb \
813 g-soccon.ads
<g-soccon-solaris.ads \
814 g-soliop.ads
<g-soliop-solaris.ads \
815 system.ads
<system-solaris-x86.ads
817 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-solaris.adb
820 THREADSLIB
= -lposix4
-lthread
821 MISCLIB
= -lposix4
-lnsl
-lsocket
823 GNATLIB_SHARED
= gnatlib-shared-dual
825 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
826 LIBRARY_VERSION
:= $(LIB_VERSION
)
829 ifeq ($(strip $(filter-out %86 linux
%,$(arch
) $(osys
))),)
830 LIBGNAT_TARGET_PAIRS
= \
831 a-intnam.ads
<a-intnam-linux.ads \
832 a-numaux.adb
<a-numaux-x86.adb \
833 a-numaux.ads
<a-numaux-x86.ads \
834 g-bytswa.adb
<g-bytswa-x86.adb \
835 s-inmaop.adb
<s-inmaop-posix.adb \
836 s-intman.adb
<s-intman-posix.adb \
837 s-osprim.adb
<s-osprim-posix.adb \
838 s-taspri.ads
<s-taspri-posix.ads \
839 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
840 system.ads
<system-linux-x86.ads
842 ifeq ($(strip $(filter-out marte
,$(THREAD_KIND
))),)
843 LIBGNAT_TARGET_PAIRS
+= \
844 a-exetim.adb
<a-exetim-linux-marte.adb \
845 a-exetim.ads
<a-exetim-linux-marte.ads \
846 a-extiti.adb
<a-extiti-linux-marte.adb \
847 a-extiti.ads
<a-extiti-linux-marte.ads \
848 a-rttiev.adb
<a-rttiev-linux-marte.adb \
849 a-rttiev.ads
<a-rttiev-linux-marte.ads \
850 g-soccon.ads
<g-soccon-linux-x86-marte.ads \
851 s-osinte.adb
<s-osinte-linux-marte.adb \
852 s-osinte.ads
<s-osinte-linux-marte.ads \
853 s-taprop.adb
<s-taprop-linux-marte.adb
855 EXTRA_GNATRTL_TASKING_OBJS
=a-exetim.o a-extiti.o
860 LIBGNAT_TARGET_PAIRS
+= \
861 g-soccon.ads
<g-soccon-linux-x86.ads \
862 s-osinte.adb
<s-osinte-posix.adb \
863 s-osinte.ads
<s-osinte-linux.ads \
864 s-tasinf.ads
<s-tasinf-linux.ads \
865 s-tasinf.adb
<s-tasinf-linux.adb \
866 s-taprop.adb
<s-taprop-linux.adb
869 THREADSLIB
= -lpthread
872 TOOLS_TARGET_PAIRS
= \
873 mlib-tgt-specific.adb
<mlib-tgt-linux.adb \
874 indepsw.adb
<indepsw-gnu.adb
876 GNATLIB_SHARED
= gnatlib-shared-dual
878 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
879 LIBRARY_VERSION
:= $(LIB_VERSION
)
882 ifeq ($(strip $(filter-out %86 kfreebsd
%,$(arch
) $(osys
))),)
883 LIBGNAT_TARGET_PAIRS
= \
884 a-intnam.ads
<a-intnam-freebsd.ads \
885 a-numaux.adb
<a-numaux-x86.adb \
886 a-numaux.ads
<a-numaux-x86.ads \
887 s-inmaop.adb
<s-inmaop-posix.adb \
888 s-intman.adb
<s-intman-posix.adb \
889 g-soccon.ads
<g-soccon-freebsd.ads \
890 s-osinte.adb
<s-osinte-posix.adb \
891 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
892 s-osprim.adb
<s-osprim-posix.adb \
893 s-taprop.adb
<s-taprop-linux.adb \
894 s-taspri.ads
<s-taspri-posix.ads \
895 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
896 system.ads
<system-freebsd-x86.ads
898 TOOLS_TARGET_PAIRS
= \
899 mlib-tgt-specific.adb
<mlib-tgt-linux.adb \
900 indepsw.adb
<indepsw-gnu.adb
903 THREADSLIB
= -lpthread
904 GNATLIB_SHARED
= gnatlib-shared-dual
906 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
907 LIBRARY_VERSION
:= $(LIB_VERSION
)
910 ifeq ($(strip $(filter-out %86 freebsd
%,$(arch
) $(osys
))),)
911 LIBGNAT_TARGET_PAIRS
= \
912 a-intnam.ads
<a-intnam-freebsd.ads \
913 a-numaux.adb
<a-numaux-x86.adb \
914 a-numaux.ads
<a-numaux-x86.ads \
915 g-bytswa.adb
<g-bytswa-x86.adb \
916 g-soccon.ads
<g-soccon-freebsd.ads \
917 s-inmaop.adb
<s-inmaop-posix.adb \
918 s-intman.adb
<s-intman-posix.adb \
919 s-osinte.adb
<s-osinte-freebsd.adb \
920 s-osinte.ads
<s-osinte-freebsd.ads \
921 s-osprim.adb
<s-osprim-posix.adb \
922 s-taprop.adb
<s-taprop-posix.adb \
923 s-taspri.ads
<s-taspri-posix.ads \
924 s-tpopsp.adb
<s-tpopsp-posix.adb \
925 system.ads
<system-freebsd-x86.ads
927 TOOLS_TARGET_PAIRS
= \
928 mlib-tgt-specific.adb
<mlib-tgt-linux.adb
929 GNATLIB_SHARED
= gnatlib-shared-dual
932 THREADSLIB
= -lpthread
934 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
935 LIBRARY_VERSION
:= $(LIB_VERSION
)
938 ifeq ($(strip $(filter-out s390
% linux
%,$(arch
) $(osys
))),)
939 ifeq ($(strip $(filter-out s390x
,$(arch
))),)
940 LIBGNAT_TARGET_PAIRS
= \
941 a-intnam.ads
<a-intnam-linux.ads \
942 s-inmaop.adb
<s-inmaop-posix.adb \
943 s-intman.adb
<s-intman-posix.adb \
944 s-osinte.adb
<s-osinte-posix.adb \
945 s-osinte.ads
<s-osinte-linux.ads \
946 s-osprim.adb
<s-osprim-posix.adb \
947 s-taprop.adb
<s-taprop-linux.adb \
948 s-tasinf.ads
<s-tasinf-linux.ads \
949 s-tasinf.adb
<s-tasinf-linux.adb \
950 s-taspri.ads
<s-taspri-posix.ads \
951 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
952 system.ads
<system-linux-s390x.ads
954 LIBGNAT_TARGET_PAIRS
= \
955 a-intnam.ads
<a-intnam-linux.ads \
956 s-inmaop.adb
<s-inmaop-posix.adb \
957 s-intman.adb
<s-intman-posix.adb \
958 s-osinte.adb
<s-osinte-posix.adb \
959 s-osinte.ads
<s-osinte-linux.ads \
960 s-osprim.adb
<s-osprim-posix.adb \
961 s-taprop.adb
<s-taprop-linux.adb \
962 s-tasinf.ads
<s-tasinf-linux.ads \
963 s-tasinf.adb
<s-tasinf-linux.adb \
964 s-taspri.ads
<s-taspri-posix.ads \
965 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
966 system.ads
<system-linux-s390.ads
969 TOOLS_TARGET_PAIRS
= \
970 mlib-tgt-specific.adb
<mlib-tgt-linux.adb
973 THREADSLIB
= -lpthread
974 GNATLIB_SHARED
= gnatlib-shared-dual
975 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
976 LIBRARY_VERSION
:= $(LIB_VERSION
)
979 ifeq ($(strip $(filter-out mips sgi irix
%,$(targ
))),)
980 ifeq ($(strip $(filter-out mips sgi irix6
%,$(targ
))),)
981 LIBGNAT_TARGET_PAIRS
= \
982 a-intnam.ads
<a-intnam-irix.ads \
983 s-inmaop.adb
<s-inmaop-posix.adb \
984 s-intman.adb
<s-intman-irix.adb \
985 s-mastop.adb
<s-mastop-irix.adb \
986 s-osinte.adb
<s-osinte-irix.adb \
987 s-osinte.ads
<s-osinte-irix.ads \
988 s-osprim.adb
<s-osprim-posix.adb \
989 s-proinf.adb
<s-proinf-irix-athread.adb \
990 s-proinf.ads
<s-proinf-irix-athread.ads \
991 s-taprop.adb
<s-taprop-irix.adb \
992 s-tasinf.ads
<s-tasinf-irix.ads \
993 s-taspri.ads
<s-taspri-posix.ads \
994 s-tpopsp.adb
<s-tpopsp-posix.adb \
995 s-traceb.adb
<s-traceb-mastop.adb \
996 g-soccon.ads
<g-soccon-irix.ads \
997 system.ads
<system-irix-n32.ads
999 THREADSLIB
= -lpthread
1000 GNATLIB_SHARED
= gnatlib-shared-default
1003 LIBGNAT_TARGET_PAIRS
+= \
1004 s-mastop.adb
<s-mastop-irix.adb \
1005 s-osprim.adb
<s-osprim-posix.adb \
1006 s-traceb.adb
<s-traceb-mastop.adb \
1007 g-soccon.ads
<g-soccon-irix.ads \
1008 system.ads
<system-irix-o32.ads
1012 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-irix.adb
1015 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1016 LIBRARY_VERSION
:= $(LIB_VERSION
)
1020 ifeq ($(strip $(filter-out hppa
% hp hpux10
%,$(targ
))),)
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
1038 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1041 ifeq ($(strip $(filter-out hppa
% hp hpux11
%,$(targ
))),)
1042 LIBGNAT_TARGET_PAIRS
= \
1043 a-intnam.ads
<a-intnam-hpux.ads \
1044 s-inmaop.adb
<s-inmaop-posix.adb \
1045 s-intman.adb
<s-intman-posix.adb \
1046 s-osinte.adb
<s-osinte-posix.adb \
1047 s-osinte.ads
<s-osinte-hpux.ads \
1048 s-parame.ads
<s-parame-hpux.ads \
1049 s-osprim.adb
<s-osprim-posix.adb \
1050 s-traceb.adb
<s-traceb-hpux.adb \
1051 s-taprop.adb
<s-taprop-posix.adb \
1052 s-taspri.ads
<s-taspri-posix.ads \
1053 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1054 g-soccon.ads
<g-soccon-hpux.ads \
1055 system.ads
<system-hpux.ads
1057 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-hpux.adb
1059 TGT_LIB
= /usr
/lib
/libcl.a
1060 THREADSLIB
= -lpthread
1064 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1065 GNATLIB_SHARED
= gnatlib-shared-dual
1066 LIBRARY_VERSION
:= $(LIB_VERSION
)
1069 ifeq ($(strip $(filter-out ibm aix
%,$(manu
) $(osys
))),)
1070 LIBGNAT_TARGET_PAIRS
= \
1071 a-intnam.ads
<a-intnam-aix.ads \
1072 s-inmaop.adb
<s-inmaop-posix.adb \
1073 s-intman.adb
<s-intman-posix.adb \
1074 s-osinte.adb
<s-osinte-aix.adb \
1075 s-osinte.ads
<s-osinte-aix.ads \
1076 s-osprim.adb
<s-osprim-posix.adb \
1077 s-taprop.adb
<s-taprop-posix.adb \
1078 s-taspri.ads
<s-taspri-posix.ads \
1079 s-tpopsp.adb
<s-tpopsp-posix.adb \
1080 g-soccon.ads
<g-soccon-aix.ads \
1081 system.ads
<system-aix.ads
1083 THREADSLIB
= -lpthreads
1084 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1086 TOOLS_TARGET_PAIRS
= \
1087 mlib-tgt-specific.adb
<mlib-tgt-aix.adb \
1088 indepsw.adb
<indepsw-aix.adb
1093 ifeq ($(strip $(filter-out lynxos
,$(osys
))),)
1094 TOOLS_TARGET_PAIRS
= \
1095 mlib-tgt-specific.adb
<mlib-tgt-lynxos.adb \
1096 indepsw.adb
<indepsw-gnu.adb
1098 ifeq ($(strip $(filter-out %86 lynxos
,$(arch
) $(osys
))),)
1099 LIBGNAT_TARGET_PAIRS
= \
1100 a-numaux.adb
<a-numaux-x86.adb \
1101 a-numaux.ads
<a-numaux-x86.ads \
1102 a-intnam.ads
<a-intnam-lynxos.ads \
1103 g-bytswa.adb
<g-bytswa-x86.adb \
1104 g-soccon.ads
<g-soccon-lynxos.ads \
1105 g-sttsne.adb
<g-sttsne-locking.adb \
1106 g-sttsne.ads
<g-sttsne-locking.ads \
1107 s-inmaop.adb
<s-inmaop-posix.adb \
1108 s-intman.adb
<s-intman-posix.adb \
1109 s-osinte.adb
<s-osinte-lynxos.adb \
1110 s-osinte.ads
<s-osinte-lynxos.ads \
1111 s-osprim.adb
<s-osprim-posix.adb \
1112 s-taprop.adb
<s-taprop-lynxos.adb \
1113 s-taspri.ads
<s-taspri-lynxos.ads \
1114 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
1115 system.ads
<system-lynxos-x86.ads
1117 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1120 LIBGNAT_TARGET_PAIRS
= \
1121 a-intnam.ads
<a-intnam-lynxos.ads \
1122 g-soccon.ads
<g-soccon-lynxos.ads \
1123 g-sttsne.adb
<g-sttsne-locking.adb \
1124 g-sttsne.ads
<g-sttsne-locking.ads \
1125 s-inmaop.adb
<s-inmaop-posix.adb \
1126 s-intman.adb
<s-intman-posix.adb \
1127 s-osinte.adb
<s-osinte-lynxos.adb \
1128 s-osinte.ads
<s-osinte-lynxos.ads \
1129 s-osprim.adb
<s-osprim-posix.adb \
1130 s-taprop.adb
<s-taprop-lynxos.adb \
1131 s-taspri.ads
<s-taspri-lynxos.ads \
1132 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
1133 system.ads
<system-lynxos-ppc.ads
1137 ifeq ($(strip $(filter-out rtems
%,$(osys
))),)
1138 LIBGNAT_TARGET_PAIRS
= \
1139 a-intnam.ads
<a-intnam-rtems.ads \
1140 s-inmaop.adb
<s-inmaop-posix.adb \
1141 s-intman.adb
<s-intman-posix.adb \
1142 s-osinte.adb
<s-osinte-rtems.adb \
1143 s-osinte.ads
<s-osinte-rtems.ads \
1144 s-osprim.adb
<s-osprim-posix.adb \
1145 s-parame.adb
<s-parame-rtems.adb \
1146 s-taprop.adb
<s-taprop-posix.adb \
1147 s-taspri.ads
<s-taspri-posix.ads \
1148 s-auxdec.ads
<s-auxdec-empty.ads \
1149 s-auxdec.adb
<s-auxdec-empty.adb \
1150 s-tpopsp.adb
<s-tpopsp-rtems.adb
1153 ifeq ($(strip $(filter-out alpha
% dec osf
%,$(targ
))),)
1154 LIBGNAT_TARGET_PAIRS
= \
1155 a-intnam.ads
<a-intnam-tru64.ads \
1156 s-inmaop.adb
<s-inmaop-posix.adb \
1157 s-intman.adb
<s-intman-posix.adb \
1158 s-mastop.adb
<s-mastop-tru64.adb \
1159 s-osinte.adb
<s-osinte-tru64.adb \
1160 s-osinte.ads
<s-osinte-tru64.ads \
1161 s-osprim.adb
<s-osprim-unix.adb \
1162 s-taprop.adb
<s-taprop-tru64.adb \
1163 s-tasinf.ads
<s-tasinf-tru64.ads \
1164 s-taspri.ads
<s-taspri-tru64.ads \
1165 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1166 s-traceb.adb
<s-traceb-mastop.adb \
1167 g-soccon.ads
<g-soccon-tru64.ads \
1168 system.ads
<system-tru64.ads
1170 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-tru64.adb
1174 THREADSLIB
= -lpthread
-lmach
-lexc
-lrt
1175 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1176 GNATLIB_SHARED
= gnatlib-shared-default
1177 LIBRARY_VERSION
:= $(LIB_VERSION
)
1180 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(host
))),)
1190 @ gnu
:[bin
]vmssymvec
$<
1193 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(targ
))),)
1194 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1195 LIBGNAT_TARGET_PAIRS_AUX1
= \
1196 g-enblsp.adb
<g-enblsp-vms-ia64.adb \
1197 g-trasym.adb
<g-trasym-vms-ia64.adb \
1198 s-auxdec.ads
<s-auxdec-vms_64.ads \
1199 s-osinte.adb
<s-osinte-vms-ia64.adb \
1200 s-osinte.ads
<s-osinte-vms-ia64.ads \
1201 s-vaflop.adb
<s-vaflop-vms-ia64.adb \
1202 system.ads
<system-vms-ia64.ads
1204 LIBGNAT_TARGET_PAIRS_AUX2
= \
1205 s-parame.ads
<s-parame-vms-ia64.ads
1207 ifeq ($(strip $(filter-out alpha64 dec vms
% openvms
% alphavms
%,$(targ
))),)
1208 LIBGNAT_TARGET_PAIRS_AUX1
= \
1209 g-enblsp.adb
<g-enblsp-vms-alpha.adb \
1210 g-trasym.adb
<g-trasym-vms-alpha.adb \
1211 s-asthan.adb
<s-asthan-vms-alpha.adb \
1212 s-auxdec.ads
<s-auxdec-vms_64.ads \
1213 s-osinte.adb
<s-osinte-vms.adb \
1214 s-osinte.ads
<s-osinte-vms.ads \
1215 s-vaflop.adb
<s-vaflop-vms-alpha.adb \
1216 system.ads
<system-vms_64.ads
1218 ifeq ($(strip $(filter-out express EXPRESS
,$(THREAD_KIND
))),)
1219 LIBGNAT_TARGET_PAIRS_AUX2
= \
1220 s-parame.ads
<s-parame-vms-restrict.ads
1222 LIBGNAT_TARGET_PAIRS_AUX2
= \
1223 s-parame.ads
<s-parame-vms-alpha.ads
1228 LIBGNAT_TARGET_PAIRS
= \
1229 a-caldel.adb
<a-caldel-vms.adb \
1230 a-calend.adb
<a-calend-vms.adb \
1231 a-calend.ads
<a-calend-vms.ads \
1232 a-dirval.adb
<a-dirval-vms.adb \
1233 a-excpol.adb
<a-excpol-abort.adb \
1234 a-intnam.ads
<a-intnam-vms.ads \
1235 a-numaux.ads
<a-numaux-vms.ads \
1236 g-expect.adb
<g-expect-vms.adb \
1237 g-soccon.ads
<g-soccon-vms.ads \
1238 g-socthi.ads
<g-socthi-vms.ads \
1239 g-socthi.adb
<g-socthi-vms.adb \
1240 g-stsifd.adb
<g-stsifd-sockets.adb \
1241 g-sttsne.adb
<g-sttsne-locking.adb \
1242 g-sttsne.ads
<g-sttsne-locking.ads \
1243 i-c.ads
<i-c-vms_64.ads \
1244 i-cstrin.ads
<i-cstrin-vms_64.ads \
1245 i-cstrin.adb
<i-cstrin-vms_64.adb \
1246 i-cpoint.ads
<i-cpoint-vms_64.ads \
1247 i-cpoint.adb
<i-cpoint-vms_64.adb \
1248 i-cstrea.adb
<i-cstrea-vms.adb \
1249 i-forbla.ads
<i-forbla-unimplemented.ads \
1250 s-inmaop.adb
<s-inmaop-vms.adb \
1251 s-interr.adb
<s-interr-vms.adb \
1252 s-intman.adb
<s-intman-vms.adb \
1253 s-intman.ads
<s-intman-vms.ads \
1254 s-osprim.adb
<s-osprim-vms.adb \
1255 s-osprim.ads
<s-osprim-vms.ads \
1256 s-taprop.adb
<s-taprop-vms.adb \
1257 s-taspri.ads
<s-taspri-vms.ads \
1258 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1259 s-tpopde.adb
<s-tpopde-vms.adb \
1260 s-tpopde.ads
<s-tpopde-vms.ads \
1261 s-traent.adb
<s-traent-vms.adb \
1262 s-traent.ads
<s-traent-vms.ads \
1263 $(LIBGNAT_TARGET_PAIRS_AUX1
) \
1264 $(LIBGNAT_TARGET_PAIRS_AUX2
)
1266 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1267 TOOLS_TARGET_PAIRS
= \
1268 mlib-tgt-specific.adb
<mlib-tgt-vms-ia64.adb \
1269 symbols.adb
<symbols-vms.adb \
1270 symbols-processing.adb
<symbols-processing-vms-ia64.adb
1272 TOOLS_TARGET_PAIRS
= \
1273 mlib-tgt-specific.adb
<mlib-tgt-vms-alpha.adb \
1274 symbols.adb
<symbols-vms.adb \
1275 symbols-processing.adb
<symbols-processing-vms-alpha.adb
1279 EXTRA_GNATMAKE_OBJS
= mlib-tgt-vms.o
1283 GNATLIB_SHARED
=gnatlib-shared-vms
1284 ifeq ($(strip $(filter-out alpha64 dec vms
% openvms
% alphavms
%,$(targ
))),)
1285 EXTRA_LIBGNAT_SRCS
=vmshandler.asm
1286 EXTRA_LIBGNAT_OBJS
=vmshandler.o
1288 EXTRA_GNATRTL_TASKING_OBJS
=s-tpopde.o
1290 ..
/..
/gnatlbr
$(exeext
) \
1291 ..
/..
/gnatsym
$(exeext
) \
1292 ..
/..
/vms_help
$(exeext
) \
1294 # This command transforms (YYYYMMDD) into YY,MMDD
1295 GSMATCH_VERSION
:= $(shell grep
"^ *Gnat_Static_Version_String" $(fsrcpfx
)gnatvsn.ads | sed
-e
's/.*(\(.*\)).*/\1/' -e
's/\(..\)\(..\)\(....\)/\2,\3/')
1296 TOOLS_LIBS_LO
:= --for-linker
=sys
\\$$\
$$library:trace.exe
1297 LIBRARY_VERSION
:= $(subst .
,_
,$(LIB_VERSION
))
1300 ifeq ($(strip $(filter-out cygwin32
% mingw32
% pe
,$(osys
))),)
1301 LIBGNAT_TARGET_PAIRS
= \
1302 a-dirval.adb
<a-dirval-mingw.adb \
1303 a-excpol.adb
<a-excpol-abort.adb \
1304 a-numaux.adb
<a-numaux-x86.adb \
1305 a-numaux.ads
<a-numaux-x86.ads \
1306 s-gloloc.adb
<s-gloloc-mingw.adb \
1307 s-inmaop.adb
<s-inmaop-dummy.adb \
1308 s-memory.adb
<s-memory-mingw.adb \
1309 s-taspri.ads
<s-taspri-mingw.ads \
1310 s-tasinf.adb
<s-tasinf-mingw.adb \
1311 s-tasinf.ads
<s-tasinf-mingw.ads \
1312 g-bytswa.adb
<g-bytswa-x86.adb \
1313 g-socthi.ads
<g-socthi-mingw.ads \
1314 g-socthi.adb
<g-socthi-mingw.adb \
1315 g-stsifd.adb
<g-stsifd-sockets.adb \
1316 g-soccon.ads
<g-soccon-mingw.ads \
1317 g-soliop.ads
<g-soliop-mingw.ads
1319 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss
,$(THREAD_KIND
))),)
1320 LIBGNAT_TARGET_PAIRS
+= \
1321 s-intman.adb
<s-intman-dummy.adb \
1322 s-osinte.ads
<s-osinte-rtx.ads \
1323 s-osprim.adb
<s-osprim-rtx.adb \
1324 s-taprop.adb
<s-taprop-rtx.adb \
1325 system.ads
<system-rtx.ads
1327 MISCLIB
= -lwsock32
-lrtapi_w32
1328 THREADSLIB
=-lrtapi_w32
1330 LIBGNAT_TARGET_PAIRS
+= \
1331 a-exetim.adb
<a-exetim-mingw.adb \
1332 a-exetim.ads
<a-exetim-mingw.ads \
1333 a-intnam.ads
<a-intnam-mingw.ads \
1334 s-interr.adb
<s-interr-sigaction.adb \
1335 s-intman.adb
<s-intman-mingw.adb \
1336 s-osinte.ads
<s-osinte-mingw.ads \
1337 s-osprim.adb
<s-osprim-mingw.adb \
1338 s-taprop.adb
<s-taprop-mingw.adb \
1339 system.ads
<system-mingw.ads
1341 EXTRA_GNATRTL_NONTASKING_OBJS
= g-regist.o
1342 EXTRA_GNATRTL_TASKING_OBJS
=a-exetim.o
1346 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1347 # auto-import support for array/record will be done.
1348 GNATLIB_SHARED
= gnatlib-shared-win32
1351 TOOLS_TARGET_PAIRS
= \
1352 mlib-tgt-specific.adb
<mlib-tgt-mingw.adb \
1353 indepsw.adb
<indepsw-mingw.adb
1357 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1358 EXTRA_GNATTOOLS
= ..
/..
/gnatdll
$(exeext
)
1359 EXTRA_GNATMAKE_OBJS
= mdll.o mdll-utl.o mdll-fil.o
1361 LIBRARY_VERSION
:= $(LIB_VERSION
)
1364 ifeq ($(strip $(filter-out powerpc
% linux
%,$(arch
) $(osys
))),)
1365 LIBGNAT_TARGET_PAIRS
= \
1366 a-intnam.ads
<a-intnam-linux.ads \
1367 g-soccon.ads
<g-soccon-linux-ppc.ads \
1368 s-inmaop.adb
<s-inmaop-posix.adb \
1369 s-intman.adb
<s-intman-posix.adb \
1370 s-osinte.adb
<s-osinte-posix.adb \
1371 s-osinte.ads
<s-osinte-linux.ads \
1372 s-osprim.adb
<s-osprim-posix.adb \
1373 s-taprop.adb
<s-taprop-linux.adb \
1374 s-tasinf.ads
<s-tasinf-linux.ads \
1375 s-tasinf.adb
<s-tasinf-linux.adb \
1376 s-taspri.ads
<s-taspri-posix.ads \
1377 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1378 system.ads
<system-linux-ppc.ads
1380 TOOLS_TARGET_PAIRS
= \
1381 mlib-tgt-specific.adb
<mlib-tgt-linux.adb \
1382 indepsw.adb
<indepsw-gnu.adb
1385 THREADSLIB
= -lpthread
1386 GNATLIB_SHARED
= gnatlib-shared-dual
1388 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1389 LIBRARY_VERSION
:= $(LIB_VERSION
)
1392 ifeq ($(strip $(filter-out sparc
% linux
%,$(arch
) $(osys
))),)
1393 LIBGNAT_TARGET_PAIRS
= \
1394 a-intnam.ads
<a-intnam-linux.ads \
1395 s-inmaop.adb
<s-inmaop-posix.adb \
1396 s-intman.adb
<s-intman-posix.adb \
1397 s-osinte.adb
<s-osinte-posix.adb \
1398 s-osinte.ads
<s-osinte-linux.ads \
1399 s-osprim.adb
<s-osprim-posix.adb \
1400 s-taprop.adb
<s-taprop-linux.adb \
1401 s-tasinf.ads
<s-tasinf-linux.ads \
1402 s-tasinf.adb
<s-tasinf-linux.adb \
1403 s-taspri.ads
<s-taspri-posix.ads \
1404 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1405 system.ads
<system-linux-sparc.ads
1407 TOOLS_TARGET_PAIRS
= \
1408 mlib-tgt-specific.adb
<mlib-tgt-linux.adb \
1409 indepsw.adb
<indepsw-gnu.adb
1412 THREADSLIB
= -lpthread
1413 GNATLIB_SHARED
= gnatlib-shared-dual
1415 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1416 LIBRARY_VERSION
:= $(LIB_VERSION
)
1419 ifeq ($(strip $(filter-out hppa
% linux
%,$(arch
) $(osys
))),)
1420 LIBGNAT_TARGET_PAIRS
= \
1421 a-intnam.ads
<a-intnam-linux.ads \
1422 s-inmaop.adb
<s-inmaop-posix.adb \
1423 s-intman.adb
<s-intman-posix.adb \
1424 s-osinte.adb
<s-osinte-posix.adb \
1425 s-osinte.ads
<s-osinte-linux-hppa.ads \
1426 s-osprim.adb
<s-osprim-posix.adb \
1427 s-taprop.adb
<s-taprop-linux.adb \
1428 s-tasinf.ads
<s-tasinf-linux.ads \
1429 s-tasinf.adb
<s-tasinf-linux.adb \
1430 s-taspri.ads
<s-taspri-posix.ads \
1431 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1432 system.ads
<system-linux-hppa.ads
1434 TOOLS_TARGET_PAIRS
= \
1435 mlib-tgt-specific.adb
<mlib-tgt-linux.adb \
1436 indepsw.adb
<indepsw-gnu.adb
1439 THREADSLIB
= -lpthread
1440 GNATLIB_SHARED
= gnatlib-shared-dual
1442 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1443 LIBRARY_VERSION
:= $(LIB_VERSION
)
1446 ifeq ($(strip $(filter-out sh4
% linux
%,$(arch
) $(osys
))),)
1447 LIBGNAT_TARGET_PAIRS
= \
1448 a-intnam.ads
<a-intnam-linux.ads \
1449 s-inmaop.adb
<s-inmaop-posix.adb \
1450 s-intman.adb
<s-intman-posix.adb \
1451 s-osinte.adb
<s-osinte-posix.adb \
1452 s-osinte.ads
<s-osinte-linux.ads \
1453 s-osprim.adb
<s-osprim-posix.adb \
1454 s-taprop.adb
<s-taprop-linux.adb \
1455 s-tasinf.ads
<s-tasinf-linux.ads \
1456 s-tasinf.adb
<s-tasinf-linux.adb \
1457 s-taspri.ads
<s-taspri-posix.ads \
1458 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1459 system.ads
<system-linux-sh4.ads
1461 TOOLS_TARGET_PAIRS
= \
1462 mlib-tgt-specific.adb
<mlib-tgt-linux.adb \
1463 indepsw.adb
<indepsw-linux.adb
1467 THREADSLIB
= -lpthread
1468 GNATLIB_SHARED
= gnatlib-shared-dual
1470 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1471 LIBRARY_VERSION
:= $(LIB_VERSION
)
1474 ifeq ($(strip $(filter-out %ia64 linux
%,$(arch
) $(osys
))),)
1475 LIBGNAT_TARGET_PAIRS
= \
1476 a-intnam.ads
<a-intnam-linux.ads \
1477 a-numaux.ads
<a-numaux-libc-x86.ads \
1478 g-soccon.ads
<g-soccon-linux-64.ads \
1479 s-inmaop.adb
<s-inmaop-posix.adb \
1480 s-intman.adb
<s-intman-posix.adb \
1481 s-osinte.ads
<s-osinte-linux.ads \
1482 s-osinte.adb
<s-osinte-posix.adb \
1483 s-osprim.adb
<s-osprim-posix.adb \
1484 s-taprop.adb
<s-taprop-linux.adb \
1485 s-tasinf.ads
<s-tasinf-linux.ads \
1486 s-tasinf.adb
<s-tasinf-linux.adb \
1487 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1488 s-taspri.ads
<s-taspri-posix.ads \
1489 system.ads
<system-linux-ia64.ads
1491 TOOLS_TARGET_PAIRS
= \
1492 mlib-tgt-specific.adb
<mlib-tgt-linux.adb \
1493 indepsw.adb
<indepsw-gnu.adb
1497 THREADSLIB
=-lpthread
1498 GNATLIB_SHARED
=gnatlib-shared-dual
1500 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1501 LIBRARY_VERSION
:= $(LIB_VERSION
)
1504 ifeq ($(strip $(filter-out alpha
% linux
%,$(arch
) $(osys
))),)
1505 LIBGNAT_TARGET_PAIRS
= \
1506 a-intnam.ads
<a-intnam-linux.ads \
1507 s-inmaop.adb
<s-inmaop-posix.adb \
1508 s-intman.adb
<s-intman-posix.adb \
1509 s-osinte.ads
<s-osinte-linux-alpha.ads \
1510 s-osinte.adb
<s-osinte-posix.adb \
1511 s-osprim.adb
<s-osprim-posix.adb \
1512 s-taprop.adb
<s-taprop-linux.adb \
1513 s-tasinf.ads
<s-tasinf-linux.ads \
1514 s-tasinf.adb
<s-tasinf-linux.adb \
1515 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1516 s-taspri.ads
<s-taspri-posix.ads \
1517 system.ads
<system-linux-alpha.ads
1519 TOOLS_TARGET_PAIRS
= \
1520 mlib-tgt-specific.adb
<mlib-tgt-linux.adb \
1521 indepsw.adb
<indepsw-gnu.adb
1525 THREADSLIB
=-lpthread
1526 GNATLIB_SHARED
=gnatlib-shared-dual
1527 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1528 LIBRARY_VERSION
:= $(LIB_VERSION
)
1531 ifeq ($(strip $(filter-out %x86_64 linux
%,$(arch
) $(osys
))),)
1532 LIBGNAT_TARGET_PAIRS
= \
1533 a-intnam.ads
<a-intnam-linux.ads \
1534 a-numaux.adb
<a-numaux-x86.adb \
1535 a-numaux.ads
<a-numaux-x86.ads \
1536 g-soccon.ads
<g-soccon-linux-64.ads \
1537 s-inmaop.adb
<s-inmaop-posix.adb \
1538 s-intman.adb
<s-intman-posix.adb \
1539 s-osinte.ads
<s-osinte-linux.ads \
1540 s-osinte.adb
<s-osinte-posix.adb \
1541 s-osprim.adb
<s-osprim-posix.adb \
1542 s-taprop.adb
<s-taprop-linux.adb \
1543 s-tasinf.ads
<s-tasinf-linux.ads \
1544 s-tasinf.adb
<s-tasinf-linux.adb \
1545 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1546 s-taspri.ads
<s-taspri-posix.ads \
1547 system.ads
<system-linux-x86_64.ads
1549 TOOLS_TARGET_PAIRS
= \
1550 mlib-tgt-specific.adb
<mlib-tgt-linux.adb \
1551 indepsw.adb
<indepsw-gnu.adb
1554 THREADSLIB
=-lpthread
1555 GNATLIB_SHARED
=gnatlib-shared-dual
1557 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1558 LIBRARY_VERSION
:= $(LIB_VERSION
)
1561 ifeq ($(strip $(filter-out darwin
%,$(osys
))),)
1562 ifeq ($(strip $(filter-out %86,$(arch
))),)
1563 LIBGNAT_TARGET_PAIRS
= \
1564 a-intnam.ads
<a-intnam-darwin.ads \
1565 s-inmaop.adb
<s-inmaop-posix.adb \
1566 s-intman.adb
<s-intman-posix.adb \
1567 s-osinte.adb
<s-osinte-darwin.adb \
1568 s-osinte.ads
<s-osinte-darwin.ads \
1569 s-osprim.adb
<s-osprim-posix.adb \
1570 s-taprop.adb
<s-taprop-posix.adb \
1571 s-taspri.ads
<s-taspri-posix.ads \
1572 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1573 g-soccon.ads
<g-soccon-darwin.ads \
1574 a-numaux.ads
<a-numaux-x86.ads \
1575 a-numaux.adb
<a-numaux-x86.adb \
1576 system.ads
<system-darwin-x86.ads
1578 LIBGNAT_TARGET_PAIRS
= \
1579 a-intnam.ads
<a-intnam-darwin.ads \
1580 s-inmaop.adb
<s-inmaop-posix.adb \
1581 s-intman.adb
<s-intman-posix.adb \
1582 s-osinte.adb
<s-osinte-darwin.adb \
1583 s-osinte.ads
<s-osinte-darwin.ads \
1584 s-osprim.adb
<s-osprim-posix.adb \
1585 s-taprop.adb
<s-taprop-posix.adb \
1586 s-taspri.ads
<s-taspri-posix.ads \
1587 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1588 g-soccon.ads
<g-soccon-darwin.ads \
1589 a-numaux.ads
<a-numaux-darwin.ads \
1590 a-numaux.adb
<a-numaux-darwin.adb \
1591 system.ads
<system-darwin-ppc.ads
1594 TOOLS_TARGET_PAIRS
= \
1595 mlib-tgt-specific.adb
<mlib-tgt-darwin.adb
1598 GNATLIB_SHARED
= gnatlib-shared-darwin
1599 SO_OPTS
= -Wl
,-flat_namespace
-shared-libgcc
1602 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1603 LIBRARY_VERSION
:= $(LIB_VERSION
)
1607 ifneq ($(EH_MECHANISM
),)
1608 LIBGNAT_TARGET_PAIRS
+= a-exexpr.adb
<a-exexpr
$(EH_MECHANISM
).adb
1609 EXTRA_LIBGNAT_SRCS
+=raise
$(EH_MECHANISM
).c
1610 EXTRA_LIBGNAT_OBJS
+=raise
$(EH_MECHANISM
).o
1613 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
1614 # explicitly already. The base files (a-except.ad?) are used only for building
1615 # the compiler and other basic tools.
1616 # These base versions lack Ada 2005 additions which would cause bootstrap
1617 # problems if included in the compiler and other basic tools.
1619 ifeq ($(filter-out a-except
%,$(LIBGNAT_TARGET_PAIRS
)),$(LIBGNAT_TARGET_PAIRS
))
1620 LIBGNAT_TARGET_PAIRS
+= \
1621 a-except.ads
<a-except-2005.ads \
1622 a-except.adb
<a-except-2005.adb
1625 # The runtime library for gnat comprises two directories. One contains the
1626 # Ada source files that the compiler (gnat1) needs -- these files are listed
1627 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1628 # corresponding .ali files for the parts written in Ada, libgnat.a for
1629 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1630 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1631 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1632 # go into the directory. The pthreads emulation is built in the threads
1633 # subdirectory and copied.
1634 LIBGNAT_SRCS
= ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1635 errno.c exit.c cal.c ctrl_c.c env.c env.h \
1636 raise.h raise.c sysdep.c aux-io.c init.c initialize.c seh_init.c \
1637 final.c tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c expect.c mkdir.c \
1638 socket.c gsocket.h targext.c
$(EXTRA_LIBGNAT_SRCS
)
1640 LIBGNAT_OBJS
= adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o env.o \
1641 raise.o sysdep.o aux-io.o init.o initialize.o seh_init.o cal.o \
1642 final.o tracebak.o expect.o mkdir.o socket.o targext.o
$(EXTRA_LIBGNAT_OBJS
)
1644 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1645 # the library installation will change and there will be a
1646 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1647 # from ADA_INCLUDE_SRCS.
1649 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1650 # the following include file:
1652 include $(fsrcdir
)/Makefile.rtl
1654 GNATRTL_LINEARALGEBRA_OBJS
= a-nlcoar.o a-nllcar.o a-nllrar.o a-nlrear.o \
1655 a-nucoar.o a-nurear.o i-forbla.o i-forlap.o s-gearop.o
1657 GNATRTL_OBJS
= $(GNATRTL_NONTASKING_OBJS
) $(GNATRTL_TASKING_OBJS
) \
1658 $(GNATRTL_LINEARALGEBRA_OBJS
) g-trasym.o memtrack.o
1660 # Default run time files
1663 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1664 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1665 sequenio.ads system.ads memtrack.adb \
1666 a-
[a-o
]*.adb a-
[p-z
]*.adb a-
[a-o
]*.ads a-
[p-z
]*.ads g-
*.ad? i-
*.ad? \
1667 s-
[a-o
]*.adb s-
[p-z
]*.adb s-
[a-o
]*.ads s-
[p-z
]*.ads
1669 LIBGNAT
=..
/rts
/libgnat.a
1671 GCC_LINK
=$(CC
) -static-libgcc
$(ADA_INCLUDES
)
1673 # when compiling the tools, the runtime has to be first on the path so that
1674 # it hides the runtime files lying with the rest of the sources
1675 ifeq ($(TOOLSCASE
),native
)
1676 vpath
%.ads ..
/rts ..
/
1677 vpath
%.adb ..
/rts ..
/
1678 vpath
%.c ..
/rts ..
/
1679 vpath
%.h ..
/rts ..
/
1682 # in the cross tools case, everything is compiled with the native
1683 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1684 ifeq ($(TOOLSCASE
),cross
)
1691 ..
/..
/gnatchop
$(exeext
):
1692 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatchop
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1693 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatchop
1694 $(GNATLINK
) -v gnatchop
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1696 ..
/..
/gnat
$(exeext
):
1697 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatcmd
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1698 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatcmd
1699 $(GNATLINK
) -v gnatcmd
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1701 ..
/..
/gnatkr
$(exeext
):
1702 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatkr
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1703 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatkr
1704 $(GNATLINK
) -v gnatkr
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1706 ..
/..
/gnatls
$(exeext
):
1707 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatls
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1708 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatls
1709 $(GNATLINK
) -v gnatls
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1711 ..
/..
/gnatname
$(exeext
):
1712 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatname
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1713 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatname
1714 $(GNATLINK
) -v gnatname
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1716 ..
/..
/gprmake
$(exeext
):
1717 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gprmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1718 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gprmake
1719 $(GNATLINK
) -v gprmake
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1721 ..
/..
/gnatprep
$(exeext
):
1722 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatprep
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1723 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatprep
1724 $(GNATLINK
) -v gnatprep
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1726 ..
/..
/gnatxref
$(exeext
):
1727 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatxref
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1728 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatxref
1729 $(GNATLINK
) -v gnatxref
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1731 ..
/..
/gnatfind
$(exeext
):
1732 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatfind
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1733 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatfind
1734 $(GNATLINK
) -v gnatfind
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1736 ..
/..
/gnatclean
$(exeext
):
1737 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatclean
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1738 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatclean
1739 $(GNATLINK
) -v gnatclean
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1741 ..
/..
/gnatsym
$(exeext
):
1742 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatsym
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1743 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatsym
1744 $(GNATLINK
) -v gnatsym
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1746 ..
/..
/gnatdll
$(exeext
):
1747 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatdll
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1748 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) $(GNATBIND_FLAGS
) gnatdll
1749 $(GNATLINK
) -v gnatdll
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1751 ..
/..
/vxaddr2line
$(exeext
): targext.o
1752 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vxaddr2line
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1753 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vxaddr2line
1754 $(GNATLINK
) -v vxaddr2line
-o
$@
--GCC
="$(GCC_LINK)" targext.o
$(CLIB
)
1756 gnatmake-re
: link.o targext.o
1757 $(GNATMAKE
) $(ADA_INCLUDES
) -u sdefault
--GCC
="$(CC) $(MOST_ADA_FLAGS)"
1758 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1759 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmake
1760 $(GNATLINK
) -v gnatmake
-o ..
/..
/gnatmake
$(exeext
) \
1761 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1763 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1764 # with the former version of gnatlink itself which cannot override itself.
1765 gnatlink-re
: link.o targext.o
1766 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlink
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1767 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlink
1768 $(GNATLINK
) -v gnatlink
-o ..
/..
/gnatlinknew
$(exeext
) \
1769 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1770 $(MV
) ..
/..
/gnatlinknew
$(exeext
) ..
/..
/gnatlink
$(exeext
)
1772 # Needs to be built with CC=gcc
1773 # Since the RTL should be built with the latest compiler, remove the
1774 # stamp target in the parent directory whenever gnat1 is rebuilt
1776 # Likewise for the tools
1777 ..
/..
/gnatmake
$(exeext
): $(P
) b_gnatm.o link.o targext.o
$(GNATMAKE_OBJS
)
1778 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatm.o
$(GNATMAKE_OBJS
) \
1781 ..
/..
/gnatlink
$(exeext
): $(P
) b_gnatl.o link.o targext.o
$(GNATLINK_OBJS
)
1782 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatl.o
$(GNATLINK_OBJS
) \
1785 ..
/..
/gnatbl
$(exeext
): gnatbl.o
1786 $(GCC_LINK
) -o
$@
$(ALL_CFLAGS
) $(LDFLAGS
) gnatbl.o
$(TOOLS_LIBS
)
1788 gnatbl.o
: gnatbl.c adaint.h
1789 $(CC
) $(ALL_CFLAGS
) $(INCLUDES
) -c
$< $(OUTPUT_OPTION
)
1792 @if
[ ! -f stamp-gnatlib
] ; \
1794 $(ECHO
) You must first build the GNAT library
: make gnatlib
; \
1800 install-gnatlib
: ..
/stamp-gnatlib
1801 # Create the directory before deleting it, in case the directory is
1802 # a list of directories (as it may be on VMS). This ensures we are
1803 # deleting the right one.
1804 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1805 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1806 $(RMDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1807 $(RMDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1808 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1809 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1810 for file in rts
/*.ali
; do \
1811 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1813 -$(INSTALL_DATA
) rts
/g-trasym
$(objext
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1814 -cd rts
; for file in
*$(arext
);do \
1815 $(INSTALL_DATA
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1816 $(RANLIB_FOR_TARGET
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/$$file; \
1818 -$(foreach file
, $(EXTRA_ADALIB_FILES
), \
1819 $(INSTALL_DATA_DATE
) rts
/$(file
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
) && \
1821 # Install the shared libraries, if any, using $(INSTALL) instead
1822 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1823 # for shared libraries on some targets, e.g. on HP-UX where the x
1824 # permission is required.
1825 for file in gnat gnarl
; do \
1826 if
[ -f rts
/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) ]; then \
1827 $(INSTALL
) rts
/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1828 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1830 if
[ -f rts
/lib
$${file}$(soext
) ]; then \
1831 $(LN_S
) lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1832 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/lib
$${file}$(soext
); \
1835 # This copy must be done preserving the date on the original file.
1836 for file in rts
/*.ad?
; do \
1837 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_INCLUDE_DIR
); \
1839 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.adb
1840 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.ads
1844 $(RM
) rts
/s-
*$(objext
)
1846 $(RM
) rts
/a-
*$(objext
)
1848 $(RM
) rts
/*$(objext
)
1851 touch ..
/stamp-gnatlib2
1852 $(RM
) ..
/stamp-gnatlib
1854 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1855 # successive target commands. Although the Gnu make documentation
1856 # implies this is true on all systems, I suspect it may not be, So care
1857 # has been taken to allow a sed script to look for ";)" and substitue
1858 # for ";" the appropriate character in the range of lines below
1859 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1861 # GNULLI Begin ###########################################################
1863 ..
/stamp-gnatlib1
: Makefile ..
/stamp-gnatlib2
1867 # Copy target independent sources
1868 $(foreach f
,$(ADA_INCLUDE_SRCS
) $(LIBGNAT_SRCS
), \
1869 $(LN_S
) $(fsrcpfx
)$(f
) rts
;) true
1870 # Remove files to be replaced by target dependent sources
1871 $(RM
) $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
1872 rts
/$(word 1,$(subst <, ,$(PAIR
))))
1873 $(RM
) rts
/*-*-*.ads rts
/*-*-*.adb
1874 # Copy new target dependent sources
1875 $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
1876 $(LN_S
) $(fsrcpfx
)$(word 2,$(subst <, ,$(PAIR
))) \
1877 rts
/$(word 1,$(subst <, ,$(PAIR
)));)
1878 $(RM
) ..
/stamp-gnatlib
1879 touch ..
/stamp-gnatlib1
1881 # GNULLI End #############################################################
1883 # Don't use semicolon separated shell commands that involve list expansions.
1884 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1885 # line lengths in excess of 256 characters.
1886 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1887 # is guaranteed to overflow the buffer.
1889 gnatlib
: ..
/stamp-gnatlib1 ..
/stamp-gnatlib2
1891 CC
="`echo \"$(GCC_FOR_TARGET)\" \
1892 | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
1893 INCLUDES
="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1894 CFLAGS
="$(GNATLIBCFLAGS_FOR_C)" \
1895 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
1897 -f ..
/Makefile
$(LIBGNAT_OBJS
)
1899 CC
="`echo \"$(GCC_FOR_TARGET)\" \
1900 | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
1902 CFLAGS
="$(GNATLIBCFLAGS)" \
1903 ADAFLAGS
="$(GNATLIBFLAGS)" \
1904 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
1908 $(RM
) rts
/libgnat
$(arext
) rts
/libgnarl
$(arext
)
1909 $(AR_FOR_TARGET
) $(AR_FLAGS
) rts
/libgnat
$(arext
) \
1910 $(addprefix rts
/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
1911 ifneq ($(PREFIX_OBJS
),)
1912 $(AR_FOR_TARGET
) $(AR_FLAGS
) rts
/libgccprefix
$(arext
) \
1914 $(RANLIB_FOR_TARGET
) rts
/libgccprefix
$(arext
)
1916 $(RANLIB_FOR_TARGET
) rts
/libgnat
$(arext
)
1917 $(AR_FOR_TARGET
) $(AR_FLAGS
) rts
/libgnarl
$(arext
) \
1918 $(addprefix rts
/,$(GNATRTL_TASKING_OBJS
))
1919 $(RANLIB_FOR_TARGET
) rts
/libgnarl
$(arext
)
1920 $(AR_FOR_TARGET
) $(AR_FLAGS
) rts
/libgnala
$(arext
) \
1921 $(addprefix rts
/,$(GNATRTL_LINEARALGEBRA_OBJS
))
1922 $(RANLIB_FOR_TARGET
) rts
/libgnala
$(arext
)
1923 ifeq ($(GMEM_LIB
),gmemlib
)
1924 $(AR_FOR_TARGET
) $(AR_FLAGS
) rts
/libgmem
$(arext
) \
1926 $(RANLIB_FOR_TARGET
) rts
/libgmem
$(arext
)
1928 $(CHMOD
) a-wx rts
/*.ali
1929 touch ..
/stamp-gnatlib
1931 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
1932 gnatlib-shared-default
:
1933 $(MAKE
) $(FLAGS_TO_PASS
) \
1934 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1935 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1936 THREAD_KIND
="$(THREAD_KIND)" \
1938 $(RM
) rts
/libgna
*$(soext
)
1939 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(GNATLIBCFLAGS
) \
1940 $(TARGET_LIBGCC2_CFLAGS
) \
1941 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1942 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
1943 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1945 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(GNATLIBCFLAGS
) \
1946 $(TARGET_LIBGCC2_CFLAGS
) \
1947 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1948 $(GNATRTL_TASKING_OBJS
) \
1949 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1951 cd rts
; $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1953 cd rts
; $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1956 gnatlib-shared-dual
:
1957 $(MAKE
) $(FLAGS_TO_PASS
) \
1958 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1959 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1960 THREAD_KIND
="$(THREAD_KIND)" \
1961 gnatlib-shared-default
1962 $(MV
) rts
/libgna
*$(soext
) .
1963 $(RM
) ..
/stamp-gnatlib2
1964 $(MAKE
) $(FLAGS_TO_PASS
) \
1965 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1966 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1967 THREAD_KIND
="$(THREAD_KIND)" \
1969 $(MV
) libgna
*$(soext
) rts
1971 gnatlib-shared-dual-win32
:
1972 $(MAKE
) $(FLAGS_TO_PASS
) \
1973 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1974 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1975 THREAD_KIND
="$(THREAD_KIND)" \
1976 gnatlib-shared-win32
1977 $(MV
) rts
/libgna
*$(soext
) .
1978 $(RM
) ..
/stamp-gnatlib2
1979 $(MAKE
) $(FLAGS_TO_PASS
) \
1980 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1981 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
1982 THREAD_KIND
="$(THREAD_KIND)" \
1984 $(MV
) libgna
*$(soext
) rts
1986 # ??? we need to add the option to support auto-import of arrays/records to
1987 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
1988 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
1990 gnatlib-shared-win32
:
1991 $(MAKE
) $(FLAGS_TO_PASS
) \
1992 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1993 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1994 THREAD_KIND
="$(THREAD_KIND)" \
1996 $(RM
) rts
/libgna
*$(soext
)
1997 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
1998 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1999 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2000 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) $(MISCLIB
)
2001 cd rts
; ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
2002 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2003 $(GNATRTL_TASKING_OBJS
) \
2004 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2005 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2007 gnatlib-shared-darwin
:
2008 $(MAKE
) $(FLAGS_TO_PASS
) \
2009 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2010 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) \
2012 THREAD_KIND
="$(THREAD_KIND)" \
2014 $(RM
) rts
/libgnat
$(soext
) rts
/libgnarl
$(soext
)
2015 cd rts
; ..
/..
/xgcc
-B..
/..
/ -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
2016 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2017 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2020 cd rts
; ..
/..
/xgcc
-B..
/..
/ -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
2021 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2022 $(GNATRTL_TASKING_OBJS
) \
2024 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2025 cd rts
; $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2027 cd rts
; $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2031 $(MAKE
) $(FLAGS_TO_PASS
) \
2032 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2033 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2034 THREAD_KIND
="$(THREAD_KIND)" \
2036 $(RM
) rts
/libgna
*$(soext
)
2037 cd rts
&& echo
"case_sensitive=yes" > SYMVEC_
$$$$.opt
&& \
2038 objdump
--syms
$(LIBGNAT_OBJS
) $(GNATRTL_NONTASKING_OBJS
) | \
2039 $(SHLIB_SYMVEC
) >> SYMVEC_
$$$$.opt
&& \
2040 echo
"case_sensitive=NO" >> SYMVEC_
$$$$.opt
&& \
2041 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2042 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) libgnat.a \
2043 sys\
$$library:trace.exe \
2044 --for-linker
=/noinform \
2045 --for-linker
=SYMVEC_
$$$$.opt \
2046 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2047 cd rts
&& echo
"case_sensitive=yes" > SYMVEC_
$$$$.opt
&& \
2048 objdump
--syms
$(GNATRTL_TASKING_OBJS
) | \
2049 $(SHLIB_SYMVEC
) >> SYMVEC_
$$$$.opt
&& \
2050 echo
"case_sensitive=NO" >> SYMVEC_
$$$$.opt
&& \
2051 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2052 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2053 libgnarl.a libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2054 sys\
$$library:trace.exe \
2055 --for-linker
=/noinform \
2056 --for-linker
=SYMVEC_
$$$$.opt \
2057 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2060 $(MAKE
) $(FLAGS_TO_PASS
) \
2061 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2062 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2063 THREAD_KIND
="$(THREAD_KIND)" \
2064 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" \
2068 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="" ..
/stamp-gnatlib1
2069 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' rts
/system.ads
> rts
/s.ads
2070 $(MV
) rts
/s.ads rts
/system.ads
2071 $(MAKE
) $(FLAGS_TO_PASS
) \
2073 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2074 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2075 THREAD_KIND
="$(THREAD_KIND)" \
2076 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2079 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="-gcc" ..
/stamp-gnatlib1
2080 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' rts
/system.ads
> rts
/s.ads
2081 $(MV
) rts
/s.ads rts
/system.ads
2082 $(MAKE
) $(FLAGS_TO_PASS
) \
2083 EH_MECHANISM
="-gcc" \
2084 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2085 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2086 THREAD_KIND
="$(THREAD_KIND)" \
2087 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2089 # .s files for cross-building
2091 make
$(GNAT1_ADA_OBJS
) CC
="gcc -B../stage1/" CFLAGS
="-S -gnatp"
2093 # Compiling object files from source files.
2095 # Note that dependencies on obstack.h are not written
2096 # because that file is not part of GCC.
2097 # Dependencies on gvarargs.h are not written
2098 # because all that file does, when not compiling with GCC,
2099 # is include the system varargs.h.
2101 b_gnatl.c
: $(GNATLINK_OBJS
)
2102 $(GNATBIND
) -C
$(ADA_INCLUDES
) -o b_gnatl.c gnatlink.ali
2103 b_gnatl.o
: b_gnatl.c
2105 b_gnatm.c
: $(GNATMAKE_OBJS
)
2106 $(GNATBIND
) -C
$(ADA_INCLUDES
) -o b_gnatm.c gnatmake.ali
2107 b_gnatm.o
: b_gnatm.c
2109 ADA_INCLUDE_DIR
= $(libsubdir
)/adainclude
2110 ADA_RTL_OBJ_DIR
= $(libsubdir
)/adalib
2112 # force no sibling call optimization on s-traceb.o so the number of stack
2113 # frames to be skipped when computing a call chain is not modified by
2114 # optimization. However we can do that only when building the runtime
2115 # (not the compiler) because the -fno-optimize-sibling-calls option exists
2116 # only in GCC 3 and above.
2118 ifneq (,$(findstring xgcc
,$(CC
)))
2119 NO_SIBLING_ADAFLAGS
=-fno-optimize-sibling-calls
2121 NO_SIBLING_ADAFLAGS
=
2124 s-traceb.o
: s-traceb.adb
2125 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) \
2126 $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) \
2129 # force debugging information on s-tasdeb.o so that it is always
2130 # possible to set conditional breakpoints on tasks.
2132 s-tasdeb.o
: s-tasdeb.adb s-tasdeb.ads
2133 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2136 # force no function reordering on a-except.o because of the exclusion bounds
2137 # mechanism (see the source file for more detailed information). However we
2138 # can do that only when building the runtime (not the compiler) because the
2139 # -fno-toplevel-reorder option exists only in GCC 4.2 and above.
2141 ifneq (,$(findstring xgcc
,$(CC
)))
2142 NO_REORDER_ADAFLAGS
=-fno-toplevel-reorder
2144 NO_REORDER_ADAFLAGS
=
2147 # force debugging information on a-except.o so that it is always
2148 # possible to set conditional breakpoints on exceptions.
2149 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2151 a-except.o
: a-except.adb a-except.ads
2152 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O1
-fno-inline \
2153 $(NO_REORDER_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2155 # compile s-except.o without optimization and with debug info to let the
2156 # debugger set breakpoints and inspect subprogram parameters on exception
2159 s-except.o
: s-except.adb s-except.ads
2160 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2163 # force debugging information on s-assert.o so that it is always
2164 # possible to set breakpoint on assert failures.
2166 s-assert.o
: s-assert.adb s-assert.ads a-except.ads
2167 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O2
$(ADA_INCLUDES
) \
2170 adadecode.o
: adadecode.c adadecode.h
2174 deftarg.o
: deftarg.c
2176 exit.o
: adaint.h exit.c
2182 socket.o
: socket.c gsocket.h
2184 raise-gcc.o
: raise-gcc.c raise.h
2185 raise.o
: raise.c raise.h
2186 vx_stack_info.o
: vx_stack_info.c
2188 gen-soccon
: gen-soccon.c gsocket.h
2189 $(CC
) $(ALL_CFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) $(INCLUDES
) \
2190 -UIN_GCC
-DTARGET
=\"$(target_alias
)\" \
2194 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) \
2195 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2197 init.o
: init.c adaint.h raise.h
2198 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) \
2199 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2201 initialize.o
: initialize.c raise.h
2202 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) \
2203 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2205 targext.o
: targext.c
2206 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) \
2207 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
2210 # No optimization to compile this file as optimizations (-O1 or above) breaks
2211 # the SEH handling on Windows. The reasons are not clear.
2212 seh_init.o
: seh_init.c raise.h
2213 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) -O0 \
2214 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2216 # Need to keep the frame pointer in this file to pop the stack properly on
2218 tracebak.o
: tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2219 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) $(INCLUDES
) \
2220 -fno-omit-frame-pointer
$< $(OUTPUT_OPTION
)
2222 # In GNU Make, ignore whether `stage*' exists.
2223 .PHONY
: stage1 stage2 stage3 stage4
clean realclean TAGS bootstrap
2224 .PHONY
: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2228 # Gnatlbr, Vms_help, and Gnat.hlp are only used on VMS
2230 ..
/..
/gnatlbr
$(exeext
): ..
/..
/prefix.o
2231 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlbr
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2232 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlbr
2233 $(GNATLINK
) -v gnatlbr
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2235 ..
/..
/vms_help
$(exeext
):
2236 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vms_help
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2237 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vms_help
2238 $(GNATLINK
) -v vms_help
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2240 ..
/..
/gnat.hlp
: ..
/..
/vms_help
$(exeext
)
2241 ..
/..
/vms_help
$(exeext
) $(fsrcdir
)/gnat.help_in \
2242 $(fsrcdir
)/vms_data.ads ..
/..
/gnat.hlp