OSDN Git Service

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