]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ada/gcc-interface/Makefile.in
[multiple changes]
[thirdparty/gcc.git] / gcc / ada / gcc-interface / Makefile.in
1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3
4 #This file is part of GCC.
5
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)
9 #any later version.
10
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.
15
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/>.
19
20 # The makefile built from this file lives in the language subdirectory.
21 # Its purpose is to provide support for:
22 #
23 # 1) recursion where necessary, and only then (building .o's), and
24 # 2) building and debugging cc1 from the language subdirectory, and
25 # 3) nothing else.
26 #
27 # The parent makefile handles all other chores, with help from the
28 # language makefile fragment, of course.
29 #
30 # The targets for external use are:
31 # all, TAGS, ???mostlyclean, ???clean.
32
33 # This makefile will only work with Gnu make.
34 # The rules are written assuming a minimum subset of tools are available:
35 #
36 # Required:
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.
47 # AR: Gnu ar works.
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.
53 #
54 # Optional:
55 # BISON: Gnu bison works.
56 # FLEX: Gnu flex works.
57 # Other miscellaneous tools for obscure targets.
58
59 # Suppress smart makes who think they know how to automake Yacc files
60 .y.c:
61
62 # Variables that exist for you to override.
63 # See below for how to change them for certain systems.
64
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
69 CFLAGS = -g
70 BOOT_CFLAGS = -O $(CFLAGS)
71 # These exists to be overridden by the t-* files, respectively.
72 T_CFLAGS =
73
74 CC = cc
75 BISON = bison
76 BISONFLAGS =
77 ECHO = echo
78 LEX = flex
79 LEXFLAGS =
80 CHMOD = chmod
81 LN = ln
82 LN_S = ln -s
83 CP = cp -p
84 MV = mv -f
85 RM = rm -f
86 RMDIR = rm -rf
87 MKDIR = mkdir -p
88 AR = ar
89 AR_FLAGS = rc
90 LS = ls
91 RANLIB = @RANLIB@
92 RANLIB_FLAGS = @ranlib_flags@
93 AWK = @AWK@
94
95 COMPILER = $(CC)
96 COMPILER_FLAGS = $(CFLAGS)
97
98 SHELL = @SHELL@
99 PWD_COMMAND = $${PWDCMD-pwd}
100 # How to copy preserving the date
101 INSTALL_DATA_DATE = cp -p
102 MAKEINFO = makeinfo
103 TEXI2DVI = texi2dvi
104 TEXI2PDF = texi2pdf
105 GNATBIND_FLAGS = -static -x
106 ADA_CFLAGS =
107 ADAFLAGS = -W -Wall -gnatpg -gnata
108 FORCE_DEBUG_ADAFLAGS = -g
109 NO_SIBLING_ADAFLAGS = -fno-optimize-sibling-calls
110 NO_REORDER_ADAFLAGS = -fno-toplevel-reorder
111 GNATLIBFLAGS = -W -Wall -gnatpg -nostdinc
112 GNATLIBCFLAGS = -g -O2
113 PICFLAG_FOR_TARGET = @PICFLAG_FOR_TARGET@
114
115 # Pretend that _Unwind_GetIPInfo is available for the target by default. This
116 # should be autodetected during the configuration of libada and passed down to
117 # here, but we need something for --disable-libada and hope for the best.
118 GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) \
119 -fexceptions -DIN_RTS -DHAVE_GETIPINFO
120 ALL_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(ADAFLAGS)
121 THREAD_KIND = native
122 THREADSLIB =
123 GMEM_LIB =
124 MISCLIB =
125 OUTPUT_OPTION = -o $@
126
127 objext = .o
128 exeext =
129 arext = .a
130 soext = .so
131 shext =
132 hyphen = -
133
134 # Define this as & to perform parallel make on a Sequent.
135 # Note that this has some bugs, and it seems currently necessary
136 # to compile all the gen* files first by hand to avoid erroneous results.
137 P =
138
139 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
140 # It specifies -B./.
141 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
142 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS)
143
144 # Tools to use when building a cross-compiler.
145 # These are used because `configure' appends `cross-make'
146 # to the makefile when making a cross-compiler.
147
148 # We don't use cross-make. Instead we use the tools from the build tree,
149 # if they are available.
150 # program_transform_name and objdir are set by configure.in.
151 program_transform_name =
152 objdir = .
153
154 target_alias=@target_alias@
155 target=@target@
156 target_cpu=@target_cpu@
157 target_vendor=@target_vendor@
158 target_os=@target_os@
159 host_cpu=@host_cpu@
160 host_vendor=@host_vendor@
161 host_os=@host_os@
162 xmake_file = @xmake_file@
163 tmake_file = @tmake_file@
164 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
165 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
166
167 # Directory where sources are, from where we are.
168 VPATH = $(srcdir)/ada
169
170 # Full path to top source directory
171 # In particular this is used to access libgcc headers, so that references to
172 # these headers from GNAT runtime objects have path names in debugging info
173 # that are consistent with libgcc objects. Also used for other references to
174 # the top source directory for consistency.
175 ftop_srcdir := $(shell cd $(srcdir)/..;${PWD_COMMAND})
176
177 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
178 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
179 fcurdir := $(shell ${PWD_COMMAND})
180 fcurpfx := $(shell ${PWD_COMMAND})/
181
182 # Top build directory, relative to here.
183 top_builddir = ../..
184
185 # Internationalization library.
186 LIBINTL = @LIBINTL@
187 LIBINTL_DEP = @LIBINTL_DEP@
188
189 # Character encoding conversion library.
190 LIBICONV = @LIBICONV@
191 LIBICONV_DEP = @LIBICONV_DEP@
192
193 # Any system libraries needed just for GNAT.
194 SYSLIBS = @GNAT_LIBEXC@
195
196 # List extra gnattools
197 EXTRA_GNATTOOLS =
198
199 # List of target dependent sources, overridden below as necessary
200 TARGET_ADA_SRCS =
201
202 # Type of tools build we are doing; default is not compiling tools.
203 TOOLSCASE =
204
205 # Multilib handling
206 MULTISUBDIR =
207 RTSDIR = rts$(subst /,_,$(MULTISUBDIR))
208
209 # Link flags used to build gnat tools. By default we prefer to statically
210 # link with libgcc to avoid a dependency on shared libgcc (which is tricky
211 # to deal with as it may conflict with the libgcc provided by the system).
212 GCC_LINK_FLAGS=-static-libstdc++ -static-libgcc
213
214 # End of variables for you to override.
215
216 all: all.indirect
217
218 # This tells GNU Make version 3 not to put all variables in the environment.
219 .NOEXPORT:
220
221 # target overrides
222 ifneq ($(tmake_file),)
223 include $(tmake_file)
224 endif
225
226 # host overrides
227 ifneq ($(xmake_file),)
228 include $(xmake_file)
229 endif
230 \f
231 # Now figure out from those variables how to compile and link.
232
233 all.indirect: Makefile ../gnat1$(exeext)
234
235 # IN_GCC is meant to distinguish between code compiled into GCC itself, i.e.
236 # for the host, and the rest. But we also use it for the tools (link.c) and
237 # even break the host/target wall by using it for the library (targext.c).
238 # autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a cross
239 # compiler which does not use the native libraries and headers.
240 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
241
242 # This is the variable actually used when we compile.
243 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS)
244
245 # Likewise.
246 ALL_CPPFLAGS = $(CPPFLAGS)
247
248 # Used with $(COMPILER).
249 ALL_COMPILERFLAGS = $(ALL_CFLAGS)
250
251 # This is where we get libiberty.a from.
252 LIBIBERTY = ../../libiberty/libiberty.a
253
254 # We need to link against libbacktrace because diagnostic.c in
255 # libcommon.a uses it.
256 LIBBACKTRACE = ../../libbacktrace/.libs/libbacktrace.a
257
258 # How to link with both our special library facilities
259 # and the system's installed libraries.
260 LIBS = $(LIBINTL) $(LIBICONV) $(LIBBACKTRACE) $(LIBIBERTY) $(SYSLIBS)
261 LIBDEPS = $(LIBINTL_DEP) $(LIBICONV_DEP) $(LIBBACKTRACE) $(LIBIBERTY)
262 # Default is no TGT_LIB; one might be passed down or something
263 TGT_LIB =
264 TOOLS_LIBS = ../link.o ../targext.o ../../ggc-none.o ../../libcommon-target.a \
265 ../../libcommon.a ../../../libcpp/libcpp.a $(LIBGNAT) $(LIBINTL) $(LIBICONV) \
266 ../$(LIBBACKTRACE) ../$(LIBIBERTY) $(SYSLIBS) $(TGT_LIB)
267
268 # Specify the directories to be searched for header files.
269 # Both . and srcdir are used, in that order,
270 # so that tm.h and config.h will be found in the compilation
271 # subdirectory rather than in the source directory.
272 INCLUDES = -I- -I. -I.. -I$(srcdir)/ada -I$(srcdir) -I$(ftop_srcdir)/include $(GMPINC)
273
274 ADA_INCLUDES = -I- -I. -I$(srcdir)/ada
275
276 # Likewise, but valid for subdirectories of the current dir.
277 # FIXME: for VxWorks, we cannot add $(fsrcdir) because the regs.h file in
278 # that directory conflicts with a system header file.
279 ifneq ($(findstring vxworks,$(target_os)),)
280 INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \
281 -iquote $(fsrcdir)/ada \
282 -I$(ftop_srcdir)/include $(GMPINC)
283 else
284 INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \
285 -iquote $(fsrcdir)/ada -iquote $(fsrcdir) \
286 -I$(ftop_srcdir)/include $(GMPINC)
287 endif
288
289 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada
290
291 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
292 .SUFFIXES: .in .def
293
294 # Say how to compile Ada programs.
295 .SUFFIXES: .ada .adb .ads .asm
296
297 # Always use -I$(srcdir)/config when compiling.
298 .asm.o:
299 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
300
301 .c.o:
302 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
303 $(INCLUDES) $< $(OUTPUT_OPTION)
304
305 .adb.o:
306 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
307
308 .ads.o:
309 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
310
311 # how to regenerate this file
312 Makefile: ../config.status $(srcdir)/ada/gcc-interface/Makefile.in $(srcdir)/ada/Makefile.in $(srcdir)/version.c
313 cd ..; \
314 LANGUAGES="$(CONFIG_LANGUAGES)" \
315 CONFIG_HEADERS= \
316 CONFIG_FILES="ada/gcc-interface/Makefile ada/Makefile" $(SHELL) config.status
317
318 # This tells GNU make version 3 not to export all the variables
319 # defined in this file into the environment.
320 .NOEXPORT:
321 \f
322 # Lists of files for various purposes.
323
324 GNATLINK_OBJS = gnatlink.o \
325 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o \
326 gnatvsn.o hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o \
327 osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
328 sdefault.o snames.o stylesw.o switch.o system.o table.o targparm.o tree_io.o \
329 types.o validsw.o widechar.o
330
331 GNATMAKE_OBJS = a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o \
332 atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o errout.o \
333 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
334 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
335 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o \
336 mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o \
337 output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o \
338 prj-conf.o prj-pp.o prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o \
339 prj-proc.o prj-strt.o prj-tree.o prj-util.o restrict.o rident.o s-exctab.o \
340 s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o \
341 s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o \
342 sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o \
343 switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o uintp.o \
344 uname.o urealp.o usage.o widechar.o \
345 $(EXTRA_GNATMAKE_OBJS)
346
347 # Make arch match the current multilib so that the RTS selection code
348 # picks up the right files. For a given target this must be coherent
349 # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*.
350
351 ifeq ($(strip $(filter-out %x86_64, $(target_cpu))),)
352 ifeq ($(strip $(MULTISUBDIR)),/32)
353 target_cpu:=i686
354 else
355 ifeq ($(strip $(MULTISUBDIR)),/x32)
356 target_cpu:=x32
357 endif
358 endif
359 endif
360
361 # ???: handle more multilib targets
362
363 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
364 # The members of each pair must be separated by a '<' and no whitespace.
365 # Each pair must be separated by some amount of whitespace from the following
366 # pair.
367
368 # Non-tasking case:
369
370 LIBGNAT_TARGET_PAIRS = \
371 a-intnam.ads<a-intnam-dummy.ads \
372 s-inmaop.adb<s-inmaop-dummy.adb \
373 s-intman.adb<s-intman-dummy.adb \
374 s-osinte.ads<s-osinte-dummy.ads \
375 s-osprim.adb<s-osprim-posix.adb \
376 s-taprop.adb<s-taprop-dummy.adb \
377 s-taspri.ads<s-taspri-dummy.ads
378
379 # When using the GCC exception handling mechanism, we need to use an
380 # alternate body for a-exexpr.adb (a-exexpr-gcc.adb)
381
382 EH_MECHANISM=
383
384 # Default shared object option. Note that we rely on the fact that the "soname"
385 # option will always be present and last in this flag, so that we can have
386 # $(SO_OPTS)libgnat-x.xx
387
388 SO_OPTS = -Wl,-soname,
389
390 # Default gnatlib-shared target.
391 # By default, equivalent to gnatlib.
392 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
393 # target when supported.
394 GNATLIB_SHARED = gnatlib
395
396 # default value for gnatmake's target dependent file
397 MLIB_TGT = mlib-tgt
398
399 # By default, build socket support units. On platforms that do not support
400 # sockets, reset this variable to empty and add DUMMY_SOCKETS_TARGET_PAIRS
401 # to LIBGNAT_TARGET_PAIRS.
402
403 GNATRTL_SOCKETS_OBJS = g-soccon$(objext) g-socket$(objext) g-socthi$(objext) \
404 g-soliop$(objext) g-sothco$(objext)
405
406 DUMMY_SOCKETS_TARGET_PAIRS = \
407 g-socket.adb<g-socket-dummy.adb \
408 g-socket.ads<g-socket-dummy.ads \
409 g-socthi.adb<g-socthi-dummy.adb \
410 g-socthi.ads<g-socthi-dummy.ads \
411 g-sothco.adb<g-sothco-dummy.adb \
412 g-sothco.ads<g-sothco-dummy.ads
413
414 # On platforms where atomic increment/decrement operations are supported,
415 # special version of Ada.Strings.Unbounded package can be used.
416
417 ATOMICS_TARGET_PAIRS = \
418 a-coinho.adb<a-coinho-shared.adb \
419 a-coinho.ads<a-coinho-shared.ads \
420 a-stunau.adb<a-stunau-shared.adb \
421 a-suteio.adb<a-suteio-shared.adb \
422 a-strunb.ads<a-strunb-shared.ads \
423 a-strunb.adb<a-strunb-shared.adb \
424 a-stwiun.adb<a-stwiun-shared.adb \
425 a-stwiun.ads<a-stwiun-shared.ads \
426 a-swunau.adb<a-swunau-shared.adb \
427 a-swuwti.adb<a-swuwti-shared.adb \
428 a-stzunb.adb<a-stzunb-shared.adb \
429 a-stzunb.ads<a-stzunb-shared.ads \
430 a-szunau.adb<a-szunau-shared.adb \
431 a-szuzti.adb<a-szuzti-shared.adb
432
433 ATOMICS_BUILTINS_TARGET_PAIRS = \
434 s-atocou.adb<s-atocou-builtin.adb
435
436 # Special version of units for x86 and x86-64 platforms.
437
438 X86_TARGET_PAIRS = \
439 a-numaux.ads<a-numaux-x86.ads \
440 a-numaux.adb<a-numaux-x86.adb \
441 s-atocou.adb<s-atocou-x86.adb
442
443 X86_64_TARGET_PAIRS = \
444 a-numaux.ads<a-numaux-x86.ads \
445 a-numaux.adb<a-numaux-x86.adb \
446 s-atocou.adb<s-atocou-builtin.adb
447
448 LIB_VERSION = $(strip $(shell grep ' Library_Version :' $(fsrcpfx)ada/gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
449
450 # Additionnal object files from C source to be added to libgnat.
451 EXTRA_LIBGNAT_OBJS=
452 # Additionnal C source file to be added to libgnat without corresponding object
453 # file (included files).
454 EXTRA_LIBGNAT_SRCS=
455
456 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
457 # $(strip STRING) removes leading and trailing spaces from STRING.
458 # If what's left is null then it's a match.
459
460 # m68k VxWorks
461 ifeq ($(strip $(filter-out m68k% wrs vx%,$(target_cpu) $(target_vendor) $(target_os))),)
462 LIBGNAT_TARGET_PAIRS = \
463 a-intnam.ads<a-intnam-vxworks.ads \
464 a-numaux.ads<a-numaux-vxworks.ads \
465 s-inmaop.adb<s-inmaop-vxworks.adb \
466 s-interr.adb<s-interr-hwint.adb \
467 s-intman.ads<s-intman-vxworks.ads \
468 s-intman.adb<s-intman-vxworks.adb \
469 s-osinte.adb<s-osinte-vxworks.adb \
470 s-osinte.ads<s-osinte-vxworks.ads \
471 s-osprim.adb<s-osprim-vxworks.adb \
472 s-parame.ads<s-parame-vxworks.ads \
473 s-parame.adb<s-parame-vxworks.adb \
474 s-stchop.ads<s-stchop-limit.ads \
475 s-stchop.adb<s-stchop-vxworks.adb \
476 s-taprop.adb<s-taprop-vxworks.adb \
477 s-tasinf.ads<s-tasinf-vxworks.ads \
478 s-taspri.ads<s-taspri-vxworks.ads \
479 s-tpopsp.adb<s-tpopsp-vxworks.adb \
480 s-vxwork.ads<s-vxwork-m68k.ads \
481 g-socthi.ads<g-socthi-vxworks.ads \
482 g-socthi.adb<g-socthi-vxworks.adb \
483 g-stsifd.adb<g-stsifd-sockets.adb \
484 system.ads<system-vxworks-m68k.ads
485
486 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb
487
488 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
489 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
490
491 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
492
493 ifeq ($(strip $(filter-out yes,$(TRACE))),)
494 LIBGNAT_TARGET_PAIRS += \
495 s-traces.adb<s-traces-default.adb \
496 s-tratas.adb<s-tratas-default.adb \
497 s-trafor.adb<s-trafor-default.adb \
498 s-trafor.ads<s-trafor-default.ads \
499 s-tfsetr.adb<s-tfsetr-vxworks.adb
500 endif
501 endif
502
503 # PowerPC and e500v2 VxWorks
504 ifeq ($(strip $(filter-out powerpc% wrs vxworks,$(target_cpu) $(target_vendor) $(target_os))),)
505
506 ifeq ($(strip $(filter-out e500%, $(target_alias))),)
507 ARCH_STR=e500
508 else
509 ARCH_STR=ppc
510 endif
511
512 LIBGNAT_TARGET_PAIRS = \
513 a-intnam.ads<a-intnam-vxworks.ads \
514 a-numaux.ads<a-numaux-vxworks.ads \
515 s-inmaop.adb<s-inmaop-vxworks.adb \
516 s-intman.ads<s-intman-vxworks.ads \
517 s-intman.adb<s-intman-vxworks.adb \
518 s-osinte.ads<s-osinte-vxworks.ads \
519 s-osinte.adb<s-osinte-vxworks.adb \
520 s-osprim.adb<s-osprim-vxworks.adb \
521 s-parame.ads<s-parame-vxworks.ads \
522 s-parame.adb<s-parame-vxworks.adb \
523 s-taprop.adb<s-taprop-vxworks.adb \
524 s-tasinf.ads<s-tasinf-vxworks.ads \
525 s-taspri.ads<s-taspri-vxworks.ads \
526 s-vxwork.ads<s-vxwork-ppc.ads \
527 g-socthi.ads<g-socthi-vxworks.ads \
528 g-socthi.adb<g-socthi-vxworks.adb \
529 g-stsifd.adb<g-stsifd-sockets.adb \
530 $(ATOMICS_TARGET_PAIRS) \
531 $(ATOMICS_BUILTINS_TARGET_PAIRS)
532
533 # VxWorks 5 and 6 both use the same target triplet making them
534 # indistinguishable in the context of this make file. Package
535 # System.Stack_Checking.Operations is not needed on VxWorks 6 as it leads to
536 # an undefined symbol when building a dynamic shared library. To alleviate
537 # this problem and distinguish this case, we use the THREAD_KIND and include
538 # the package only in kernel mode.
539
540 ifeq ($(strip $(filter-out default,$(THREAD_KIND))),)
541 LIBGNAT_TARGET_PAIRS += \
542 s-stchop.ads<s-stchop-limit.ads \
543 s-stchop.adb<s-stchop-vxworks.adb
544 endif
545
546 TOOLS_TARGET_PAIRS=\
547 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
548 indepsw.adb<indepsw-gnu.adb
549
550 ifeq ($(strip $(filter-out yes,$(TRACE))),)
551 LIBGNAT_TARGET_PAIRS += \
552 s-traces.adb<s-traces-default.adb \
553 s-trafor.adb<s-trafor-default.adb \
554 s-trafor.ads<s-trafor-default.ads \
555 s-tratas.adb<s-tratas-default.adb \
556 s-tfsetr.adb<s-tfsetr-vxworks.adb
557 endif
558
559 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
560 LIBGNAT_TARGET_PAIRS += \
561 s-vxwext.ads<s-vxwext-rtp.ads \
562 s-vxwext.adb<s-vxwext-rtp.adb \
563 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
564 system.ads<system-vxworks-$(ARCH_STR)-rtp.ads
565 else
566 ifeq ($(strip $(filter-out rtp-smp,$(THREAD_KIND))),)
567 LIBGNAT_TARGET_PAIRS += \
568 s-mudido.adb<s-mudido-affinity.adb \
569 s-vxwext.ads<s-vxwext-rtp.ads \
570 s-vxwext.adb<s-vxwext-rtp-smp.adb \
571 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
572 system.ads<system-vxworks-$(ARCH_STR)-rtp.ads
573
574 EXTRA_LIBGNAT_OBJS+=affinity.o
575 else
576 ifeq ($(strip $(filter-out kernel-smp,$(THREAD_KIND))),)
577 LIBGNAT_TARGET_PAIRS += \
578 s-interr.adb<s-interr-hwint.adb \
579 s-mudido.adb<s-mudido-affinity.adb \
580 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
581 s-vxwext.ads<s-vxwext-kernel.ads \
582 s-vxwext.adb<s-vxwext-kernel-smp.adb \
583 system.ads<system-vxworks-$(ARCH_STR)-kernel.ads
584
585 EH_MECHANISM=-gcc
586 EXTRA_LIBGNAT_OBJS+=affinity.o
587 else
588 LIBGNAT_TARGET_PAIRS += \
589 s-interr.adb<s-interr-hwint.adb \
590 s-tpopsp.adb<s-tpopsp-vxworks.adb
591
592 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
593 EH_MECHANISM=-gcc
594 LIBGNAT_TARGET_PAIRS += \
595 s-vxwext.ads<s-vxwext-kernel.ads \
596 s-vxwext.adb<s-vxwext-kernel.adb \
597 system.ads<system-vxworks-$(ARCH_STR)-kernel.ads
598 else
599 LIBGNAT_TARGET_PAIRS += \
600 system.ads<system-vxworks-ppc.ads
601 endif
602 endif
603 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
604 EXTRA_LIBGNAT_OBJS+=sigtramp-ppcvxw.o
605 endif
606 endif
607
608 EXTRA_GNATRTL_TASKING_OBJS += s-vxwork.o s-vxwext.o
609
610 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
611 endif
612
613 # PowerPC and e500v2 VxWorks 653
614 ifeq ($(strip $(filter-out powerpc% wrs vxworksae,$(target_cpu) $(target_vendor) $(target_os))),)
615 # target pairs for vthreads runtime
616 LIBGNAT_TARGET_PAIRS = \
617 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
618 a-intnam.ads<a-intnam-vxworks.ads \
619 a-numaux.ads<a-numaux-vxworks.ads \
620 g-io.adb<g-io-vxworks-ppc-cert.adb \
621 s-inmaop.adb<s-inmaop-vxworks.adb \
622 s-interr.adb<s-interr-hwint.adb \
623 s-intman.ads<s-intman-vxworks.ads \
624 s-intman.adb<s-intman-vxworks.adb \
625 s-osinte.adb<s-osinte-vxworks.adb \
626 s-osinte.ads<s-osinte-vxworks.ads \
627 s-osprim.adb<s-osprim-vxworks.adb \
628 s-parame.ads<s-parame-ae653.ads \
629 s-parame.adb<s-parame-vxworks.adb \
630 s-taprop.adb<s-taprop-vxworks.adb \
631 s-tasinf.ads<s-tasinf-vxworks.ads \
632 s-taspri.ads<s-taspri-vxworks.ads \
633 s-tpopsp.adb<s-tpopsp-vxworks.adb \
634 s-vxwext.adb<s-vxwext-noints.adb \
635 s-vxwext.ads<s-vxwext-vthreads.ads \
636 s-vxwork.ads<s-vxwork-ppc.ads \
637 $(ATOMICS_TARGET_PAIRS) \
638 $(ATOMICS_BUILTINS_TARGET_PAIRS)
639
640 ifeq ($(strip $(filter-out e500%, $(arch))),)
641 LIBGNAT_TARGET_PAIRS += system.ads<system-vxworks-e500-vthread.ads
642 else
643 LIBGNAT_TARGET_PAIRS += system.ads<system-vxworks-ppc-vthread.ads
644 endif
645
646 TOOLS_TARGET_PAIRS=\
647 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
648 indepsw.adb<indepsw-gnu.adb
649
650 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
651 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
652
653 EXTRA_LIBGNAT_OBJS+=sigtramp-ppcvxw.o
654
655 # Extra pairs for the vthreads runtime
656 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
657 LIBGNAT_TARGET_PAIRS += \
658 s-thread.adb<s-thread-ae653.adb \
659 $(DUMMY_SOCKETS_TARGET_PAIRS)
660
661 GNATRTL_SOCKETS_OBJS =
662 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o
663 else
664 LIBGNAT_TARGET_PAIRS += \
665 g-socthi.ads<g-socthi-vxworks.ads \
666 g-socthi.adb<g-socthi-vxworks.adb \
667 g-stsifd.adb<g-stsifd-sockets.adb
668 endif
669
670 ifeq ($(strip $(filter-out yes,$(TRACE))),)
671 LIBGNAT_TARGET_PAIRS += \
672 s-traces.adb<s-traces-default.adb \
673 s-trafor.adb<s-trafor-default.adb \
674 s-trafor.ads<s-trafor-default.ads \
675 s-tratas.adb<s-tratas-default.adb \
676 s-tfsetr.adb<s-tfsetr-vxworks.adb
677 endif
678 endif
679
680 # PowerPC and e500v2 VxWorks MILS
681 ifeq ($(strip $(filter-out powerpc% wrs vxworksmils,$(target_cpu) $(target_vendor) $(target_os))),)
682 # target pairs for vthreads runtime
683 LIBGNAT_TARGET_PAIRS = \
684 a-elchha.adb<a-elchha-vx6-raven-cert.adb \
685 a-intnam.ads<a-intnam-vxworks.ads \
686 a-numaux.ads<a-numaux-vxworks.ads \
687 g-io.adb<g-io-vxworks-ppc-cert.adb \
688 s-inmaop.adb<s-inmaop-vxworks.adb \
689 s-interr.adb<s-interr-hwint.adb \
690 s-intman.ads<s-intman-vxworks.ads \
691 s-intman.adb<s-intman-vxworks.adb \
692 s-osinte.adb<s-osinte-vxworks.adb \
693 s-osinte.ads<s-osinte-vxworks.ads \
694 s-osprim.adb<s-osprim-vxworks.adb \
695 s-parame.ads<s-parame-ae653.ads \
696 s-parame.adb<s-parame-vxworks.adb \
697 s-stchop.adb<s-stchop-vxworks.adb \
698 s-stchop.ads<s-stchop-limit.ads \
699 s-taprop.adb<s-taprop-vxworks.adb \
700 s-tasinf.ads<s-tasinf-vxworks.ads \
701 s-taspri.ads<s-taspri-vxworks.ads \
702 s-thread.adb<s-thread-ae653.adb \
703 s-tpopsp.adb<s-tpopsp-vxworks.adb \
704 s-vxwork.ads<s-vxwork-ppc.ads \
705 system.ads<system-vxworks-ppc-mils.ads \
706 $(ATOMICS_TARGET_PAIRS) \
707 $(ATOMICS_BUILTINS_TARGET_PAIRS) \
708 $(DUMMY_SOCKETS_TARGET_PAIRS)
709
710 TOOLS_TARGET_PAIRS=\
711 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
712 indepsw.adb<indepsw-gnu.adb
713
714 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-thread.o
715 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
716
717 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o sigtramp-ppcvxw.o
718 GNATRTL_SOCKETS_OBJS =
719
720 ifeq ($(strip $(filter-out yes,$(TRACE))),)
721 LIBGNAT_TARGET_PAIRS += \
722 s-traces.adb<s-traces-default.adb \
723 s-trafor.adb<s-trafor-default.adb \
724 s-trafor.ads<s-trafor-default.ads \
725 s-tratas.adb<s-tratas-default.adb \
726 s-tfsetr.adb<s-tfsetr-vxworks.adb
727 endif
728 endif
729
730 # VxWorksae / VxWorks 653 for x86 (vxsim) - ?? VxWorks mils not implemented
731 ifeq ($(strip $(filter-out %86 wrs vxworksae vxworksmils,$(target_cpu) $(target_vendor) $(target_os))),)
732 # target pairs for kernel + vthreads runtime
733 LIBGNAT_TARGET_PAIRS = \
734 a-elchha.adb<a-elchha-vxworks-ppc-full.adb \
735 a-intnam.ads<a-intnam-vxworks.ads \
736 a-numaux.ads<a-numaux-vxworks.ads \
737 g-io.adb<g-io-vxworks-ppc-cert.adb \
738 s-inmaop.adb<s-inmaop-vxworks.adb \
739 s-interr.adb<s-interr-hwint.adb \
740 s-intman.ads<s-intman-vxworks.ads \
741 s-intman.adb<s-intman-vxworks.adb \
742 s-osinte.adb<s-osinte-vxworks.adb \
743 s-osinte.ads<s-osinte-vxworks.ads \
744 s-osprim.adb<s-osprim-vxworks.adb \
745 s-parame.ads<s-parame-ae653.ads \
746 s-parame.adb<s-parame-vxworks.adb \
747 s-taprop.adb<s-taprop-vxworks.adb \
748 s-tasinf.ads<s-tasinf-vxworks.ads \
749 s-taspri.ads<s-taspri-vxworks.ads \
750 s-tpopsp.adb<s-tpopsp-vxworks.adb \
751 s-vxwext.adb<s-vxwext-noints.adb \
752 s-vxwext.ads<s-vxwext-vthreads.ads \
753 s-vxwork.ads<s-vxwork-x86.ads \
754 system.ads<system-vxworks-x86.ads \
755 $(ATOMICS_TARGET_PAIRS) \
756 $(ATOMICS_BUILTINS_TARGET_PAIRS)
757
758 TOOLS_TARGET_PAIRS=\
759 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
760 indepsw.adb<indepsw-gnu.adb
761
762 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-thread.o
763 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
764
765 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o # sigtramp-ppcvxw.o
766 GNATRTL_SOCKETS_OBJS =
767
768 # Extra pairs for the vthreads runtime
769 ifeq ($(strip $(filter-out vthreads,$(THREAD_KIND))),)
770 LIBGNAT_TARGET_PAIRS += \
771 s-thread.adb<s-thread-ae653.adb \
772 $(DUMMY_SOCKETS_TARGET_PAIRS)
773
774 GNATRTL_SOCKETS_OBJS =
775 EXTRA_GNATRTL_NONTASKING_OBJS += s-thread.o
776 else
777 LIBGNAT_TARGET_PAIRS += \
778 g-socthi.ads<g-socthi-vxworks.ads \
779 g-socthi.adb<g-socthi-vxworks.adb \
780 g-stsifd.adb<g-stsifd-sockets.adb
781 endif
782
783 ifeq ($(strip $(filter-out yes,$(TRACE))),)
784 LIBGNAT_TARGET_PAIRS += \
785 s-traces.adb<s-traces-default.adb \
786 s-trafor.adb<s-trafor-default.adb \
787 s-trafor.ads<s-trafor-default.ads \
788 s-tratas.adb<s-tratas-default.adb \
789 s-tfsetr.adb<s-tfsetr-vxworks.adb
790 endif
791 endif
792
793 # Sparc VxWorks
794 ifeq ($(strip $(filter-out sparc% wrs vx%,$(target_cpu) $(target_vendor) $(target_os))),)
795 LIBGNAT_TARGET_PAIRS = \
796 a-intnam.ads<a-intnam-vxworks.ads \
797 a-numaux.ads<a-numaux-vxworks.ads \
798 s-inmaop.adb<s-inmaop-vxworks.adb \
799 s-interr.adb<s-interr-hwint.adb \
800 s-intman.ads<s-intman-vxworks.ads \
801 s-intman.adb<s-intman-vxworks.adb \
802 s-osinte.adb<s-osinte-vxworks.adb \
803 s-osinte.ads<s-osinte-vxworks.ads \
804 s-osprim.adb<s-osprim-vxworks.adb \
805 s-parame.ads<s-parame-vxworks.ads \
806 s-parame.adb<s-parame-vxworks.adb \
807 s-stchop.ads<s-stchop-limit.ads \
808 s-stchop.adb<s-stchop-vxworks.adb \
809 s-taprop.adb<s-taprop-vxworks.adb \
810 s-tasinf.ads<s-tasinf-vxworks.ads \
811 s-taspri.ads<s-taspri-vxworks.ads \
812 s-tpopsp.adb<s-tpopsp-vxworks.adb \
813 g-socthi.ads<g-socthi-vxworks.ads \
814 g-socthi.adb<g-socthi-vxworks.adb \
815 g-stsifd.adb<g-stsifd-sockets.adb
816
817 TOOLS_TARGET_PAIRS=\
818 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
819 indepsw.adb<indepsw-gnu.adb
820
821 ifeq ($(strip $(filter-out sparc64 sparcv9, $(target_cpu))),)
822 # 64-bits
823 LIBGNAT_TARGET_PAIRS += \
824 s-vxwork.ads<s-vxwork-sparcv9.ads \
825 system.ads<system-vxworks-sparcv9.ads
826 else
827 # 32-bits
828 LIBGNAT_TARGET_PAIRS += \
829 s-vxwork.ads<s-vxwork-sparc.ads \
830 system.ads<system-vxworks-sparc-kernel.ads
831 endif
832
833 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
834 LIBGNAT_TARGET_PAIRS += \
835 s-vxwext.ads<s-vxwext-kernel.ads \
836 s-vxwext.adb<s-vxwext-kernel.adb
837 endif
838
839 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
840 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
841
842 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
843 endif
844
845 # x86 VxWorks
846 ifeq ($(strip $(filter-out %86 wrs vxworks,$(target_cpu) $(target_vendor) $(target_os))),)
847 LIBGNAT_TARGET_PAIRS = \
848 a-intnam.ads<a-intnam-vxworks.ads \
849 i-vxwork.ads<i-vxwork-x86.ads \
850 s-osinte.adb<s-osinte-vxworks.adb \
851 s-osinte.ads<s-osinte-vxworks.ads \
852 s-inmaop.adb<s-inmaop-vxworks.adb \
853 s-intman.ads<s-intman-vxworks.ads \
854 s-intman.adb<s-intman-vxworks.adb \
855 s-osprim.adb<s-osprim-vxworks.adb \
856 s-parame.ads<s-parame-vxworks.ads \
857 s-parame.adb<s-parame-vxworks.adb \
858 s-stchop.ads<s-stchop-limit.ads \
859 s-stchop.adb<s-stchop-vxworks.adb \
860 s-taprop.adb<s-taprop-vxworks.adb \
861 s-tasinf.ads<s-tasinf-vxworks.ads \
862 s-taspri.ads<s-taspri-vxworks.ads \
863 s-vxwork.ads<s-vxwork-x86.ads \
864 g-socthi.ads<g-socthi-vxworks.ads \
865 g-socthi.adb<g-socthi-vxworks.adb \
866 g-stsifd.adb<g-stsifd-sockets.adb \
867 $(ATOMICS_TARGET_PAIRS) \
868 $(X86_TARGET_PAIRS)
869
870 TOOLS_TARGET_PAIRS=\
871 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
872 indepsw.adb<indepsw-gnu.adb
873
874 ifeq ($(strip $(filter-out yes,$(TRACE))),)
875 LIBGNAT_TARGET_PAIRS += \
876 s-traces.adb<s-traces-default.adb \
877 s-trafor.adb<s-trafor-default.adb \
878 s-trafor.ads<s-trafor-default.ads \
879 s-tratas.adb<s-tratas-default.adb \
880 s-tfsetr.adb<s-tfsetr-vxworks.adb
881 endif
882
883 ifeq ($(strip $(filter-out rtp,$(THREAD_KIND))),)
884 LIBGNAT_TARGET_PAIRS += \
885 s-vxwext.ads<s-vxwext-rtp.ads \
886 s-vxwext.adb<s-vxwext-rtp.adb \
887 s-tpopsp.adb<s-tpopsp-vxworks-rtp.adb \
888 system.ads<system-vxworks-x86-rtp.ads
889
890 else
891 ifeq ($(strip $(filter-out rtp-smp, $(THREAD_KIND))),)
892 LIBGNAT_TARGET_PAIRS += \
893 s-mudido.adb<s-mudido-affinity.adb \
894 s-vxwext.ads<s-vxwext-rtp.ads \
895 s-vxwext.adb<s-vxwext-rtp-smp.adb \
896 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
897 system.ads<system-vxworks-x86-rtp.ads
898
899 EXTRA_LIBGNAT_OBJS+=affinity.o
900 else
901 ifeq ($(strip $(filter-out kernel-smp, $(THREAD_KIND))),)
902 LIBGNAT_TARGET_PAIRS += \
903 s-interr.adb<s-interr-hwint.adb \
904 s-mudido.adb<s-mudido-affinity.adb \
905 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
906 s-vxwext.ads<s-vxwext-kernel.ads \
907 s-vxwext.adb<s-vxwext-kernel-smp.adb \
908 system.ads<system-vxworks-x86-kernel.ads
909 EXTRA_LIBGNAT_OBJS+=affinity.o
910 else
911 LIBGNAT_TARGET_PAIRS += \
912 s-interr.adb<s-interr-hwint.adb \
913 s-tpopsp.adb<s-tpopsp-vxworks.adb
914
915 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
916 LIBGNAT_TARGET_PAIRS += \
917 s-vxwext.ads<s-vxwext-kernel.ads \
918 s-vxwext.adb<s-vxwext-kernel.adb \
919 system.ads<system-vxworks-x86-kernel.ads
920 else
921 LIBGNAT_TARGET_PAIRS += \
922 system.ads<system-vxworks-x86.ads
923 endif
924 endif
925
926 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
927 endif
928 endif
929 EXTRA_GNATRTL_TASKING_OBJS += s-vxwork.o s-vxwext.o
930
931 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
932 endif
933
934 # ARM VxWorks
935 ifeq ($(strip $(filter-out arm% coff wrs vx%,$(target_cpu) $(target_vendor) $(target_os))),)
936 LIBGNAT_TARGET_PAIRS = \
937 a-intnam.ads<a-intnam-vxworks.ads \
938 a-numaux.ads<a-numaux-vxworks.ads \
939 s-inmaop.adb<s-inmaop-vxworks.adb \
940 s-interr.adb<s-interr-hwint.adb \
941 s-intman.ads<s-intman-vxworks.ads \
942 s-intman.adb<s-intman-vxworks.adb \
943 s-osinte.adb<s-osinte-vxworks.adb \
944 s-osinte.ads<s-osinte-vxworks.ads \
945 s-osprim.adb<s-osprim-vxworks.adb \
946 s-parame.ads<s-parame-vxworks.ads \
947 s-parame.adb<s-parame-vxworks.adb \
948 s-stchop.ads<s-stchop-limit.ads \
949 s-stchop.adb<s-stchop-vxworks.adb \
950 s-taprop.adb<s-taprop-vxworks.adb \
951 s-tasinf.ads<s-tasinf-vxworks.ads \
952 s-taspri.ads<s-taspri-vxworks.ads \
953 s-vxwork.ads<s-vxwork-arm.ads \
954 g-socthi.ads<g-socthi-vxworks.ads \
955 g-socthi.adb<g-socthi-vxworks.adb \
956 g-stsifd.adb<g-stsifd-sockets.adb
957
958 TOOLS_TARGET_PAIRS=\
959 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
960 indepsw.adb<indepsw-gnu.adb
961
962 ifeq ($(strip $(filter-out rtp-smp,$(THREAD_KIND))),)
963 LIBGNAT_TARGET_PAIRS += \
964 s-mudido.adb<s-mudido-affinity.adb \
965 s-vxwext.ads<s-vxwext-rtp.ads \
966 s-vxwext.adb<s-vxwext-rtp-smp.adb \
967 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
968 system.ads<system-vxworks-arm-rtp.ads
969
970 EXTRA_LIBGNAT_OBJS+=affinity.o
971 else
972 ifeq ($(strip $(filter-out kernel-smp,$(THREAD_KIND))),)
973 LIBGNAT_TARGET_PAIRS += \
974 s-mudido.adb<s-mudido-affinity.adb \
975 s-tpopsp.adb<s-tpopsp-vxworks-tls.adb \
976 s-vxwext.ads<s-vxwext-kernel.ads \
977 s-vxwext.adb<s-vxwext-kernel-smp.adb \
978 system.ads<system-vxworks-arm.ads
979
980 EXTRA_LIBGNAT_OBJS+=affinity.o
981 else
982 LIBGNAT_TARGET_PAIRS += \
983 s-tpopsp.adb<s-tpopsp-vxworks.adb \
984 system.ads<system-vxworks-arm.ads
985
986 ifeq ($(strip $(filter-out kernel,$(THREAD_KIND))),)
987 LIBGNAT_TARGET_PAIRS += \
988 s-vxwext.ads<s-vxwext-kernel.ads \
989 s-vxwext.adb<s-vxwext-kernel.adb
990 endif
991 endif
992 endif
993
994 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
995 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
996
997 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
998 endif
999
1000 # MIPS VxWorks
1001 ifeq ($(strip $(filter-out mips% wrs vx%,$(target_cpu) $(target_vendor) $(target_os))),)
1002 LIBGNAT_TARGET_PAIRS = \
1003 a-intnam.ads<a-intnam-vxworks.ads \
1004 a-numaux.ads<a-numaux-vxworks.ads \
1005 s-inmaop.adb<s-inmaop-vxworks.adb \
1006 s-interr.adb<s-interr-hwint.adb \
1007 s-intman.ads<s-intman-vxworks.ads \
1008 s-intman.adb<s-intman-vxworks.adb \
1009 s-osinte.adb<s-osinte-vxworks.adb \
1010 s-osinte.ads<s-osinte-vxworks.ads \
1011 s-osprim.adb<s-osprim-vxworks.adb \
1012 s-parame.ads<s-parame-vxworks.ads \
1013 s-parame.adb<s-parame-vxworks.adb \
1014 s-stchop.ads<s-stchop-limit.ads \
1015 s-stchop.adb<s-stchop-vxworks.adb \
1016 s-taprop.adb<s-taprop-vxworks.adb \
1017 s-tasinf.ads<s-tasinf-vxworks.ads \
1018 s-taspri.ads<s-taspri-vxworks.ads \
1019 s-tpopsp.adb<s-tpopsp-vxworks.adb \
1020 s-vxwork.ads<s-vxwork-mips.ads \
1021 g-socthi.ads<g-socthi-vxworks.ads \
1022 g-socthi.adb<g-socthi-vxworks.adb \
1023 g-stsifd.adb<g-stsifd-sockets.adb \
1024 system.ads<system-vxworks-mips.ads
1025
1026 TOOLS_TARGET_PAIRS=\
1027 mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb \
1028 indepsw.adb<indepsw-gnu.adb
1029
1030 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
1031 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o s-vxwext.o
1032
1033 EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
1034 endif
1035
1036 # ARM android
1037 ifeq ($(strip $(filter-out arm% linux-androideabi,$(target_cpu) $(target_os))),)
1038 LIBGNAT_TARGET_PAIRS = \
1039 a-intnam.ads<a-intnam-linux.ads \
1040 s-inmaop.adb<s-inmaop-posix.adb \
1041 s-intman.adb<s-intman-posix.adb \
1042 s-linux.ads<s-linux.ads \
1043 s-osinte.adb<s-osinte-android.adb \
1044 s-osinte.ads<s-osinte-android.ads \
1045 s-osprim.adb<s-osprim-posix.adb \
1046 s-taprop.adb<s-taprop-posix.adb \
1047 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1048 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1049 system.ads<system-linux-armel.ads \
1050 $(DUMMY_SOCKETS_TARGET_PAIRS)
1051
1052 TOOLS_TARGET_PAIRS = \
1053 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1054 indepsw.adb<indepsw-gnu.adb
1055
1056 GNATRTL_SOCKETS_OBJS =
1057 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1058 EH_MECHANISM=
1059 THREADSLIB =
1060 GNATLIB_SHARED = gnatlib-shared-dual
1061 LIBRARY_VERSION := $(LIB_VERSION)
1062 endif
1063
1064 # Sparc Solaris
1065 ifeq ($(strip $(filter-out sparc% sun solaris%,$(target_cpu) $(target_vendor) $(target_os))),)
1066 LIBGNAT_TARGET_PAIRS_COMMON = \
1067 a-intnam.ads<a-intnam-solaris.ads \
1068 s-inmaop.adb<s-inmaop-posix.adb \
1069 s-intman.adb<s-intman-solaris.adb \
1070 s-mudido.adb<s-mudido-affinity.adb \
1071 s-osinte.adb<s-osinte-solaris.adb \
1072 s-osinte.ads<s-osinte-solaris.ads \
1073 s-osprim.adb<s-osprim-solaris.adb \
1074 s-taprop.adb<s-taprop-solaris.adb \
1075 s-tasinf.adb<s-tasinf-solaris.adb \
1076 s-tasinf.ads<s-tasinf-solaris.ads \
1077 s-taspri.ads<s-taspri-solaris.ads \
1078 s-tpopsp.adb<s-tpopsp-solaris.adb \
1079 g-soliop.ads<g-soliop-solaris.ads
1080
1081 LIBGNAT_TARGET_PAIRS_32 = \
1082 system.ads<system-solaris-sparc.ads
1083
1084 LIBGNAT_TARGET_PAIRS_64 = \
1085 system.ads<system-solaris-sparcv9.ads \
1086 $(ATOMICS_TARGET_PAIRS) \
1087 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1088
1089 ifeq ($(strip $(filter-out sparc sun solaris%,$(target_cpu) $(target_vendor) $(target_os))),)
1090 ifeq ($(strip $(MULTISUBDIR)),/sparcv9)
1091 LIBGNAT_TARGET_PAIRS = \
1092 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1093 else
1094 LIBGNAT_TARGET_PAIRS = \
1095 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1096 endif
1097 else
1098 ifeq ($(strip $(MULTISUBDIR)),/sparcv8plus)
1099 LIBGNAT_TARGET_PAIRS = \
1100 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1101 else
1102 LIBGNAT_TARGET_PAIRS = \
1103 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1104 endif
1105 endif
1106
1107 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
1108
1109 EH_MECHANISM=-gcc
1110 THREADSLIB = -lposix4 -lthread
1111 MISCLIB = -lposix4 -lnsl -lsocket
1112 SO_OPTS = -Wl,-h,
1113 GNATLIB_SHARED = gnatlib-shared-dual
1114 GMEM_LIB = gmemlib
1115 LIBRARY_VERSION := $(LIB_VERSION)
1116
1117 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
1118 LIBGNAT_TARGET_PAIRS = \
1119 a-intnam.ads<a-intnam-solaris.ads \
1120 s-inmaop.adb<s-inmaop-posix.adb \
1121 s-intman.adb<s-intman-posix.adb \
1122 s-osinte.adb<s-osinte-posix.adb \
1123 s-osinte.ads<s-osinte-solaris-posix.ads \
1124 s-osprim.adb<s-osprim-solaris.adb \
1125 s-taprop.adb<s-taprop-posix.adb \
1126 s-taspri.ads<s-taspri-posix.ads \
1127 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1128 g-soliop.ads<g-soliop-solaris.ads \
1129 system.ads<system-solaris-sparc.ads
1130
1131 THREADSLIB = -lposix4 -lpthread
1132 endif
1133
1134 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
1135 LIBGNAT_TARGET_PAIRS = $(LIBGNAT_TARGET_PAIRS_64)
1136 endif
1137 endif
1138
1139 # x86 and x86-64 solaris
1140 ifeq ($(strip $(filter-out %86 %x86_64 solaris2%,$(target_cpu) $(target_os))),)
1141 LIBGNAT_TARGET_PAIRS_COMMON = \
1142 a-intnam.ads<a-intnam-solaris.ads \
1143 s-inmaop.adb<s-inmaop-posix.adb \
1144 s-intman.adb<s-intman-solaris.adb \
1145 s-mudido.adb<s-mudido-affinity.adb \
1146 s-osinte.adb<s-osinte-solaris.adb \
1147 s-osinte.ads<s-osinte-solaris.ads \
1148 s-osprim.adb<s-osprim-solaris.adb \
1149 s-taprop.adb<s-taprop-solaris.adb \
1150 s-tasinf.adb<s-tasinf-solaris.adb \
1151 s-tasinf.ads<s-tasinf-solaris.ads \
1152 s-taspri.ads<s-taspri-solaris.ads \
1153 s-tpopsp.adb<s-tpopsp-solaris.adb \
1154 g-soliop.ads<g-soliop-solaris.ads \
1155 $(ATOMICS_TARGET_PAIRS)
1156
1157 LIBGNAT_TARGET_PAIRS_32 = \
1158 $(X86_TARGET_PAIRS) \
1159 system.ads<system-solaris-x86.ads
1160
1161 LIBGNAT_TARGET_PAIRS_64 = \
1162 $(X86_64_TARGET_PAIRS) \
1163 system.ads<system-solaris-x86_64.ads
1164
1165 ifeq ($(strip $(filter-out %86 solaris2%,$(target_cpu) $(target_os))),)
1166 ifeq ($(strip $(MULTISUBDIR)),/amd64)
1167 LIBGNAT_TARGET_PAIRS = \
1168 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1169 else
1170 LIBGNAT_TARGET_PAIRS = \
1171 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1172 endif
1173 else
1174 ifeq ($(strip $(MULTISUBDIR)),/32)
1175 LIBGNAT_TARGET_PAIRS = \
1176 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1177 else
1178 LIBGNAT_TARGET_PAIRS = \
1179 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1180 endif
1181 endif
1182
1183 TOOLS_TARGET_PAIRS=mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb
1184
1185 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
1186
1187 EH_MECHANISM=-gcc
1188 THREADSLIB = -lposix4 -lthread
1189 MISCLIB = -lposix4 -lnsl -lsocket
1190 SO_OPTS = -Wl,-h,
1191 GNATLIB_SHARED = gnatlib-shared-dual
1192 GMEM_LIB = gmemlib
1193 LIBRARY_VERSION := $(LIB_VERSION)
1194 endif
1195
1196 # x86 Linux
1197 ifeq ($(strip $(filter-out %86 linux%,$(target_cpu) $(target_os))),)
1198 LIBGNAT_TARGET_PAIRS = \
1199 a-intnam.ads<a-intnam-linux.ads \
1200 a-synbar.adb<a-synbar-posix.adb \
1201 a-synbar.ads<a-synbar-posix.ads \
1202 s-inmaop.adb<s-inmaop-posix.adb \
1203 s-intman.adb<s-intman-posix.adb \
1204 s-tpopsp.adb<s-tpopsp-tls.adb \
1205 g-sercom.adb<g-sercom-linux.adb \
1206 a-exetim.adb<a-exetim-posix.adb \
1207 a-exetim.ads<a-exetim-default.ads \
1208 s-linux.ads<s-linux.ads \
1209 s-osinte.adb<s-osinte-posix.adb \
1210 $(ATOMICS_TARGET_PAIRS)
1211
1212 LIBGNAT_TARGET_PAIRS_32 = \
1213 $(X86_TARGET_PAIRS) \
1214 system.ads<system-linux-x86.ads
1215
1216 LIBGNAT_TARGET_PAIRS_64 = \
1217 $(X86_64_TARGET_PAIRS) \
1218 system.ads<system-linux-x86_64.ads
1219
1220 ifeq ($(strip $(MULTISUBDIR)),/64)
1221 LIBGNAT_TARGET_PAIRS += $(LIBGNAT_TARGET_PAIRS_64)
1222 else
1223 LIBGNAT_TARGET_PAIRS += $(LIBGNAT_TARGET_PAIRS_32)
1224 endif
1225
1226 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
1227 LIBGNAT_TARGET_PAIRS += \
1228 s-osinte.ads<s-osinte-linux-xenomai.ads \
1229 s-osprim.adb<s-osprim-linux-xenomai.adb \
1230 s-taprop.adb<s-taprop-linux-xenomai.adb \
1231 s-taspri.ads<s-taspri-linux-xenomai.ads
1232 else
1233 LIBGNAT_TARGET_PAIRS += \
1234 s-mudido.adb<s-mudido-affinity.adb \
1235 s-osinte.ads<s-osinte-linux.ads \
1236 s-osprim.adb<s-osprim-posix.adb \
1237 s-taprop.adb<s-taprop-linux.adb \
1238 s-tasinf.ads<s-tasinf-linux.ads \
1239 s-tasinf.adb<s-tasinf-linux.adb \
1240 s-taspri.ads<s-taspri-posix.ads
1241 endif
1242
1243 EH_MECHANISM=-gcc
1244 THREADSLIB = -lpthread -lrt
1245 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
1246 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
1247
1248 TOOLS_TARGET_PAIRS = \
1249 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1250 indepsw.adb<indepsw-gnu.adb
1251
1252 GNATLIB_SHARED = gnatlib-shared-dual
1253 MISCLIB = -ldl
1254 GMEM_LIB = gmemlib
1255 LIBRARY_VERSION := $(LIB_VERSION)
1256 endif
1257
1258 # x86 kfreebsd
1259 ifeq ($(strip $(filter-out %86 kfreebsd%,$(target_cpu) $(target_os))),)
1260 LIBGNAT_TARGET_PAIRS = \
1261 a-intnam.ads<a-intnam-freebsd.ads \
1262 s-inmaop.adb<s-inmaop-posix.adb \
1263 s-intman.adb<s-intman-posix.adb \
1264 s-osinte.adb<s-osinte-posix.adb \
1265 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
1266 s-osprim.adb<s-osprim-posix.adb \
1267 s-taprop.adb<s-taprop-linux.adb \
1268 s-tasinf.ads<s-tasinf-linux.ads \
1269 s-tasinf.adb<s-tasinf-linux.adb \
1270 s-taspri.ads<s-taspri-posix.ads \
1271 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1272 $(ATOMICS_TARGET_PAIRS) \
1273 $(X86_TARGET_PAIRS) \
1274 system.ads<system-freebsd-x86.ads
1275
1276 TOOLS_TARGET_PAIRS = \
1277 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1278 indepsw.adb<indepsw-gnu.adb
1279
1280 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
1281
1282 EH_MECHANISM=-gcc
1283 THREADSLIB = -lpthread
1284 GNATLIB_SHARED = gnatlib-shared-dual
1285 GMEM_LIB = gmemlib
1286 LIBRARY_VERSION := $(LIB_VERSION)
1287 MISCLIB = -lutil
1288 endif
1289
1290 ifeq ($(strip $(filter-out x86_64 kfreebsd%,$(target_cpu) $(target_os))),)
1291 LIBGNAT_TARGET_PAIRS = \
1292 a-intnam.ads<a-intnam-freebsd.ads \
1293 a-numaux.adb<a-numaux-x86.adb \
1294 a-numaux.ads<a-numaux-x86.ads \
1295 s-inmaop.adb<s-inmaop-posix.adb \
1296 s-intman.adb<s-intman-posix.adb \
1297 s-osinte.adb<s-osinte-posix.adb \
1298 s-osinte.ads<s-osinte-kfreebsd-gnu.ads \
1299 s-osprim.adb<s-osprim-posix.adb \
1300 s-taprop.adb<s-taprop-linux.adb \
1301 s-tasinf.ads<s-tasinf-linux.ads \
1302 s-tasinf.adb<s-tasinf-linux.adb \
1303 s-taspri.ads<s-taspri-posix.ads \
1304 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1305 system.ads<system-freebsd-x86_64.ads
1306
1307 TOOLS_TARGET_PAIRS = \
1308 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1309 indepsw.adb<indepsw-gnu.adb
1310
1311 EH_MECHANISM=-gcc
1312 THREADSLIB = -lpthread
1313 GNATLIB_SHARED = gnatlib-shared-dual
1314 GMEM_LIB = gmemlib
1315 LIBRARY_VERSION := $(LIB_VERSION)
1316 endif
1317
1318 # x86 FreeBSD
1319 ifeq ($(strip $(filter-out %86 freebsd%,$(target_cpu) $(target_os))),)
1320 LIBGNAT_TARGET_PAIRS = \
1321 a-intnam.ads<a-intnam-freebsd.ads \
1322 s-inmaop.adb<s-inmaop-posix.adb \
1323 s-intman.adb<s-intman-posix.adb \
1324 s-osinte.adb<s-osinte-freebsd.adb \
1325 s-osinte.ads<s-osinte-freebsd.ads \
1326 s-osprim.adb<s-osprim-posix.adb \
1327 s-taprop.adb<s-taprop-posix.adb \
1328 s-taspri.ads<s-taspri-posix.ads \
1329 s-tpopsp.adb<s-tpopsp-posix.adb \
1330 $(ATOMICS_TARGET_PAIRS) \
1331 $(X86_TARGET_PAIRS) \
1332 system.ads<system-freebsd-x86.ads
1333
1334 TOOLS_TARGET_PAIRS = \
1335 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
1336 GNATLIB_SHARED = gnatlib-shared-dual
1337
1338 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
1339
1340 EH_MECHANISM=-gcc
1341 THREADSLIB= -lpthread
1342 GMEM_LIB = gmemlib
1343 LIBRARY_VERSION := $(LIB_VERSION)
1344 MISCLIB = -lutil
1345 endif
1346
1347 # x86-64 FreeBSD
1348 ifeq ($(strip $(filter-out %86_64 freebsd%,$(target_cpu) $(target_os))),)
1349 LIBGNAT_TARGET_PAIRS = \
1350 a-intnam.ads<a-intnam-freebsd.ads \
1351 s-inmaop.adb<s-inmaop-posix.adb \
1352 s-intman.adb<s-intman-posix.adb \
1353 s-osinte.adb<s-osinte-freebsd.adb \
1354 s-osinte.ads<s-osinte-freebsd.ads \
1355 s-osprim.adb<s-osprim-posix.adb \
1356 s-taprop.adb<s-taprop-posix.adb \
1357 s-taspri.ads<s-taspri-posix.ads \
1358 s-tpopsp.adb<s-tpopsp-posix.adb \
1359 $(ATOMICS_TARGET_PAIRS) \
1360 $(X86_64_TARGET_PAIRS) \
1361 system.ads<system-freebsd-x86_64.ads
1362
1363 TOOLS_TARGET_PAIRS = \
1364 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb
1365 GNATLIB_SHARED = gnatlib-shared-dual
1366
1367 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
1368
1369 EH_MECHANISM=-gcc
1370 THREADSLIB= -lpthread
1371 GMEM_LIB = gmemlib
1372 LIBRARY_VERSION := $(LIB_VERSION)
1373 MISCLIB = -lutil
1374 endif
1375
1376 # S390 Linux
1377 ifeq ($(strip $(filter-out s390% linux%,$(target_cpu) $(target_os))),)
1378 LIBGNAT_TARGET_PAIRS_COMMON = \
1379 a-intnam.ads<a-intnam-linux.ads \
1380 s-inmaop.adb<s-inmaop-posix.adb \
1381 s-intman.adb<s-intman-posix.adb \
1382 s-linux.ads<s-linux.ads \
1383 s-osinte.adb<s-osinte-posix.adb \
1384 s-osinte.ads<s-osinte-linux.ads \
1385 s-osprim.adb<s-osprim-posix.adb \
1386 s-taprop.adb<s-taprop-linux.adb \
1387 s-tasinf.ads<s-tasinf-linux.ads \
1388 s-tasinf.adb<s-tasinf-linux.adb \
1389 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1390 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
1391
1392 LIBGNAT_TARGET_PAIRS_32 = \
1393 system.ads<system-linux-s390.ads
1394
1395 LIBGNAT_TARGET_PAIRS_64 = \
1396 system.ads<system-linux-s390x.ads
1397
1398 ifeq ($(strip $(filter-out s390x,$(target_cpu))),)
1399 ifeq ($(strip $(MULTISUBDIR)),/32)
1400 LIBGNAT_TARGET_PAIRS = \
1401 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1402 else
1403 LIBGNAT_TARGET_PAIRS = \
1404 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1405 endif
1406 else
1407 LIBGNAT_TARGET_PAIRS = \
1408 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1409 endif
1410
1411 TOOLS_TARGET_PAIRS = \
1412 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1413 indepsw.adb<indepsw-gnu.adb
1414
1415 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1416 EH_MECHANISM=-gcc
1417 THREADSLIB = -lpthread
1418 GNATLIB_SHARED = gnatlib-shared-dual
1419 LIBRARY_VERSION := $(LIB_VERSION)
1420 endif
1421
1422 # HP/PA HP-UX 10
1423 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(target_cpu) $(target_vendor) $(target_os))),)
1424 LIBGNAT_TARGET_PAIRS = \
1425 a-excpol.adb<a-excpol-abort.adb \
1426 a-intnam.ads<a-intnam-hpux.ads \
1427 s-inmaop.adb<s-inmaop-posix.adb \
1428 s-interr.adb<s-interr-sigaction.adb \
1429 s-intman.adb<s-intman-posix.adb \
1430 s-osinte.adb<s-osinte-hpux-dce.adb \
1431 s-osinte.ads<s-osinte-hpux-dce.ads \
1432 s-parame.ads<s-parame-hpux.ads \
1433 s-osprim.adb<s-osprim-posix.adb \
1434 s-taprop.adb<s-taprop-hpux-dce.adb \
1435 s-taspri.ads<s-taspri-hpux-dce.ads \
1436 s-tpopsp.adb<s-tpopsp-posix.adb \
1437 system.ads<system-hpux.ads
1438
1439 EH_MECHANISM=-gcc
1440 endif
1441
1442 # HP/PA HP-UX 11
1443 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(target_cpu) $(target_vendor) $(target_os))),)
1444 LIBGNAT_TARGET_PAIRS = \
1445 a-intnam.ads<a-intnam-hpux.ads \
1446 s-inmaop.adb<s-inmaop-posix.adb \
1447 s-intman.adb<s-intman-posix.adb \
1448 s-osinte.adb<s-osinte-posix.adb \
1449 s-osinte.ads<s-osinte-hpux.ads \
1450 s-parame.ads<s-parame-hpux.ads \
1451 s-osprim.adb<s-osprim-posix.adb \
1452 s-traceb.adb<s-traceb-hpux.adb \
1453 s-taprop.adb<s-taprop-posix.adb \
1454 s-taspri.ads<s-taspri-posix.ads \
1455 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1456 system.ads<system-hpux.ads
1457
1458 TOOLS_TARGET_PAIRS = mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb
1459 EH_MECHANISM=-gcc
1460 TGT_LIB = /usr/lib/libcl.a
1461 THREADSLIB = -lpthread
1462 GMEM_LIB = gmemlib
1463 soext = .sl
1464 SO_OPTS = -Wl,+h,
1465 GNATLIB_SHARED = gnatlib-shared-dual
1466 LIBRARY_VERSION := $(LIB_VERSION)
1467 endif
1468
1469 # IBM AIX
1470 ifeq ($(strip $(filter-out ibm aix%,$(target_vendor) $(target_os))),)
1471 LIBGNAT_TARGET_PAIRS_COMMON = \
1472 a-intnam.ads<a-intnam-aix.ads \
1473 s-inmaop.adb<s-inmaop-posix.adb \
1474 s-intman.adb<s-intman-posix.adb \
1475 s-osinte.adb<s-osinte-aix.adb \
1476 s-osinte.ads<s-osinte-aix.ads \
1477 s-osprim.adb<s-osprim-posix.adb \
1478 s-taprop.adb<s-taprop-posix.adb \
1479 s-taspri.ads<s-taspri-posix.ads \
1480 s-tpopsp.adb<s-tpopsp-posix.adb \
1481 $(ATOMICS_TARGET_PAIRS) \
1482 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1483
1484 LIBGNAT_TARGET_PAIRS_32 = \
1485 system.ads<system-aix.ads
1486
1487 LIBGNAT_TARGET_PAIRS_64 = \
1488 system.ads<system-aix64.ads
1489
1490 ifeq ($(findstring ppc64, \
1491 $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) \
1492 -print-multi-os-directory)), \
1493 ppc64)
1494 LIBGNAT_TARGET_PAIRS = \
1495 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1496 TOOLS_TARGET_PAIRS = \
1497 indepsw.adb<indepsw-aix.adb
1498 else
1499 LIBGNAT_TARGET_PAIRS = \
1500 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1501 TOOLS_TARGET_PAIRS = \
1502 indepsw.adb<indepsw-gnu.adb
1503 endif
1504
1505 THREADSLIB = -lpthreads
1506 EH_MECHANISM=-gcc
1507 TOOLS_TARGET_PAIRS += \
1508 mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb
1509
1510 GMEM_LIB = gmemlib
1511 endif
1512
1513 # RTEMS
1514 ifeq ($(strip $(filter-out rtems%,$(target_os))),)
1515 LIBGNAT_TARGET_PAIRS = \
1516 system.ads<system-rtems.ads \
1517 a-intnam.ads<a-intnam-rtems.ads \
1518 s-inmaop.adb<s-inmaop-posix.adb \
1519 s-intman.adb<s-intman-posix.adb \
1520 s-osinte.adb<s-osinte-rtems.adb \
1521 s-osinte.ads<s-osinte-rtems.ads \
1522 s-osprim.adb<s-osprim-posix.adb \
1523 s-parame.adb<s-parame-rtems.adb \
1524 s-taprop.adb<s-taprop-posix.adb \
1525 s-taspri.ads<s-taspri-posix.ads \
1526 s-tpopsp.adb<s-tpopsp-rtems.adb \
1527 s-stchop.adb<s-stchop-rtems.adb \
1528 s-interr.adb<s-interr-hwint.adb
1529 endif
1530
1531 # OpenVMS (host)
1532 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(host_cpu) $(host_vendor) $(host_os))),)
1533
1534 soext = .exe
1535 hyphen = _
1536 LN = cp -p
1537 LN_S = cp -p
1538
1539 endif
1540
1541 # OpenVMS (target)
1542 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(target_cpu) $(target_vendor) $(target_os))),)
1543 LIBGNAT_TARGET_PAIRS = \
1544 a-caldel.adb<a-caldel-vms.adb \
1545 a-calend.adb<a-calend-vms.adb \
1546 a-calend.ads<a-calend-vms.ads \
1547 a-dirval.adb<a-dirval-vms.adb \
1548 a-excpol.adb<a-excpol-abort.adb \
1549 a-intnam.ads<a-intnam-vms.ads \
1550 a-numaux.ads<a-numaux-vms.ads \
1551 g-expect.adb<g-expect-vms.adb \
1552 g-socthi.ads<g-socthi-vms.ads \
1553 g-socthi.adb<g-socthi-vms.adb \
1554 g-stsifd.adb<g-stsifd-sockets.adb \
1555 i-cstrea.adb<i-cstrea-vms.adb \
1556 memtrack.adb<memtrack-vms_64.adb \
1557 s-auxdec.ads<s-auxdec-vms_64.ads \
1558 s-inmaop.adb<s-inmaop-vms.adb \
1559 s-interr.adb<s-interr-vms.adb \
1560 s-intman.adb<s-intman-vms.adb \
1561 s-intman.ads<s-intman-vms.ads \
1562 s-memory.adb<s-memory-vms_64.adb \
1563 s-memory.ads<s-memory-vms_64.ads \
1564 s-ransee.adb<s-ransee-vms.adb \
1565 s-osprim.adb<s-osprim-vms.adb \
1566 s-osprim.ads<s-osprim-vms.ads \
1567 s-osinte.adb<s-osinte-vms.adb \
1568 s-osinte.ads<s-osinte-vms.ads \
1569 s-taprop.adb<s-taprop-vms.adb \
1570 s-tasdeb.adb<s-tasdeb-vms.adb \
1571 s-taspri.ads<s-taspri-vms.ads \
1572 s-tpopsp.adb<s-tpopsp-vms.adb \
1573 s-tpopde.adb<s-tpopde-vms.adb \
1574 s-tpopde.ads<s-tpopde-vms.ads
1575
1576 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(target_cpu) $(target_vendor) $(target_os))),)
1577 LIBGNAT_TARGET_PAIRS += \
1578 g-enblsp.adb<g-enblsp-vms-ia64.adb \
1579 g-trasym.adb<g-trasym-vms-ia64.adb \
1580 s-asthan.adb<s-asthan-vms-ia64.adb \
1581 s-auxdec.adb<s-auxdec-vms-ia64.adb \
1582 s-vaflop.adb<s-vaflop-vms-ia64.adb \
1583 system.ads<system-vms-ia64.ads \
1584 s-parame.ads<s-parame-vms-ia64.ads \
1585 $(ATOMICS_TARGET_PAIRS) \
1586 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1587
1588 EXTRA_LIBGNAT_SRCS+=tb-ivms.c
1589 override GNATRTL_ALTIVEC_OBJS=
1590
1591 TOOLS_TARGET_PAIRS= \
1592 mlib-tgt-specific.adb<mlib-tgt-specific-vms-ia64.adb \
1593 symbols.adb<symbols-vms.adb \
1594 symbols-processing.adb<symbols-processing-vms-ia64.adb
1595 else
1596 ifeq ($(strip $(filter-out alpha64 dec vms% openvms% alphavms%,$(target_cpu) $(target_vendor) $(target_os))),)
1597 LIBGNAT_TARGET_PAIRS += \
1598 g-enblsp.adb<g-enblsp-vms-alpha.adb \
1599 g-trasym.adb<g-trasym-vms-alpha.adb \
1600 s-asthan.adb<s-asthan-vms-alpha.adb \
1601 s-auxdec.adb<s-auxdec-vms-alpha.adb \
1602 s-traent.adb<s-traent-vms.adb \
1603 s-traent.ads<s-traent-vms.ads \
1604 s-vaflop.adb<s-vaflop-vms-alpha.adb \
1605 system.ads<system-vms_64.ads \
1606 s-parame.ads<s-parame-vms-alpha.ads \
1607 $(ATOMICS_TARGET_PAIRS) \
1608 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1609
1610 EXTRA_LIBGNAT_SRCS+=tb-alvms.c
1611
1612 TOOLS_TARGET_PAIRS= \
1613 mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \
1614 symbols.adb<symbols-vms.adb \
1615 symbols-processing.adb<symbols-processing-vms-alpha.adb
1616 endif
1617 endif
1618
1619 EXTRA_GNATMAKE_OBJS = mlib-tgt-vms_common.o
1620
1621 GMEM_LIB = gmemlib
1622 EH_MECHANISM=-gcc
1623 GNATLIB_SHARED=gnatlib-shared-vms
1624 EXTRA_GNATRTL_NONTASKING_OBJS+=s-po32gl.o
1625 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1626 EXTRA_GNATTOOLS = \
1627 ../../gnatsym$(exeext)
1628 # This command transforms (YYYYMMDD) into YY,MMDD
1629 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)ada/gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\).*/\2,\3/')
1630 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1631 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1632 endif
1633
1634 # PikeOS
1635 ifeq ($(strip $(filter-out powerpc% %86 sysgo pikeos,$(target_cpu) $(target_vendor) $(target_os)))),)
1636 TOOLS_TARGET_PAIRS=\
1637 mlib-tgt-specific.adb<mlib-tgt-specific-xi.adb \
1638 indepsw.adb<indepsw-gnu.adb
1639 endif
1640
1641 # *-elf, *-eabi, or *-eabispe
1642 ifeq ($(strip $(filter-out elf eabi eabispe,$(target_os))),)
1643 TOOLS_TARGET_PAIRS=\
1644 mlib-tgt-specific.adb<mlib-tgt-specific-xi.adb \
1645 indepsw.adb<indepsw-gnu.adb
1646 endif
1647
1648 # Cygwin/Mingw32
1649 ifeq ($(strip $(filter-out cygwin% mingw32% pe,$(target_os))),)
1650 # Cygwin provides a full Posix environment, and so we use the default
1651 # versions of s-memory and g-socthi rather than the Windows-specific
1652 # MinGW versions. Ideally we would use all the default versions for
1653 # Cygwin and none of the MinGW versions, but for historical reasons
1654 # the Cygwin port has always been a CygMing frankenhybrid and it is
1655 # a long-term project to disentangle them.
1656 ifeq ($(strip $(filter-out cygwin%,$(target_os))),)
1657 LIBGNAT_TARGET_PAIRS = \
1658 s-memory.adb<s-memory.adb \
1659 g-socthi.ads<g-socthi.ads \
1660 g-socthi.adb<g-socthi.adb
1661 else
1662 LIBGNAT_TARGET_PAIRS = \
1663 s-memory.adb<s-memory-mingw.adb \
1664 g-socthi.ads<g-socthi-mingw.ads \
1665 g-socthi.adb<g-socthi-mingw.adb
1666 endif
1667 LIBGNAT_TARGET_PAIRS += \
1668 a-dirval.adb<a-dirval-mingw.adb \
1669 a-excpol.adb<a-excpol-abort.adb \
1670 s-gloloc.adb<s-gloloc-mingw.adb \
1671 s-inmaop.adb<s-inmaop-dummy.adb \
1672 s-taspri.ads<s-taspri-mingw.ads \
1673 s-tasinf.adb<s-tasinf-mingw.adb \
1674 s-tasinf.ads<s-tasinf-mingw.ads \
1675 g-stsifd.adb<g-stsifd-sockets.adb \
1676 g-soliop.ads<g-soliop-mingw.ads \
1677 $(ATOMICS_TARGET_PAIRS)
1678
1679 ifeq ($(strip $(filter-out rtx_w32 rtx_rtss,$(THREAD_KIND))),)
1680 LIBGNAT_TARGET_PAIRS += \
1681 s-intman.adb<s-intman-dummy.adb \
1682 s-osinte.ads<s-osinte-rtx.ads \
1683 s-osprim.adb<s-osprim-rtx.adb \
1684 s-taprop.adb<s-taprop-rtx.adb \
1685 $(X86_TARGET_PAIRS)
1686
1687 EXTRA_GNATRTL_NONTASKING_OBJS = s-win32.o
1688
1689 ifeq ($(strip $(filter-out rtx_w32,$(THREAD_KIND))),)
1690 LIBGNAT_TARGET_PAIRS += system.ads<system-rtx.ads
1691
1692 EH_MECHANISM=-gcc
1693 else
1694 LIBGNAT_TARGET_PAIRS += \
1695 system.ads<system-rtx-rtss.ads \
1696 s-parame.adb<s-parame-vxworks.adb
1697
1698 EH_MECHANISM=
1699 endif
1700
1701 else
1702 LIBGNAT_TARGET_PAIRS += \
1703 a-exetim.adb<a-exetim-mingw.adb \
1704 a-exetim.ads<a-exetim-mingw.ads \
1705 a-intnam.ads<a-intnam-mingw.ads \
1706 g-sercom.adb<g-sercom-mingw.adb \
1707 s-interr.adb<s-interr-sigaction.adb \
1708 s-intman.adb<s-intman-mingw.adb \
1709 s-mudido.adb<s-mudido-affinity.adb \
1710 s-osinte.ads<s-osinte-mingw.ads \
1711 s-osprim.adb<s-osprim-mingw.adb \
1712 s-taprop.adb<s-taprop-mingw.adb
1713
1714 ifeq ($(strip $(filter-out x86_64%,$(target_cpu))),)
1715 ifeq ($(strip $(MULTISUBDIR)),/32)
1716 LIBGNAT_TARGET_PAIRS += \
1717 $(X86_TARGET_PAIRS) \
1718 system.ads<system-mingw.ads
1719 SO_OPTS= -m32 -Wl,-soname,
1720 else
1721 LIBGNAT_TARGET_PAIRS += \
1722 $(X86_64_TARGET_PAIRS) \
1723 system.ads<system-mingw-x86_64.ads
1724 SO_OPTS = -m64 -Wl,-soname,
1725 endif
1726 else
1727 ifeq ($(strip $(MULTISUBDIR)),/64)
1728 LIBGNAT_TARGET_PAIRS += \
1729 $(X86_64_TARGET_PAIRS) \
1730 system.ads<system-mingw-x86_64.ads
1731 SO_OPTS = -m64 -Wl,-soname,
1732 else
1733 LIBGNAT_TARGET_PAIRS += \
1734 $(X86_TARGET_PAIRS) \
1735 system.ads<system-mingw.ads
1736 SO_OPTS = -m32 -Wl,-soname,
1737 endif
1738 endif
1739
1740 EXTRA_GNATRTL_NONTASKING_OBJS = \
1741 s-win32.o s-winext.o g-regist.o g-sse.o g-ssvety.o
1742 EXTRA_GNATRTL_TASKING_OBJS = a-exetim.o
1743
1744 MISCLIB = -lws2_32
1745
1746 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT
1747 # auto-import support for array/record will be done.
1748 GNATLIB_SHARED = gnatlib-shared-win32
1749
1750 EH_MECHANISM=-gcc
1751 endif
1752
1753 TOOLS_TARGET_PAIRS= \
1754 mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb \
1755 indepsw.adb<indepsw-mingw.adb
1756
1757 GMEM_LIB = gmemlib
1758 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1759 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1760 soext = .dll
1761 LIBRARY_VERSION := $(LIB_VERSION)
1762 endif
1763
1764 # Mips Linux
1765 ifeq ($(strip $(filter-out mips linux%,$(target_cpu) $(target_os))),)
1766 LIBGNAT_TARGET_PAIRS = \
1767 a-intnam.ads<a-intnam-linux.ads \
1768 s-inmaop.adb<s-inmaop-posix.adb \
1769 s-intman.adb<s-intman-posix.adb \
1770 s-linux.ads<s-linux.ads \
1771 s-osinte.adb<s-osinte-posix.adb \
1772 s-osinte.ads<s-osinte-linux.ads \
1773 s-osprim.adb<s-osprim-posix.adb \
1774 s-taprop.adb<s-taprop-linux.adb \
1775 s-tasinf.ads<s-tasinf-linux.ads \
1776 s-tasinf.adb<s-tasinf-linux.adb \
1777 s-taspri.ads<s-taspri-posix.ads \
1778 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1779 system.ads<system-linux-mips.ads
1780
1781 EH_MECHANISM=-gcc
1782 THREADSLIB = -lpthread
1783 GNATLIB_SHARED = gnatlib-shared-dual
1784 GMEM_LIB = gmemlib
1785 LIBRARY_VERSION := $(LIB_VERSION)
1786 endif
1787
1788 # Mips/el Linux
1789 ifeq ($(strip $(filter-out mipsel linux%,$(target_cpu) $(target_os))),)
1790 LIBGNAT_TARGET_PAIRS_COMMON = \
1791 a-intnam.ads<a-intnam-linux.ads \
1792 s-inmaop.adb<s-inmaop-posix.adb \
1793 s-intman.adb<s-intman-posix.adb \
1794 s-linux.ads<s-linux-mipsel.ads \
1795 s-osinte.adb<s-osinte-posix.adb \
1796 s-osinte.ads<s-osinte-linux.ads \
1797 s-osprim.adb<s-osprim-posix.adb \
1798 s-taprop.adb<s-taprop-linux.adb \
1799 s-tasinf.ads<s-tasinf-linux.ads \
1800 s-tasinf.adb<s-tasinf-linux.adb \
1801 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1802 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1803 g-sercom.adb<g-sercom-linux.adb
1804
1805 LIBGNAT_TARGET_PAIRS_32 = \
1806 system.ads<system-linux-mipsel.ads
1807
1808 LIBGNAT_TARGET_PAIRS_64 = \
1809 system.ads<system-linux-mips64el.ads
1810
1811 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1812 LIBGNAT_TARGET_PAIRS = \
1813 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1814 else
1815 LIBGNAT_TARGET_PAIRS = \
1816 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1817 endif
1818
1819 TOOLS_TARGET_PAIRS = \
1820 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1821 indepsw.adb<indepsw-gnu.adb
1822
1823 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1824 EH_MECHANISM=-gcc
1825 THREADSLIB = -lpthread
1826 GNATLIB_SHARED = gnatlib-shared-dual
1827 GMEM_LIB = gmemlib
1828 LIBRARY_VERSION := $(LIB_VERSION)
1829 endif
1830
1831 # Mips64/el Linux
1832 ifeq ($(strip $(filter-out mips64el linux%,$(target_cpu) $(target_os))),)
1833 LIBGNAT_TARGET_PAIRS_COMMON = \
1834 a-intnam.ads<a-intnam-linux.ads \
1835 s-inmaop.adb<s-inmaop-posix.adb \
1836 s-intman.adb<s-intman-posix.adb \
1837 s-linux.ads<s-linux-mipsel.ads \
1838 s-osinte.adb<s-osinte-posix.adb \
1839 s-osinte.ads<s-osinte-linux.ads \
1840 s-osprim.adb<s-osprim-posix.adb \
1841 s-taprop.adb<s-taprop-linux.adb \
1842 s-tasinf.ads<s-tasinf-linux.ads \
1843 s-tasinf.adb<s-tasinf-linux.adb \
1844 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1845 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1846 g-sercom.adb<g-sercom-linux.adb
1847
1848 LIBGNAT_TARGET_PAIRS_32 = \
1849 system.ads<system-linux-mipsel.ads
1850
1851 LIBGNAT_TARGET_PAIRS_64 = \
1852 system.ads<system-linux-mips64el.ads
1853
1854 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1855 LIBGNAT_TARGET_PAIRS = \
1856 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1857 else
1858 LIBGNAT_TARGET_PAIRS = \
1859 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1860 endif
1861
1862 TOOLS_TARGET_PAIRS = \
1863 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1864 indepsw.adb<indepsw-gnu.adb
1865
1866 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1867 EH_MECHANISM=-gcc
1868 THREADSLIB = -lpthread
1869 GNATLIB_SHARED = gnatlib-shared-dual
1870 GMEM_LIB = gmemlib
1871 LIBRARY_VERSION := $(LIB_VERSION)
1872 endif
1873
1874 # PowerPC and e500v2 Linux
1875 ifeq ($(strip $(filter-out powerpc% linux%,$(target_cpu) $(target_os))),)
1876 LIBGNAT_TARGET_PAIRS_COMMON = \
1877 a-exetim.adb<a-exetim-posix.adb \
1878 a-exetim.ads<a-exetim-default.ads \
1879 a-intnam.ads<a-intnam-linux.ads \
1880 a-synbar.adb<a-synbar-posix.adb \
1881 a-synbar.ads<a-synbar-posix.ads \
1882 s-inmaop.adb<s-inmaop-posix.adb \
1883 s-intman.adb<s-intman-posix.adb \
1884 s-linux.ads<s-linux.ads \
1885 s-osinte.adb<s-osinte-posix.adb \
1886 s-tpopsp.adb<s-tpopsp-tls.adb \
1887 g-sercom.adb<g-sercom-linux.adb \
1888 $(ATOMICS_TARGET_PAIRS) \
1889 $(ATOMICS_BUILTINS_TARGET_PAIRS)
1890
1891 ifeq ($(strip $(filter-out xenomai,$(THREAD_KIND))),)
1892 LIBGNAT_TARGET_PAIRS = \
1893 $(LIBGNAT_TARGET_PAIRS_COMMON)
1894
1895 LIBGNAT_TARGET_PAIRS += \
1896 s-osinte.ads<s-osinte-linux-xenomai.ads \
1897 s-osprim.adb<s-osprim-linux-xenomai.adb \
1898 s-taprop.adb<s-taprop-linux-xenomai.adb \
1899 s-taspri.ads<s-taspri-linux-xenomai.ads \
1900 system.ads<system-linux-ppc.ads
1901 else
1902 LIBGNAT_TARGET_PAIRS_32 = \
1903 system.ads<system-linux-ppc.ads
1904
1905 LIBGNAT_TARGET_PAIRS_64 = \
1906 system.ads<system-linux-ppc64.ads
1907
1908 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1909 LIBGNAT_TARGET_PAIRS = \
1910 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1911 else
1912 LIBGNAT_TARGET_PAIRS = \
1913 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
1914 endif
1915
1916 LIBGNAT_TARGET_PAIRS += \
1917 s-mudido.adb<s-mudido-affinity.adb \
1918 s-osinte.ads<s-osinte-linux.ads \
1919 s-osprim.adb<s-osprim-posix.adb \
1920 s-taprop.adb<s-taprop-linux.adb \
1921 s-tasinf.ads<s-tasinf-linux.ads \
1922 s-tasinf.adb<s-tasinf-linux.adb \
1923 s-taspri.ads<s-taspri-posix-noaltstack.ads
1924 endif
1925
1926 TOOLS_TARGET_PAIRS = \
1927 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1928 indepsw.adb<indepsw-gnu.adb
1929
1930 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
1931 EH_MECHANISM=-gcc
1932 THREADSLIB = -lpthread -lrt
1933 GNATLIB_SHARED = gnatlib-shared-dual
1934 GMEM_LIB = gmemlib
1935 LIBRARY_VERSION := $(LIB_VERSION)
1936 endif
1937
1938 # ARM linux, GNU eabi
1939 ifeq ($(strip $(filter-out arm% linux-gnueabi%,$(target_cpu) $(target_os))),)
1940 LIBGNAT_TARGET_PAIRS = \
1941 a-intnam.ads<a-intnam-linux.ads \
1942 s-inmaop.adb<s-inmaop-posix.adb \
1943 s-intman.adb<s-intman-posix.adb \
1944 s-linux.ads<s-linux.ads \
1945 s-osinte.adb<s-osinte-posix.adb \
1946 s-osinte.ads<s-osinte-linux.ads \
1947 s-osprim.adb<s-osprim-posix.adb \
1948 s-taprop.adb<s-taprop-linux.adb \
1949 s-tasinf.ads<s-tasinf-linux.ads \
1950 s-tasinf.adb<s-tasinf-linux.adb \
1951 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1952 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
1953
1954 ifeq ($(strip $(filter-out arm%b,$(target_cpu))),)
1955 LIBGNAT_TARGET_PAIRS += \
1956 system.ads<system-linux-armeb.ads
1957 else
1958 LIBGNAT_TARGET_PAIRS += \
1959 system.ads<system-linux-armel.ads
1960 endif
1961
1962 TOOLS_TARGET_PAIRS = \
1963 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
1964 indepsw.adb<indepsw-gnu.adb
1965
1966 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
1967 EH_MECHANISM=
1968 THREADSLIB = -lpthread
1969 GNATLIB_SHARED = gnatlib-shared-dual
1970 GMEM_LIB = gmemlib
1971 LIBRARY_VERSION := $(LIB_VERSION)
1972 endif
1973
1974 # Sparc Linux
1975 ifeq ($(strip $(filter-out sparc% linux%,$(target_cpu) $(target_os))),)
1976 LIBGNAT_TARGET_PAIRS_COMMON = \
1977 a-intnam.ads<a-intnam-linux.ads \
1978 s-inmaop.adb<s-inmaop-posix.adb \
1979 s-intman.adb<s-intman-posix.adb \
1980 s-linux.ads<s-linux-sparc.ads \
1981 s-osinte.adb<s-osinte-posix.adb \
1982 s-osinte.ads<s-osinte-linux.ads \
1983 s-osprim.adb<s-osprim-posix.adb \
1984 s-taprop.adb<s-taprop-linux.adb \
1985 s-tasinf.ads<s-tasinf-linux.ads \
1986 s-tasinf.adb<s-tasinf-linux.adb \
1987 s-taspri.ads<s-taspri-posix-noaltstack.ads \
1988 s-tpopsp.adb<s-tpopsp-tls.adb
1989
1990 LIBGNAT_TARGET_PAIRS_32 = \
1991 system.ads<system-linux-sparc.ads
1992
1993 LIBGNAT_TARGET_PAIRS_64 = \
1994 system.ads<system-linux-sparcv9.ads
1995
1996 ifeq ($(strip $(shell $(GCC_FOR_TARGET) $(GNATLIBCFLAGS) -print-multi-os-directory)),../lib64)
1997 LIBGNAT_TARGET_PAIRS = \
1998 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_64)
1999 else
2000 LIBGNAT_TARGET_PAIRS = \
2001 $(LIBGNAT_TARGET_PAIRS_COMMON) $(LIBGNAT_TARGET_PAIRS_32)
2002 endif
2003
2004 TOOLS_TARGET_PAIRS = \
2005 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2006 indepsw.adb<indepsw-gnu.adb
2007
2008 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
2009 EH_MECHANISM=-gcc
2010 THREADSLIB = -lpthread
2011 GNATLIB_SHARED = gnatlib-shared-dual
2012 GMEM_LIB = gmemlib
2013 LIBRARY_VERSION := $(LIB_VERSION)
2014 endif
2015
2016 # HP/PA Linux
2017 ifeq ($(strip $(filter-out hppa% linux%,$(target_cpu) $(target_os))),)
2018 LIBGNAT_TARGET_PAIRS = \
2019 a-intnam.ads<a-intnam-linux.ads \
2020 s-inmaop.adb<s-inmaop-posix.adb \
2021 s-intman.adb<s-intman-posix.adb \
2022 s-linux.ads<s-linux-hppa.ads \
2023 s-osinte.adb<s-osinte-posix.adb \
2024 s-osinte.ads<s-osinte-linux.ads \
2025 s-osprim.adb<s-osprim-posix.adb \
2026 s-taprop.adb<s-taprop-linux.adb \
2027 s-tasinf.ads<s-tasinf-linux.ads \
2028 s-tasinf.adb<s-tasinf-linux.adb \
2029 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2030 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2031 system.ads<system-linux-hppa.ads
2032
2033 TOOLS_TARGET_PAIRS = \
2034 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2035 indepsw.adb<indepsw-gnu.adb
2036
2037 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
2038 EH_MECHANISM=-gcc
2039 THREADSLIB = -lpthread
2040 GNATLIB_SHARED = gnatlib-shared-dual
2041 GMEM_LIB = gmemlib
2042 LIBRARY_VERSION := $(LIB_VERSION)
2043 endif
2044
2045 # SH4 Linux
2046 ifeq ($(strip $(filter-out sh4% linux%,$(target_cpu) $(target_os))),)
2047 LIBGNAT_TARGET_PAIRS = \
2048 a-intnam.ads<a-intnam-linux.ads \
2049 s-inmaop.adb<s-inmaop-posix.adb \
2050 s-intman.adb<s-intman-posix.adb \
2051 s-linux.ads<s-linux.ads \
2052 s-osinte.adb<s-osinte-posix.adb \
2053 s-osinte.ads<s-osinte-linux.ads \
2054 s-osprim.adb<s-osprim-posix.adb \
2055 s-taprop.adb<s-taprop-linux.adb \
2056 s-tasinf.ads<s-tasinf-linux.ads \
2057 s-tasinf.adb<s-tasinf-linux.adb \
2058 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2059 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2060 system.ads<system-linux-sh4.ads
2061
2062 TOOLS_TARGET_PAIRS = \
2063 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2064 indepsw.adb<indepsw-linux.adb
2065
2066 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
2067 EH_MECHANISM=-gcc
2068 MISCLIB=
2069 THREADSLIB = -lpthread
2070 GNATLIB_SHARED = gnatlib-shared-dual
2071 GMEM_LIB = gmemlib
2072 LIBRARY_VERSION := $(LIB_VERSION)
2073 endif
2074
2075 # IA64 Linux
2076 ifeq ($(strip $(filter-out %ia64 linux%,$(target_cpu) $(target_os))),)
2077 LIBGNAT_TARGET_PAIRS = \
2078 a-exetim.adb<a-exetim-posix.adb \
2079 a-exetim.ads<a-exetim-default.ads \
2080 a-intnam.ads<a-intnam-linux.ads \
2081 a-numaux.ads<a-numaux-libc-x86.ads \
2082 a-synbar.adb<a-synbar-posix.adb \
2083 a-synbar.ads<a-synbar-posix.ads \
2084 s-inmaop.adb<s-inmaop-posix.adb \
2085 s-intman.adb<s-intman-posix.adb \
2086 s-linux.ads<s-linux.ads \
2087 s-mudido.adb<s-mudido-affinity.adb \
2088 s-osinte.ads<s-osinte-linux.ads \
2089 s-osinte.adb<s-osinte-posix.adb \
2090 s-osprim.adb<s-osprim-posix.adb \
2091 s-taprop.adb<s-taprop-linux.adb \
2092 s-tasinf.ads<s-tasinf-linux.ads \
2093 s-tasinf.adb<s-tasinf-linux.adb \
2094 s-tpopsp.adb<s-tpopsp-tls.adb \
2095 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2096 g-sercom.adb<g-sercom-linux.adb \
2097 system.ads<system-linux-ia64.ads \
2098 $(ATOMICS_TARGET_PAIRS) \
2099 $(ATOMICS_BUILTINS_TARGET_PAIRS)
2100
2101 TOOLS_TARGET_PAIRS = \
2102 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2103 indepsw.adb<indepsw-gnu.adb
2104
2105 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
2106 EH_MECHANISM=-gcc
2107 MISCLIB=
2108 THREADSLIB=-lpthread -lrt
2109 GNATLIB_SHARED=gnatlib-shared-dual
2110 GMEM_LIB = gmemlib
2111 LIBRARY_VERSION := $(LIB_VERSION)
2112 endif
2113
2114 # IA64 HP-UX
2115 ifeq ($(strip $(filter-out ia64% hp hpux%,$(target_cpu) $(target_vendor) $(target_os))),)
2116 LIBGNAT_TARGET_PAIRS = \
2117 a-intnam.ads<a-intnam-hpux.ads \
2118 s-inmaop.adb<s-inmaop-posix.adb \
2119 s-intman.adb<s-intman-posix.adb \
2120 s-osinte.adb<s-osinte-posix.adb \
2121 s-osinte.ads<s-osinte-hpux.ads \
2122 s-osprim.adb<s-osprim-posix.adb \
2123 s-taprop.adb<s-taprop-posix.adb \
2124 s-taspri.ads<s-taspri-posix.ads \
2125 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2126 system.ads<system-hpux-ia64.ads \
2127 $(ATOMICS_TARGET_PAIRS) \
2128 $(ATOMICS_BUILTINS_TARGET_PAIRS)
2129
2130 TOOLS_TARGET_PAIRS = \
2131 mlib-tgt-specific.adb<mlib-tgt-specific-ia64-hpux.adb
2132
2133 MISCLIB=
2134 EH_MECHANISM=-gcc
2135 THREADSLIB=-lpthread
2136 GNATLIB_SHARED=gnatlib-shared-dual
2137 GMEM_LIB = gmemlib
2138 soext = .so
2139 SO_OPTS = -Wl,+h,
2140 LIBRARY_VERSION := $(LIB_VERSION)
2141 endif
2142
2143 # Alpha Linux
2144 ifeq ($(strip $(filter-out alpha% linux%,$(target_cpu) $(target_os))),)
2145 LIBGNAT_TARGET_PAIRS = \
2146 a-intnam.ads<a-intnam-linux.ads \
2147 s-inmaop.adb<s-inmaop-posix.adb \
2148 s-intman.adb<s-intman-posix.adb \
2149 s-linux.ads<s-linux-alpha.ads \
2150 s-osinte.ads<s-osinte-linux.ads \
2151 s-osinte.adb<s-osinte-posix.adb \
2152 s-osprim.adb<s-osprim-posix.adb \
2153 s-taprop.adb<s-taprop-linux.adb \
2154 s-tasinf.ads<s-tasinf-linux.ads \
2155 s-tasinf.adb<s-tasinf-linux.adb \
2156 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
2157 s-taspri.ads<s-taspri-posix-noaltstack.ads \
2158 system.ads<system-linux-alpha.ads \
2159 $(ATOMICS_TARGET_PAIRS) \
2160 $(ATOMICS_BUILTINS_TARGET_PAIRS)
2161
2162 TOOLS_TARGET_PAIRS = \
2163 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2164 indepsw.adb<indepsw-gnu.adb
2165
2166 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o
2167 EH_MECHANISM=-gcc
2168 MISCLIB=
2169 THREADSLIB=-lpthread
2170 GNATLIB_SHARED=gnatlib-shared-dual
2171 LIBRARY_VERSION := $(LIB_VERSION)
2172 endif
2173
2174 # x86-64 Linux
2175 ifeq ($(strip $(filter-out %x86_64 linux%,$(target_cpu) $(target_os))),)
2176 LIBGNAT_TARGET_PAIRS = \
2177 a-exetim.adb<a-exetim-posix.adb \
2178 a-exetim.ads<a-exetim-default.ads \
2179 a-intnam.ads<a-intnam-linux.ads \
2180 a-synbar.adb<a-synbar-posix.adb \
2181 a-synbar.ads<a-synbar-posix.ads \
2182 s-inmaop.adb<s-inmaop-posix.adb \
2183 s-intman.adb<s-intman-posix.adb \
2184 s-linux.ads<s-linux.ads \
2185 s-mudido.adb<s-mudido-affinity.adb \
2186 s-osinte.ads<s-osinte-linux.ads \
2187 s-osinte.adb<s-osinte-posix.adb \
2188 s-osprim.adb<s-osprim-posix.adb \
2189 s-taprop.adb<s-taprop-linux.adb \
2190 s-tasinf.ads<s-tasinf-linux.ads \
2191 s-tasinf.adb<s-tasinf-linux.adb \
2192 s-tpopsp.adb<s-tpopsp-tls.adb \
2193 s-taspri.ads<s-taspri-posix.ads \
2194 g-sercom.adb<g-sercom-linux.adb \
2195 $(ATOMICS_TARGET_PAIRS) \
2196 $(X86_64_TARGET_PAIRS) \
2197 system.ads<system-linux-x86_64.ads
2198
2199 TOOLS_TARGET_PAIRS = \
2200 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2201 indepsw.adb<indepsw-gnu.adb
2202
2203 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
2204 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
2205 EH_MECHANISM=-gcc
2206 THREADSLIB=-lpthread -lrt
2207 MISCLIB = -ldl
2208 GNATLIB_SHARED=gnatlib-shared-dual
2209 GMEM_LIB = gmemlib
2210 LIBRARY_VERSION := $(LIB_VERSION)
2211 endif
2212
2213 ifeq ($(strip $(filter-out %x32 linux%,$(target_cpu) $(target_os))),)
2214 LIBGNAT_TARGET_PAIRS = \
2215 a-exetim.adb<a-exetim-posix.adb \
2216 a-exetim.ads<a-exetim-default.ads \
2217 a-intnam.ads<a-intnam-linux.ads \
2218 a-synbar.adb<a-synbar-posix.adb \
2219 a-synbar.ads<a-synbar-posix.ads \
2220 s-inmaop.adb<s-inmaop-posix.adb \
2221 s-intman.adb<s-intman-posix.adb \
2222 s-linux.ads<s-linux-x32.ads \
2223 s-mudido.adb<s-mudido-affinity.adb \
2224 s-osinte.ads<s-osinte-linux.ads \
2225 s-osinte.adb<s-osinte-posix.adb \
2226 s-osprim.adb<s-osprim-x32.adb \
2227 s-taprop.adb<s-taprop-linux.adb \
2228 s-tasinf.ads<s-tasinf-linux.ads \
2229 s-tasinf.adb<s-tasinf-linux.adb \
2230 s-tpopsp.adb<s-tpopsp-tls.adb \
2231 s-taspri.ads<s-taspri-posix.ads \
2232 g-sercom.adb<g-sercom-linux.adb \
2233 $(ATOMICS_TARGET_PAIRS) \
2234 $(X86_64_TARGET_PAIRS) \
2235 system.ads<system-linux-x86.ads
2236
2237 TOOLS_TARGET_PAIRS = \
2238 mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
2239 indepsw.adb<indepsw-gnu.adb
2240
2241 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
2242 EXTRA_GNATRTL_TASKING_OBJS=s-linux.o a-exetim.o
2243 EH_MECHANISM=-gcc
2244 THREADSLIB=-lpthread -lrt
2245 GNATLIB_SHARED=gnatlib-shared-dual
2246 GMEM_LIB = gmemlib
2247 LIBRARY_VERSION := $(LIB_VERSION)
2248 endif
2249
2250 # Darwin (Mac OS X)
2251 ifeq ($(strip $(filter-out darwin%,$(target_os))),)
2252 SO_OPTS = -shared-libgcc
2253 LIBGNAT_TARGET_PAIRS = \
2254 a-intnam.ads<a-intnam-darwin.ads \
2255 s-inmaop.adb<s-inmaop-posix.adb \
2256 s-osinte.adb<s-osinte-darwin.adb \
2257 s-osinte.ads<s-osinte-darwin.ads \
2258 s-taprop.adb<s-taprop-posix.adb \
2259 s-taspri.ads<s-taspri-posix.ads \
2260 s-tpopsp.adb<s-tpopsp-posix-foreign.adb
2261
2262 ifeq ($(strip $(filter-out %86,$(target_cpu))),)
2263 LIBGNAT_TARGET_PAIRS += \
2264 s-intman.adb<s-intman-susv3.adb \
2265 s-osprim.adb<s-osprim-darwin.adb \
2266 $(ATOMICS_TARGET_PAIRS)
2267
2268 ifeq ($(strip $(MULTISUBDIR)),/x86_64)
2269 LIBGNAT_TARGET_PAIRS += \
2270 $(X86_64_TARGET_PAIRS) \
2271 system.ads<system-darwin-x86_64.ads
2272 SO_OPTS += -m64
2273 else
2274 LIBGNAT_TARGET_PAIRS += \
2275 $(X86_TARGET_PAIRS) \
2276 system.ads<system-darwin-x86.ads
2277 endif
2278
2279 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
2280 endif
2281
2282 ifeq ($(strip $(filter-out %x86_64,$(target_cpu))),)
2283 LIBGNAT_TARGET_PAIRS += \
2284 s-intman.adb<s-intman-susv3.adb \
2285 s-osprim.adb<s-osprim-darwin.adb \
2286 $(ATOMICS_TARGET_PAIRS)
2287
2288 ifeq ($(strip $(MULTISUBDIR)),/i386)
2289 LIBGNAT_TARGET_PAIRS += \
2290 $(X86_TARGET_PAIRS) \
2291 system.ads<system-darwin-x86.ads
2292 SO_OPTS += -m32
2293 else
2294 LIBGNAT_TARGET_PAIRS += \
2295 $(X86_64_TARGET_PAIRS) \
2296 system.ads<system-darwin-x86_64.ads
2297 endif
2298
2299 EXTRA_GNATRTL_NONTASKING_OBJS=g-sse.o g-ssvety.o
2300 endif
2301
2302 ifeq ($(strip $(filter-out powerpc%,$(target_cpu))),)
2303 LIBGNAT_TARGET_PAIRS += \
2304 s-intman.adb<s-intman-posix.adb \
2305 s-osprim.adb<s-osprim-posix.adb \
2306 a-numaux.ads<a-numaux-darwin.ads \
2307 a-numaux.adb<a-numaux-darwin.adb
2308
2309 ifeq ($(strip $(MULTISUBDIR)),/ppc64)
2310 LIBGNAT_TARGET_PAIRS += \
2311 system.ads<system-darwin-ppc64.ads
2312 SO_OPTS += -m64
2313 else
2314 LIBGNAT_TARGET_PAIRS += \
2315 system.ads<system-darwin-ppc.ads
2316 endif
2317 endif
2318
2319 TOOLS_TARGET_PAIRS = \
2320 mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb \
2321 indepsw.adb<indepsw-darwin.adb
2322
2323 EH_MECHANISM=-gcc
2324 GNATLIB_SHARED = gnatlib-shared-darwin
2325 GMEM_LIB = gmemlib
2326 LIBRARY_VERSION := $(LIB_VERSION)
2327 soext = .dylib
2328 GCC_LINK_FLAGS=-static-libstdc++
2329 endif
2330
2331 # ARM Nucleus
2332 ifeq ($(strip $(filter-out arm nucleus%,$(target_cpu) $(target_os))),)
2333 LIBGNAT_TARGET_PAIRS = \
2334 system.ads<system-nucleus-arm.ads \
2335 a-numaux.ads<a-numaux-vxworks.ads \
2336 a-intnam.ads<a-intnam-nucleus.ads \
2337 s-inmaop.adb<s-inmaop-posix.adb \
2338 s-intman.adb<s-intman-posix.adb \
2339 s-osinte.ads<s-osinte-nucleus.ads \
2340 s-osinte.adb<s-osinte-nucleus.adb \
2341 s-osprim.adb<s-osprim-nucleus.adb \
2342 s-parame.adb<s-parame-vxworks.adb \
2343 s-taprop.adb<s-taprop-posix.adb \
2344 s-taspri.ads<s-taspri-posix.ads \
2345 s-tpopsp.adb<s-tpopsp-posix.adb \
2346 $(DUMMY_SOCKETS_TARGET_PAIRS)
2347
2348 LIBRARY_VERSION := $(LIB_VERSION)
2349 GNATRTL_SOCKETS_OBJS =
2350 endif
2351
2352 ifeq ($(EH_MECHANISM),-gcc)
2353 LIBGNAT_TARGET_PAIRS += \
2354 a-exexpr.adb<a-exexpr-gcc.adb \
2355 s-excmac.ads<s-excmac-gcc.ads
2356 EXTRA_LIBGNAT_OBJS+=raise-gcc.o
2357 EXTRA_GNATRTL_NONTASKING_OBJS+=g-cppexc.o s-excmac.o
2358 endif
2359
2360 # Use the Ada 2005 version of Ada.Exceptions by default, unless specified
2361 # explicitly already. The base files (a-except.ad?) are used only for building
2362 # the compiler and other basic tools.
2363 # These base versions lack Ada 2005 additions which would cause bootstrap
2364 # problems if included in the compiler and other basic tools.
2365
2366 ifeq ($(filter a-except%,$(LIBGNAT_TARGET_PAIRS)),)
2367 LIBGNAT_TARGET_PAIRS += \
2368 a-except.ads<a-except-2005.ads \
2369 a-except.adb<a-except-2005.adb
2370 endif
2371
2372 # LIBGNAT_SRCS is the list of all C files (including headers) of the runtime
2373 # library. LIBGNAT_OBJS is the list of object files for libgnat.
2374 # thread.c is special as put into GNATRTL_TASKING_OBJS by Makefile.rtl
2375 LIBGNAT_OBJS = adadecode.o adaint.o argv.o aux-io.o \
2376 cal.o cio.o cstreams.o ctrl_c.o \
2377 env.o errno.o exit.o expect.o final.o \
2378 init.o initialize.o locales.o mkdir.o \
2379 raise.o seh_init.o socket.o sysdep.o \
2380 targext.o terminals.o tracebak.o \
2381 $(EXTRA_LIBGNAT_OBJS)
2382
2383 # NOTE ??? - when the -I option for compiling Ada code is made to work,
2384 # the library installation will change and there will be a
2385 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
2386 # from ADA_INCLUDE_SRCS.
2387
2388 LIBGNAT_SRCS = $(patsubst %.o,%.c,$(LIBGNAT_OBJS)) \
2389 adadecode.h adaint.h env.h gsocket.h raise.h \
2390 tb-gcc.c thread.c $(EXTRA_LIBGNAT_SRCS)
2391
2392 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
2393 # the following include file:
2394
2395 include $(fsrcdir)/ada/Makefile.rtl
2396
2397 # memtrack.o is special as not put into libgnat.
2398 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
2399 memtrack.o
2400
2401 # Run time source files
2402 ADA_INCLUDE_SRCS =\
2403 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
2404 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
2405 sequenio.ads system.ads memtrack.adb \
2406 a-[a-o]*.adb a-[p-z]*.adb a-[a-o]*.ads a-[p-z]*.ads g-*.ad? i-*.ad? \
2407 s-[a-o]*.adb s-[p-z]*.adb s-[a-o]*.ads s-[p-z]*.ads
2408
2409 # Files that are in ADA_INCLUDE_SRCS but not in all configurations.
2410 # They will be removed from the run time if not used.
2411 ADA_EXCLUDE_SRCS =\
2412 s-bb.ads \
2413 s-bbbosu.ads s-bbcaco.ads s-bbcppr.ads s-bbexti.adb s-bbexti.ads \
2414 s-bbinte.adb s-bbinte.ads s-bbprot.adb s-bbprot.ads s-bbsle3.ads \
2415 s-bbsuer.ads s-bbsule.ads s-bbthqu.adb s-bbthqu.ads s-bbthre.adb \
2416 s-bbthre.ads s-bbtiev.adb s-bbtiev.ads s-bbtime.adb s-bbtime.ads \
2417 s-bcprmu.adb s-bcprmu.ads s-btstch.adb s-btstch.ads \
2418 s-init.ads s-init.adb \
2419 s-po32gl.adb s-po32gl.ads \
2420 s-stache.adb s-stache.ads \
2421 s-thread.ads \
2422 s-vxwext.adb s-vxwext.ads \
2423 s-win32.ads s-winext.ads \
2424 g-regist.adb g-regist.ads g-sse.ads g-ssvety.ads \
2425 i-vxwoio.adb i-vxwoio.ads i-vxwork.ads \
2426 g-allein.ads g-alleve.ads g-altcon.ads g-alveop.adb g-alvety.ads \
2427 g-alleve.adb g-altcon.adb g-altive.ads g-alveop.ads g-alvevi.ads
2428
2429 # ADA_EXCLUDE_SRCS without the sources used by the target
2430 ADA_EXCLUDE_FILES=$(filter-out \
2431 $(patsubst %$(objext),%.ads,$(GNATRTL_OBJS)) \
2432 $(patsubst %$(objext),%.adb,$(GNATRTL_OBJS)), \
2433 $(ADA_EXCLUDE_SRCS))
2434
2435 LIBGNAT=../$(RTSDIR)/libgnat.a
2436
2437 TOOLS_FLAGS_TO_PASS= \
2438 "CC=$(CC)" \
2439 "CFLAGS=$(CFLAGS)" \
2440 "LDFLAGS=$(LDFLAGS)" \
2441 "ADAFLAGS=$(ADAFLAGS)" \
2442 "INCLUDES=$(INCLUDES_FOR_SUBDIR)"\
2443 "ADA_INCLUDES=$(ADA_INCLUDES) $(ADA_INCLUDES_FOR_SUBDIR)"\
2444 "libsubdir=$(libsubdir)" \
2445 "exeext=$(exeext)" \
2446 "fsrcdir=$(fsrcdir)" \
2447 "srcdir=$(fsrcdir)" \
2448 "TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
2449 "GNATMAKE=$(GNATMAKE)" \
2450 "GNATLINK=$(GNATLINK)" \
2451 "GNATBIND=$(GNATBIND)"
2452
2453 GCC_LINK=$(CXX) $(GCC_LINK_FLAGS) $(ADA_INCLUDES) $(LDFLAGS)
2454
2455 # Build directory for the tools. Let's copy the target-dependent
2456 # sources using the same mechanism as for gnatlib. The other sources are
2457 # accessed using the vpath directive below
2458 # Note: dummy target, stamp-tools is mainly handled by gnattools.
2459
2460 ../stamp-tools:
2461 touch ../stamp-tools
2462
2463 # when compiling the tools, the runtime has to be first on the path so that
2464 # it hides the runtime files lying with the rest of the sources
2465 ifeq ($(TOOLSCASE),native)
2466 vpath %.ads ../$(RTSDIR) ../
2467 vpath %.adb ../$(RTSDIR) ../
2468 vpath %.c ../$(RTSDIR) ../
2469 vpath %.h ../$(RTSDIR) ../
2470 endif
2471
2472 # in the cross tools case, everything is compiled with the native
2473 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
2474 ifeq ($(TOOLSCASE),cross)
2475 vpath %.ads ../
2476 vpath %.adb ../
2477 vpath %.c ../
2478 vpath %.h ../
2479 endif
2480
2481 # gnatmake/link tools cannot always be built with gnatmake/link for bootstrap
2482 # reasons: gnatmake should be built with a recent compiler, a recent compiler
2483 # may not generate ALI files compatible with an old gnatmake so it is important
2484 # to be able to build gnatmake without a version of gnatmake around. Once
2485 # everything has been compiled once, gnatmake can be recompiled with itself
2486 # (see target gnattools1-re)
2487 gnattools1: ../stamp-tools ../stamp-gnatlib-$(RTSDIR)
2488 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2489 TOOLSCASE=native \
2490 ../../gnatmake$(exeext) ../../gnatlink$(exeext)
2491
2492 # gnatmake/link can be built with recent gnatmake/link if they are available.
2493 # This is especially convenient for building cross tools or for rebuilding
2494 # the tools when the original bootstrap has already be done.
2495 gnattools1-re: ../stamp-tools
2496 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2497 TOOLSCASE=cross INCLUDES="" gnatmake-re gnatlink-re
2498
2499 # these tools are built with gnatmake & are common to native and cross
2500 gnattools2: ../stamp-tools
2501 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2502 TOOLSCASE=native common-tools $(EXTRA_GNATTOOLS)
2503
2504 # those tools are only built for the cross version
2505 gnattools4: ../stamp-tools
2506 ifeq ($(ENABLE_VXADDR2LINE),true)
2507 $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
2508 TOOLSCASE=cross top_buildir=../../.. \
2509 ../../vxaddr2line$(exeext)
2510 endif
2511
2512 common-tools: ../stamp-tools
2513 $(GNATMAKE) -j0 -c -b $(ADA_INCLUDES) \
2514 --GNATBIND="$(GNATBIND)" --GCC="$(CC) $(ALL_ADAFLAGS)" \
2515 gnatchop gnatcmd gnatkr gnatls gnatprep gnatxref gnatfind gnatname \
2516 gnatclean -bargs $(ADA_INCLUDES) $(GNATBIND_FLAGS)
2517 $(GNATLINK) -v gnatcmd -o ../../gnat$(exeext) \
2518 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2519 $(GNATLINK) -v gnatchop -o ../../gnatchop$(exeext) \
2520 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2521 $(GNATLINK) -v gnatkr -o ../../gnatkr$(exeext) \
2522 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2523 $(GNATLINK) -v gnatls -o ../../gnatls$(exeext) \
2524 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2525 $(GNATLINK) -v gnatprep -o ../../gnatprep$(exeext) \
2526 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2527 $(GNATLINK) -v gnatxref -o ../../gnatxref$(exeext) \
2528 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2529 $(GNATLINK) -v gnatfind -o ../../gnatfind$(exeext) \
2530 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2531 $(GNATLINK) -v gnatname -o ../../gnatname$(exeext) \
2532 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2533 $(GNATLINK) -v gnatclean -o ../../gnatclean$(exeext) \
2534 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2535
2536 ../../gnatsym$(exeext): ../stamp-tools
2537 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
2538 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
2539 $(GNATLINK) -v gnatsym -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2540
2541 ../../gnatdll$(exeext): ../stamp-tools
2542 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
2543 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatdll
2544 $(GNATLINK) -v gnatdll -o $@ --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2545
2546 ../../vxaddr2line$(exeext): ../stamp-tools
2547 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
2548 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
2549 $(GNATLINK) -v vxaddr2line -o $@ --GCC="$(GCC_LINK)" ../targext.o $(CLIB)
2550
2551 gnatmake-re: ../stamp-tools
2552 $(GNATMAKE) -j0 $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
2553 $(GNATMAKE) -j0 -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
2554 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
2555 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
2556 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2557
2558 # Note the use of the "mv" command in order to allow gnatlink to be linked with
2559 # with the former version of gnatlink itself which cannot override itself.
2560 # gnatlink-re cannot be run at the same time as gnatmake-re, hence the
2561 # dependency
2562 gnatlink-re: ../stamp-tools gnatmake-re
2563 $(GNATMAKE) -j0 -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
2564 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
2565 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
2566 --GCC="$(GCC_LINK)" $(TOOLS_LIBS)
2567 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
2568
2569 # Needs to be built with CC=gcc
2570 # Since the RTL should be built with the latest compiler, remove the
2571 # stamp target in the parent directory whenever gnat1 is rebuilt
2572
2573 # Likewise for the tools
2574 ../../gnatmake$(exeext): $(P) b_gnatm.o $(GNATMAKE_OBJS)
2575 +$(GCC_LINK) $(ALL_CFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) $(TOOLS_LIBS)
2576
2577 ../../gnatlink$(exeext): $(P) b_gnatl.o $(GNATLINK_OBJS)
2578 +$(GCC_LINK) $(ALL_CFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) $(TOOLS_LIBS)
2579
2580 ../stamp-gnatlib-$(RTSDIR):
2581 @if [ ! -f stamp-gnatlib-$(RTSDIR) ] ; \
2582 then \
2583 $(ECHO) You must first build the GNAT library: make gnatlib; \
2584 false; \
2585 else \
2586 true; \
2587 fi
2588
2589 install-gnatlib: ../stamp-gnatlib-$(RTSDIR)
2590 # Create the directory before deleting it, in case the directory is
2591 # a list of directories (as it may be on VMS). This ensures we are
2592 # deleting the right one.
2593 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2594 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2595 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2596 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2597 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
2598 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
2599 for file in $(RTSDIR)/*.ali; do \
2600 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2601 done
2602 -cd $(RTSDIR); for file in *$(arext);do \
2603 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2604 $(RANLIB_FOR_TARGET) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
2605 done
2606 -$(foreach file, $(EXTRA_ADALIB_FILES), \
2607 $(INSTALL_DATA_DATE) $(RTSDIR)/$(file) $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
2608 ) true
2609 # Install the shared libraries, if any, using $(INSTALL) instead
2610 # of $(INSTALL_DATA). The latter may force a mode inappropriate
2611 # for shared libraries on some targets, e.g. on HP-UX where the x
2612 # permission is required.
2613 # Also install the .dSYM directories if they exist (these directories
2614 # contain the debug information for the shared libraries on darwin)
2615 for file in gnat gnarl; do \
2616 if [ -f $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
2617 $(INSTALL) $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2618 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2619 fi; \
2620 if [ -f $(RTSDIR)/lib$${file}$(soext) ]; then \
2621 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
2622 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
2623 fi; \
2624 if [ -d $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM ]; then \
2625 $(CP) -r $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM \
2626 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
2627 fi; \
2628 done
2629 # This copy must be done preserving the date on the original file.
2630 for file in $(RTSDIR)/*.ad?; do \
2631 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
2632 done
2633 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
2634 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
2635
2636 ../stamp-gnatlib2-$(RTSDIR):
2637 $(RM) $(RTSDIR)/s-*.ali
2638 $(RM) $(RTSDIR)/s-*$(objext)
2639 $(RM) $(RTSDIR)/a-*.ali
2640 $(RM) $(RTSDIR)/a-*$(objext)
2641 $(RM) $(RTSDIR)/*.ali
2642 $(RM) $(RTSDIR)/*$(objext)
2643 $(RM) $(RTSDIR)/*$(arext)
2644 $(RM) $(RTSDIR)/*$(soext)
2645 touch ../stamp-gnatlib2-$(RTSDIR)
2646 $(RM) ../stamp-gnatlib-$(RTSDIR)
2647
2648 ../stamp-gnatlib1-$(RTSDIR): Makefile ../stamp-gnatlib2-$(RTSDIR)
2649 $(RMDIR) $(RTSDIR)
2650 $(MKDIR) $(RTSDIR)
2651 $(CHMOD) u+w $(RTSDIR)
2652 # Copy target independent sources
2653 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
2654 $(LN_S) $(fsrcpfx)ada/$(f) $(RTSDIR) ;) true
2655 # Remove files not used
2656 $(RM) $(patsubst %,$(RTSDIR)/%,$(ADA_EXCLUDE_FILES))
2657 # Remove files to be replaced by target dependent sources
2658 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2659 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR))))
2660 for f in $(RTSDIR)/*-*-*.ads $(RTSDIR)/*-*-*.adb; do \
2661 case "$$f" in \
2662 $(RTSDIR)/s-stratt-*) ;; \
2663 *) $(RM) $$f ;; \
2664 esac; \
2665 done
2666 # Copy new target dependent sources
2667 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
2668 $(LN_S) $(fsrcpfx)ada/$(word 2,$(subst <, ,$(PAIR))) \
2669 $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)));)
2670 # Copy tsystem.h
2671 $(CP) $(srcdir)/tsystem.h $(RTSDIR)
2672 $(RM) ../stamp-gnatlib-$(RTSDIR)
2673 touch ../stamp-gnatlib1-$(RTSDIR)
2674
2675 ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%, $(host_cpu) $(host_os))),)
2676 OSCONS_CPP=../../$(DECC) -E /comment=as_is -DNATIVE \
2677 -DTARGET='""$(target)""' $(fsrcpfx)ada/s-oscons-tmplt.c
2678
2679 OSCONS_EXTRACT=../../$(DECC) -DNATIVE \
2680 -DTARGET='""$(target)""' $(fsrcpfx)ada/s-oscons-tmplt.c ; \
2681 ld -o s-oscons-tmplt.exe s-oscons-tmplt.obj; \
2682 ./s-oscons-tmplt.exe > s-oscons-tmplt.s
2683
2684 else
2685 # GCC_FOR_TARGET has paths relative to the gcc directory, so we need to adjust
2686 # for running it from $(RTSDIR)
2687 OSCONS_CC=`echo "$(GCC_FOR_TARGET)" \
2688 | sed -e 's^\./xgcc^../../xgcc^' -e 's^-B./^-B../../^'`
2689 OSCONS_CPP=$(OSCONS_CC) $(GNATLIBCFLAGS) -E -C \
2690 -DTARGET=\"$(target)\" $(fsrcpfx)ada/s-oscons-tmplt.c > s-oscons-tmplt.i
2691 OSCONS_EXTRACT=$(OSCONS_CC) $(GNATLIBCFLAGS) -S s-oscons-tmplt.i
2692 endif
2693
2694 ./bldtools/oscons/xoscons: xoscons.adb xutil.ads xutil.adb
2695 -$(MKDIR) ./bldtools/oscons
2696 $(RM) $(addprefix ./bldtools/oscons/,$(notdir $^))
2697 $(CP) $^ ./bldtools/oscons
2698 (cd ./bldtools/oscons ; gnatmake -q xoscons)
2699
2700 $(RTSDIR)/s-oscons.ads: ../stamp-gnatlib1-$(RTSDIR) s-oscons-tmplt.c gsocket.h ./bldtools/oscons/xoscons
2701 $(RM) $(RTSDIR)/s-oscons-tmplt.i $(RTSDIR)/s-oscons-tmplt.s
2702 (cd $(RTSDIR) ; \
2703 $(OSCONS_CPP) ; \
2704 $(OSCONS_EXTRACT) ; \
2705 ../bldtools/oscons/xoscons s-oscons)
2706
2707 # Don't use semicolon separated shell commands that involve list expansions.
2708 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
2709 # line lengths in excess of 256 characters.
2710 # Example: cd $(RTSDIR); ar rc libfoo.a $(LONG_LIST_OF_OBJS)
2711 # is guaranteed to overflow the buffer.
2712
2713 gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../stamp-gnatlib2-$(RTSDIR) $(RTSDIR)/s-oscons.ads
2714 # C files
2715 $(MAKE) -C $(RTSDIR) \
2716 CC="`echo \"$(GCC_FOR_TARGET)\" \
2717 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2718 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
2719 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
2720 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2721 srcdir=$(fsrcdir) \
2722 -f ../Makefile $(LIBGNAT_OBJS)
2723 # Ada files
2724 $(MAKE) -C $(RTSDIR) \
2725 CC="`echo \"$(GCC_FOR_TARGET)\" \
2726 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`" \
2727 ADA_INCLUDES="" \
2728 CFLAGS="$(GNATLIBCFLAGS)" \
2729 ADAFLAGS="$(GNATLIBFLAGS)" \
2730 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2731 srcdir=$(fsrcdir) \
2732 -f ../Makefile $(GNATRTL_OBJS)
2733 $(RM) $(RTSDIR)/libgnat$(arext) $(RTSDIR)/libgnarl$(arext)
2734 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnat$(arext) \
2735 $(addprefix $(RTSDIR)/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
2736 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnat$(arext)
2737 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnarl$(arext) \
2738 $(addprefix $(RTSDIR)/,$(GNATRTL_TASKING_OBJS))
2739 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnarl$(arext)
2740 ifeq ($(GMEM_LIB),gmemlib)
2741 $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgmem$(arext) \
2742 $(RTSDIR)/memtrack.o
2743 $(RANLIB_FOR_TARGET) $(RTSDIR)/libgmem$(arext)
2744 endif
2745 $(CHMOD) a-wx $(RTSDIR)/*.ali
2746 touch ../stamp-gnatlib-$(RTSDIR)
2747
2748 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
2749 gnatlib-shared-default:
2750 $(MAKE) $(FLAGS_TO_PASS) \
2751 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2752 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2753 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \
2754 MULTISUBDIR="$(MULTISUBDIR)" \
2755 THREAD_KIND="$(THREAD_KIND)" \
2756 gnatlib
2757 $(RM) $(RTSDIR)/libgna*$(soext)
2758 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2759 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared $(GNATLIBCFLAGS) \
2760 $(PICFLAG_FOR_TARGET) \
2761 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2762 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2763 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2764 $(MISCLIB) -lm
2765 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2766 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared $(GNATLIBCFLAGS) \
2767 $(PICFLAG_FOR_TARGET) \
2768 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2769 $(GNATRTL_TASKING_OBJS) \
2770 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2771 $(THREADSLIB)
2772 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2773 libgnat$(soext)
2774 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2775 libgnarl$(soext)
2776
2777 gnatlib-shared-dual:
2778 $(MAKE) $(FLAGS_TO_PASS) \
2779 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2780 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2781 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2782 MULTISUBDIR="$(MULTISUBDIR)" \
2783 THREAD_KIND="$(THREAD_KIND)" \
2784 gnatlib-shared-default
2785 $(MV) $(RTSDIR)/libgna*$(soext) .
2786 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2787 $(MAKE) $(FLAGS_TO_PASS) \
2788 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2789 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2790 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2791 MULTISUBDIR="$(MULTISUBDIR)" \
2792 THREAD_KIND="$(THREAD_KIND)" \
2793 gnatlib
2794 $(MV) libgna*$(soext) $(RTSDIR)
2795
2796 gnatlib-shared-dual-win32:
2797 $(MAKE) $(FLAGS_TO_PASS) \
2798 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2799 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2800 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2801 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" \
2802 MULTISUBDIR="$(MULTISUBDIR)" \
2803 THREAD_KIND="$(THREAD_KIND)" \
2804 gnatlib-shared-win32
2805 $(MV) $(RTSDIR)/libgna*$(soext) .
2806 $(RM) ../stamp-gnatlib2-$(RTSDIR)
2807 $(MAKE) $(FLAGS_TO_PASS) \
2808 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2809 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2810 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2811 MULTISUBDIR="$(MULTISUBDIR)" \
2812 THREAD_KIND="$(THREAD_KIND)" \
2813 gnatlib
2814 $(MV) libgna*$(soext) $(RTSDIR)
2815
2816 # ??? we need to add the option to support auto-import of arrays/records to
2817 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
2818 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
2819 # Windows.
2820 gnatlib-shared-win32:
2821 $(MAKE) $(FLAGS_TO_PASS) \
2822 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2823 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2824 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \
2825 MULTISUBDIR="$(MULTISUBDIR)" \
2826 THREAD_KIND="$(THREAD_KIND)" \
2827 gnatlib
2828 $(RM) $(RTSDIR)/libgna*$(soext)
2829 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2830 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared -shared-libgcc \
2831 $(PICFLAG_FOR_TARGET) \
2832 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2833 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2834 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
2835 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2836 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared -shared-libgcc \
2837 $(PICFLAG_FOR_TARGET) \
2838 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2839 $(GNATRTL_TASKING_OBJS) \
2840 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2841 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2842
2843 gnatlib-shared-darwin:
2844 $(MAKE) $(FLAGS_TO_PASS) \
2845 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2846 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
2847 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET) -fno-common" \
2848 MULTISUBDIR="$(MULTISUBDIR)" \
2849 THREAD_KIND="$(THREAD_KIND)" \
2850 gnatlib
2851 $(RM) $(RTSDIR)/libgnat$(soext) $(RTSDIR)/libgnarl$(soext)
2852 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2853 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib $(PICFLAG_FOR_TARGET) \
2854 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2855 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
2856 $(SO_OPTS) \
2857 -Wl,-install_name,@rpath/libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2858 $(MISCLIB)
2859 cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
2860 | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib $(PICFLAG_FOR_TARGET) \
2861 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2862 $(GNATRTL_TASKING_OBJS) \
2863 $(SO_OPTS) \
2864 -Wl,-install_name,@rpath/libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2865 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2866 cd $(RTSDIR); $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2867 libgnat$(soext)
2868 cd $(RTSDIR); $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2869 libgnarl$(soext)
2870 cd $(RTSDIR); dsymutil libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
2871 cd $(RTSDIR); dsymutil libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext)
2872
2873 gnatlib-shared-vms:
2874 $(MAKE) $(FLAGS_TO_PASS) \
2875 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2876 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2877 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2878 MULTISUBDIR="$(MULTISUBDIR)" \
2879 THREAD_KIND="$(THREAD_KIND)" \
2880 gnatlib
2881 $(RM) $(RTSDIR)/libgna*$(soext)
2882 cd $(RTSDIR) && \
2883 ../../gnatsym -s SYMVEC_$$$$.opt \
2884 $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) && \
2885 ../../xgcc -g -B../../ -shared -shared-libgcc \
2886 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
2887 sys\$$library:trace.exe \
2888 --for-linker=/noinform \
2889 --for-linker=SYMVEC_$$$$.opt \
2890 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2891 cd $(RTSDIR) && \
2892 ../../gnatsym -s SYMVEC_$$$$.opt \
2893 $(GNATRTL_TASKING_OBJS) && \
2894 ../../xgcc -g -B../../ -shared -shared-libgcc \
2895 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
2896 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
2897 sys\$$library:trace.exe \
2898 --for-linker=/noinform \
2899 --for-linker=SYMVEC_$$$$.opt \
2900 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
2901
2902 gnatlib-shared:
2903 $(MAKE) $(FLAGS_TO_PASS) \
2904 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2905 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2906 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2907 MULTISUBDIR="$(MULTISUBDIR)" \
2908 THREAD_KIND="$(THREAD_KIND)" \
2909 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" \
2910 $(GNATLIB_SHARED)
2911
2912 # When building a SJLJ runtime for VxWorks, in addition to forcing
2913 # ZCX_By_default to False, we need to ensure that extra linker options
2914 # are not passed to prevent the inclusion of useless objects and
2915 # potential troubles from the presence of extra symbols and references
2916 # in some configurations. The inhibition is performed by commenting
2917 # the pragma instead of deleting the line, as the latter might result
2918 # in getting multiple blank lines, hence a style check error, as a
2919 # result.
2920 gnatlib-sjlj:
2921 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="" \
2922 THREAD_KIND="$(THREAD_KIND)" ../stamp-gnatlib1-$(RTSDIR)
2923 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2924 sed -e 's/\(pragma Linker.*crtbe.*\)/-- \1/' $(RTSDIR)/s.ads > $(RTSDIR)/s2.ads
2925 $(RM) $(RTSDIR)/s.ads
2926 $(MV) $(RTSDIR)/s2.ads $(RTSDIR)/system.ads
2927 $(MAKE) $(FLAGS_TO_PASS) \
2928 EH_MECHANISM="" \
2929 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2930 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2931 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2932 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2933 MULTISUBDIR="$(MULTISUBDIR)" \
2934 THREAD_KIND="$(THREAD_KIND)" \
2935 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" gnatlib
2936
2937 gnatlib-zcx:
2938 $(MAKE) $(FLAGS_TO_PASS) EH_MECHANISM="-gcc" \
2939 THREAD_KIND="$(THREAD_KIND)" ../stamp-gnatlib1-$(RTSDIR)
2940 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' $(RTSDIR)/system.ads > $(RTSDIR)/s.ads
2941 $(MV) $(RTSDIR)/s.ads $(RTSDIR)/system.ads
2942 $(MAKE) $(FLAGS_TO_PASS) \
2943 EH_MECHANISM="-gcc" \
2944 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
2945 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
2946 GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
2947 FORCE_DEBUG_ADAFLAGS="$(FORCE_DEBUG_ADAFLAGS)" \
2948 MULTISUBDIR="$(MULTISUBDIR)" \
2949 THREAD_KIND="$(THREAD_KIND)" \
2950 PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" gnatlib
2951
2952 # Compiling object files from source files.
2953
2954 # Note that dependencies on obstack.h are not written
2955 # because that file is not part of GCC.
2956 # Dependencies on gvarargs.h are not written
2957 # because all that file does, when not compiling with GCC,
2958 # is include the system varargs.h.
2959
2960 b_gnatl.adb : $(GNATLINK_OBJS)
2961 $(GNATBIND) $(ADA_INCLUDES) -o b_gnatl.adb gnatlink.ali
2962
2963 b_gnatl.o : b_gnatl.adb
2964 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) -gnatws -gnatyN \
2965 $< $(OUTPUT_OPTION)
2966
2967 b_gnatm.adb : $(GNATMAKE_OBJS)
2968 $(GNATBIND) $(ADA_INCLUDES) -o b_gnatm.adb gnatmake.ali
2969
2970 b_gnatm.o : b_gnatm.adb
2971 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) -gnatws -gnatyN \
2972 $< $(OUTPUT_OPTION)
2973
2974 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
2975 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
2976
2977 # Special flags
2978
2979 # force no sibling call optimization on s-traceb.o so the number of stack
2980 # frames to be skipped when computing a call chain is not modified by
2981 # optimization.
2982
2983 s-traceb.o : s-traceb.adb s-traceb.ads
2984 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
2985 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
2986
2987 # force debugging information on s-tasdeb.o so that it is always
2988 # possible to set conditional breakpoints on tasks.
2989
2990 s-tasdeb.o : s-tasdeb.adb s-tasdeb.ads
2991 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
2992 $< $(OUTPUT_OPTION)
2993
2994 # force debugging information on s-vaflop.o so that it is always
2995 # possible to call the VAX float debug print routines.
2996 # force at least -O so that the inline assembly works.
2997
2998 s-vaflop.o : s-vaflop.adb s-vaflop.ads
2999 $(CC) -c -O $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
3000 $< $(OUTPUT_OPTION)
3001
3002 # force no function reordering on a-except.o because of the exclusion bounds
3003 # mechanism (see the source file for more detailed information).
3004 # force debugging information on a-except.o so that it is always
3005 # possible to set conditional breakpoints on exceptions.
3006 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
3007
3008 a-except.o : a-except.adb a-except.ads
3009 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O1 -fno-inline \
3010 $(NO_REORDER_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
3011
3012 # compile s-excdeb.o without optimization and with debug info to let the
3013 # debugger set breakpoints and inspect subprogram parameters on exception
3014 # related events.
3015
3016 s-excdeb.o : s-excdeb.adb s-excdeb.ads s-except.ads
3017 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
3018 $< $(OUTPUT_OPTION)
3019
3020 # force debugging information on s-assert.o so that it is always
3021 # possible to set breakpoint on assert failures.
3022
3023 s-assert.o : s-assert.adb s-assert.ads
3024 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
3025 $< $(OUTPUT_OPTION)
3026
3027 # force debugging information on a-tags.o so that the debugger can find
3028 # the description of Ada.Tags.Type_Specific_Data.
3029
3030 a-tags.o : a-tags.adb a-tags.ads
3031 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
3032 $< $(OUTPUT_OPTION)
3033
3034 # need to keep the frame pointer in this file to pop the stack properly on
3035 # some targets.
3036 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c tb-gcc.c
3037 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) \
3038 $(INCLUDES) -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
3039
3040 adadecode.o : adadecode.c adadecode.h
3041 aux-io.o : aux-io.c
3042 argv.o : argv.c
3043 cal.o : cal.c
3044 deftarg.o : deftarg.c
3045 errno.o : errno.c
3046 exit.o : adaint.h exit.c
3047 expect.o : expect.c
3048 final.o : final.c
3049 locales.o : locales.c
3050 mkdir.o : mkdir.c
3051 socket.o : socket.c gsocket.h
3052 sysdep.o : sysdep.c
3053 raise.o : raise.c raise.h
3054 sigtramp-ppcvxw.o : sigtramp-ppcvxw.c sigtramp.h
3055 terminals.o : terminals.c
3056 vx_stack_info.o : vx_stack_info.c
3057
3058 raise-gcc.o : raise-gcc.c raise.h
3059 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3060 -iquote $(srcdir) -iquote $(ftop_srcdir)/libgcc \
3061 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
3062
3063 cio.o : cio.c
3064 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3065 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
3066
3067 init.o : init.c adaint.h raise.h
3068 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3069 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
3070
3071 initialize.o : initialize.c raise.h
3072 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3073 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
3074
3075 link.o : link.c
3076 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3077 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
3078 $< $(OUTPUT_OPTION)
3079
3080 targext.o : targext.c
3081 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
3082 -iquote $(srcdir) \
3083 $(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
3084 $< $(OUTPUT_OPTION)
3085
3086 # In GNU Make, ignore whether `stage*' exists.
3087 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
3088 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
3089
3090 force: