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