1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2008 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 # Suppress smart makes who think they know how to automake Yacc files
62 # Variables that exist for you to override.
63 # See below for how to change them for certain systems.
65 # Various ways of specifying flags for compilations:
66 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
67 # BOOT_CFLAGS is the value of CFLAGS to pass
68 # to the stage2 and stage3 compilations
70 BOOT_CFLAGS
= -O
$(CFLAGS
)
71 # These exists to be overridden by the t-* files, respectively.
92 RANLIB_FLAGS
= @ranlib_flags@
95 PWD_COMMAND
= $${PWDCMD-pwd
}
96 # How to copy preserving the date
97 INSTALL_DATA_DATE
= cp
-p
101 GNATBIND_FLAGS
= -static
-x
103 ADAFLAGS
= -W
-Wall
-gnatpg
-gnata
104 SOME_ADAFLAGS
=-gnata
105 FORCE_DEBUG_ADAFLAGS
= -g
106 GNATLIBFLAGS
= -gnatpg
-nostdinc
107 GNATLIBCFLAGS
= -g
-O2
108 GNATLIBCFLAGS_FOR_C
= $(GNATLIBCFLAGS
) $(TARGET_LIBGCC2_CFLAGS
) -fexceptions \
110 ALL_ADAFLAGS
= $(CFLAGS
) $(ADA_CFLAGS
) $(ADAFLAGS
)
111 MOST_ADAFLAGS
= $(CFLAGS
) $(ADA_CFLAGS
) $(SOME_ADAFLAGS
)
116 SYMDEPS
= $(LIBINTL_DEP
)
117 OUTPUT_OPTION
= @OUTPUT_OPTION@
126 # Define this as & to perform parallel make on a Sequent.
127 # Note that this has some bugs, and it seems currently necessary
128 # to compile all the gen* files first by hand to avoid erroneous results.
131 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
133 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
134 GCC_CFLAGS
= $(INTERNAL_CFLAGS
) $(T_CFLAGS
) $(CFLAGS
)
136 # Tools to use when building a cross-compiler.
137 # These are used because `configure' appends `cross-make'
138 # to the makefile when making a cross-compiler.
140 # We don't use cross-make. Instead we use the tools from the build tree,
141 # if they are available.
142 # program_transform_name and objdir are set by configure.in.
143 program_transform_name
=
146 target_alias
=@target_alias@
148 xmake_file
= @xmake_file@
149 tmake_file
= @tmake_file@
150 host_canonical
=@host@
151 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
152 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
154 # Directory where sources are, from where we are.
157 fsrcdir
:= $(shell cd
$(srcdir);${PWD_COMMAND})
158 fsrcpfx
:= $(shell cd
$(srcdir);${PWD_COMMAND})/
159 fcurdir
:= $(shell ${PWD_COMMAND})
160 fcurpfx
:= $(shell ${PWD_COMMAND})/
162 # Top build directory, relative to here.
165 # Internationalization library.
167 LIBINTL_DEP
= @LIBINTL_DEP@
169 # Any system libraries needed just for GNAT.
170 SYSLIBS
= @GNAT_LIBEXC@
172 # List of extra object files linked in with various programs.
173 EXTRA_GNATTOOLS_OBJS
= ..
/..
/prefix.o ..
/..
/version.o
175 # List of target dependent sources, overridden below as necessary
178 # Type of tools build we are doing; default is not compiling tools.
183 RTSDIR
= rts
$(subst /,_
,$(MULTISUBDIR
))
185 # End of variables for you to override.
189 # This tells GNU Make version 3 not to put all variables in the environment.
192 # tmake_file and xmake_file expand to lists with entries of the form
193 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
194 # need to adjust the paths. There can't be spaces in the subst arguments
195 # or we get spurious spaces in the actual list of files to include.
198 ifneq ($(tmake_file
),)
199 include $(subst /config
,/..
/config
,$(tmake_file
))
203 ifneq ($(xmake_file
),)
204 include $(subst /config
,/..
/config
,$(xmake_file
))
207 # Now figure out from those variables how to compile and link.
209 all.indirect
: Makefile ..
/gnat1
$(exeext
)
211 # IN_GCC distinguishes between code compiled into GCC itself and other
212 # programs built during a bootstrap.
213 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
214 # compiler which does not use the native libraries and headers.
215 INTERNAL_CFLAGS
= @CROSS@
-DIN_GCC
217 # This is the variable actually used when we compile.
218 LOOSE_CFLAGS
= `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
219 ALL_CFLAGS
= $(INTERNAL_CFLAGS
) $(T_CFLAGS
) $(LOOSE_CFLAGS
)
222 ALL_CPPFLAGS
= $(CPPFLAGS
)
224 # This is where we get libiberty.a from.
225 LIBIBERTY
= ..
/..
/libiberty
/libiberty.a
227 # How to link with both our special library facilities
228 # and the system's installed libraries.
229 LIBS
= $(LIBINTL
) $(LIBIBERTY
) $(SYSLIBS
)
230 LIBDEPS
= $(LIBINTL_DEP
) $(LIBIBERTY
)
231 # Default is no TGT_LIB; one might be passed down or something
233 TOOLS_LIBS
= $(EXTRA_GNATTOOLS_OBJS
) targext.o link.o
$(LIBGNAT
) ..
/..
/..
/libiberty
/libiberty.a
$(SYSLIBS
) $(TGT_LIB
)
235 # Specify the directories to be searched for header files.
236 # Both . and srcdir are used, in that order,
237 # so that tm.h and config.h will be found in the compilation
238 # subdirectory rather than in the source directory.
239 INCLUDES
= -I-
-I.
-I..
-I
$(srcdir) -I
$(srcdir)/..
-I
$(srcdir)/..
/config \
240 -I
$(srcdir)/..
/..
/include
242 ADA_INCLUDES
= -I-
-I.
-I
$(srcdir)
244 INCLUDES_FOR_SUBDIR
= -I.
-I..
-I..
/..
-I
$(fsrcdir
) -I
$(fsrcdir
)/..
/config \
245 -I
$(fsrcdir
)/..
/..
/include -I
$(fsrcdir
)/..
246 ADA_INCLUDES_FOR_SUBDIR
= -I.
-I
$(fsrcdir
) -I
$(fsrcdir
)/gcc
248 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
251 # Say how to compile Ada programs.
252 .SUFFIXES
: .ada .adb .ads .asm
254 # Always use -I$(srcdir)/config when compiling.
256 $(CC
) -c
-x assembler
$< $(OUTPUT_OPTION
)
259 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) $(INCLUDES
) $< \
263 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
266 $(CC
) -c
$(ALL_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
268 # how to regenerate this file
269 Makefile
: ..
/config.status
$(srcdir)/gcc-interface
/Makefile.in
$(srcdir)/Makefile.in
$(srcdir)/..
/version.c
271 LANGUAGES
="$(CONFIG_LANGUAGES)" \
273 CONFIG_FILES
="ada/gcc-interface/Makefile ada/Makefile" $(SHELL
) config.status
275 # This tells GNU make version 3 not to export all the variables
276 # defined in this file into the environment.
279 # Lists of files for various purposes.
281 GNATLINK_OBJS
= gnatlink.o \
282 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
283 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
284 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
285 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
286 types.o validsw.o widechar.o
288 GNATMAKE_OBJS
= a-except.o ali.o ali-util.o s-casuti.o \
289 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
290 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
291 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
292 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
293 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o output.o \
294 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 \
295 prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o \
296 rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
297 scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o \
298 sinfo.o sinput.o sinput-c.o sinput-p.o \
299 snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o switch.o switch-m.o \
300 table.o targparm.o tempdir.o tree_io.o types.o \
301 uintp.o uname.o urealp.o usage.o widechar.o \
302 $(EXTRA_GNATMAKE_OBJS
)
304 # Convert the target variable into a space separated list of architecture,
305 # manufacturer, and operating system and assign each of those to its own
308 host
:=$(subst -, ,$(host_canonical
))
309 targ
:=$(subst -, ,$(target
))
310 arch
:=$(word 1,$(targ
))
311 ifeq ($(words $(targ
)),2)
313 osys
:=$(word 2,$(targ
))
315 manu
:=$(word 2,$(targ
))
316 osys
:=$(word 3,$(targ
))
319 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
320 # The members of each pair must be separated by a '<' and no whitespace.
321 # Each pair must be separated by some amount of whitespace from the following
326 LIBGNAT_TARGET_PAIRS
= \
327 a-intnam.ads
<a-intnam-dummy.ads \
328 s-inmaop.adb
<s-inmaop-dummy.adb \
329 s-intman.adb
<s-intman-dummy.adb \
330 s-osinte.ads
<s-osinte-dummy.ads \
331 s-osprim.adb
<s-osprim-posix.adb \
332 s-taprop.adb
<s-taprop-dummy.adb \
333 s-taspri.ads
<s-taspri-dummy.ads
335 # When using the GCC exception handling mechanism, we need to use an
336 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
340 # Default shared object option. Note that we rely on the fact that the "soname"
341 # option will always be present and last in this flag, so that we can have
342 # $(SO_OPTS)libgnat-x.xx
344 SO_OPTS
= -Wl
,-soname
,
346 # Default gnatlib-shared target.
347 # By default, equivalent to gnatlib.
348 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
349 # target when supported.
350 GNATLIB_SHARED
= gnatlib
352 # default value for gnatmake's target dependent file
355 # By default, do not distribute prefix.o (in libgccprefix), since it is only
356 # needed by external GNAT tools such as gnatdist and Glide.
357 # Override this variable on native platforms when needed.
360 # To avoid duplicate code, use this variable to set PREFIX_OBJS when needed:
361 PREFIX_REAL_OBJS
= ..
/prefix.o \
362 ..
/..
/libiberty
/concat.o \
363 ..
/..
/libiberty
/xmalloc.o \
364 ..
/..
/libiberty
/xstrdup.o \
365 ..
/..
/libiberty
/xexit.o
367 LIB_VERSION
= $(strip $(shell grep
' Library_Version :' $(fsrcpfx
)gnatvsn.ads | sed
-e
's/.*"\(.*\)".*/\1/'))
369 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
370 # $(strip STRING) removes leading and trailing spaces from STRING.
371 # If what's left is null then it's a match.
373 ifeq ($(strip $(filter-out m68k
% wrs vx
%,$(targ
))),)
374 LIBGNAT_TARGET_PAIRS
= \
375 a-intnam.ads
<a-intnam-vxworks.ads \
376 a-numaux.ads
<a-numaux-vxworks.ads \
377 s-inmaop.adb
<s-inmaop-posix.adb \
378 s-interr.adb
<s-interr-vxworks.adb \
379 s-intman.ads
<s-intman-vxworks.ads \
380 s-intman.adb
<s-intman-vxworks.adb \
381 s-osinte.adb
<s-osinte-vxworks.adb \
382 s-osinte.ads
<s-osinte-vxworks.ads \
383 s-osprim.adb
<s-osprim-vxworks.adb \
384 s-parame.ads
<s-parame-vxworks.ads \
385 s-parame.adb
<s-parame-vxworks.adb \
386 s-stchop.ads
<s-stchop-limit.ads \
387 s-stchop.adb
<s-stchop-vxworks.adb \
388 s-taprop.adb
<s-taprop-vxworks.adb \
389 s-taspri.ads
<s-taspri-vxworks.ads \
390 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
391 s-vxwork.ads
<s-vxwork-m68k.ads \
392 g-soccon.ads
<g-soccon-vxworks.ads \
393 g-socthi.ads
<g-socthi-vxworks.ads \
394 g-socthi.adb
<g-socthi-vxworks.adb \
395 g-stsifd.adb
<g-stsifd-sockets.adb \
396 g-sttsne.adb
<g-sttsne-vxworks.adb \
397 g-sttsne.ads
<g-sttsne-locking.ads \
398 system.ads
<system-vxworks-m68k.ads
400 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb
402 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
403 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
405 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
406 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
408 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
409 LIBGNAT_TARGET_PAIRS
+= \
410 s-traces.adb
<s-traces-default.adb \
411 s-tratas.adb
<s-tratas-default.adb \
412 s-trafor.adb
<s-trafor-default.adb \
413 s-trafor.ads
<s-trafor-default.ads \
414 s-tfsetr.adb
<s-tfsetr-vxworks.adb
418 ifeq ($(strip $(filter-out powerpc
% wrs vxworks
,$(targ
))),)
419 LIBGNAT_TARGET_PAIRS
= \
420 a-intnam.ads
<a-intnam-vxworks.ads \
421 a-numaux.ads
<a-numaux-vxworks.ads \
422 s-inmaop.adb
<s-inmaop-posix.adb \
423 s-intman.ads
<s-intman-vxworks.ads \
424 s-intman.adb
<s-intman-vxworks.adb \
425 s-osprim.adb
<s-osprim-vxworks.adb \
426 s-parame.ads
<s-parame-vxworks.ads \
427 s-parame.adb
<s-parame-vxworks.adb \
428 s-stchop.ads
<s-stchop-limit.ads \
429 s-stchop.adb
<s-stchop-vxworks.adb \
430 s-taprop.adb
<s-taprop-vxworks.adb \
431 s-taspri.ads
<s-taspri-vxworks.ads \
432 s-vxwork.ads
<s-vxwork-ppc.ads \
433 g-soccon.ads
<g-soccon-vxworks.ads \
434 g-socthi.ads
<g-socthi-vxworks.ads \
435 g-socthi.adb
<g-socthi-vxworks.adb \
436 g-stsifd.adb
<g-stsifd-sockets.adb \
437 g-sttsne.adb
<g-sttsne-vxworks.adb \
438 g-sttsne.ads
<g-sttsne-locking.ads
440 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb
442 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
443 LIBGNAT_TARGET_PAIRS
+= \
444 s-traces.adb
<s-traces-default.adb \
445 s-trafor.adb
<s-trafor-default.adb \
446 s-trafor.ads
<s-trafor-default.ads \
447 s-tratas.adb
<s-tratas-default.adb \
448 s-tfsetr.adb
<s-tfsetr-vxworks.adb
451 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
452 LIBGNAT_TARGET_PAIRS
+= \
453 s-osinte.adb
<s-osinte-vxworks-rtp.adb \
454 s-osinte.ads
<s-osinte-vxworks6.ads \
455 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
456 system.ads
<system-vxworks-ppc-rtp.ads
458 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
460 LIBGNAT_TARGET_PAIRS
+= \
461 s-interr.adb
<s-interr-vxworks.adb \
462 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
463 system.ads
<system-vxworks-ppc.ads
465 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
466 LIBGNAT_TARGET_PAIRS
+= \
467 s-osinte.ads
<s-osinte-vxworks6.ads \
468 s-osinte.adb
<s-osinte-vxworks-kernel.adb
470 LIBGNAT_TARGET_PAIRS
+= \
471 s-osinte.ads
<s-osinte-vxworks.ads \
472 s-osinte.adb
<s-osinte-vxworks.adb
475 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
478 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
480 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
481 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
484 # vxworksae / vxworks 653
485 ifeq ($(strip $(filter-out powerpc
% wrs vxworksae
,$(targ
))),)
486 # target pairs for kernel + vthreads runtime
487 LIBGNAT_TARGET_PAIRS
= \
488 a-elchha.adb
<a-elchha-vxworks-ppc-full.adb \
489 a-intnam.ads
<a-intnam-vxworks.ads \
490 a-numaux.ads
<a-numaux-vxworks.ads \
491 g-io.adb
<g-io-vxworks-ppc-cert.adb \
492 g-io.ads
<g-io-vxworks-ppc-cert.ads \
493 s-inmaop.adb
<s-inmaop-posix.adb \
494 s-interr.adb
<s-interr-vxworks.adb \
495 s-intman.ads
<s-intman-vxworks.ads \
496 s-intman.adb
<s-intman-vxworks.adb \
497 s-osinte.adb
<s-osinte-vxworks.adb \
498 s-osinte.ads
<s-osinte-vxworks.ads \
499 s-osprim.adb
<s-osprim-vxworks.adb \
500 s-parame.ads
<s-parame-ae653.ads \
501 s-parame.adb
<s-parame-vxworks.adb \
502 s-taprop.adb
<s-taprop-vxworks.adb \
503 s-taspri.ads
<s-taspri-vxworks.ads \
504 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
505 s-vxwork.ads
<s-vxwork-ppc.ads \
506 g-soccon.ads
<g-soccon-vxworks.ads \
507 g-socthi.ads
<g-socthi-vxworks.ads \
508 g-socthi.adb
<g-socthi-vxworks.adb \
509 g-stsifd.adb
<g-stsifd-sockets.adb \
510 g-sttsne.adb
<g-sttsne-vxworks.adb \
511 g-sttsne.ads
<g-sttsne-locking.ads \
512 system.ads
<system-vxworks-ppc-vthread.ads
514 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb
516 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
517 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
519 # Extra pairs for the vthreads runtime
520 ifeq ($(strip $(filter-out vthreads
,$(THREAD_KIND
))),)
521 LIBGNAT_TARGET_PAIRS
+= \
522 s-thread.adb
<s-thread-ae653.adb
523 EXTRA_GNATRTL_NONTASKING_OBJS
+= s-thread.o
526 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
527 LIBGNAT_TARGET_PAIRS
+= \
528 s-traces.adb
<s-traces-default.adb \
529 s-trafor.adb
<s-trafor-default.adb \
530 s-trafor.ads
<s-trafor-default.ads \
531 s-tratas.adb
<s-tratas-default.adb \
532 s-tfsetr.adb
<s-tfsetr-vxworks.adb
536 ifeq ($(strip $(filter-out sparc
% wrs vx
%,$(targ
))),)
537 LIBGNAT_TARGET_PAIRS
= \
538 a-intnam.ads
<a-intnam-vxworks.ads \
539 a-numaux.ads
<a-numaux-vxworks.ads \
540 s-inmaop.adb
<s-inmaop-posix.adb \
541 s-interr.adb
<s-interr-vxworks.adb \
542 s-intman.ads
<s-intman-vxworks.ads \
543 s-intman.adb
<s-intman-vxworks.adb \
544 s-osinte.adb
<s-osinte-vxworks.adb \
545 s-osinte.ads
<s-osinte-vxworks.ads \
546 s-osprim.adb
<s-osprim-vxworks.adb \
547 s-parame.ads
<s-parame-vxworks.ads \
548 s-parame.adb
<s-parame-vxworks.adb \
549 s-stchop.ads
<s-stchop-limit.ads \
550 s-stchop.adb
<s-stchop-vxworks.adb \
551 s-taprop.adb
<s-taprop-vxworks.adb \
552 s-taspri.ads
<s-taspri-vxworks.ads \
553 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
554 s-vxwork.ads
<s-vxwork-sparcv9.ads \
555 g-soccon.ads
<g-soccon-vxworks.ads \
556 g-socthi.ads
<g-socthi-vxworks.ads \
557 g-socthi.adb
<g-socthi-vxworks.adb \
558 g-stsifd.adb
<g-stsifd-sockets.adb \
559 g-sttsne.adb
<g-sttsne-vxworks.adb \
560 g-sttsne.ads
<g-sttsne-locking.ads \
561 system.ads
<system-vxworks-sparcv9.ads \
563 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb
565 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
566 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
568 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
569 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
572 ifeq ($(strip $(filter-out %86 wrs vxworks
,$(targ
))),)
573 LIBGNAT_TARGET_PAIRS
= \
574 a-intnam.ads
<a-intnam-vxworks.ads \
575 i-vxwork.ads
<i-vxwork-x86.ads \
576 s-inmaop.adb
<s-inmaop-posix.adb \
577 s-intman.ads
<s-intman-vxworks.ads \
578 s-intman.adb
<s-intman-vxworks.adb \
579 a-numaux.adb
<a-numaux-x86.adb \
580 a-numaux.ads
<a-numaux-x86.ads \
581 s-osprim.adb
<s-osprim-vxworks.adb \
582 s-parame.ads
<s-parame-vxworks.ads \
583 s-parame.adb
<s-parame-vxworks.adb \
584 s-stchop.ads
<s-stchop-limit.ads \
585 s-stchop.adb
<s-stchop-vxworks.adb \
586 s-taprop.adb
<s-taprop-vxworks.adb \
587 s-taspri.ads
<s-taspri-vxworks.ads \
588 s-vxwork.ads
<s-vxwork-x86.ads \
589 g-bytswa.adb
<g-bytswa-x86.adb \
590 g-soccon.ads
<g-soccon-vxworks.ads \
591 g-socthi.ads
<g-socthi-vxworks.ads \
592 g-socthi.adb
<g-socthi-vxworks.adb \
593 g-stsifd.adb
<g-stsifd-sockets.adb \
594 g-sttsne.adb
<g-sttsne-vxworks.adb \
595 g-sttsne.ads
<g-sttsne-locking.ads
597 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb
599 ifeq ($(strip $(filter-out yes
,$(TRACE
))),)
600 LIBGNAT_TARGET_PAIRS
+= \
601 s-traces.adb
<s-traces-default.adb \
602 s-trafor.adb
<s-trafor-default.adb \
603 s-trafor.ads
<s-trafor-default.ads \
604 s-tratas.adb
<s-tratas-default.adb \
605 s-tfsetr.adb
<s-tfsetr-vxworks.adb
608 ifeq ($(strip $(filter-out rtp
,$(THREAD_KIND
))),)
609 LIBGNAT_TARGET_PAIRS
+= \
610 s-osinte.adb
<s-osinte-vxworks-rtp.adb \
611 s-osinte.ads
<s-osinte-vxworks6.ads \
612 s-tpopsp.adb
<s-tpopsp-vxworks-rtp.adb \
613 system.ads
<system-vxworks-x86-rtp.ads
615 EXTRA_GNATRTL_NONTASKING_OBJS
=s-vxwexc.o
617 LIBGNAT_TARGET_PAIRS
+= \
618 s-interr.adb
<s-interr-vxworks.adb \
619 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
620 system.ads
<system-vxworks-x86.ads
622 ifeq ($(strip $(filter-out kernel
,$(THREAD_KIND
))),)
623 LIBGNAT_TARGET_PAIRS
+= \
624 s-osinte.ads
<s-osinte-vxworks6.ads \
625 s-osinte.adb
<s-osinte-vxworks-kernel.adb
627 LIBGNAT_TARGET_PAIRS
+= \
628 s-osinte.ads
<s-osinte-vxworks.ads \
629 s-osinte.adb
<s-osinte-vxworks.adb
632 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o s-vxwexc.o
635 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
637 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
638 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
641 ifeq ($(strip $(filter-out arm
% coff wrs vx
%,$(targ
))),)
642 LIBGNAT_TARGET_PAIRS
= \
643 a-intnam.ads
<a-intnam-vxworks.ads \
644 a-numaux.ads
<a-numaux-vxworks.ads \
645 s-inmaop.adb
<s-inmaop-posix.adb \
646 s-interr.adb
<s-interr-vxworks.adb \
647 s-intman.ads
<s-intman-vxworks.ads \
648 s-intman.adb
<s-intman-vxworks.adb \
649 s-osinte.adb
<s-osinte-vxworks.adb \
650 s-osinte.ads
<s-osinte-vxworks.ads \
651 s-osprim.adb
<s-osprim-vxworks.adb \
652 s-parame.ads
<s-parame-vxworks.ads \
653 s-parame.adb
<s-parame-vxworks.adb \
654 s-stchop.ads
<s-stchop-limit.ads \
655 s-stchop.adb
<s-stchop-vxworks.adb \
656 s-taprop.adb
<s-taprop-vxworks.adb \
657 s-taspri.ads
<s-taspri-vxworks.ads \
658 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
659 s-vxwork.ads
<s-vxwork-arm.ads \
660 g-soccon.ads
<g-soccon-vxworks.ads \
661 g-socthi.ads
<g-socthi-vxworks.ads \
662 g-socthi.adb
<g-socthi-vxworks.adb \
663 g-stsifd.adb
<g-stsifd-sockets.adb \
664 g-sttsne.adb
<g-sttsne-vxworks.adb \
665 g-sttsne.ads
<g-sttsne-locking.ads \
666 system.ads
<system-vxworks-arm.ads
668 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb
670 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
671 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
673 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
674 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
677 ifeq ($(strip $(filter-out mips
% wrs vx
%,$(targ
))),)
678 LIBGNAT_TARGET_PAIRS
= \
679 a-intnam.ads
<a-intnam-vxworks.ads \
680 a-numaux.ads
<a-numaux-vxworks.ads \
681 s-inmaop.adb
<s-inmaop-posix.adb \
682 s-interr.adb
<s-interr-vxworks.adb \
683 s-intman.ads
<s-intman-vxworks.ads \
684 s-intman.adb
<s-intman-vxworks.adb \
685 s-osinte.adb
<s-osinte-vxworks.adb \
686 s-osinte.ads
<s-osinte-vxworks.ads \
687 s-osprim.adb
<s-osprim-vxworks.adb \
688 s-parame.ads
<s-parame-vxworks.ads \
689 s-parame.adb
<s-parame-vxworks.adb \
690 s-stchop.ads
<s-stchop-limit.ads \
691 s-stchop.adb
<s-stchop-vxworks.adb \
692 s-taprop.adb
<s-taprop-vxworks.adb \
693 s-taspri.ads
<s-taspri-vxworks.ads \
694 s-tpopsp.adb
<s-tpopsp-vxworks.adb \
695 s-vxwork.ads
<s-vxwork-mips.ads \
696 g-soccon.ads
<g-soccon-vxworks.ads \
697 g-socthi.ads
<g-socthi-vxworks.ads \
698 g-socthi.adb
<g-socthi-vxworks.adb \
699 g-stsifd.adb
<g-stsifd-sockets.adb \
700 g-sttsne.adb
<g-sttsne-vxworks.adb \
701 g-sttsne.ads
<g-sttsne-locking.ads \
702 system.ads
<system-vxworks-mips.ads
704 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-vxworks.adb
706 EXTRA_GNATRTL_NONTASKING_OBJS
=i-vxwork.o i-vxwoio.o
707 EXTRA_GNATRTL_TASKING_OBJS
=s-vxwork.o
709 EXTRA_LIBGNAT_SRCS
+=vx_stack_info.c
710 EXTRA_LIBGNAT_OBJS
+=vx_stack_info.o
713 ifeq ($(strip $(filter-out sparc
% sun solaris
%,$(targ
))),)
714 LIBGNAT_TARGET_PAIRS_32
= \
715 a-intnam.ads
<a-intnam-solaris.ads \
716 s-inmaop.adb
<s-inmaop-posix.adb \
717 s-intman.adb
<s-intman-solaris.adb \
718 s-osinte.adb
<s-osinte-solaris.adb \
719 s-osinte.ads
<s-osinte-solaris.ads \
720 s-osprim.adb
<s-osprim-solaris.adb \
721 s-taprop.adb
<s-taprop-solaris.adb \
722 s-tasinf.adb
<s-tasinf-solaris.adb \
723 s-tasinf.ads
<s-tasinf-solaris.ads \
724 s-taspri.ads
<s-taspri-solaris.ads \
725 s-tpopsp.adb
<s-tpopsp-solaris.adb \
726 g-soccon.ads
<g-soccon-solaris.ads \
727 g-soliop.ads
<g-soliop-solaris.ads \
728 system.ads
<system-solaris-sparc.ads
730 LIBGNAT_TARGET_PAIRS_64
= \
731 a-intnam.ads
<a-intnam-solaris.ads \
732 s-inmaop.adb
<s-inmaop-posix.adb \
733 s-intman.adb
<s-intman-solaris.adb \
734 s-osinte.adb
<s-osinte-solaris.adb \
735 s-osinte.ads
<s-osinte-solaris.ads \
736 s-osprim.adb
<s-osprim-solaris.adb \
737 s-taprop.adb
<s-taprop-solaris.adb \
738 s-tasinf.adb
<s-tasinf-solaris.adb \
739 s-tasinf.ads
<s-tasinf-solaris.ads \
740 s-taspri.ads
<s-taspri-solaris.ads \
741 s-tpopsp.adb
<s-tpopsp-solaris.adb \
742 g-soccon.ads
<g-soccon-solaris-64.ads \
743 g-soliop.ads
<g-soliop-solaris.ads \
744 system.ads
<system-solaris-sparcv9.ads
746 ifeq ($(strip $(filter-out sparc sun solaris
%,$(targ
))),)
747 LIBGNAT_TARGET_PAIRS
= $(LIBGNAT_TARGET_PAIRS_32
)
749 LIBGNAT_TARGET_PAIRS
= $(LIBGNAT_TARGET_PAIRS_64
)
752 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
755 THREADSLIB
= -lposix4
-lthread
756 MISCLIB
= -lposix4
-lnsl
-lsocket
758 GNATLIB_SHARED
= gnatlib-shared-dual
760 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
761 LIBRARY_VERSION
:= $(LIB_VERSION
)
763 ifeq ($(strip $(filter-out pthread PTHREAD
,$(THREAD_KIND
))),)
764 LIBGNAT_TARGET_PAIRS
= \
765 a-intnam.ads
<a-intnam-solaris.ads \
766 s-inmaop.adb
<s-inmaop-posix.adb \
767 s-intman.adb
<s-intman-posix.adb \
768 s-osinte.adb
<s-osinte-posix.adb \
769 s-osinte.ads
<s-osinte-solaris-posix.ads \
770 s-osprim.adb
<s-osprim-solaris.adb \
771 s-taprop.adb
<s-taprop-posix.adb \
772 s-taspri.ads
<s-taspri-posix.ads \
773 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
774 g-soccon.ads
<g-soccon-solaris.ads \
775 g-soliop.ads
<g-soliop-solaris.ads \
776 system.ads
<system-solaris-sparc.ads
778 THREADSLIB
= -lposix4
-lpthread
781 ifeq ($(strip $(filter-out m64
,$(THREAD_KIND
))),)
782 LIBGNAT_TARGET_PAIRS
= $(LIBGNAT_TARGET_PAIRS_64
)
786 ifeq ($(strip $(filter-out %86 solaris2
%,$(arch
) $(osys
))),)
787 LIBGNAT_TARGET_PAIRS
= \
788 a-numaux.adb
<a-numaux-x86.adb \
789 a-numaux.ads
<a-numaux-x86.ads \
790 a-intnam.ads
<a-intnam-solaris.ads \
791 s-inmaop.adb
<s-inmaop-posix.adb \
792 s-intman.adb
<s-intman-solaris.adb \
793 s-osinte.adb
<s-osinte-solaris.adb \
794 s-osinte.ads
<s-osinte-solaris.ads \
795 s-osprim.adb
<s-osprim-solaris.adb \
796 s-taprop.adb
<s-taprop-solaris.adb \
797 s-tasinf.adb
<s-tasinf-solaris.adb \
798 s-tasinf.ads
<s-tasinf-solaris.ads \
799 s-taspri.ads
<s-taspri-solaris.ads \
800 s-tpopsp.adb
<s-tpopsp-solaris.adb \
801 g-bytswa.adb
<g-bytswa-x86.adb \
802 g-soccon.ads
<g-soccon-solaris.ads \
803 g-soliop.ads
<g-soliop-solaris.ads \
804 system.ads
<system-solaris-x86.ads
806 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-solaris.adb
809 THREADSLIB
= -lposix4
-lthread
810 MISCLIB
= -lposix4
-lnsl
-lsocket
812 GNATLIB_SHARED
= gnatlib-shared-dual
814 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
815 LIBRARY_VERSION
:= $(LIB_VERSION
)
818 ifeq ($(strip $(filter-out %86 linux
%,$(arch
) $(osys
))),)
819 LIBGNAT_TARGET_PAIRS
= \
820 a-intnam.ads
<a-intnam-linux.ads \
821 a-numaux.adb
<a-numaux-x86.adb \
822 a-numaux.ads
<a-numaux-x86.ads \
823 g-bytswa.adb
<g-bytswa-x86.adb \
824 s-inmaop.adb
<s-inmaop-posix.adb \
825 s-intman.adb
<s-intman-posix.adb \
826 s-osprim.adb
<s-osprim-posix.adb \
827 s-taspri.ads
<s-taspri-posix.ads \
828 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
829 g-sercom.adb
<g-sercom-linux.adb \
830 system.ads
<system-linux-x86.ads
832 ifeq ($(strip $(filter-out marte
,$(THREAD_KIND
))),)
833 LIBGNAT_TARGET_PAIRS
+= \
834 a-exetim.adb
<a-exetim-linux-marte.adb \
835 a-exetim.ads
<a-exetim-linux-marte.ads \
836 a-extiti.adb
<a-extiti-linux-marte.adb \
837 a-extiti.ads
<a-extiti-linux-marte.ads \
838 a-rttiev.adb
<a-rttiev-linux-marte.adb \
839 a-rttiev.ads
<a-rttiev-linux-marte.ads \
840 g-soccon.ads
<g-soccon-linux-x86-marte.ads \
841 s-osinte.adb
<s-osinte-linux-marte.adb \
842 s-osinte.ads
<s-osinte-linux-marte.ads \
843 s-taprop.adb
<s-taprop-linux-marte.adb
845 EXTRA_GNATRTL_TASKING_OBJS
=a-exetim.o a-extiti.o
850 LIBGNAT_TARGET_PAIRS
+= \
851 g-soccon.ads
<g-soccon-linux-x86.ads \
852 s-linux.ads
<s-linux.ads \
853 s-osinte.adb
<s-osinte-posix.adb \
854 s-osinte.ads
<s-osinte-linux.ads \
855 s-tasinf.ads
<s-tasinf-linux.ads \
856 s-tasinf.adb
<s-tasinf-linux.adb \
857 s-taprop.adb
<s-taprop-linux.adb
860 THREADSLIB
= -lpthread
861 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
864 TOOLS_TARGET_PAIRS
= \
865 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
866 indepsw.adb
<indepsw-gnu.adb
868 GNATLIB_SHARED
= gnatlib-shared-dual
870 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
871 LIBRARY_VERSION
:= $(LIB_VERSION
)
874 ifeq ($(strip $(filter-out %86 kfreebsd
%,$(arch
) $(osys
))),)
875 LIBGNAT_TARGET_PAIRS
= \
876 a-intnam.ads
<a-intnam-freebsd.ads \
877 a-numaux.adb
<a-numaux-x86.adb \
878 a-numaux.ads
<a-numaux-x86.ads \
879 s-inmaop.adb
<s-inmaop-posix.adb \
880 s-intman.adb
<s-intman-posix.adb \
881 g-soccon.ads
<g-soccon-freebsd.ads \
882 s-osinte.adb
<s-osinte-posix.adb \
883 s-osinte.ads
<s-osinte-kfreebsd-gnu.ads \
884 s-osprim.adb
<s-osprim-posix.adb \
885 s-taprop.adb
<s-taprop-linux.adb \
886 s-tasinf.ads
<s-tasinf-linux.ads \
887 s-tasinf.adb
<s-tasinf-linux.adb \
888 s-taspri.ads
<s-taspri-posix.ads \
889 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
890 system.ads
<system-freebsd-x86.ads
892 TOOLS_TARGET_PAIRS
= \
893 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
894 indepsw.adb
<indepsw-gnu.adb
897 THREADSLIB
= -lpthread
898 GNATLIB_SHARED
= gnatlib-shared-dual
900 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
901 LIBRARY_VERSION
:= $(LIB_VERSION
)
904 ifeq ($(strip $(filter-out %86 freebsd
%,$(arch
) $(osys
))),)
905 LIBGNAT_TARGET_PAIRS
= \
906 a-intnam.ads
<a-intnam-freebsd.ads \
907 a-numaux.adb
<a-numaux-x86.adb \
908 a-numaux.ads
<a-numaux-x86.ads \
909 g-bytswa.adb
<g-bytswa-x86.adb \
910 g-soccon.ads
<g-soccon-freebsd.ads \
911 s-inmaop.adb
<s-inmaop-posix.adb \
912 s-intman.adb
<s-intman-posix.adb \
913 s-osinte.adb
<s-osinte-freebsd.adb \
914 s-osinte.ads
<s-osinte-freebsd.ads \
915 s-osprim.adb
<s-osprim-posix.adb \
916 s-taprop.adb
<s-taprop-posix.adb \
917 s-taspri.ads
<s-taspri-posix.ads \
918 s-tpopsp.adb
<s-tpopsp-posix.adb \
919 system.ads
<system-freebsd-x86.ads
921 TOOLS_TARGET_PAIRS
= \
922 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
923 GNATLIB_SHARED
= gnatlib-shared-dual
926 THREADSLIB
= -lpthread
928 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
929 LIBRARY_VERSION
:= $(LIB_VERSION
)
932 ifeq ($(strip $(filter-out s390
% linux
%,$(arch
) $(osys
))),)
933 ifeq ($(strip $(filter-out s390x
,$(arch
))),)
934 LIBGNAT_TARGET_PAIRS
= \
935 a-intnam.ads
<a-intnam-linux.ads \
936 s-inmaop.adb
<s-inmaop-posix.adb \
937 s-intman.adb
<s-intman-posix.adb \
938 s-linux.ads
<s-linux.ads \
939 s-osinte.adb
<s-osinte-posix.adb \
940 s-osinte.ads
<s-osinte-linux.ads \
941 s-osprim.adb
<s-osprim-posix.adb \
942 s-taprop.adb
<s-taprop-linux.adb \
943 s-tasinf.ads
<s-tasinf-linux.ads \
944 s-tasinf.adb
<s-tasinf-linux.adb \
945 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
946 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
947 system.ads
<system-linux-s390x.ads
949 LIBGNAT_TARGET_PAIRS
= \
950 a-intnam.ads
<a-intnam-linux.ads \
951 s-inmaop.adb
<s-inmaop-posix.adb \
952 s-intman.adb
<s-intman-posix.adb \
953 s-linux.ads
<s-linux.ads \
954 s-osinte.adb
<s-osinte-posix.adb \
955 s-osinte.ads
<s-osinte-linux.ads \
956 s-osprim.adb
<s-osprim-posix.adb \
957 s-taprop.adb
<s-taprop-linux.adb \
958 s-tasinf.ads
<s-tasinf-linux.ads \
959 s-tasinf.adb
<s-tasinf-linux.adb \
960 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
961 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
962 system.ads
<system-linux-s390.ads
965 TOOLS_TARGET_PAIRS
= \
966 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb
968 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
970 THREADSLIB
= -lpthread
971 GNATLIB_SHARED
= gnatlib-shared-dual
972 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
973 LIBRARY_VERSION
:= $(LIB_VERSION
)
976 ifeq ($(strip $(filter-out mips sgi irix
%,$(targ
))),)
977 ifeq ($(strip $(filter-out mips sgi irix6
%,$(targ
))),)
978 LIBGNAT_TARGET_PAIRS
= \
979 a-intnam.ads
<a-intnam-irix.ads \
980 s-inmaop.adb
<s-inmaop-posix.adb \
981 s-intman.adb
<s-intman-irix.adb \
982 s-mastop.adb
<s-mastop-irix.adb \
983 s-osinte.adb
<s-osinte-irix.adb \
984 s-osinte.ads
<s-osinte-irix.ads \
985 s-osprim.adb
<s-osprim-posix.adb \
986 s-proinf.adb
<s-proinf-irix-athread.adb \
987 s-proinf.ads
<s-proinf-irix-athread.ads \
988 s-taprop.adb
<s-taprop-irix.adb \
989 s-tasinf.ads
<s-tasinf-irix.ads \
990 s-taspri.ads
<s-taspri-posix.ads \
991 s-tpopsp.adb
<s-tpopsp-posix.adb \
992 s-traceb.adb
<s-traceb-mastop.adb \
993 g-soccon.ads
<g-soccon-irix.ads \
994 system.ads
<system-irix-n32.ads
996 THREADSLIB
= -lpthread
997 GNATLIB_SHARED
= gnatlib-shared-default
1000 LIBGNAT_TARGET_PAIRS
+= \
1001 s-mastop.adb
<s-mastop-irix.adb \
1002 s-osprim.adb
<s-osprim-posix.adb \
1003 s-traceb.adb
<s-traceb-mastop.adb \
1004 g-soccon.ads
<g-soccon-irix.ads \
1005 system.ads
<system-irix-o32.ads
1009 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-irix.adb
1012 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1013 LIBRARY_VERSION
:= $(LIB_VERSION
)
1017 ifeq ($(strip $(filter-out hppa
% hp hpux10
%,$(targ
))),)
1018 LIBGNAT_TARGET_PAIRS
= \
1019 a-excpol.adb
<a-excpol-abort.adb \
1020 a-intnam.ads
<a-intnam-hpux.ads \
1021 s-inmaop.adb
<s-inmaop-posix.adb \
1022 s-interr.adb
<s-interr-sigaction.adb \
1023 s-intman.adb
<s-intman-posix.adb \
1024 s-osinte.adb
<s-osinte-hpux-dce.adb \
1025 s-osinte.ads
<s-osinte-hpux-dce.ads \
1026 s-parame.ads
<s-parame-hpux.ads \
1027 s-osprim.adb
<s-osprim-posix.adb \
1028 s-taprop.adb
<s-taprop-hpux-dce.adb \
1029 s-taspri.ads
<s-taspri-hpux-dce.ads \
1030 s-tpopsp.adb
<s-tpopsp-posix.adb \
1031 g-soccon.ads
<g-soccon-hpux.ads \
1032 system.ads
<system-hpux.ads
1035 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1038 ifeq ($(strip $(filter-out hppa
% hp hpux11
%,$(targ
))),)
1039 LIBGNAT_TARGET_PAIRS
= \
1040 a-intnam.ads
<a-intnam-hpux.ads \
1041 s-inmaop.adb
<s-inmaop-posix.adb \
1042 s-intman.adb
<s-intman-posix.adb \
1043 s-osinte.adb
<s-osinte-posix.adb \
1044 s-osinte.ads
<s-osinte-hpux.ads \
1045 s-parame.ads
<s-parame-hpux.ads \
1046 s-osprim.adb
<s-osprim-posix.adb \
1047 s-traceb.adb
<s-traceb-hpux.adb \
1048 s-taprop.adb
<s-taprop-posix.adb \
1049 s-taspri.ads
<s-taspri-posix.ads \
1050 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1051 g-soccon.ads
<g-soccon-hpux.ads \
1052 system.ads
<system-hpux.ads
1054 TOOLS_TARGET_PAIRS
= mlib-tgt-specific.adb
<mlib-tgt-specific-hpux.adb
1056 TGT_LIB
= /usr
/lib
/libcl.a
1057 THREADSLIB
= -lpthread
1061 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1062 GNATLIB_SHARED
= gnatlib-shared-dual
1063 LIBRARY_VERSION
:= $(LIB_VERSION
)
1066 ifeq ($(strip $(filter-out ibm aix
%,$(manu
) $(osys
))),)
1067 LIBGNAT_TARGET_PAIRS
= \
1068 a-intnam.ads
<a-intnam-aix.ads \
1069 s-inmaop.adb
<s-inmaop-posix.adb \
1070 s-intman.adb
<s-intman-posix.adb \
1071 s-osinte.adb
<s-osinte-aix.adb \
1072 s-osinte.ads
<s-osinte-aix.ads \
1073 s-osprim.adb
<s-osprim-posix.adb \
1074 s-taprop.adb
<s-taprop-posix.adb \
1075 s-taspri.ads
<s-taspri-posix.ads \
1076 s-tpopsp.adb
<s-tpopsp-posix.adb \
1077 g-soccon.ads
<g-soccon-aix.ads \
1078 system.ads
<system-aix.ads
1080 THREADSLIB
= -lpthreads
1081 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1083 TOOLS_TARGET_PAIRS
= \
1084 mlib-tgt-specific.adb
<mlib-tgt-specific-aix.adb \
1085 indepsw.adb
<indepsw-aix.adb
1090 ifeq ($(strip $(filter-out lynxos
,$(osys
))),)
1091 TOOLS_TARGET_PAIRS
= \
1092 mlib-tgt-specific.adb
<mlib-tgt-specific-lynxos.adb \
1093 indepsw.adb
<indepsw-gnu.adb
1095 ifeq ($(strip $(filter-out %86 lynxos
,$(arch
) $(osys
))),)
1096 LIBGNAT_TARGET_PAIRS
= \
1097 a-numaux.adb
<a-numaux-x86.adb \
1098 a-numaux.ads
<a-numaux-x86.ads \
1099 a-intnam.ads
<a-intnam-lynxos.ads \
1100 g-bytswa.adb
<g-bytswa-x86.adb \
1101 g-soccon.ads
<g-soccon-lynxos.ads \
1102 g-sttsne.adb
<g-sttsne-locking.adb \
1103 g-sttsne.ads
<g-sttsne-locking.ads \
1104 s-inmaop.adb
<s-inmaop-posix.adb \
1105 s-intman.adb
<s-intman-posix.adb \
1106 s-osinte.adb
<s-osinte-lynxos.adb \
1107 s-osinte.ads
<s-osinte-lynxos.ads \
1108 s-osprim.adb
<s-osprim-posix.adb \
1109 s-taprop.adb
<s-taprop-lynxos.adb \
1110 s-taspri.ads
<s-taspri-lynxos.ads \
1111 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
1112 system.ads
<system-lynxos-x86.ads
1114 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1117 LIBGNAT_TARGET_PAIRS
= \
1118 a-intnam.ads
<a-intnam-lynxos.ads \
1119 g-soccon.ads
<g-soccon-lynxos.ads \
1120 g-sttsne.adb
<g-sttsne-locking.adb \
1121 g-sttsne.ads
<g-sttsne-locking.ads \
1122 s-inmaop.adb
<s-inmaop-posix.adb \
1123 s-intman.adb
<s-intman-posix.adb \
1124 s-osinte.adb
<s-osinte-lynxos.adb \
1125 s-osinte.ads
<s-osinte-lynxos.ads \
1126 s-osprim.adb
<s-osprim-posix.adb \
1127 s-taprop.adb
<s-taprop-lynxos.adb \
1128 s-taspri.ads
<s-taspri-lynxos.ads \
1129 s-tpopsp.adb
<s-tpopsp-lynxos.adb \
1130 system.ads
<system-lynxos-ppc.ads
1134 ifeq ($(strip $(filter-out rtems
%,$(osys
))),)
1135 LIBGNAT_TARGET_PAIRS
= \
1136 system.ads
<system-rtems.ads \
1137 a-intnam.ads
<a-intnam-rtems.ads \
1138 s-inmaop.adb
<s-inmaop-posix.adb \
1139 s-intman.adb
<s-intman-posix.adb \
1140 s-osinte.adb
<s-osinte-rtems.adb \
1141 s-osinte.ads
<s-osinte-rtems.ads \
1142 s-osprim.adb
<s-osprim-posix.adb \
1143 s-parame.adb
<s-parame-rtems.adb \
1144 s-taprop.adb
<s-taprop-posix.adb \
1145 s-taspri.ads
<s-taspri-posix.ads \
1146 s-tpopsp.adb
<s-tpopsp-rtems.adb \
1147 g-soccon.ads
<g-soccon-rtems.ads \
1148 s-stchop.adb
<s-stchop-rtems.adb
1151 ifeq ($(strip $(filter-out alpha
% dec osf
%,$(targ
))),)
1152 LIBGNAT_TARGET_PAIRS
= \
1153 a-intnam.ads
<a-intnam-tru64.ads \
1154 s-inmaop.adb
<s-inmaop-posix.adb \
1155 s-intman.adb
<s-intman-posix.adb \
1156 s-mastop.adb
<s-mastop-tru64.adb \
1157 s-osinte.adb
<s-osinte-tru64.adb \
1158 s-osinte.ads
<s-osinte-tru64.ads \
1159 s-osprim.adb
<s-osprim-unix.adb \
1160 s-taprop.adb
<s-taprop-tru64.adb \
1161 s-tasinf.ads
<s-tasinf-tru64.ads \
1162 s-taspri.ads
<s-taspri-tru64.ads \
1163 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1164 s-traceb.adb
<s-traceb-mastop.adb \
1165 g-soccon.ads
<g-soccon-tru64.ads \
1166 system.ads
<system-tru64.ads
1168 TOOLS_TARGET_PAIRS
=mlib-tgt-specific.adb
<mlib-tgt-specific-tru64.adb
1172 THREADSLIB
= -lpthread
-lmach
-lexc
-lrt
1173 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1174 GNATLIB_SHARED
= gnatlib-shared-default
1175 LIBRARY_VERSION
:= $(LIB_VERSION
)
1178 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(host
))),)
1188 @ gnu
:[bin
]vmssymvec
$<
1191 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms
% openvms
% alphavms
%,$(targ
))),)
1192 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1193 LIBGNAT_TARGET_PAIRS_AUX1
= \
1194 g-enblsp.adb
<g-enblsp-vms-ia64.adb \
1195 g-trasym.adb
<g-trasym-vms-ia64.adb \
1196 s-asthan.adb
<s-asthan-vms-ia64.adb \
1197 s-osinte.adb
<s-osinte-vms-ia64.adb \
1198 s-osinte.ads
<s-osinte-vms-ia64.ads \
1199 s-vaflop.adb
<s-vaflop-vms-ia64.adb \
1200 system.ads
<system-vms-ia64.ads
1202 LIBGNAT_TARGET_PAIRS_AUX2
= \
1203 s-parame.ads
<s-parame-vms-ia64.ads
1205 ifeq ($(strip $(filter-out alpha64 dec vms
% openvms
% alphavms
%,$(targ
))),)
1206 LIBGNAT_TARGET_PAIRS_AUX1
= \
1207 g-enblsp.adb
<g-enblsp-vms-alpha.adb \
1208 g-trasym.adb
<g-trasym-vms-alpha.adb \
1209 s-traent.adb
<s-traent-vms.adb \
1210 s-traent.ads
<s-traent-vms.ads \
1211 s-asthan.adb
<s-asthan-vms-alpha.adb \
1212 s-osinte.adb
<s-osinte-vms.adb \
1213 s-osinte.ads
<s-osinte-vms.ads \
1214 s-vaflop.adb
<s-vaflop-vms-alpha.adb \
1215 system.ads
<system-vms_64.ads
1217 ifeq ($(strip $(filter-out express EXPRESS
,$(THREAD_KIND
))),)
1218 LIBGNAT_TARGET_PAIRS_AUX2
= \
1219 s-parame.ads
<s-parame-vms-restrict.ads
1221 LIBGNAT_TARGET_PAIRS_AUX2
= \
1222 s-parame.ads
<s-parame-vms-alpha.ads
1227 LIBGNAT_TARGET_PAIRS
= \
1228 a-caldel.adb
<a-caldel-vms.adb \
1229 a-calend.adb
<a-calend-vms.adb \
1230 a-calend.ads
<a-calend-vms.ads \
1231 a-dirval.adb
<a-dirval-vms.adb \
1232 a-excpol.adb
<a-excpol-abort.adb \
1233 a-intnam.ads
<a-intnam-vms.ads \
1234 a-numaux.ads
<a-numaux-vms.ads \
1235 g-expect.adb
<g-expect-vms.adb \
1236 g-soccon.ads
<g-soccon-vms.ads \
1237 g-socthi.ads
<g-socthi-vms.ads \
1238 g-socthi.adb
<g-socthi-vms.adb \
1239 g-stsifd.adb
<g-stsifd-sockets.adb \
1240 g-sttsne.adb
<g-sttsne-locking.adb \
1241 g-sttsne.ads
<g-sttsne-locking.ads \
1242 i-c.ads
<i-c-vms_64.ads \
1243 i-cstrin.ads
<i-cstrin-vms_64.ads \
1244 i-cstrin.adb
<i-cstrin-vms_64.adb \
1245 i-cpoint.ads
<i-cpoint-vms_64.ads \
1246 i-cpoint.adb
<i-cpoint-vms_64.adb \
1247 i-cstrea.adb
<i-cstrea-vms.adb \
1248 memtrack.adb
<memtrack-vms_64.adb \
1249 s-auxdec.ads
<s-auxdec-vms_64.ads \
1250 s-crtl.ads
<s-crtl-vms_64.ads \
1251 s-inmaop.adb
<s-inmaop-vms.adb \
1252 s-interr.adb
<s-interr-vms.adb \
1253 s-intman.adb
<s-intman-vms.adb \
1254 s-intman.ads
<s-intman-vms.ads \
1255 s-memory.adb
<s-memory-vms_64.adb \
1256 s-memory.ads
<s-memory-vms_64.ads \
1257 s-osprim.adb
<s-osprim-vms.adb \
1258 s-osprim.ads
<s-osprim-vms.ads \
1259 s-taprop.adb
<s-taprop-vms.adb \
1260 s-taspri.ads
<s-taspri-vms.ads \
1261 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1262 s-tpopde.adb
<s-tpopde-vms.adb \
1263 s-tpopde.ads
<s-tpopde-vms.ads \
1264 $(LIBGNAT_TARGET_PAIRS_AUX1
) \
1265 $(LIBGNAT_TARGET_PAIRS_AUX2
)
1267 ifeq ($(strip $(filter-out ia64 hp vms
% openvms
%,$(targ
))),)
1268 TOOLS_TARGET_PAIRS
= \
1269 mlib-tgt-specific.adb
<mlib-tgt-specific-vms-ia64.adb \
1270 symbols.adb
<symbols-vms.adb \
1271 symbols-processing.adb
<symbols-processing-vms-ia64.adb
1273 TOOLS_TARGET_PAIRS
= \
1274 mlib-tgt-specific.adb
<mlib-tgt-specific-vms-alpha.adb \
1275 symbols.adb
<symbols-vms.adb \
1276 symbols-processing.adb
<symbols-processing-vms-alpha.adb
1279 adamsg.o
: adamsg.msg
1280 -$(DECC
) --cc=message adamsg.msg
-o adamsg.o
1282 EXTRA_GNATMAKE_OBJS
= mlib-tgt-vms_common.o
1286 GNATLIB_SHARED
=gnatlib-shared-vms
1287 ifeq ($(strip $(filter-out alpha64 dec vms
% openvms
% alphavms
%,$(targ
))),)
1288 EXTRA_LIBGNAT_SRCS
=vmshandler.asm
1289 EXTRA_LIBGNAT_OBJS
=vmshandler.o
1291 EXTRA_LIBGNAT_SRCS
+=adamsg.msg
1292 EXTRA_LIBGNAT_OBJS
+=adamsg.o
1293 EXTRA_GNATRTL_TASKING_OBJS
=s-tpopde.o
1295 ..
/..
/gnatlbr
$(exeext
) \
1296 ..
/..
/gnatsym
$(exeext
) \
1297 ..
/..
/vms_help
$(exeext
) \
1299 # This command transforms (YYYYMMDD) into YY,MMDD
1300 GSMATCH_VERSION
:= $(shell grep
"^ *Gnat_Static_Version_String" $(fsrcpfx
)gnatvsn.ads | sed
-e
's/.*(\(.*\)).*/\1/' -e
's/\(..\)\(..\)\(....\).*/\2,\3/')
1301 TOOLS_LIBS_LO
:= --for-linker
=sys
\\$$\
$$library:trace.exe
1302 LIBRARY_VERSION
:= $(subst .
,_
,$(LIB_VERSION
))
1305 ifeq ($(strip $(filter-out cygwin32
% mingw32
% pe
,$(osys
))),)
1306 LIBGNAT_TARGET_PAIRS
= \
1307 a-dirval.adb
<a-dirval-mingw.adb \
1308 a-excpol.adb
<a-excpol-abort.adb \
1309 a-numaux.adb
<a-numaux-x86.adb \
1310 a-numaux.ads
<a-numaux-x86.ads \
1311 s-gloloc.adb
<s-gloloc-mingw.adb \
1312 s-inmaop.adb
<s-inmaop-dummy.adb \
1313 s-memory.adb
<s-memory-mingw.adb \
1314 s-taspri.ads
<s-taspri-mingw.ads \
1315 s-tasinf.adb
<s-tasinf-mingw.adb \
1316 s-tasinf.ads
<s-tasinf-mingw.ads \
1317 g-bytswa.adb
<g-bytswa-x86.adb \
1318 g-socthi.ads
<g-socthi-mingw.ads \
1319 g-socthi.adb
<g-socthi-mingw.adb \
1320 g-stsifd.adb
<g-stsifd-sockets.adb \
1321 g-soccon.ads
<g-soccon-mingw.ads \
1322 g-soliop.ads
<g-soliop-mingw.ads
1324 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss
,$(THREAD_KIND
))),)
1325 LIBGNAT_TARGET_PAIRS
+= \
1326 s-intman.adb
<s-intman-dummy.adb \
1327 s-osinte.ads
<s-osinte-rtx.ads \
1328 s-osprim.adb
<s-osprim-rtx.adb \
1329 s-taprop.adb
<s-taprop-rtx.adb \
1330 system.ads
<system-rtx.ads
1332 EXTRA_GNATRTL_NONTASKING_OBJS
= s-win32.o
1334 MISCLIB
= -lwsock32
-lrtapi_w32
1335 THREADSLIB
=-lrtapi_w32
1337 LIBGNAT_TARGET_PAIRS
+= \
1338 a-exetim.adb
<a-exetim-mingw.adb \
1339 a-exetim.ads
<a-exetim-mingw.ads \
1340 a-intnam.ads
<a-intnam-mingw.ads \
1341 g-sercom.adb
<g-sercom-mingw.adb \
1342 s-interr.adb
<s-interr-sigaction.adb \
1343 s-intman.adb
<s-intman-mingw.adb \
1344 s-osinte.ads
<s-osinte-mingw.ads \
1345 s-osprim.adb
<s-osprim-mingw.adb \
1346 s-taprop.adb
<s-taprop-mingw.adb \
1347 system.ads
<system-mingw.ads
1349 EXTRA_GNATRTL_NONTASKING_OBJS
= s-win32.o g-regist.o
1350 EXTRA_GNATRTL_TASKING_OBJS
= a-exetim.o
1354 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1355 # auto-import support for array/record will be done.
1356 GNATLIB_SHARED
= gnatlib-shared-win32
1359 TOOLS_TARGET_PAIRS
= \
1360 mlib-tgt-specific.adb
<mlib-tgt-specific-mingw.adb \
1361 indepsw.adb
<indepsw-mingw.adb
1365 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1366 EXTRA_GNATTOOLS
= ..
/..
/gnatdll
$(exeext
)
1367 EXTRA_GNATMAKE_OBJS
= mdll.o mdll-utl.o mdll-fil.o
1369 LIBRARY_VERSION
:= $(LIB_VERSION
)
1372 ifeq ($(strip $(filter-out mips linux
%,$(arch
) $(osys
))),)
1373 LIBGNAT_TARGET_PAIRS
= \
1374 a-intnam.ads
<a-intnam-linux.ads \
1375 g-soccon.ads
<g-soccon-linux-mips.ads \
1376 s-inmaop.adb
<s-inmaop-posix.adb \
1377 s-intman.adb
<s-intman-posix.adb \
1378 s-linux.ads
<s-linux.ads \
1379 s-osinte.adb
<s-osinte-posix.adb \
1380 s-osinte.ads
<s-osinte-linux.ads \
1381 s-osprim.adb
<s-osprim-posix.adb \
1382 s-taprop.adb
<s-taprop-linux.adb \
1383 s-tasinf.ads
<s-tasinf-linux.ads \
1384 s-tasinf.adb
<s-tasinf-linux.adb \
1385 s-taspri.ads
<s-taspri-posix.ads \
1386 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1387 system.ads
<system-linux-mips.ads
1390 THREADSLIB
= -lpthread
1391 GNATLIB_SHARED
= gnatlib-shared-dual
1393 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1394 LIBRARY_VERSION
:= $(LIB_VERSION
)
1397 ifeq ($(strip $(filter-out mipsel linux
%,$(arch
) $(osys
))),)
1398 LIBGNAT_TARGET_PAIRS
= \
1399 a-intnam.ads
<a-intnam-linux.ads \
1400 g-soccon.ads
<g-soccon-linux-mips.ads \
1401 s-inmaop.adb
<s-inmaop-posix.adb \
1402 s-intman.adb
<s-intman-posix.adb \
1403 s-linux.ads
<s-linux.ads \
1404 s-osinte.adb
<s-osinte-posix.adb \
1405 s-osinte.ads
<s-osinte-linux.ads \
1406 s-osprim.adb
<s-osprim-posix.adb \
1407 s-taprop.adb
<s-taprop-linux.adb \
1408 s-tasinf.ads
<s-tasinf-linux.ads \
1409 s-tasinf.adb
<s-tasinf-linux.adb \
1410 s-taspri.ads
<s-taspri-posix.ads \
1411 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1412 system.ads
<system-linux-mipsel.ads
1415 THREADSLIB
= -lpthread
1416 GNATLIB_SHARED
= gnatlib-shared-dual
1418 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1419 LIBRARY_VERSION
:= $(LIB_VERSION
)
1422 ifeq ($(strip $(filter-out powerpc
% linux
%,$(arch
) $(osys
))),)
1423 LIBGNAT_TARGET_PAIRS
= \
1424 a-intnam.ads
<a-intnam-linux.ads \
1425 g-soccon.ads
<g-soccon-linux-ppc.ads \
1426 s-inmaop.adb
<s-inmaop-posix.adb \
1427 s-intman.adb
<s-intman-posix.adb \
1428 s-linux.ads
<s-linux.ads \
1429 s-osinte.adb
<s-osinte-posix.adb \
1430 s-osinte.ads
<s-osinte-linux.ads \
1431 s-osprim.adb
<s-osprim-posix.adb \
1432 s-taprop.adb
<s-taprop-linux.adb \
1433 s-tasinf.ads
<s-tasinf-linux.ads \
1434 s-tasinf.adb
<s-tasinf-linux.adb \
1435 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1436 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1437 g-sercom.adb
<g-sercom-linux.adb \
1438 system.ads
<system-linux-ppc.ads
1440 TOOLS_TARGET_PAIRS
= \
1441 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1442 indepsw.adb
<indepsw-gnu.adb
1444 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1446 THREADSLIB
= -lpthread
1447 GNATLIB_SHARED
= gnatlib-shared-dual
1449 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1450 LIBRARY_VERSION
:= $(LIB_VERSION
)
1453 ifeq ($(strip $(filter-out sparc
% linux
%,$(arch
) $(osys
))),)
1454 LIBGNAT_TARGET_PAIRS
= \
1455 a-intnam.ads
<a-intnam-linux.ads \
1456 s-inmaop.adb
<s-inmaop-posix.adb \
1457 s-intman.adb
<s-intman-posix.adb \
1458 s-linux.ads
<s-linux.ads \
1459 s-osinte.adb
<s-osinte-posix.adb \
1460 s-osinte.ads
<s-osinte-linux.ads \
1461 s-osprim.adb
<s-osprim-posix.adb \
1462 s-taprop.adb
<s-taprop-linux.adb \
1463 s-tasinf.ads
<s-tasinf-linux.ads \
1464 s-tasinf.adb
<s-tasinf-linux.adb \
1465 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1466 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1467 system.ads
<system-linux-sparc.ads
1469 TOOLS_TARGET_PAIRS
= \
1470 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1471 indepsw.adb
<indepsw-gnu.adb
1473 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1475 THREADSLIB
= -lpthread
1476 GNATLIB_SHARED
= gnatlib-shared-dual
1478 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1479 LIBRARY_VERSION
:= $(LIB_VERSION
)
1482 ifeq ($(strip $(filter-out hppa
% linux
%,$(arch
) $(osys
))),)
1483 LIBGNAT_TARGET_PAIRS
= \
1484 a-intnam.ads
<a-intnam-linux.ads \
1485 s-inmaop.adb
<s-inmaop-posix.adb \
1486 s-intman.adb
<s-intman-posix.adb \
1487 s-linux.ads
<s-linux-hppa.ads \
1488 s-osinte.adb
<s-osinte-posix.adb \
1489 s-osinte.ads
<s-osinte-linux.ads \
1490 s-osprim.adb
<s-osprim-posix.adb \
1491 s-taprop.adb
<s-taprop-linux.adb \
1492 s-tasinf.ads
<s-tasinf-linux.ads \
1493 s-tasinf.adb
<s-tasinf-linux.adb \
1494 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1495 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1496 system.ads
<system-linux-hppa.ads
1498 TOOLS_TARGET_PAIRS
= \
1499 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1500 indepsw.adb
<indepsw-gnu.adb
1502 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1504 THREADSLIB
= -lpthread
1505 GNATLIB_SHARED
= gnatlib-shared-dual
1507 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1508 LIBRARY_VERSION
:= $(LIB_VERSION
)
1511 ifeq ($(strip $(filter-out sh4
% linux
%,$(arch
) $(osys
))),)
1512 LIBGNAT_TARGET_PAIRS
= \
1513 a-intnam.ads
<a-intnam-linux.ads \
1514 s-inmaop.adb
<s-inmaop-posix.adb \
1515 s-intman.adb
<s-intman-posix.adb \
1516 s-linux.ads
<s-linux.ads \
1517 s-osinte.adb
<s-osinte-posix.adb \
1518 s-osinte.ads
<s-osinte-linux.ads \
1519 s-osprim.adb
<s-osprim-posix.adb \
1520 s-taprop.adb
<s-taprop-linux.adb \
1521 s-tasinf.ads
<s-tasinf-linux.ads \
1522 s-tasinf.adb
<s-tasinf-linux.adb \
1523 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1524 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1525 system.ads
<system-linux-sh4.ads
1527 TOOLS_TARGET_PAIRS
= \
1528 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1529 indepsw.adb
<indepsw-linux.adb
1531 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1534 THREADSLIB
= -lpthread
1535 GNATLIB_SHARED
= gnatlib-shared-dual
1537 PREFIX_OBJS
= $(PREFIX_REAL_OBJS
)
1538 LIBRARY_VERSION
:= $(LIB_VERSION
)
1541 ifeq ($(strip $(filter-out %ia64 linux
%,$(arch
) $(osys
))),)
1542 LIBGNAT_TARGET_PAIRS
= \
1543 a-intnam.ads
<a-intnam-linux.ads \
1544 a-numaux.ads
<a-numaux-libc-x86.ads \
1545 g-soccon.ads
<g-soccon-linux-64.ads \
1546 s-inmaop.adb
<s-inmaop-posix.adb \
1547 s-intman.adb
<s-intman-posix.adb \
1548 s-linux.ads
<s-linux.ads \
1549 s-osinte.ads
<s-osinte-linux.ads \
1550 s-osinte.adb
<s-osinte-posix.adb \
1551 s-osprim.adb
<s-osprim-posix.adb \
1552 s-taprop.adb
<s-taprop-linux.adb \
1553 s-tasinf.ads
<s-tasinf-linux.ads \
1554 s-tasinf.adb
<s-tasinf-linux.adb \
1555 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1556 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1557 g-sercom.adb
<g-sercom-linux.adb \
1558 system.ads
<system-linux-ia64.ads
1560 TOOLS_TARGET_PAIRS
= \
1561 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1562 indepsw.adb
<indepsw-gnu.adb
1564 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1567 THREADSLIB
=-lpthread
1568 GNATLIB_SHARED
=gnatlib-shared-dual
1570 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1571 LIBRARY_VERSION
:= $(LIB_VERSION
)
1574 ifeq ($(strip $(filter-out alpha
% linux
%,$(arch
) $(osys
))),)
1575 LIBGNAT_TARGET_PAIRS
= \
1576 a-intnam.ads
<a-intnam-linux.ads \
1577 s-inmaop.adb
<s-inmaop-posix.adb \
1578 s-intman.adb
<s-intman-posix.adb \
1579 s-linux.ads
<s-linux-alpha.ads \
1580 s-osinte.ads
<s-osinte-linux.ads \
1581 s-osinte.adb
<s-osinte-posix.adb \
1582 s-osprim.adb
<s-osprim-posix.adb \
1583 s-taprop.adb
<s-taprop-linux.adb \
1584 s-tasinf.ads
<s-tasinf-linux.ads \
1585 s-tasinf.adb
<s-tasinf-linux.adb \
1586 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1587 s-taspri.ads
<s-taspri-posix-noaltstack.ads \
1588 system.ads
<system-linux-alpha.ads
1590 TOOLS_TARGET_PAIRS
= \
1591 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1592 indepsw.adb
<indepsw-gnu.adb
1594 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1597 THREADSLIB
=-lpthread
1598 GNATLIB_SHARED
=gnatlib-shared-dual
1599 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1600 LIBRARY_VERSION
:= $(LIB_VERSION
)
1603 ifeq ($(strip $(filter-out %x86_64 linux
%,$(arch
) $(osys
))),)
1604 LIBGNAT_TARGET_PAIRS
= \
1605 a-intnam.ads
<a-intnam-linux.ads \
1606 a-numaux.adb
<a-numaux-x86.adb \
1607 a-numaux.ads
<a-numaux-x86.ads \
1608 g-soccon.ads
<g-soccon-linux-64.ads \
1609 s-inmaop.adb
<s-inmaop-posix.adb \
1610 s-intman.adb
<s-intman-posix.adb \
1611 s-linux.ads
<s-linux.ads \
1612 s-osinte.ads
<s-osinte-linux.ads \
1613 s-osinte.adb
<s-osinte-posix.adb \
1614 s-osprim.adb
<s-osprim-posix.adb \
1615 s-taprop.adb
<s-taprop-linux.adb \
1616 s-tasinf.ads
<s-tasinf-linux.ads \
1617 s-tasinf.adb
<s-tasinf-linux.adb \
1618 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1619 s-taspri.ads
<s-taspri-posix.ads \
1620 g-sercom.adb
<g-sercom-linux.adb \
1621 system.ads
<system-linux-x86_64.ads
1623 TOOLS_TARGET_PAIRS
= \
1624 mlib-tgt-specific.adb
<mlib-tgt-specific-linux.adb \
1625 indepsw.adb
<indepsw-gnu.adb
1627 EXTRA_GNATRTL_TASKING_OBJS
=s-linux.o
1629 THREADSLIB
=-lpthread
1630 GNATLIB_SHARED
=gnatlib-shared-dual
1632 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1633 LIBRARY_VERSION
:= $(LIB_VERSION
)
1636 ifeq ($(strip $(filter-out darwin
%,$(osys
))),)
1637 ifeq ($(strip $(filter-out %86,$(arch
))),)
1638 LIBGNAT_TARGET_PAIRS
= \
1639 a-intnam.ads
<a-intnam-darwin.ads \
1640 s-inmaop.adb
<s-inmaop-posix.adb \
1641 s-intman.adb
<s-intman-posix.adb \
1642 s-osinte.adb
<s-osinte-darwin.adb \
1643 s-osinte.ads
<s-osinte-darwin.ads \
1644 s-osprim.adb
<s-osprim-posix.adb \
1645 s-taprop.adb
<s-taprop-posix.adb \
1646 s-taspri.ads
<s-taspri-posix.ads \
1647 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1648 g-soccon.ads
<g-soccon-darwin.ads \
1649 a-numaux.ads
<a-numaux-x86.ads \
1650 a-numaux.adb
<a-numaux-x86.adb \
1651 system.ads
<system-darwin-x86.ads
1653 LIBGNAT_TARGET_PAIRS
= \
1654 a-intnam.ads
<a-intnam-darwin.ads \
1655 s-inmaop.adb
<s-inmaop-posix.adb \
1656 s-intman.adb
<s-intman-posix.adb \
1657 s-osinte.adb
<s-osinte-darwin.adb \
1658 s-osinte.ads
<s-osinte-darwin.ads \
1659 s-osprim.adb
<s-osprim-posix.adb \
1660 s-taprop.adb
<s-taprop-posix.adb \
1661 s-taspri.ads
<s-taspri-posix.ads \
1662 s-tpopsp.adb
<s-tpopsp-posix-foreign.adb \
1663 g-soccon.ads
<g-soccon-darwin.ads \
1664 a-numaux.ads
<a-numaux-darwin.ads \
1665 a-numaux.adb
<a-numaux-darwin.adb \
1666 system.ads
<system-darwin-ppc.ads
1669 TOOLS_TARGET_PAIRS
= \
1670 mlib-tgt-specific.adb
<mlib-tgt-specific-darwin.adb
1673 GNATLIB_SHARED
= gnatlib-shared-darwin
1674 SO_OPTS
= -Wl
,-flat_namespace
-shared-libgcc
1677 PREFIX_OBJS
=$(PREFIX_REAL_OBJS
)
1678 LIBRARY_VERSION
:= $(LIB_VERSION
)
1682 ifneq ($(EH_MECHANISM
),)
1683 LIBGNAT_TARGET_PAIRS
+= a-exexpr.adb
<a-exexpr
$(EH_MECHANISM
).adb
1684 EXTRA_LIBGNAT_SRCS
+=raise
$(EH_MECHANISM
).c
1685 EXTRA_LIBGNAT_OBJS
+=raise
$(EH_MECHANISM
).o
1688 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
1689 # explicitly already. The base files (a-except.ad?) are used only for building
1690 # the compiler and other basic tools.
1691 # These base versions lack Ada 2005 additions which would cause bootstrap
1692 # problems if included in the compiler and other basic tools.
1694 ifeq ($(filter-out a-except
%,$(LIBGNAT_TARGET_PAIRS
)),$(LIBGNAT_TARGET_PAIRS
))
1695 LIBGNAT_TARGET_PAIRS
+= \
1696 a-except.ads
<a-except-2005.ads \
1697 a-except.adb
<a-except-2005.adb
1700 # The runtime library for gnat comprises two directories. One contains the
1701 # Ada source files that the compiler (gnat1) needs -- these files are listed
1702 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1703 # corresponding .ali files for the parts written in Ada, libgnat.a for
1704 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1705 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1706 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1707 # go into the directory. The pthreads emulation is built in the threads
1708 # subdirectory and copied.
1709 LIBGNAT_SRCS
= ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1710 errno.c exit.c cal.c ctrl_c.c env.c env.h \
1711 raise.h raise.c sysdep.c aux-io.c init.c initialize.c seh_init.c \
1712 final.c tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c expect.c mkdir.c \
1713 socket.c gsocket.h targext.c
$(EXTRA_LIBGNAT_SRCS
)
1715 LIBGNAT_OBJS
= adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o env.o \
1716 raise.o sysdep.o aux-io.o init.o initialize.o seh_init.o cal.o \
1717 final.o tracebak.o expect.o mkdir.o socket.o targext.o
$(EXTRA_LIBGNAT_OBJS
)
1719 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1720 # the library installation will change and there will be a
1721 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1722 # from ADA_INCLUDE_SRCS.
1724 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1725 # the following include file:
1727 include $(fsrcdir
)/Makefile.rtl
1729 GNATRTL_LINEARALGEBRA_OBJS
= a-nlcoar.o a-nllcar.o a-nllrar.o a-nlrear.o \
1730 a-nucoar.o a-nurear.o i-forbla.o i-forlap.o s-gearop.o
1732 GNATRTL_OBJS
= $(GNATRTL_NONTASKING_OBJS
) $(GNATRTL_TASKING_OBJS
) \
1733 $(GNATRTL_LINEARALGEBRA_OBJS
) g-trasym.o memtrack.o
1735 # Default run time files
1738 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1739 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1740 sequenio.ads system.ads memtrack.adb \
1741 a-
[a-o
]*.adb a-
[p-z
]*.adb a-
[a-o
]*.ads a-
[p-z
]*.ads g-
*.ad? i-
*.ad? \
1742 s-
[a-o
]*.adb s-
[p-z
]*.adb s-
[a-o
]*.ads s-
[p-z
]*.ads
1744 LIBGNAT
=..
/$(RTSDIR
)/libgnat.a
1746 GCC_LINK
=$(CC
) -static-libgcc
$(ADA_INCLUDES
)
1748 # when compiling the tools, the runtime has to be first on the path so that
1749 # it hides the runtime files lying with the rest of the sources
1750 ifeq ($(TOOLSCASE
),native
)
1751 vpath
%.ads ..
/$(RTSDIR
) ..
/
1752 vpath
%.adb ..
/$(RTSDIR
) ..
/
1753 vpath
%.c ..
/$(RTSDIR
) ..
/
1754 vpath
%.h ..
/$(RTSDIR
) ..
/
1757 # in the cross tools case, everything is compiled with the native
1758 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1759 ifeq ($(TOOLSCASE
),cross
)
1767 $(GNATMAKE
) -c
-b
$(ADA_INCLUDES
) \
1768 --GNATBIND
="$(GNATBIND)" --GCC
="$(CC) $(ALL_ADAFLAGS)" \
1769 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
1770 gnatclean
-bargs
$(ADA_INCLUDES
) $(GNATBIND_FLAGS
)
1771 $(GNATLINK
) -v gnatcmd
-o ..
/..
/gnat
$(exeext
) \
1772 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1773 $(GNATLINK
) -v gnatchop
-o ..
/..
/gnatchop
$(exeext
) \
1774 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1775 $(GNATLINK
) -v gnatkr
-o ..
/..
/gnatkr
$(exeext
) \
1776 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1777 $(GNATLINK
) -v gnatls
-o ..
/..
/gnatls
$(exeext
) \
1778 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1779 $(GNATLINK
) -v gnatprep
-o ..
/..
/gnatprep
$(exeext
) \
1780 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1781 $(GNATLINK
) -v gnatxref
-o ..
/..
/gnatxref
$(exeext
) \
1782 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1783 $(GNATLINK
) -v gnatfind
-o ..
/..
/gnatfind
$(exeext
) \
1784 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1785 $(GNATLINK
) -v gnatname
-o ..
/..
/gnatname
$(exeext
) \
1786 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1787 $(GNATLINK
) -v gnatclean
-o ..
/..
/gnatclean
$(exeext
) \
1788 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1790 ..
/..
/gnatsym
$(exeext
):
1791 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatsym
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1792 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatsym
1793 $(GNATLINK
) -v gnatsym
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1795 ..
/..
/gnatdll
$(exeext
):
1796 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatdll
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1797 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatdll
1798 $(GNATLINK
) -v gnatdll
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1800 ..
/..
/vxaddr2line
$(exeext
): targext.o
1801 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vxaddr2line
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1802 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vxaddr2line
1803 $(GNATLINK
) -v vxaddr2line
-o
$@
--GCC
="$(GCC_LINK)" targext.o
$(CLIB
)
1805 gnatmake-re
: link.o targext.o
1806 $(GNATMAKE
) $(ADA_INCLUDES
) -u sdefault
--GCC
="$(CC) $(MOST_ADA_FLAGS)"
1807 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatmake
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1808 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatmake
1809 $(GNATLINK
) -v gnatmake
-o ..
/..
/gnatmake
$(exeext
) \
1810 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1812 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1813 # with the former version of gnatlink itself which cannot override itself.
1814 gnatlink-re
: link.o targext.o
1815 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlink
--GCC
="$(CC) $(ALL_ADAFLAGS)"
1816 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlink
1817 $(GNATLINK
) -v gnatlink
-o ..
/..
/gnatlinknew
$(exeext
) \
1818 --GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
1819 $(MV
) ..
/..
/gnatlinknew
$(exeext
) ..
/..
/gnatlink
$(exeext
)
1821 # Needs to be built with CC=gcc
1822 # Since the RTL should be built with the latest compiler, remove the
1823 # stamp target in the parent directory whenever gnat1 is rebuilt
1825 # Likewise for the tools
1826 ..
/..
/gnatmake
$(exeext
): $(P
) b_gnatm.o link.o targext.o
$(GNATMAKE_OBJS
)
1827 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatm.o
$(GNATMAKE_OBJS
) \
1830 ..
/..
/gnatlink
$(exeext
): $(P
) b_gnatl.o link.o targext.o
$(GNATLINK_OBJS
)
1831 $(GCC_LINK
) $(ALL_CFLAGS
) $(LDFLAGS
) -o
$@ b_gnatl.o
$(GNATLINK_OBJS
) \
1834 ..
/stamp-gnatlib-
$(RTSDIR
):
1835 @if
[ ! -f stamp-gnatlib-
$(RTSDIR
) ] ; \
1837 $(ECHO
) You must first build the GNAT library
: make gnatlib
; \
1843 install-gnatlib
: ..
/stamp-gnatlib-
$(RTSDIR
)
1844 # Create the directory before deleting it, in case the directory is
1845 # a list of directories (as it may be on VMS). This ensures we are
1846 # deleting the right one.
1847 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1848 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1849 $(RMDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1850 $(RMDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1851 -$(MKDIR
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1852 -$(MKDIR
) $(DESTDIR
)$(ADA_INCLUDE_DIR
)
1853 for file in
$(RTSDIR
)/*.ali
; do \
1854 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1856 -$(INSTALL_DATA
) $(RTSDIR
)/g-trasym
$(objext
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)
1857 -cd
$(RTSDIR
); for file in
*$(arext
);do \
1858 $(INSTALL_DATA
) $$file $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1859 $(RANLIB_FOR_TARGET
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/$$file; \
1861 -$(foreach file
, $(EXTRA_ADALIB_FILES
), \
1862 $(INSTALL_DATA_DATE
) $(RTSDIR
)/$(file
) $(DESTDIR
)$(ADA_RTL_OBJ_DIR
) && \
1864 # Install the shared libraries, if any, using $(INSTALL) instead
1865 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1866 # for shared libraries on some targets, e.g. on HP-UX where the x
1867 # permission is required.
1868 for file in gnat gnarl
; do \
1869 if
[ -f
$(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) ]; then \
1870 $(INSTALL
) $(RTSDIR
)/lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1871 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
); \
1873 if
[ -f
$(RTSDIR
)/lib
$${file}$(soext
) ]; then \
1874 $(LN_S
) lib
$${file}$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1875 $(DESTDIR
)$(ADA_RTL_OBJ_DIR
)/lib
$${file}$(soext
); \
1878 # This copy must be done preserving the date on the original file.
1879 for file in
$(RTSDIR
)/*.ad?
; do \
1880 $(INSTALL_DATA_DATE
) $$file $(DESTDIR
)$(ADA_INCLUDE_DIR
); \
1882 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.adb
1883 cd
$(DESTDIR
)$(ADA_INCLUDE_DIR
); $(CHMOD
) a-wx
*.ads
1885 ..
/stamp-gnatlib2-
$(RTSDIR
):
1886 $(RM
) $(RTSDIR
)/s-
*.ali
1887 $(RM
) $(RTSDIR
)/s-
*$(objext
)
1888 $(RM
) $(RTSDIR
)/a-
*.ali
1889 $(RM
) $(RTSDIR
)/a-
*$(objext
)
1890 $(RM
) $(RTSDIR
)/*.ali
1891 $(RM
) $(RTSDIR
)/*$(objext
)
1892 $(RM
) $(RTSDIR
)/*$(arext
)
1893 $(RM
) $(RTSDIR
)/*$(soext
)
1894 touch ..
/stamp-gnatlib2-
$(RTSDIR
)
1895 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
1897 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1898 # successive target commands. Although the Gnu make documentation
1899 # implies this is true on all systems, I suspect it may not be, So care
1900 # has been taken to allow a sed script to look for ";)" and substitue
1901 # for ";" the appropriate character in the range of lines below
1902 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1904 # GNULLI Begin ###########################################################
1906 ..
/stamp-gnatlib1-
$(RTSDIR
): Makefile ..
/stamp-gnatlib2-
$(RTSDIR
)
1909 $(CHMOD
) u
+w
$(RTSDIR
)
1910 # Copy target independent sources
1911 $(foreach f
,$(ADA_INCLUDE_SRCS
) $(LIBGNAT_SRCS
), \
1912 $(LN_S
) $(fsrcpfx
)$(f
) $(RTSDIR
) ;) true
1913 # Remove files to be replaced by target dependent sources
1914 $(RM
) $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
1915 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
))))
1916 $(RM
) $(RTSDIR
)/*-*-*.ads
$(RTSDIR
)/*-*-*.adb
1917 # Copy new target dependent sources
1918 $(foreach PAIR
,$(LIBGNAT_TARGET_PAIRS
), \
1919 $(LN_S
) $(fsrcpfx
)$(word 2,$(subst <, ,$(PAIR
))) \
1920 $(RTSDIR
)/$(word 1,$(subst <, ,$(PAIR
)));)
1921 $(RM
) ..
/stamp-gnatlib-
$(RTSDIR
)
1922 touch ..
/stamp-gnatlib1-
$(RTSDIR
)
1924 # GNULLI End #############################################################
1926 # Don't use semicolon separated shell commands that involve list expansions.
1927 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1928 # line lengths in excess of 256 characters.
1929 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1930 # is guaranteed to overflow the buffer.
1932 gnatlib
: ..
/stamp-gnatlib1-
$(RTSDIR
) ..
/stamp-gnatlib2-
$(RTSDIR
)
1933 $(MAKE
) -C
$(RTSDIR
) \
1934 CC
="`echo \"$(GCC_FOR_TARGET)\" \
1935 | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
1936 INCLUDES
="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1937 CFLAGS
="$(GNATLIBCFLAGS_FOR_C)" \
1938 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
1940 -f ..
/Makefile
$(LIBGNAT_OBJS
)
1941 $(MAKE
) -C
$(RTSDIR
) \
1942 CC
="`echo \"$(GCC_FOR_TARGET)\" \
1943 | sed -e 's,^\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
1945 CFLAGS
="$(GNATLIBCFLAGS)" \
1946 ADAFLAGS
="$(GNATLIBFLAGS)" \
1947 FORCE_DEBUG_ADAFLAGS
="$(FORCE_DEBUG_ADAFLAGS)" \
1951 $(RM
) $(RTSDIR
)/libgnat
$(arext
) $(RTSDIR
)/libgnarl
$(arext
)
1952 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnat
$(arext
) \
1953 $(addprefix $(RTSDIR
)/,$(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
))
1954 ifneq ($(PREFIX_OBJS
),)
1955 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgccprefix
$(arext
) \
1957 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgccprefix
$(arext
)
1959 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnat
$(arext
)
1960 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnarl
$(arext
) \
1961 $(addprefix $(RTSDIR
)/,$(GNATRTL_TASKING_OBJS
))
1962 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnarl
$(arext
)
1963 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgnala
$(arext
) \
1964 $(addprefix $(RTSDIR
)/,$(GNATRTL_LINEARALGEBRA_OBJS
))
1965 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgnala
$(arext
)
1966 ifeq ($(GMEM_LIB
),gmemlib
)
1967 $(AR_FOR_TARGET
) $(AR_FLAGS
) $(RTSDIR
)/libgmem
$(arext
) \
1968 $(RTSDIR
)/memtrack.o
1969 $(RANLIB_FOR_TARGET
) $(RTSDIR
)/libgmem
$(arext
)
1971 $(CHMOD
) a-wx
$(RTSDIR
)/*.ali
1972 touch ..
/stamp-gnatlib-
$(RTSDIR
)
1974 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
1975 gnatlib-shared-default
:
1976 $(MAKE
) $(FLAGS_TO_PASS
) \
1977 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
1978 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1979 MULTISUBDIR
="$(MULTISUBDIR)" \
1980 THREAD_KIND
="$(THREAD_KIND)" \
1982 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
1983 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
$(GNATLIBCFLAGS
) \
1984 $(TARGET_LIBGCC2_CFLAGS
) \
1985 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1986 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
1987 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1989 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
$(GNATLIBCFLAGS
) \
1990 $(TARGET_LIBGCC2_CFLAGS
) \
1991 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1992 $(GNATRTL_TASKING_OBJS
) \
1993 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1995 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
1997 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2000 gnatlib-shared-dual
:
2001 $(MAKE
) $(FLAGS_TO_PASS
) \
2002 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2003 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2004 MULTISUBDIR
="$(MULTISUBDIR)" \
2005 THREAD_KIND
="$(THREAD_KIND)" \
2006 gnatlib-shared-default
2007 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2008 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2009 $(MAKE
) $(FLAGS_TO_PASS
) \
2010 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2011 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2012 MULTISUBDIR
="$(MULTISUBDIR)" \
2013 THREAD_KIND
="$(THREAD_KIND)" \
2015 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2017 gnatlib-shared-dual-win32
:
2018 $(MAKE
) $(FLAGS_TO_PASS
) \
2019 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2020 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2021 MULTISUBDIR
="$(MULTISUBDIR)" \
2022 THREAD_KIND
="$(THREAD_KIND)" \
2023 gnatlib-shared-win32
2024 $(MV
) $(RTSDIR
)/libgna
*$(soext
) .
2025 $(RM
) ..
/stamp-gnatlib2-
$(RTSDIR
)
2026 $(MAKE
) $(FLAGS_TO_PASS
) \
2027 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2028 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2029 MULTISUBDIR
="$(MULTISUBDIR)" \
2030 THREAD_KIND
="$(THREAD_KIND)" \
2032 $(MV
) libgna
*$(soext
) $(RTSDIR
)
2034 # ??? we need to add the option to support auto-import of arrays/records to
2035 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2036 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2038 gnatlib-shared-win32
:
2039 $(MAKE
) $(FLAGS_TO_PASS
) \
2040 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2041 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
2042 MULTISUBDIR
="$(MULTISUBDIR)" \
2043 THREAD_KIND
="$(THREAD_KIND)" \
2045 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2046 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
2047 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2048 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2049 $(SO_OPTS
)libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) $(MISCLIB
)
2050 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -shared
$(TARGET_LIBGCC2_CFLAGS
) \
2051 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2052 $(GNATRTL_TASKING_OBJS
) \
2053 $(SO_OPTS
)libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2054 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2056 gnatlib-shared-darwin
:
2057 $(MAKE
) $(FLAGS_TO_PASS
) \
2058 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2059 GNATLIBCFLAGS
="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) \
2061 MULTISUBDIR
="$(MULTISUBDIR)" \
2062 THREAD_KIND
="$(THREAD_KIND)" \
2064 $(RM
) $(RTSDIR
)/libgnat
$(soext
) $(RTSDIR
)/libgnarl
$(soext
)
2065 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
2066 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2067 $(GNATRTL_NONTASKING_OBJS
) $(LIBGNAT_OBJS
) \
2070 cd
$(RTSDIR
); ..
/..
/xgcc
-B..
/..
/ -dynamiclib
$(TARGET_LIBGCC2_CFLAGS
) \
2071 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2072 $(GNATRTL_TASKING_OBJS
) \
2074 $(THREADSLIB
) -Wl
,libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
)
2075 cd
$(RTSDIR
); $(LN_S
) libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2077 cd
$(RTSDIR
); $(LN_S
) libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2081 $(MAKE
) $(FLAGS_TO_PASS
) \
2082 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2083 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2084 MULTISUBDIR
="$(MULTISUBDIR)" \
2085 THREAD_KIND
="$(THREAD_KIND)" \
2087 $(RM
) $(RTSDIR
)/libgna
*$(soext
)
2089 ..
/..
/gnatsym
-s SYMVEC_
$$$$.opt \
2090 $(LIBGNAT_OBJS
) $(GNATRTL_NONTASKING_OBJS
) && \
2091 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2092 -o libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) libgnat.a \
2093 sys\
$$library:trace.exe \
2094 --for-linker
=/noinform \
2095 --for-linker
=SYMVEC_
$$$$.opt \
2096 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2098 ..
/..
/gnatsym
-s SYMVEC_
$$$$.opt \
2099 $(GNATRTL_TASKING_OBJS
) && \
2100 ..
/..
/xgcc
-g
-B..
/..
/ -shared
-shared-libgcc \
2101 -o libgnarl
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2102 libgnarl.a libgnat
$(hyphen
)$(LIBRARY_VERSION
)$(soext
) \
2103 sys\
$$library:trace.exe \
2104 --for-linker
=/noinform \
2105 --for-linker
=SYMVEC_
$$$$.opt \
2106 --for-linker
=gsmatch
=equal
,$(GSMATCH_VERSION
)
2109 $(MAKE
) $(FLAGS_TO_PASS
) \
2110 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2111 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2112 MULTISUBDIR
="$(MULTISUBDIR)" \
2113 THREAD_KIND
="$(THREAD_KIND)" \
2114 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" \
2118 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="" ..
/stamp-gnatlib1-
$(RTSDIR
)
2119 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2120 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2121 $(MAKE
) $(FLAGS_TO_PASS
) \
2123 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2124 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2125 MULTISUBDIR
="$(MULTISUBDIR)" \
2126 THREAD_KIND
="$(THREAD_KIND)" \
2127 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2130 $(MAKE
) $(FLAGS_TO_PASS
) EH_MECHANISM
="-gcc" ..
/stamp-gnatlib1-
$(RTSDIR
)
2131 sed
-e
's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR
)/system.ads
> $(RTSDIR
)/s.ads
2132 $(MV
) $(RTSDIR
)/s.ads
$(RTSDIR
)/system.ads
2133 $(MAKE
) $(FLAGS_TO_PASS
) \
2134 EH_MECHANISM
="-gcc" \
2135 GNATLIBFLAGS
="$(GNATLIBFLAGS)" \
2136 GNATLIBCFLAGS
="$(GNATLIBCFLAGS)" \
2137 MULTISUBDIR
="$(MULTISUBDIR)" \
2138 THREAD_KIND
="$(THREAD_KIND)" \
2139 TARGET_LIBGCC2_CFLAGS
="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
2141 # .s files for cross-building
2143 make
$(GNAT1_ADA_OBJS
) CC
="gcc -B../stage1/" CFLAGS
="-S -gnatp"
2145 # Compiling object files from source files.
2147 # Note that dependencies on obstack.h are not written
2148 # because that file is not part of GCC.
2149 # Dependencies on gvarargs.h are not written
2150 # because all that file does, when not compiling with GCC,
2151 # is include the system varargs.h.
2153 b_gnatl.c
: $(GNATLINK_OBJS
)
2154 $(GNATBIND
) -C
$(ADA_INCLUDES
) -o b_gnatl.c gnatlink.ali
2155 b_gnatl.o
: b_gnatl.c
2157 b_gnatm.c
: $(GNATMAKE_OBJS
)
2158 $(GNATBIND
) -C
$(ADA_INCLUDES
) -o b_gnatm.c gnatmake.ali
2159 b_gnatm.o
: b_gnatm.c
2161 ADA_INCLUDE_DIR
= $(libsubdir
)/adainclude
2162 ADA_RTL_OBJ_DIR
= $(libsubdir
)/adalib
2164 # force no sibling call optimization on s-traceb.o so the number of stack
2165 # frames to be skipped when computing a call chain is not modified by
2166 # optimization. However we can do that only when building the runtime
2167 # (not the compiler) because the -fno-optimize-sibling-calls option exists
2168 # only in GCC 3 and above.
2170 ifneq (,$(findstring xgcc
,$(CC
)))
2171 NO_SIBLING_ADAFLAGS
=-fno-optimize-sibling-calls
2173 NO_SIBLING_ADAFLAGS
=
2176 s-traceb.o
: s-traceb.adb
2177 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) \
2178 $(NO_SIBLING_ADAFLAGS
) $(ADA_INCLUDES
) \
2181 # force debugging information on s-tasdeb.o so that it is always
2182 # possible to set conditional breakpoints on tasks.
2184 s-tasdeb.o
: s-tasdeb.adb s-tasdeb.ads
2185 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2188 # force no function reordering on a-except.o because of the exclusion bounds
2189 # mechanism (see the source file for more detailed information). However we
2190 # can do that only when building the runtime (not the compiler) because the
2191 # -fno-toplevel-reorder option exists only in GCC 4.2 and above.
2193 ifneq (,$(findstring xgcc
,$(CC
)))
2194 NO_REORDER_ADAFLAGS
=-fno-toplevel-reorder
2196 NO_REORDER_ADAFLAGS
=
2199 # force debugging information on a-except.o so that it is always
2200 # possible to set conditional breakpoints on exceptions.
2201 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
2203 a-except.o
: a-except.adb a-except.ads
2204 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O1
-fno-inline \
2205 $(NO_REORDER_ADAFLAGS
) $(ADA_INCLUDES
) $< $(OUTPUT_OPTION
)
2207 # compile s-except.o without optimization and with debug info to let the
2208 # debugger set breakpoints and inspect subprogram parameters on exception
2211 s-except.o
: s-except.adb s-except.ads
2212 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O0
$(ADA_INCLUDES
) \
2215 # force debugging information on s-assert.o so that it is always
2216 # possible to set breakpoint on assert failures.
2218 s-assert.o
: s-assert.adb s-assert.ads a-except.ads
2219 $(CC
) -c
$(ALL_ADAFLAGS
) $(FORCE_DEBUG_ADAFLAGS
) -O2
$(ADA_INCLUDES
) \
2222 adadecode.o
: adadecode.c adadecode.h
2226 deftarg.o
: deftarg.c
2228 exit.o
: adaint.h exit.c
2234 socket.o
: socket.c gsocket.h
2236 raise-gcc.o
: raise-gcc.c raise.h
2237 raise.o
: raise.c raise.h
2238 vx_stack_info.o
: vx_stack_info.c
2240 gen-soccon
: gen-soccon.c gsocket.h
2241 $(CC
) $(ALL_CFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) $(INCLUDES
) \
2242 -UIN_GCC
-DTARGET
=\"$(target_alias
)\" \
2246 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) \
2247 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2249 init.o
: init.c adaint.h raise.h
2250 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) \
2251 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2253 initialize.o
: initialize.c raise.h
2254 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) \
2255 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2257 targext.o
: targext.c
2258 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) \
2259 $(ALL_CPPFLAGS
) $(INCLUDES_FOR_SUBDIR
) \
2262 # No optimization to compile this file as optimizations (-O1 or above) breaks
2263 # the SEH handling on Windows. The reasons are not clear.
2264 seh_init.o
: seh_init.c raise.h
2265 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) -O0 \
2266 $(ALL_CPPFLAGS
) $(INCLUDES
) $< $(OUTPUT_OPTION
)
2268 # Need to keep the frame pointer in this file to pop the stack properly on
2270 tracebak.o
: tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
2271 $(CC
) -c
$(ALL_CFLAGS
) $(ADA_CFLAGS
) $(ALL_CPPFLAGS
) $(INCLUDES
) \
2272 -fno-omit-frame-pointer
$< $(OUTPUT_OPTION
)
2274 # In GNU Make, ignore whether `stage*' exists.
2275 .PHONY
: stage1 stage2 stage3 stage4
clean realclean TAGS bootstrap
2276 .PHONY
: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2280 # Gnatlbr, Vms_help, and Gnat.hlp are only used on VMS
2282 ..
/..
/gnatlbr
$(exeext
): ..
/..
/prefix.o
2283 $(GNATMAKE
) -c
$(ADA_INCLUDES
) gnatlbr
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2284 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) gnatlbr
2285 $(GNATLINK
) -v gnatlbr
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2287 ..
/..
/vms_help
$(exeext
):
2288 $(GNATMAKE
) -c
$(ADA_INCLUDES
) vms_help
--GCC
="$(CC) $(ALL_ADAFLAGS)"
2289 $(GNATBIND
) $(ADA_INCLUDES
) $(GNATBIND_FLAGS
) vms_help
2290 $(GNATLINK
) -v vms_help
-o
$@
--GCC
="$(GCC_LINK)" $(TOOLS_LIBS
)
2292 ..
/..
/gnat.hlp
: ..
/..
/vms_help
$(exeext
)
2293 ..
/..
/vms_help
$(exeext
) $(fsrcdir
)/gnat.help_in \
2294 $(fsrcdir
)/vms_data.ads ..
/..
/gnat.hlp