]> git.ipfire.org Git - thirdparty/gcc.git/blob - libada/Makefile.in
cd518239b21e4248c752df8c62a2208467af8b71
[thirdparty/gcc.git] / libada / Makefile.in
1 # Makefile for libada.
2 # Copyright 2003, 2004, 2009, 2010 Free Software Foundation, Inc.
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
6 # the Free Software Foundation; either version 3 of the License, or
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
15 # along with this program; see the file COPYING3. If not see
16 # <http://www.gnu.org/licenses/>.
17
18 # Default target; must be first.
19 all: gnatlib
20 $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE)
21
22 .PHONY: all
23
24 ## Multilib support variables.
25 MULTISRCTOP =
26 MULTIBUILDTOP =
27 MULTIDIRS =
28 MULTISUBDIR =
29 MULTIDO = true
30 MULTICLEAN = true
31
32 # Standard autoconf-set variables.
33 SHELL = @SHELL@
34 srcdir = @srcdir@
35 libdir = @libdir@
36 build = @build@
37 target = @target@
38 prefix = @prefix@
39
40 # Nonstandard autoconf-set variables.
41 enable_shared = @enable_shared@
42
43 LN_S=@LN_S@
44 AWK=@AWK@
45
46 # Variables for the user (or the top level) to override.
47 objext=.o
48 GNATLIBFLAGS= -W -Wall -gnatpg
49 THREAD_KIND=native
50 TRACE=no
51 LDFLAGS=
52
53 # The tedious process of getting CFLAGS right.
54 CFLAGS=-g
55 LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
56 GCC_WARN_CFLAGS = $(LOOSE_WARN)
57 WARN_CFLAGS = @warn_cflags@
58
59 TARGET_LIBGCC2_CFLAGS=
60 GNATLIBCFLAGS= -g -O2
61 GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
62 -DIN_RTS @have_getipinfo@
63
64 # Get target-specific overrides for TARGET_LIBGCC2_CFLAGS.
65 host_subdir = @host_subdir@
66 GCC_DIR=$(MULTIBUILDTOP)../../$(host_subdir)/gcc
67 include $(GCC_DIR)/libgcc.mvars
68
69 target_noncanonical:=@target_noncanonical@
70 version := $(shell cat $(srcdir)/../gcc/BASE-VER)
71 libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR)
72 ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR))
73
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
78 LIBADA_FLAGS_TO_PASS = \
79 "MAKEOVERRIDES=" \
80 "LDFLAGS=$(LDFLAGS)" \
81 "LN_S=$(LN_S)" \
82 "SHELL=$(SHELL)" \
83 "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS)" \
84 "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS)" \
85 "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS)" \
86 "TARGET_LIBGCC2_CFLAGS=$(TARGET_LIBGCC2_CFLAGS)" \
87 "THREAD_KIND=$(THREAD_KIND)" \
88 "TRACE=$(TRACE)" \
89 "MULTISUBDIR=$(MULTISUBDIR)" \
90 "libsubdir=$(libsubdir)" \
91 "objext=$(objext)" \
92 "prefix=$(prefix)" \
93 "exeext=.exeext.should.not.be.used " \
94 'CC=the.host.compiler.should.not.be.needed' \
95 "GCC_FOR_TARGET=$(CC)" \
96 "CFLAGS=$(CFLAGS) $(WARN_CFLAGS)"
97
98 # Rules to build gnatlib.
99 .PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared oscons
100 gnatlib: @default_gnatlib_target@
101
102 gnatlib-plain: oscons $(GCC_DIR)/ada/Makefile
103 test -f stamp-libada || \
104 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) gnatlib \
105 && touch stamp-libada
106 -rm -rf adainclude
107 -rm -rf adalib
108 $(LN_S) $(ADA_RTS_DIR) adainclude
109 $(LN_S) $(ADA_RTS_DIR) adalib
110
111 gnatlib-sjlj gnatlib-zcx gnatlib-shared: oscons $(GCC_DIR)/ada/Makefile
112 test -f stamp-libada || \
113 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) $@ \
114 && touch stamp-libada
115 -rm -rf adainclude
116 -rm -rf adalib
117 $(LN_S) $(ADA_RTS_DIR) adainclude
118 $(LN_S) $(ADA_RTS_DIR) adalib
119
120 oscons:
121 $(MAKE) -C $(GCC_DIR) $(LIBADA_FLAGS_TO_PASS) ada/s-oscons.ads
122
123 install-gnatlib: $(GCC_DIR)/ada/Makefile
124 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) install-gnatlib
125
126 # Check uninstalled version.
127 check:
128
129 # Check installed version.
130 installcheck:
131
132 # Build info (none here).
133 info:
134
135 # Build DVI (none here).
136 dvi:
137
138 # Build PDF (none here).
139 pdf:
140
141 # Build html (none here).
142 html:
143
144 # Build TAGS (none here).
145 TAGS:
146
147 .PHONY: check installcheck info dvi pdf html
148
149 # Installation rules.
150 install: install-gnatlib
151 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
152
153 install-strip: install
154
155 install-info:
156
157 install-pdf:
158
159 install-html:
160
161 .PHONY: install install-strip install-info install-pdf install-html
162
163 # Cleaning rules.
164 mostlyclean:
165 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
166
167 clean:
168 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
169
170 distclean:
171 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
172 $(RM) Makefile config.status config.log
173
174 maintainer-clean:
175
176 .PHONY: mostlyclean clean distclean maintainer-clean
177
178 # Rules for rebuilding this Makefile.
179 Makefile: $(srcdir)/Makefile.in config.status
180 CONFIG_FILES=$@ ; \
181 CONFIG_HEADERS= ; \
182 $(SHELL) ./config.status
183
184 config.status: $(srcdir)/configure
185 $(SHELL) ./config.status --recheck
186
187 AUTOCONF = autoconf
188 configure_deps = \
189 $(srcdir)/configure.ac \
190 $(srcdir)/../config/acx.m4 \
191 $(srcdir)/../config/override.m4 \
192 $(srcdir)/../config/multi.m4
193
194 $(srcdir)/configure: @MAINT@ $(configure_deps)
195 cd $(srcdir) && $(AUTOCONF)
196
197 # Don't export variables to the environment, in order to not confuse
198 # configure.
199 .NOEXPORT: