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