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