Mercurial > hg > CbC > CbC_gcc
comparison libada/Makefile.in @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 # Makefile for libada. | 1 # Makefile for libada. |
2 # Copyright (C) 2003-2018 Free Software Foundation, Inc. | 2 # Copyright (C) 2003-2020 Free Software Foundation, Inc. |
3 # | 3 # |
4 # This file is free software; you can redistribute it and/or modify | 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 | 5 # it under the terms of the GNU General Public License as published by |
6 # the Free Software Foundation; either version 3 of the License, or | 6 # the Free Software Foundation; either version 3 of the License, or |
7 # (at your option) any later version. | 7 # (at your option) any later version. |
14 # You should have received a copy of the GNU General Public License | 14 # You should have received a copy of the GNU General Public License |
15 # along with this program; see the file COPYING3. If not see | 15 # along with this program; see the file COPYING3. If not see |
16 # <http://www.gnu.org/licenses/>. | 16 # <http://www.gnu.org/licenses/>. |
17 | 17 |
18 # Default target; must be first. | 18 # Default target; must be first. |
19 all: gnatlib | 19 all: libada |
20 $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE) | 20 $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE) |
21 | 21 |
22 .PHONY: all | 22 .PHONY: all |
23 | 23 |
24 ## Multilib support variables. | 24 ## Multilib support variables. |
36 build = @build@ | 36 build = @build@ |
37 target = @target@ | 37 target = @target@ |
38 prefix = @prefix@ | 38 prefix = @prefix@ |
39 | 39 |
40 # Nonstandard autoconf-set variables. | 40 # Nonstandard autoconf-set variables. |
41 toolexecdir = @toolexecdir@ | |
42 toolexeclibdir = @toolexeclibdir@ | |
41 enable_shared = @enable_shared@ | 43 enable_shared = @enable_shared@ |
42 | 44 |
43 LN_S=@LN_S@ | 45 LN_S=@LN_S@ |
44 AWK=@AWK@ | 46 AWK=@AWK@ |
45 | 47 |
68 | 70 |
69 target_noncanonical:=@target_noncanonical@ | 71 target_noncanonical:=@target_noncanonical@ |
70 version := $(shell @get_gcc_base_ver@ $(srcdir)/../gcc/BASE-VER) | 72 version := $(shell @get_gcc_base_ver@ $(srcdir)/../gcc/BASE-VER) |
71 libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR) | 73 libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR) |
72 ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR)) | 74 ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR)) |
73 ADA_RTS_SUBDIR=./rts$(subst /,_,$(MULTISUBDIR)) | |
74 | 75 |
75 # exeext should not be used because it's the *host* exeext. We're building | 76 # exeext should not be used because it's the *host* exeext. We're building |
76 # a *target* library, aren't we?!? Likewise for CC. Still, provide bogus | 77 # a *target* library, aren't we?!? Likewise for CC. Still, provide bogus |
77 # definitions just in case something slips through the safety net provided | 78 # definitions just in case something slips through the safety net provided |
78 # by recursive make invocations in gcc/ada/Makefile.in | 79 # by recursive make invocations in gcc/ada/Makefile.in |
87 "PICFLAG_FOR_TARGET=$(PICFLAG)" \ | 88 "PICFLAG_FOR_TARGET=$(PICFLAG)" \ |
88 "THREAD_KIND=$(THREAD_KIND)" \ | 89 "THREAD_KIND=$(THREAD_KIND)" \ |
89 "TRACE=$(TRACE)" \ | 90 "TRACE=$(TRACE)" \ |
90 "MULTISUBDIR=$(MULTISUBDIR)" \ | 91 "MULTISUBDIR=$(MULTISUBDIR)" \ |
91 "libsubdir=$(libsubdir)" \ | 92 "libsubdir=$(libsubdir)" \ |
93 "toolexeclibdir=$(toolexeclibdir)" \ | |
92 "objext=$(objext)" \ | 94 "objext=$(objext)" \ |
93 "prefix=$(prefix)" \ | 95 "prefix=$(prefix)" \ |
94 "exeext=.exeext.should.not.be.used " \ | 96 "exeext=.exeext.should.not.be.used " \ |
95 'CC=the.host.compiler.should.not.be.needed' \ | 97 'CC=the.host.compiler.should.not.be.needed' \ |
96 "GCC_FOR_TARGET=$(CC)" \ | 98 "GCC_FOR_TARGET=$(CC)" \ |
97 "CFLAGS=$(CFLAGS)" | 99 "CFLAGS=$(CFLAGS)" |
98 | 100 |
99 # Rules to build gnatlib. | 101 .PHONY: libada gnatlib gnatlib-shared gnatlib-sjlj gnatlib-zcx osconstool |
100 .PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared osconstool | |
101 gnatlib: @default_gnatlib_target@ | |
102 | 102 |
103 gnatlib-plain: osconstool $(GCC_DIR)/ada/Makefile | 103 # Rules to build and install libada. |
104 test -f stamp-libada || \ | 104 libada: @default_gnatlib_target@ |
105 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) gnatlib \ | |
106 && touch stamp-libada | |
107 -rm -rf adainclude | |
108 -rm -rf adalib | |
109 $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adainclude | |
110 $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adalib | |
111 | 105 |
112 gnatlib-sjlj gnatlib-zcx gnatlib-shared: osconstool $(GCC_DIR)/ada/Makefile | 106 gnatlib gnatlib-shared gnatlib-sjlj gnatlib-zcx: osconstool $(GCC_DIR)/ada/Makefile |
113 test -f stamp-libada || \ | 107 test -f stamp-libada || \ |
114 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) $@ \ | 108 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) $@ \ |
115 && touch stamp-libada | 109 && touch stamp-libada |
116 -rm -rf adainclude | 110 -rm -rf adainclude |
117 -rm -rf adalib | 111 -rm -rf adalib |
119 $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adalib | 113 $(LN_S_RECURSIVE) $(ADA_RTS_DIR) adalib |
120 | 114 |
121 osconstool: | 115 osconstool: |
122 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) ./bldtools/oscons/xoscons | 116 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) ./bldtools/oscons/xoscons |
123 | 117 |
124 install-gnatlib: $(GCC_DIR)/ada/Makefile | 118 install-libada: $(GCC_DIR)/ada/Makefile |
125 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) install-gnatlib | 119 $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) install-gnatlib |
126 | 120 |
127 # Check uninstalled version. | 121 # Check uninstalled version. |
128 check: | 122 check: |
129 | 123 |
146 TAGS: | 140 TAGS: |
147 | 141 |
148 .PHONY: check installcheck info dvi pdf html | 142 .PHONY: check installcheck info dvi pdf html |
149 | 143 |
150 # Installation rules. | 144 # Installation rules. |
151 install: install-gnatlib | 145 install: install-libada |
152 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE) | 146 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE) |
153 | 147 |
154 install-strip: install | 148 install-strip: install |
155 | 149 |
156 install-info: | 150 install-info: |
190 $(srcdir)/configure.ac \ | 184 $(srcdir)/configure.ac \ |
191 $(srcdir)/../config/acx.m4 \ | 185 $(srcdir)/../config/acx.m4 \ |
192 $(srcdir)/../config/multi.m4 \ | 186 $(srcdir)/../config/multi.m4 \ |
193 $(srcdir)/../config/override.m4 \ | 187 $(srcdir)/../config/override.m4 \ |
194 $(srcdir)/../config/picflag.m4 \ | 188 $(srcdir)/../config/picflag.m4 \ |
189 $(srcdir)/../config/toolexeclibdir.m4 \ | |
195 $(srcdir)/../config/unwind_ipinfo.m4 | 190 $(srcdir)/../config/unwind_ipinfo.m4 |
196 | 191 |
197 $(srcdir)/configure: @MAINT@ $(configure_deps) | 192 $(srcdir)/configure: @MAINT@ $(configure_deps) |
198 cd $(srcdir) && $(AUTOCONF) | 193 cd $(srcdir) && $(AUTOCONF) |
199 | 194 |