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