OSDN Git Service

2008-08-28 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
21 # Standard autoconf-set variables.
22 SHELL = @SHELL@
23 srcdir = @srcdir@
24 libdir = @libdir@
25 build = @build@
26 target = @target@
27 prefix = @prefix@
28
29 # Nonstandard autoconf-set variables.
30 enable_shared = @enable_shared@
31 LN_S=@LN_S@
32
33 # Variables for the user (or the top level) to override.
34 objext=.o
35 GNATLIBFLAGS= -W -Wall -gnatpg
36 THREAD_KIND=native
37 TRACE=no
38 LDFLAGS=
39
40 # The tedious process of getting CFLAGS right.
41 CFLAGS=-g
42 LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
43 GCC_WARN_CFLAGS = $(LOOSE_WARN)
44 WARN_CFLAGS = @warn_cflags@
45
46 TARGET_LIBGCC2_CFLAGS=
47 GNATLIBCFLAGS= -g -O2
48
49 # Get target-specific overrides for TARGET_LIBGCC2_CFLAGS.
50 host_subdir = @host_subdir@
51 GCC_DIR=../../$(host_subdir)/gcc
52 include $(GCC_DIR)/libgcc.mvars
53
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
58 FLAGS_TO_PASS = \
59         "MAKEOVERRIDES=" \
60         "LDFLAGS=$(LDFLAGS)" \
61         "LN_S=$(LN_S)" \
62         "SHELL=$(SHELL)" \
63         "objext=$(objext)" \
64         "prefix=$(prefix)" \
65         "exeext=.exeext.should.not.be.used " \
66         'CC=the.host.compiler.should.not.be.needed' \
67         "GCC_FOR_TARGET=$(CC)" \
68         "CFLAGS=$(CFLAGS) $(WARN_CFLAGS)"
69
70 # Rules to build gnatlib.
71 .PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared oscons
72 gnatlib: @default_gnatlib_target@
73
74 gnatlib-plain: oscons $(GCC_DIR)/ada/Makefile
75         test -f stamp-libada || \
76         $(MAKE) -C $(GCC_DIR)/ada $(FLAGS_TO_PASS) \
77           GNATLIBFLAGS="$(GNATLIBFLAGS)" \
78           GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
79           TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
80           THREAD_KIND="$(THREAD_KIND)" \
81           TRACE="$(TRACE)" \
82           gnatlib \
83         && touch stamp-libada
84
85 gnatlib-sjlj gnatlib-zcx gnatlib-shared: oscons $(GCC_DIR)/ada/Makefile
86         test -f stamp-libada || \
87         $(MAKE) -C $(GCC_DIR)/ada $(FLAGS_TO_PASS) \
88           GNATLIBFLAGS="$(GNATLIBFLAGS)" \
89           GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
90           TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
91           THREAD_KIND="$(THREAD_KIND)" \
92           TRACE="$(TRACE)" \
93           $@ \
94         && touch stamp-libada
95
96 oscons:
97         $(MAKE) -C $(GCC_DIR) THREAD_KIND="$(THREAD_KIND)" \
98           $(FLAGS_TO_PASS) ada/s-oscons.ads
99
100 # Check uninstalled version.
101 check:
102
103 # Check installed version.
104 installcheck:
105
106 # Build info (none here).
107 info:
108
109 # Build DVI (none here).
110 dvi:
111
112 # Build PDF (none here).
113 pdf:
114
115 # Build html (none here).
116 html:
117
118 # Build TAGS (none here).
119 TAGS:
120
121 # Installation rules.
122 install:
123
124 install-info:
125
126 install-pdf:
127
128 install-html:
129
130 # Cleaning rules.
131 mostlyclean:
132
133 clean:
134
135 distclean:
136         $(RM) Makefile config.status config.log
137
138 maintainer-clean:
139
140 # Rules for rebuilding this Makefile.
141 Makefile: $(srcdir)/Makefile.in config.status
142         CONFIG_FILES=$@ ; \
143         CONFIG_HEADERS= ; \
144         $(SHELL) ./config.status
145
146 config.status: $(srcdir)/configure
147         $(SHELL) ./config.status --recheck
148
149 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac \
150         $(srcdir)/../config/acx.m4 $(srcdir)/../config/override.m4
151         cd $(srcdir) && autoconf
152
153 # Don't export variables to the environment, in order to not confuse
154 # configure.
155 .NOEXPORT: