* tree-ssa-dse.c (live_bytes_read): Fix thinko.
[official-gcc.git] / gotools / Makefile.in
blobad0fc2e1705b8781ff9d59eb39871eb01a84ee57
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 cgo_SOURCES = cgo.c
92 cgo_OBJECTS = cgo.$(OBJEXT)
93 cgo_LDADD = $(LDADD)
94 go_SOURCES = go.c
95 go_OBJECTS = go.$(OBJEXT)
96 go_LDADD = $(LDADD)
97 gofmt_SOURCES = gofmt.c
98 gofmt_OBJECTS = gofmt.$(OBJEXT)
99 gofmt_LDADD = $(LDADD)
100 DEFAULT_INCLUDES = -I.@am__isrc@
101 depcomp = $(SHELL) $(top_srcdir)/../depcomp
102 am__depfiles_maybe = depfiles
103 am__mv = mv -f
104 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106 CCLD = $(CC)
107 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
108 SOURCES = cgo.c go.c gofmt.c
109 am__can_run_installinfo = \
110 case $$AM_UPDATE_INFO_DIR in \
111 n|no|NO) false;; \
112 *) (install-info --version) >/dev/null 2>&1;; \
113 esac
114 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
115 am__vpath_adj = case $$p in \
116 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
117 *) f=$$p;; \
118 esac;
119 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
120 am__install_max = 40
121 am__nobase_strip_setup = \
122 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
123 am__nobase_strip = \
124 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
125 am__nobase_list = $(am__nobase_strip_setup); \
126 for p in $$list; do echo "$$p $$p"; done | \
127 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
128 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
129 if (++n[$$2] == $(am__install_max)) \
130 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
131 END { for (dir in files) print dir, files[dir] }'
132 am__base_list = \
133 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
134 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
135 am__uninstall_files_from_dir = { \
136 test -z "$$files" \
137 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
138 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
139 $(am__cd) "$$dir" && rm -f $$files; }; \
141 man1dir = $(mandir)/man1
142 NROFF = nroff
143 MANS = $(man_MANS)
144 ETAGS = etags
145 CTAGS = ctags
146 ACLOCAL = @ACLOCAL@
147 AMTAR = @AMTAR@
148 AUTOCONF = @AUTOCONF@
149 AUTOHEADER = @AUTOHEADER@
150 AUTOMAKE = @AUTOMAKE@
151 AWK = @AWK@
152 CC = @CC@
153 CCDEPMODE = @CCDEPMODE@
154 CFLAGS = @CFLAGS@
155 CPPFLAGS = @CPPFLAGS@
156 CYGPATH_W = @CYGPATH_W@
157 DEFS = @DEFS@
158 DEPDIR = @DEPDIR@
159 ECHO_C = @ECHO_C@
160 ECHO_N = @ECHO_N@
161 ECHO_T = @ECHO_T@
162 EXEEXT = @EXEEXT@
163 GCC_FOR_TARGET = @GCC_FOR_TARGET@
164 GOC = @GOC@
165 GOCFLAGS = $(CFLAGS_FOR_TARGET)
166 GOC_FOR_TARGET = @GOC_FOR_TARGET@
167 INSTALL = @INSTALL@
168 INSTALL_DATA = @INSTALL_DATA@
169 INSTALL_PROGRAM = @INSTALL_PROGRAM@
170 INSTALL_SCRIPT = @INSTALL_SCRIPT@
171 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
172 LDFLAGS = @LDFLAGS@
173 LIBOBJS = @LIBOBJS@
174 LIBS = @LIBS@
175 LTLIBOBJS = @LTLIBOBJS@
176 MAINT = @MAINT@
177 MAKEINFO = @MAKEINFO@
178 MKDIR_P = @MKDIR_P@
179 NET_LIBS = @NET_LIBS@
180 OBJEXT = @OBJEXT@
181 PACKAGE = @PACKAGE@
182 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
183 PACKAGE_NAME = @PACKAGE_NAME@
184 PACKAGE_STRING = @PACKAGE_STRING@
185 PACKAGE_TARNAME = @PACKAGE_TARNAME@
186 PACKAGE_URL = @PACKAGE_URL@
187 PACKAGE_VERSION = @PACKAGE_VERSION@
188 PATH_SEPARATOR = @PATH_SEPARATOR@
189 SET_MAKE = @SET_MAKE@
190 SHELL = @SHELL@
191 STRIP = @STRIP@
192 VERSION = @VERSION@
193 abs_builddir = @abs_builddir@
194 abs_srcdir = @abs_srcdir@
195 abs_top_builddir = @abs_top_builddir@
196 abs_top_srcdir = @abs_top_srcdir@
197 ac_ct_CC = @ac_ct_CC@
198 am__include = @am__include@
199 am__leading_dot = @am__leading_dot@
200 am__quote = @am__quote@
201 am__tar = @am__tar@
202 am__untar = @am__untar@
203 bindir = @bindir@
204 build = @build@
205 build_alias = @build_alias@
206 build_cpu = @build_cpu@
207 build_noncanonical = @build_noncanonical@
208 build_os = @build_os@
209 build_vendor = @build_vendor@
210 builddir = @builddir@
211 datadir = @datadir@
212 datarootdir = @datarootdir@
213 docdir = @docdir@
214 dvidir = @dvidir@
215 exec_prefix = @exec_prefix@
216 host = @host@
217 host_alias = @host_alias@
218 host_cpu = @host_cpu@
219 host_noncanonical = @host_noncanonical@
220 host_os = @host_os@
221 host_vendor = @host_vendor@
222 htmldir = @htmldir@
223 includedir = @includedir@
224 infodir = @infodir@
225 install_sh = @install_sh@
226 libdir = @libdir@
227 libexecdir = @libexecdir@
228 localedir = @localedir@
229 localstatedir = @localstatedir@
230 mandir = @mandir@
231 mkdir_p = @mkdir_p@
232 oldincludedir = @oldincludedir@
233 pdfdir = @pdfdir@
234 prefix = @prefix@
235 program_transform_name = @program_transform_name@
236 psdir = @psdir@
237 sbindir = @sbindir@
238 sharedstatedir = @sharedstatedir@
239 srcdir = @srcdir@
240 sysconfdir = @sysconfdir@
241 target = @target@
242 target_alias = @target_alias@
243 target_cpu = @target_cpu@
244 target_noncanonical = @target_noncanonical@
245 target_os = @target_os@
246 target_vendor = @target_vendor@
247 top_build_prefix = @top_build_prefix@
248 top_builddir = @top_builddir@
249 top_srcdir = @top_srcdir@
250 ACLOCAL_AMFLAGS = -I ./config -I ../config
251 gcc_version := $(shell $(GCC_FOR_TARGET) -dumpversion)
252 libexecsubdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
253 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
254 PWD_COMMAND = $${PWDCMD-pwd}
255 STAMP = echo timestamp >
256 libgodir = ../$(target_noncanonical)/libgo
257 LIBGODEP = $(libgodir)/libgo.la
258 LIBGOTOOL = $(libgodir)/libgotool.a
259 @NATIVE_FALSE@GOCOMPILER = $(GOC)
261 # Use the compiler we just built.
262 @NATIVE_TRUE@GOCOMPILER = $(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET)
263 GOCOMPILE = $(GOCOMPILER) $(GOCFLAGS)
264 AM_GOCFLAGS = -I $(libgodir)
265 AM_LDFLAGS = -L $(libgodir) -L $(libgodir)/.libs
266 GOLINK = $(GOCOMPILER) $(GOCFLAGS) $(AM_GOCFLAGS) $(LDFLAGS) $(AM_LDFLAGS) -o $@
267 libgosrcdir = $(srcdir)/../libgo/go
268 cmdsrcdir = $(libgosrcdir)/cmd
269 libgomiscdir = $(srcdir)/../libgo/misc
270 go_cmd_go_files = \
271 $(cmdsrcdir)/go/alldocs.go \
272 $(cmdsrcdir)/go/go11.go \
273 $(cmdsrcdir)/go/main.go
275 go_cmd_gofmt_files = \
276 $(cmdsrcdir)/gofmt/doc.go \
277 $(cmdsrcdir)/gofmt/gofmt.go \
278 $(cmdsrcdir)/gofmt/internal.go \
279 $(cmdsrcdir)/gofmt/rewrite.go \
280 $(cmdsrcdir)/gofmt/simplify.go
282 go_cmd_cgo_files = \
283 $(cmdsrcdir)/cgo/ast.go \
284 $(cmdsrcdir)/cgo/doc.go \
285 $(cmdsrcdir)/cgo/gcc.go \
286 $(cmdsrcdir)/cgo/godefs.go \
287 $(cmdsrcdir)/cgo/main.go \
288 $(cmdsrcdir)/cgo/out.go \
289 $(cmdsrcdir)/cgo/util.go
291 GCCGO_INSTALL_NAME := $(shell echo gccgo|sed '$(program_transform_name)')
292 GCC_INSTALL_NAME := $(shell echo gcc|sed '$(program_transform_name)')
293 GXX_INSTALL_NAME := $(shell echo g++|sed '$(program_transform_name)')
294 MOSTLYCLEANFILES = \
295 zdefaultcc.go s-zdefaultcc \
296 check-gccgo check-gcc gotools.head *-testlog gotools.sum gotools.log \
297 *.sent
300 # For a native build we build the programs using the newly built libgo
301 # and install them as regular programs.
302 @NATIVE_TRUE@bin_PROGRAMS = go$(EXEEXT) gofmt$(EXEEXT)
303 @NATIVE_TRUE@noinst_PROGRAMS = cgo$(EXEEXT)
304 @NATIVE_TRUE@man_MANS = go.1 gofmt.1
305 @NATIVE_TRUE@GOTESTFLAGS =
307 # CHECK_ENV sets up the environment to run the newly built go tool.
308 # If you change this, change ECHO_ENV, below.
309 # The fl shell variable is used to avoid having FAIL appear
310 # in the log unnecessarily.
311 @NATIVE_TRUE@CHECK_ENV = \
312 @NATIVE_TRUE@ PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
313 @NATIVE_TRUE@ export PATH; \
314 @NATIVE_TRUE@ GCCGO="$(abs_builddir)/check-gccgo"; \
315 @NATIVE_TRUE@ export GCCGO; \
316 @NATIVE_TRUE@ CC="$(abs_builddir)/check-gcc"; \
317 @NATIVE_TRUE@ export CC; \
318 @NATIVE_TRUE@ GCCGOTOOLDIR="$(abs_builddir)"; \
319 @NATIVE_TRUE@ export GCCGOTOOLDIR; \
320 @NATIVE_TRUE@ GO_TESTING_GOTOOLS=yes; \
321 @NATIVE_TRUE@ export GO_TESTING_GOTOOLS; \
322 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
323 @NATIVE_TRUE@ LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
324 @NATIVE_TRUE@ export LD_LIBRARY_PATH; \
325 @NATIVE_TRUE@ GOROOT=$${abs_libgodir}; \
326 @NATIVE_TRUE@ export GOROOT; \
327 @NATIVE_TRUE@ fl1="FA"; fl2="IL"; fl="$${fl1}$${fl2}";
330 # ECHO_ENV is a variant of CHECK_ENV to put into a testlog file.
331 # It assumes that abs_libgodir is set.
332 @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}`
333 all: all-am
335 .SUFFIXES:
336 .SUFFIXES: .c .o .obj
337 am--refresh: Makefile
339 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
340 @for dep in $?; do \
341 case '$(am__configure_deps)' in \
342 *$$dep*) \
343 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
344 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
345 && exit 0; \
346 exit 1;; \
347 esac; \
348 done; \
349 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
350 $(am__cd) $(top_srcdir) && \
351 $(AUTOMAKE) --foreign Makefile
352 .PRECIOUS: Makefile
353 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
354 @case '$?' in \
355 *config.status*) \
356 echo ' $(SHELL) ./config.status'; \
357 $(SHELL) ./config.status;; \
358 *) \
359 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
360 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
361 esac;
363 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
364 $(SHELL) ./config.status --recheck
366 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
367 $(am__cd) $(srcdir) && $(AUTOCONF)
368 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
369 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
370 $(am__aclocal_m4_deps):
371 install-binPROGRAMS: $(bin_PROGRAMS)
372 @$(NORMAL_INSTALL)
373 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
374 if test -n "$$list"; then \
375 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
376 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
377 fi; \
378 for p in $$list; do echo "$$p $$p"; done | \
379 sed 's/$(EXEEXT)$$//' | \
380 while read p p1; do if test -f $$p; \
381 then echo "$$p"; echo "$$p"; else :; fi; \
382 done | \
383 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
384 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
385 sed 'N;N;N;s,\n, ,g' | \
386 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
387 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
388 if ($$2 == $$4) files[d] = files[d] " " $$1; \
389 else { print "f", $$3 "/" $$4, $$1; } } \
390 END { for (d in files) print "f", d, files[d] }' | \
391 while read type dir files; do \
392 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
393 test -z "$$files" || { \
394 echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
395 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
397 ; done
399 uninstall-binPROGRAMS:
400 @$(NORMAL_UNINSTALL)
401 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
402 files=`for p in $$list; do echo "$$p"; done | \
403 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
404 -e 's/$$/$(EXEEXT)/' `; \
405 test -n "$$list" || exit 0; \
406 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
407 cd "$(DESTDIR)$(bindir)" && rm -f $$files
409 clean-binPROGRAMS:
410 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
412 clean-noinstPROGRAMS:
413 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
414 @NATIVE_FALSE@cgo$(EXEEXT): $(cgo_OBJECTS) $(cgo_DEPENDENCIES) $(EXTRA_cgo_DEPENDENCIES)
415 @NATIVE_FALSE@ @rm -f cgo$(EXEEXT)
416 @NATIVE_FALSE@ $(LINK) $(cgo_OBJECTS) $(cgo_LDADD) $(LIBS)
417 @NATIVE_FALSE@go$(EXEEXT): $(go_OBJECTS) $(go_DEPENDENCIES) $(EXTRA_go_DEPENDENCIES)
418 @NATIVE_FALSE@ @rm -f go$(EXEEXT)
419 @NATIVE_FALSE@ $(LINK) $(go_OBJECTS) $(go_LDADD) $(LIBS)
420 @NATIVE_FALSE@gofmt$(EXEEXT): $(gofmt_OBJECTS) $(gofmt_DEPENDENCIES) $(EXTRA_gofmt_DEPENDENCIES)
421 @NATIVE_FALSE@ @rm -f gofmt$(EXEEXT)
422 @NATIVE_FALSE@ $(LINK) $(gofmt_OBJECTS) $(gofmt_LDADD) $(LIBS)
424 mostlyclean-compile:
425 -rm -f *.$(OBJEXT)
427 distclean-compile:
428 -rm -f *.tab.c
430 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cgo.Po@am__quote@
431 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/go.Po@am__quote@
432 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gofmt.Po@am__quote@
434 .c.o:
435 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
436 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
437 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
438 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
439 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
441 .c.obj:
442 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
443 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
444 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
445 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
446 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
447 install-man1: $(man_MANS)
448 @$(NORMAL_INSTALL)
449 @list1=''; \
450 list2='$(man_MANS)'; \
451 test -n "$(man1dir)" \
452 && test -n "`echo $$list1$$list2`" \
453 || exit 0; \
454 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
455 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
456 { for i in $$list1; do echo "$$i"; done; \
457 if test -n "$$list2"; then \
458 for i in $$list2; do echo "$$i"; done \
459 | sed -n '/\.1[a-z]*$$/p'; \
460 fi; \
461 } | while read p; do \
462 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
463 echo "$$d$$p"; echo "$$p"; \
464 done | \
465 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
466 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
467 sed 'N;N;s,\n, ,g' | { \
468 list=; while read file base inst; do \
469 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
470 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
471 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
472 fi; \
473 done; \
474 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
475 while read files; do \
476 test -z "$$files" || { \
477 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
478 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
479 done; }
481 uninstall-man1:
482 @$(NORMAL_UNINSTALL)
483 @list=''; test -n "$(man1dir)" || exit 0; \
484 files=`{ for i in $$list; do echo "$$i"; done; \
485 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
486 sed -n '/\.1[a-z]*$$/p'; \
487 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
488 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
489 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
491 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
492 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
493 unique=`for i in $$list; do \
494 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
495 done | \
496 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
497 END { if (nonempty) { for (i in files) print i; }; }'`; \
498 mkid -fID $$unique
499 tags: TAGS
501 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
502 $(TAGS_FILES) $(LISP)
503 set x; \
504 here=`pwd`; \
505 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
506 unique=`for i in $$list; do \
507 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
508 done | \
509 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
510 END { if (nonempty) { for (i in files) print i; }; }'`; \
511 shift; \
512 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
513 test -n "$$unique" || unique=$$empty_fix; \
514 if test $$# -gt 0; then \
515 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
516 "$$@" $$unique; \
517 else \
518 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
519 $$unique; \
520 fi; \
522 ctags: CTAGS
523 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
524 $(TAGS_FILES) $(LISP)
525 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
526 unique=`for i in $$list; do \
527 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
528 done | \
529 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
530 END { if (nonempty) { for (i in files) print i; }; }'`; \
531 test -z "$(CTAGS_ARGS)$$unique" \
532 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
533 $$unique
535 GTAGS:
536 here=`$(am__cd) $(top_builddir) && pwd` \
537 && $(am__cd) $(top_srcdir) \
538 && gtags -i $(GTAGS_ARGS) "$$here"
540 distclean-tags:
541 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
542 check-am: all-am
543 check: check-am
544 all-am: Makefile $(PROGRAMS) $(MANS)
545 installdirs:
546 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
547 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
548 done
549 install: install-am
550 install-exec: install-exec-am
551 install-data: install-data-am
552 uninstall: uninstall-am
554 install-am: all-am
555 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
557 installcheck: installcheck-am
558 install-strip:
559 if test -z '$(STRIP)'; then \
560 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
561 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
562 install; \
563 else \
564 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
565 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
566 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
568 mostlyclean-generic:
569 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
571 clean-generic:
573 distclean-generic:
574 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
575 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
577 maintainer-clean-generic:
578 @echo "This command is intended for maintainers to use"
579 @echo "it deletes files that may require special tools to rebuild."
580 @NATIVE_FALSE@uninstall-local:
581 @NATIVE_FALSE@install-exec-local:
582 clean: clean-am
584 clean-am: clean-binPROGRAMS clean-generic clean-noinstPROGRAMS \
585 mostlyclean-am
587 distclean: distclean-am
588 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
589 -rm -rf ./$(DEPDIR)
590 -rm -f Makefile
591 distclean-am: clean-am distclean-compile distclean-generic \
592 distclean-tags
594 dvi: dvi-am
596 dvi-am:
598 html: html-am
600 html-am:
602 info: info-am
604 info-am:
606 install-data-am: install-man
608 install-dvi: install-dvi-am
610 install-dvi-am:
612 install-exec-am: install-binPROGRAMS install-exec-local
614 install-html: install-html-am
616 install-html-am:
618 install-info: install-info-am
620 install-info-am:
622 install-man: install-man1
624 install-pdf: install-pdf-am
626 install-pdf-am:
628 install-ps: install-ps-am
630 install-ps-am:
632 installcheck-am:
634 maintainer-clean: maintainer-clean-am
635 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
636 -rm -rf $(top_srcdir)/autom4te.cache
637 -rm -rf ./$(DEPDIR)
638 -rm -f Makefile
639 maintainer-clean-am: distclean-am maintainer-clean-generic
641 mostlyclean: mostlyclean-am
643 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
644 mostlyclean-local
646 pdf: pdf-am
648 pdf-am:
650 ps: ps-am
652 ps-am:
654 uninstall-am: uninstall-binPROGRAMS uninstall-local uninstall-man
656 uninstall-man: uninstall-man1
658 .MAKE: install-am install-strip
660 .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
661 clean-binPROGRAMS clean-generic clean-noinstPROGRAMS ctags \
662 distclean distclean-compile distclean-generic distclean-tags \
663 dvi dvi-am html html-am info info-am install install-am \
664 install-binPROGRAMS install-data install-data-am install-dvi \
665 install-dvi-am install-exec install-exec-am install-exec-local \
666 install-html install-html-am install-info install-info-am \
667 install-man install-man1 install-pdf install-pdf-am install-ps \
668 install-ps-am install-strip installcheck installcheck-am \
669 installdirs maintainer-clean maintainer-clean-generic \
670 mostlyclean mostlyclean-compile mostlyclean-generic \
671 mostlyclean-local pdf pdf-am ps ps-am tags uninstall \
672 uninstall-am uninstall-binPROGRAMS uninstall-local \
673 uninstall-man uninstall-man1
676 zdefaultcc.go: s-zdefaultcc; @true
677 s-zdefaultcc: Makefile
678 echo 'package main' > zdefaultcc.go.tmp
679 echo 'const defaultGCCGO = "$(bindir)/$(GCCGO_INSTALL_NAME)"' >> zdefaultcc.go.tmp
680 echo 'const defaultCC = "$(GCC_INSTALL_NAME)"' >> zdefaultcc.go.tmp
681 echo 'const defaultCXX = "$(GXX_INSTALL_NAME)"' >> zdefaultcc.go.tmp
682 echo 'const defaultPkgConfig = "pkg-config"' >> zdefaultcc.go.tmp
683 $(SHELL) $(srcdir)/../move-if-change zdefaultcc.go.tmp zdefaultcc.go
684 $(STAMP) $@
686 mostlyclean-local:
687 rm -rf check-go-dir check-runtime-dir cgo-test-dir carchive-test-dir
689 @NATIVE_TRUE@go$(EXEEXT): $(go_cmd_go_files) $(LIBGOTOOL) $(LIBGODEP)
690 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_go_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
691 @NATIVE_TRUE@gofmt$(EXEEXT): $(go_cmd_gofmt_files) $(LIBGODEP)
692 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_gofmt_files) $(LIBS) $(NET_LIBS)
693 @NATIVE_TRUE@cgo$(EXEEXT): $(go_cmd_cgo_files) zdefaultcc.go $(LIBGODEP)
694 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_cgo_files) zdefaultcc.go $(LIBS) $(NET_LIBS)
696 @NATIVE_TRUE@install-exec-local: cgo$(EXEEXT)
697 @NATIVE_TRUE@ $(MKDIR_P) $(DESTDIR)$(libexecsubdir)
698 @NATIVE_TRUE@ rm -f $(DESTDIR)$(libexecsubdir)/cgo$(exeext)
699 @NATIVE_TRUE@ $(INSTALL_PROGRAM) cgo$(exeext) $(DESTDIR)$(libexecsubdir)/cgo$(exeext)
701 @NATIVE_TRUE@uninstall-local:
702 @NATIVE_TRUE@ rm -f $(DESTDIR)$(libexecsubdir)/cgo$(exeext)
704 # Run tests using the go tool, and frob the output to look like that
705 # generated by DejaGNU. The main output of this is two files:
706 # gotools.sum and gotools.log.
708 # check-head starts generating the log files in DejaGNU format. This
709 # is a separate target so that the date is approximately when we start
710 # running the tests.
711 @NATIVE_TRUE@check-head:
712 @NATIVE_TRUE@ @echo "Test Run By $${USER} on `date`" > gotools.head
713 @NATIVE_TRUE@ @echo "Native configuration is $(host_triplet)" >> gotools.head
714 @NATIVE_TRUE@ @echo >> gotools.head
715 @NATIVE_TRUE@ @echo " === gotools tests ===" >> gotools.head
716 @NATIVE_TRUE@ @echo >> gotools.head
718 # check-gccgo is a little shell script that executes gccgo with the
719 # options to pick up the newly built libgo.
720 @NATIVE_TRUE@check-gccgo: Makefile
721 @NATIVE_TRUE@ rm -f $@ $@.tmp
722 @NATIVE_TRUE@ echo "#!/bin/sh" > $@.tmp
723 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
724 @NATIVE_TRUE@ echo "$(GOCOMPILE)" '"$$@"' "-I $${abs_libgodir} -L $${abs_libgodir} -L $${abs_libgodir}/.libs" >> $@.tmp
725 @NATIVE_TRUE@ chmod +x $@.tmp
726 @NATIVE_TRUE@ mv -f $@.tmp $@
728 # check-gcc is a little shell script that executes the newly built gcc
729 # with the options to pick up the newly built libgo.
730 @NATIVE_TRUE@check-gcc: Makefile
731 @NATIVE_TRUE@ rm -f $@ $@.tmp
732 @NATIVE_TRUE@ echo "#!/bin/sh" > $@.tmp
733 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
734 @NATIVE_TRUE@ echo "$(GCC_FOR_TARGET)" '"$$@"' "-L $${abs_libgodir} -L $${abs_libgodir}/.libs" >> $@.tmp
735 @NATIVE_TRUE@ chmod +x $@.tmp
736 @NATIVE_TRUE@ mv -f $@.tmp $@
738 # check-go-tools runs `go test cmd/go` in our environment.
739 @NATIVE_TRUE@check-go-tool: go$(EXEEXT) cgo$(EXEEXT) check-head check-gccgo check-gcc
740 @NATIVE_TRUE@ rm -rf check-go-dir cmd_go-testlog
741 @NATIVE_TRUE@ $(MKDIR_P) check-go-dir/src/cmd/go
742 @NATIVE_TRUE@ cp $(cmdsrcdir)/go/*.go check-go-dir/src/cmd/go/
743 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/go/internal check-go-dir/src/cmd/go/
744 @NATIVE_TRUE@ cp $(libgodir)/zstdpkglist.go check-go-dir/src/cmd/go/internal/load/
745 @NATIVE_TRUE@ cp $(libgodir)/zdefaultcc.go check-go-dir/src/cmd/go/internal/cfg/
746 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/go/testdata check-go-dir/src/cmd/go/
747 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/internal check-go-dir/src/cmd/
748 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
749 @NATIVE_TRUE@ abs_checkdir=`cd check-go-dir && $(PWD_COMMAND)`; \
750 @NATIVE_TRUE@ echo "cd check-go-dir/src/cmd/go && $(ECHO_ENV) GOPATH=$${abs_checkdir} $(abs_builddir)/go$(EXEEXT) test -test.short -test.v" > cmd_go-testlog
751 @NATIVE_TRUE@ $(CHECK_ENV) \
752 @NATIVE_TRUE@ GOPATH=`cd check-go-dir && $(PWD_COMMAND)`; \
753 @NATIVE_TRUE@ export GOPATH; \
754 @NATIVE_TRUE@ (cd check-go-dir/src/cmd/go && $(abs_builddir)/go$(EXEEXT) test -test.short -test.v) >> cmd_go-testlog 2>&1 || echo "--- $${fl} go test cmd/go (0.00s)" >> cmd_go-testlog
755 @NATIVE_TRUE@ grep '^--- ' cmd_go-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
757 # check-runtime runs `go test runtime` in our environment.
758 # The runtime package is also tested as part of libgo,
759 # but the runtime tests use the go tool heavily, so testing
760 # here too will catch more problems.
761 @NATIVE_TRUE@check-runtime: go$(EXEEXT) cgo$(EXEEXT) check-head check-gccgo check-gcc
762 @NATIVE_TRUE@ rm -rf check-runtime-dir runtime-testlog
763 @NATIVE_TRUE@ $(MKDIR_P) check-runtime-dir
764 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
765 @NATIVE_TRUE@ LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
766 @NATIVE_TRUE@ GOARCH=`$(abs_builddir)/go$(EXEEXT) env GOARCH`; \
767 @NATIVE_TRUE@ GOOS=`$(abs_builddir)/go$(EXEEXT) env GOOS`; \
768 @NATIVE_TRUE@ files=`$(SHELL) $(libgosrcdir)/../match.sh --goarch=$${GOARCH} --goos=$${GOOS} --srcdir=$(libgosrcdir)/runtime --extrafiles="$(libgodir)/runtime_sysinfo.go $(libgodir)/sigtab.go" --tag=libffi`; \
769 @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
770 @NATIVE_TRUE@ $(CHECK_ENV) \
771 @NATIVE_TRUE@ GC="$${GCCGO} -fgo-compiling-runtime"; \
772 @NATIVE_TRUE@ export GC; \
773 @NATIVE_TRUE@ GOARCH=`$(abs_builddir)/go$(EXEEXT) env GOARCH`; \
774 @NATIVE_TRUE@ GOOS=`$(abs_builddir)/go$(EXEEXT) env GOOS`; \
775 @NATIVE_TRUE@ files=`$(SHELL) $(libgosrcdir)/../match.sh --goarch=$${GOARCH} --goos=$${GOOS} --srcdir=$(libgosrcdir)/runtime --extrafiles="$(libgodir)/runtime_sysinfo.go $(libgodir)/sigtab.go" --tag=libffi`; \
776 @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
777 @NATIVE_TRUE@ grep '^--- ' runtime-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
779 # check-cgo-test runs `go test misc/cgo/test` in our environment.
780 @NATIVE_TRUE@check-cgo-test: go$(EXEEXT) cgo$(EXEEXT) check-head check-gccgo check-gcc
781 @NATIVE_TRUE@ rm -rf cgo-test-dir cgo-testlog
782 @NATIVE_TRUE@ $(MKDIR_P) cgo-test-dir/misc/cgo
783 @NATIVE_TRUE@ cp -r $(libgomiscdir)/cgo/test cgo-test-dir/misc/cgo/
784 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
785 @NATIVE_TRUE@ echo "cd cgo-test-dir/misc/cgo/test && $(ECHO_ENV) GOTRACEBACK=2 $(abs_builddir)/go$(EXEEXT) test -test.short -test.v" > cgo-testlog
786 @NATIVE_TRUE@ $(CHECK_ENV) \
787 @NATIVE_TRUE@ GOTRACEBACK=2; \
788 @NATIVE_TRUE@ export GOTRACEBACK; \
789 @NATIVE_TRUE@ (cd cgo-test-dir/misc/cgo/test && $(abs_builddir)/go$(EXEEXT) test -test.short -test.v) >> cgo-testlog 2>&1 || echo "--- $${fl} go test misc/cgo/test (0.00s)" >> cgo-testlog
790 @NATIVE_TRUE@ grep '^--- ' cgo-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
792 # check-carchive-test runs `go test misc/cgo/testcarchive/carchive_test.go`
793 # in our environment.
794 @NATIVE_TRUE@check-carchive-test: go$(EXEEXT) cgo$(EXEEXT) check-head check-gccgo check-gcc
795 @NATIVE_TRUE@ rm -rf carchive-test-dir carchive-testlog
796 @NATIVE_TRUE@ $(MKDIR_P) carchive-test-dir/misc/cgo
797 @NATIVE_TRUE@ cp -r $(libgomiscdir)/cgo/testcarchive carchive-test-dir/misc/cgo/
798 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
799 @NATIVE_TRUE@ echo "cd carchive-test-dir/misc/cgo/testcarchive && $(ECHO_ENV) LIBRARY_PATH=`echo $${abs_libgodir}/.libs` $(abs_builddir)/go$(EXEEXT) test -test.v carchive_test.go" > carchive-testlog
800 @NATIVE_TRUE@ $(CHECK_ENV) \
801 @NATIVE_TRUE@ LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
802 @NATIVE_TRUE@ export LIBRARY_PATH; \
803 @NATIVE_TRUE@ (cd carchive-test-dir/misc/cgo/testcarchive && $(abs_builddir)/go$(EXEEXT) test -test.v carchive_test.go) >> carchive-testlog 2>&1 || echo "--- $${fl} go test misc/cgo/testcarchive (0.00s)" >> carchive-testlog
804 @NATIVE_TRUE@ grep '^--- ' carchive-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
806 # The check targets runs the tests and assembles the output files.
807 @NATIVE_TRUE@check: check-head check-go-tool check-runtime check-cgo-test check-carchive-test
808 @NATIVE_TRUE@ @mv gotools.head gotools.sum
809 @NATIVE_TRUE@ @cp gotools.sum gotools.log
810 @NATIVE_TRUE@ @for file in cmd_go-testlog runtime-testlog cgo-testlog carchive-testlog; do \
811 @NATIVE_TRUE@ testname=`echo $${file} | sed -e 's/-testlog//' -e 's|_|/|'`; \
812 @NATIVE_TRUE@ echo "Running $${testname}" >> gotools.sum; \
813 @NATIVE_TRUE@ echo "Running $${testname}" >> gotools.log; \
814 @NATIVE_TRUE@ sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' < $${file} >> gotools.log; \
815 @NATIVE_TRUE@ grep '^--- ' $${file} | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' -e 's/SKIP/UNTESTED/' | sort -k 2 >> gotools.sum; \
816 @NATIVE_TRUE@ done
817 @NATIVE_TRUE@ @echo >> gotools.sum
818 @NATIVE_TRUE@ @echo " === gotools Summary ===" >> gotools.sum
819 @NATIVE_TRUE@ @pass=`grep -c '^PASS' gotools.sum`; \
820 @NATIVE_TRUE@ if test "$${pass}" -ne "0"; then \
821 @NATIVE_TRUE@ echo "# of expected passes $${pass}" >> gotools.sum; \
822 @NATIVE_TRUE@ fi
823 @NATIVE_TRUE@ @fail=`grep -c '^FAIL' gotools.sum`; \
824 @NATIVE_TRUE@ if test "$${fail}" -ne "0"; then \
825 @NATIVE_TRUE@ echo "# of unexpected failures $${fail}" >> gotools.sum; \
826 @NATIVE_TRUE@ fi
827 @NATIVE_TRUE@ @untested=`grep -c '^UNTESTED' gotools.sum`; \
828 @NATIVE_TRUE@ if test "$${untested}" -ne "0"; then \
829 @NATIVE_TRUE@ echo "# of untested testcases $${untested}" >> gotools.sum; \
830 @NATIVE_TRUE@ fi
831 @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
832 @NATIVE_TRUE@ @echo >> gotools.log
833 @NATIVE_TRUE@ @echo "runtest completed at `date`" >> gotools.log
834 @NATIVE_TRUE@ @if grep '^FAIL' gotools.sum >/dev/null 2>&1; then exit 1; fi
836 @NATIVE_TRUE@.PHONY: check check-head check-go-tool check-runtime check-cgo-test check-carchive-test
838 # For a non-native build we have to build the programs using a
839 # previously built host (or build -> host) Go compiler. We should
840 # only do this if such a compiler is available. We also need to get
841 # the right values for GOARCH and GOOS in the default build context in
842 # the go/build package. Figure this out later.
844 # Tell versions [3.59,3.63) of GNU make to not export all variables.
845 # Otherwise a system limit (for SysV at least) may be exceeded.
846 .NOEXPORT: