annotate libada/Makefile.in @ 158:494b0b89df80 default tip

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