* gimplify.c (find_single_pointer_decl_1): New static function.
[official-gcc.git] / gcc / ada / Makefile.in
blobf13fed7fb76235e1943c73b697e3faf2dfec8469
1 # Makefile for GNU Ada Compiler (GNAT).
2 # Copyright (C) 1994-2005 Free Software Foundation, Inc.
4 #This file is part of GCC.
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 2, or (at your option)
9 #any later version.
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.
16 #You should have received a copy of the GNU General Public License
17 #along with GCC; see the file COPYING. If not, write to
18 #the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19 #Boston, MA 02110-1301, USA.
21 # The makefile built from this file lives in the language subdirectory.
22 # Its purpose is to provide support for:
24 # 1) recursion where necessary, and only then (building .o's), and
25 # 2) building and debugging cc1 from the language subdirectory, and
26 # 3) nothing else.
28 # The parent makefile handles all other chores, with help from the
29 # language makefile fragment, of course.
31 # The targets for external use are:
32 # all, TAGS, ???mostlyclean, ???clean.
34 # This makefile will only work with Gnu make.
35 # The rules are written assuming a minimum subset of tools are available:
37 # Required:
38 # MAKE: Only Gnu make will work.
39 # MV: Must accept (at least) one, maybe wildcard, source argument,
40 # a file or directory destination, and support creation/
41 # modification date preservation. Gnu mv -f works.
42 # RM: Must accept an arbitrary number of space separated file
43 # arguments, or one wildcard argument. Gnu rm works.
44 # RMDIR: Must delete a directory and all its contents. Gnu rm -rf works.
45 # ECHO: Must support command line redirection. Any Unix-like
46 # shell will typically provide this, otherwise a custom version
47 # is trivial to write.
48 # AR: Gnu ar works.
49 # MKDIR: Gnu mkdir works.
50 # CHMOD: Gnu chmod works.
51 # true: Does nothing and returns a normal successful return code.
52 # pwd: Prints the current directory on stdout.
53 # cd: Change directory.
55 # Optional:
56 # BISON: Gnu bison works.
57 # FLEX: Gnu flex works.
58 # Other miscellaneous tools for obscure targets.
60 # Tell GNU make 3.79 not to run this directory in parallel.
61 # Not all of the required dependencies are present.
62 .NOTPARALLEL:
64 # Suppress smart makes who think they know how to automake Yacc files
65 .y.c:
67 # Variables that exist for you to override.
68 # See below for how to change them for certain systems.
70 # Various ways of specifying flags for compilations:
71 # CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
72 # BOOT_CFLAGS is the value of CFLAGS to pass
73 # to the stage2 and stage3 compilations
74 # XCFLAGS is used for most compilations but not when using the GCC just built.
75 XCFLAGS =
76 CFLAGS = -g
77 BOOT_CFLAGS = -O $(CFLAGS)
78 # These exists to be overridden by the x-* and t-* files, respectively.
79 X_CFLAGS =
80 T_CFLAGS =
82 X_CPPFLAGS =
83 T_CPPFLAGS =
85 X_ADA_CFLAGS =
86 T_ADA_CFLAGS =
88 X_ADAFLAGS =
89 T_ADAFLAGS =
91 CC = cc
92 BISON = bison
93 BISONFLAGS =
94 ECHO = echo
95 LEX = flex
96 LEXFLAGS =
97 CHMOD = chmod
98 LN = ln
99 LN_S = ln -s
100 CP = cp -p
101 MV = mv -f
102 RM = rm -f
103 RMDIR = rm -rf
104 MKDIR = mkdir -p
105 AR = ar
106 AR_FLAGS = rc
107 LS = ls
108 RANLIB = @RANLIB@
109 RANLIB_FLAGS = @ranlib_flags@
111 SHELL = @SHELL@
112 PWD_COMMAND = $${PWDCMD-pwd}
113 # How to copy preserving the date
114 INSTALL_DATA_DATE = cp -p
115 MAKEINFO = makeinfo
116 TEXI2DVI = texi2dvi
117 GNATBIND = $(STAGE_PREFIX)gnatbind
118 GNATBIND_FLAGS = -static -x
119 ADA_CFLAGS =
120 ADAFLAGS = -W -Wall -gnatpg -gnata
121 SOME_ADAFLAGS =-gnata
122 FORCE_DEBUG_ADAFLAGS = -g
123 GNATLIBFLAGS = -gnatpg -nostdinc
124 GNATLIBCFLAGS = -g -O2
125 GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
126 -DIN_RTS
127 ALL_ADA_CFLAGS = $(X_ADA_CFLAGS) $(T_ADA_CFLAGS) $(ADA_CFLAGS)
128 ALL_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \
129 $(ADAFLAGS)
130 MOST_ADAFLAGS = $(CFLAGS) $(ALL_ADA_CFLAGS) $(X_ADAFLAGS) $(T_ADAFLAGS) \
131 $(SOME_ADAFLAGS)
132 THREAD_KIND = native
133 THREADSLIB =
134 GMEM_LIB =
135 MISCLIB =
136 SYMDEPS = $(LIBINTL_DEP)
137 OUTPUT_OPTION = @OUTPUT_OPTION@
139 objext = .o
140 exeext =
141 arext = .a
142 soext = .so
143 shext =
144 hyphen = -
146 # Define this as & to perform parallel make on a Sequent.
147 # Note that this has some bugs, and it seems currently necessary
148 # to compile all the gen* files first by hand to avoid erroneous results.
151 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
152 # It omits XCFLAGS, and specifies -B./.
153 # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
154 GCC_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)
156 # Tools to use when building a cross-compiler.
157 # These are used because `configure' appends `cross-make'
158 # to the makefile when making a cross-compiler.
160 # We don't use cross-make. Instead we use the tools from the build tree,
161 # if they are available.
162 # program_transform_name and objdir are set by configure.in.
163 program_transform_name =
164 objdir = .
166 target_alias=@target_alias@
167 target=@target@
168 xmake_file = @xmake_file@
169 tmake_file = @tmake_file@
170 host_canonical=@host@
171 #version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < $(srcdir)/version.c`
172 #mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c`
174 # Directory where sources are, from where we are.
175 srcdir = @srcdir@
176 VPATH = $(srcdir)
178 fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND})
179 fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/
180 fcurdir := $(shell ${PWD_COMMAND})
181 fcurpfx := $(shell ${PWD_COMMAND})/
183 # Top build directory, relative to here.
184 top_builddir = ../..
186 # Internationalization library.
187 LIBINTL = @LIBINTL@
188 LIBINTL_DEP = @LIBINTL_DEP@
190 # Any system libraries needed just for GNAT.
191 SYSLIBS = @GNAT_LIBEXC@
193 # List of extra object files linked in with various programs.
194 EXTRA_GNATTOOLS_OBJS = ../../prefix.o ../../version.o
196 # List of target dependent sources, overridden below as necessary
197 TARGET_ADA_SRCS =
199 # Type of tools build we are doing; default is not compiling tools.
200 TOOLSCASE =
202 # End of variables for you to override.
204 all: all.indirect
206 # This tells GNU Make version 3 not to put all variables in the environment.
207 .NOEXPORT:
209 # tmake_file and xmake_file expand to lists with entries of the form
210 # $(srcdir)/config/... but here $(srcdir) is the ada subdirectory so we
211 # need to adjust the paths. There can't be spaces in the subst arguments
212 # or we get spurious spaces in the actual list of files to include.
214 # target overrides
215 ifneq ($(tmake_file),)
216 include $(subst /config,/../config,$(tmake_file))
217 endif
219 # host overrides
220 ifneq ($(xmake_file),)
221 include $(subst /config,/../config,$(xmake_file))
222 endif
224 # Now figure out from those variables how to compile and link.
226 all.indirect: Makefile ../gnat1$(exeext)
228 # IN_GCC distinguishes between code compiled into GCC itself and other
229 # programs built during a bootstrap.
230 # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler.
231 INTERNAL_CFLAGS = @CROSS@ -DIN_GCC
233 # This is the variable actually used when we compile.
234 LOOSE_CFLAGS = `echo $(CFLAGS) $(WARN2_CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
235 ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_CFLAGS) \
236 $(XCFLAGS)
238 # Likewise.
239 ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
241 # This is where we get libiberty.a from.
242 LIBIBERTY = ../../libiberty/libiberty.a
244 # How to link with both our special library facilities
245 # and the system's installed libraries.
246 LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
247 LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
248 # Default is no TGT_LIB; one might be passed down or something
249 TGT_LIB =
250 TOOLS_LIBS = $(LIBGNAT) $(EXTRA_GNATTOOLS_OBJS) link.o ../../../libiberty/libiberty.a $(SYSLIBS) $(TGT_LIB)
252 # Specify the directories to be searched for header files.
253 # Both . and srcdir are used, in that order,
254 # so that tm.h and config.h will be found in the compilation
255 # subdirectory rather than in the source directory.
256 INCLUDES = -I- -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config \
257 -I$(srcdir)/../../include
259 ADA_INCLUDES = -I- -I. -I$(srcdir)
261 INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir) -I$(fsrcdir)/../config \
262 -I$(fsrcdir)/../../include -I$(fsrcdir)/..
263 ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)
265 # Avoid a lot of time thinking about remaking Makefile.in and *.def.
266 .SUFFIXES: .in .def
268 # Say how to compile Ada programs.
269 .SUFFIXES: .ada .adb .ads .asm
271 # Always use -I$(srcdir)/config when compiling.
272 .asm.o:
273 $(CC) -c -x assembler $< $(OUTPUT_OPTION)
275 .c.o:
276 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< \
277 $(OUTPUT_OPTION)
279 .adb.o:
280 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
282 .ads.o:
283 $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
285 # how to regenerate this file
286 Makefile: ../config.status $(srcdir)/Makefile.in $(srcdir)/../version.c
287 cd ..; \
288 LANGUAGES="$(CONFIG_LANGUAGES)" \
289 CONFIG_HEADERS= \
290 CONFIG_FILES=ada/Makefile $(SHELL) config.status
292 # This tells GNU make version 3 not to export all the variables
293 # defined in this file into the environment.
294 .NOEXPORT:
296 # Lists of files for various purposes.
298 GNATLINK_OBJS = gnatlink.o \
299 a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o gnatvsn.o \
300 hostparm.o indepsw.o interfac.o i-c.o i-cstrin.o namet.o opt.o osint.o output.o rident.o \
301 s-exctab.o s-secsta.o s-stalib.o s-stoele.o sdefault.o stylesw.o switch.o system.o \
302 table.o tree_io.o types.o validsw.o widechar.o
304 GNATMAKE_OBJS = a-except.o ctrl_c.o ali.o ali-util.o s-casuti.o \
305 alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o\
306 erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o \
307 gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o \
308 make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o mlib-utl.o \
309 namet.o nlists.o opt.o osint.o osint-m.o output.o \
310 prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o prj-err.o prj-ext.o prj-nmsc.o \
311 prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o \
312 rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o \
313 scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o \
314 sinfo.o sinput.o sinput-c.o sinput-p.o \
315 snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o switch.o switch-m.o \
316 table.o targparm.o tempdir.o tree_io.o types.o \
317 uintp.o uname.o urealp.o usage.o widechar.o \
318 $(EXTRA_GNATMAKE_OBJS)
320 # Convert the target variable into a space separated list of architecture,
321 # manufacturer, and operating system and assign each of those to its own
322 # variable.
324 host:=$(subst -, ,$(host_canonical))
325 targ:=$(subst -, ,$(target))
326 arch:=$(word 1,$(targ))
327 ifeq ($(words $(targ)),2)
328 manu:=
329 osys:=$(word 2,$(targ))
330 else
331 manu:=$(word 2,$(targ))
332 osys:=$(word 3,$(targ))
333 endif
335 # LIBGNAT_TARGET_PAIRS is a list of pairs of filenames.
336 # The members of each pair must be separated by a '<' and no whitespace.
337 # Each pair must be separated by some amount of whitespace from the following
338 # pair.
340 # Non-tasking case:
342 LIBGNAT_TARGET_PAIRS = \
343 a-intnam.ads<a-intnam-dummy.ads \
344 s-inmaop.adb<s-inmaop-dummy.adb \
345 s-intman.adb<s-intman-dummy.adb \
346 s-osinte.ads<s-osinte-dummy.ads \
347 s-osprim.adb<s-osprim-posix.adb \
348 s-taprop.adb<s-taprop-dummy.adb \
349 s-taspri.ads<s-taspri-dummy.ads
351 # Default shared object option. Note that we rely on the fact that the "soname"
352 # option will always be present and last in this flag, so that we can have
353 # $(SO_OPTS)libgnat-x.xx
355 SO_OPTS = -Wl,-soname,
357 # Default gnatlib-shared target.
358 # By default, equivalent to gnatlib.
359 # Set to gnatlib-shared-default, gnatlib-shared-dual, or a platform specific
360 # target when supported.
361 GNATLIB_SHARED = gnatlib
363 # default value for gnatmake's target dependent file
364 MLIB_TGT = mlib-tgt
366 # By default, do not distribute prefix.o (in libgccprefix), since it is only
367 # needed by external GNAT tools such as gnatdist and Glide.
368 # Override this variable on native platforms when needed.
369 PREFIX_OBJS =
371 # To avoid duplicate code, use this variable to set PREFIX_OBJS when needed:
372 PREFIX_REAL_OBJS = ../prefix.o \
373 ../../libiberty/concat.o \
374 ../../libiberty/xmalloc.o \
375 ../../libiberty/xstrdup.o \
376 ../../libiberty/xexit.o
378 LIB_VERSION = $(strip $(shell grep ' Library_Version :' $(fsrcpfx)gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
380 # $(filter-out PATTERN...,TEXT) removes all PATTERN words from TEXT.
381 # $(strip STRING) removes leading and trailing spaces from STRING.
382 # If what's left is null then it's a match.
384 ifeq ($(strip $(filter-out %86 os2 OS2 os2_emx,$(arch) $(osys))),)
385 LIBGNAT_TARGET_PAIRS = \
386 a-excpol.adb<a-excpol-abort.adb \
387 a-intnam.ads<a-intnam-dummy.ads \
388 a-numaux.adb<a-numaux-x86.adb \
389 a-numaux.ads<a-numaux-x86.ads \
390 s-inmaop.adb<s-inmaop-dummy.adb \
391 s-interr.adb<s-interr-dummy.adb \
392 s-intman.adb<s-intman-dummy.adb \
393 s-osinte.adb<s-osinte-os2.adb \
394 s-osinte.ads<s-osinte-os2.ads \
395 s-osprim.adb<s-osprim-os2.adb \
396 s-parame.adb<s-parame-os2.adb \
397 system.ads<system-os2.ads \
398 s-taprop.adb<s-taprop-os2.adb \
399 s-taspri.ads<s-taspri-os2.ads
401 EXTRA_GNATRTL_NONTASKING_OBJS = \
402 i-os2err.o \
403 i-os2lib.o \
404 i-os2syn.o \
405 i-os2thr.o
406 endif
408 ifeq ($(strip $(filter-out %86 interix%,$(arch) $(osys))),)
409 LIBGNAT_TARGET_PAIRS = \
410 a-excpol.adb<a-excpol-interix.adb \
411 a-intnam.ads<a-intnam-interix.ads \
412 a-numaux.adb<a-numaux-x86.adb \
413 a-numaux.ads<a-numaux-x86.ads \
414 g-soccon.ads<g-soccon-interix.ads \
415 s-inmaop.adb<s-inmaop-posix.adb \
416 s-intman.adb<s-intman-posix.adb \
417 s-osinte.adb<s-osinte-fsu.adb \
418 s-osinte.ads<s-osinte-interix.ads \
419 s-osprim.adb<s-osprim-unix.adb \
420 s-taprop.adb<s-taprop-posix.adb \
421 system.ads<system-interix.ads \
422 s-taspri.ads<s-taspri-posix.ads \
423 s-tpopsp.adb<s-tpopsp-posix.adb
425 THREADSLIB = -lgthreads -lmalloc
426 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
427 endif
429 # sysv5uw is SCO UnixWare 7
430 ifeq ($(strip $(filter-out %86 sysv5uw%,$(arch) $(osys))),)
431 LIBGNAT_TARGET_PAIRS = \
432 a-excpol.adb<a-excpol-abort.adb \
433 a-intnam.ads<a-intnam-unixware.ads \
434 a-numaux.adb<a-numaux-x86.adb \
435 a-numaux.ads<a-numaux-x86.ads \
436 s-inmaop.adb<s-inmaop-posix.adb \
437 s-intman.adb<s-intman-posix.adb \
438 s-osinte.ads<s-osinte-unixware.ads \
439 s-osinte.adb<s-osinte-unixware.adb \
440 s-osprim.adb<s-osprim-unix.adb \
441 s-taprop.adb<s-taprop-posix.adb \
442 s-taspri.ads<s-taspri-posix.ads \
443 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
444 system.ads<system-unixware.ads \
445 g-soccon.ads<g-soccon-unixware.ads \
446 g-soliop.ads<g-soliop-unixware.ads
448 THREADSLIB = -lthread
449 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
450 SO_OPTS = -Wl,-h,
451 GNATLIB_SHARED = gnatlib-shared-dual
452 LIBRARY_VERSION := $(LIB_VERSION)
453 endif
455 ifeq ($(strip $(filter-out alpha% dec vx%,$(targ))),)
456 LIBGNAT_TARGET_PAIRS = \
457 a-intnam.ads<a-intnam-vxworks.ads \
458 a-numaux.ads<a-numaux-vxworks.ads \
459 s-inmaop.adb<s-inmaop-posix.adb \
460 s-interr.adb<s-interr-vxworks.adb \
461 s-intman.ads<s-intman-vxworks.ads \
462 s-intman.adb<s-intman-vxworks.adb \
463 s-osinte.adb<s-osinte-vxworks.adb \
464 s-osinte.ads<s-osinte-vxworks.ads \
465 s-osprim.adb<s-osprim-vxworks.adb \
466 s-parame.ads<s-parame-vxworks.ads \
467 s-stchop.adb<s-stchop-vxworks.adb \
468 s-taprop.adb<s-taprop-vxworks.adb \
469 s-tpopsp.adb<s-tpopsp-vxworks.adb \
470 s-taspri.ads<s-taspri-vxworks.ads \
471 s-vxwork.ads<s-vxwork-alpha.ads \
472 g-soccon.ads<g-soccon-vxworks.ads \
473 g-socthi.ads<g-socthi-vxworks.ads \
474 g-socthi.adb<g-socthi-vxworks.adb \
475 system.ads<system-vxworks-alpha.ads
477 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
478 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
479 endif
481 ifeq ($(strip $(filter-out m68k% wrs vx%,$(targ))),)
482 LIBGNAT_TARGET_PAIRS = \
483 a-intnam.ads<a-intnam-vxworks.ads \
484 a-numaux.ads<a-numaux-vxworks.ads \
485 s-inmaop.adb<s-inmaop-posix.adb \
486 s-interr.adb<s-interr-vxworks.adb \
487 s-intman.ads<s-intman-vxworks.ads \
488 s-intman.adb<s-intman-vxworks.adb \
489 s-osinte.adb<s-osinte-vxworks.adb \
490 s-osinte.ads<s-osinte-vxworks.ads \
491 s-osprim.adb<s-osprim-vxworks.adb \
492 s-parame.ads<s-parame-vxworks.ads \
493 s-stchop.adb<s-stchop-vxworks.adb \
494 s-taprop.adb<s-taprop-vxworks.adb \
495 s-taspri.ads<s-taspri-vxworks.ads \
496 s-tpopsp.adb<s-tpopsp-vxworks.adb \
497 s-vxwork.ads<s-vxwork-m68k.ads \
498 g-soccon.ads<g-soccon-vxworks.ads \
499 g-socthi.ads<g-socthi-vxworks.ads \
500 g-socthi.adb<g-socthi-vxworks.adb \
501 system.ads<system-vxworks-m68k.ads
503 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-vxworks.adb
505 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
506 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
508 ifeq ($(strip $(filter-out yes,$(TRACE))),)
509 LIBGNAT_TARGET_PAIRS += \
510 s-traces.adb<s-traces-default.adb \
511 s-tratas.adb<s-tratas-default.adb \
512 s-trafor.adb<s-trafor-default.adb \
513 s-trafor.ads<s-trafor-default.ads \
514 s-tfsetr.adb<s-tfsetr-vxworks.adb
515 endif
516 endif
518 ifeq ($(strip $(filter-out powerpc% wrs vxworks,$(targ))),)
519 LIBGNAT_TARGET_PAIRS = \
520 a-intnam.ads<a-intnam-vxworks.ads \
521 a-numaux.ads<a-numaux-vxworks.ads \
522 s-inmaop.adb<s-inmaop-posix.adb \
523 s-interr.adb<s-interr-vxworks.adb \
524 s-intman.ads<s-intman-vxworks.ads \
525 s-intman.adb<s-intman-vxworks.adb \
526 s-osinte.adb<s-osinte-vxworks.adb \
527 s-osinte.ads<s-osinte-vxworks.ads \
528 s-osprim.adb<s-osprim-vxworks.adb \
529 s-parame.ads<s-parame-vxworks.ads \
530 s-stchop.adb<s-stchop-vxworks.adb \
531 s-taprop.adb<s-taprop-vxworks.adb \
532 s-taspri.ads<s-taspri-vxworks.ads \
533 s-tpopsp.adb<s-tpopsp-vxworks.adb \
534 s-vxwork.ads<s-vxwork-ppc.ads \
535 g-soccon.ads<g-soccon-vxworks.ads \
536 g-socthi.ads<g-socthi-vxworks.ads \
537 g-socthi.adb<g-socthi-vxworks.adb \
538 system.ads<system-vxworks-ppc.ads
540 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-vxworks.adb
542 ifeq ($(strip $(filter-out yes,$(TRACE))),)
543 LIBGNAT_TARGET_PAIRS += \
544 s-traces.adb<s-traces-default.adb \
545 s-trafor.adb<s-trafor-default.adb \
546 s-trafor.ads<s-trafor-default.ads \
547 s-tratas.adb<s-tratas-default.adb \
548 s-tfsetr.adb<s-tfsetr-vxworks.adb
549 endif
551 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o s-vxwexc.o
552 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
553 endif
555 ifeq ($(strip $(filter-out sparc% wrs vx%,$(targ))),)
556 LIBGNAT_TARGET_PAIRS = \
557 a-intnam.ads<a-intnam-vxworks.ads \
558 a-numaux.ads<a-numaux-vxworks.ads \
559 s-inmaop.adb<s-inmaop-posix.adb \
560 s-interr.adb<s-interr-vxworks.adb \
561 s-intman.ads<s-intman-vxworks.ads \
562 s-intman.adb<s-intman-vxworks.adb \
563 s-osinte.adb<s-osinte-vxworks.adb \
564 s-osinte.ads<s-osinte-vxworks.ads \
565 s-osprim.adb<s-osprim-vxworks.adb \
566 s-parame.ads<s-parame-vxworks.ads \
567 s-stchop.adb<s-stchop-vxworks.adb \
568 s-taprop.adb<s-taprop-vxworks.adb \
569 s-taspri.ads<s-taspri-vxworks.ads \
570 s-tpopsp.adb<s-tpopsp-vxworks.adb \
571 s-vxwork.ads<s-vxwork-sparcv9.ads \
572 g-soccon.ads<g-soccon-vxworks.ads \
573 g-socthi.ads<g-socthi-vxworks.ads \
574 g-socthi.adb<g-socthi-vxworks.adb \
575 system.ads<system-vxworks-sparcv9.ads \
577 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-vxworks.adb
579 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
580 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
581 endif
583 ifeq ($(strip $(filter-out %86 wrs vxworks,$(targ))),)
584 LIBGNAT_TARGET_PAIRS = \
585 a-intnam.ads<a-intnam-vxworks.ads \
586 i-vxwork.ads<i-vxwork-x86.ads \
587 s-inmaop.adb<s-inmaop-posix.adb \
588 s-interr.adb<s-interr-vxworks.adb \
589 s-intman.ads<s-intman-vxworks.ads \
590 s-intman.adb<s-intman-vxworks.adb \
591 a-numaux.adb<a-numaux-x86.adb \
592 a-numaux.ads<a-numaux-x86.ads \
593 s-osinte.adb<s-osinte-vxworks.adb \
594 s-osinte.ads<s-osinte-vxworks.ads \
595 s-osprim.adb<s-osprim-vxworks.adb \
596 s-parame.ads<s-parame-vxworks.ads \
597 s-stchop.adb<s-stchop-vxworks.adb \
598 s-taprop.adb<s-taprop-vxworks.adb \
599 s-taspri.ads<s-taspri-vxworks.ads \
600 s-tpopsp.adb<s-tpopsp-vxworks.adb \
601 s-vxwork.ads<s-vxwork-x86.ads \
602 g-soccon.ads<g-soccon-vxworks.ads \
603 g-socthi.ads<g-socthi-vxworks.ads \
604 g-socthi.adb<g-socthi-vxworks.adb \
605 system.ads<system-vxworks-x86.ads
607 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-vxworks.adb
609 ifeq ($(strip $(filter-out yes,$(TRACE))),)
610 LIBGNAT_TARGET_PAIRS += \
611 s-traces.adb<s-traces-default.adb \
612 s-trafor.adb<s-trafor-default.adb \
613 s-trafor.ads<s-trafor-default.ads \
614 s-tratas.adb<s-tratas-default.adb \
615 s-tfsetr.adb<s-tfsetr-vxworks.adb
616 endif
618 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
619 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
620 endif
622 ifeq ($(strip $(filter-out arm% coff wrs vx%,$(targ))),)
623 LIBGNAT_TARGET_PAIRS = \
624 a-intnam.ads<a-intnam-vxworks.ads \
625 a-numaux.ads<a-numaux-vxworks.ads \
626 s-inmaop.adb<s-inmaop-posix.adb \
627 s-interr.adb<s-interr-vxworks.adb \
628 s-intman.ads<s-intman-vxworks.ads \
629 s-intman.adb<s-intman-vxworks.adb \
630 s-osinte.adb<s-osinte-vxworks.adb \
631 s-osinte.ads<s-osinte-vxworks.ads \
632 s-osprim.adb<s-osprim-vxworks.adb \
633 s-parame.ads<s-parame-vxworks.ads \
634 s-stchop.adb<s-stchop-vxworks.adb \
635 s-taprop.adb<s-taprop-vxworks.adb \
636 s-taspri.ads<s-taspri-vxworks.ads \
637 s-tpopsp.adb<s-tpopsp-vxworks.adb \
638 s-vxwork.ads<s-vxwork-arm.ads \
639 g-soccon.ads<g-soccon-vxworks.ads \
640 g-socthi.ads<g-socthi-vxworks.ads \
641 g-socthi.adb<g-socthi-vxworks.adb \
642 system.ads<system-vxworks-arm.ads
644 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-vxworks.adb
646 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
647 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
648 endif
650 ifeq ($(strip $(filter-out mips% wrs vx%,$(targ))),)
651 LIBGNAT_TARGET_PAIRS = \
652 a-intnam.ads<a-intnam-vxworks.ads \
653 a-numaux.ads<a-numaux-vxworks.ads \
654 s-inmaop.adb<s-inmaop-posix.adb \
655 s-interr.adb<s-interr-vxworks.adb \
656 s-intman.ads<s-intman-vxworks.ads \
657 s-intman.adb<s-intman-vxworks.adb \
658 s-osinte.adb<s-osinte-vxworks.adb \
659 s-osinte.ads<s-osinte-vxworks.ads \
660 s-osprim.adb<s-osprim-vxworks.adb \
661 s-parame.ads<s-parame-vxworks.ads \
662 s-stchop.adb<s-stchop-vxworks.adb \
663 s-taprop.adb<s-taprop-vxworks.adb \
664 s-taspri.ads<s-taspri-vxworks.ads \
665 s-tpopsp.adb<s-tpopsp-vxworks.adb \
666 s-vxwork.ads<s-vxwork-mips.ads \
667 g-soccon.ads<g-soccon-vxworks.ads \
668 g-socthi.ads<g-socthi-vxworks.ads \
669 g-socthi.adb<g-socthi-vxworks.adb \
670 system.ads<system-vxworks-mips.ads
672 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-vxworks.adb
674 EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o
675 EXTRA_GNATRTL_TASKING_OBJS=s-vxwork.o
676 endif
678 ifeq ($(strip $(filter-out sparc sun solaris%,$(targ))),)
679 LIBGNAT_TARGET_PAIRS = \
680 a-intnam.ads<a-intnam-solaris.ads \
681 s-inmaop.adb<s-inmaop-posix.adb \
682 s-intman.adb<s-intman-solaris.adb \
683 s-osinte.adb<s-osinte-solaris.adb \
684 s-osinte.ads<s-osinte-solaris.ads \
685 s-osprim.adb<s-osprim-solaris.adb \
686 s-parame.adb<s-parame-solaris.adb \
687 s-taprop.adb<s-taprop-solaris.adb \
688 s-tasinf.adb<s-tasinf-solaris.adb \
689 s-tasinf.ads<s-tasinf-solaris.ads \
690 s-taspri.ads<s-taspri-solaris.ads \
691 s-tpopsp.adb<s-tpopsp-solaris.adb \
692 g-soccon.ads<g-soccon-solaris.ads \
693 g-soliop.ads<g-soliop-solaris.ads \
694 system.ads<system-solaris-sparc.ads
696 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-solaris.adb
698 THREADSLIB = -lposix4 -lthread
699 MISCLIB = -lposix4 -lnsl -lsocket
700 SO_OPTS = -Wl,-h,
701 GNATLIB_SHARED = gnatlib-shared-dual
702 GMEM_LIB = gmemlib
703 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
704 LIBRARY_VERSION := $(LIB_VERSION)
706 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
707 LIBGNAT_TARGET_PAIRS = \
708 a-intnam.ads<a-intnam-solaris.ads \
709 s-inmaop.adb<s-inmaop-posix.adb \
710 s-intman.adb<s-intman-solaris.adb \
711 s-osinte.adb<s-osinte-fsu.adb \
712 s-osinte.ads<s-osinte-solaris-fsu.ads \
713 s-osprim.adb<s-osprim-solaris.adb \
714 s-taprop.adb<s-taprop-posix.adb \
715 s-taspri.ads<s-taspri-posix.ads \
716 s-tpopsp.adb<s-tpopsp-posix.adb \
717 g-soccon.ads<g-soccon-solaris.ads \
718 g-soliop.ads<g-soliop-solaris.ads \
719 system.ads<system-solaris-sparc.ads
721 THREADSLIB = -lgthreads -lmalloc
722 endif
724 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
725 LIBGNAT_TARGET_PAIRS = \
726 a-intnam.ads<a-intnam-solaris.ads \
727 s-inmaop.adb<s-inmaop-posix.adb \
728 s-intman.adb<s-intman-posix.adb \
729 s-osinte.adb<s-osinte-posix.adb \
730 s-osinte.ads<s-osinte-solaris-posix.ads \
731 s-osprim.adb<s-osprim-solaris.adb \
732 s-taprop.adb<s-taprop-posix.adb \
733 s-taspri.ads<s-taspri-posix.ads \
734 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
735 g-soccon.ads<g-soccon-solaris.ads \
736 g-soliop.ads<g-soliop-solaris.ads \
737 system.ads<system-solaris-sparc.ads
739 THREADSLIB = -lposix4 -lpthread
740 endif
742 ifeq ($(strip $(filter-out m64,$(THREAD_KIND))),)
743 LIBGNAT_TARGET_PAIRS = \
744 a-intnam.ads<a-intnam-solaris.ads \
745 s-inmaop.adb<s-inmaop-posix.adb \
746 s-intman.adb<s-intman-solaris.adb \
747 s-osinte.adb<s-osinte-solaris.adb \
748 s-osinte.ads<s-osinte-solaris.ads \
749 s-osprim.adb<s-osprim-solaris.adb \
750 s-parame.adb<s-parame-solaris.adb \
751 s-taprop.adb<s-taprop-solaris.adb \
752 s-tasinf.adb<s-tasinf-solaris.adb \
753 s-tasinf.ads<s-tasinf-solaris.ads \
754 s-taspri.ads<s-taspri-solaris.ads \
755 s-tpopsp.adb<s-tpopsp-solaris.adb \
756 g-soccon.ads<g-soccon-solaris.ads \
757 g-soliop.ads<g-soliop-solaris.ads \
758 system.ads<system-solaris-sparcv9.ads
759 endif
760 endif
762 ifeq ($(strip $(filter-out %86 solaris2%,$(arch) $(osys))),)
763 LIBGNAT_TARGET_PAIRS = \
764 a-numaux.adb<a-numaux-x86.adb \
765 a-numaux.ads<a-numaux-x86.ads \
766 a-intnam.ads<a-intnam-solaris.ads \
767 s-inmaop.adb<s-inmaop-posix.adb \
768 s-intman.adb<s-intman-solaris.adb \
769 s-osinte.adb<s-osinte-solaris.adb \
770 s-osinte.ads<s-osinte-solaris.ads \
771 s-osprim.adb<s-osprim-solaris.adb \
772 s-parame.adb<s-parame-solaris.adb \
773 s-taprop.adb<s-taprop-solaris.adb \
774 s-tasinf.adb<s-tasinf-solaris.adb \
775 s-tasinf.ads<s-tasinf-solaris.ads \
776 s-taspri.ads<s-taspri-solaris.ads \
777 s-tpopsp.adb<s-tpopsp-solaris.adb \
778 g-soccon.ads<g-soccon-solaris.ads \
779 g-soliop.ads<g-soliop-solaris.ads \
780 system.ads<system-solaris-x86.ads
782 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-solaris.adb
784 THREADSLIB = -lposix4 -lthread
785 MISCLIB = -lposix4 -lnsl -lsocket
786 SO_OPTS = -Wl,-h,
787 GNATLIB_SHARED = gnatlib-shared-dual
788 GMEM_LIB = gmemlib
789 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
790 LIBRARY_VERSION := $(LIB_VERSION)
791 endif
793 ifeq ($(strip $(filter-out %86 linux%,$(arch) $(osys))),)
794 LIBGNAT_TARGET_PAIRS = \
795 a-intnam.ads<a-intnam-linux.ads \
796 a-numaux.adb<a-numaux-x86.adb \
797 a-numaux.ads<a-numaux-x86.ads \
798 s-inmaop.adb<s-inmaop-posix.adb \
799 s-intman.adb<s-intman-posix.adb \
800 s-osinte.adb<s-osinte-posix.adb \
801 s-osinte.ads<s-osinte-linux.ads \
802 s-osprim.adb<s-osprim-posix.adb \
803 s-taprop.adb<s-taprop-linux.adb \
804 s-taspri.ads<s-taspri-posix.ads \
805 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
806 s-parame.adb<s-parame-linux.adb \
807 system.ads<system-linux-x86.ads
809 TOOLS_TARGET_PAIRS = \
810 mlib-tgt.adb<mlib-tgt-linux.adb \
811 indepsw.adb<indepsw-gnu.adb
813 THREADSLIB = -lpthread
814 GNATLIB_SHARED = gnatlib-shared-dual
815 GMEM_LIB = gmemlib
816 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
817 LIBRARY_VERSION := $(LIB_VERSION)
819 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
820 LIBGNAT_TARGET_PAIRS = \
821 a-intnam.ads<a-intnam-linux.ads \
822 a-numaux.adb<a-numaux-x86.adb \
823 a-numaux.ads<a-numaux-x86.ads \
824 s-inmaop.adb<s-inmaop-posix.adb \
825 s-intman.adb<s-intman-posix.adb \
826 s-osinte.adb<s-osinte-fsu.adb \
827 s-osinte.ads<s-osinte-linux-fsu.ads \
828 s-osprim.adb<s-osprim-posix.adb \
829 s-taprop.adb<s-taprop-posix.adb \
830 s-taspri.ads<s-taspri-posix.ads \
831 s-tpopsp.adb<s-tpopsp-posix.adb \
832 system.ads<system-linux-x86.ads
834 THREADSLIB = -lgthreads -lmalloc
835 endif
836 endif
838 ifeq ($(strip $(filter-out %86 freebsd%,$(arch) $(osys))),)
839 LIBGNAT_TARGET_PAIRS = \
840 a-intnam.ads<a-intnam-freebsd.ads \
841 a-numaux.adb<a-numaux-x86.adb \
842 a-numaux.ads<a-numaux-x86.ads \
843 g-soccon.ads<g-soccon-freebsd.ads \
844 s-inmaop.adb<s-inmaop-posix.adb \
845 s-intman.adb<s-intman-posix.adb \
846 s-osinte.adb<s-osinte-freebsd.adb \
847 s-osinte.ads<s-osinte-freebsd.ads \
848 s-osprim.adb<s-osprim-posix.adb \
849 s-taprop.adb<s-taprop-posix.adb \
850 s-taspri.ads<s-taspri-posix.ads \
851 s-tpopsp.adb<s-tpopsp-posix.adb \
852 system.ads<system-freebsd-x86.ads
854 TOOLS_TARGET_PAIRS = \
855 mlib-tgt.adb<mlib-tgt-linux.adb
856 GNATLIB_SHARED = gnatlib-shared-dual
858 THREADSLIB= -lc_r
859 GMEM_LIB = gmemlib
860 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
861 LIBRARY_VERSION := $(LIB_VERSION)
862 endif
864 ifeq ($(strip $(filter-out s390% linux%,$(arch) $(osys))),)
865 ifeq ($(strip $(filter-out s390x,$(arch))),)
866 LIBGNAT_TARGET_PAIRS = \
867 a-intnam.ads<a-intnam-linux.ads \
868 s-inmaop.adb<s-inmaop-posix.adb \
869 s-intman.adb<s-intman-posix.adb \
870 s-osinte.adb<s-osinte-posix.adb \
871 s-osinte.ads<s-osinte-linux.ads \
872 s-osprim.adb<s-osprim-posix.adb \
873 s-taprop.adb<s-taprop-linux.adb \
874 s-taspri.ads<s-taspri-posix.ads \
875 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
876 s-parame.adb<s-parame-linux.adb \
877 system.ads<system-linux-s390x.ads
878 else
879 LIBGNAT_TARGET_PAIRS = \
880 a-intnam.ads<a-intnam-linux.ads \
881 s-inmaop.adb<s-inmaop-posix.adb \
882 s-intman.adb<s-intman-posix.adb \
883 s-osinte.adb<s-osinte-posix.adb \
884 s-osinte.ads<s-osinte-linux.ads \
885 s-osprim.adb<s-osprim-posix.adb \
886 s-taprop.adb<s-taprop-linux.adb \
887 s-taspri.ads<s-taspri-posix.ads \
888 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
889 s-parame.adb<s-parame-linux.adb \
890 system.ads<system-linux-s390.ads
891 endif
893 TOOLS_TARGET_PAIRS = \
894 mlib-tgt.adb<mlib-tgt-linux.adb
896 THREADSLIB = -lpthread
897 GNATLIB_SHARED = gnatlib-shared-dual
898 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
899 LIBRARY_VERSION := $(LIB_VERSION)
900 endif
902 ifeq ($(strip $(filter-out mips sgi irix%,$(targ))),)
903 ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
904 LIBGNAT_TARGET_PAIRS = \
905 a-intnam.ads<a-intnam-irix.ads \
906 s-inmaop.adb<s-inmaop-posix.adb \
907 s-intman.adb<s-intman-irix.adb \
908 s-mastop.adb<s-mastop-irix.adb \
909 s-osinte.adb<s-osinte-irix.adb \
910 s-osinte.ads<s-osinte-irix.ads \
911 s-osprim.adb<s-osprim-posix.adb \
912 s-proinf.adb<s-proinf-irix-athread.adb \
913 s-proinf.ads<s-proinf-irix-athread.ads \
914 s-taprop.adb<s-taprop-irix.adb \
915 s-tasinf.ads<s-tasinf-irix.ads \
916 s-taspri.ads<s-taspri-posix.ads \
917 s-tpopsp.adb<s-tpopsp-posix.adb \
918 s-traceb.adb<s-traceb-mastop.adb \
919 g-soccon.ads<g-soccon-irix.ads \
920 system.ads<system-irix-n32.ads
922 THREADSLIB = -lpthread
923 GNATLIB_SHARED = gnatlib-shared-default
925 else
926 LIBGNAT_TARGET_PAIRS = \
927 a-intnam.ads<a-intnam-irix.ads \
928 s-inmaop.adb<s-inmaop-dummy.adb \
929 s-interr.adb<s-interr-sigaction.adb \
930 s-intman.adb<s-intman-irix-athread.adb \
931 s-mastop.adb<s-mastop-irix.adb \
932 s-osinte.adb<s-osinte-irix.adb \
933 s-osinte.ads<s-osinte-irix-athread.ads \
934 s-osprim.adb<s-osprim-posix.adb \
935 s-proinf.adb<s-proinf-irix-athread.adb \
936 s-proinf.ads<s-proinf-irix-athread.ads \
937 s-taprop.adb<s-taprop-irix-athread.adb \
938 s-tasinf.adb<s-tasinf-irix-athread.adb \
939 s-tasinf.ads<s-tasinf-irix-athread.ads \
940 s-taspri.ads<s-taspri-posix.ads \
941 s-traceb.adb<s-traceb-mastop.adb \
942 g-soccon.ads<g-soccon-irix.ads \
943 system.ads<system-irix-o32.ads
944 endif
946 TOOLS_TARGET_PAIRS = mlib-tgt.adb<mlib-tgt-irix.adb
947 TGT_LIB = -lexc
948 MISCLIB = -lexc
949 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
950 LIBRARY_VERSION := $(LIB_VERSION)
951 endif
953 ifeq ($(strip $(filter-out hppa% hp hpux10%,$(targ))),)
954 LIBGNAT_TARGET_PAIRS = \
955 a-excpol.adb<a-excpol-abort.adb \
956 a-intnam.ads<a-intnam-hpux.ads \
957 s-inmaop.adb<s-inmaop-posix.adb \
958 s-interr.adb<s-interr-sigaction.adb \
959 s-intman.adb<s-intman-posix.adb \
960 s-osinte.adb<s-osinte-hpux-dce.adb \
961 s-osinte.ads<s-osinte-hpux-dce.ads \
962 s-parame.ads<s-parame-hpux.ads \
963 s-osprim.adb<s-osprim-posix.adb \
964 s-taprop.adb<s-taprop-hpux-dce.adb \
965 s-taspri.ads<s-taspri-hpux-dce.ads \
966 s-tpopsp.adb<s-tpopsp-posix.adb \
967 g-soccon.ads<g-soccon-hpux.ads \
968 system.ads<system-hpux.ads
970 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
971 endif
973 ifeq ($(strip $(filter-out hppa% hp hpux11%,$(targ))),)
974 LIBGNAT_TARGET_PAIRS = \
975 a-intnam.ads<a-intnam-hpux.ads \
976 s-inmaop.adb<s-inmaop-posix.adb \
977 s-intman.adb<s-intman-posix.adb \
978 s-osinte.adb<s-osinte-posix.adb \
979 s-osinte.ads<s-osinte-hpux.ads \
980 s-parame.ads<s-parame-hpux.ads \
981 s-osprim.adb<s-osprim-posix.adb \
982 s-traceb.adb<s-traceb-hpux.adb \
983 s-taprop.adb<s-taprop-posix.adb \
984 s-taspri.ads<s-taspri-posix.ads \
985 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
986 g-soccon.ads<g-soccon-hpux.ads \
987 system.ads<system-hpux.ads
989 TOOLS_TARGET_PAIRS = mlib-tgt.adb<mlib-tgt-hpux.adb
990 TGT_LIB = /usr/lib/libcl.a
991 THREADSLIB = -lpthread
992 GMEM_LIB = gmemlib
993 soext = .sl
994 SO_OPTS = -Wl,+h,
995 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
996 GNATLIB_SHARED = gnatlib-shared-dual
997 LIBRARY_VERSION := $(LIB_VERSION)
999 ifeq ($(strip $(filter-out dce DCE,$(THREAD_KIND))),)
1000 LIBGNAT_TARGET_PAIRS = \
1001 a-excpol.adb<a-excpol-abort.adb \
1002 a-intnam.ads<a-intnam-hpux.ads \
1003 s-inmaop.adb<s-inmaop-posix.adb \
1004 s-interr.adb<s-interr-sigaction.adb \
1005 s-intman.adb<s-intman-posix.adb \
1006 s-osinte.adb<s-osinte-hpux-dce.adb \
1007 s-osinte.ads<s-osinte-hpux-dce.ads \
1008 s-parame.ads<s-parame-hpux.ads \
1009 s-osprim.adb<s-osprim-posix.adb \
1010 s-taprop.adb<s-taprop-hpux-dce.adb \
1011 s-taspri.ads<s-taspri-hpux-dce.ads \
1012 s-tpopsp.adb<s-tpopsp-posix.adb \
1013 g-soccon.ads<g-soccon-hpux.ads \
1014 system.ads<system-hpux.ads
1016 TGT_LIB =
1017 THREADSLIB = -lcma
1018 endif
1019 endif
1021 ifeq ($(strip $(filter-out ibm aix%,$(manu) $(osys))),)
1022 LIBGNAT_TARGET_PAIRS = \
1023 a-intnam.ads<a-intnam-aix.ads \
1024 s-inmaop.adb<s-inmaop-posix.adb \
1025 s-intman.adb<s-intman-posix.adb \
1026 s-osinte.adb<s-osinte-aix.adb \
1027 s-osinte.ads<s-osinte-aix.ads \
1028 s-osprim.adb<s-osprim-posix.adb \
1029 s-taprop.adb<s-taprop-posix.adb \
1030 s-taspri.ads<s-taspri-posix.ads \
1031 s-tpopsp.adb<s-tpopsp-posix.adb \
1032 g-soccon.ads<g-soccon-aix.ads \
1033 system.ads<system-aix.ads
1035 THREADSLIB = -lpthreads
1036 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1038 ifeq ($(strip $(filter-out fsu FSU,$(THREAD_KIND))),)
1039 LIBGNAT_TARGET_PAIRS = \
1040 a-intnam.ads<a-intnam-aix.ads \
1041 s-inmaop.adb<s-inmaop-posix.adb \
1042 s-intman.adb<s-intman-posix.adb \
1043 s-osinte.adb<s-osinte-fsu.adb \
1044 s-osinte.ads<s-osinte-aix-fsu.ads \
1045 s-osprim.adb<s-osprim-posix.adb \
1046 s-taprop.adb<s-taprop-posix.adb \
1047 s-taspri.ads<s-taspri-posix.ads \
1048 s-tpopsp.adb<s-tpopsp-posix.adb \
1049 g-soccon.ads<g-soccon-aix.ads \
1050 system.ads<system-aix.ads
1052 THREADSLIB = -lgthreads -lmalloc
1053 endif
1055 TOOLS_TARGET_PAIRS = \
1056 mlib-tgt.adb<mlib-tgt-aix.adb \
1057 indepsw.adb<indepsw-aix.adb
1059 GMEM_LIB = gmemlib
1060 endif
1062 ifeq ($(strip $(filter-out lynxos,$(osys))),)
1063 TOOLS_TARGET_PAIRS = \
1064 mlib-tgt.adb<mlib-tgt-lynxos.adb \
1065 indepsw.adb<indepsw-gnu.adb
1067 ifeq ($(strip $(filter-out %86 lynxos,$(arch) $(osys))),)
1068 LIBGNAT_TARGET_PAIRS = \
1069 a-numaux.adb<a-numaux-x86.adb \
1070 a-numaux.ads<a-numaux-x86.ads \
1071 a-intnam.ads<a-intnam-lynxos.ads \
1072 s-inmaop.adb<s-inmaop-posix.adb \
1073 s-intman.adb<s-intman-posix.adb \
1074 s-osinte.adb<s-osinte-lynxos.adb \
1075 s-osinte.ads<s-osinte-lynxos.ads \
1076 s-osprim.adb<s-osprim-posix.adb \
1077 s-taprop.adb<s-taprop-lynxos.adb \
1078 s-taspri.ads<s-taspri-lynxos.ads \
1079 s-tpopsp.adb<s-tpopsp-lynxos.adb \
1080 system.ads<system-lynxos-x86.ads
1082 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1084 else
1085 LIBGNAT_TARGET_PAIRS = \
1086 a-intnam.ads<a-intnam-lynxos.ads \
1087 s-inmaop.adb<s-inmaop-posix.adb \
1088 s-intman.adb<s-intman-posix.adb \
1089 s-osinte.adb<s-osinte-lynxos-3.adb \
1090 s-osinte.ads<s-osinte-lynxos-3.ads \
1091 s-osprim.adb<s-osprim-posix.adb \
1092 s-taprop.adb<s-taprop-posix.adb \
1093 s-taspri.ads<s-taspri-posix.ads \
1094 s-tpopsp.adb<s-tpopsp-posix.adb \
1095 system.ads<system-lynxos-ppc.ads
1097 ifeq ($(strip $(filter-out pthread PTHREAD,$(THREAD_KIND))),)
1098 LIBGNAT_TARGET_PAIRS = \
1099 a-intnam.ads<a-intnam-lynxos.ads \
1100 s-inmaop.adb<s-inmaop-posix.adb \
1101 s-intman.adb<s-intman-posix.adb \
1102 s-osinte.adb<s-osinte-lynxos.adb \
1103 s-osinte.ads<s-osinte-lynxos.ads \
1104 s-osprim.adb<s-osprim-posix.adb \
1105 s-taprop.adb<s-taprop-lynxos.adb \
1106 s-taspri.ads<s-taspri-lynxos.ads \
1107 s-tpopsp.adb<s-tpopsp-lynxos.adb \
1108 system.ads<system-lynxos-ppc.ads
1109 endif
1110 endif
1111 endif
1113 ifeq ($(strip $(filter-out rtems%,$(osys))),)
1114 LIBGNAT_TARGET_PAIRS = \
1115 a-intnam.ads<a-intnam-rtems.ads \
1116 s-inmaop.adb<s-inmaop-posix.adb \
1117 s-intman.adb<s-intman-posix.adb \
1118 s-osinte.adb<s-osinte-rtems.adb \
1119 s-osinte.ads<s-osinte-rtems.ads \
1120 s-osprim.adb<s-osprim-posix.adb \
1121 s-parame.adb<s-parame-rtems.adb \
1122 s-taprop.adb<s-taprop-posix.adb \
1123 s-taspri.ads<s-taspri-posix.ads \
1124 s-tpopsp.adb<s-tpopsp-rtems.adb
1125 endif
1127 ifeq ($(strip $(filter-out alpha% dec osf%,$(targ))),)
1128 LIBGNAT_TARGET_PAIRS = \
1129 a-intnam.ads<a-intnam-tru64.ads \
1130 s-inmaop.adb<s-inmaop-posix.adb \
1131 s-intman.adb<s-intman-posix.adb \
1132 s-mastop.adb<s-mastop-tru64.adb \
1133 s-osinte.adb<s-osinte-tru64.adb \
1134 s-osinte.ads<s-osinte-tru64.ads \
1135 s-osprim.adb<s-osprim-unix.adb \
1136 s-taprop.adb<s-taprop-tru64.adb \
1137 s-tasinf.ads<s-tasinf-tru64.ads \
1138 s-taspri.ads<s-taspri-tru64.ads \
1139 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1140 s-traceb.adb<s-traceb-mastop.adb \
1141 g-soccon.ads<g-soccon-tru64.ads \
1142 system.ads<system-tru64.ads
1144 TOOLS_TARGET_PAIRS=mlib-tgt.adb<mlib-tgt-tru64.adb
1146 GMEM_LIB=gmemlib
1147 THREADSLIB = -lpthread -lmach -lexc -lrt
1148 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1149 GNATLIB_SHARED = gnatlib-shared-default
1150 LIBRARY_VERSION := $(LIB_VERSION)
1151 endif
1153 ifeq ($(strip $(filter-out alpha% ia64 dec hp vms% openvms% alphavms%,$(host))),)
1155 soext = .exe
1156 hyphen = _
1157 LN = cp -p
1158 LN_S = cp -p
1160 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1161 AR = iar
1162 endif
1164 .SUFFIXES: .sym
1166 .o.sym:
1167 @ gnu:[bin]vmssymvec $<
1168 endif
1170 ifeq ($(strip $(filter-out alpha% ia64 dec hp vms% openvms% alphavms%,$(targ))),)
1171 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1172 LIBGNAT_TARGET_PAIRS_AUX1 = \
1173 g-enblsp.adb<g-enblsp-vms-ia64.adb \
1174 s-auxdec.ads<s-auxdec-vms_64.ads \
1175 s-crtl.ads<s-crtl-vms64.ads \
1176 s-osinte.adb<s-osinte-vms-ia64.adb \
1177 s-osinte.ads<s-osinte-vms-ia64.ads \
1178 system.ads<system-vms_64.ads
1179 else
1180 ifeq ($(strip $(filter-out alpha% dec vms% openvms% alphavms%,$(targ))),)
1181 LIBGNAT_TARGET_PAIRS_AUX1 = \
1182 g-enblsp.adb<g-enblsp-vms-alpha.adb \
1183 s-asthan.adb<s-asthan-vms-alpha.adb \
1184 s-crtl.ads<s-crtl-vms.ads \
1185 s-osinte.adb<s-osinte-vms.adb \
1186 s-osinte.ads<s-osinte-vms.ads \
1187 s-vaflop.adb<s-vaflop-vms-alpha.adb \
1188 system.ads<system-vms-zcx.ads
1189 endif
1190 endif
1191 ifeq ($(strip $(filter-out express EXPRESS,$(THREAD_KIND))),)
1192 LIBGNAT_TARGET_PAIRS_AUX2 = \
1193 s-parame.ads<s-parame-vms-restrict.ads
1194 else
1195 LIBGNAT_TARGET_PAIRS_AUX2 = \
1196 s-parame.ads<s-parame-vms.ads
1197 endif
1199 LIBGNAT_TARGET_PAIRS = \
1200 a-caldel.adb<a-caldel-vms.adb \
1201 a-calend.adb<a-calend-vms.adb \
1202 a-calend.ads<a-calend-vms.ads \
1203 a-dirval.adb<a-dirval-vms.adb \
1204 a-excpol.adb<a-excpol-abort.adb \
1205 a-intnam.ads<a-intnam-vms.ads \
1206 a-numaux.ads<a-numaux-vms.ads \
1207 g-expect.adb<g-expect-vms.adb \
1208 g-soccon.ads<g-soccon-vms.ads \
1209 g-socthi.ads<g-socthi-vms.ads \
1210 g-socthi.adb<g-socthi-vms.adb \
1211 g-trasym.adb<g-trasym-vms.adb \
1212 i-cstrea.adb<i-cstrea-vms.adb \
1213 i-cpp.adb<i-cpp-vms.adb \
1214 interfac.ads<interfac-vms.ads \
1215 s-inmaop.adb<s-inmaop-vms.adb \
1216 s-interr.adb<s-interr-vms.adb \
1217 s-intman.adb<s-intman-vms.adb \
1218 s-intman.ads<s-intman-vms.ads \
1219 s-osprim.adb<s-osprim-vms.adb \
1220 s-osprim.ads<s-osprim-vms.ads \
1221 s-taprop.adb<s-taprop-vms.adb \
1222 s-taspri.ads<s-taspri-vms.ads \
1223 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1224 s-tpopde.adb<s-tpopde-vms.adb \
1225 s-tpopde.ads<s-tpopde-vms.ads \
1226 s-traent.adb<s-traent-vms.adb \
1227 s-traent.ads<s-traent-vms.ads \
1228 $(LIBGNAT_TARGET_PAIRS_AUX1) \
1229 $(LIBGNAT_TARGET_PAIRS_AUX2)
1231 ifeq ($(strip $(filter-out ia64 hp vms% openvms%,$(targ))),)
1232 TOOLS_TARGET_PAIRS= \
1233 mlib-tgt.adb<mlib-tgt-vms-ia64.adb \
1234 symbols.adb<symbols-vms.adb \
1235 symbols-processing.adb<symbols-processing-vms-ia64.adb
1236 else
1237 TOOLS_TARGET_PAIRS= \
1238 mlib-tgt.adb<mlib-tgt-vms-alpha.adb \
1239 symbols.adb<symbols-vms.adb \
1240 symbols-processing.adb<symbols-processing-vms-alpha.adb
1241 endif
1243 GNATLIB_SHARED=gnatlib-shared-vms
1244 ifeq ($(strip $(filter-out alpha% dec vms% openvms% alphavms%,$(targ))),)
1245 EXTRA_LIBGNAT_SRCS=vmshandler.asm
1246 EXTRA_LIBGNAT_OBJS=vmshandler.o
1247 endif
1248 EXTRA_GNATRTL_TASKING_OBJS=s-tpopde.o
1249 EXTRA_GNATTOOLS = \
1250 ../../gnatlbr$(exeext) \
1251 ../../gnatsym$(exeext) \
1252 ../../vms_help$(exeext) \
1253 ../../gnat.hlp
1254 # This command transforms (YYYYMMDD) into YY,MMDD
1255 GSMATCH_VERSION := $(shell grep "^ *Gnat_Static_Version_String" $(fsrcpfx)gnatvsn.ads | sed -e 's/.*(\(.*\)).*/\1/' -e 's/\(..\)\(..\)\(....\)/\2,\3/')
1256 TOOLS_LIBS_LO := --for-linker=sys\\$$\$$library:trace.exe
1257 LIBRARY_VERSION := $(subst .,_,$(LIB_VERSION))
1258 endif
1260 ifeq ($(strip $(filter-out cygwin32% mingw32% pe,$(osys))),)
1261 LIBGNAT_TARGET_PAIRS = \
1262 a-calend.adb<a-calend-mingw.adb \
1263 a-dirval.adb<a-dirval-mingw.adb \
1264 a-excpol.adb<a-excpol-abort.adb \
1265 a-intnam.ads<a-intnam-mingw.ads \
1266 a-numaux.adb<a-numaux-x86.adb \
1267 a-numaux.ads<a-numaux-x86.ads \
1268 s-gloloc.adb<s-gloloc-mingw.adb \
1269 s-inmaop.adb<s-inmaop-dummy.adb \
1270 s-interr.adb<s-interr-sigaction.adb \
1271 s-intman.adb<s-intman-mingw.adb \
1272 s-memory.adb<s-memory-mingw.adb \
1273 s-osinte.ads<s-osinte-mingw.ads \
1274 s-osprim.adb<s-osprim-mingw.adb \
1275 s-taprop.adb<s-taprop-mingw.adb \
1276 s-taspri.ads<s-taspri-mingw.ads \
1277 s-parame.adb<s-parame-mingw.adb \
1278 g-socthi.ads<g-socthi-mingw.ads \
1279 g-socthi.adb<g-socthi-mingw.adb \
1280 g-soccon.ads<g-soccon-mingw.ads \
1281 g-soliop.ads<g-soliop-mingw.ads \
1282 system.ads<system-mingw.ads
1284 TOOLS_TARGET_PAIRS= \
1285 mlib-tgt.adb<mlib-tgt-mingw.adb \
1286 indepsw.adb<indepsw-mingw.adb
1288 MISCLIB = -lwsock32
1289 GMEM_LIB = gmemlib
1290 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1291 EXTRA_GNATTOOLS = ../../gnatdll$(exeext)
1292 EXTRA_GNATMAKE_OBJS = mdll.o mdll-utl.o mdll-fil.o
1293 EXTRA_GNATRTL_NONTASKING_OBJS = g-regist.o
1294 soext = .dll
1295 # ??? This will be replaced by gnatlib-shared-dual-win32 when GNAT auto-import
1296 # support for array/record will be done.
1297 GNATLIB_SHARED = gnatlib-shared-win32
1298 LIBRARY_VERSION := $(LIB_VERSION)
1299 endif
1301 ifeq ($(strip $(filter-out powerpc% linux%,$(arch) $(osys))),)
1302 LIBGNAT_TARGET_PAIRS = \
1303 a-intnam.ads<a-intnam-linux.ads \
1304 s-inmaop.adb<s-inmaop-posix.adb \
1305 s-intman.adb<s-intman-posix.adb \
1306 s-osinte.adb<s-osinte-posix.adb \
1307 s-osinte.ads<s-osinte-linux.ads \
1308 s-osprim.adb<s-osprim-posix.adb \
1309 s-taprop.adb<s-taprop-linux.adb \
1310 s-taspri.ads<s-taspri-posix.ads \
1311 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1312 s-parame.adb<s-parame-linux.adb \
1313 system.ads<system-linux-ppc.ads
1315 TOOLS_TARGET_PAIRS = \
1316 mlib-tgt.adb<mlib-tgt-linux.adb \
1317 indepsw.adb<indepsw-gnu.adb
1319 THREADSLIB = -lpthread
1320 GNATLIB_SHARED = gnatlib-shared-dual
1321 GMEM_LIB = gmemlib
1322 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1323 LIBRARY_VERSION := $(LIB_VERSION)
1324 endif
1326 ifeq ($(strip $(filter-out sparc% linux%,$(arch) $(osys))),)
1327 LIBGNAT_TARGET_PAIRS = \
1328 a-intnam.ads<a-intnam-linux.ads \
1329 s-inmaop.adb<s-inmaop-posix.adb \
1330 s-intman.adb<s-intman-posix.adb \
1331 s-osinte.adb<s-osinte-posix.adb \
1332 s-osinte.ads<s-osinte-linux.ads \
1333 s-osprim.adb<s-osprim-posix.adb \
1334 s-taprop.adb<s-taprop-linux.adb \
1335 s-taspri.ads<s-taspri-posix.ads \
1336 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1337 s-parame.adb<s-parame-linux.adb \
1338 system.ads<system-linux-sparc.ads
1340 TOOLS_TARGET_PAIRS = \
1341 mlib-tgt.adb<mlib-tgt-linux.adb \
1342 indepsw.adb<indepsw-gnu.adb
1344 THREADSLIB = -lpthread
1345 GNATLIB_SHARED = gnatlib-shared-dual
1346 GMEM_LIB = gmemlib
1347 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1348 LIBRARY_VERSION := $(LIB_VERSION)
1349 endif
1351 ifeq ($(strip $(filter-out hppa% linux%,$(arch) $(osys))),)
1352 LIBGNAT_TARGET_PAIRS = \
1353 a-intnam.ads<a-intnam-linux.ads \
1354 s-inmaop.adb<s-inmaop-posix.adb \
1355 s-intman.adb<s-intman-posix.adb \
1356 s-osinte.adb<s-osinte-posix.adb \
1357 s-osinte.ads<s-osinte-linux-hppa.ads \
1358 s-osprim.adb<s-osprim-posix.adb \
1359 s-taprop.adb<s-taprop-linux.adb \
1360 s-taspri.ads<s-taspri-posix.ads \
1361 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1362 s-parame.adb<s-parame-linux.adb \
1363 system.ads<system-linux-hppa.ads
1365 TOOLS_TARGET_PAIRS = \
1366 mlib-tgt.adb<mlib-tgt-linux.adb \
1367 indepsw.adb<indepsw-gnu.adb
1369 THREADSLIB = -lpthread
1370 GNATLIB_SHARED = gnatlib-shared-dual
1371 GMEM_LIB = gmemlib
1372 PREFIX_OBJS = $(PREFIX_REAL_OBJS)
1373 LIBRARY_VERSION := $(LIB_VERSION)
1374 endif
1376 ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),)
1377 LIBGNAT_TARGET_PAIRS = \
1378 a-intnam.ads<a-intnam-linux.ads \
1379 a-numaux.ads<a-numaux-libc-x86.ads \
1380 s-inmaop.adb<s-inmaop-posix.adb \
1381 s-intman.adb<s-intman-posix.adb \
1382 s-osinte.ads<s-osinte-linux.ads \
1383 s-osinte.adb<s-osinte-posix.adb \
1384 s-osprim.adb<s-osprim-posix.adb \
1385 s-taprop.adb<s-taprop-linux.adb \
1386 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1387 s-taspri.ads<s-taspri-posix.ads \
1388 system.ads<system-linux-ia64.ads
1390 TOOLS_TARGET_PAIRS = \
1391 mlib-tgt.adb<mlib-tgt-linux.adb \
1392 indepsw.adb<indepsw-gnu.adb
1394 MISCLIB=
1395 THREADSLIB=-lpthread
1396 GNATLIB_SHARED=gnatlib-shared-dual
1397 GMEM_LIB = gmemlib
1398 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1399 LIBRARY_VERSION := $(LIB_VERSION)
1400 endif
1402 ifeq ($(strip $(filter-out alpha% linux%,$(arch) $(osys))),)
1403 LIBGNAT_TARGET_PAIRS = \
1404 a-intnam.ads<a-intnam-linux.ads \
1405 s-inmaop.adb<s-inmaop-posix.adb \
1406 s-intman.adb<s-intman-posix.adb \
1407 s-osinte.ads<s-osinte-linux-alpha.ads \
1408 s-osinte.adb<s-osinte-posix.adb \
1409 s-osprim.adb<s-osprim-posix.adb \
1410 s-taprop.adb<s-taprop-linux.adb \
1411 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1412 s-taspri.ads<s-taspri-posix.ads \
1413 system.ads<system-linux-alpha.ads
1415 TOOLS_TARGET_PAIRS = \
1416 mlib-tgt.adb<mlib-tgt-linux.adb \
1417 indepsw.adb<indepsw-gnu.adb
1419 MISCLIB=
1420 THREADSLIB=-lpthread
1421 GNATLIB_SHARED=gnatlib-shared-dual
1422 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1423 LIBRARY_VERSION := $(LIB_VERSION)
1424 endif
1426 ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),)
1427 LIBGNAT_TARGET_PAIRS = \
1428 a-intnam.ads<a-intnam-linux.ads \
1429 a-numaux.adb<a-numaux-x86.adb \
1430 a-numaux.ads<a-numaux-x86.ads \
1431 s-inmaop.adb<s-inmaop-posix.adb \
1432 s-intman.adb<s-intman-posix.adb \
1433 s-osinte.ads<s-osinte-linux.ads \
1434 s-osinte.adb<s-osinte-posix.adb \
1435 s-osprim.adb<s-osprim-posix.adb \
1436 s-taprop.adb<s-taprop-linux.adb \
1437 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1438 s-taspri.ads<s-taspri-posix.ads \
1439 system.ads<system-linux-x86_64.ads
1441 TOOLS_TARGET_PAIRS = \
1442 mlib-tgt.adb<mlib-tgt-linux.adb \
1443 indepsw.adb<indepsw-gnu.adb
1445 THREADSLIB=-lpthread
1446 GNATLIB_SHARED=gnatlib-shared-dual
1447 GMEM_LIB = gmemlib
1448 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1449 LIBRARY_VERSION := $(LIB_VERSION)
1450 endif
1452 ifeq ($(strip $(filter-out powerpc darwin%,$(arch) $(osys))),)
1453 LIBGNAT_TARGET_PAIRS = \
1454 a-intnam.ads<a-intnam-darwin.ads \
1455 s-inmaop.adb<s-inmaop-posix.adb \
1456 s-intman.adb<s-intman-posix.adb \
1457 s-osinte.adb<s-osinte-darwin.adb \
1458 s-osinte.ads<s-osinte-darwin.ads \
1459 s-osprim.adb<s-osprim-posix.adb \
1460 s-taprop.adb<s-taprop-posix.adb \
1461 s-taspri.ads<s-taspri-posix.ads \
1462 s-tpopsp.adb<s-tpopsp-posix-foreign.adb \
1463 g-soccon.ads<g-soccon-darwin.ads \
1464 a-numaux.ads<a-numaux-darwin.ads \
1465 a-numaux.adb<a-numaux-darwin.adb \
1466 system.ads<system-darwin-ppc.ads
1468 TOOLS_TARGET_PAIRS = \
1469 mlib-tgt.adb<mlib-tgt-darwin.adb
1471 GNATLIB_SHARED = gnatlib-shared-darwin
1472 SO_OPTS = -Wl,-flat_namespace
1473 RANLIB = ranlib -c
1474 GMEM_LIB = gmemlib
1475 PREFIX_OBJS=$(PREFIX_REAL_OBJS)
1476 LIBRARY_VERSION := $(LIB_VERSION)
1477 soext = .dylib
1478 endif
1480 # The runtime library for gnat comprises two directories. One contains the
1481 # Ada source files that the compiler (gnat1) needs -- these files are listed
1482 # by ADA_INCLUDE_SRCS -- and the other contains the object files and their
1483 # corresponding .ali files for the parts written in Ada, libgnat.a for
1484 # the parts of the runtime written in C, and libgthreads.a for the pthreads
1485 # emulation library. LIBGNAT_OBJS lists the objects that go into libgnat.a,
1486 # while GNATRTL_OBJS lists the object files compiled from Ada sources that
1487 # go into the directory. The pthreads emulation is built in the threads
1488 # subdirectory and copied.
1489 LIBGNAT_SRCS = ada.h adaint.c adaint.h argv.c cio.c cstreams.c \
1490 errno.c exit.c cal.c ctrl_c.c \
1491 raise.h raise.c sysdep.c aux-io.c init.c initialize.c seh_init.c \
1492 final.c tracebak.c tb-alvms.c tb-alvxw.c expect.c mkdir.c socket.c gsocket.h \
1493 $(EXTRA_LIBGNAT_SRCS)
1495 LIBGNAT_OBJS = adaint.o argv.o cio.o cstreams.o ctrl_c.o errno.o exit.o \
1496 raise.o sysdep.o aux-io.o init.o initialize.o seh_init.o cal.o final.o \
1497 tracebak.o expect.o mkdir.o socket.o $(EXTRA_LIBGNAT_OBJS)
1499 # NOTE ??? - when the -I option for compiling Ada code is made to work,
1500 # the library installation will change and there will be a
1501 # GNAT_RTL_SRCS. Right now we count on being able to build GNATRTL_OBJS
1502 # from ADA_INCLUDE_SRCS.
1504 # GNATRTL_NONTASKING_OBJS and GNATRTL_TASKING_OBJS can be found in
1505 # the following include file:
1507 include $(fsrcdir)/Makefile.rtl
1509 GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
1510 g-trasym.o memtrack.o
1512 # Default run time files
1514 ADA_INCLUDE_SRCS =\
1515 ada.ads calendar.ads directio.ads gnat.ads interfac.ads ioexcept.ads \
1516 machcode.ads text_io.ads unchconv.ads unchdeal.ads \
1517 sequenio.ads system.ads memtrack.adb \
1518 a-[a-o]*.adb a-[p-z]*.adb a-[a-o]*.ads a-[p-z]*.ads g-*.ad? i-*.ad? \
1519 s-[a-o]*.adb s-[p-z]*.adb s-[a-o]*.ads s-[p-z]*.ads
1521 LIBGNAT=../rts/libgnat.a
1522 GCC_LINK="$(CC) -static-libgcc $(ADA_INCLUDES)"
1524 # when compiling the tools, the runtime has to be first on the path so that
1525 # it hides the runtime files lying with the rest of the sources
1526 ifeq ($(TOOLSCASE),native)
1527 vpath %.ads ../rts ../
1528 vpath %.adb ../rts ../
1529 vpath %.c ../rts ../
1530 vpath %.h ../rts ../
1531 endif
1533 # in the cross tools case, everything is compiled with the native
1534 # gnatmake/link. Therefore only -I needs to be modified in ADA_INCLUDES
1535 ifeq ($(TOOLSCASE),cross)
1536 vpath %.ads ../
1537 vpath %.adb ../
1538 vpath %.c ../
1539 vpath %.h ../
1540 endif
1543 ../../gnatchop$(exeext):
1544 $(GNATMAKE) -c $(ADA_INCLUDES) gnatchop --GCC="$(CC) $(ALL_ADAFLAGS)"
1545 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatchop
1546 $(GNATLINK) -v gnatchop -o $@ --GCC=$(GCC_LINK) $(TOOLS_LIBS)
1548 ../../gnat$(exeext):
1549 $(GNATMAKE) -c $(ADA_INCLUDES) gnatcmd --GCC="$(CC) $(ALL_ADAFLAGS)"
1550 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatcmd
1551 $(GNATLINK) -v gnatcmd -o $@ --GCC=$(GCC_LINK) $(TOOLS_LIBS)
1553 ../../gnatkr$(exeext):
1554 $(GNATMAKE) -c $(ADA_INCLUDES) gnatkr --GCC="$(CC) $(ALL_ADAFLAGS)"
1555 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatkr
1556 $(GNATLINK) -v gnatkr -o $@ --GCC=$(GCC_LINK) $(TOOLS_LIBS)
1558 ../../gnatls$(exeext):
1559 $(GNATMAKE) -c $(ADA_INCLUDES) gnatls --GCC="$(CC) $(ALL_ADAFLAGS)"
1560 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatls
1561 $(GNATLINK) -v gnatls -o $@ --GCC=$(GCC_LINK) $(TOOLS_LIBS)
1563 ../../gnatname$(exeext):
1564 $(GNATMAKE) -c $(ADA_INCLUDES) gnatname --GCC="$(CC) $(ALL_ADAFLAGS)"
1565 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatname
1566 $(GNATLINK) -v gnatname -o $@ --GCC=$(GCC_LINK) $(TOOLS_LIBS)
1568 ../../gprmake$(exeext):
1569 $(GNATMAKE) -c $(ADA_INCLUDES) gprmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1570 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gprmake
1571 $(GNATLINK) -v gprmake -o $@ --GCC=$(GCC_LINK) $(TOOLS_LIBS)
1573 ../../gnatprep$(exeext):
1574 $(GNATMAKE) -c $(ADA_INCLUDES) gnatprep --GCC="$(CC) $(ALL_ADAFLAGS)"
1575 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatprep
1576 $(GNATLINK) -v gnatprep -o $@ --GCC=$(GCC_LINK) $(TOOLS_LIBS)
1578 ../../gnatxref$(exeext):
1579 $(GNATMAKE) -c $(ADA_INCLUDES) gnatxref --GCC="$(CC) $(ALL_ADAFLAGS)"
1580 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatxref
1581 $(GNATLINK) -v gnatxref -o $@ --GCC=$(GCC_LINK) $(TOOLS_LIBS)
1583 ../../gnatfind$(exeext):
1584 $(GNATMAKE) -c $(ADA_INCLUDES) gnatfind --GCC="$(CC) $(ALL_ADAFLAGS)"
1585 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatfind
1586 $(GNATLINK) -v gnatfind -o $@ --GCC=$(GCC_LINK) $(TOOLS_LIBS)
1588 ../../gnatclean$(exeext):
1589 $(GNATMAKE) -c $(ADA_INCLUDES) gnatclean --GCC="$(CC) $(ALL_ADAFLAGS)"
1590 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatclean
1591 $(GNATLINK) -v gnatclean -o $@ --GCC=$(GCC_LINK) $(TOOLS_LIBS)
1593 ../../gnatsym$(exeext):
1594 $(GNATMAKE) -c $(ADA_INCLUDES) gnatsym --GCC="$(CC) $(ALL_ADAFLAGS)"
1595 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatsym
1596 $(GNATLINK) -v gnatsym -o $@ --GCC=$(GCC_LINK) $(TOOLS_LIBS)
1598 ../../gnatdll$(exeext):
1599 $(GNATMAKE) -c $(ADA_INCLUDES) gnatdll --GCC="$(CC) $(ALL_ADAFLAGS)"
1600 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) $(GNATBIND_FLAGS) gnatdll
1601 $(GNATLINK) -v gnatdll -o $@ --GCC=$(GCC_LINK) $(TOOLS_LIBS)
1603 ../../vxaddr2line$(exeext):
1604 $(GNATMAKE) -c $(ADA_INCLUDES) vxaddr2line --GCC="$(CC) $(ALL_ADAFLAGS)"
1605 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vxaddr2line
1606 $(GNATLINK) -v vxaddr2line -o $@ --GCC=$(GCC_LINK) $(CLIB)
1608 gnatmake-re: link.o
1609 $(GNATMAKE) $(ADA_INCLUDES) -u sdefault --GCC="$(CC) $(MOST_ADA_FLAGS)"
1610 $(GNATMAKE) -c $(ADA_INCLUDES) gnatmake --GCC="$(CC) $(ALL_ADAFLAGS)"
1611 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatmake
1612 $(GNATLINK) -v gnatmake -o ../../gnatmake$(exeext) \
1613 --GCC=$(GCC_LINK) $(TOOLS_LIBS)
1615 # Note the use of the "mv" command in order to allow gnatlink to be linked with
1616 # with the former version of gnatlink itself which cannot override itself.
1617 gnatlink-re: link.o
1618 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlink --GCC="$(CC) $(ALL_ADAFLAGS)"
1619 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlink
1620 $(GNATLINK) -v gnatlink -o ../../gnatlinknew$(exeext) \
1621 --GCC=$(GCC_LINK) $(TOOLS_LIBS)
1622 $(MV) ../../gnatlinknew$(exeext) ../../gnatlink$(exeext)
1624 # Needs to be built with CC=gcc
1625 # Since the RTL should be built with the latest compiler, remove the
1626 # stamp target in the parent directory whenever gnat1 is rebuilt
1628 # Likewise for the tools
1629 ../../gnatmake$(exeext): $(P) b_gnatm.o link.o $(GNATMAKE_OBJS)
1630 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
1631 $(TOOLS_LIBS)
1633 ../../gnatlink$(exeext): $(P) b_gnatl.o link.o $(GNATLINK_OBJS)
1634 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
1635 $(TOOLS_LIBS)
1637 ../../gnatbl$(exeext): gnatbl.o
1638 $(CC) -o $@ $(ALL_CFLAGS) $(LDFLAGS) gnatbl.o $(TOOLS_LIBS)
1640 gnatbl.o: gnatbl.c adaint.h
1641 $(CC) $(ALL_CFLAGS) $(INCLUDES) -c $< $(OUTPUT_OPTION)
1643 ../stamp-gnatlib:
1644 @if [ ! -f stamp-gnatlib ] ; \
1645 then \
1646 $(ECHO) You must first build the GNAT library: make gnatlib; \
1647 false; \
1648 else \
1649 true; \
1652 install-gnatlib: ../stamp-gnatlib
1653 # Create the directory before deleting it, in case the directory is
1654 # a list of directories (as it may be on VMS). This ensures we are
1655 # deleting the right one.
1656 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1657 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1658 $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1659 $(RMDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1660 -$(MKDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1661 -$(MKDIR) $(DESTDIR)$(ADA_INCLUDE_DIR)
1662 for file in rts/*.ali; do \
1663 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1664 done
1665 -$(INSTALL_DATA) rts/g-trasym$(objext) $(DESTDIR)$(ADA_RTL_OBJ_DIR)
1666 -cd rts; for file in *$(arext);do \
1667 $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1668 $(RANLIB) $(RANLIB_FLAGS) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
1669 done
1670 -$(foreach file, $(EXTRA_ADALIB_FILES), \
1671 $(INSTALL_DATA_DATE) rts/$(file) $(DESTDIR)$(ADA_RTL_OBJ_DIR) && \
1672 ) true
1673 # Install the shared libraries, if any, using $(INSTALL) instead
1674 # of $(INSTALL_DATA). The latter may force a mode inappropriate
1675 # for shared libraries on some targets, e.g. on HP-UX where the x
1676 # permission is required.
1677 for file in gnat gnarl; do \
1678 if [ -f rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
1679 $(INSTALL) rts/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1680 $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
1681 fi; \
1682 if [ -f rts/lib$${file}$(soext) ]; then \
1683 $(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
1684 $(DESTDIR)$(ADA_RTL_OBJ_DIR)/lib$${file}$(soext); \
1685 fi; \
1686 done
1687 # This copy must be done preserving the date on the original file.
1688 for file in rts/*.adb rts/*.ads; do \
1689 $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_INCLUDE_DIR); \
1690 done
1691 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.adb
1692 cd $(DESTDIR)$(ADA_INCLUDE_DIR); $(CHMOD) a-wx *.ads
1694 ../stamp-gnatlib2:
1695 $(RM) rts/s-*.ali
1696 $(RM) rts/s-*$(objext)
1697 $(RM) rts/a-*.ali
1698 $(RM) rts/a-*$(objext)
1699 $(RM) rts/*.ali
1700 $(RM) rts/*$(objext)
1701 $(RM) rts/*$(arext)
1702 $(RM) rts/*$(soext)
1703 touch ../stamp-gnatlib2
1704 $(RM) ../stamp-gnatlib
1706 # NOTE: The $(foreach ...) commands assume ";" is the valid separator between
1707 # successive target commands. Although the Gnu make documentation
1708 # implies this is true on all systems, I suspect it may not be, So care
1709 # has been taken to allow a sed script to look for ";)" and substitue
1710 # for ";" the appropriate character in the range of lines below
1711 # beginning with "GNULLI Begin" and ending with "GNULLI End"
1713 # GNULLI Begin ###########################################################
1715 ../stamp-gnatlib1: Makefile ../stamp-gnatlib2
1716 $(RMDIR) rts
1717 $(MKDIR) rts
1718 $(CHMOD) u+w rts
1719 # Copy target independent sources
1720 $(foreach f,$(ADA_INCLUDE_SRCS) $(LIBGNAT_SRCS), \
1721 $(LN_S) $(fsrcpfx)$(f) rts ;) true
1722 # Remove files to be replaced by target dependent sources
1723 $(RM) $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1724 rts/$(word 1,$(subst <, ,$(PAIR))))
1725 $(RM) rts/*-*-*.ads rts/*-*-*.adb
1726 # Copy new target dependent sources
1727 $(foreach PAIR,$(LIBGNAT_TARGET_PAIRS), \
1728 $(LN_S) $(fsrcpfx)$(word 2,$(subst <, ,$(PAIR))) \
1729 rts/$(word 1,$(subst <, ,$(PAIR)));)
1730 $(RM) ../stamp-gnatlib
1731 touch ../stamp-gnatlib1
1733 # GNULLI End #############################################################
1735 # Don't use semicolon separated shell commands that involve list expansions.
1736 # The semicolon triggers a call to DCL on VMS and DCL can't handle command
1737 # line lengths in excess of 256 characters.
1738 # Example: cd rts; ar rc libfoo.a $(LONG_LIST_OF_OBJS)
1739 # is guaranteed to overflow the buffer.
1741 # ??? GCC_FOR_TARGET is supposed to be passed from the top level
1742 # Makefile, but this is not the case from e.g. libada, so provide a suitable
1743 # default
1744 GCC_FOR_TARGET=./xgcc -B./ $(FLAGS_FOR_TARGET)
1746 gnatlib: ../stamp-gnatlib1 ../stamp-gnatlib2
1747 $(MAKE) -C rts \
1748 CC="`echo \"$(GCC_FOR_TARGET)\" \
1749 | sed -e 's^./xgcc^../../xgcc^' -e 's^-B./^-B../../^'`" \
1750 INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
1751 CFLAGS="$(GNATLIBCFLAGS_FOR_C)" \
1752 srcdir=$(fsrcdir) \
1753 -f ../Makefile $(LIBGNAT_OBJS)
1754 $(MAKE) -C rts \
1755 CC="`echo \"$(GCC_FOR_TARGET)\" \
1756 | sed -e 's^\./xgcc^../../xgcc^' -e 's^-B./^-B../../^'`" \
1757 ADA_INCLUDES="" \
1758 CFLAGS="$(GNATLIBCFLAGS)" \
1759 ADAFLAGS="$(GNATLIBFLAGS)" \
1760 srcdir=$(fsrcdir) \
1761 -f ../Makefile \
1762 $(GNATRTL_OBJS)
1763 $(RM) rts/libgnat$(arext) rts/libgnarl$(arext)
1764 $(AR) $(AR_FLAGS) rts/libgnat$(arext) \
1765 $(addprefix rts/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
1766 ifneq ($(PREFIX_OBJS),)
1767 $(AR) $(AR_FLAGS) rts/libgccprefix$(arext) $(PREFIX_OBJS);
1768 -$(RANLIB) rts/libgccprefix$(arext)
1769 endif
1770 -$(RANLIB) $(RANLIB_FLAGS) rts/libgnat$(arext)
1771 $(AR) $(AR_FLAGS) rts/libgnarl$(arext) \
1772 $(addprefix rts/,$(GNATRTL_TASKING_OBJS))
1773 -$(RANLIB) $(RANLIB_FLAGS) rts/libgnarl$(arext)
1774 ifeq ($(GMEM_LIB),gmemlib)
1775 $(AR) $(AR_FLAGS) rts/libgmem$(arext) rts/memtrack.o
1776 -$(RANLIB) $(RANLIB_FLAGS) rts/libgmem$(arext)
1777 endif
1778 $(CHMOD) a-wx rts/*.ali
1779 touch ../stamp-gnatlib
1781 # Warning: this target assumes that LIBRARY_VERSION has been set correctly.
1782 gnatlib-shared-default:
1783 $(MAKE) $(FLAGS_TO_PASS) \
1784 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1785 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1786 THREAD_KIND="$(THREAD_KIND)" \
1787 gnatlib
1788 $(RM) rts/libgna*$(soext)
1789 cd rts; ../../xgcc -B../../ -shared $(GNATLIBCFLAGS) \
1790 $(TARGET_LIBGCC2_CFLAGS) \
1791 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1792 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1793 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1794 $(MISCLIB) -lm
1795 cd rts; ../../xgcc -B../../ -shared $(GNATLIBCFLAGS) \
1796 $(TARGET_LIBGCC2_CFLAGS) \
1797 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1798 $(GNATRTL_TASKING_OBJS) \
1799 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1800 $(THREADSLIB)
1801 cd rts; $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1802 libgnat$(soext)
1803 cd rts; $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1804 libgnarl$(soext)
1806 gnatlib-shared-dual:
1807 $(MAKE) $(FLAGS_TO_PASS) \
1808 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1809 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1810 THREAD_KIND="$(THREAD_KIND)" \
1811 gnatlib-shared-default
1812 $(MV) rts/libgna*$(soext) .
1813 $(RM) ../stamp-gnatlib2
1814 $(MAKE) $(FLAGS_TO_PASS) \
1815 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1816 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1817 THREAD_KIND="$(THREAD_KIND)" \
1818 gnatlib
1819 $(MV) libgna*$(soext) rts
1821 gnatlib-shared-dual-win32:
1822 $(MAKE) $(FLAGS_TO_PASS) \
1823 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1824 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1825 THREAD_KIND="$(THREAD_KIND)" \
1826 gnatlib-shared-win32
1827 $(MV) rts/libgna*$(soext) .
1828 $(RM) ../stamp-gnatlib2
1829 $(MAKE) $(FLAGS_TO_PASS) \
1830 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1831 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1832 THREAD_KIND="$(THREAD_KIND)" \
1833 gnatlib
1834 $(MV) libgna*$(soext) rts
1836 # ??? we need to add the option to support auto-import of arrays/records to
1837 # the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
1838 # use the gnatlib-shared-dual-win32 target to build the GNAT runtimes on
1839 # Windows.
1840 gnatlib-shared-win32:
1841 $(MAKE) $(FLAGS_TO_PASS) \
1842 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1843 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
1844 THREAD_KIND="$(THREAD_KIND)" \
1845 gnatlib
1846 $(RM) rts/libgna*$(soext)
1847 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1848 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1849 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1850 $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
1851 cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
1852 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1853 $(GNATRTL_TASKING_OBJS) \
1854 $(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1855 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
1857 gnatlib-shared-darwin:
1858 $(MAKE) $(FLAGS_TO_PASS) \
1859 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1860 GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) \
1861 -fno-common" \
1862 THREAD_KIND="$(THREAD_KIND)" \
1863 gnatlib
1864 $(RM) rts/libgnat$(soext) rts/libgnarl$(soext)
1865 cd rts; ../../xgcc -B../../ -dynamiclib $(TARGET_LIBGCC2_CFLAGS) \
1866 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1867 $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
1868 $(SO_OPTS) \
1869 $(MISCLIB) -lm
1870 cd rts; ../../xgcc -B../../ -dynamiclib $(TARGET_LIBGCC2_CFLAGS) \
1871 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1872 $(GNATRTL_TASKING_OBJS) \
1873 $(SO_OPTS) \
1874 $(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
1875 cd rts; $(LN_S) libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1876 libgnat$(soext)
1877 cd rts; $(LN_S) libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1878 libgnarl$(soext)
1880 gnatlib-shared-vms:
1881 $(MAKE) $(FLAGS_TO_PASS) \
1882 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1883 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1884 THREAD_KIND="$(THREAD_KIND)" \
1885 gnatlib
1886 $(RM) rts/libgna*$(soext)
1887 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
1888 objdump --syms $(LIBGNAT_OBJS) $(GNATRTL_NONTASKING_OBJS) | \
1889 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
1890 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
1891 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
1892 -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) libgnat.a \
1893 sys\$$library:trace.exe \
1894 --for-linker=/noinform \
1895 --for-linker=SYMVEC_$$$$.opt \
1896 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
1897 cd rts && echo "case_sensitive=yes" > SYMVEC_$$$$.opt && \
1898 objdump --syms $(GNATRTL_TASKING_OBJS) | \
1899 $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt && \
1900 echo "case_sensitive=NO" >> SYMVEC_$$$$.opt && \
1901 ../../xgcc -g -B../../ -nostartfiles -shared -shared-libgcc \
1902 -o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
1903 libgnarl.a libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
1904 sys\$$library:trace.exe \
1905 --for-linker=/noinform \
1906 --for-linker=SYMVEC_$$$$.opt \
1907 --for-linker=gsmatch=equal,$(GSMATCH_VERSION)
1909 gnatlib-shared:
1910 $(MAKE) $(FLAGS_TO_PASS) \
1911 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1912 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1913 THREAD_KIND="$(THREAD_KIND)" \
1914 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
1915 $(GNATLIB_SHARED)
1917 gnatlib-sjlj: ../stamp-gnatlib1
1918 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := False;/' rts/system.ads > rts/s.ads
1919 $(MV) rts/s.ads rts/system.ads
1920 $(MAKE) $(FLAGS_TO_PASS) \
1921 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1922 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1923 THREAD_KIND="$(THREAD_KIND)" \
1924 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
1926 gnatlib-zcx: ../stamp-gnatlib1
1927 sed -e 's/ZCX_By_Default.*/ZCX_By_Default : constant Boolean := True;/' rts/system.ads > rts/s.ads
1928 $(MV) rts/s.ads rts/system.ads
1929 $(MAKE) $(FLAGS_TO_PASS) \
1930 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
1931 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
1932 THREAD_KIND="$(THREAD_KIND)" \
1933 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" gnatlib
1935 # .s files for cross-building
1936 gnat-cross: force
1937 make $(GNAT1_ADA_OBJS) CC="gcc -B../stage1/" CFLAGS="-S -gnatp"
1939 # Compiling object files from source files.
1941 # Note that dependencies on obstack.h are not written
1942 # because that file is not part of GCC.
1943 # Dependencies on gvarargs.h are not written
1944 # because all that file does, when not compiling with GCC,
1945 # is include the system varargs.h.
1947 b_gnatl.c : $(GNATLINK_OBJS)
1948 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatl.c gnatlink.ali
1949 b_gnatl.o : b_gnatl.c
1951 b_gnatm.c : $(GNATMAKE_OBJS)
1952 $(GNATBIND) -C $(ADA_INCLUDES) -o b_gnatm.c gnatmake.ali
1953 b_gnatm.o : b_gnatm.c
1955 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
1956 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
1958 # force no sibling call optimization on s-traceb.o so the number of stack
1959 # frames to be skipped when computing a call chain is not modified by
1960 # optimization. However we can do that only when building the runtime
1961 # (not the compiler) because the -fno-optimize-sibling-calls exists
1962 # only in GCC 3.
1964 ifneq (,$(findstring xgcc,$(CC)))
1965 NO_SIBLING_ADAFLAGS=-fno-optimize-sibling-calls
1966 else
1967 NO_SIBLING_ADAFLAGS=
1968 endif
1970 s-traceb.o : s-traceb.adb
1971 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) \
1972 $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) \
1973 $< $(OUTPUT_OPTION)
1975 # force debugging information on s-tasdeb.o so that it is always
1976 # possible to set conditional breakpoints on tasks.
1978 s-tasdeb.o : s-tasdeb.adb s-tasdeb.ads
1979 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
1980 $< $(OUTPUT_OPTION)
1982 # force debugging information on a-except.o so that it is always
1983 # possible to set conditional breakpoints on exceptions.
1984 # use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
1986 a-except.o : a-except.adb a-except.ads
1987 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O1 -fno-inline \
1988 $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
1990 # force debugging information on s-assert.o so that it is always
1991 # possible to set breakpoint on assert failures.
1993 s-assert.o : s-assert.adb s-assert.ads a-except.ads
1994 $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O2 $(ADA_INCLUDES) \
1995 $< $(OUTPUT_OPTION)
1997 adadecode.o : adadecode.c adadecode.h
1998 aux-io.o : aux-io.c
1999 argv.o : argv.c
2000 cal.o : cal.c
2001 deftarg.o : deftarg.c
2002 errno.o : errno.c
2003 exit.o : raise.h exit.c
2004 expect.o : expect.c
2005 final.o : raise.h final.c
2006 gmem.o : gmem.c
2007 link.o : link.c
2008 mkdir.o : mkdir.c
2009 socket.o : socket.c gsocket.h
2010 sysdep.o : sysdep.c
2012 gen-soccon: gen-soccon.c gsocket.h
2013 $(CC) $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
2014 -UIN_GCC -DTARGET=\"$(target_alias)\" \
2015 $< $(OUTPUT_OPTION)
2017 cio.o : cio.c
2018 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) \
2019 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2021 init.o : init.c ada.h types.h raise.h
2022 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) \
2023 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2025 initialize.o : initialize.c
2026 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) \
2027 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2029 # No optimization to compile this file as optimizations (-O1 or above) breaks
2030 # the SEH handling on Windows. The reasons are not clear.
2031 seh_init.o : seh_init.c raise.h
2032 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) -O0 \
2033 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2035 raise.o : raise.c raise.h
2036 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) \
2037 $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
2039 # Need to keep the frame pointer in this file to pop the stack properly on
2040 # some targets.
2041 tracebak.o : tracebak.c tb-alvms.c tb-alvxw.c
2042 $(CC) -c $(ALL_CFLAGS) $(ADA_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
2043 -fno-omit-frame-pointer $< $(OUTPUT_OPTION)
2045 # In GNU Make, ignore whether `stage*' exists.
2046 .PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
2047 .PHONY: risky-stage1 risky-stage2 risky-stage3 risky-stage4
2049 force:
2051 # Gnatlbr, Vms_help, and Gnat.hlp are only used on VMS
2053 ../../gnatlbr$(exeext): ../../prefix.o
2054 $(GNATMAKE) -c $(ADA_INCLUDES) gnatlbr --GCC="$(CC) $(ALL_ADAFLAGS)"
2055 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) gnatlbr
2056 $(GNATLINK) -v gnatlbr -o $@ --GCC=$(GCC_LINK) $(TOOLS_LIBS)
2058 ../../vms_help$(exeext):
2059 $(GNATMAKE) -c $(ADA_INCLUDES) vms_help --GCC="$(CC) $(ALL_ADAFLAGS)"
2060 $(GNATBIND) $(ADA_INCLUDES) $(GNATBIND_FLAGS) vms_help
2061 $(GNATLINK) -v vms_help -o $@ --GCC=$(GCC_LINK) $(TOOLS_LIBS)
2063 ../../gnat.hlp: ../../vms_help$(exeext)
2064 ../../vms_help$(exeext) $(fsrcdir)/gnat.help_in \
2065 $(fsrcdir)/vms_data.ads ../../gnat.hlp