Missing vect_double in gcc.dg/vect/pr79920.c (PR83836)
[official-gcc.git] / gotools / Makefile.in
blob77ebd158ea57509edbabd73bc4ce5a22180b7765
1 # Makefile.in generated by automake 1.11.6 from Makefile.am.
2 # @configure_input@
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
6 # Foundation, Inc.
7 # This Makefile.in is free software; the Free Software Foundation
8 # gives unlimited permission to copy and/or distribute it,
9 # with or without modifications, as long as this notice is preserved.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 # PARTICULAR PURPOSE.
16 @SET_MAKE@
18 # Makefile for gotools
19 # Copyright (C) 2015-2016 Free Software Foundation, Inc.
21 # This file is free software; you can redistribute it and/or modify
22 # it under the terms of the GNU General Public License as published by
23 # the Free Software Foundation; either version 3 of the License, or
24 # (at your option) any later version.
26 # This program is distributed in the hope that it will be useful,
27 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 # GNU General Public License for more details.
31 # You should have received a copy of the GNU General Public License
32 # along with this program; see the file COPYING3. If not see
33 # <http://www.gnu.org/licenses/>.
35 VPATH = @srcdir@
36 am__make_dryrun = \
37 { \
38 am__dry=no; \
39 case $$MAKEFLAGS in \
40 *\\[\ \ ]*) \
41 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
42 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
43 *) \
44 for am__flg in $$MAKEFLAGS; do \
45 case $$am__flg in \
46 *=*|--*) ;; \
47 *n*) am__dry=yes; break;; \
48 esac; \
49 done;; \
50 esac; \
51 test $$am__dry = yes; \
53 pkgdatadir = $(datadir)/@PACKAGE@
54 pkgincludedir = $(includedir)/@PACKAGE@
55 pkglibdir = $(libdir)/@PACKAGE@
56 pkglibexecdir = $(libexecdir)/@PACKAGE@
57 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
58 install_sh_DATA = $(install_sh) -c -m 644
59 install_sh_PROGRAM = $(install_sh) -c
60 install_sh_SCRIPT = $(install_sh) -c
61 INSTALL_HEADER = $(INSTALL_DATA)
62 transform = $(program_transform_name)
63 NORMAL_INSTALL = :
64 PRE_INSTALL = :
65 POST_INSTALL = :
66 NORMAL_UNINSTALL = :
67 PRE_UNINSTALL = :
68 POST_UNINSTALL = :
69 build_triplet = @build@
70 host_triplet = @host@
71 target_triplet = @target@
72 subdir = .
73 DIST_COMMON = README ChangeLog $(srcdir)/Makefile.in \
74 $(srcdir)/Makefile.am $(top_srcdir)/configure \
75 $(am__configure_deps) $(srcdir)/../mkinstalldirs \
76 $(srcdir)/../depcomp
77 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
78 am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
79 $(top_srcdir)/../config/depstand.m4 \
80 $(top_srcdir)/../config/lead-dot.m4 \
81 $(top_srcdir)/../config/override.m4 $(top_srcdir)/config/go.m4 \
82 $(top_srcdir)/configure.ac
83 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
84 $(ACLOCAL_M4)
85 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
86 configure.lineno config.status.lineno
87 CONFIG_CLEAN_FILES =
88 CONFIG_CLEAN_VPATH_FILES =
89 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"
90 PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
91 buildid_SOURCES = buildid.c
92 buildid_OBJECTS = buildid.$(OBJEXT)
93 buildid_LDADD = $(LDADD)
94 cgo_SOURCES = cgo.c
95 cgo_OBJECTS = cgo.$(OBJEXT)
96 cgo_LDADD = $(LDADD)
97 go_SOURCES = go.c
98 go_OBJECTS = go.$(OBJEXT)
99 go_LDADD = $(LDADD)
100 gofmt_SOURCES = gofmt.c
101 gofmt_OBJECTS = gofmt.$(OBJEXT)
102 gofmt_LDADD = $(LDADD)
103 test2json_SOURCES = test2json.c
104 test2json_OBJECTS = test2json.$(OBJEXT)
105 test2json_LDADD = $(LDADD)
106 vet_SOURCES = vet.c
107 vet_OBJECTS = vet.$(OBJEXT)
108 vet_LDADD = $(LDADD)
109 DEFAULT_INCLUDES = -I.@am__isrc@
110 depcomp = $(SHELL) $(top_srcdir)/../depcomp
111 am__depfiles_maybe = depfiles
112 am__mv = mv -f
113 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
114 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
115 CCLD = $(CC)
116 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
117 SOURCES = buildid.c cgo.c go.c gofmt.c test2json.c vet.c
118 am__can_run_installinfo = \
119 case $$AM_UPDATE_INFO_DIR in \
120 n|no|NO) false;; \
121 *) (install-info --version) >/dev/null 2>&1;; \
122 esac
123 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
124 am__vpath_adj = case $$p in \
125 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
126 *) f=$$p;; \
127 esac;
128 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
129 am__install_max = 40
130 am__nobase_strip_setup = \
131 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
132 am__nobase_strip = \
133 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
134 am__nobase_list = $(am__nobase_strip_setup); \
135 for p in $$list; do echo "$$p $$p"; done | \
136 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
137 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
138 if (++n[$$2] == $(am__install_max)) \
139 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
140 END { for (dir in files) print dir, files[dir] }'
141 am__base_list = \
142 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
143 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
144 am__uninstall_files_from_dir = { \
145 test -z "$$files" \
146 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
147 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
148 $(am__cd) "$$dir" && rm -f $$files; }; \
150 man1dir = $(mandir)/man1
151 NROFF = nroff
152 MANS = $(man_MANS)
153 ETAGS = etags
154 CTAGS = ctags
155 ACLOCAL = @ACLOCAL@
156 AMTAR = @AMTAR@
157 AUTOCONF = @AUTOCONF@
158 AUTOHEADER = @AUTOHEADER@
159 AUTOMAKE = @AUTOMAKE@
160 AWK = @AWK@
161 CC = @CC@
162 CCDEPMODE = @CCDEPMODE@
163 CFLAGS = @CFLAGS@
164 CPPFLAGS = @CPPFLAGS@
165 CYGPATH_W = @CYGPATH_W@
166 DEFS = @DEFS@
167 DEPDIR = @DEPDIR@
168 ECHO_C = @ECHO_C@
169 ECHO_N = @ECHO_N@
170 ECHO_T = @ECHO_T@
171 EXEEXT = @EXEEXT@
172 GCC_FOR_TARGET = @GCC_FOR_TARGET@
173 GOC = @GOC@
174 GOCFLAGS = $(CFLAGS_FOR_TARGET)
175 GOC_FOR_TARGET = @GOC_FOR_TARGET@
176 INSTALL = @INSTALL@
177 INSTALL_DATA = @INSTALL_DATA@
178 INSTALL_PROGRAM = @INSTALL_PROGRAM@
179 INSTALL_SCRIPT = @INSTALL_SCRIPT@
180 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
181 LDFLAGS = @LDFLAGS@
182 LIBOBJS = @LIBOBJS@
183 LIBS = @LIBS@
184 LTLIBOBJS = @LTLIBOBJS@
185 MAINT = @MAINT@
186 MAKEINFO = @MAKEINFO@
187 MKDIR_P = @MKDIR_P@
188 NET_LIBS = @NET_LIBS@
189 OBJEXT = @OBJEXT@
190 PACKAGE = @PACKAGE@
191 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
192 PACKAGE_NAME = @PACKAGE_NAME@
193 PACKAGE_STRING = @PACKAGE_STRING@
194 PACKAGE_TARNAME = @PACKAGE_TARNAME@
195 PACKAGE_URL = @PACKAGE_URL@
196 PACKAGE_VERSION = @PACKAGE_VERSION@
197 PATH_SEPARATOR = @PATH_SEPARATOR@
198 SET_MAKE = @SET_MAKE@
199 SHELL = @SHELL@
200 STRIP = @STRIP@
201 VERSION = @VERSION@
202 abs_builddir = @abs_builddir@
203 abs_srcdir = @abs_srcdir@
204 abs_top_builddir = @abs_top_builddir@
205 abs_top_srcdir = @abs_top_srcdir@
206 ac_ct_CC = @ac_ct_CC@
207 am__include = @am__include@
208 am__leading_dot = @am__leading_dot@
209 am__quote = @am__quote@
210 am__tar = @am__tar@
211 am__untar = @am__untar@
212 bindir = @bindir@
213 build = @build@
214 build_alias = @build_alias@
215 build_cpu = @build_cpu@
216 build_noncanonical = @build_noncanonical@
217 build_os = @build_os@
218 build_vendor = @build_vendor@
219 builddir = @builddir@
220 datadir = @datadir@
221 datarootdir = @datarootdir@
222 docdir = @docdir@
223 dvidir = @dvidir@
224 exec_prefix = @exec_prefix@
225 host = @host@
226 host_alias = @host_alias@
227 host_cpu = @host_cpu@
228 host_noncanonical = @host_noncanonical@
229 host_os = @host_os@
230 host_vendor = @host_vendor@
231 htmldir = @htmldir@
232 includedir = @includedir@
233 infodir = @infodir@
234 install_sh = @install_sh@
235 libdir = @libdir@
236 libexecdir = @libexecdir@
237 localedir = @localedir@
238 localstatedir = @localstatedir@
239 mandir = @mandir@
240 mkdir_p = @mkdir_p@
241 oldincludedir = @oldincludedir@
242 pdfdir = @pdfdir@
243 prefix = @prefix@
244 program_transform_name = @program_transform_name@
245 psdir = @psdir@
246 sbindir = @sbindir@
247 sharedstatedir = @sharedstatedir@
248 srcdir = @srcdir@
249 sysconfdir = @sysconfdir@
250 target = @target@
251 target_alias = @target_alias@
252 target_cpu = @target_cpu@
253 target_noncanonical = @target_noncanonical@
254 target_os = @target_os@
255 target_vendor = @target_vendor@
256 top_build_prefix = @top_build_prefix@
257 top_builddir = @top_builddir@
258 top_srcdir = @top_srcdir@
259 ACLOCAL_AMFLAGS = -I ./config -I ../config
260 gcc_version := $(shell $(GCC_FOR_TARGET) -dumpversion)
261 libexecsubdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
262 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
263 PWD_COMMAND = $${PWDCMD-pwd}
264 STAMP = echo timestamp >
265 libgodir = ../$(target_noncanonical)/libgo
266 LIBGODEP = $(libgodir)/libgo.la
267 LIBGOTOOL = $(libgodir)/libgotool.a
268 @NATIVE_FALSE@GOCOMPILER = $(GOC)
270 # Use the compiler we just built.
271 @NATIVE_TRUE@GOCOMPILER = $(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET)
272 GOCOMPILE = $(GOCOMPILER) $(GOCFLAGS)
273 AM_GOCFLAGS = -I $(libgodir)
274 AM_LDFLAGS = -L $(libgodir) -L $(libgodir)/.libs
275 GOLINK = $(GOCOMPILER) $(GOCFLAGS) $(AM_GOCFLAGS) $(LDFLAGS) $(AM_LDFLAGS) -o $@
276 libgosrcdir = $(srcdir)/../libgo/go
277 cmdsrcdir = $(libgosrcdir)/cmd
278 libgomiscdir = $(srcdir)/../libgo/misc
279 go_cmd_go_files = \
280 $(cmdsrcdir)/go/alldocs.go \
281 $(cmdsrcdir)/go/go11.go \
282 $(cmdsrcdir)/go/main.go
284 go_cmd_gofmt_files = \
285 $(cmdsrcdir)/gofmt/doc.go \
286 $(cmdsrcdir)/gofmt/gofmt.go \
287 $(cmdsrcdir)/gofmt/internal.go \
288 $(cmdsrcdir)/gofmt/rewrite.go \
289 $(cmdsrcdir)/gofmt/simplify.go
291 go_cmd_cgo_files = \
292 $(cmdsrcdir)/cgo/ast.go \
293 $(cmdsrcdir)/cgo/doc.go \
294 $(cmdsrcdir)/cgo/gcc.go \
295 $(cmdsrcdir)/cgo/godefs.go \
296 $(cmdsrcdir)/cgo/main.go \
297 $(cmdsrcdir)/cgo/out.go \
298 $(cmdsrcdir)/cgo/util.go
300 go_cmd_vet_files = \
301 $(cmdsrcdir)/vet/asmdecl.go \
302 $(cmdsrcdir)/vet/assign.go \
303 $(cmdsrcdir)/vet/atomic.go \
304 $(cmdsrcdir)/vet/bool.go \
305 $(cmdsrcdir)/vet/buildtag.go \
306 $(cmdsrcdir)/vet/cgo.go \
307 $(cmdsrcdir)/vet/composite.go \
308 $(cmdsrcdir)/vet/copylock.go \
309 $(cmdsrcdir)/vet/deadcode.go \
310 $(cmdsrcdir)/vet/dead.go \
311 $(cmdsrcdir)/vet/doc.go \
312 $(cmdsrcdir)/vet/httpresponse.go \
313 $(cmdsrcdir)/vet/lostcancel.go \
314 $(cmdsrcdir)/vet/main.go \
315 $(cmdsrcdir)/vet/method.go \
316 $(cmdsrcdir)/vet/nilfunc.go \
317 $(cmdsrcdir)/vet/print.go \
318 $(cmdsrcdir)/vet/rangeloop.go \
319 $(cmdsrcdir)/vet/shadow.go \
320 $(cmdsrcdir)/vet/shift.go \
321 $(cmdsrcdir)/vet/structtag.go \
322 $(cmdsrcdir)/vet/tests.go \
323 $(cmdsrcdir)/vet/types.go \
324 $(cmdsrcdir)/vet/unsafeptr.go \
325 $(cmdsrcdir)/vet/unused.go
327 go_cmd_buildid_files = \
328 $(cmdsrcdir)/buildid/buildid.go \
329 $(cmdsrcdir)/buildid/doc.go
331 go_cmd_test2json_files = \
332 $(cmdsrcdir)/test2json/main.go
334 GCCGO_INSTALL_NAME := $(shell echo gccgo|sed '$(program_transform_name)')
335 GCC_INSTALL_NAME := $(shell echo gcc|sed '$(program_transform_name)')
336 GXX_INSTALL_NAME := $(shell echo g++|sed '$(program_transform_name)')
337 MOSTLYCLEANFILES = \
338 zdefaultcc.go s-zdefaultcc \
339 check-gccgo check-gcc gotools.head *-testlog gotools.sum gotools.log \
340 *.sent
343 # For a native build we build the programs using the newly built libgo
344 # and install them as regular programs.
345 @NATIVE_TRUE@bin_PROGRAMS = go$(EXEEXT) gofmt$(EXEEXT)
346 @NATIVE_TRUE@noinst_PROGRAMS = cgo$(EXEEXT) vet$(EXEEXT) buildid$(EXEEXT) test2json$(EXEEXT)
347 @NATIVE_TRUE@man_MANS = go.1 gofmt.1
348 @NATIVE_TRUE@GOTESTFLAGS =
350 # CHECK_ENV sets up the environment to run the newly built go tool.
351 # If you change this, change ECHO_ENV, below.
352 # The fl shell variable is used to avoid having FAIL appear
353 # in the log unnecessarily.
354 @NATIVE_TRUE@CHECK_ENV = \
355 @NATIVE_TRUE@ PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
356 @NATIVE_TRUE@ export PATH; \
357 @NATIVE_TRUE@ GCCGO="$(abs_builddir)/check-gccgo"; \
358 @NATIVE_TRUE@ export GCCGO; \
359 @NATIVE_TRUE@ CC="$(abs_builddir)/check-gcc"; \
360 @NATIVE_TRUE@ export CC; \
361 @NATIVE_TRUE@ GCCGOTOOLDIR="$(abs_builddir)"; \
362 @NATIVE_TRUE@ export GCCGOTOOLDIR; \
363 @NATIVE_TRUE@ GO_TESTING_GOTOOLS=yes; \
364 @NATIVE_TRUE@ export GO_TESTING_GOTOOLS; \
365 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
366 @NATIVE_TRUE@ LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
367 @NATIVE_TRUE@ export LD_LIBRARY_PATH; \
368 @NATIVE_TRUE@ GOROOT=$${abs_libgodir}; \
369 @NATIVE_TRUE@ export GOROOT; \
370 @NATIVE_TRUE@ fl1="FA"; fl2="IL"; fl="$${fl1}$${fl2}";
373 # ECHO_ENV is a variant of CHECK_ENV to put into a testlog file.
374 # It assumes that abs_libgodir is set.
375 @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}`
376 all: all-am
378 .SUFFIXES:
379 .SUFFIXES: .c .o .obj
380 am--refresh: Makefile
382 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
383 @for dep in $?; do \
384 case '$(am__configure_deps)' in \
385 *$$dep*) \
386 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
387 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
388 && exit 0; \
389 exit 1;; \
390 esac; \
391 done; \
392 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
393 $(am__cd) $(top_srcdir) && \
394 $(AUTOMAKE) --foreign Makefile
395 .PRECIOUS: Makefile
396 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
397 @case '$?' in \
398 *config.status*) \
399 echo ' $(SHELL) ./config.status'; \
400 $(SHELL) ./config.status;; \
401 *) \
402 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
403 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
404 esac;
406 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
407 $(SHELL) ./config.status --recheck
409 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
410 $(am__cd) $(srcdir) && $(AUTOCONF)
411 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
412 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
413 $(am__aclocal_m4_deps):
414 install-binPROGRAMS: $(bin_PROGRAMS)
415 @$(NORMAL_INSTALL)
416 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
417 if test -n "$$list"; then \
418 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
419 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
420 fi; \
421 for p in $$list; do echo "$$p $$p"; done | \
422 sed 's/$(EXEEXT)$$//' | \
423 while read p p1; do if test -f $$p; \
424 then echo "$$p"; echo "$$p"; else :; fi; \
425 done | \
426 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
427 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
428 sed 'N;N;N;s,\n, ,g' | \
429 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
430 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
431 if ($$2 == $$4) files[d] = files[d] " " $$1; \
432 else { print "f", $$3 "/" $$4, $$1; } } \
433 END { for (d in files) print "f", d, files[d] }' | \
434 while read type dir files; do \
435 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
436 test -z "$$files" || { \
437 echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
438 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
440 ; done
442 uninstall-binPROGRAMS:
443 @$(NORMAL_UNINSTALL)
444 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
445 files=`for p in $$list; do echo "$$p"; done | \
446 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
447 -e 's/$$/$(EXEEXT)/' `; \
448 test -n "$$list" || exit 0; \
449 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
450 cd "$(DESTDIR)$(bindir)" && rm -f $$files
452 clean-binPROGRAMS:
453 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
455 clean-noinstPROGRAMS:
456 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
457 @NATIVE_FALSE@buildid$(EXEEXT): $(buildid_OBJECTS) $(buildid_DEPENDENCIES) $(EXTRA_buildid_DEPENDENCIES)
458 @NATIVE_FALSE@ @rm -f buildid$(EXEEXT)
459 @NATIVE_FALSE@ $(LINK) $(buildid_OBJECTS) $(buildid_LDADD) $(LIBS)
460 @NATIVE_FALSE@cgo$(EXEEXT): $(cgo_OBJECTS) $(cgo_DEPENDENCIES) $(EXTRA_cgo_DEPENDENCIES)
461 @NATIVE_FALSE@ @rm -f cgo$(EXEEXT)
462 @NATIVE_FALSE@ $(LINK) $(cgo_OBJECTS) $(cgo_LDADD) $(LIBS)
463 @NATIVE_FALSE@go$(EXEEXT): $(go_OBJECTS) $(go_DEPENDENCIES) $(EXTRA_go_DEPENDENCIES)
464 @NATIVE_FALSE@ @rm -f go$(EXEEXT)
465 @NATIVE_FALSE@ $(LINK) $(go_OBJECTS) $(go_LDADD) $(LIBS)
466 @NATIVE_FALSE@gofmt$(EXEEXT): $(gofmt_OBJECTS) $(gofmt_DEPENDENCIES) $(EXTRA_gofmt_DEPENDENCIES)
467 @NATIVE_FALSE@ @rm -f gofmt$(EXEEXT)
468 @NATIVE_FALSE@ $(LINK) $(gofmt_OBJECTS) $(gofmt_LDADD) $(LIBS)
469 @NATIVE_FALSE@test2json$(EXEEXT): $(test2json_OBJECTS) $(test2json_DEPENDENCIES) $(EXTRA_test2json_DEPENDENCIES)
470 @NATIVE_FALSE@ @rm -f test2json$(EXEEXT)
471 @NATIVE_FALSE@ $(LINK) $(test2json_OBJECTS) $(test2json_LDADD) $(LIBS)
472 @NATIVE_FALSE@vet$(EXEEXT): $(vet_OBJECTS) $(vet_DEPENDENCIES) $(EXTRA_vet_DEPENDENCIES)
473 @NATIVE_FALSE@ @rm -f vet$(EXEEXT)
474 @NATIVE_FALSE@ $(LINK) $(vet_OBJECTS) $(vet_LDADD) $(LIBS)
476 mostlyclean-compile:
477 -rm -f *.$(OBJEXT)
479 distclean-compile:
480 -rm -f *.tab.c
482 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buildid.Po@am__quote@
483 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cgo.Po@am__quote@
484 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/go.Po@am__quote@
485 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gofmt.Po@am__quote@
486 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test2json.Po@am__quote@
487 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vet.Po@am__quote@
489 .c.o:
490 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
491 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
492 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
493 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
494 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
496 .c.obj:
497 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
498 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
499 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
500 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
501 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
502 install-man1: $(man_MANS)
503 @$(NORMAL_INSTALL)
504 @list1=''; \
505 list2='$(man_MANS)'; \
506 test -n "$(man1dir)" \
507 && test -n "`echo $$list1$$list2`" \
508 || exit 0; \
509 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
510 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
511 { for i in $$list1; do echo "$$i"; done; \
512 if test -n "$$list2"; then \
513 for i in $$list2; do echo "$$i"; done \
514 | sed -n '/\.1[a-z]*$$/p'; \
515 fi; \
516 } | while read p; do \
517 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
518 echo "$$d$$p"; echo "$$p"; \
519 done | \
520 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
521 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
522 sed 'N;N;s,\n, ,g' | { \
523 list=; while read file base inst; do \
524 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
525 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
526 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
527 fi; \
528 done; \
529 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
530 while read files; do \
531 test -z "$$files" || { \
532 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
533 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
534 done; }
536 uninstall-man1:
537 @$(NORMAL_UNINSTALL)
538 @list=''; test -n "$(man1dir)" || exit 0; \
539 files=`{ for i in $$list; do echo "$$i"; done; \
540 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
541 sed -n '/\.1[a-z]*$$/p'; \
542 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
543 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
544 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
546 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
547 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
548 unique=`for i in $$list; do \
549 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
550 done | \
551 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
552 END { if (nonempty) { for (i in files) print i; }; }'`; \
553 mkid -fID $$unique
554 tags: TAGS
556 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
557 $(TAGS_FILES) $(LISP)
558 set x; \
559 here=`pwd`; \
560 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
561 unique=`for i in $$list; do \
562 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
563 done | \
564 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
565 END { if (nonempty) { for (i in files) print i; }; }'`; \
566 shift; \
567 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
568 test -n "$$unique" || unique=$$empty_fix; \
569 if test $$# -gt 0; then \
570 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
571 "$$@" $$unique; \
572 else \
573 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
574 $$unique; \
575 fi; \
577 ctags: CTAGS
578 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
579 $(TAGS_FILES) $(LISP)
580 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
581 unique=`for i in $$list; do \
582 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
583 done | \
584 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
585 END { if (nonempty) { for (i in files) print i; }; }'`; \
586 test -z "$(CTAGS_ARGS)$$unique" \
587 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
588 $$unique
590 GTAGS:
591 here=`$(am__cd) $(top_builddir) && pwd` \
592 && $(am__cd) $(top_srcdir) \
593 && gtags -i $(GTAGS_ARGS) "$$here"
595 distclean-tags:
596 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
597 check-am: all-am
598 check: check-am
599 all-am: Makefile $(PROGRAMS) $(MANS)
600 installdirs:
601 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
602 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
603 done
604 install: install-am
605 install-exec: install-exec-am
606 install-data: install-data-am
607 uninstall: uninstall-am
609 install-am: all-am
610 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
612 installcheck: installcheck-am
613 install-strip:
614 if test -z '$(STRIP)'; then \
615 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
616 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
617 install; \
618 else \
619 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
620 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
621 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
623 mostlyclean-generic:
624 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
626 clean-generic:
628 distclean-generic:
629 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
630 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
632 maintainer-clean-generic:
633 @echo "This command is intended for maintainers to use"
634 @echo "it deletes files that may require special tools to rebuild."
635 @NATIVE_FALSE@uninstall-local:
636 @NATIVE_FALSE@install-exec-local:
637 clean: clean-am
639 clean-am: clean-binPROGRAMS clean-generic clean-noinstPROGRAMS \
640 mostlyclean-am
642 distclean: distclean-am
643 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
644 -rm -rf ./$(DEPDIR)
645 -rm -f Makefile
646 distclean-am: clean-am distclean-compile distclean-generic \
647 distclean-tags
649 dvi: dvi-am
651 dvi-am:
653 html: html-am
655 html-am:
657 info: info-am
659 info-am:
661 install-data-am: install-man
663 install-dvi: install-dvi-am
665 install-dvi-am:
667 install-exec-am: install-binPROGRAMS install-exec-local
669 install-html: install-html-am
671 install-html-am:
673 install-info: install-info-am
675 install-info-am:
677 install-man: install-man1
679 install-pdf: install-pdf-am
681 install-pdf-am:
683 install-ps: install-ps-am
685 install-ps-am:
687 installcheck-am:
689 maintainer-clean: maintainer-clean-am
690 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
691 -rm -rf $(top_srcdir)/autom4te.cache
692 -rm -rf ./$(DEPDIR)
693 -rm -f Makefile
694 maintainer-clean-am: distclean-am maintainer-clean-generic
696 mostlyclean: mostlyclean-am
698 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
699 mostlyclean-local
701 pdf: pdf-am
703 pdf-am:
705 ps: ps-am
707 ps-am:
709 uninstall-am: uninstall-binPROGRAMS uninstall-local uninstall-man
711 uninstall-man: uninstall-man1
713 .MAKE: install-am install-strip
715 .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
716 clean-binPROGRAMS clean-generic clean-noinstPROGRAMS ctags \
717 distclean distclean-compile distclean-generic distclean-tags \
718 dvi dvi-am html html-am info info-am install install-am \
719 install-binPROGRAMS install-data install-data-am install-dvi \
720 install-dvi-am install-exec install-exec-am install-exec-local \
721 install-html install-html-am install-info install-info-am \
722 install-man install-man1 install-pdf install-pdf-am install-ps \
723 install-ps-am install-strip installcheck installcheck-am \
724 installdirs maintainer-clean maintainer-clean-generic \
725 mostlyclean mostlyclean-compile mostlyclean-generic \
726 mostlyclean-local pdf pdf-am ps ps-am tags uninstall \
727 uninstall-am uninstall-binPROGRAMS uninstall-local \
728 uninstall-man uninstall-man1
731 zdefaultcc.go: s-zdefaultcc; @true
732 s-zdefaultcc: Makefile
733 echo 'package main' > zdefaultcc.go.tmp
734 echo 'func defaultGCCGO(goos, goarch string) string { return "$(bindir)/$(GCCGO_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
735 echo 'func defaultCC(goos, goarch string) string { return "$(GCC_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
736 echo 'func defaultCXX(goos, goarch string) string { return "$(GXX_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
737 echo 'const defaultPkgConfig = "pkg-config"' >> zdefaultcc.go.tmp
738 $(SHELL) $(srcdir)/../move-if-change zdefaultcc.go.tmp zdefaultcc.go
739 $(STAMP) $@
741 mostlyclean-local:
742 rm -rf check-go-dir check-runtime-dir cgo-test-dir carchive-test-dir
744 @NATIVE_TRUE@go$(EXEEXT): $(go_cmd_go_files) $(LIBGOTOOL) $(LIBGODEP)
745 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_go_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
746 @NATIVE_TRUE@gofmt$(EXEEXT): $(go_cmd_gofmt_files) $(LIBGODEP)
747 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_gofmt_files) $(LIBS) $(NET_LIBS)
748 @NATIVE_TRUE@cgo$(EXEEXT): $(go_cmd_cgo_files) zdefaultcc.go $(LIBGOTOOL) $(LIBGODEP)
749 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_cgo_files) zdefaultcc.go $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
750 @NATIVE_TRUE@vet$(EXEEXT): $(go_cmd_vet_files) $(LIBGOTOOL) $(LIBGODEP)
751 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_vet_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
752 @NATIVE_TRUE@buildid$(EXEEXT): $(go_cmd_buildid_files) $(LIBGOTOOL) $(LIBGODEP)
753 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_buildid_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
754 @NATIVE_TRUE@test2json$(EXEEXT): $(go_cmd_test2json_files) $(LIBGOTOOL) $(LIBGODEP)
755 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_test2json_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
757 @NATIVE_TRUE@install-exec-local: $(noinst_PROGRAMS)
758 @NATIVE_TRUE@ $(MKDIR_P) $(DESTDIR)$(libexecsubdir)
759 @NATIVE_TRUE@ for f in $(noinst_PROGRAMS); do \
760 @NATIVE_TRUE@ rm -f $(DESTDIR)$(libexecsubdir)/$$f; \
761 @NATIVE_TRUE@ $(INSTALL_PROGRAM) $$f $(DESTDIR)$(libexecsubdir)/$$f; \
762 @NATIVE_TRUE@ done
764 @NATIVE_TRUE@uninstall-local:
765 @NATIVE_TRUE@ for f in $(noinst_PROGRAMS); do \
766 @NATIVE_TRUE@ rm -f $(DESTDIR)$(libexecsubdir)/$$f; \
767 @NATIVE_TRUE@ done
769 # Run tests using the go tool, and frob the output to look like that
770 # generated by DejaGNU. The main output of this is two files:
771 # gotools.sum and gotools.log.
773 # check-head starts generating the log files in DejaGNU format. This
774 # is a separate target so that the date is approximately when we start
775 # running the tests.
776 @NATIVE_TRUE@check-head:
777 @NATIVE_TRUE@ @echo "Test Run By $${USER} on `date`" > gotools.head
778 @NATIVE_TRUE@ @echo "Native configuration is $(host_triplet)" >> gotools.head
779 @NATIVE_TRUE@ @echo >> gotools.head
780 @NATIVE_TRUE@ @echo " === gotools tests ===" >> gotools.head
781 @NATIVE_TRUE@ @echo >> gotools.head
783 # check-gccgo is a little shell script that executes gccgo with the
784 # options to pick up the newly built libgo.
785 @NATIVE_TRUE@check-gccgo: Makefile
786 @NATIVE_TRUE@ rm -f $@ $@.tmp
787 @NATIVE_TRUE@ echo "#!/bin/sh" > $@.tmp
788 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
789 @NATIVE_TRUE@ echo "$(GOCOMPILE)" '"$$@"' "-I $${abs_libgodir} -L $${abs_libgodir} -L $${abs_libgodir}/.libs" >> $@.tmp
790 @NATIVE_TRUE@ chmod +x $@.tmp
791 @NATIVE_TRUE@ mv -f $@.tmp $@
793 # check-gcc is a little shell script that executes the newly built gcc
794 # with the options to pick up the newly built libgo.
795 @NATIVE_TRUE@check-gcc: Makefile
796 @NATIVE_TRUE@ rm -f $@ $@.tmp
797 @NATIVE_TRUE@ echo "#!/bin/sh" > $@.tmp
798 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
799 @NATIVE_TRUE@ echo "$(GCC_FOR_TARGET)" '"$$@"' "-L $${abs_libgodir} -L $${abs_libgodir}/.libs" >> $@.tmp
800 @NATIVE_TRUE@ chmod +x $@.tmp
801 @NATIVE_TRUE@ mv -f $@.tmp $@
803 # check-go-tool runs `go test cmd/go` in our environment.
804 @NATIVE_TRUE@check-go-tool: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
805 @NATIVE_TRUE@ rm -rf check-go-dir cmd_go-testlog
806 @NATIVE_TRUE@ $(MKDIR_P) check-go-dir/src/cmd/go
807 @NATIVE_TRUE@ cp $(cmdsrcdir)/go/*.go check-go-dir/src/cmd/go/
808 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/go/internal check-go-dir/src/cmd/go/
809 @NATIVE_TRUE@ cp $(libgodir)/zstdpkglist.go check-go-dir/src/cmd/go/internal/load/
810 @NATIVE_TRUE@ cp $(libgodir)/zdefaultcc.go check-go-dir/src/cmd/go/internal/cfg/
811 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/go/testdata check-go-dir/src/cmd/go/
812 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/internal check-go-dir/src/cmd/
813 @NATIVE_TRUE@ cp $(libgodir)/objabi.go check-go-dir/src/cmd/internal/objabi/
814 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
815 @NATIVE_TRUE@ abs_checkdir=`cd check-go-dir && $(PWD_COMMAND)`; \
816 @NATIVE_TRUE@ echo "cd check-go-dir/src/cmd/go && $(ECHO_ENV) GOPATH=$${abs_checkdir} $(abs_builddir)/go$(EXEEXT) test -test.short -test.v" > cmd_go-testlog
817 @NATIVE_TRUE@ $(CHECK_ENV) \
818 @NATIVE_TRUE@ GOPATH=`cd check-go-dir && $(PWD_COMMAND)`; \
819 @NATIVE_TRUE@ export GOPATH; \
820 @NATIVE_TRUE@ (cd check-go-dir/src/cmd/go && $(abs_builddir)/go$(EXEEXT) test -test.short -test.v) >> cmd_go-testlog 2>&1 || echo "--- $${fl}: go test cmd/go (0.00s)" >> cmd_go-testlog
821 @NATIVE_TRUE@ grep '^--- ' cmd_go-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
823 # check-runtime runs `go test runtime` in our environment.
824 # The runtime package is also tested as part of libgo,
825 # but the runtime tests use the go tool heavily, so testing
826 # here too will catch more problems.
827 @NATIVE_TRUE@check-runtime: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
828 @NATIVE_TRUE@ rm -rf check-runtime-dir runtime-testlog
829 @NATIVE_TRUE@ $(MKDIR_P) check-runtime-dir
830 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
831 @NATIVE_TRUE@ LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
832 @NATIVE_TRUE@ GOARCH=`$(abs_builddir)/go$(EXEEXT) env GOARCH`; \
833 @NATIVE_TRUE@ GOOS=`$(abs_builddir)/go$(EXEEXT) env GOOS`; \
834 @NATIVE_TRUE@ files=`$(SHELL) $(libgosrcdir)/../match.sh --goarch=$${GOARCH} --goos=$${GOOS} --srcdir=$(libgosrcdir)/runtime --extrafiles="$(libgodir)/runtime_sysinfo.go $(libgodir)/sigtab.go" --tag=libffi`; \
835 @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.v" > runtime-testlog
836 @NATIVE_TRUE@ $(CHECK_ENV) \
837 @NATIVE_TRUE@ GC="$${GCCGO} -fgo-compiling-runtime"; \
838 @NATIVE_TRUE@ export GC; \
839 @NATIVE_TRUE@ GOARCH=`$(abs_builddir)/go$(EXEEXT) env GOARCH`; \
840 @NATIVE_TRUE@ GOOS=`$(abs_builddir)/go$(EXEEXT) env GOOS`; \
841 @NATIVE_TRUE@ files=`$(SHELL) $(libgosrcdir)/../match.sh --goarch=$${GOARCH} --goos=$${GOOS} --srcdir=$(libgosrcdir)/runtime --extrafiles="$(libgodir)/runtime_sysinfo.go $(libgodir)/sigtab.go" --tag=libffi`; \
842 @NATIVE_TRUE@ $(SHELL) $(libgosrcdir)/../testsuite/gotest --goarch=$${GOARCH} --goos=$${GOOS} --basedir=$(libgosrcdir)/.. --srcdir=$(libgosrcdir)/runtime --pkgpath=runtime --pkgfiles="$${files}" $(GOTESTFLAGS) -test.v >> runtime-testlog 2>&1 || echo "--- $${fl}: go test runtime (0.00s)" >> runtime-testlog
843 @NATIVE_TRUE@ grep '^--- ' runtime-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
845 # check-cgo-test runs `go test misc/cgo/test` in our environment.
846 @NATIVE_TRUE@check-cgo-test: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
847 @NATIVE_TRUE@ rm -rf cgo-test-dir cgo-testlog
848 @NATIVE_TRUE@ $(MKDIR_P) cgo-test-dir/misc/cgo
849 @NATIVE_TRUE@ cp -r $(libgomiscdir)/cgo/test cgo-test-dir/misc/cgo/
850 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
851 @NATIVE_TRUE@ echo "cd cgo-test-dir/misc/cgo/test && $(ECHO_ENV) GOTRACEBACK=2 $(abs_builddir)/go$(EXEEXT) test -test.short -test.v" > cgo-testlog
852 @NATIVE_TRUE@ $(CHECK_ENV) \
853 @NATIVE_TRUE@ GOTRACEBACK=2; \
854 @NATIVE_TRUE@ export GOTRACEBACK; \
855 @NATIVE_TRUE@ (cd cgo-test-dir/misc/cgo/test && $(abs_builddir)/go$(EXEEXT) test -test.short -test.v) >> cgo-testlog 2>&1 || echo "--- $${fl}: go test misc/cgo/test (0.00s)" >> cgo-testlog
856 @NATIVE_TRUE@ grep '^--- ' cgo-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
858 # check-carchive-test runs `go test misc/cgo/testcarchive/carchive_test.go`
859 # in our environment.
860 @NATIVE_TRUE@check-carchive-test: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
861 @NATIVE_TRUE@ rm -rf carchive-test-dir carchive-testlog
862 @NATIVE_TRUE@ $(MKDIR_P) carchive-test-dir/misc/cgo
863 @NATIVE_TRUE@ cp -r $(libgomiscdir)/cgo/testcarchive carchive-test-dir/misc/cgo/
864 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
865 @NATIVE_TRUE@ echo "cd carchive-test-dir/misc/cgo/testcarchive && $(ECHO_ENV) LIBRARY_PATH=`echo $${abs_libgodir}/.libs` $(abs_builddir)/go$(EXEEXT) test -test.v carchive_test.go" > carchive-testlog
866 @NATIVE_TRUE@ $(CHECK_ENV) \
867 @NATIVE_TRUE@ LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
868 @NATIVE_TRUE@ export LIBRARY_PATH; \
869 @NATIVE_TRUE@ (cd carchive-test-dir/misc/cgo/testcarchive && $(abs_builddir)/go$(EXEEXT) test -test.v carchive_test.go) >> carchive-testlog 2>&1 || echo "--- $${fl}: go test misc/cgo/testcarchive (0.00s)" >> carchive-testlog
870 @NATIVE_TRUE@ grep '^--- ' carchive-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
872 # check-vet runs `go test cmd/vet` in our environment.
873 @NATIVE_TRUE@check-vet: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
874 @NATIVE_TRUE@ rm -rf check-vet-dir cmd_vet-testlog
875 @NATIVE_TRUE@ $(MKDIR_P) check-vet-dir/src/cmd
876 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/vet check-vet-dir/src/cmd/
877 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
878 @NATIVE_TRUE@ abs_checkdir=`cd check-vet-dir && $(PWD_COMMAND)`; \
879 @NATIVE_TRUE@ echo "cd check-vet-dir/src/cmd/vet && $(ECHO_ENV) GOPATH=$${abs_checkdir} $(abs_builddir)/go$(EXEEXT) test -test.short -test.v" > cmd_vet-testlog
880 @NATIVE_TRUE@ $(CHECK_ENV) \
881 @NATIVE_TRUE@ GOPATH=`cd check-vet-dir && $(PWD_COMMAND)`; \
882 @NATIVE_TRUE@ export GOPATH; \
883 @NATIVE_TRUE@ (cd check-vet-dir/src/cmd/vet && $(abs_builddir)/go$(EXEEXT) test -test.short -test.v) >> cmd_vet-testlog 2>&1 || echo "--- $${fl}: go test cmd/vet (0.00s)" >> cmd_vet-testlog
884 @NATIVE_TRUE@ grep '^--- ' cmd_vet-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
886 # The check targets runs the tests and assembles the output files.
887 @NATIVE_TRUE@check: check-head check-go-tool check-runtime check-cgo-test check-carchive-test check-vet
888 @NATIVE_TRUE@ @mv gotools.head gotools.sum
889 @NATIVE_TRUE@ @cp gotools.sum gotools.log
890 @NATIVE_TRUE@ @for file in cmd_go-testlog runtime-testlog cgo-testlog carchive-testlog cmd_vet-testlog; do \
891 @NATIVE_TRUE@ testname=`echo $${file} | sed -e 's/-testlog//' -e 's|_|/|'`; \
892 @NATIVE_TRUE@ echo "Running $${testname}" >> gotools.sum; \
893 @NATIVE_TRUE@ echo "Running $${testname}" >> gotools.log; \
894 @NATIVE_TRUE@ sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' < $${file} >> gotools.log; \
895 @NATIVE_TRUE@ grep '^--- ' $${file} | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' -e 's/SKIP/UNTESTED/' | sort -k 2 >> gotools.sum; \
896 @NATIVE_TRUE@ done
897 @NATIVE_TRUE@ @echo >> gotools.sum
898 @NATIVE_TRUE@ @echo " === gotools Summary ===" >> gotools.sum
899 @NATIVE_TRUE@ @pass=`grep -c '^PASS' gotools.sum`; \
900 @NATIVE_TRUE@ if test "$${pass}" -ne "0"; then \
901 @NATIVE_TRUE@ echo "# of expected passes $${pass}" >> gotools.sum; \
902 @NATIVE_TRUE@ fi
903 @NATIVE_TRUE@ @fail=`grep -c '^FAIL' gotools.sum`; \
904 @NATIVE_TRUE@ if test "$${fail}" -ne "0"; then \
905 @NATIVE_TRUE@ echo "# of unexpected failures $${fail}" >> gotools.sum; \
906 @NATIVE_TRUE@ fi
907 @NATIVE_TRUE@ @untested=`grep -c '^UNTESTED' gotools.sum`; \
908 @NATIVE_TRUE@ if test "$${untested}" -ne "0"; then \
909 @NATIVE_TRUE@ echo "# of untested testcases $${untested}" >> gotools.sum; \
910 @NATIVE_TRUE@ fi
911 @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
912 @NATIVE_TRUE@ @echo >> gotools.log
913 @NATIVE_TRUE@ @echo "runtest completed at `date`" >> gotools.log
914 @NATIVE_TRUE@ @if grep '^FAIL' gotools.sum >/dev/null 2>&1; then exit 1; fi
916 @NATIVE_TRUE@.PHONY: check check-head check-go-tool check-runtime check-cgo-test check-carchive-test check-vet
918 # For a non-native build we have to build the programs using a
919 # previously built host (or build -> host) Go compiler. We should
920 # only do this if such a compiler is available. We also need to get
921 # the right values for GOARCH and GOOS in the default build context in
922 # the go/build package. Figure this out later.
924 # Tell versions [3.59,3.63) of GNU make to not export all variables.
925 # Otherwise a system limit (for SysV at least) may be exceeded.
926 .NOEXPORT: