gcc/testsuite/:
[official-gcc.git] / libada / Makefile.in
blobe1565e792ec03779b45ccad01b9b8a3f4eec6462
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 gnattools
21 # Standard autoconf-set variables.
22 SHELL = @SHELL@
23 srcdir = @srcdir@
24 build = @build@
25 target = @target@
26 enable_shared = @enable_shared@
28 # Nonstandard autoconf-set variables.
30 FLAGS_TO_PASS =
32 GNATLIB = gnatlib
34 ifeq ($(build),$(target))
35 GNATTOOLS = gnattools
37 ifeq ($(enable_shared),yes)
38 GNATLIB = gnatlib-shared
39 endif
41 else
42 GNATTOOLS = cross-gnattools ada.all.cross
43 endif
45 # Rules to build gnatlib.
46 gnatlib:
47 $(MAKE) -C ../../gcc $(FLAGS_TO_PASS) $(GNATLIB)
49 # Rules to build gnattools.
50 gnattools: gnatlib
51 $(MAKE) -C ../../gcc $(FLAGS_TO_PASS) $(GNATTOOLS)
53 # Check uninstalled version.
54 check:
56 # Check installed version.
57 installcheck:
59 # Build info (none here).
60 info:
62 # Build DVI (none here).
63 dvi:
65 # Build TAGS (none here).
66 TAGS:
68 # Installation rules.
69 install:
71 install-info:
73 # Cleaning rules.
74 mostlyclean:
76 clean:
78 distclean:
79 $(RM) Makefile config.status config.log
81 maintainer-clean:
83 # Rules for rebuilding this Makefile.
84 Makefile: $(srcdir)/Makefile.in config.status
85 CONFIG_FILES=$@ ; \
86 CONFIG_HEADERS= ; \
87 $(SHELL) ./config.status
89 config.status: $(srcdir)/configure
90 $(SHELL) ./config.status --recheck
92 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.in
93 cd $(srcdir) && autoconf