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