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