annotate libada/Makefile.in @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 84e7813d76e9
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 # Makefile for libada.
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2 # Copyright (C) 2003-2018 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.
kono
parents:
diff changeset
19 all: gnatlib
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.
kono
parents:
diff changeset
41 enable_shared = @enable_shared@
kono
parents:
diff changeset
42
kono
parents:
diff changeset
43 LN_S=@LN_S@
kono
parents:
diff changeset
44 AWK=@AWK@
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 ifeq (cp -p,$(LN_S))
kono
parents:
diff changeset
47 LN_S_RECURSIVE = cp -pR
kono
parents:
diff changeset
48 else
kono
parents:
diff changeset
49 LN_S_RECURSIVE = $(LN_S)
kono
parents:
diff changeset
50 endif
kono
parents:
diff changeset
51
kono
parents:
diff changeset
52 # Variables for the user (or the top level) to override.
kono
parents:
diff changeset
53 objext=.o
kono
parents:
diff changeset
54 THREAD_KIND=native
kono
parents:
diff changeset
55 TRACE=no
kono
parents:
diff changeset
56 LDFLAGS=
kono
parents:
diff changeset
57
kono
parents:
diff changeset
58 # The tedious process of getting CFLAGS right.
kono
parents:
diff changeset
59 CFLAGS=-g
kono
parents:
diff changeset
60 PICFLAG = @PICFLAG@
kono
parents:
diff changeset
61 GNATLIBFLAGS= -W -Wall -gnatpg -nostdinc
kono
parents:
diff changeset
62 GNATLIBCFLAGS= -g -O2
kono
parents:
diff changeset
63 GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(CFLAGS_FOR_TARGET) \
kono
parents:
diff changeset
64 -fexceptions -DIN_RTS @have_getipinfo@ @have_capability@
kono
parents:
diff changeset
65
kono
parents:
diff changeset
66 host_subdir = @host_subdir@
kono
parents:
diff changeset
67 GCC_DIR=$(MULTIBUILDTOP)../../$(host_subdir)/gcc
kono
parents:
diff changeset
68
kono
parents:
diff changeset
69 target_noncanonical:=@target_noncanonical@
kono
parents:
diff changeset
70 version := $(shell @get_gcc_base_ver@ $(srcdir)/../gcc/BASE-VER)
kono
parents:
diff changeset
71 libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR)
kono
parents:
diff changeset
72 ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR))
kono
parents:
diff changeset
73 ADA_RTS_SUBDIR=./rts$(subst /,_,$(MULTISUBDIR))
kono
parents:
diff changeset
74
kono
parents:
diff changeset
75 # exeext should not be used because it's the *host* exeext. We're building
kono
parents:
diff changeset
76 # a *target* library, aren't we?!? Likewise for CC. Still, provide bogus
kono
parents:
diff changeset
77 # definitions just in case something slips through the safety net provided
kono
parents:
diff changeset
78 # by recursive make invocations in gcc/ada/Makefile.in
kono
parents:
diff changeset
79 LIBADA_FLAGS_TO_PASS = \
kono
parents:
diff changeset
80 "MAKEOVERRIDES=" \
kono
parents:
diff changeset
81 "LDFLAGS=$(LDFLAGS)" \
kono
parents:
diff changeset
82 "LN_S=$(LN_S)" \
kono
parents:
diff changeset
83 "SHELL=$(SHELL)" \
kono
parents:
diff changeset
84 "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS)" \
kono
parents:
diff changeset
85 "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS)" \
kono
parents:
diff changeset
86 "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS)" \
kono
parents:
diff changeset
87 "PICFLAG_FOR_TARGET=$(PICFLAG)" \
kono
parents:
diff changeset
88 "THREAD_KIND=$(THREAD_KIND)" \
kono
parents:
diff changeset
89 "TRACE=$(TRACE)" \
kono
parents:
diff changeset
90 "MULTISUBDIR=$(MULTISUBDIR)" \
kono
parents:
diff changeset
91 "libsubdir=$(libsubdir)" \
kono
parents:
diff changeset
92 "objext=$(objext)" \
kono
parents:
diff changeset
93 "prefix=$(prefix)" \
kono
parents:
diff changeset
94 "exeext=.exeext.should.not.be.used " \
kono
parents:
diff changeset
95 'CC=the.host.compiler.should.not.be.needed' \
kono
parents:
diff changeset
96 "GCC_FOR_TARGET=$(CC)" \
kono
parents:
diff changeset
97 "CFLAGS=$(CFLAGS)"
kono
parents:
diff changeset
98
kono
parents:
diff changeset
99 # Rules to build gnatlib.
kono
parents:
diff changeset
100 .PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared osconstool
kono
parents:
diff changeset
101 gnatlib: @default_gnatlib_target@
kono
parents:
diff changeset
102
kono
parents:
diff changeset
103 gnatlib-plain: osconstool $(GCC_DIR)/ada/Makefile
kono
parents:
diff changeset
104 test -f stamp-libada || \
kono
parents:
diff changeset
105 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) gnatlib \
kono
parents:
diff changeset
106 && touch stamp-libada
kono
parents:
diff changeset
107 -rm -rf adainclude
kono
parents:
diff changeset
108 -rm -rf adalib
kono
parents:
diff changeset
109 $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adainclude
kono
parents:
diff changeset
110 $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adalib
kono
parents:
diff changeset
111
kono
parents:
diff changeset
112 gnatlib-sjlj gnatlib-zcx gnatlib-shared: osconstool $(GCC_DIR)/ada/Makefile
kono
parents:
diff changeset
113 test -f stamp-libada || \
kono
parents:
diff changeset
114 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) $@ \
kono
parents:
diff changeset
115 && touch stamp-libada
kono
parents:
diff changeset
116 -rm -rf adainclude
kono
parents:
diff changeset
117 -rm -rf adalib
kono
parents:
diff changeset
118 $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adainclude
kono
parents:
diff changeset
119 $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adalib
kono
parents:
diff changeset
120
kono
parents:
diff changeset
121 osconstool:
kono
parents:
diff changeset
122 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) ./bldtools/oscons/xoscons
kono
parents:
diff changeset
123
kono
parents:
diff changeset
124 install-gnatlib: $(GCC_DIR)/ada/Makefile
kono
parents:
diff changeset
125 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) install-gnatlib
kono
parents:
diff changeset
126
kono
parents:
diff changeset
127 # Check uninstalled version.
kono
parents:
diff changeset
128 check:
kono
parents:
diff changeset
129
kono
parents:
diff changeset
130 # Check installed version.
kono
parents:
diff changeset
131 installcheck:
kono
parents:
diff changeset
132
kono
parents:
diff changeset
133 # Build info (none here).
kono
parents:
diff changeset
134 info:
kono
parents:
diff changeset
135
kono
parents:
diff changeset
136 # Build DVI (none here).
kono
parents:
diff changeset
137 dvi:
kono
parents:
diff changeset
138
kono
parents:
diff changeset
139 # Build PDF (none here).
kono
parents:
diff changeset
140 pdf:
kono
parents:
diff changeset
141
kono
parents:
diff changeset
142 # Build html (none here).
kono
parents:
diff changeset
143 html:
kono
parents:
diff changeset
144
kono
parents:
diff changeset
145 # Build TAGS (none here).
kono
parents:
diff changeset
146 TAGS:
kono
parents:
diff changeset
147
kono
parents:
diff changeset
148 .PHONY: check installcheck info dvi pdf html
kono
parents:
diff changeset
149
kono
parents:
diff changeset
150 # Installation rules.
kono
parents:
diff changeset
151 install: install-gnatlib
kono
parents:
diff changeset
152 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
kono
parents:
diff changeset
153
kono
parents:
diff changeset
154 install-strip: install
kono
parents:
diff changeset
155
kono
parents:
diff changeset
156 install-info:
kono
parents:
diff changeset
157
kono
parents:
diff changeset
158 install-pdf:
kono
parents:
diff changeset
159
kono
parents:
diff changeset
160 install-html:
kono
parents:
diff changeset
161
kono
parents:
diff changeset
162 .PHONY: install install-strip install-info install-pdf install-html
kono
parents:
diff changeset
163
kono
parents:
diff changeset
164 # Cleaning rules.
kono
parents:
diff changeset
165 mostlyclean:
kono
parents:
diff changeset
166 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
kono
parents:
diff changeset
167
kono
parents:
diff changeset
168 clean:
kono
parents:
diff changeset
169 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
kono
parents:
diff changeset
170
kono
parents:
diff changeset
171 distclean:
kono
parents:
diff changeset
172 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
kono
parents:
diff changeset
173 $(RM) Makefile config.status config.log
kono
parents:
diff changeset
174
kono
parents:
diff changeset
175 maintainer-clean:
kono
parents:
diff changeset
176
kono
parents:
diff changeset
177 .PHONY: mostlyclean clean distclean maintainer-clean
kono
parents:
diff changeset
178
kono
parents:
diff changeset
179 # Rules for rebuilding this Makefile.
kono
parents:
diff changeset
180 Makefile: $(srcdir)/Makefile.in config.status
kono
parents:
diff changeset
181 CONFIG_FILES=$@ ; \
kono
parents:
diff changeset
182 CONFIG_HEADERS= ; \
kono
parents:
diff changeset
183 $(SHELL) ./config.status
kono
parents:
diff changeset
184
kono
parents:
diff changeset
185 config.status: $(srcdir)/configure
kono
parents:
diff changeset
186 $(SHELL) ./config.status --recheck
kono
parents:
diff changeset
187
kono
parents:
diff changeset
188 AUTOCONF = autoconf
kono
parents:
diff changeset
189 configure_deps = \
kono
parents:
diff changeset
190 $(srcdir)/configure.ac \
kono
parents:
diff changeset
191 $(srcdir)/../config/acx.m4 \
kono
parents:
diff changeset
192 $(srcdir)/../config/multi.m4 \
kono
parents:
diff changeset
193 $(srcdir)/../config/override.m4 \
kono
parents:
diff changeset
194 $(srcdir)/../config/picflag.m4 \
kono
parents:
diff changeset
195 $(srcdir)/../config/unwind_ipinfo.m4
kono
parents:
diff changeset
196
kono
parents:
diff changeset
197 $(srcdir)/configure: @MAINT@ $(configure_deps)
kono
parents:
diff changeset
198 cd $(srcdir) && $(AUTOCONF)
kono
parents:
diff changeset
199
kono
parents:
diff changeset
200 # Don't export variables to the environment, in order to not confuse
kono
parents:
diff changeset
201 # configure.
kono
parents:
diff changeset
202 .NOEXPORT: