]> git.ipfire.org Git - thirdparty/gcc.git/blame - gotools/Makefile.in
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
[thirdparty/gcc.git] / gotools / Makefile.in
CommitLineData
22e05272 1# Makefile.in generated by automake 1.15.1 from Makefile.am.
bf1de3f0
ILT
2# @configure_input@
3
22e05272
JM
4# Copyright (C) 1994-2017 Free Software Foundation, Inc.
5
bf1de3f0
ILT
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.
9
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.
14
15@SET_MAKE@
16
17# Makefile for gotools
c2047754 18# Copyright (C) 2015-2016 Free Software Foundation, Inc.
bf1de3f0
ILT
19#
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.
24#
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.
29#
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/>.
33
34VPATH = @srcdir@
22e05272
JM
35am__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; \
45}
46am__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 \
3211f4c2
MH
58 case $$MAKEFLAGS in \
59 *\\[\ \ ]*) \
22e05272
JM
60 bs=\\; \
61 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
62 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3211f4c2 63 esac; \
22e05272
JM
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
88am__make_dryrun = (target_option=n; $(am__make_running_with_option))
89am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
bf1de3f0
ILT
90pkgdatadir = $(datadir)/@PACKAGE@
91pkgincludedir = $(includedir)/@PACKAGE@
92pkglibdir = $(libdir)/@PACKAGE@
93pkglibexecdir = $(libexecdir)/@PACKAGE@
94am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
95install_sh_DATA = $(install_sh) -c -m 644
96install_sh_PROGRAM = $(install_sh) -c
97install_sh_SCRIPT = $(install_sh) -c
98INSTALL_HEADER = $(INSTALL_DATA)
99transform = $(program_transform_name)
100NORMAL_INSTALL = :
101PRE_INSTALL = :
102POST_INSTALL = :
103NORMAL_UNINSTALL = :
104PRE_UNINSTALL = :
105POST_UNINSTALL = :
106build_triplet = @build@
107host_triplet = @host@
108target_triplet = @target@
109subdir = .
bf1de3f0
ILT
110ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
111am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
112 $(top_srcdir)/../config/depstand.m4 \
113 $(top_srcdir)/../config/lead-dot.m4 \
22e05272 114 $(top_srcdir)/../config/override.m4 $(top_srcdir)/configure.ac
bf1de3f0
ILT
115am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
116 $(ACLOCAL_M4)
22e05272
JM
117DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
118 $(am__configure_deps)
bf1de3f0
ILT
119am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
120 configure.lineno config.status.lineno
121CONFIG_CLEAN_FILES =
122CONFIG_CLEAN_VPATH_FILES =
c92e723d 123am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"
fa3340ec 124PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
1a2f01ef
ILT
125buildid_SOURCES = buildid.c
126buildid_OBJECTS = buildid.$(OBJEXT)
127buildid_LDADD = $(LDADD)
bf1de3f0
ILT
128cgo_SOURCES = cgo.c
129cgo_OBJECTS = cgo.$(OBJEXT)
130cgo_LDADD = $(LDADD)
131go_SOURCES = go.c
132go_OBJECTS = go.$(OBJEXT)
133go_LDADD = $(LDADD)
134gofmt_SOURCES = gofmt.c
135gofmt_OBJECTS = gofmt.$(OBJEXT)
136gofmt_LDADD = $(LDADD)
1a2f01ef
ILT
137test2json_SOURCES = test2json.c
138test2json_OBJECTS = test2json.$(OBJEXT)
139test2json_LDADD = $(LDADD)
140vet_SOURCES = vet.c
141vet_OBJECTS = vet.$(OBJEXT)
142vet_LDADD = $(LDADD)
22e05272
JM
143AM_V_P = $(am__v_P_@AM_V@)
144am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
145am__v_P_0 = false
146am__v_P_1 = :
147AM_V_GEN = $(am__v_GEN_@AM_V@)
148am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
149am__v_GEN_0 = @echo " GEN " $@;
150am__v_GEN_1 =
151AM_V_at = $(am__v_at_@AM_V@)
152am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
153am__v_at_0 = @
154am__v_at_1 =
bf1de3f0
ILT
155DEFAULT_INCLUDES = -I.@am__isrc@
156depcomp = $(SHELL) $(top_srcdir)/../depcomp
157am__depfiles_maybe = depfiles
158am__mv = mv -f
159COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
160 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
22e05272
JM
161AM_V_CC = $(am__v_CC_@AM_V@)
162am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
163am__v_CC_0 = @echo " CC " $@;
164am__v_CC_1 =
bf1de3f0
ILT
165CCLD = $(CC)
166LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
22e05272
JM
167AM_V_CCLD = $(am__v_CCLD_@AM_V@)
168am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
169am__v_CCLD_0 = @echo " CCLD " $@;
170am__v_CCLD_1 =
1a2f01ef 171SOURCES = buildid.c cgo.c go.c gofmt.c test2json.c vet.c
3211f4c2
MH
172am__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
c92e723d
ILT
177am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
178am__vpath_adj = case $$p in \
179 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
180 *) f=$$p;; \
181 esac;
182am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
183am__install_max = 40
184am__nobase_strip_setup = \
185 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
186am__nobase_strip = \
187 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
188am__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] }'
195am__base_list = \
196 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
197 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
3211f4c2
MH
198am__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; }; \
203 }
c92e723d
ILT
204man1dir = $(mandir)/man1
205NROFF = nroff
206MANS = $(man_MANS)
22e05272
JM
207am__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.
211am__uniquify_input = $(AWK) '\
212 BEGIN { nonempty = 0; } \
213 { items[$$0] = 1; nonempty = 1; } \
214 END { if (nonempty) { for (i in items) print i; }; } \
215'
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.
219am__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)`
bf1de3f0
ILT
224ETAGS = etags
225CTAGS = ctags
22e05272
JM
226CSCOPE = cscope
227AM_RECURSIVE_TARGETS = cscope
bf1de3f0
ILT
228ACLOCAL = @ACLOCAL@
229AMTAR = @AMTAR@
22e05272 230AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
bf1de3f0
ILT
231AUTOCONF = @AUTOCONF@
232AUTOHEADER = @AUTOHEADER@
233AUTOMAKE = @AUTOMAKE@
234AWK = @AWK@
235CC = @CC@
236CCDEPMODE = @CCDEPMODE@
237CFLAGS = @CFLAGS@
238CPPFLAGS = @CPPFLAGS@
239CYGPATH_W = @CYGPATH_W@
240DEFS = @DEFS@
241DEPDIR = @DEPDIR@
242ECHO_C = @ECHO_C@
243ECHO_N = @ECHO_N@
244ECHO_T = @ECHO_T@
245EXEEXT = @EXEEXT@
1913c1bf 246GCC_FOR_TARGET = @GCC_FOR_TARGET@
bf1de3f0 247GOC = @GOC@
1913c1bf 248GOC_FOR_TARGET = @GOC_FOR_TARGET@
22e05272 249GOFLAGS = @GOFLAGS@
bf1de3f0
ILT
250INSTALL = @INSTALL@
251INSTALL_DATA = @INSTALL_DATA@
252INSTALL_PROGRAM = @INSTALL_PROGRAM@
253INSTALL_SCRIPT = @INSTALL_SCRIPT@
254INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
255LDFLAGS = @LDFLAGS@
256LIBOBJS = @LIBOBJS@
257LIBS = @LIBS@
258LTLIBOBJS = @LTLIBOBJS@
259MAINT = @MAINT@
260MAKEINFO = @MAKEINFO@
261MKDIR_P = @MKDIR_P@
85d7b5d5 262NET_LIBS = @NET_LIBS@
bf1de3f0
ILT
263OBJEXT = @OBJEXT@
264PACKAGE = @PACKAGE@
265PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
266PACKAGE_NAME = @PACKAGE_NAME@
267PACKAGE_STRING = @PACKAGE_STRING@
268PACKAGE_TARNAME = @PACKAGE_TARNAME@
269PACKAGE_URL = @PACKAGE_URL@
270PACKAGE_VERSION = @PACKAGE_VERSION@
271PATH_SEPARATOR = @PATH_SEPARATOR@
272SET_MAKE = @SET_MAKE@
273SHELL = @SHELL@
274STRIP = @STRIP@
275VERSION = @VERSION@
276abs_builddir = @abs_builddir@
277abs_srcdir = @abs_srcdir@
278abs_top_builddir = @abs_top_builddir@
279abs_top_srcdir = @abs_top_srcdir@
280ac_ct_CC = @ac_ct_CC@
281am__include = @am__include@
282am__leading_dot = @am__leading_dot@
283am__quote = @am__quote@
284am__tar = @am__tar@
285am__untar = @am__untar@
286bindir = @bindir@
287build = @build@
288build_alias = @build_alias@
289build_cpu = @build_cpu@
290build_noncanonical = @build_noncanonical@
291build_os = @build_os@
292build_vendor = @build_vendor@
293builddir = @builddir@
294datadir = @datadir@
295datarootdir = @datarootdir@
296docdir = @docdir@
297dvidir = @dvidir@
298exec_prefix = @exec_prefix@
299host = @host@
300host_alias = @host_alias@
301host_cpu = @host_cpu@
302host_noncanonical = @host_noncanonical@
303host_os = @host_os@
304host_vendor = @host_vendor@
305htmldir = @htmldir@
306includedir = @includedir@
307infodir = @infodir@
308install_sh = @install_sh@
309libdir = @libdir@
310libexecdir = @libexecdir@
311localedir = @localedir@
312localstatedir = @localstatedir@
313mandir = @mandir@
314mkdir_p = @mkdir_p@
315oldincludedir = @oldincludedir@
316pdfdir = @pdfdir@
317prefix = @prefix@
318program_transform_name = @program_transform_name@
319psdir = @psdir@
320sbindir = @sbindir@
321sharedstatedir = @sharedstatedir@
322srcdir = @srcdir@
323sysconfdir = @sysconfdir@
324target = @target@
325target_alias = @target_alias@
326target_cpu = @target_cpu@
327target_noncanonical = @target_noncanonical@
328target_os = @target_os@
329target_vendor = @target_vendor@
330top_build_prefix = @top_build_prefix@
331top_builddir = @top_builddir@
332top_srcdir = @top_srcdir@
22e05272 333ACLOCAL_AMFLAGS = -I ../config
bf1de3f0
ILT
334gcc_version := $(shell $(GCC_FOR_TARGET) -dumpversion)
335libexecsubdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
336mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
337PWD_COMMAND = $${PWDCMD-pwd}
338STAMP = echo timestamp >
339libgodir = ../$(target_noncanonical)/libgo
340LIBGODEP = $(libgodir)/libgo.la
bc998d03 341LIBGOTOOL = $(libgodir)/libgotool.a
6b3762e4
ILT
342@NATIVE_FALSE@GOCOMPILER = $(GOC)
343
344# Use the compiler we just built.
105b682e 345@NATIVE_TRUE@GOCOMPILER = $(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET)
22e05272 346GOCFLAGS = $(CFLAGS_FOR_TARGET)
6b3762e4 347GOCOMPILE = $(GOCOMPILER) $(GOCFLAGS)
afbc9ecb 348AM_GOCFLAGS = -I $(libgodir)
0b855aa3 349AM_LDFLAGS = -L $(libgodir) -L $(libgodir)/.libs
fafa095c 350GOLINK = $(GOCOMPILER) $(GOCFLAGS) $(AM_GOCFLAGS) $(LDFLAGS) $(AM_LDFLAGS) -o $@
eec2130e
ILT
351libgosrcdir = $(srcdir)/../libgo/go
352cmdsrcdir = $(libgosrcdir)/cmd
fac877a1 353libgomiscdir = $(srcdir)/../libgo/misc
bf1de3f0 354go_cmd_go_files = \
da235df8 355 $(cmdsrcdir)/go/alldocs.go \
bf1de3f0 356 $(cmdsrcdir)/go/go11.go \
bc998d03 357 $(cmdsrcdir)/go/main.go
bf1de3f0
ILT
358
359go_cmd_gofmt_files = \
360 $(cmdsrcdir)/gofmt/doc.go \
361 $(cmdsrcdir)/gofmt/gofmt.go \
f98dd1a3 362 $(cmdsrcdir)/gofmt/internal.go \
bf1de3f0
ILT
363 $(cmdsrcdir)/gofmt/rewrite.go \
364 $(cmdsrcdir)/gofmt/simplify.go
365
366go_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
374
1a2f01ef
ILT
375go_cmd_vet_files = \
376 $(cmdsrcdir)/vet/asmdecl.go \
377 $(cmdsrcdir)/vet/assign.go \
378 $(cmdsrcdir)/vet/atomic.go \
379 $(cmdsrcdir)/vet/bool.go \
380 $(cmdsrcdir)/vet/buildtag.go \
381 $(cmdsrcdir)/vet/cgo.go \
382 $(cmdsrcdir)/vet/composite.go \
383 $(cmdsrcdir)/vet/copylock.go \
384 $(cmdsrcdir)/vet/deadcode.go \
385 $(cmdsrcdir)/vet/dead.go \
386 $(cmdsrcdir)/vet/doc.go \
387 $(cmdsrcdir)/vet/httpresponse.go \
388 $(cmdsrcdir)/vet/lostcancel.go \
389 $(cmdsrcdir)/vet/main.go \
390 $(cmdsrcdir)/vet/method.go \
391 $(cmdsrcdir)/vet/nilfunc.go \
392 $(cmdsrcdir)/vet/print.go \
393 $(cmdsrcdir)/vet/rangeloop.go \
394 $(cmdsrcdir)/vet/shadow.go \
395 $(cmdsrcdir)/vet/shift.go \
396 $(cmdsrcdir)/vet/structtag.go \
397 $(cmdsrcdir)/vet/tests.go \
398 $(cmdsrcdir)/vet/types.go \
399 $(cmdsrcdir)/vet/unsafeptr.go \
400 $(cmdsrcdir)/vet/unused.go
401
402go_cmd_buildid_files = \
403 $(cmdsrcdir)/buildid/buildid.go \
404 $(cmdsrcdir)/buildid/doc.go
405
406go_cmd_test2json_files = \
407 $(cmdsrcdir)/test2json/main.go
408
bf1de3f0
ILT
409GCCGO_INSTALL_NAME := $(shell echo gccgo|sed '$(program_transform_name)')
410GCC_INSTALL_NAME := $(shell echo gcc|sed '$(program_transform_name)')
411GXX_INSTALL_NAME := $(shell echo g++|sed '$(program_transform_name)')
fac877a1
ILT
412MOSTLYCLEANFILES = \
413 zdefaultcc.go s-zdefaultcc \
1913c1bf
ILT
414 check-gccgo check-gcc gotools.head *-testlog gotools.sum gotools.log \
415 *.sent
fac877a1 416
bf1de3f0
ILT
417
418# For a native build we build the programs using the newly built libgo
419# and install them as regular programs.
420@NATIVE_TRUE@bin_PROGRAMS = go$(EXEEXT) gofmt$(EXEEXT)
1a2f01ef 421@NATIVE_TRUE@noinst_PROGRAMS = cgo$(EXEEXT) vet$(EXEEXT) buildid$(EXEEXT) test2json$(EXEEXT)
c92e723d 422@NATIVE_TRUE@man_MANS = go.1 gofmt.1
6da7ce80 423@NATIVE_TRUE@GOTESTFLAGS =
eec2130e 424
5d158777 425# Number of seconds before tests time out.
a51ca83b 426@NATIVE_TRUE@GOTOOLS_TEST_TIMEOUT = 480
5d158777 427
eec2130e 428# CHECK_ENV sets up the environment to run the newly built go tool.
fac877a1 429# If you change this, change ECHO_ENV, below.
bc998d03
ILT
430# The fl shell variable is used to avoid having FAIL appear
431# in the log unnecessarily.
eec2130e
ILT
432@NATIVE_TRUE@CHECK_ENV = \
433@NATIVE_TRUE@ PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
434@NATIVE_TRUE@ export PATH; \
435@NATIVE_TRUE@ GCCGO="$(abs_builddir)/check-gccgo"; \
436@NATIVE_TRUE@ export GCCGO; \
1913c1bf
ILT
437@NATIVE_TRUE@ CC="$(abs_builddir)/check-gcc"; \
438@NATIVE_TRUE@ export CC; \
eec2130e
ILT
439@NATIVE_TRUE@ GCCGOTOOLDIR="$(abs_builddir)"; \
440@NATIVE_TRUE@ export GCCGOTOOLDIR; \
441@NATIVE_TRUE@ GO_TESTING_GOTOOLS=yes; \
442@NATIVE_TRUE@ export GO_TESTING_GOTOOLS; \
443@NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
444@NATIVE_TRUE@ LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
1e9a0e88
ILT
445@NATIVE_TRUE@ export LD_LIBRARY_PATH; \
446@NATIVE_TRUE@ GOROOT=$${abs_libgodir}; \
bc998d03 447@NATIVE_TRUE@ export GOROOT; \
cceec155
ILT
448@NATIVE_TRUE@ GOCACHE=$(abs_builddir)/gocache-test; \
449@NATIVE_TRUE@ export GOCACHE; \
bc998d03 450@NATIVE_TRUE@ fl1="FA"; fl2="IL"; fl="$${fl1}$${fl2}";
eec2130e 451
fac877a1
ILT
452
453# ECHO_ENV is a variant of CHECK_ENV to put into a testlog file.
454# It assumes that abs_libgodir is set.
cceec155 455@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'`
bf1de3f0
ILT
456all: all-am
457
458.SUFFIXES:
459.SUFFIXES: .c .o .obj
3211f4c2 460am--refresh: Makefile
bf1de3f0
ILT
461 @:
462$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
463 @for dep in $?; do \
464 case '$(am__configure_deps)' in \
465 *$$dep*) \
466 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
467 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
468 && exit 0; \
469 exit 1;; \
470 esac; \
471 done; \
472 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
473 $(am__cd) $(top_srcdir) && \
474 $(AUTOMAKE) --foreign Makefile
bf1de3f0
ILT
475Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
476 @case '$?' in \
477 *config.status*) \
478 echo ' $(SHELL) ./config.status'; \
479 $(SHELL) ./config.status;; \
480 *) \
481 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
482 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
483 esac;
484
485$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
486 $(SHELL) ./config.status --recheck
487
488$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
489 $(am__cd) $(srcdir) && $(AUTOCONF)
490$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
491 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
492$(am__aclocal_m4_deps):
493install-binPROGRAMS: $(bin_PROGRAMS)
494 @$(NORMAL_INSTALL)
bf1de3f0 495 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
3211f4c2
MH
496 if test -n "$$list"; then \
497 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
498 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
499 fi; \
bf1de3f0
ILT
500 for p in $$list; do echo "$$p $$p"; done | \
501 sed 's/$(EXEEXT)$$//' | \
22e05272
JM
502 while read p p1; do if test -f $$p \
503 ; then echo "$$p"; echo "$$p"; else :; fi; \
bf1de3f0 504 done | \
22e05272
JM
505 sed -e 'p;s,.*/,,;n;h' \
506 -e 's|.*|.|' \
bf1de3f0
ILT
507 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
508 sed 'N;N;N;s,\n, ,g' | \
509 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
510 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
511 if ($$2 == $$4) files[d] = files[d] " " $$1; \
512 else { print "f", $$3 "/" $$4, $$1; } } \
513 END { for (d in files) print "f", d, files[d] }' | \
514 while read type dir files; do \
515 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
516 test -z "$$files" || { \
517 echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
518 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
519 } \
520 ; done
521
522uninstall-binPROGRAMS:
523 @$(NORMAL_UNINSTALL)
524 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
525 files=`for p in $$list; do echo "$$p"; done | \
526 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
22e05272
JM
527 -e 's/$$/$(EXEEXT)/' \
528 `; \
bf1de3f0
ILT
529 test -n "$$list" || exit 0; \
530 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
531 cd "$(DESTDIR)$(bindir)" && rm -f $$files
532
533clean-binPROGRAMS:
534 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
bf1de3f0 535
fa3340ec
ILT
536clean-noinstPROGRAMS:
537 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
22e05272 538
1a2f01ef
ILT
539@NATIVE_FALSE@buildid$(EXEEXT): $(buildid_OBJECTS) $(buildid_DEPENDENCIES) $(EXTRA_buildid_DEPENDENCIES)
540@NATIVE_FALSE@ @rm -f buildid$(EXEEXT)
22e05272
JM
541@NATIVE_FALSE@ $(AM_V_CCLD)$(LINK) $(buildid_OBJECTS) $(buildid_LDADD) $(LIBS)
542
3211f4c2 543@NATIVE_FALSE@cgo$(EXEEXT): $(cgo_OBJECTS) $(cgo_DEPENDENCIES) $(EXTRA_cgo_DEPENDENCIES)
bf1de3f0 544@NATIVE_FALSE@ @rm -f cgo$(EXEEXT)
22e05272
JM
545@NATIVE_FALSE@ $(AM_V_CCLD)$(LINK) $(cgo_OBJECTS) $(cgo_LDADD) $(LIBS)
546
3211f4c2 547@NATIVE_FALSE@go$(EXEEXT): $(go_OBJECTS) $(go_DEPENDENCIES) $(EXTRA_go_DEPENDENCIES)
bf1de3f0 548@NATIVE_FALSE@ @rm -f go$(EXEEXT)
22e05272
JM
549@NATIVE_FALSE@ $(AM_V_CCLD)$(LINK) $(go_OBJECTS) $(go_LDADD) $(LIBS)
550
3211f4c2 551@NATIVE_FALSE@gofmt$(EXEEXT): $(gofmt_OBJECTS) $(gofmt_DEPENDENCIES) $(EXTRA_gofmt_DEPENDENCIES)
bf1de3f0 552@NATIVE_FALSE@ @rm -f gofmt$(EXEEXT)
22e05272
JM
553@NATIVE_FALSE@ $(AM_V_CCLD)$(LINK) $(gofmt_OBJECTS) $(gofmt_LDADD) $(LIBS)
554
1a2f01ef
ILT
555@NATIVE_FALSE@test2json$(EXEEXT): $(test2json_OBJECTS) $(test2json_DEPENDENCIES) $(EXTRA_test2json_DEPENDENCIES)
556@NATIVE_FALSE@ @rm -f test2json$(EXEEXT)
22e05272
JM
557@NATIVE_FALSE@ $(AM_V_CCLD)$(LINK) $(test2json_OBJECTS) $(test2json_LDADD) $(LIBS)
558
1a2f01ef
ILT
559@NATIVE_FALSE@vet$(EXEEXT): $(vet_OBJECTS) $(vet_DEPENDENCIES) $(EXTRA_vet_DEPENDENCIES)
560@NATIVE_FALSE@ @rm -f vet$(EXEEXT)
22e05272 561@NATIVE_FALSE@ $(AM_V_CCLD)$(LINK) $(vet_OBJECTS) $(vet_LDADD) $(LIBS)
bf1de3f0
ILT
562
563mostlyclean-compile:
564 -rm -f *.$(OBJEXT)
565
566distclean-compile:
567 -rm -f *.tab.c
568
1a2f01ef 569@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buildid.Po@am__quote@
bf1de3f0
ILT
570@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cgo.Po@am__quote@
571@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/go.Po@am__quote@
572@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gofmt.Po@am__quote@
1a2f01ef
ILT
573@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test2json.Po@am__quote@
574@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vet.Po@am__quote@
bf1de3f0
ILT
575
576.c.o:
22e05272
JM
577@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
578@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
579@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
bf1de3f0 580@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
22e05272 581@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
bf1de3f0
ILT
582
583.c.obj:
22e05272
JM
584@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
585@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
586@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
bf1de3f0 587@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
22e05272 588@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
c92e723d
ILT
589install-man1: $(man_MANS)
590 @$(NORMAL_INSTALL)
3211f4c2
MH
591 @list1=''; \
592 list2='$(man_MANS)'; \
593 test -n "$(man1dir)" \
594 && test -n "`echo $$list1$$list2`" \
595 || exit 0; \
596 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
597 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
598 { for i in $$list1; do echo "$$i"; done; \
599 if test -n "$$list2"; then \
600 for i in $$list2; do echo "$$i"; done \
601 | sed -n '/\.1[a-z]*$$/p'; \
602 fi; \
c92e723d
ILT
603 } | while read p; do \
604 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
605 echo "$$d$$p"; echo "$$p"; \
606 done | \
607 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
608 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
609 sed 'N;N;s,\n, ,g' | { \
610 list=; while read file base inst; do \
611 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
612 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
613 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
614 fi; \
615 done; \
616 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
617 while read files; do \
618 test -z "$$files" || { \
619 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
620 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
621 done; }
622
623uninstall-man1:
624 @$(NORMAL_UNINSTALL)
625 @list=''; test -n "$(man1dir)" || exit 0; \
626 files=`{ for i in $$list; do echo "$$i"; done; \
627 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
628 sed -n '/\.1[a-z]*$$/p'; \
629 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
630 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
3211f4c2 631 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
bf1de3f0 632
22e05272
JM
633ID: $(am__tagged_files)
634 $(am__define_uniq_tagged_files); mkid -fID $$unique
635tags: tags-am
636TAGS: tags
637
638tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
bf1de3f0
ILT
639 set x; \
640 here=`pwd`; \
22e05272 641 $(am__define_uniq_tagged_files); \
bf1de3f0
ILT
642 shift; \
643 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
644 test -n "$$unique" || unique=$$empty_fix; \
645 if test $$# -gt 0; then \
646 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
647 "$$@" $$unique; \
648 else \
649 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
650 $$unique; \
651 fi; \
652 fi
22e05272
JM
653ctags: ctags-am
654
655CTAGS: ctags
656ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
657 $(am__define_uniq_tagged_files); \
bf1de3f0
ILT
658 test -z "$(CTAGS_ARGS)$$unique" \
659 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
660 $$unique
661
662GTAGS:
663 here=`$(am__cd) $(top_builddir) && pwd` \
664 && $(am__cd) $(top_srcdir) \
665 && gtags -i $(GTAGS_ARGS) "$$here"
22e05272
JM
666cscope: cscope.files
667 test ! -s cscope.files \
668 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
669clean-cscope:
670 -rm -f cscope.files
671cscope.files: clean-cscope cscopelist
672cscopelist: cscopelist-am
673
674cscopelist-am: $(am__tagged_files)
675 list='$(am__tagged_files)'; \
676 case "$(srcdir)" in \
677 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
678 *) sdir=$(subdir)/$(srcdir) ;; \
679 esac; \
680 for i in $$list; do \
681 if test -f "$$i"; then \
682 echo "$(subdir)/$$i"; \
683 else \
684 echo "$$sdir/$$i"; \
685 fi; \
686 done >> $(top_builddir)/cscope.files
bf1de3f0
ILT
687
688distclean-tags:
689 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
22e05272 690 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
bf1de3f0
ILT
691check-am: all-am
692check: check-am
c92e723d 693all-am: Makefile $(PROGRAMS) $(MANS)
bf1de3f0 694installdirs:
c92e723d 695 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
bf1de3f0
ILT
696 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
697 done
698install: install-am
699install-exec: install-exec-am
700install-data: install-data-am
701uninstall: uninstall-am
702
703install-am: all-am
704 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
705
706installcheck: installcheck-am
707install-strip:
3211f4c2
MH
708 if test -z '$(STRIP)'; then \
709 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
710 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
711 install; \
712 else \
713 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
714 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
715 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
716 fi
bf1de3f0 717mostlyclean-generic:
6b3762e4 718 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
bf1de3f0
ILT
719
720clean-generic:
721
722distclean-generic:
723 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
724 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
725
726maintainer-clean-generic:
727 @echo "This command is intended for maintainers to use"
728 @echo "it deletes files that may require special tools to rebuild."
19071aa4 729@NATIVE_FALSE@install-exec-local:
22e05272 730@NATIVE_FALSE@uninstall-local:
bf1de3f0
ILT
731clean: clean-am
732
fa3340ec 733clean-am: clean-binPROGRAMS clean-generic clean-noinstPROGRAMS \
bf1de3f0
ILT
734 mostlyclean-am
735
736distclean: distclean-am
737 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
738 -rm -rf ./$(DEPDIR)
739 -rm -f Makefile
740distclean-am: clean-am distclean-compile distclean-generic \
741 distclean-tags
742
743dvi: dvi-am
744
745dvi-am:
746
747html: html-am
748
749html-am:
750
751info: info-am
752
753info-am:
754
c92e723d 755install-data-am: install-man
bf1de3f0
ILT
756
757install-dvi: install-dvi-am
758
759install-dvi-am:
760
fa3340ec 761install-exec-am: install-binPROGRAMS install-exec-local
bf1de3f0
ILT
762
763install-html: install-html-am
764
765install-html-am:
766
767install-info: install-info-am
768
769install-info-am:
770
c92e723d 771install-man: install-man1
bf1de3f0
ILT
772
773install-pdf: install-pdf-am
774
775install-pdf-am:
776
777install-ps: install-ps-am
778
779install-ps-am:
780
781installcheck-am:
782
783maintainer-clean: maintainer-clean-am
784 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
785 -rm -rf $(top_srcdir)/autom4te.cache
786 -rm -rf ./$(DEPDIR)
787 -rm -f Makefile
788maintainer-clean-am: distclean-am maintainer-clean-generic
789
790mostlyclean: mostlyclean-am
791
eec2130e
ILT
792mostlyclean-am: mostlyclean-compile mostlyclean-generic \
793 mostlyclean-local
bf1de3f0
ILT
794
795pdf: pdf-am
796
797pdf-am:
798
799ps: ps-am
800
801ps-am:
802
c92e723d
ILT
803uninstall-am: uninstall-binPROGRAMS uninstall-local uninstall-man
804
805uninstall-man: uninstall-man1
bf1de3f0
ILT
806
807.MAKE: install-am install-strip
808
22e05272
JM
809.PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \
810 clean-binPROGRAMS clean-cscope clean-generic \
811 clean-noinstPROGRAMS cscope cscopelist-am ctags ctags-am \
bf1de3f0
ILT
812 distclean distclean-compile distclean-generic distclean-tags \
813 dvi dvi-am html html-am info info-am install install-am \
814 install-binPROGRAMS install-data install-data-am install-dvi \
fa3340ec
ILT
815 install-dvi-am install-exec install-exec-am install-exec-local \
816 install-html install-html-am install-info install-info-am \
c92e723d 817 install-man install-man1 install-pdf install-pdf-am install-ps \
fa3340ec
ILT
818 install-ps-am install-strip installcheck installcheck-am \
819 installdirs maintainer-clean maintainer-clean-generic \
eec2130e 820 mostlyclean mostlyclean-compile mostlyclean-generic \
22e05272 821 mostlyclean-local pdf pdf-am ps ps-am tags tags-am uninstall \
eec2130e
ILT
822 uninstall-am uninstall-binPROGRAMS uninstall-local \
823 uninstall-man uninstall-man1
bf1de3f0 824
22e05272
JM
825.PRECIOUS: Makefile
826
bf1de3f0
ILT
827
828zdefaultcc.go: s-zdefaultcc; @true
829s-zdefaultcc: Makefile
830 echo 'package main' > zdefaultcc.go.tmp
1a2f01ef
ILT
831 echo 'func defaultGCCGO(goos, goarch string) string { return "$(bindir)/$(GCCGO_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
832 echo 'func defaultCC(goos, goarch string) string { return "$(GCC_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
833 echo 'func defaultCXX(goos, goarch string) string { return "$(GXX_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
c2047754 834 echo 'const defaultPkgConfig = "pkg-config"' >> zdefaultcc.go.tmp
bf1de3f0
ILT
835 $(SHELL) $(srcdir)/../move-if-change zdefaultcc.go.tmp zdefaultcc.go
836 $(STAMP) $@
837
fac877a1 838mostlyclean-local:
19071aa4 839 -chmod -R u+w check-go-dir
fac877a1
ILT
840 rm -rf check-go-dir check-runtime-dir cgo-test-dir carchive-test-dir
841
bc998d03
ILT
842@NATIVE_TRUE@go$(EXEEXT): $(go_cmd_go_files) $(LIBGOTOOL) $(LIBGODEP)
843@NATIVE_TRUE@ $(GOLINK) $(go_cmd_go_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
bf1de3f0 844@NATIVE_TRUE@gofmt$(EXEEXT): $(go_cmd_gofmt_files) $(LIBGODEP)
5bd8d5c1 845@NATIVE_TRUE@ $(GOLINK) $(go_cmd_gofmt_files) $(LIBS) $(NET_LIBS)
1a2f01ef
ILT
846@NATIVE_TRUE@cgo$(EXEEXT): $(go_cmd_cgo_files) zdefaultcc.go $(LIBGOTOOL) $(LIBGODEP)
847@NATIVE_TRUE@ $(GOLINK) $(go_cmd_cgo_files) zdefaultcc.go $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
848@NATIVE_TRUE@vet$(EXEEXT): $(go_cmd_vet_files) $(LIBGOTOOL) $(LIBGODEP)
849@NATIVE_TRUE@ $(GOLINK) $(go_cmd_vet_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
850@NATIVE_TRUE@buildid$(EXEEXT): $(go_cmd_buildid_files) $(LIBGOTOOL) $(LIBGODEP)
851@NATIVE_TRUE@ $(GOLINK) $(go_cmd_buildid_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
852@NATIVE_TRUE@test2json$(EXEEXT): $(go_cmd_test2json_files) $(LIBGOTOOL) $(LIBGODEP)
853@NATIVE_TRUE@ $(GOLINK) $(go_cmd_test2json_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
854
855@NATIVE_TRUE@install-exec-local: $(noinst_PROGRAMS)
fa3340ec 856@NATIVE_TRUE@ $(MKDIR_P) $(DESTDIR)$(libexecsubdir)
1a2f01ef
ILT
857@NATIVE_TRUE@ for f in $(noinst_PROGRAMS); do \
858@NATIVE_TRUE@ rm -f $(DESTDIR)$(libexecsubdir)/$$f; \
859@NATIVE_TRUE@ $(INSTALL_PROGRAM) $$f $(DESTDIR)$(libexecsubdir)/$$f; \
860@NATIVE_TRUE@ done
fa3340ec
ILT
861
862@NATIVE_TRUE@uninstall-local:
1a2f01ef
ILT
863@NATIVE_TRUE@ for f in $(noinst_PROGRAMS); do \
864@NATIVE_TRUE@ rm -f $(DESTDIR)$(libexecsubdir)/$$f; \
865@NATIVE_TRUE@ done
fa3340ec 866
eec2130e
ILT
867# Run tests using the go tool, and frob the output to look like that
868# generated by DejaGNU. The main output of this is two files:
869# gotools.sum and gotools.log.
870
871# check-head starts generating the log files in DejaGNU format. This
872# is a separate target so that the date is approximately when we start
873# running the tests.
874@NATIVE_TRUE@check-head:
875@NATIVE_TRUE@ @echo "Test Run By $${USER} on `date`" > gotools.head
876@NATIVE_TRUE@ @echo "Native configuration is $(host_triplet)" >> gotools.head
877@NATIVE_TRUE@ @echo >> gotools.head
878@NATIVE_TRUE@ @echo " === gotools tests ===" >> gotools.head
879@NATIVE_TRUE@ @echo >> gotools.head
880
881# check-gccgo is a little shell script that executes gccgo with the
080eaf7a 882# options to pick up the newly built libgo and libstdc++.
eec2130e 883@NATIVE_TRUE@check-gccgo: Makefile
1913c1bf
ILT
884@NATIVE_TRUE@ rm -f $@ $@.tmp
885@NATIVE_TRUE@ echo "#!/bin/sh" > $@.tmp
eec2130e 886@NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
080eaf7a 887@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
1913c1bf
ILT
888@NATIVE_TRUE@ chmod +x $@.tmp
889@NATIVE_TRUE@ mv -f $@.tmp $@
890
891# check-gcc is a little shell script that executes the newly built gcc
080eaf7a 892# with the options to pick up the newly built libgo and libstdc++.
1913c1bf
ILT
893@NATIVE_TRUE@check-gcc: Makefile
894@NATIVE_TRUE@ rm -f $@ $@.tmp
895@NATIVE_TRUE@ echo "#!/bin/sh" > $@.tmp
896@NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
080eaf7a 897@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
1913c1bf
ILT
898@NATIVE_TRUE@ chmod +x $@.tmp
899@NATIVE_TRUE@ mv -f $@.tmp $@
eec2130e 900
1a2f01ef
ILT
901# check-go-tool runs `go test cmd/go` in our environment.
902@NATIVE_TRUE@check-go-tool: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
19071aa4 903@NATIVE_TRUE@ -chmod -R u+w check-go-dir
fac877a1 904@NATIVE_TRUE@ rm -rf check-go-dir cmd_go-testlog
eec2130e
ILT
905@NATIVE_TRUE@ $(MKDIR_P) check-go-dir/src/cmd/go
906@NATIVE_TRUE@ cp $(cmdsrcdir)/go/*.go check-go-dir/src/cmd/go/
bc998d03 907@NATIVE_TRUE@ cp -r $(cmdsrcdir)/go/internal check-go-dir/src/cmd/go/
bc998d03 908@NATIVE_TRUE@ cp $(libgodir)/zdefaultcc.go check-go-dir/src/cmd/go/internal/cfg/
eec2130e 909@NATIVE_TRUE@ cp -r $(cmdsrcdir)/go/testdata check-go-dir/src/cmd/go/
bc998d03 910@NATIVE_TRUE@ cp -r $(cmdsrcdir)/internal check-go-dir/src/cmd/
1a2f01ef 911@NATIVE_TRUE@ cp $(libgodir)/objabi.go check-go-dir/src/cmd/internal/objabi/
fac877a1
ILT
912@NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
913@NATIVE_TRUE@ abs_checkdir=`cd check-go-dir && $(PWD_COMMAND)`; \
5d158777 914@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
eec2130e
ILT
915@NATIVE_TRUE@ $(CHECK_ENV) \
916@NATIVE_TRUE@ GOPATH=`cd check-go-dir && $(PWD_COMMAND)`; \
917@NATIVE_TRUE@ export GOPATH; \
5d158777 918@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
6da7ce80 919@NATIVE_TRUE@ grep '^--- ' cmd_go-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
eec2130e 920
fac877a1
ILT
921# check-runtime runs `go test runtime` in our environment.
922# The runtime package is also tested as part of libgo,
923# but the runtime tests use the go tool heavily, so testing
924# here too will catch more problems.
1a2f01ef 925@NATIVE_TRUE@check-runtime: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
fac877a1
ILT
926@NATIVE_TRUE@ rm -rf check-runtime-dir runtime-testlog
927@NATIVE_TRUE@ $(MKDIR_P) check-runtime-dir
928@NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
929@NATIVE_TRUE@ LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
930@NATIVE_TRUE@ GOARCH=`$(abs_builddir)/go$(EXEEXT) env GOARCH`; \
931@NATIVE_TRUE@ GOOS=`$(abs_builddir)/go$(EXEEXT) env GOOS`; \
932@NATIVE_TRUE@ files=`$(SHELL) $(libgosrcdir)/../match.sh --goarch=$${GOARCH} --goos=$${GOOS} --srcdir=$(libgosrcdir)/runtime --extrafiles="$(libgodir)/runtime_sysinfo.go $(libgodir)/sigtab.go" --tag=libffi`; \
00821ad4 933@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
fac877a1
ILT
934@NATIVE_TRUE@ $(CHECK_ENV) \
935@NATIVE_TRUE@ GC="$${GCCGO} -fgo-compiling-runtime"; \
936@NATIVE_TRUE@ export GC; \
937@NATIVE_TRUE@ GOARCH=`$(abs_builddir)/go$(EXEEXT) env GOARCH`; \
938@NATIVE_TRUE@ GOOS=`$(abs_builddir)/go$(EXEEXT) env GOOS`; \
939@NATIVE_TRUE@ files=`$(SHELL) $(libgosrcdir)/../match.sh --goarch=$${GOARCH} --goos=$${GOOS} --srcdir=$(libgosrcdir)/runtime --extrafiles="$(libgodir)/runtime_sysinfo.go $(libgodir)/sigtab.go" --tag=libffi`; \
00821ad4 940@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
6da7ce80 941@NATIVE_TRUE@ grep '^--- ' runtime-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
fac877a1
ILT
942
943# check-cgo-test runs `go test misc/cgo/test` in our environment.
1a2f01ef 944@NATIVE_TRUE@check-cgo-test: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
fac877a1
ILT
945@NATIVE_TRUE@ rm -rf cgo-test-dir cgo-testlog
946@NATIVE_TRUE@ $(MKDIR_P) cgo-test-dir/misc/cgo
947@NATIVE_TRUE@ cp -r $(libgomiscdir)/cgo/test cgo-test-dir/misc/cgo/
948@NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
5d158777 949@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
fac877a1
ILT
950@NATIVE_TRUE@ $(CHECK_ENV) \
951@NATIVE_TRUE@ GOTRACEBACK=2; \
952@NATIVE_TRUE@ export GOTRACEBACK; \
5d158777 953@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
6da7ce80 954@NATIVE_TRUE@ grep '^--- ' cgo-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
fac877a1
ILT
955
956# check-carchive-test runs `go test misc/cgo/testcarchive/carchive_test.go`
957# in our environment.
1a2f01ef 958@NATIVE_TRUE@check-carchive-test: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
fac877a1
ILT
959@NATIVE_TRUE@ rm -rf carchive-test-dir carchive-testlog
960@NATIVE_TRUE@ $(MKDIR_P) carchive-test-dir/misc/cgo
961@NATIVE_TRUE@ cp -r $(libgomiscdir)/cgo/testcarchive carchive-test-dir/misc/cgo/
962@NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
5d158777 963@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
fac877a1
ILT
964@NATIVE_TRUE@ $(CHECK_ENV) \
965@NATIVE_TRUE@ LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
966@NATIVE_TRUE@ export LIBRARY_PATH; \
5d158777 967@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
6da7ce80 968@NATIVE_TRUE@ grep '^--- ' carchive-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
fac877a1 969
1a2f01ef
ILT
970# check-vet runs `go test cmd/vet` in our environment.
971@NATIVE_TRUE@check-vet: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
972@NATIVE_TRUE@ rm -rf check-vet-dir cmd_vet-testlog
dd931d9b 973@NATIVE_TRUE@ $(MKDIR_P) check-vet-dir/src/cmd/internal
1a2f01ef 974@NATIVE_TRUE@ cp -r $(cmdsrcdir)/vet check-vet-dir/src/cmd/
dd931d9b
ILT
975@NATIVE_TRUE@ cp -r $(cmdsrcdir)/internal/objabi check-vet-dir/src/cmd/internal
976@NATIVE_TRUE@ cp $(libgodir)/objabi.go check-vet-dir/src/cmd/internal/objabi/
1a2f01ef
ILT
977@NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
978@NATIVE_TRUE@ abs_checkdir=`cd check-vet-dir && $(PWD_COMMAND)`; \
5d158777 979@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
1a2f01ef
ILT
980@NATIVE_TRUE@ $(CHECK_ENV) \
981@NATIVE_TRUE@ GOPATH=`cd check-vet-dir && $(PWD_COMMAND)`; \
982@NATIVE_TRUE@ export GOPATH; \
5d158777 983@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
1a2f01ef
ILT
984@NATIVE_TRUE@ grep '^--- ' cmd_vet-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
985
eec2130e 986# The check targets runs the tests and assembles the output files.
1a2f01ef 987@NATIVE_TRUE@check: check-head check-go-tool check-runtime check-cgo-test check-carchive-test check-vet
fac877a1
ILT
988@NATIVE_TRUE@ @mv gotools.head gotools.sum
989@NATIVE_TRUE@ @cp gotools.sum gotools.log
1a2f01ef 990@NATIVE_TRUE@ @for file in cmd_go-testlog runtime-testlog cgo-testlog carchive-testlog cmd_vet-testlog; do \
eec2130e
ILT
991@NATIVE_TRUE@ testname=`echo $${file} | sed -e 's/-testlog//' -e 's|_|/|'`; \
992@NATIVE_TRUE@ echo "Running $${testname}" >> gotools.sum; \
993@NATIVE_TRUE@ echo "Running $${testname}" >> gotools.log; \
994@NATIVE_TRUE@ sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' < $${file} >> gotools.log; \
6da7ce80 995@NATIVE_TRUE@ grep '^--- ' $${file} | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' -e 's/SKIP/UNTESTED/' | sort -k 2 >> gotools.sum; \
eec2130e
ILT
996@NATIVE_TRUE@ done
997@NATIVE_TRUE@ @echo >> gotools.sum
998@NATIVE_TRUE@ @echo " === gotools Summary ===" >> gotools.sum
fac877a1 999@NATIVE_TRUE@ @pass=`grep -c '^PASS' gotools.sum`; \
eec2130e
ILT
1000@NATIVE_TRUE@ if test "$${pass}" -ne "0"; then \
1001@NATIVE_TRUE@ echo "# of expected passes $${pass}" >> gotools.sum; \
1002@NATIVE_TRUE@ fi
fac877a1 1003@NATIVE_TRUE@ @fail=`grep -c '^FAIL' gotools.sum`; \
eec2130e
ILT
1004@NATIVE_TRUE@ if test "$${fail}" -ne "0"; then \
1005@NATIVE_TRUE@ echo "# of unexpected failures $${fail}" >> gotools.sum; \
1006@NATIVE_TRUE@ fi
fac877a1 1007@NATIVE_TRUE@ @untested=`grep -c '^UNTESTED' gotools.sum`; \
eec2130e
ILT
1008@NATIVE_TRUE@ if test "$${untested}" -ne "0"; then \
1009@NATIVE_TRUE@ echo "# of untested testcases $${untested}" >> gotools.sum; \
1010@NATIVE_TRUE@ fi
fac877a1
ILT
1011@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
1012@NATIVE_TRUE@ @echo >> gotools.log
1013@NATIVE_TRUE@ @echo "runtest completed at `date`" >> gotools.log
1014@NATIVE_TRUE@ @if grep '^FAIL' gotools.sum >/dev/null 2>&1; then exit 1; fi
eec2130e 1015
1a2f01ef 1016@NATIVE_TRUE@.PHONY: check check-head check-go-tool check-runtime check-cgo-test check-carchive-test check-vet
eec2130e 1017
bf1de3f0
ILT
1018# For a non-native build we have to build the programs using a
1019# previously built host (or build -> host) Go compiler. We should
1020# only do this if such a compiler is available. We also need to get
1021# the right values for GOARCH and GOOS in the default build context in
1022# the go/build package. Figure this out later.
1023
1024# Tell versions [3.59,3.63) of GNU make to not export all variables.
1025# Otherwise a system limit (for SysV at least) may be exceeded.
1026.NOEXPORT: