PR target/84845
[official-gcc.git] / gotools / Makefile.in
blob4d42d5e127dd8684f2765bc90929c22727c22f7c
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 # Number of seconds before tests time out.
351 @NATIVE_TRUE@GOTOOLS_TEST_TIMEOUT = 480
353 # CHECK_ENV sets up the environment to run the newly built go tool.
354 # If you change this, change ECHO_ENV, below.
355 # The fl shell variable is used to avoid having FAIL appear
356 # in the log unnecessarily.
357 @NATIVE_TRUE@CHECK_ENV = \
358 @NATIVE_TRUE@ PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
359 @NATIVE_TRUE@ export PATH; \
360 @NATIVE_TRUE@ GCCGO="$(abs_builddir)/check-gccgo"; \
361 @NATIVE_TRUE@ export GCCGO; \
362 @NATIVE_TRUE@ CC="$(abs_builddir)/check-gcc"; \
363 @NATIVE_TRUE@ export CC; \
364 @NATIVE_TRUE@ GCCGOTOOLDIR="$(abs_builddir)"; \
365 @NATIVE_TRUE@ export GCCGOTOOLDIR; \
366 @NATIVE_TRUE@ GO_TESTING_GOTOOLS=yes; \
367 @NATIVE_TRUE@ export GO_TESTING_GOTOOLS; \
368 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
369 @NATIVE_TRUE@ LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
370 @NATIVE_TRUE@ export LD_LIBRARY_PATH; \
371 @NATIVE_TRUE@ GOROOT=$${abs_libgodir}; \
372 @NATIVE_TRUE@ export GOROOT; \
373 @NATIVE_TRUE@ fl1="FA"; fl2="IL"; fl="$${fl1}$${fl2}";
376 # ECHO_ENV is a variant of CHECK_ENV to put into a testlog file.
377 # It assumes that abs_libgodir is set.
378 @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}`
379 all: all-am
381 .SUFFIXES:
382 .SUFFIXES: .c .o .obj
383 am--refresh: Makefile
385 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
386 @for dep in $?; do \
387 case '$(am__configure_deps)' in \
388 *$$dep*) \
389 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
390 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
391 && exit 0; \
392 exit 1;; \
393 esac; \
394 done; \
395 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
396 $(am__cd) $(top_srcdir) && \
397 $(AUTOMAKE) --foreign Makefile
398 .PRECIOUS: Makefile
399 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
400 @case '$?' in \
401 *config.status*) \
402 echo ' $(SHELL) ./config.status'; \
403 $(SHELL) ./config.status;; \
404 *) \
405 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
406 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
407 esac;
409 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
410 $(SHELL) ./config.status --recheck
412 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
413 $(am__cd) $(srcdir) && $(AUTOCONF)
414 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
415 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
416 $(am__aclocal_m4_deps):
417 install-binPROGRAMS: $(bin_PROGRAMS)
418 @$(NORMAL_INSTALL)
419 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
420 if test -n "$$list"; then \
421 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
422 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
423 fi; \
424 for p in $$list; do echo "$$p $$p"; done | \
425 sed 's/$(EXEEXT)$$//' | \
426 while read p p1; do if test -f $$p; \
427 then echo "$$p"; echo "$$p"; else :; fi; \
428 done | \
429 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
430 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
431 sed 'N;N;N;s,\n, ,g' | \
432 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
433 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
434 if ($$2 == $$4) files[d] = files[d] " " $$1; \
435 else { print "f", $$3 "/" $$4, $$1; } } \
436 END { for (d in files) print "f", d, files[d] }' | \
437 while read type dir files; do \
438 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
439 test -z "$$files" || { \
440 echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
441 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
443 ; done
445 uninstall-binPROGRAMS:
446 @$(NORMAL_UNINSTALL)
447 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
448 files=`for p in $$list; do echo "$$p"; done | \
449 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
450 -e 's/$$/$(EXEEXT)/' `; \
451 test -n "$$list" || exit 0; \
452 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
453 cd "$(DESTDIR)$(bindir)" && rm -f $$files
455 clean-binPROGRAMS:
456 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
458 clean-noinstPROGRAMS:
459 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
460 @NATIVE_FALSE@buildid$(EXEEXT): $(buildid_OBJECTS) $(buildid_DEPENDENCIES) $(EXTRA_buildid_DEPENDENCIES)
461 @NATIVE_FALSE@ @rm -f buildid$(EXEEXT)
462 @NATIVE_FALSE@ $(LINK) $(buildid_OBJECTS) $(buildid_LDADD) $(LIBS)
463 @NATIVE_FALSE@cgo$(EXEEXT): $(cgo_OBJECTS) $(cgo_DEPENDENCIES) $(EXTRA_cgo_DEPENDENCIES)
464 @NATIVE_FALSE@ @rm -f cgo$(EXEEXT)
465 @NATIVE_FALSE@ $(LINK) $(cgo_OBJECTS) $(cgo_LDADD) $(LIBS)
466 @NATIVE_FALSE@go$(EXEEXT): $(go_OBJECTS) $(go_DEPENDENCIES) $(EXTRA_go_DEPENDENCIES)
467 @NATIVE_FALSE@ @rm -f go$(EXEEXT)
468 @NATIVE_FALSE@ $(LINK) $(go_OBJECTS) $(go_LDADD) $(LIBS)
469 @NATIVE_FALSE@gofmt$(EXEEXT): $(gofmt_OBJECTS) $(gofmt_DEPENDENCIES) $(EXTRA_gofmt_DEPENDENCIES)
470 @NATIVE_FALSE@ @rm -f gofmt$(EXEEXT)
471 @NATIVE_FALSE@ $(LINK) $(gofmt_OBJECTS) $(gofmt_LDADD) $(LIBS)
472 @NATIVE_FALSE@test2json$(EXEEXT): $(test2json_OBJECTS) $(test2json_DEPENDENCIES) $(EXTRA_test2json_DEPENDENCIES)
473 @NATIVE_FALSE@ @rm -f test2json$(EXEEXT)
474 @NATIVE_FALSE@ $(LINK) $(test2json_OBJECTS) $(test2json_LDADD) $(LIBS)
475 @NATIVE_FALSE@vet$(EXEEXT): $(vet_OBJECTS) $(vet_DEPENDENCIES) $(EXTRA_vet_DEPENDENCIES)
476 @NATIVE_FALSE@ @rm -f vet$(EXEEXT)
477 @NATIVE_FALSE@ $(LINK) $(vet_OBJECTS) $(vet_LDADD) $(LIBS)
479 mostlyclean-compile:
480 -rm -f *.$(OBJEXT)
482 distclean-compile:
483 -rm -f *.tab.c
485 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buildid.Po@am__quote@
486 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cgo.Po@am__quote@
487 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/go.Po@am__quote@
488 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gofmt.Po@am__quote@
489 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test2json.Po@am__quote@
490 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vet.Po@am__quote@
492 .c.o:
493 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
494 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
495 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
496 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
497 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
499 .c.obj:
500 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
501 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
502 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
503 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
504 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
505 install-man1: $(man_MANS)
506 @$(NORMAL_INSTALL)
507 @list1=''; \
508 list2='$(man_MANS)'; \
509 test -n "$(man1dir)" \
510 && test -n "`echo $$list1$$list2`" \
511 || exit 0; \
512 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
513 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
514 { for i in $$list1; do echo "$$i"; done; \
515 if test -n "$$list2"; then \
516 for i in $$list2; do echo "$$i"; done \
517 | sed -n '/\.1[a-z]*$$/p'; \
518 fi; \
519 } | while read p; do \
520 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
521 echo "$$d$$p"; echo "$$p"; \
522 done | \
523 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
524 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
525 sed 'N;N;s,\n, ,g' | { \
526 list=; while read file base inst; do \
527 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
528 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
529 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
530 fi; \
531 done; \
532 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
533 while read files; do \
534 test -z "$$files" || { \
535 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
536 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
537 done; }
539 uninstall-man1:
540 @$(NORMAL_UNINSTALL)
541 @list=''; test -n "$(man1dir)" || exit 0; \
542 files=`{ for i in $$list; do echo "$$i"; done; \
543 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
544 sed -n '/\.1[a-z]*$$/p'; \
545 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
546 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
547 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
549 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
550 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
551 unique=`for i in $$list; do \
552 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
553 done | \
554 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
555 END { if (nonempty) { for (i in files) print i; }; }'`; \
556 mkid -fID $$unique
557 tags: TAGS
559 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
560 $(TAGS_FILES) $(LISP)
561 set x; \
562 here=`pwd`; \
563 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
564 unique=`for i in $$list; do \
565 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
566 done | \
567 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
568 END { if (nonempty) { for (i in files) print i; }; }'`; \
569 shift; \
570 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
571 test -n "$$unique" || unique=$$empty_fix; \
572 if test $$# -gt 0; then \
573 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
574 "$$@" $$unique; \
575 else \
576 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
577 $$unique; \
578 fi; \
580 ctags: CTAGS
581 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
582 $(TAGS_FILES) $(LISP)
583 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
584 unique=`for i in $$list; do \
585 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
586 done | \
587 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
588 END { if (nonempty) { for (i in files) print i; }; }'`; \
589 test -z "$(CTAGS_ARGS)$$unique" \
590 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
591 $$unique
593 GTAGS:
594 here=`$(am__cd) $(top_builddir) && pwd` \
595 && $(am__cd) $(top_srcdir) \
596 && gtags -i $(GTAGS_ARGS) "$$here"
598 distclean-tags:
599 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
600 check-am: all-am
601 check: check-am
602 all-am: Makefile $(PROGRAMS) $(MANS)
603 installdirs:
604 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
605 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
606 done
607 install: install-am
608 install-exec: install-exec-am
609 install-data: install-data-am
610 uninstall: uninstall-am
612 install-am: all-am
613 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
615 installcheck: installcheck-am
616 install-strip:
617 if test -z '$(STRIP)'; then \
618 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
619 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
620 install; \
621 else \
622 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
623 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
624 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
626 mostlyclean-generic:
627 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
629 clean-generic:
631 distclean-generic:
632 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
633 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
635 maintainer-clean-generic:
636 @echo "This command is intended for maintainers to use"
637 @echo "it deletes files that may require special tools to rebuild."
638 @NATIVE_FALSE@uninstall-local:
639 @NATIVE_FALSE@install-exec-local:
640 clean: clean-am
642 clean-am: clean-binPROGRAMS clean-generic clean-noinstPROGRAMS \
643 mostlyclean-am
645 distclean: distclean-am
646 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
647 -rm -rf ./$(DEPDIR)
648 -rm -f Makefile
649 distclean-am: clean-am distclean-compile distclean-generic \
650 distclean-tags
652 dvi: dvi-am
654 dvi-am:
656 html: html-am
658 html-am:
660 info: info-am
662 info-am:
664 install-data-am: install-man
666 install-dvi: install-dvi-am
668 install-dvi-am:
670 install-exec-am: install-binPROGRAMS install-exec-local
672 install-html: install-html-am
674 install-html-am:
676 install-info: install-info-am
678 install-info-am:
680 install-man: install-man1
682 install-pdf: install-pdf-am
684 install-pdf-am:
686 install-ps: install-ps-am
688 install-ps-am:
690 installcheck-am:
692 maintainer-clean: maintainer-clean-am
693 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
694 -rm -rf $(top_srcdir)/autom4te.cache
695 -rm -rf ./$(DEPDIR)
696 -rm -f Makefile
697 maintainer-clean-am: distclean-am maintainer-clean-generic
699 mostlyclean: mostlyclean-am
701 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
702 mostlyclean-local
704 pdf: pdf-am
706 pdf-am:
708 ps: ps-am
710 ps-am:
712 uninstall-am: uninstall-binPROGRAMS uninstall-local uninstall-man
714 uninstall-man: uninstall-man1
716 .MAKE: install-am install-strip
718 .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
719 clean-binPROGRAMS clean-generic clean-noinstPROGRAMS ctags \
720 distclean distclean-compile distclean-generic distclean-tags \
721 dvi dvi-am html html-am info info-am install install-am \
722 install-binPROGRAMS install-data install-data-am install-dvi \
723 install-dvi-am install-exec install-exec-am install-exec-local \
724 install-html install-html-am install-info install-info-am \
725 install-man install-man1 install-pdf install-pdf-am install-ps \
726 install-ps-am install-strip installcheck installcheck-am \
727 installdirs maintainer-clean maintainer-clean-generic \
728 mostlyclean mostlyclean-compile mostlyclean-generic \
729 mostlyclean-local pdf pdf-am ps ps-am tags uninstall \
730 uninstall-am uninstall-binPROGRAMS uninstall-local \
731 uninstall-man uninstall-man1
734 zdefaultcc.go: s-zdefaultcc; @true
735 s-zdefaultcc: Makefile
736 echo 'package main' > zdefaultcc.go.tmp
737 echo 'func defaultGCCGO(goos, goarch string) string { return "$(bindir)/$(GCCGO_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
738 echo 'func defaultCC(goos, goarch string) string { return "$(GCC_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
739 echo 'func defaultCXX(goos, goarch string) string { return "$(GXX_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
740 echo 'const defaultPkgConfig = "pkg-config"' >> zdefaultcc.go.tmp
741 $(SHELL) $(srcdir)/../move-if-change zdefaultcc.go.tmp zdefaultcc.go
742 $(STAMP) $@
744 mostlyclean-local:
745 rm -rf check-go-dir check-runtime-dir cgo-test-dir carchive-test-dir
747 @NATIVE_TRUE@go$(EXEEXT): $(go_cmd_go_files) $(LIBGOTOOL) $(LIBGODEP)
748 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_go_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
749 @NATIVE_TRUE@gofmt$(EXEEXT): $(go_cmd_gofmt_files) $(LIBGODEP)
750 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_gofmt_files) $(LIBS) $(NET_LIBS)
751 @NATIVE_TRUE@cgo$(EXEEXT): $(go_cmd_cgo_files) zdefaultcc.go $(LIBGOTOOL) $(LIBGODEP)
752 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_cgo_files) zdefaultcc.go $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
753 @NATIVE_TRUE@vet$(EXEEXT): $(go_cmd_vet_files) $(LIBGOTOOL) $(LIBGODEP)
754 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_vet_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
755 @NATIVE_TRUE@buildid$(EXEEXT): $(go_cmd_buildid_files) $(LIBGOTOOL) $(LIBGODEP)
756 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_buildid_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
757 @NATIVE_TRUE@test2json$(EXEEXT): $(go_cmd_test2json_files) $(LIBGOTOOL) $(LIBGODEP)
758 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_test2json_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
760 @NATIVE_TRUE@install-exec-local: $(noinst_PROGRAMS)
761 @NATIVE_TRUE@ $(MKDIR_P) $(DESTDIR)$(libexecsubdir)
762 @NATIVE_TRUE@ for f in $(noinst_PROGRAMS); do \
763 @NATIVE_TRUE@ rm -f $(DESTDIR)$(libexecsubdir)/$$f; \
764 @NATIVE_TRUE@ $(INSTALL_PROGRAM) $$f $(DESTDIR)$(libexecsubdir)/$$f; \
765 @NATIVE_TRUE@ done
767 @NATIVE_TRUE@uninstall-local:
768 @NATIVE_TRUE@ for f in $(noinst_PROGRAMS); do \
769 @NATIVE_TRUE@ rm -f $(DESTDIR)$(libexecsubdir)/$$f; \
770 @NATIVE_TRUE@ done
772 # Run tests using the go tool, and frob the output to look like that
773 # generated by DejaGNU. The main output of this is two files:
774 # gotools.sum and gotools.log.
776 # check-head starts generating the log files in DejaGNU format. This
777 # is a separate target so that the date is approximately when we start
778 # running the tests.
779 @NATIVE_TRUE@check-head:
780 @NATIVE_TRUE@ @echo "Test Run By $${USER} on `date`" > gotools.head
781 @NATIVE_TRUE@ @echo "Native configuration is $(host_triplet)" >> gotools.head
782 @NATIVE_TRUE@ @echo >> gotools.head
783 @NATIVE_TRUE@ @echo " === gotools tests ===" >> gotools.head
784 @NATIVE_TRUE@ @echo >> gotools.head
786 # check-gccgo is a little shell script that executes gccgo with the
787 # options to pick up the newly built libgo and libstdc++.
788 @NATIVE_TRUE@check-gccgo: Makefile
789 @NATIVE_TRUE@ rm -f $@ $@.tmp
790 @NATIVE_TRUE@ echo "#!/bin/sh" > $@.tmp
791 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
792 @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
793 @NATIVE_TRUE@ chmod +x $@.tmp
794 @NATIVE_TRUE@ mv -f $@.tmp $@
796 # check-gcc is a little shell script that executes the newly built gcc
797 # with the options to pick up the newly built libgo and libstdc++.
798 @NATIVE_TRUE@check-gcc: Makefile
799 @NATIVE_TRUE@ rm -f $@ $@.tmp
800 @NATIVE_TRUE@ echo "#!/bin/sh" > $@.tmp
801 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
802 @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
803 @NATIVE_TRUE@ chmod +x $@.tmp
804 @NATIVE_TRUE@ mv -f $@.tmp $@
806 # check-go-tool runs `go test cmd/go` in our environment.
807 @NATIVE_TRUE@check-go-tool: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
808 @NATIVE_TRUE@ rm -rf check-go-dir cmd_go-testlog
809 @NATIVE_TRUE@ $(MKDIR_P) check-go-dir/src/cmd/go
810 @NATIVE_TRUE@ cp $(cmdsrcdir)/go/*.go check-go-dir/src/cmd/go/
811 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/go/internal check-go-dir/src/cmd/go/
812 @NATIVE_TRUE@ cp $(libgodir)/zstdpkglist.go check-go-dir/src/cmd/go/internal/load/
813 @NATIVE_TRUE@ cp $(libgodir)/zdefaultcc.go check-go-dir/src/cmd/go/internal/cfg/
814 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/go/testdata check-go-dir/src/cmd/go/
815 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/internal check-go-dir/src/cmd/
816 @NATIVE_TRUE@ cp $(libgodir)/objabi.go check-go-dir/src/cmd/internal/objabi/
817 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
818 @NATIVE_TRUE@ abs_checkdir=`cd check-go-dir && $(PWD_COMMAND)`; \
819 @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
820 @NATIVE_TRUE@ $(CHECK_ENV) \
821 @NATIVE_TRUE@ GOPATH=`cd check-go-dir && $(PWD_COMMAND)`; \
822 @NATIVE_TRUE@ export GOPATH; \
823 @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
824 @NATIVE_TRUE@ grep '^--- ' cmd_go-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
826 # check-runtime runs `go test runtime` in our environment.
827 # The runtime package is also tested as part of libgo,
828 # but the runtime tests use the go tool heavily, so testing
829 # here too will catch more problems.
830 @NATIVE_TRUE@check-runtime: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
831 @NATIVE_TRUE@ rm -rf check-runtime-dir runtime-testlog
832 @NATIVE_TRUE@ $(MKDIR_P) check-runtime-dir
833 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
834 @NATIVE_TRUE@ LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
835 @NATIVE_TRUE@ GOARCH=`$(abs_builddir)/go$(EXEEXT) env GOARCH`; \
836 @NATIVE_TRUE@ GOOS=`$(abs_builddir)/go$(EXEEXT) env GOOS`; \
837 @NATIVE_TRUE@ files=`$(SHELL) $(libgosrcdir)/../match.sh --goarch=$${GOARCH} --goos=$${GOOS} --srcdir=$(libgosrcdir)/runtime --extrafiles="$(libgodir)/runtime_sysinfo.go $(libgodir)/sigtab.go" --tag=libffi`; \
838 @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
839 @NATIVE_TRUE@ $(CHECK_ENV) \
840 @NATIVE_TRUE@ GC="$${GCCGO} -fgo-compiling-runtime"; \
841 @NATIVE_TRUE@ export GC; \
842 @NATIVE_TRUE@ GOARCH=`$(abs_builddir)/go$(EXEEXT) env GOARCH`; \
843 @NATIVE_TRUE@ GOOS=`$(abs_builddir)/go$(EXEEXT) env GOOS`; \
844 @NATIVE_TRUE@ files=`$(SHELL) $(libgosrcdir)/../match.sh --goarch=$${GOARCH} --goos=$${GOOS} --srcdir=$(libgosrcdir)/runtime --extrafiles="$(libgodir)/runtime_sysinfo.go $(libgodir)/sigtab.go" --tag=libffi`; \
845 @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
846 @NATIVE_TRUE@ grep '^--- ' runtime-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
848 # check-cgo-test runs `go test misc/cgo/test` in our environment.
849 @NATIVE_TRUE@check-cgo-test: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
850 @NATIVE_TRUE@ rm -rf cgo-test-dir cgo-testlog
851 @NATIVE_TRUE@ $(MKDIR_P) cgo-test-dir/misc/cgo
852 @NATIVE_TRUE@ cp -r $(libgomiscdir)/cgo/test cgo-test-dir/misc/cgo/
853 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
854 @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
855 @NATIVE_TRUE@ $(CHECK_ENV) \
856 @NATIVE_TRUE@ GOTRACEBACK=2; \
857 @NATIVE_TRUE@ export GOTRACEBACK; \
858 @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
859 @NATIVE_TRUE@ grep '^--- ' cgo-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
861 # check-carchive-test runs `go test misc/cgo/testcarchive/carchive_test.go`
862 # in our environment.
863 @NATIVE_TRUE@check-carchive-test: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
864 @NATIVE_TRUE@ rm -rf carchive-test-dir carchive-testlog
865 @NATIVE_TRUE@ $(MKDIR_P) carchive-test-dir/misc/cgo
866 @NATIVE_TRUE@ cp -r $(libgomiscdir)/cgo/testcarchive carchive-test-dir/misc/cgo/
867 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
868 @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_test.go" > carchive-testlog
869 @NATIVE_TRUE@ $(CHECK_ENV) \
870 @NATIVE_TRUE@ LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
871 @NATIVE_TRUE@ export LIBRARY_PATH; \
872 @NATIVE_TRUE@ (cd carchive-test-dir/misc/cgo/testcarchive && $(abs_builddir)/go$(EXEEXT) test -test.timeout=$(GOTOOLS_TEST_TIMEOUT)s -test.v carchive_test.go) >> carchive-testlog 2>&1 || echo "--- $${fl}: go test misc/cgo/testcarchive (0.00s)" >> carchive-testlog
873 @NATIVE_TRUE@ grep '^--- ' carchive-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
875 # check-vet runs `go test cmd/vet` in our environment.
876 @NATIVE_TRUE@check-vet: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
877 @NATIVE_TRUE@ rm -rf check-vet-dir cmd_vet-testlog
878 @NATIVE_TRUE@ $(MKDIR_P) check-vet-dir/src/cmd
879 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/vet check-vet-dir/src/cmd/
880 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
881 @NATIVE_TRUE@ abs_checkdir=`cd check-vet-dir && $(PWD_COMMAND)`; \
882 @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
883 @NATIVE_TRUE@ $(CHECK_ENV) \
884 @NATIVE_TRUE@ GOPATH=`cd check-vet-dir && $(PWD_COMMAND)`; \
885 @NATIVE_TRUE@ export GOPATH; \
886 @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
887 @NATIVE_TRUE@ grep '^--- ' cmd_vet-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
889 # The check targets runs the tests and assembles the output files.
890 @NATIVE_TRUE@check: check-head check-go-tool check-runtime check-cgo-test check-carchive-test check-vet
891 @NATIVE_TRUE@ @mv gotools.head gotools.sum
892 @NATIVE_TRUE@ @cp gotools.sum gotools.log
893 @NATIVE_TRUE@ @for file in cmd_go-testlog runtime-testlog cgo-testlog carchive-testlog cmd_vet-testlog; do \
894 @NATIVE_TRUE@ testname=`echo $${file} | sed -e 's/-testlog//' -e 's|_|/|'`; \
895 @NATIVE_TRUE@ echo "Running $${testname}" >> gotools.sum; \
896 @NATIVE_TRUE@ echo "Running $${testname}" >> gotools.log; \
897 @NATIVE_TRUE@ sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' < $${file} >> gotools.log; \
898 @NATIVE_TRUE@ grep '^--- ' $${file} | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' -e 's/SKIP/UNTESTED/' | sort -k 2 >> gotools.sum; \
899 @NATIVE_TRUE@ done
900 @NATIVE_TRUE@ @echo >> gotools.sum
901 @NATIVE_TRUE@ @echo " === gotools Summary ===" >> gotools.sum
902 @NATIVE_TRUE@ @pass=`grep -c '^PASS' gotools.sum`; \
903 @NATIVE_TRUE@ if test "$${pass}" -ne "0"; then \
904 @NATIVE_TRUE@ echo "# of expected passes $${pass}" >> gotools.sum; \
905 @NATIVE_TRUE@ fi
906 @NATIVE_TRUE@ @fail=`grep -c '^FAIL' gotools.sum`; \
907 @NATIVE_TRUE@ if test "$${fail}" -ne "0"; then \
908 @NATIVE_TRUE@ echo "# of unexpected failures $${fail}" >> gotools.sum; \
909 @NATIVE_TRUE@ fi
910 @NATIVE_TRUE@ @untested=`grep -c '^UNTESTED' gotools.sum`; \
911 @NATIVE_TRUE@ if test "$${untested}" -ne "0"; then \
912 @NATIVE_TRUE@ echo "# of untested testcases $${untested}" >> gotools.sum; \
913 @NATIVE_TRUE@ fi
914 @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
915 @NATIVE_TRUE@ @echo >> gotools.log
916 @NATIVE_TRUE@ @echo "runtest completed at `date`" >> gotools.log
917 @NATIVE_TRUE@ @if grep '^FAIL' gotools.sum >/dev/null 2>&1; then exit 1; fi
919 @NATIVE_TRUE@.PHONY: check check-head check-go-tool check-runtime check-cgo-test check-carchive-test check-vet
921 # For a non-native build we have to build the programs using a
922 # previously built host (or build -> host) Go compiler. We should
923 # only do this if such a compiler is available. We also need to get
924 # the right values for GOARCH and GOOS in the default build context in
925 # the go/build package. Figure this out later.
927 # Tell versions [3.59,3.63) of GNU make to not export all variables.
928 # Otherwise a system limit (for SysV at least) may be exceeded.
929 .NOEXPORT: