]> git.ipfire.org Git - thirdparty/gcc.git/blame - libada/Makefile.in
configure.ac: Do not generate libada-mk.
[thirdparty/gcc.git] / libada / Makefile.in
CommitLineData
b0b70d84
AC
1# Makefile for libada.
2# Copyright 2003, 2004 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 2 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; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18# Default target; must be first.
5395b47b 19all: gnatlib
b0b70d84
AC
20
21# Standard autoconf-set variables.
22SHELL = @SHELL@
23srcdir = @srcdir@
47ad7893 24libdir = @libdir@
b0b70d84
AC
25build = @build@
26target = @target@
80dab182 27prefix = @prefix@
b0b70d84
AC
28
29# Nonstandard autoconf-set variables.
80dab182
NN
30enable_shared = @enable_shared@
31LN_S=@LN_S@
80dab182
NN
32
33# Variables for the user (or the top level) to override.
34objext=.o
35GNATLIBFLAGS= -W -Wall -gnatpg
36THREAD_KIND=native
37TRACE=no
80dab182 38LDFLAGS=
80dab182
NN
39
40# The tedious process of getting CFLAGS right.
41CFLAGS=-g
42LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
47ad7893
PB
43GCC_WARN_CFLAGS = $(LOOSE_WARN)
44WARN_CFLAGS = @warn_cflags@
b0b70d84 45
47ad7893
PB
46TARGET_LIBGCC2_CFLAGS=
47GNATLIBCFLAGS= -g -O2
b0b70d84 48
47ad7893 49# Get target-specific overrides for TARGET_LIBGCC2_CFLAGS.
9bd6112c
PB
50host_subdir = @host_subdir@
51GCC_DIR=../../$(host_subdir)/gcc
47ad7893 52include $(GCC_DIR)/libgcc.mvars
b0b70d84 53
47ad7893
PB
54# exeext should not be used because it's the *host* exeext. We're building
55# a *target* library, aren't we?!? Likewise for CC. Still, provide bogus
56# definitions just in case something slips through the safety net provided
57# by recursive make invocations in gcc/ada/Makefile.in
80dab182
NN
58FLAGS_TO_PASS = \
59 "MAKEOVERRIDES=" \
60 "LDFLAGS=$(LDFLAGS)" \
61 "LN_S=$(LN_S)" \
62 "SHELL=$(SHELL)" \
80dab182
NN
63 "objext=$(objext)" \
64 "prefix=$(prefix)" \
47ad7893
PB
65 "exeext=.exeext.should.not.be.used " \
66 'CC=the.host.compiler.should.not.be.needed' \
40077270 67 "GCC_FOR_TARGET=$(CC)" \
80dab182
NN
68 "CFLAGS=$(CFLAGS) $(WARN_CFLAGS)"
69
b0b70d84 70# Rules to build gnatlib.
c2b5e13b 71.PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared
80dab182
NN
72gnatlib: @default_gnatlib_target@
73
5395b47b
NN
74gnatlib-plain: $(GCC_DIR)/ada/Makefile
75 test -f stamp-libada || \
80dab182
NN
76 $(MAKE) -C $(GCC_DIR)/ada $(FLAGS_TO_PASS) \
77 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
78 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
80dab182
NN
79 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
80 THREAD_KIND="$(THREAD_KIND)" \
e9f4e557 81 TRACE="$(TRACE)" \
5395b47b
NN
82 gnatlib \
83 && touch stamp-libada
80dab182 84
5395b47b
NN
85gnatlib-sjlj gnatlib-zcx gnatlib-shared: $(GCC_DIR)/ada/Makefile
86 test -f stamp-libada || \
80dab182 87 $(MAKE) -C $(GCC_DIR)/ada $(FLAGS_TO_PASS) \
e9f4e557
NN
88 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
89 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
90 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
91 THREAD_KIND="$(THREAD_KIND)" \
92 TRACE="$(TRACE)" \
5395b47b
NN
93 $@ \
94 && touch stamp-libada
e9f4e557 95
b0b70d84
AC
96# Check uninstalled version.
97check:
98
99# Check installed version.
100installcheck:
101
102# Build info (none here).
103info:
104
105# Build DVI (none here).
106dvi:
107
a8384928
BM
108# Build PDF (none here).
109pdf:
110
01a1e85a
JW
111# Build html (none here).
112html:
113
b0b70d84
AC
114# Build TAGS (none here).
115TAGS:
116
117# Installation rules.
118install:
119
120install-info:
121
00189cc6
BM
122install-pdf:
123
312e3fcb
CD
124install-html:
125
b0b70d84
AC
126# Cleaning rules.
127mostlyclean:
128
129clean:
130
131distclean:
132 $(RM) Makefile config.status config.log
133
134maintainer-clean:
135
136# Rules for rebuilding this Makefile.
137Makefile: $(srcdir)/Makefile.in config.status
138 CONFIG_FILES=$@ ; \
139 CONFIG_HEADERS= ; \
140 $(SHELL) ./config.status
141
142config.status: $(srcdir)/configure
143 $(SHELL) ./config.status --recheck
144
18c04407
RW
145$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac \
146 $(srcdir)/../config/acx.m4 $(srcdir)/../config/override.m4
b0b70d84 147 cd $(srcdir) && autoconf
54b2f310
DJ
148
149# Don't export variables to the environment, in order to not confuse
150# configure.
151.NOEXPORT: