(frame_pointer_required_p): Change return type to bool.
[official-gcc.git] / libada / Makefile.in
blobf5057a006e730eb5bd73226f64e2e657316689d0
1 # Makefile for libada.
2 # Copyright 2003, 2004, 2009 Free Software Foundation, Inc.
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.
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/>.
18 # Default target; must be first.
19 all: gnatlib
20 $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE)
22 .PHONY: all install
24 ## Multilib support variables.
25 MULTISRCTOP =
26 MULTIBUILDTOP =
27 MULTIDIRS =
28 MULTISUBDIR =
29 MULTIDO = true
30 MULTICLEAN = true
32 # Standard autoconf-set variables.
33 SHELL = @SHELL@
34 srcdir = @srcdir@
35 libdir = @libdir@
36 build = @build@
37 target = @target@
38 prefix = @prefix@
40 # Nonstandard autoconf-set variables.
41 enable_shared = @enable_shared@
42 LN_S=@LN_S@
44 # Variables for the user (or the top level) to override.
45 objext=.o
46 GNATLIBFLAGS= -W -Wall -gnatpg
47 THREAD_KIND=native
48 TRACE=no
49 LDFLAGS=
51 # The tedious process of getting CFLAGS right.
52 CFLAGS=-g
53 LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
54 GCC_WARN_CFLAGS = $(LOOSE_WARN)
55 WARN_CFLAGS = @warn_cflags@
57 TARGET_LIBGCC2_CFLAGS=
58 GNATLIBCFLAGS= -g -O2
60 # Get target-specific overrides for TARGET_LIBGCC2_CFLAGS.
61 host_subdir = @host_subdir@
62 GCC_DIR=$(MULTIBUILDTOP)../../$(host_subdir)/gcc
63 include $(GCC_DIR)/libgcc.mvars
65 target_noncanonical:=@target_noncanonical@
66 version := $(shell cat $(srcdir)/../gcc/BASE-VER)
67 libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR)
68 ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR))
70 # exeext should not be used because it's the *host* exeext. We're building
71 # a *target* library, aren't we?!? Likewise for CC. Still, provide bogus
72 # definitions just in case something slips through the safety net provided
73 # by recursive make invocations in gcc/ada/Makefile.in
74 LIBADA_FLAGS_TO_PASS = \
75 "MAKEOVERRIDES=" \
76 "LDFLAGS=$(LDFLAGS)" \
77 "LN_S=$(LN_S)" \
78 "SHELL=$(SHELL)" \
79 "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS)" \
80 "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS)" \
81 "TARGET_LIBGCC2_CFLAGS=$(TARGET_LIBGCC2_CFLAGS)" \
82 "THREAD_KIND=$(THREAD_KIND)" \
83 "TRACE=$(TRACE)" \
84 "MULTISUBDIR=$(MULTISUBDIR)" \
85 "libsubdir=$(libsubdir)" \
86 "objext=$(objext)" \
87 "prefix=$(prefix)" \
88 "exeext=.exeext.should.not.be.used " \
89 'CC=the.host.compiler.should.not.be.needed' \
90 "GCC_FOR_TARGET=$(CC)" \
91 "CFLAGS=$(CFLAGS) $(WARN_CFLAGS)"
93 # Rules to build gnatlib.
94 .PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared oscons
95 gnatlib: @default_gnatlib_target@
97 gnatlib-plain: oscons $(GCC_DIR)/ada/Makefile
98 test -f stamp-libada || \
99 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) gnatlib \
100 && touch stamp-libada
101 -rm -rf adainclude
102 -rm -rf adalib
103 $(LN_S) $(ADA_RTS_DIR) adainclude
104 $(LN_S) $(ADA_RTS_DIR) adalib
106 gnatlib-sjlj gnatlib-zcx gnatlib-shared: oscons $(GCC_DIR)/ada/Makefile
107 test -f stamp-libada || \
108 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) $@ \
109 && touch stamp-libada
110 -rm -rf adainclude
111 -rm -rf adalib
112 $(LN_S) $(ADA_RTS_DIR) adainclude
113 $(LN_S) $(ADA_RTS_DIR) adalib
115 oscons:
116 $(MAKE) -C $(GCC_DIR) $(LIBADA_FLAGS_TO_PASS) ada/s-oscons.ads
118 install-gnatlib: $(GCC_DIR)/ada/Makefile
119 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) install-gnatlib
121 # Check uninstalled version.
122 check:
124 # Check installed version.
125 installcheck:
127 # Build info (none here).
128 info:
130 # Build DVI (none here).
131 dvi:
133 # Build PDF (none here).
134 pdf:
136 # Build html (none here).
137 html:
139 # Build TAGS (none here).
140 TAGS:
142 # Installation rules.
143 install: install-gnatlib
144 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
146 install-info:
148 install-pdf:
150 install-html:
152 # Cleaning rules.
153 mostlyclean:
154 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
156 clean:
157 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
159 distclean:
160 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
161 $(RM) Makefile config.status config.log
163 maintainer-clean:
165 # Rules for rebuilding this Makefile.
166 Makefile: $(srcdir)/Makefile.in config.status
167 CONFIG_FILES=$@ ; \
168 CONFIG_HEADERS= ; \
169 $(SHELL) ./config.status
171 config.status: $(srcdir)/configure
172 $(SHELL) ./config.status --recheck
174 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac \
175 $(srcdir)/../config/acx.m4 $(srcdir)/../config/override.m4
176 cd $(srcdir) && autoconf
178 # Don't export variables to the environment, in order to not confuse
179 # configure.
180 .NOEXPORT: