1
1
# Make-lang.in -- Top level -*- makefile -*- fragment for GCC Rust frontend.
2
2
3
- # Copyright (C) 2009-2013 Free Software Foundation, Inc.
3
+ # Copyright (C) 2009-2020 Free Software Foundation, Inc.
4
4
5
5
# This file is part of GCC.
6
6
11
11
12
12
# GCC is distributed in the hope that it will be useful,
13
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
15
# GNU General Public License for more details.
16
16
17
17
# You should have received a copy of the GNU General Public License
@@ -54,7 +54,7 @@ gccrs$(exeext): $(GCCRS_D_OBJS) $(EXTRA_GCC_OBJS) libcommon-target.a $(LIBDEPS)
54
54
$(GCCRS_D_OBJS ) $(EXTRA_GCC_OBJS ) libcommon-target.a \
55
55
$(EXTRA_GCC_LIBS ) $(LIBS )
56
56
57
- # List of host object files used by the rust language - files for translation from the parse tree
57
+ # List of host object files used by the rust language - files for translation from the parse tree
58
58
# to GENERIC
59
59
# The compiler proper, not driver
60
60
GRS_OBJS = \
@@ -69,12 +69,13 @@ GRS_OBJS = \
69
69
rust/rust-parse.o \
70
70
rust/rust-ast-full-test.o \
71
71
rust/rust-session-manager.o \
72
- rust/rust-resolution.o \
72
+ rust/rust-name-resolution.o \
73
+ rust/rust-type-resolution.o \
73
74
rust/rust-scan.o \
74
75
rust/rust-compile.o \
75
76
rust/rust-macro-expand.o \
76
77
$(END )
77
- # removed object files from here
78
+ # removed object files from here
78
79
79
80
# All language-specific object files for Rust.
80
81
RUST_ALL_OBJS = $(GRS_OBJS ) $(RUST_TARGET_OBJS )
@@ -93,25 +94,25 @@ lang_checks_parallelized += check-rust
93
94
check_rust_parallelize = 10
94
95
95
96
# Copies its dependencies into the source directory. This generally should be used for generated files
96
- # such as Bison output files which are not version-controlled, but should be included in any release
97
- # tarballs. This target will be executed during a bootstrap if ‘--enable-generated-files-in-srcdir’
98
- # was specified as a configure option.
99
- rust.srcextra :
97
+ # such as Bison output files which are not version-controlled, but should be included in any release
98
+ # tarballs. This target will be executed during a bootstrap if ‘--enable-generated-files-in-srcdir’
99
+ # was specified as a configure option.
100
+ rust.srcextra :
100
101
101
102
rust.all.cross :
102
103
103
104
# idk what this does but someone used it
104
105
rust.start.encap : gccrs$(exeext )
105
106
rust.rest.encap :
106
107
107
- # Build generated man pages for the front end from Texinfo manuals (see Man Page Generation), in the
108
- # build directory. This target is only called if the necessary tools are available, but should ignore
109
- # errors so as not to stop the build if errors occur; man pages are optional and the tools involved
110
- # may be installed in a broken way.
108
+ # Build generated man pages for the front end from Texinfo manuals (see Man Page Generation), in the
109
+ # build directory. This target is only called if the necessary tools are available, but should ignore
110
+ # errors so as not to stop the build if errors occur; man pages are optional and the tools involved
111
+ # may be installed in a broken way.
111
112
rust.man :
112
113
113
114
# Copies its dependencies into the source directory. These targets will be executed during a bootstrap
114
- # if ‘--enable-generated-files-in-srcdir’ was specified as a configure option.
115
+ # if ‘--enable-generated-files-in-srcdir’ was specified as a configure option.
115
116
rust.srcman :
116
117
117
118
# Clean hooks.
@@ -122,40 +123,40 @@ rust.mostlyclean:
122
123
rust.clean : rust.mostlyclean
123
124
124
125
# Builds an etags TAGS file in the language subdirectory in the source tree.
125
- # TODO: add more directories if I add more
126
+ # TODO: add more directories if I add more
126
127
rust.tags : force
127
128
cd $(srcdir ) /rust; \
128
129
etags -o TAGS.sub * .y * .l * .cc * .h ast/* .h ast/* .cc lex/* .h lex/* .cc parse/* .h parse/* .cc; \
129
130
etags --include TAGS.sub --include ../TAGS.sub
130
131
131
132
# Build documentation hooks.
132
133
133
- # Build info documentation for the front end, in the build directory. This target is only called by
134
- # ‘make bootstrap’ if a suitable version of makeinfo is available, so does not need to check for this,
135
- # and should fail if an error occurs.
136
- rust.info :
134
+ # Build info documentation for the front end, in the build directory. This target is only called by
135
+ # ‘make bootstrap’ if a suitable version of makeinfo is available, so does not need to check for this,
136
+ # and should fail if an error occurs.
137
+ rust.info :
137
138
138
- rust.srcinfo :
139
+ rust.srcinfo :
139
140
140
- # Build DVI documentation for the front end, in the build directory. This should be done using
141
- # $(TEXI2DVI), with appropriate -I arguments pointing to directories of included files.
142
- rust.dvi :
141
+ # Build DVI documentation for the front end, in the build directory. This should be done using
142
+ # $(TEXI2DVI), with appropriate -I arguments pointing to directories of included files.
143
+ rust.dvi :
143
144
144
- # Build PDF documentation for the front end, in the build directory. This should be done using
145
- # $(TEXI2PDF), with appropriate -I arguments pointing to directories of included files.
146
- rust.pdf :
145
+ # Build PDF documentation for the front end, in the build directory. This should be done using
146
+ # $(TEXI2PDF), with appropriate -I arguments pointing to directories of included files.
147
+ rust.pdf :
147
148
148
- doc/rust.info :
149
- doc/rust.dvi :
150
- doc/rust.pdf :
149
+ doc/rust.info :
150
+ doc/rust.dvi :
151
+ doc/rust.pdf :
151
152
152
- # Build HTML documentation for the front end, in the build directory.
153
- rust.html :
153
+ # Build HTML documentation for the front end, in the build directory.
154
+ rust.html :
154
155
155
156
# Install hooks.
156
157
157
- # Install everything that is part of the front end, apart from the compiler executables listed in
158
- # compilers in config-lang.in.
158
+ # Install everything that is part of the front end, apart from the compiler executables listed in
159
+ # compilers in config-lang.in.
159
160
rust.install-common : installdirs
160
161
# -rm -f $(DESTDIR)$(bindir)/$(GCCRS_INSTALL_NAME)$(exeext)
161
162
# -rm -f $(DESTDIR)$(bindir)/$(GCCRS_TARGET_INSTALL_NAME)$(exeext)
@@ -172,11 +173,11 @@ rust.install-common: installdirs
172
173
( cd $(DESTDIR)$(bindir) && \
173
174
$(LN) $(GCCRS_INSTALL_NAME)$(exeext) $(GCCRS_TARGET_INSTALL_NAME)$(exeext) ); \
174
175
175
- # Install headers needed for plugins.
176
+ # Install headers needed for plugins.
176
177
rust.install-plugin :
177
178
178
- # Uninstall files installed by installing the compiler. This is currently documented not to be
179
- # supported, so the hook need not do anything.
179
+ # Uninstall files installed by installing the compiler. This is currently documented not to be
180
+ # supported, so the hook need not do anything.
180
181
rust.uninstall :
181
182
# -rm -rf $(DESTDIR)/$(bindir)/$(GCCRS_INSTALL_NAME)$(exeext)
182
183
-rm -f gccrs$(exeext) grs1$(exeext)
@@ -186,13 +187,13 @@ rust.uninstall:
186
187
# No rust-specific selftests
187
188
selftest-rust :
188
189
189
- # Install info documentation for the front end, if it is present in the source directory. This target
190
- # should have dependencies on info files that should be installed.
191
- rust.install-info :
190
+ # Install info documentation for the front end, if it is present in the source directory. This target
191
+ # should have dependencies on info files that should be installed.
192
+ rust.install-info :
192
193
193
- rust.install-pdf :
194
+ rust.install-pdf :
194
195
195
- # Install man pages for the front end. This target should ignore errors.
196
+ # Install man pages for the front end. This target should ignore errors.
196
197
rust.install-man :
197
198
198
199
# Stage hooks:
0 commit comments