* lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
[official-gcc.git] / libada / Makefile.in
blob1e5f8b5e2fd385d4e4b773c7aca92cb9f89d03ae
1 # Makefile for libada.
2 # Copyright 2003, 2004 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 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.
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.
18 # Default target; must be first.
19 all: gnatlib
21 # Standard autoconf-set variables.
22 SHELL = @SHELL@
23 srcdir = @srcdir@
24 build = @build@
25 target = @target@
26 prefix = @prefix@
28 # Nonstandard autoconf-set variables.
29 enable_shared = @enable_shared@
30 LN_S=@LN_S@
32 # Variables for the user (or the top level) to override.
33 objext=.o
34 GNATLIBFLAGS= -W -Wall -gnatpg
35 THREAD_KIND=native
36 TRACE=no
37 LDFLAGS=
39 # The tedious process of getting CFLAGS right.
40 CFLAGS=-g
41 LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
42 GCC_WARN_CFLAGS = $(LOOSE_WARN) $(NOCOMMON_FLAG)
44 ADA_CFLAGS=
45 T_ADA_CFLAGS=
46 # HPPA is literally the only target which sets X_ADA_CFLAGS
47 X_ADA_CFLAGS=@x_ada_cflags@
48 ALL_ADA_CFLAGS=$(X_ADA_CFLAGS) $(T_ADA_CFLAGS) $(ADA_CFLAGS)
50 # For finding the GCC build dir, which is used far too much
51 host_subdir = @host_subdir@
52 GCC_DIR=../../$(host_subdir)/gcc
53 # Include fragment generated by GCC configure.
54 include $(GCC_DIR)/libada-mk
56 TARGET_LIBGCC2_CFLAGS=
57 GNATLIBCFLAGS= -g -O2
58 # Get target-specific overrides for TARGET_LIBGCC2_CFLAGS
59 # and possibly GNATLIBCFLAGS. Currently this uses files
60 # in gcc/config. The 'subst' call is used to rerelativize them
61 # from their gcc locations. This is hackery, but there isn't
62 # yet a better way to do this.
63 tmake_file=$(subst /config,/../gcc/config,$(gcc_tmake_file))
64 ifneq ($(tmake_file),)
65 include $(tmake_file)
66 endif
68 FLAGS_TO_PASS = \
69 "MAKEOVERRIDES=" \
70 "LDFLAGS=$(LDFLAGS)" \
71 "LN_S=$(LN_S)" \
72 "SHELL=$(SHELL)" \
73 "exeext=$(exeext)" \
74 "objext=$(objext)" \
75 "prefix=$(prefix)" \
76 "CC=$(host_cc_for_libada)" \
77 "GCC_FOR_TARGET=$(CC)" \
78 "CFLAGS=$(CFLAGS) $(WARN_CFLAGS)"
80 # Rules to build gnatlib.
81 .PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared
82 gnatlib: @default_gnatlib_target@
84 gnatlib-plain: $(GCC_DIR)/ada/Makefile
85 test -f stamp-libada || \
86 $(MAKE) -C $(GCC_DIR)/ada $(FLAGS_TO_PASS) \
87 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
88 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
89 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
90 THREAD_KIND="$(THREAD_KIND)" \
91 TRACE="$(TRACE)" \
92 gnatlib \
93 && touch stamp-libada
95 gnatlib-sjlj gnatlib-zcx gnatlib-shared: $(GCC_DIR)/ada/Makefile
96 test -f stamp-libada || \
97 $(MAKE) -C $(GCC_DIR)/ada $(FLAGS_TO_PASS) \
98 GNATLIBFLAGS="$(GNATLIBFLAGS)" \
99 GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
100 TARGET_LIBGCC2_CFLAGS="$(TARGET_LIBGCC2_CFLAGS)" \
101 THREAD_KIND="$(THREAD_KIND)" \
102 TRACE="$(TRACE)" \
103 $@ \
104 && touch stamp-libada
106 # Check uninstalled version.
107 check:
109 # Check installed version.
110 installcheck:
112 # Build info (none here).
113 info:
115 # Build DVI (none here).
116 dvi:
118 # Build PDF (none here).
119 pdf:
121 # Build html (none here).
122 html:
124 # Build TAGS (none here).
125 TAGS:
127 # Installation rules.
128 install:
130 install-info:
132 install-html:
134 # Cleaning rules.
135 mostlyclean:
137 clean:
139 distclean:
140 $(RM) Makefile config.status config.log
142 maintainer-clean:
144 # Rules for rebuilding this Makefile.
145 Makefile: $(srcdir)/Makefile.in config.status
146 CONFIG_FILES=$@ ; \
147 CONFIG_HEADERS= ; \
148 $(SHELL) ./config.status
150 config.status: $(srcdir)/configure
151 $(SHELL) ./config.status --recheck
153 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac
154 cd $(srcdir) && autoconf
156 # Don't export variables to the environment, in order to not confuse
157 # configure.
158 .NOEXPORT: