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