]> git.ipfire.org Git - thirdparty/gcc.git/blame - libada/Makefile.in
Update copyright years.
[thirdparty/gcc.git] / libada / Makefile.in
CommitLineData
b0b70d84 1# Makefile for libada.
a5544970 2# Copyright (C) 2003-2019 Free Software Foundation, Inc.
b0b70d84
AC
3#
4# This file is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
748086b7 6# the Free Software Foundation; either version 3 of the License, or
b0b70d84
AC
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
748086b7
JJ
15# along with this program; see the file COPYING3. If not see
16# <http://www.gnu.org/licenses/>.
b0b70d84
AC
17
18# Default target; must be first.
3b31a906 19all: libada
7193e639
LG
20 $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE)
21
455c8f48 22.PHONY: all
7193e639
LG
23
24## Multilib support variables.
25MULTISRCTOP =
26MULTIBUILDTOP =
27MULTIDIRS =
28MULTISUBDIR =
29MULTIDO = true
30MULTICLEAN = true
b0b70d84
AC
31
32# Standard autoconf-set variables.
33SHELL = @SHELL@
34srcdir = @srcdir@
47ad7893 35libdir = @libdir@
b0b70d84
AC
36build = @build@
37target = @target@
80dab182 38prefix = @prefix@
b0b70d84
AC
39
40# Nonstandard autoconf-set variables.
80dab182 41enable_shared = @enable_shared@
c390c361 42
80dab182 43LN_S=@LN_S@
c390c361 44AWK=@AWK@
80dab182 45
b97ffdc9
KT
46ifeq (cp -p,$(LN_S))
47LN_S_RECURSIVE = cp -pR
48else
49LN_S_RECURSIVE = $(LN_S)
50endif
51
80dab182
NN
52# Variables for the user (or the top level) to override.
53objext=.o
80dab182
NN
54THREAD_KIND=native
55TRACE=no
80dab182 56LDFLAGS=
80dab182
NN
57
58# The tedious process of getting CFLAGS right.
59CFLAGS=-g
e3aa9eba 60PICFLAG = @PICFLAG@
0cfaf83f 61GNATLIBFLAGS= -W -Wall -gnatpg -nostdinc
47ad7893 62GNATLIBCFLAGS= -g -O2
809981fa 63GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(CFLAGS_FOR_TARGET) \
772cd694 64 -fexceptions -DIN_RTS @have_getipinfo@ @have_capability@
b0b70d84 65
9bd6112c 66host_subdir = @host_subdir@
7193e639 67GCC_DIR=$(MULTIBUILDTOP)../../$(host_subdir)/gcc
b0b70d84 68
f62b28a9 69target_noncanonical:=@target_noncanonical@
3c36aa6b 70version := $(shell @get_gcc_base_ver@ $(srcdir)/../gcc/BASE-VER)
7193e639 71libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR)
6d63ea75 72ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR))
f62b28a9 73
47ad7893
PB
74# exeext should not be used because it's the *host* exeext. We're building
75# a *target* library, aren't we?!? Likewise for CC. Still, provide bogus
76# definitions just in case something slips through the safety net provided
77# by recursive make invocations in gcc/ada/Makefile.in
f62b28a9 78LIBADA_FLAGS_TO_PASS = \
80dab182
NN
79 "MAKEOVERRIDES=" \
80 "LDFLAGS=$(LDFLAGS)" \
81 "LN_S=$(LN_S)" \
82 "SHELL=$(SHELL)" \
7193e639
LG
83 "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS)" \
84 "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS)" \
2f18d9af 85 "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS)" \
e3aa9eba 86 "PICFLAG_FOR_TARGET=$(PICFLAG)" \
f62b28a9
LG
87 "THREAD_KIND=$(THREAD_KIND)" \
88 "TRACE=$(TRACE)" \
7193e639 89 "MULTISUBDIR=$(MULTISUBDIR)" \
f62b28a9 90 "libsubdir=$(libsubdir)" \
80dab182
NN
91 "objext=$(objext)" \
92 "prefix=$(prefix)" \
47ad7893
PB
93 "exeext=.exeext.should.not.be.used " \
94 'CC=the.host.compiler.should.not.be.needed' \
40077270 95 "GCC_FOR_TARGET=$(CC)" \
0cfaf83f 96 "CFLAGS=$(CFLAGS)"
80dab182 97
3b31a906 98.PHONY: libada gnatlib gnatlib-shared gnatlib-sjlj gnatlib-zcx osconstool
80dab182 99
3b31a906
EB
100# Rules to build and install libada.
101libada: @default_gnatlib_target@
80dab182 102
3b31a906 103gnatlib gnatlib-shared gnatlib-sjlj gnatlib-zcx: osconstool $(GCC_DIR)/ada/Makefile
5395b47b 104 test -f stamp-libada || \
f62b28a9 105 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) $@ \
5395b47b 106 && touch stamp-libada
5c00e6a0
LG
107 -rm -rf adainclude
108 -rm -rf adalib
b97ffdc9
KT
109 $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adainclude
110 $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adalib
e9f4e557 111
c8fef899 112osconstool:
4c166488 113 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) ./bldtools/oscons/xoscons
c8fef899 114
3b31a906 115install-libada: $(GCC_DIR)/ada/Makefile
f62b28a9 116 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) install-gnatlib
c336d2c7 117
b0b70d84
AC
118# Check uninstalled version.
119check:
120
121# Check installed version.
122installcheck:
123
124# Build info (none here).
125info:
126
127# Build DVI (none here).
128dvi:
129
a8384928
BM
130# Build PDF (none here).
131pdf:
132
01a1e85a
JW
133# Build html (none here).
134html:
135
b0b70d84
AC
136# Build TAGS (none here).
137TAGS:
138
455c8f48
RW
139.PHONY: check installcheck info dvi pdf html
140
b0b70d84 141# Installation rules.
3b31a906 142install: install-libada
7193e639 143 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
b0b70d84 144
455c8f48
RW
145install-strip: install
146
b0b70d84
AC
147install-info:
148
00189cc6
BM
149install-pdf:
150
312e3fcb
CD
151install-html:
152
455c8f48
RW
153.PHONY: install install-strip install-info install-pdf install-html
154
b0b70d84
AC
155# Cleaning rules.
156mostlyclean:
7193e639 157 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
b0b70d84
AC
158
159clean:
7193e639 160 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
b0b70d84
AC
161
162distclean:
7193e639 163 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
b0b70d84
AC
164 $(RM) Makefile config.status config.log
165
166maintainer-clean:
167
455c8f48
RW
168.PHONY: mostlyclean clean distclean maintainer-clean
169
b0b70d84
AC
170# Rules for rebuilding this Makefile.
171Makefile: $(srcdir)/Makefile.in config.status
172 CONFIG_FILES=$@ ; \
173 CONFIG_HEADERS= ; \
174 $(SHELL) ./config.status
175
176config.status: $(srcdir)/configure
177 $(SHELL) ./config.status --recheck
178
6efbd53f
RW
179AUTOCONF = autoconf
180configure_deps = \
181 $(srcdir)/configure.ac \
182 $(srcdir)/../config/acx.m4 \
8f56cb51 183 $(srcdir)/../config/multi.m4 \
6efbd53f 184 $(srcdir)/../config/override.m4 \
8f56cb51
AM
185 $(srcdir)/../config/picflag.m4 \
186 $(srcdir)/../config/unwind_ipinfo.m4
6efbd53f
RW
187
188$(srcdir)/configure: @MAINT@ $(configure_deps)
189 cd $(srcdir) && $(AUTOCONF)
54b2f310
DJ
190
191# Don't export variables to the environment, in order to not confuse
192# configure.
193.NOEXPORT: