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