OSDN Git Service

2008-09-21 Laurent Guerby <laurent@guerby.net>
[pf3gnuchains/gcc-fork.git] / libada / Makefile.in
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.
19 all: gnatlib
20         $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE)
21
22 .PHONY: all install
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 LN_S=@LN_S@
43
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=
50
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@
56
57 TARGET_LIBGCC2_CFLAGS=
58 GNATLIBCFLAGS= -g -O2
59
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
64
65 target_noncanonical:=@target_noncanonical@
66 version := $(shell cat $(srcdir)/../gcc/BASE-VER)
67 libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR)
68
69 # exeext should not be used because it's the *host* exeext.  We're building
70 # a *target* library, aren't we?!?  Likewise for CC.  Still, provide bogus
71 # definitions just in case something slips through the safety net provided
72 # by recursive make invocations in gcc/ada/Makefile.in
73 LIBADA_FLAGS_TO_PASS = \
74         "MAKEOVERRIDES=" \
75         "LDFLAGS=$(LDFLAGS)" \
76         "LN_S=$(LN_S)" \
77         "SHELL=$(SHELL)" \
78         "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS)" \
79         "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS)" \
80         "TARGET_LIBGCC2_CFLAGS=$(TARGET_LIBGCC2_CFLAGS)" \
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) $(WARN_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
101 gnatlib-sjlj gnatlib-zcx gnatlib-shared: oscons $(GCC_DIR)/ada/Makefile
102         test -f stamp-libada || \
103         $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) $@ \
104         && touch stamp-libada
105
106 oscons:
107         $(MAKE) -C $(GCC_DIR) $(LIBADA_FLAGS_TO_PASS) ada/s-oscons.ads
108
109 install-gnatlib: $(GCC_DIR)/ada/Makefile
110         $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) install-gnatlib
111
112 # Check uninstalled version.
113 check:
114
115 # Check installed version.
116 installcheck:
117
118 # Build info (none here).
119 info:
120
121 # Build DVI (none here).
122 dvi:
123
124 # Build PDF (none here).
125 pdf:
126
127 # Build html (none here).
128 html:
129
130 # Build TAGS (none here).
131 TAGS:
132
133 # Installation rules.
134 install: install-gnatlib
135         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
136
137 install-info:
138
139 install-pdf:
140
141 install-html:
142
143 # Cleaning rules.
144 mostlyclean:
145         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
146
147 clean:
148         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
149
150 distclean:
151         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
152         $(RM) Makefile config.status config.log
153
154 maintainer-clean:
155
156 # Rules for rebuilding this Makefile.
157 Makefile: $(srcdir)/Makefile.in config.status
158         CONFIG_FILES=$@ ; \
159         CONFIG_HEADERS= ; \
160         $(SHELL) ./config.status
161
162 config.status: $(srcdir)/configure
163         $(SHELL) ./config.status --recheck
164
165 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac \
166         $(srcdir)/../config/acx.m4 $(srcdir)/../config/override.m4
167         cd $(srcdir) && autoconf
168
169 # Don't export variables to the environment, in order to not confuse
170 # configure.
171 .NOEXPORT: