]> git.ipfire.org Git - thirdparty/gcc.git/blame - libada/Makefile.in
Makefile.in: Revert most changes.
[thirdparty/gcc.git] / libada / Makefile.in
CommitLineData
b0b70d84 1# Makefile for libada.
e3aa9eba 2# Copyright 2003, 2004, 2009, 2010, 2011 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.
5395b47b 19all: gnatlib
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
NN
45
46# Variables for the user (or the top level) to override.
47objext=.o
80dab182
NN
48THREAD_KIND=native
49TRACE=no
80dab182 50LDFLAGS=
80dab182
NN
51
52# The tedious process of getting CFLAGS right.
53CFLAGS=-g
e3aa9eba 54PICFLAG = @PICFLAG@
0cfaf83f 55GNATLIBFLAGS= -W -Wall -gnatpg -nostdinc
47ad7893 56GNATLIBCFLAGS= -g -O2
f35aed49 57GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) \
0cfaf83f 58 -fexceptions -DIN_RTS @have_getipinfo@
b0b70d84 59
9bd6112c 60host_subdir = @host_subdir@
7193e639 61GCC_DIR=$(MULTIBUILDTOP)../../$(host_subdir)/gcc
b0b70d84 62
f62b28a9
LG
63target_noncanonical:=@target_noncanonical@
64version := $(shell cat $(srcdir)/../gcc/BASE-VER)
7193e639 65libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR)
6d63ea75 66ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR))
5f41422f 67ADA_RTS_SUBDIR=./rts$(subst /,_,$(MULTISUBDIR))
f62b28a9 68
47ad7893
PB
69# exeext should not be used because it's the *host* exeext. We're building
70# a *target* library, aren't we?!? Likewise for CC. Still, provide bogus
71# definitions just in case something slips through the safety net provided
72# by recursive make invocations in gcc/ada/Makefile.in
f62b28a9 73LIBADA_FLAGS_TO_PASS = \
80dab182
NN
74 "MAKEOVERRIDES=" \
75 "LDFLAGS=$(LDFLAGS)" \
76 "LN_S=$(LN_S)" \
77 "SHELL=$(SHELL)" \
7193e639
LG
78 "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS)" \
79 "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS)" \
2f18d9af 80 "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS)" \
e3aa9eba 81 "PICFLAG_FOR_TARGET=$(PICFLAG)" \
f62b28a9
LG
82 "THREAD_KIND=$(THREAD_KIND)" \
83 "TRACE=$(TRACE)" \
7193e639 84 "MULTISUBDIR=$(MULTISUBDIR)" \
f62b28a9 85 "libsubdir=$(libsubdir)" \
80dab182
NN
86 "objext=$(objext)" \
87 "prefix=$(prefix)" \
47ad7893
PB
88 "exeext=.exeext.should.not.be.used " \
89 'CC=the.host.compiler.should.not.be.needed' \
40077270 90 "GCC_FOR_TARGET=$(CC)" \
0cfaf83f 91 "CFLAGS=$(CFLAGS)"
80dab182 92
b0b70d84 93# Rules to build gnatlib.
5f41422f 94.PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared osconstool
80dab182
NN
95gnatlib: @default_gnatlib_target@
96
c8fef899 97gnatlib-plain: osconstool $(GCC_DIR)/ada/Makefile
5395b47b 98 test -f stamp-libada || \
f62b28a9 99 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) gnatlib \
5395b47b 100 && touch stamp-libada
5c00e6a0
LG
101 -rm -rf adainclude
102 -rm -rf adalib
6d63ea75
LG
103 $(LN_S) $(ADA_RTS_DIR) adainclude
104 $(LN_S) $(ADA_RTS_DIR) adalib
80dab182 105
c8fef899 106gnatlib-sjlj gnatlib-zcx gnatlib-shared: osconstool $(GCC_DIR)/ada/Makefile
5395b47b 107 test -f stamp-libada || \
f62b28a9 108 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) $@ \
5395b47b 109 && touch stamp-libada
5c00e6a0
LG
110 -rm -rf adainclude
111 -rm -rf adalib
6d63ea75
LG
112 $(LN_S) $(ADA_RTS_DIR) adainclude
113 $(LN_S) $(ADA_RTS_DIR) adalib
e9f4e557 114
c8fef899 115osconstool:
4c166488 116 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) ./bldtools/oscons/xoscons
c8fef899 117
f62b28a9
LG
118install-gnatlib: $(GCC_DIR)/ada/Makefile
119 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) install-gnatlib
c336d2c7 120
b0b70d84
AC
121# Check uninstalled version.
122check:
123
124# Check installed version.
125installcheck:
126
127# Build info (none here).
128info:
129
130# Build DVI (none here).
131dvi:
132
a8384928
BM
133# Build PDF (none here).
134pdf:
135
01a1e85a
JW
136# Build html (none here).
137html:
138
b0b70d84
AC
139# Build TAGS (none here).
140TAGS:
141
455c8f48
RW
142.PHONY: check installcheck info dvi pdf html
143
b0b70d84 144# Installation rules.
7193e639
LG
145install: install-gnatlib
146 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
b0b70d84 147
455c8f48
RW
148install-strip: install
149
b0b70d84
AC
150install-info:
151
00189cc6
BM
152install-pdf:
153
312e3fcb
CD
154install-html:
155
455c8f48
RW
156.PHONY: install install-strip install-info install-pdf install-html
157
b0b70d84
AC
158# Cleaning rules.
159mostlyclean:
7193e639 160 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
b0b70d84
AC
161
162clean:
7193e639 163 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
b0b70d84
AC
164
165distclean:
7193e639 166 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
b0b70d84
AC
167 $(RM) Makefile config.status config.log
168
169maintainer-clean:
170
455c8f48
RW
171.PHONY: mostlyclean clean distclean maintainer-clean
172
b0b70d84
AC
173# Rules for rebuilding this Makefile.
174Makefile: $(srcdir)/Makefile.in config.status
175 CONFIG_FILES=$@ ; \
176 CONFIG_HEADERS= ; \
177 $(SHELL) ./config.status
178
179config.status: $(srcdir)/configure
180 $(SHELL) ./config.status --recheck
181
6efbd53f
RW
182AUTOCONF = autoconf
183configure_deps = \
184 $(srcdir)/configure.ac \
185 $(srcdir)/../config/acx.m4 \
186 $(srcdir)/../config/override.m4 \
187 $(srcdir)/../config/multi.m4
188
189$(srcdir)/configure: @MAINT@ $(configure_deps)
190 cd $(srcdir) && $(AUTOCONF)
54b2f310
DJ
191
192# Don't export variables to the environment, in order to not confuse
193# configure.
194.NOEXPORT: