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