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.
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.
26 enable_shared
= @enable_shared@
28 # Nonstandard autoconf-set variables.
34 ifeq ($(build
),$(target
))
37 ifeq ($(enable_shared
),yes
)
38 GNATLIB
= gnatlib-shared
42 GNATTOOLS
= cross-gnattools ada.
all.cross
45 # Rules to build gnatlib.
47 $(MAKE
) -C ..
/..
/gcc
$(FLAGS_TO_PASS
) $(GNATLIB
)
49 # Rules to build gnattools.
51 $(MAKE
) -C ..
/..
/gcc
$(FLAGS_TO_PASS
) $(GNATTOOLS
)
53 # Check uninstalled version.
56 # Check installed version.
59 # Build info (none here).
62 # Build DVI (none here).
65 # Build TAGS (none here).
79 $(RM
) Makefile config.status config.log
83 # Rules for rebuilding this Makefile.
84 Makefile
: $(srcdir)/Makefile.in config.status
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