i386: Fix up *jcc_bt*_mask{,_1} [PR111408]
[official-gcc.git] / gotools / Makefile.in
blob36c2ec2abd38e0e686ad4f480c2415e5afb2a815
1 # Makefile.in generated by automake 1.15.1 from Makefile.am.
2 # @configure_input@
4 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
15 @SET_MAKE@
17 # Makefile for gotools
18 # Copyright (C) 2015-2016 Free Software Foundation, Inc.
20 # This file is free software; you can redistribute it and/or modify
21 # it under the terms of the GNU General Public License as published by
22 # the Free Software Foundation; either version 3 of the License, or
23 # (at your option) any later version.
25 # This program is distributed in the hope that it will be useful,
26 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 # GNU General Public License for more details.
30 # You should have received a copy of the GNU General Public License
31 # along with this program; see the file COPYING3. If not see
32 # <http://www.gnu.org/licenses/>.
34 VPATH = @srcdir@
35 am__is_gnu_make = { \
36 if test -z '$(MAKELEVEL)'; then \
37 false; \
38 elif test -n '$(MAKE_HOST)'; then \
39 true; \
40 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
41 true; \
42 else \
43 false; \
44 fi; \
46 am__make_running_with_option = \
47 case $${target_option-} in \
48 ?) ;; \
49 *) echo "am__make_running_with_option: internal error: invalid" \
50 "target option '$${target_option-}' specified" >&2; \
51 exit 1;; \
52 esac; \
53 has_opt=no; \
54 sane_makeflags=$$MAKEFLAGS; \
55 if $(am__is_gnu_make); then \
56 sane_makeflags=$$MFLAGS; \
57 else \
58 case $$MAKEFLAGS in \
59 *\\[\ \ ]*) \
60 bs=\\; \
61 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
62 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
63 esac; \
64 fi; \
65 skip_next=no; \
66 strip_trailopt () \
67 { \
68 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
69 }; \
70 for flg in $$sane_makeflags; do \
71 test $$skip_next = yes && { skip_next=no; continue; }; \
72 case $$flg in \
73 *=*|--*) continue;; \
74 -*I) strip_trailopt 'I'; skip_next=yes;; \
75 -*I?*) strip_trailopt 'I';; \
76 -*O) strip_trailopt 'O'; skip_next=yes;; \
77 -*O?*) strip_trailopt 'O';; \
78 -*l) strip_trailopt 'l'; skip_next=yes;; \
79 -*l?*) strip_trailopt 'l';; \
80 -[dEDm]) skip_next=yes;; \
81 -[JT]) skip_next=yes;; \
82 esac; \
83 case $$flg in \
84 *$$target_option*) has_opt=yes; break;; \
85 esac; \
86 done; \
87 test $$has_opt = yes
88 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
89 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
90 pkgdatadir = $(datadir)/@PACKAGE@
91 pkgincludedir = $(includedir)/@PACKAGE@
92 pkglibdir = $(libdir)/@PACKAGE@
93 pkglibexecdir = $(libexecdir)/@PACKAGE@
94 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
95 install_sh_DATA = $(install_sh) -c -m 644
96 install_sh_PROGRAM = $(install_sh) -c
97 install_sh_SCRIPT = $(install_sh) -c
98 INSTALL_HEADER = $(INSTALL_DATA)
99 transform = $(program_transform_name)
100 NORMAL_INSTALL = :
101 PRE_INSTALL = :
102 POST_INSTALL = :
103 NORMAL_UNINSTALL = :
104 PRE_UNINSTALL = :
105 POST_UNINSTALL = :
106 build_triplet = @build@
107 host_triplet = @host@
108 target_triplet = @target@
109 subdir = .
110 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
111 am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
112 $(top_srcdir)/../config/depstand.m4 \
113 $(top_srcdir)/../config/lead-dot.m4 \
114 $(top_srcdir)/../config/override.m4 $(top_srcdir)/configure.ac
115 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
116 $(ACLOCAL_M4)
117 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
118 $(am__configure_deps)
119 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
120 configure.lineno config.status.lineno
121 CONFIG_CLEAN_FILES =
122 CONFIG_CLEAN_VPATH_FILES =
123 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"
124 PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
125 buildid_SOURCES = buildid.c
126 buildid_OBJECTS = buildid.$(OBJEXT)
127 buildid_LDADD = $(LDADD)
128 cgo_SOURCES = cgo.c
129 cgo_OBJECTS = cgo.$(OBJEXT)
130 cgo_LDADD = $(LDADD)
131 go_SOURCES = go.c
132 go_OBJECTS = go.$(OBJEXT)
133 go_LDADD = $(LDADD)
134 gofmt_SOURCES = gofmt.c
135 gofmt_OBJECTS = gofmt.$(OBJEXT)
136 gofmt_LDADD = $(LDADD)
137 test2json_SOURCES = test2json.c
138 test2json_OBJECTS = test2json.$(OBJEXT)
139 test2json_LDADD = $(LDADD)
140 vet_SOURCES = vet.c
141 vet_OBJECTS = vet.$(OBJEXT)
142 vet_LDADD = $(LDADD)
143 AM_V_P = $(am__v_P_@AM_V@)
144 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
145 am__v_P_0 = false
146 am__v_P_1 = :
147 AM_V_GEN = $(am__v_GEN_@AM_V@)
148 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
149 am__v_GEN_0 = @echo " GEN " $@;
150 am__v_GEN_1 =
151 AM_V_at = $(am__v_at_@AM_V@)
152 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
153 am__v_at_0 = @
154 am__v_at_1 =
155 DEFAULT_INCLUDES = -I.@am__isrc@
156 depcomp = $(SHELL) $(top_srcdir)/../depcomp
157 am__depfiles_maybe = depfiles
158 am__mv = mv -f
159 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
160 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
161 AM_V_CC = $(am__v_CC_@AM_V@)
162 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
163 am__v_CC_0 = @echo " CC " $@;
164 am__v_CC_1 =
165 CCLD = $(CC)
166 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
167 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
168 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
169 am__v_CCLD_0 = @echo " CCLD " $@;
170 am__v_CCLD_1 =
171 SOURCES = buildid.c cgo.c go.c gofmt.c test2json.c vet.c
172 am__can_run_installinfo = \
173 case $$AM_UPDATE_INFO_DIR in \
174 n|no|NO) false;; \
175 *) (install-info --version) >/dev/null 2>&1;; \
176 esac
177 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
178 am__vpath_adj = case $$p in \
179 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
180 *) f=$$p;; \
181 esac;
182 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
183 am__install_max = 40
184 am__nobase_strip_setup = \
185 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
186 am__nobase_strip = \
187 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
188 am__nobase_list = $(am__nobase_strip_setup); \
189 for p in $$list; do echo "$$p $$p"; done | \
190 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
191 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
192 if (++n[$$2] == $(am__install_max)) \
193 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
194 END { for (dir in files) print dir, files[dir] }'
195 am__base_list = \
196 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
197 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
198 am__uninstall_files_from_dir = { \
199 test -z "$$files" \
200 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
201 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
202 $(am__cd) "$$dir" && rm -f $$files; }; \
204 man1dir = $(mandir)/man1
205 NROFF = nroff
206 MANS = $(man_MANS)
207 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
208 # Read a list of newline-separated strings from the standard input,
209 # and print each of them once, without duplicates. Input order is
210 # *not* preserved.
211 am__uniquify_input = $(AWK) '\
212 BEGIN { nonempty = 0; } \
213 { items[$$0] = 1; nonempty = 1; } \
214 END { if (nonempty) { for (i in items) print i; }; } \
216 # Make sure the list of sources is unique. This is necessary because,
217 # e.g., the same source file might be shared among _SOURCES variables
218 # for different programs/libraries.
219 am__define_uniq_tagged_files = \
220 list='$(am__tagged_files)'; \
221 unique=`for i in $$list; do \
222 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
223 done | $(am__uniquify_input)`
224 ETAGS = etags
225 CTAGS = ctags
226 CSCOPE = cscope
227 AM_RECURSIVE_TARGETS = cscope
228 ACLOCAL = @ACLOCAL@
229 AMTAR = @AMTAR@
230 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
231 AUTOCONF = @AUTOCONF@
232 AUTOHEADER = @AUTOHEADER@
233 AUTOMAKE = @AUTOMAKE@
234 AWK = @AWK@
235 CC = @CC@
236 CCDEPMODE = @CCDEPMODE@
237 CFLAGS = @CFLAGS@
238 CPPFLAGS = @CPPFLAGS@
239 CYGPATH_W = @CYGPATH_W@
240 DEFS = @DEFS@
241 DEPDIR = @DEPDIR@
242 ECHO_C = @ECHO_C@
243 ECHO_N = @ECHO_N@
244 ECHO_T = @ECHO_T@
245 EXEEXT = @EXEEXT@
246 GCC_FOR_TARGET = @GCC_FOR_TARGET@
247 GOC = @GOC@
248 GOC_FOR_TARGET = @GOC_FOR_TARGET@
249 GOFLAGS = @GOFLAGS@
250 INSTALL = @INSTALL@
251 INSTALL_DATA = @INSTALL_DATA@
252 INSTALL_PROGRAM = @INSTALL_PROGRAM@
253 INSTALL_SCRIPT = @INSTALL_SCRIPT@
254 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
255 LDFLAGS = @LDFLAGS@
256 LIBOBJS = @LIBOBJS@
257 LIBS = @LIBS@
258 LTLIBOBJS = @LTLIBOBJS@
259 MAINT = @MAINT@
260 MAKEINFO = @MAKEINFO@
261 MKDIR_P = @MKDIR_P@
262 NET_LIBS = @NET_LIBS@
263 OBJEXT = @OBJEXT@
264 PACKAGE = @PACKAGE@
265 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
266 PACKAGE_NAME = @PACKAGE_NAME@
267 PACKAGE_STRING = @PACKAGE_STRING@
268 PACKAGE_TARNAME = @PACKAGE_TARNAME@
269 PACKAGE_URL = @PACKAGE_URL@
270 PACKAGE_VERSION = @PACKAGE_VERSION@
271 PATH_SEPARATOR = @PATH_SEPARATOR@
272 SET_MAKE = @SET_MAKE@
273 SHELL = @SHELL@
274 STRIP = @STRIP@
275 VERSION = @VERSION@
276 abs_builddir = @abs_builddir@
277 abs_srcdir = @abs_srcdir@
278 abs_top_builddir = @abs_top_builddir@
279 abs_top_srcdir = @abs_top_srcdir@
280 ac_ct_CC = @ac_ct_CC@
281 am__include = @am__include@
282 am__leading_dot = @am__leading_dot@
283 am__quote = @am__quote@
284 am__tar = @am__tar@
285 am__untar = @am__untar@
286 bindir = @bindir@
287 build = @build@
288 build_alias = @build_alias@
289 build_cpu = @build_cpu@
290 build_noncanonical = @build_noncanonical@
291 build_os = @build_os@
292 build_vendor = @build_vendor@
293 builddir = @builddir@
294 datadir = @datadir@
295 datarootdir = @datarootdir@
296 docdir = @docdir@
297 dvidir = @dvidir@
298 exec_prefix = @exec_prefix@
299 host = @host@
300 host_alias = @host_alias@
301 host_cpu = @host_cpu@
302 host_noncanonical = @host_noncanonical@
303 host_os = @host_os@
304 host_vendor = @host_vendor@
305 htmldir = @htmldir@
306 includedir = @includedir@
307 infodir = @infodir@
308 install_sh = @install_sh@
309 libdir = @libdir@
310 libexecdir = @libexecdir@
311 localedir = @localedir@
312 localstatedir = @localstatedir@
313 mandir = @mandir@
314 mkdir_p = @mkdir_p@
315 oldincludedir = @oldincludedir@
316 pdfdir = @pdfdir@
317 prefix = @prefix@
318 program_transform_name = @program_transform_name@
319 psdir = @psdir@
320 sbindir = @sbindir@
321 sharedstatedir = @sharedstatedir@
322 srcdir = @srcdir@
323 sysconfdir = @sysconfdir@
324 target = @target@
325 target_alias = @target_alias@
326 target_cpu = @target_cpu@
327 target_noncanonical = @target_noncanonical@
328 target_os = @target_os@
329 target_vendor = @target_vendor@
330 top_build_prefix = @top_build_prefix@
331 top_builddir = @top_builddir@
332 top_srcdir = @top_srcdir@
333 ACLOCAL_AMFLAGS = -I ../config
334 gcc_version := $(shell $(GCC_FOR_TARGET) -dumpversion)
335 libexecsubdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
336 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
337 PWD_COMMAND = $${PWDCMD-pwd}
338 STAMP = echo timestamp >
339 libgodir = ../$(target_noncanonical)/libgo
340 LIBGODEP = $(libgodir)/libgo.la
341 LIBGOTOOL = $(libgodir)/libgotool.a
342 @NATIVE_FALSE@GOCOMPILER = $(GOC)
344 # Use the compiler we just built.
345 @NATIVE_TRUE@GOCOMPILER = $(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET)
346 GOCFLAGS = $(CFLAGS_FOR_TARGET)
347 GOCOMPILE = $(GOCOMPILER) $(GOCFLAGS)
348 AM_GOCFLAGS = -I $(libgodir)
349 AM_LDFLAGS = -L $(libgodir) -L $(libgodir)/.libs
350 GOLINK = $(GOCOMPILER) $(GOCFLAGS) $(AM_GOCFLAGS) $(LDFLAGS) $(AM_LDFLAGS) -o $@
351 libgosrcdir = $(srcdir)/../libgo/go
352 cmdsrcdir = $(libgosrcdir)/cmd
353 libgomiscdir = $(srcdir)/../libgo/misc
354 go_cmd_go_files = \
355 $(cmdsrcdir)/go/alldocs.go \
356 $(cmdsrcdir)/go/go11.go \
357 $(cmdsrcdir)/go/main.go
359 go_cmd_gofmt_files = \
360 $(cmdsrcdir)/gofmt/doc.go \
361 $(cmdsrcdir)/gofmt/gofmt.go \
362 $(cmdsrcdir)/gofmt/internal.go \
363 $(cmdsrcdir)/gofmt/rewrite.go \
364 $(cmdsrcdir)/gofmt/simplify.go
366 go_cmd_cgo_files = \
367 $(cmdsrcdir)/cgo/ast.go \
368 $(cmdsrcdir)/cgo/ast_go118.go \
369 $(cmdsrcdir)/cgo/doc.go \
370 $(cmdsrcdir)/cgo/gcc.go \
371 $(cmdsrcdir)/cgo/godefs.go \
372 $(cmdsrcdir)/cgo/main.go \
373 $(cmdsrcdir)/cgo/out.go \
374 $(cmdsrcdir)/cgo/util.go
376 go_cmd_vet_files = \
377 $(cmdsrcdir)/vet/doc.go \
378 $(cmdsrcdir)/vet/main.go
380 go_cmd_buildid_files = \
381 $(cmdsrcdir)/buildid/buildid.go \
382 $(cmdsrcdir)/buildid/doc.go
384 go_cmd_test2json_files = \
385 $(cmdsrcdir)/test2json/main.go
387 GCCGO_INSTALL_NAME := $(shell echo gccgo|sed '$(program_transform_name)')
388 GCC_INSTALL_NAME := $(shell echo gcc|sed '$(program_transform_name)')
389 GXX_INSTALL_NAME := $(shell echo g++|sed '$(program_transform_name)')
390 MOSTLYCLEANFILES = \
391 zdefaultcc.go s-zdefaultcc \
392 check-gccgo check-gcc gotools.head *-testlog gotools.sum gotools.log \
393 *.sent
396 # For a native build we build the programs using the newly built libgo
397 # and install them as regular programs.
398 @NATIVE_TRUE@bin_PROGRAMS = go$(EXEEXT) gofmt$(EXEEXT)
399 @NATIVE_TRUE@noinst_PROGRAMS = cgo$(EXEEXT) vet$(EXEEXT) buildid$(EXEEXT) test2json$(EXEEXT)
400 @NATIVE_TRUE@man_MANS = go.1 gofmt.1
401 @NATIVE_TRUE@GOTESTFLAGS =
403 # Number of seconds before tests time out.
404 @NATIVE_TRUE@GOTOOLS_TEST_TIMEOUT = 1200
406 # CHECK_ENV sets up the environment to run the newly built go tool.
407 # If you change this, change ECHO_ENV, below.
408 # The fl shell variable is used to avoid having FAIL appear
409 # in the log unnecessarily.
410 @NATIVE_TRUE@CHECK_ENV = \
411 @NATIVE_TRUE@ PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
412 @NATIVE_TRUE@ export PATH; \
413 @NATIVE_TRUE@ GCCGO="$(abs_builddir)/check-gccgo"; \
414 @NATIVE_TRUE@ export GCCGO; \
415 @NATIVE_TRUE@ CC="$(abs_builddir)/check-gcc"; \
416 @NATIVE_TRUE@ export CC; \
417 @NATIVE_TRUE@ GCCGOTOOLDIR="$(abs_builddir)"; \
418 @NATIVE_TRUE@ export GCCGOTOOLDIR; \
419 @NATIVE_TRUE@ GO_TESTING_GOTOOLS=yes; \
420 @NATIVE_TRUE@ export GO_TESTING_GOTOOLS; \
421 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
422 @NATIVE_TRUE@ LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
423 @NATIVE_TRUE@ export LD_LIBRARY_PATH; \
424 @NATIVE_TRUE@ GOROOT=$${abs_libgodir}; \
425 @NATIVE_TRUE@ export GOROOT; \
426 @NATIVE_TRUE@ GOCACHE=$(abs_builddir)/gocache-test; \
427 @NATIVE_TRUE@ export GOCACHE; \
428 @NATIVE_TRUE@ fl1="FA"; fl2="IL"; fl="$${fl1}$${fl2}";
431 # ECHO_ENV is a variant of CHECK_ENV to put into a testlog file.
432 # It assumes that abs_libgodir is set.
433 @NATIVE_TRUE@ECHO_ENV = PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GCCGO='$(abs_builddir)/check-gccgo' CC='$(abs_builddir)/check-gcc' GCCGOTOOLDIR='$(abs_builddir)' GO_TESTING_GOTOOLS=yes LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'` GOROOT=`echo $${abs_libgodir} GOCACHE='$(abs_builddir)/gocache-test'`
434 all: all-am
436 .SUFFIXES:
437 .SUFFIXES: .c .o .obj
438 am--refresh: Makefile
440 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
441 @for dep in $?; do \
442 case '$(am__configure_deps)' in \
443 *$$dep*) \
444 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
445 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
446 && exit 0; \
447 exit 1;; \
448 esac; \
449 done; \
450 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
451 $(am__cd) $(top_srcdir) && \
452 $(AUTOMAKE) --foreign Makefile
453 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
454 @case '$?' in \
455 *config.status*) \
456 echo ' $(SHELL) ./config.status'; \
457 $(SHELL) ./config.status;; \
458 *) \
459 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
460 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
461 esac;
463 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
464 $(SHELL) ./config.status --recheck
466 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
467 $(am__cd) $(srcdir) && $(AUTOCONF)
468 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
469 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
470 $(am__aclocal_m4_deps):
471 install-binPROGRAMS: $(bin_PROGRAMS)
472 @$(NORMAL_INSTALL)
473 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
474 if test -n "$$list"; then \
475 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
476 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
477 fi; \
478 for p in $$list; do echo "$$p $$p"; done | \
479 sed 's/$(EXEEXT)$$//' | \
480 while read p p1; do if test -f $$p \
481 ; then echo "$$p"; echo "$$p"; else :; fi; \
482 done | \
483 sed -e 'p;s,.*/,,;n;h' \
484 -e 's|.*|.|' \
485 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
486 sed 'N;N;N;s,\n, ,g' | \
487 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
488 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
489 if ($$2 == $$4) files[d] = files[d] " " $$1; \
490 else { print "f", $$3 "/" $$4, $$1; } } \
491 END { for (d in files) print "f", d, files[d] }' | \
492 while read type dir files; do \
493 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
494 test -z "$$files" || { \
495 echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
496 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
498 ; done
500 uninstall-binPROGRAMS:
501 @$(NORMAL_UNINSTALL)
502 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
503 files=`for p in $$list; do echo "$$p"; done | \
504 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
505 -e 's/$$/$(EXEEXT)/' \
506 `; \
507 test -n "$$list" || exit 0; \
508 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
509 cd "$(DESTDIR)$(bindir)" && rm -f $$files
511 clean-binPROGRAMS:
512 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
514 clean-noinstPROGRAMS:
515 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
517 @NATIVE_FALSE@buildid$(EXEEXT): $(buildid_OBJECTS) $(buildid_DEPENDENCIES) $(EXTRA_buildid_DEPENDENCIES)
518 @NATIVE_FALSE@ @rm -f buildid$(EXEEXT)
519 @NATIVE_FALSE@ $(AM_V_CCLD)$(LINK) $(buildid_OBJECTS) $(buildid_LDADD) $(LIBS)
521 @NATIVE_FALSE@cgo$(EXEEXT): $(cgo_OBJECTS) $(cgo_DEPENDENCIES) $(EXTRA_cgo_DEPENDENCIES)
522 @NATIVE_FALSE@ @rm -f cgo$(EXEEXT)
523 @NATIVE_FALSE@ $(AM_V_CCLD)$(LINK) $(cgo_OBJECTS) $(cgo_LDADD) $(LIBS)
525 @NATIVE_FALSE@go$(EXEEXT): $(go_OBJECTS) $(go_DEPENDENCIES) $(EXTRA_go_DEPENDENCIES)
526 @NATIVE_FALSE@ @rm -f go$(EXEEXT)
527 @NATIVE_FALSE@ $(AM_V_CCLD)$(LINK) $(go_OBJECTS) $(go_LDADD) $(LIBS)
529 @NATIVE_FALSE@gofmt$(EXEEXT): $(gofmt_OBJECTS) $(gofmt_DEPENDENCIES) $(EXTRA_gofmt_DEPENDENCIES)
530 @NATIVE_FALSE@ @rm -f gofmt$(EXEEXT)
531 @NATIVE_FALSE@ $(AM_V_CCLD)$(LINK) $(gofmt_OBJECTS) $(gofmt_LDADD) $(LIBS)
533 @NATIVE_FALSE@test2json$(EXEEXT): $(test2json_OBJECTS) $(test2json_DEPENDENCIES) $(EXTRA_test2json_DEPENDENCIES)
534 @NATIVE_FALSE@ @rm -f test2json$(EXEEXT)
535 @NATIVE_FALSE@ $(AM_V_CCLD)$(LINK) $(test2json_OBJECTS) $(test2json_LDADD) $(LIBS)
537 @NATIVE_FALSE@vet$(EXEEXT): $(vet_OBJECTS) $(vet_DEPENDENCIES) $(EXTRA_vet_DEPENDENCIES)
538 @NATIVE_FALSE@ @rm -f vet$(EXEEXT)
539 @NATIVE_FALSE@ $(AM_V_CCLD)$(LINK) $(vet_OBJECTS) $(vet_LDADD) $(LIBS)
541 mostlyclean-compile:
542 -rm -f *.$(OBJEXT)
544 distclean-compile:
545 -rm -f *.tab.c
547 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buildid.Po@am__quote@
548 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cgo.Po@am__quote@
549 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/go.Po@am__quote@
550 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gofmt.Po@am__quote@
551 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test2json.Po@am__quote@
552 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vet.Po@am__quote@
554 .c.o:
555 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
556 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
557 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
558 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
559 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
561 .c.obj:
562 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
563 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
564 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
565 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
566 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
567 install-man1: $(man_MANS)
568 @$(NORMAL_INSTALL)
569 @list1=''; \
570 list2='$(man_MANS)'; \
571 test -n "$(man1dir)" \
572 && test -n "`echo $$list1$$list2`" \
573 || exit 0; \
574 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
575 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
576 { for i in $$list1; do echo "$$i"; done; \
577 if test -n "$$list2"; then \
578 for i in $$list2; do echo "$$i"; done \
579 | sed -n '/\.1[a-z]*$$/p'; \
580 fi; \
581 } | while read p; do \
582 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
583 echo "$$d$$p"; echo "$$p"; \
584 done | \
585 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
586 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
587 sed 'N;N;s,\n, ,g' | { \
588 list=; while read file base inst; do \
589 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
590 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
591 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
592 fi; \
593 done; \
594 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
595 while read files; do \
596 test -z "$$files" || { \
597 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
598 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
599 done; }
601 uninstall-man1:
602 @$(NORMAL_UNINSTALL)
603 @list=''; test -n "$(man1dir)" || exit 0; \
604 files=`{ for i in $$list; do echo "$$i"; done; \
605 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
606 sed -n '/\.1[a-z]*$$/p'; \
607 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
608 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
609 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
611 ID: $(am__tagged_files)
612 $(am__define_uniq_tagged_files); mkid -fID $$unique
613 tags: tags-am
614 TAGS: tags
616 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
617 set x; \
618 here=`pwd`; \
619 $(am__define_uniq_tagged_files); \
620 shift; \
621 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
622 test -n "$$unique" || unique=$$empty_fix; \
623 if test $$# -gt 0; then \
624 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
625 "$$@" $$unique; \
626 else \
627 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
628 $$unique; \
629 fi; \
631 ctags: ctags-am
633 CTAGS: ctags
634 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
635 $(am__define_uniq_tagged_files); \
636 test -z "$(CTAGS_ARGS)$$unique" \
637 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
638 $$unique
640 GTAGS:
641 here=`$(am__cd) $(top_builddir) && pwd` \
642 && $(am__cd) $(top_srcdir) \
643 && gtags -i $(GTAGS_ARGS) "$$here"
644 cscope: cscope.files
645 test ! -s cscope.files \
646 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
647 clean-cscope:
648 -rm -f cscope.files
649 cscope.files: clean-cscope cscopelist
650 cscopelist: cscopelist-am
652 cscopelist-am: $(am__tagged_files)
653 list='$(am__tagged_files)'; \
654 case "$(srcdir)" in \
655 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
656 *) sdir=$(subdir)/$(srcdir) ;; \
657 esac; \
658 for i in $$list; do \
659 if test -f "$$i"; then \
660 echo "$(subdir)/$$i"; \
661 else \
662 echo "$$sdir/$$i"; \
663 fi; \
664 done >> $(top_builddir)/cscope.files
666 distclean-tags:
667 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
668 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
669 check-am: all-am
670 check: check-am
671 all-am: Makefile $(PROGRAMS) $(MANS)
672 installdirs:
673 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
674 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
675 done
676 install: install-am
677 install-exec: install-exec-am
678 install-data: install-data-am
679 uninstall: uninstall-am
681 install-am: all-am
682 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
684 installcheck: installcheck-am
685 install-strip:
686 if test -z '$(STRIP)'; then \
687 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
688 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
689 install; \
690 else \
691 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
692 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
693 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
695 mostlyclean-generic:
696 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
698 clean-generic:
700 distclean-generic:
701 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
702 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
704 maintainer-clean-generic:
705 @echo "This command is intended for maintainers to use"
706 @echo "it deletes files that may require special tools to rebuild."
707 @NATIVE_FALSE@install-exec-local:
708 @NATIVE_FALSE@uninstall-local:
709 clean: clean-am
711 clean-am: clean-binPROGRAMS clean-generic clean-noinstPROGRAMS \
712 mostlyclean-am
714 distclean: distclean-am
715 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
716 -rm -rf ./$(DEPDIR)
717 -rm -f Makefile
718 distclean-am: clean-am distclean-compile distclean-generic \
719 distclean-tags
721 dvi: dvi-am
723 dvi-am:
725 html: html-am
727 html-am:
729 info: info-am
731 info-am:
733 install-data-am: install-man
735 install-dvi: install-dvi-am
737 install-dvi-am:
739 install-exec-am: install-binPROGRAMS install-exec-local
741 install-html: install-html-am
743 install-html-am:
745 install-info: install-info-am
747 install-info-am:
749 install-man: install-man1
751 install-pdf: install-pdf-am
753 install-pdf-am:
755 install-ps: install-ps-am
757 install-ps-am:
759 installcheck-am:
761 maintainer-clean: maintainer-clean-am
762 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
763 -rm -rf $(top_srcdir)/autom4te.cache
764 -rm -rf ./$(DEPDIR)
765 -rm -f Makefile
766 maintainer-clean-am: distclean-am maintainer-clean-generic
768 mostlyclean: mostlyclean-am
770 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
771 mostlyclean-local
773 pdf: pdf-am
775 pdf-am:
777 ps: ps-am
779 ps-am:
781 uninstall-am: uninstall-binPROGRAMS uninstall-local uninstall-man
783 uninstall-man: uninstall-man1
785 .MAKE: install-am install-strip
787 .PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \
788 clean-binPROGRAMS clean-cscope clean-generic \
789 clean-noinstPROGRAMS cscope cscopelist-am ctags ctags-am \
790 distclean distclean-compile distclean-generic distclean-tags \
791 dvi dvi-am html html-am info info-am install install-am \
792 install-binPROGRAMS install-data install-data-am install-dvi \
793 install-dvi-am install-exec install-exec-am install-exec-local \
794 install-html install-html-am install-info install-info-am \
795 install-man install-man1 install-pdf install-pdf-am install-ps \
796 install-ps-am install-strip installcheck installcheck-am \
797 installdirs maintainer-clean maintainer-clean-generic \
798 mostlyclean mostlyclean-compile mostlyclean-generic \
799 mostlyclean-local pdf pdf-am ps ps-am tags tags-am uninstall \
800 uninstall-am uninstall-binPROGRAMS uninstall-local \
801 uninstall-man uninstall-man1
803 .PRECIOUS: Makefile
806 zdefaultcc.go: s-zdefaultcc; @true
807 s-zdefaultcc: Makefile
808 echo 'package main' > zdefaultcc.go.tmp
809 echo 'func defaultGCCGO(goos, goarch string) string { return "$(bindir)/$(GCCGO_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
810 echo 'func defaultCC(goos, goarch string) string { return "$(GCC_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
811 echo 'func defaultCXX(goos, goarch string) string { return "$(GXX_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
812 echo 'const defaultPkgConfig = "pkg-config"' >> zdefaultcc.go.tmp
813 $(SHELL) $(srcdir)/../move-if-change zdefaultcc.go.tmp zdefaultcc.go
814 $(STAMP) $@
816 mostlyclean-local:
817 if test -d check-go-dir; then chmod -R u+w check-go-dir; fi
818 rm -rf check-go-dir cgo-test-dir carchive-test-dir \
819 check-vet-dir check-embed-dir gocache-test
821 @NATIVE_TRUE@go$(EXEEXT): $(go_cmd_go_files) $(LIBGOTOOL) $(LIBGODEP)
822 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_go_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
823 @NATIVE_TRUE@gofmt$(EXEEXT): $(go_cmd_gofmt_files) $(LIBGODEP)
824 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_gofmt_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
825 @NATIVE_TRUE@cgo$(EXEEXT): $(go_cmd_cgo_files) zdefaultcc.go $(LIBGOTOOL) $(LIBGODEP)
826 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_cgo_files) zdefaultcc.go $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
827 @NATIVE_TRUE@vet$(EXEEXT): $(go_cmd_vet_files) $(LIBGOTOOL) $(LIBGODEP)
828 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_vet_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
829 @NATIVE_TRUE@buildid$(EXEEXT): $(go_cmd_buildid_files) $(LIBGOTOOL) $(LIBGODEP)
830 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_buildid_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
831 @NATIVE_TRUE@test2json$(EXEEXT): $(go_cmd_test2json_files) $(LIBGOTOOL) $(LIBGODEP)
832 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_test2json_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
834 @NATIVE_TRUE@install-exec-local: $(noinst_PROGRAMS)
835 @NATIVE_TRUE@ $(MKDIR_P) $(DESTDIR)$(libexecsubdir)
836 @NATIVE_TRUE@ for f in $(noinst_PROGRAMS); do \
837 @NATIVE_TRUE@ rm -f $(DESTDIR)$(libexecsubdir)/$$f; \
838 @NATIVE_TRUE@ $(INSTALL_PROGRAM) $$f $(DESTDIR)$(libexecsubdir)/$$f; \
839 @NATIVE_TRUE@ done
841 @NATIVE_TRUE@uninstall-local:
842 @NATIVE_TRUE@ for f in $(noinst_PROGRAMS); do \
843 @NATIVE_TRUE@ rm -f $(DESTDIR)$(libexecsubdir)/$$f; \
844 @NATIVE_TRUE@ done
846 # Run tests using the go tool, and frob the output to look like that
847 # generated by DejaGNU. The main output of this is two files:
848 # gotools.sum and gotools.log.
850 # check-head starts generating the log files in DejaGNU format. This
851 # is a separate target so that the date is approximately when we start
852 # running the tests.
853 @NATIVE_TRUE@check-head:
854 @NATIVE_TRUE@ @echo "Test Run By $${USER} on `date`" > gotools.head
855 @NATIVE_TRUE@ @echo "Native configuration is $(host_triplet)" >> gotools.head
856 @NATIVE_TRUE@ @echo >> gotools.head
857 @NATIVE_TRUE@ @echo " === gotools tests ===" >> gotools.head
858 @NATIVE_TRUE@ @echo >> gotools.head
860 # check-gccgo is a little shell script that executes gccgo with the
861 # options to pick up the newly built libgo and libstdc++.
862 @NATIVE_TRUE@check-gccgo: Makefile
863 @NATIVE_TRUE@ rm -f $@ $@.tmp
864 @NATIVE_TRUE@ echo "#!/bin/sh" > $@.tmp
865 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
866 @NATIVE_TRUE@ echo "$(GOCOMPILE)" '"$$@"' "-I $${abs_libgodir} -L $${abs_libgodir} -L $${abs_libgodir}/.libs -B$${abs_libgodir}/../libstdc++-v3/src/.libs -B$${abs_libgodir}/../libstdc++-v3/libsupc++/.libs" >> $@.tmp
867 @NATIVE_TRUE@ chmod +x $@.tmp
868 @NATIVE_TRUE@ mv -f $@.tmp $@
870 # check-gcc is a little shell script that executes the newly built gcc
871 # with the options to pick up the newly built libgo and libstdc++.
872 @NATIVE_TRUE@check-gcc: Makefile
873 @NATIVE_TRUE@ rm -f $@ $@.tmp
874 @NATIVE_TRUE@ echo "#!/bin/sh" > $@.tmp
875 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
876 @NATIVE_TRUE@ echo "$(GCC_FOR_TARGET)" '"$$@"' "-L $${abs_libgodir} -L $${abs_libgodir}/.libs -B$${abs_libgodir}/../libstdc++-v3/src/.libs -B$${abs_libgodir}/../libstdc++-v3/libsupc++/.libs" >> $@.tmp
877 @NATIVE_TRUE@ chmod +x $@.tmp
878 @NATIVE_TRUE@ mv -f $@.tmp $@
880 # check-go-tool runs `go test cmd/go` in our environment.
881 @NATIVE_TRUE@check-go-tool: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
882 @NATIVE_TRUE@ if test -d check-go-dir; then chmod -R u+w check-go-dir; fi
883 @NATIVE_TRUE@ rm -rf check-go-dir cmd_go-testlog
884 @NATIVE_TRUE@ $(MKDIR_P) check-go-dir/src/cmd/go
885 @NATIVE_TRUE@ cp $(libgosrcdir)/go.mod check-go-dir/src/
886 @NATIVE_TRUE@ cp $(cmdsrcdir)/go.mod check-go-dir/src/cmd/
887 @NATIVE_TRUE@ $(MKDIR_P) check-go-dir/src/vendor check-go-dir/src/cmd/vendor
888 @NATIVE_TRUE@ cp $(libgosrcdir)/vendor/modules.txt check-go-dir/src/vendor/
889 @NATIVE_TRUE@ cp $(libgosrcdir)/cmd/vendor/modules.txt check-go-dir/src/cmd/vendor/
890 @NATIVE_TRUE@ cp $(cmdsrcdir)/go/*.go check-go-dir/src/cmd/go/
891 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/go/internal check-go-dir/src/cmd/go/
892 @NATIVE_TRUE@ cp $(libgodir)/zdefaultcc.go check-go-dir/src/cmd/go/internal/cfg/
893 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/go/testdata check-go-dir/src/cmd/go/
894 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/internal check-go-dir/src/cmd/
895 @NATIVE_TRUE@ $(MKDIR_P) check-go-dir/src/cmd/vendor/golang.org/x
896 @NATIVE_TRUE@ cp -r $(libgosrcdir)/golang.org/x/mod check-go-dir/src/cmd/vendor/golang.org/x/
897 @NATIVE_TRUE@ cp -r $(libgosrcdir)/golang.org/x/crypto check-go-dir/src/cmd/vendor/golang.org/x/
898 @NATIVE_TRUE@ cp -r $(libgosrcdir)/golang.org/x/xerrors check-go-dir/src/cmd/vendor/golang.org/x/
899 @NATIVE_TRUE@ cp -r $(libgosrcdir)/golang.org/x/tools check-go-dir/src/cmd/vendor/golang.org/x/
900 @NATIVE_TRUE@ cp $(libgodir)/objabi.go check-go-dir/src/cmd/internal/objabi/
901 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
902 @NATIVE_TRUE@ abs_checkdir=`cd check-go-dir && $(PWD_COMMAND)`; \
903 @NATIVE_TRUE@ echo "cd check-go-dir/src/cmd/go && $(ECHO_ENV) GOPATH=$${abs_checkdir} $(abs_builddir)/go$(EXEEXT) test -test.short -test.timeout=$(GOTOOLS_TEST_TIMEOUT)s -test.v" > cmd_go-testlog
904 @NATIVE_TRUE@ $(CHECK_ENV) \
905 @NATIVE_TRUE@ GOPATH=`cd check-go-dir && $(PWD_COMMAND)`; \
906 @NATIVE_TRUE@ export GOPATH; \
907 @NATIVE_TRUE@ (cd check-go-dir/src/cmd/go && $(abs_builddir)/go$(EXEEXT) test -test.short -test.timeout=$(GOTOOLS_TEST_TIMEOUT)s -test.v) >> cmd_go-testlog 2>&1 || echo "--- $${fl}: go test cmd/go (0.00s)" >> cmd_go-testlog
908 @NATIVE_TRUE@ grep '^--- ' cmd_go-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
910 # check-runtime runs `go test runtime` in our environment.
911 # The runtime package is also tested as part of libgo,
912 # but the runtime tests use the go tool heavily, so testing
913 # here too will catch more problems.
914 @NATIVE_TRUE@check-runtime: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
915 @NATIVE_TRUE@ rm -f runtime-testlog
916 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
917 @NATIVE_TRUE@ LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
918 @NATIVE_TRUE@ export LD_LIBRARY_PATH; \
919 @NATIVE_TRUE@ GOARCH=`$(abs_builddir)/go$(EXEEXT) env GOARCH`; \
920 @NATIVE_TRUE@ GOOS=`$(abs_builddir)/go$(EXEEXT) env GOOS`; \
921 @NATIVE_TRUE@ files=`$(SHELL) $(libgosrcdir)/../match.sh --goarch=$${GOARCH} --goos=$${GOOS} --srcdir=$(libgosrcdir)/runtime --extrafiles="$(libgodir)/runtime_linknames.go $(libgodir)/runtime_sysinfo.go $(libgodir)/sigtab.go $(libgodir)/goroot.go" --tag=libffi`; \
922 @NATIVE_TRUE@ echo "$(ECHO_ENV) GC='$(abs_builddir)/check-gccgo -fgo-compiling-runtime' GOARCH=$${GOARCH} GOOS=$${GOOS} $(SHELL) $(libgosrcdir)/../testsuite/gotest --goarch=$${GOARCH} --goos=$${GOOS} --basedir=$(libgosrcdir)/.. --srcdir=$(libgosrcdir)/runtime --pkgpath=runtime --pkgfiles='$${files}' $(GOTESTFLAGS) -test.timeout=$(GOTOOLS_TEST_TIMEOUT)s -test.v" > runtime-testlog
923 @NATIVE_TRUE@ $(CHECK_ENV) \
924 @NATIVE_TRUE@ GC="$${GCCGO} -fgo-compiling-runtime"; \
925 @NATIVE_TRUE@ export GC; \
926 @NATIVE_TRUE@ GOARCH=`$(abs_builddir)/go$(EXEEXT) env GOARCH`; \
927 @NATIVE_TRUE@ GOOS=`$(abs_builddir)/go$(EXEEXT) env GOOS`; \
928 @NATIVE_TRUE@ files=`$(SHELL) $(libgosrcdir)/../match.sh --goarch=$${GOARCH} --goos=$${GOOS} --srcdir=$(libgosrcdir)/runtime --extrafiles="$(libgodir)/runtime_linknames.go $(libgodir)/runtime_sysinfo.go $(libgodir)/sigtab.go $(libgodir)/goroot.go" --tag=libffi`; \
929 @NATIVE_TRUE@ $(SHELL) $(libgosrcdir)/../testsuite/gotest --goarch=$${GOARCH} --goos=$${GOOS} --basedir=$(libgosrcdir)/.. --srcdir=$(libgosrcdir)/runtime --pkgpath=runtime --pkgfiles="$${files}" $(GOTESTFLAGS) -test.timeout=$(GOTOOLS_TEST_TIMEOUT)s -test.v >> runtime-testlog 2>&1 || echo "--- $${fl}: go test runtime (0.00s)" >> runtime-testlog
930 @NATIVE_TRUE@ grep '^--- ' runtime-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
932 # check-cgo-test runs `go test` in misc/cgo/test.
933 @NATIVE_TRUE@check-cgo-test: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
934 @NATIVE_TRUE@ rm -rf cgo-test-dir cgo-testlog
935 @NATIVE_TRUE@ $(MKDIR_P) cgo-test-dir/misc/cgo
936 @NATIVE_TRUE@ echo 'module misc' > cgo-test-dir/misc/go.mod
937 @NATIVE_TRUE@ cp -r $(libgomiscdir)/cgo/test cgo-test-dir/misc/cgo/
938 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
939 @NATIVE_TRUE@ echo "cd cgo-test-dir/misc/cgo/test && $(ECHO_ENV) GOTRACEBACK=2 $(abs_builddir)/go$(EXEEXT) test -test.short -test.timeout=$(GOTOOLS_TEST_TIMEOUT)s -test.v" > cgo-testlog
940 @NATIVE_TRUE@ $(CHECK_ENV) \
941 @NATIVE_TRUE@ GOTRACEBACK=2; \
942 @NATIVE_TRUE@ export GOTRACEBACK; \
943 @NATIVE_TRUE@ (cd cgo-test-dir/misc/cgo/test && $(abs_builddir)/go$(EXEEXT) test -test.short -test.timeout=$(GOTOOLS_TEST_TIMEOUT)s -test.v) >> cgo-testlog 2>&1 || echo "--- $${fl}: go test misc/cgo/test (0.00s)" >> cgo-testlog
944 @NATIVE_TRUE@ grep '^--- ' cgo-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
946 # check-carchive-test runs `go test` in misc/cgo/testcarchive.
947 # in our environment.
948 @NATIVE_TRUE@check-carchive-test: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
949 @NATIVE_TRUE@ rm -rf carchive-test-dir carchive-testlog
950 @NATIVE_TRUE@ $(MKDIR_P) carchive-test-dir/misc/cgo
951 @NATIVE_TRUE@ echo 'module misc' > carchive-test-dir/misc/go.mod
952 @NATIVE_TRUE@ cp -r $(libgomiscdir)/cgo/testcarchive carchive-test-dir/misc/cgo/
953 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
954 @NATIVE_TRUE@ echo "cd carchive-test-dir/misc/cgo/testcarchive && $(ECHO_ENV) LIBRARY_PATH=`echo $${abs_libgodir}/.libs` $(abs_builddir)/go$(EXEEXT) test -test.timeout=$(GOTOOLS_TEST_TIMEOUT)s -test.v" > carchive-testlog
955 @NATIVE_TRUE@ $(CHECK_ENV) \
956 @NATIVE_TRUE@ LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
957 @NATIVE_TRUE@ export LIBRARY_PATH; \
958 @NATIVE_TRUE@ (cd carchive-test-dir/misc/cgo/testcarchive && $(abs_builddir)/go$(EXEEXT) test -test.timeout=$(GOTOOLS_TEST_TIMEOUT)s -test.v) >> carchive-testlog 2>&1 || echo "--- $${fl}: go test misc/cgo/testcarchive (0.00s)" >> carchive-testlog
959 @NATIVE_TRUE@ grep '^--- ' carchive-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
961 # check-vet runs `go test cmd/vet` in our environment.
962 @NATIVE_TRUE@check-vet: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
963 @NATIVE_TRUE@ rm -rf check-vet-dir cmd_vet-testlog
964 @NATIVE_TRUE@ $(MKDIR_P) check-vet-dir/src/cmd/internal check-vet-dir/src/cmd/vendor/golang.org/x
965 @NATIVE_TRUE@ cp $(libgosrcdir)/go.mod check-vet-dir/src/
966 @NATIVE_TRUE@ cp $(cmdsrcdir)/go.mod check-vet-dir/src/cmd/
967 @NATIVE_TRUE@ $(MKDIR_P) check-vet-dir/src/vendor check-vet-dir/src/cmd/vendor
968 @NATIVE_TRUE@ cp $(libgosrcdir)/vendor/modules.txt check-vet-dir/src/vendor/
969 @NATIVE_TRUE@ cp $(libgosrcdir)/cmd/vendor/modules.txt check-vet-dir/src/cmd/vendor/
970 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/vet check-vet-dir/src/cmd/
971 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/internal/objabi check-vet-dir/src/cmd/internal
972 @NATIVE_TRUE@ cp $(libgodir)/objabi.go check-vet-dir/src/cmd/internal/objabi/
973 @NATIVE_TRUE@ cp -r $(libgosrcdir)/golang.org/x/tools check-vet-dir/src/cmd/vendor/golang.org/x/
974 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
975 @NATIVE_TRUE@ abs_checkdir=`cd check-vet-dir && $(PWD_COMMAND)`; \
976 @NATIVE_TRUE@ echo "cd check-vet-dir/src/cmd/vet && $(ECHO_ENV) GOPATH=$${abs_checkdir} $(abs_builddir)/go$(EXEEXT) test -test.short -test.timeout=$(GOTOOLS_TEST_TIMEOUT)s -test.v" > cmd_vet-testlog
977 @NATIVE_TRUE@ $(CHECK_ENV) \
978 @NATIVE_TRUE@ GOPATH=`cd check-vet-dir && $(PWD_COMMAND)`; \
979 @NATIVE_TRUE@ export GOPATH; \
980 @NATIVE_TRUE@ (cd check-vet-dir/src/cmd/vet && $(abs_builddir)/go$(EXEEXT) test -test.short -test.timeout=$(GOTOOLS_TEST_TIMEOUT)s -test.v) >> cmd_vet-testlog 2>&1 || echo "--- $${fl}: go test cmd/vet (0.00s)" >> cmd_vet-testlog
981 @NATIVE_TRUE@ grep '^--- ' cmd_vet-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
983 # check-embed runs `go test embed/internal/embedtest` in our environment.
984 @NATIVE_TRUE@check-embed: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
985 @NATIVE_TRUE@ rm -rf check-embed-dir embed-testlog
986 @NATIVE_TRUE@ $(MKDIR_P) check-embed-dir/src/embed/internal
987 @NATIVE_TRUE@ cp $(libgosrcdir)/go.mod check-embed-dir/src/
988 @NATIVE_TRUE@ $(MKDIR_P) check-embed-dir/src/vendor
989 @NATIVE_TRUE@ cp $(libgosrcdir)/vendor/modules.txt check-embed-dir/src/vendor/
990 @NATIVE_TRUE@ cp -r $(libgosrcdir)/embed/internal/embedtest check-embed-dir/src/embed/internal
991 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
992 @NATIVE_TRUE@ abs_checkdir=`cd check-embed-dir && $(PWD_COMMAND)`; \
993 @NATIVE_TRUE@ echo "cd check-embed-dir/src/embed/internal/embedtest && $(ECHO_ENV) GOPATH=$${abs_checkdir} $(abs_builddir)/go$(EXEEXT) test -test.short -test.timeout=$(GOTOOLS_TEST_TIMEOUT)s -test.v" > embed-testlog
994 @NATIVE_TRUE@ $(CHECK_ENV) \
995 @NATIVE_TRUE@ GOPATH=`cd check-embed-dir && $(PWD_COMMAND)`; \
996 @NATIVE_TRUE@ export GOPATH; \
997 @NATIVE_TRUE@ (cd check-embed-dir/src/embed/internal/embedtest && $(abs_builddir)/go$(EXEEXT) test -test.short -test.timeout=$(GOTOOLS_TEST_TIMEOUT)s -test.v) >> embed-testlog 2>&1 || echo "--- $${fl}: go test embed/internal/embedtest (0.00s)" >> embed-testlog
998 @NATIVE_TRUE@ grep '^--- ' embed-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
1000 # The check targets runs the tests and assembles the output files.
1001 @NATIVE_TRUE@check: check-head check-go-tool check-runtime check-cgo-test check-carchive-test check-vet check-embed
1002 @NATIVE_TRUE@ @mv gotools.head gotools.sum
1003 @NATIVE_TRUE@ @cp gotools.sum gotools.log
1004 @NATIVE_TRUE@ @for file in cmd_go-testlog runtime-testlog cgo-testlog carchive-testlog cmd_vet-testlog embed-testlog; do \
1005 @NATIVE_TRUE@ testname=`echo $${file} | sed -e 's/-testlog//' -e 's|_|/|'`; \
1006 @NATIVE_TRUE@ echo "Running $${testname} ..." >> gotools.sum; \
1007 @NATIVE_TRUE@ echo "Running $${testname} ..." >> gotools.log; \
1008 @NATIVE_TRUE@ sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' < $${file} >> gotools.log; \
1009 @NATIVE_TRUE@ grep '^--- ' $${file} | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' -e 's/SKIP/UNTESTED/' | sort -k 2 >> gotools.sum; \
1010 @NATIVE_TRUE@ done
1011 @NATIVE_TRUE@ @echo >> gotools.sum
1012 @NATIVE_TRUE@ @echo " === gotools Summary ===" >> gotools.sum
1013 @NATIVE_TRUE@ @pass=`grep -c '^PASS' gotools.sum`; \
1014 @NATIVE_TRUE@ if test "$${pass}" -ne "0"; then \
1015 @NATIVE_TRUE@ echo "# of expected passes $${pass}" >> gotools.sum; \
1016 @NATIVE_TRUE@ fi
1017 @NATIVE_TRUE@ @fail=`grep -c '^FAIL' gotools.sum`; \
1018 @NATIVE_TRUE@ if test "$${fail}" -ne "0"; then \
1019 @NATIVE_TRUE@ echo "# of unexpected failures $${fail}" >> gotools.sum; \
1020 @NATIVE_TRUE@ fi
1021 @NATIVE_TRUE@ @untested=`grep -c '^UNTESTED' gotools.sum`; \
1022 @NATIVE_TRUE@ if test "$${untested}" -ne "0"; then \
1023 @NATIVE_TRUE@ echo "# of untested testcases $${untested}" >> gotools.sum; \
1024 @NATIVE_TRUE@ fi
1025 @NATIVE_TRUE@ @echo `echo $(GOC_FOR_TARGET) | sed -e 's/ .*//'` `$(GOC_FOR_TARGET) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> gotools.sum
1026 @NATIVE_TRUE@ @echo >> gotools.log
1027 @NATIVE_TRUE@ @echo "runtest completed at `date`" >> gotools.log
1028 @NATIVE_TRUE@ @if grep '^FAIL' gotools.sum >/dev/null 2>&1; then exit 1; fi
1030 @NATIVE_TRUE@.PHONY: check check-head check-go-tool check-runtime check-cgo-test
1031 @NATIVE_TRUE@.PHONY: check-carchive-test check-vet check-embed
1033 # For a non-native build we have to build the programs using a
1034 # previously built host (or build -> host) Go compiler. We should
1035 # only do this if such a compiler is available. We also need to get
1036 # the right values for GOARCH and GOOS in the default build context in
1037 # the go/build package. Figure this out later.
1039 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1040 # Otherwise a system limit (for SysV at least) may be exceeded.
1041 .NOEXPORT: