2015-05-13 12:59:14 +02:00
# Makefile.in generated by automake 1.11.6 from Makefile.am.
2015-01-09 22:23:09 +01:00
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2015-05-13 12:59:14 +02:00
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
# Foundation, Inc.
2015-01-09 22:23:09 +01:00
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@ S E T _ M A K E @
# Makefile for gotools
2017-01-14 01:05:42 +01:00
# Copyright (C) 2015-2016 Free Software Foundation, Inc.
2015-01-09 22:23:09 +01:00
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING3. If not see
# <http://www.gnu.org/licenses/>.
VPATH = @srcdir@
2015-05-13 12:59:14 +02:00
am__make_dryrun = \
{ \
am__dry = no; \
case $$ MAKEFLAGS in \
*\\ [ \ \ ] *) \
echo 'am--echo: ; @echo "AM" OK' | $( MAKE) -f - 2>/dev/null \
| grep '^AM OK$$' >/dev/null || am__dry = yes; ; \
*) \
for am__flg in $$ MAKEFLAGS; do \
case $$ am__flg in \
*= *| --*) ; ; \
*n*) am__dry = yes; break; ; \
esac ; \
done ; ; \
esac ; \
test $$ am__dry = yes; \
}
2015-01-09 22:23:09 +01:00
pkgdatadir = $( datadir) /@PACKAGE@
pkgincludedir = $( includedir) /@PACKAGE@
pkglibdir = $( libdir) /@PACKAGE@
pkglibexecdir = $( libexecdir) /@PACKAGE@
am__cd = CDPATH = " $$ {ZSH_VERSION+.} $( PATH_SEPARATOR) " && cd
install_sh_DATA = $( install_sh) -c -m 644
install_sh_PROGRAM = $( install_sh) -c
install_sh_SCRIPT = $( install_sh) -c
INSTALL_HEADER = $( INSTALL_DATA)
transform = $( program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
subdir = .
2015-01-10 01:23:48 +01:00
DIST_COMMON = README ChangeLog $( srcdir) /Makefile.in \
$( srcdir) /Makefile.am $( top_srcdir) /configure \
$( am__configure_deps) $( srcdir) /../mkinstalldirs \
$( srcdir) /../depcomp
2015-01-09 22:23:09 +01:00
ACLOCAL_M4 = $( top_srcdir) /aclocal.m4
am__aclocal_m4_deps = $( top_srcdir) /../config/acx.m4 \
$( top_srcdir) /../config/depstand.m4 \
$( top_srcdir) /../config/lead-dot.m4 \
$( top_srcdir) /../config/override.m4 $( top_srcdir) /config/go.m4 \
$( top_srcdir) /configure.ac
am__configure_deps = $( am__aclocal_m4_deps) $( CONFIGURE_DEPENDENCIES) \
$( ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
2015-01-23 02:42:08 +01:00
am__installdirs = " $( DESTDIR) $( bindir) " " $( DESTDIR) $( man1dir) "
2015-01-22 05:19:11 +01:00
PROGRAMS = $( bin_PROGRAMS) $( noinst_PROGRAMS)
2015-01-09 22:23:09 +01:00
cgo_SOURCES = cgo.c
cgo_OBJECTS = cgo.$( OBJEXT)
cgo_LDADD = $( LDADD)
go_SOURCES = go.c
go_OBJECTS = go.$( OBJEXT)
go_LDADD = $( LDADD)
gofmt_SOURCES = gofmt.c
gofmt_OBJECTS = gofmt.$( OBJEXT)
gofmt_LDADD = $( LDADD)
DEFAULT_INCLUDES = -I.@am__isrc@
depcomp = $( SHELL) $( top_srcdir) /../depcomp
am__depfiles_maybe = depfiles
am__mv = mv -f
COMPILE = $( CC) $( DEFS) $( DEFAULT_INCLUDES) $( INCLUDES) $( AM_CPPFLAGS) \
$( CPPFLAGS) $( AM_CFLAGS) $( CFLAGS)
CCLD = $( CC)
LINK = $( CCLD) $( AM_CFLAGS) $( CFLAGS) $( AM_LDFLAGS) $( LDFLAGS) -o $@
SOURCES = cgo.c go.c gofmt.c
2015-05-13 12:59:14 +02:00
am__can_run_installinfo = \
case $$ AM_UPDATE_INFO_DIR in \
n| no| NO) false; ; \
*) ( install-info --version) >/dev/null 2>& 1; ; \
esac
2015-01-23 02:42:08 +01:00
am__vpath_adj_setup = srcdirstrip = ` echo " $( srcdir) " | sed 's|.|.|g' ` ;
am__vpath_adj = case $$ p in \
$( srcdir) /*) f = ` echo " $$ p " | sed " s|^ $$ srcdirstrip/|| " ` ; ; \
*) f = $$ p; ; \
esac ;
am__strip_dir = f = ` echo $$ p | sed -e 's|^.*/||' ` ;
am__install_max = 40
am__nobase_strip_setup = \
srcdirstrip = ` echo " $( srcdir) " | sed 's/[].[^$$\\*|]/\\\\&/g' `
am__nobase_strip = \
for p in $$ list; do echo " $$ p " ; done | sed -e " s| $$ srcdirstrip/|| "
am__nobase_list = $( am__nobase_strip_setup) ; \
for p in $$ list; do echo " $$ p $$ p " ; done | \
sed " s| $$ srcdirstrip/| |; " ' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
$( AWK) ' BEGIN { files[ "." ] = "" } { files[ $$ 2] = files[ $$ 2] " " $$ 1; \
if ( ++n[ $$ 2] = = $( am__install_max) ) \
{ print $$ 2, files[ $$ 2] ; n[ $$ 2] = 0; files[ $$ 2] = "" } } \
END { for ( dir in files) print dir, files[ dir] } '
am__base_list = \
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
2015-05-13 12:59:14 +02:00
am__uninstall_files_from_dir = { \
test -z " $$ files " \
|| { test ! -d " $$ dir " && test ! -f " $$ dir " && test ! -r " $$ dir " ; } \
|| { echo " ( cd ' $$ dir' && rm -f " $$ files ")" ; \
$( am__cd) " $$ dir " && rm -f $$ files; } ; \
}
2015-01-23 02:42:08 +01:00
man1dir = $( mandir) /man1
NROFF = nroff
MANS = $( man_MANS)
2015-01-09 22:23:09 +01:00
ETAGS = etags
CTAGS = ctags
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EXEEXT = @EXEEXT@
2017-08-30 20:27:17 +02:00
GCC_FOR_TARGET = @GCC_FOR_TARGET@
2015-01-09 22:23:09 +01:00
GOC = @GOC@
GOCFLAGS = $( CFLAGS_FOR_TARGET)
2017-08-30 20:27:17 +02:00
GOC_FOR_TARGET = @GOC_FOR_TARGET@
2015-01-09 22:23:09 +01:00
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
2015-01-15 22:10:09 +01:00
NET_LIBS = @NET_LIBS@
2015-01-09 22:23:09 +01:00
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_noncanonical = @build_noncanonical@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_noncanonical = @host_noncanonical@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target = @target@
target_alias = @target_alias@
target_cpu = @target_cpu@
target_noncanonical = @target_noncanonical@
target_os = @target_os@
target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
ACLOCAL_AMFLAGS = -I ./config -I ../config
gcc_version := $( shell $( GCC_FOR_TARGET) -dumpversion)
libexecsubdir = $( libexecdir) /gcc/$( target_noncanonical) /$( gcc_version)
mkinstalldirs = $( SHELL) $( toplevel_srcdir) /mkinstalldirs
PWD_COMMAND = $$ { PWDCMD-pwd}
STAMP = echo timestamp >
libgodir = ../$( target_noncanonical) /libgo
LIBGODEP = $( libgodir) /libgo.la
2017-09-14 19:11:35 +02:00
LIBGOTOOL = $( libgodir) /libgotool.a
2015-01-10 01:23:48 +01:00
@ N A T I V E _ F A L S E @ GOCOMPILER = $( GOC)
# Use the compiler we just built.
2015-12-02 20:27:58 +01:00
@ N A T I V E _ T R U E @ GOCOMPILER = $( GOC_FOR_TARGET) $( XGCC_FLAGS_FOR_TARGET)
2015-01-10 01:23:48 +01:00
GOCOMPILE = $( GOCOMPILER) $( GOCFLAGS)
2017-05-19 00:44:12 +02:00
AM_GOCFLAGS = -I $( libgodir)
2015-01-24 00:11:59 +01:00
AM_LDFLAGS = -L $( libgodir) -L $( libgodir) /.libs
2015-03-12 17:44:36 +01:00
GOLINK = $( GOCOMPILER) $( GOCFLAGS) $( AM_GOCFLAGS) $( LDFLAGS) $( AM_LDFLAGS) -o $@
2017-06-14 21:26:21 +02:00
libgosrcdir = $( srcdir) /../libgo/go
cmdsrcdir = $( libgosrcdir) /cmd
2017-06-29 18:01:38 +02:00
libgomiscdir = $( srcdir) /../libgo/misc
2015-01-09 22:23:09 +01:00
go_cmd_go_files = \
2015-10-31 22:29:38 +01:00
$( cmdsrcdir) /go/alldocs.go \
2015-01-09 22:23:09 +01:00
$( cmdsrcdir) /go/go11.go \
2017-09-14 19:11:35 +02:00
$( cmdsrcdir) /go/main.go
2015-01-09 22:23:09 +01:00
go_cmd_gofmt_files = \
$( cmdsrcdir) /gofmt/doc.go \
$( cmdsrcdir) /gofmt/gofmt.go \
2016-02-03 22:58:02 +01:00
$( cmdsrcdir) /gofmt/internal.go \
2015-01-09 22:23:09 +01:00
$( cmdsrcdir) /gofmt/rewrite.go \
$( cmdsrcdir) /gofmt/simplify.go
go_cmd_cgo_files = \
$( cmdsrcdir) /cgo/ast.go \
$( cmdsrcdir) /cgo/doc.go \
$( cmdsrcdir) /cgo/gcc.go \
$( cmdsrcdir) /cgo/godefs.go \
$( cmdsrcdir) /cgo/main.go \
$( cmdsrcdir) /cgo/out.go \
$( cmdsrcdir) /cgo/util.go
GCCGO_INSTALL_NAME := $( shell echo gccgo| sed '$(program_transform_name)' )
GCC_INSTALL_NAME := $( shell echo gcc| sed '$(program_transform_name)' )
GXX_INSTALL_NAME := $( shell echo g++| sed '$(program_transform_name)' )
2017-06-29 18:01:38 +02:00
MOSTLYCLEANFILES = \
zdefaultcc.go s-zdefaultcc \
2017-08-30 20:27:17 +02:00
check-gccgo check-gcc gotools.head *-testlog gotools.sum gotools.log \
*.sent
2017-06-29 18:01:38 +02:00
2015-01-09 22:23:09 +01:00
# For a native build we build the programs using the newly built libgo
# and install them as regular programs.
@ N A T I V E _ T R U E @ bin_PROGRAMS = go$( EXEEXT) gofmt$( EXEEXT)
2015-01-22 05:19:11 +01:00
@ N A T I V E _ T R U E @ noinst_PROGRAMS = cgo$( EXEEXT)
2015-01-23 02:42:08 +01:00
@ N A T I V E _ T R U E @ man_MANS = go.1 gofmt.1
2017-09-19 09:51:49 +02:00
@ N A T I V E _ T R U E @ GOTESTFLAGS =
2017-06-14 21:26:21 +02:00
# CHECK_ENV sets up the environment to run the newly built go tool.
2017-06-29 18:01:38 +02:00
# If you change this, change ECHO_ENV, below.
2017-09-14 19:11:35 +02:00
# The fl shell variable is used to avoid having FAIL appear
# in the log unnecessarily.
2017-06-14 21:26:21 +02:00
@ N A T I V E _ T R U E @ CHECK_ENV = \
@NATIVE_TRUE@ PATH=`echo $(abs_builddir) : $${PATH } | sed 's , ::*, :, g ;s , ^:*, , ;s , :*$$, , '`; \
@ N A T I V E _ T R U E @ export P A T H ; \
@ N A T I V E _ T R U E @ GCCGO = " $( abs_builddir) /check-gccgo " ; \
@ N A T I V E _ T R U E @ export G C C G O ; \
2017-08-30 20:27:17 +02:00
@ N A T I V E _ T R U E @ CC = " $( abs_builddir) /check-gcc " ; \
@ N A T I V E _ T R U E @ export C C ; \
2017-06-14 21:26:21 +02:00
@ N A T I V E _ T R U E @ GCCGOTOOLDIR = " $( abs_builddir) " ; \
@ N A T I V E _ T R U E @ export G C C G O T O O L D I R ; \
@ N A T I V E _ T R U E @ GO_TESTING_GOTOOLS = yes; \
@ N A T I V E _ T R U E @ export G O _ T E S T I N G _ G O T O O L S ; \
@ N A T I V E _ T R U E @ abs_libgodir = ` cd $( libgodir) && $( PWD_COMMAND) ` ; \
@NATIVE_TRUE@ LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs : $${LD_LIBRARY_PATH } | sed 's , ::*, :, g ;s , ^:*, , ;s , :*$$, , '`; \
2017-07-15 19:50:18 +02:00
@ N A T I V E _ T R U E @ export L D _ L I B R A R Y _ P A T H ; \
@ N A T I V E _ T R U E @ GOROOT = $$ { abs_libgodir} ; \
2017-09-14 19:11:35 +02:00
@ N A T I V E _ T R U E @ export G O R O O T ; \
@ N A T I V E _ T R U E @ fl1 = "FA" ; fl2 = "IL" ; fl = " $$ {fl1} $$ {fl2} " ;
2017-06-14 21:26:21 +02:00
2017-06-29 18:01:38 +02:00
# ECHO_ENV is a variant of CHECK_ENV to put into a testlog file.
# It assumes that abs_libgodir is set.
2017-08-30 20:27:17 +02:00
@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 }`
2015-01-09 22:23:09 +01:00
all : all -am
.SUFFIXES :
.SUFFIXES : .c .o .obj
2015-05-13 12:59:14 +02:00
am--refresh : Makefile
2015-01-09 22:23:09 +01:00
@:
$(srcdir)/Makefile.in : @MAINTAINER_MODE_TRUE @ $( srcdir ) /Makefile .am $( am__configure_deps )
@for dep in $? ; do \
case '$(am__configure_deps)' in \
*$$ dep*) \
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign' ; \
$( am__cd) $( srcdir) && $( AUTOMAKE) --foreign \
&& exit 0; \
exit 1; ; \
esac ; \
done ; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile' ; \
$( am__cd) $( top_srcdir) && \
$( AUTOMAKE) --foreign Makefile
.PRECIOUS : Makefile
Makefile : $( srcdir ) /Makefile .in $( top_builddir ) /config .status
@case '$?' in \
*config.status*) \
echo ' $(SHELL) ./config.status' ; \
$( SHELL) ./config.status; ; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)' ; \
cd $( top_builddir) && $( SHELL) ./config.status $@ $( am__depfiles_maybe) ; ; \
esac ;
$(top_builddir)/config.status : $( top_srcdir ) /configure $( CONFIG_STATUS_DEPENDENCIES )
$( SHELL) ./config.status --recheck
$(top_srcdir)/configure : @MAINTAINER_MODE_TRUE @ $( am__configure_deps )
$( am__cd) $( srcdir) && $( AUTOCONF)
$(ACLOCAL_M4) : @MAINTAINER_MODE_TRUE @ $( am__aclocal_m 4_deps )
$( am__cd) $( srcdir) && $( ACLOCAL) $( ACLOCAL_AMFLAGS)
$(am__aclocal_m4_deps) :
install-binPROGRAMS : $( bin_PROGRAMS )
@$( NORMAL_INSTALL)
@list= '$(bin_PROGRAMS)' ; test -n " $( bindir) " || list = ; \
2015-05-13 12:59:14 +02:00
if test -n " $$ list " ; then \
echo " $( MKDIR_P) ' $( DESTDIR) $( bindir) ' " ; \
$( MKDIR_P) " $( DESTDIR) $( bindir) " || exit 1; \
fi ; \
2015-01-09 22:23:09 +01:00
for p in $$ list; do echo " $$ p $$ p " ; done | \
sed 's/$(EXEEXT)$$//' | \
while read p p1; do if test -f $$ p; \
then echo " $$ p " ; echo " $$ p " ; else :; fi ; \
done | \
sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
-e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
sed 'N;N;N;s,\n, ,g' | \
$( AWK) ' BEGIN { files[ "." ] = "" ; dirs[ "." ] = 1 } \
{ d = $$ 3; if ( dirs[ d] != 1) { print "d" , d; dirs[ d] = 1 } \
if ( $$ 2 = = $$ 4) files[ d] = files[ d] " " $$ 1; \
else { print "f" , $$ 3 "/" $$ 4, $$ 1; } } \
END { for ( d in files) print "f" , d, files[ d] } ' | \
while read type dir files; do \
if test " $$ dir " = .; then dir = ; else dir = /$$ dir; fi ; \
test -z " $$ files " || { \
echo " $( INSTALL_PROGRAM_ENV) $( INSTALL_PROGRAM) $$ files ' $( DESTDIR) $( bindir) $$ dir' " ; \
$( INSTALL_PROGRAM_ENV) $( INSTALL_PROGRAM) $$ files " $( DESTDIR) $( bindir) $$ dir " || exit $$ ?; \
} \
; done
uninstall-binPROGRAMS :
@$( NORMAL_UNINSTALL)
@list= '$(bin_PROGRAMS)' ; test -n " $( bindir) " || list = ; \
files = ` for p in $$ list; do echo " $$ p " ; done | \
sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
-e 's/$$/$(EXEEXT)/' ` ; \
test -n " $$ list " || exit 0; \
echo " ( cd ' $( DESTDIR) $( bindir) ' && rm -f " $$ files ")" ; \
cd " $( DESTDIR) $( bindir) " && rm -f $$ files
clean-binPROGRAMS :
-test -z " $( bin_PROGRAMS) " || rm -f $( bin_PROGRAMS)
2015-01-22 05:19:11 +01:00
clean-noinstPROGRAMS :
-test -z " $( noinst_PROGRAMS) " || rm -f $( noinst_PROGRAMS)
2015-05-13 12:59:14 +02:00
@NATIVE_FALSE@cgo$(EXEEXT) : $( cgo_OBJECTS ) $( cgo_DEPENDENCIES ) $( EXTRA_cgo_DEPENDENCIES )
2015-01-09 22:23:09 +01:00
@ N A T I V E _ F A L S E @ @ r m - f c g o $( EXEEXT )
@ N A T I V E _ F A L S E @ $( LINK ) $( cgo_OBJECTS ) $( cgo_LDADD ) $( LIBS )
2015-05-13 12:59:14 +02:00
@NATIVE_FALSE@go$(EXEEXT) : $( go_OBJECTS ) $( go_DEPENDENCIES ) $( EXTRA_go_DEPENDENCIES )
2015-01-09 22:23:09 +01:00
@ N A T I V E _ F A L S E @ @ r m - f g o $( EXEEXT )
@ N A T I V E _ F A L S E @ $( LINK ) $( go_OBJECTS ) $( go_LDADD ) $( LIBS )
2015-05-13 12:59:14 +02:00
@NATIVE_FALSE@gofmt$(EXEEXT) : $( gofmt_OBJECTS ) $( gofmt_DEPENDENCIES ) $( EXTRA_gofmt_DEPENDENCIES )
2015-01-09 22:23:09 +01:00
@ N A T I V E _ F A L S E @ @ r m - f g o f m t $( EXEEXT )
@ N A T I V E _ F A L S E @ $( LINK ) $( gofmt_OBJECTS ) $( gofmt_LDADD ) $( LIBS )
mostlyclean-compile :
-rm -f *.$( OBJEXT)
distclean-compile :
-rm -f *.tab.c
@ A M D E P _ T R U E @ @ a m _ _ i n c l u d e @ @ a m _ _ q u o t e @ . / $( DEPDIR ) / c g o . P o @ a m _ _ q u o t e @
@ A M D E P _ T R U E @ @ a m _ _ i n c l u d e @ @ a m _ _ q u o t e @ . / $( DEPDIR ) / g o . P o @ a m _ _ q u o t e @
@ A M D E P _ T R U E @ @ a m _ _ i n c l u d e @ @ a m _ _ q u o t e @ . / $( DEPDIR ) / g o f m t . P o @ a m _ _ q u o t e @
.c.o :
@ a m _ _ f a s t d e p C C _ T R U E @ $( COMPILE ) - M T $@ - M D - M P - M F $( DEPDIR ) / $* . T p o - c - o $@ $<
@ a m _ _ f a s t d e p C C _ T R U E @ $( am__mv ) $( DEPDIR ) / $* . T p o $( DEPDIR ) / $* . P o
@ A M D E P _ T R U E @ @ a m _ _ f a s t d e p C C _ F A L S E @ source = '$<' object = '$@' libtool = no @AMDEPBACKSLASH@
@ A M D E P _ T R U E @ @ a m _ _ f a s t d e p C C _ F A L S E @ DEPDIR = $( DEPDIR) $( CCDEPMODE) $( depcomp) @AMDEPBACKSLASH@
@ a m _ _ f a s t d e p C C _ F A L S E @ $( COMPILE ) - c $<
.c.obj :
@ a m _ _ f a s t d e p C C _ T R U E @ $( COMPILE ) - M T $@ - M D - M P - M F $( DEPDIR ) / $* . T p o - c - o $@ ` $( CYGPATH_W ) '$<' `
@ a m _ _ f a s t d e p C C _ T R U E @ $( am__mv ) $( DEPDIR ) / $* . T p o $( DEPDIR ) / $* . P o
@ A M D E P _ T R U E @ @ a m _ _ f a s t d e p C C _ F A L S E @ source = '$<' object = '$@' libtool = no @AMDEPBACKSLASH@
@ A M D E P _ T R U E @ @ a m _ _ f a s t d e p C C _ F A L S E @ DEPDIR = $( DEPDIR) $( CCDEPMODE) $( depcomp) @AMDEPBACKSLASH@
@ a m _ _ f a s t d e p C C _ F A L S E @ $( COMPILE ) - c ` $( CYGPATH_W ) '$<' `
2015-01-23 02:42:08 +01:00
install-man1 : $( man_MANS )
@$( NORMAL_INSTALL)
2015-05-13 12:59:14 +02:00
@list1= '' ; \
list2 = '$(man_MANS)' ; \
test -n " $( man1dir) " \
&& test -n " `echo $$ list1 $$ list2` " \
|| exit 0; \
echo " $( MKDIR_P) ' $( DESTDIR) $( man1dir) ' " ; \
$( MKDIR_P) " $( DESTDIR) $( man1dir) " || exit 1; \
{ for i in $$ list1; do echo " $$ i " ; done ; \
if test -n " $$ list2 " ; then \
for i in $$ list2; do echo " $$ i " ; done \
| sed -n '/\.1[a-z]*$$/p' ; \
fi ; \
2015-01-23 02:42:08 +01:00
} | while read p; do \
if test -f $$ p; then d = ; else d = " $( srcdir) / " ; fi ; \
echo " $$ d $$ p " ; echo " $$ p " ; \
done | \
sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
-e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
sed 'N;N;s,\n, ,g' | { \
list = ; while read file base inst; do \
if test " $$ base " = " $$ inst " ; then list = " $$ list $$ file " ; else \
echo " $( INSTALL_DATA) ' $$ file' ' $( DESTDIR) $( man1dir) / $$ inst' " ; \
$( INSTALL_DATA) " $$ file " " $( DESTDIR) $( man1dir) / $$ inst " || exit $$ ?; \
fi ; \
done ; \
for i in $$ list; do echo " $$ i " ; done | $( am__base_list) | \
while read files; do \
test -z " $$ files " || { \
echo " $( INSTALL_DATA) $$ files ' $( DESTDIR) $( man1dir) ' " ; \
$( INSTALL_DATA) $$ files " $( DESTDIR) $( man1dir) " || exit $$ ?; } ; \
done ; }
uninstall-man1 :
@$( NORMAL_UNINSTALL)
@list= '' ; test -n " $( man1dir) " || exit 0; \
files = ` { for i in $$ list; do echo " $$ i " ; done ; \
l2 = '$(man_MANS)' ; for i in $$ l2; do echo " $$ i " ; done | \
sed -n '/\.1[a-z]*$$/p' ; \
} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
-e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' ` ; \
2015-05-13 12:59:14 +02:00
dir = '$(DESTDIR)$(man1dir)' ; $( am__uninstall_files_from_dir)
2015-01-09 22:23:09 +01:00
ID : $( HEADERS ) $( SOURCES ) $( LISP ) $( TAGS_FILES )
list = '$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)' ; \
unique = ` for i in $$ list; do \
if test -f " $$ i " ; then echo $$ i; else echo $( srcdir) /$$ i; fi ; \
done | \
$( AWK) ' { files[ $$ 0] = 1; nonempty = 1; } \
END { if ( nonempty) { for ( i in files) print i; } ; } ' ` ; \
mkid -fID $$ unique
tags : TAGS
TAGS : $( HEADERS ) $( SOURCES ) $( TAGS_DEPENDENCIES ) \
$( TAGS_FILES) $( LISP)
set x; \
here = ` pwd ` ; \
list = '$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)' ; \
unique = ` for i in $$ list; do \
if test -f " $$ i " ; then echo $$ i; else echo $( srcdir) /$$ i; fi ; \
done | \
$( AWK) ' { files[ $$ 0] = 1; nonempty = 1; } \
END { if ( nonempty) { for ( i in files) print i; } ; } ' ` ; \
shift; \
if test -z " $( ETAGS_ARGS) $$ * $$ unique " ; then :; else \
test -n " $$ unique " || unique = $$ empty_fix; \
if test $$ # -gt 0; then \
$( ETAGS) $( ETAGSFLAGS) $( AM_ETAGSFLAGS) $( ETAGS_ARGS) \
" $$ @ " $$ unique; \
else \
$( ETAGS) $( ETAGSFLAGS) $( AM_ETAGSFLAGS) $( ETAGS_ARGS) \
$$ unique; \
fi ; \
fi
ctags : CTAGS
CTAGS : $( HEADERS ) $( SOURCES ) $( TAGS_DEPENDENCIES ) \
$( TAGS_FILES) $( LISP)
list = '$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)' ; \
unique = ` for i in $$ list; do \
if test -f " $$ i " ; then echo $$ i; else echo $( srcdir) /$$ i; fi ; \
done | \
$( AWK) ' { files[ $$ 0] = 1; nonempty = 1; } \
END { if ( nonempty) { for ( i in files) print i; } ; } ' ` ; \
test -z " $( CTAGS_ARGS) $$ unique " \
|| $( CTAGS) $( CTAGSFLAGS) $( AM_CTAGSFLAGS) $( CTAGS_ARGS) \
$$ unique
GTAGS :
here = ` $( am__cd) $( top_builddir) && pwd ` \
&& $( am__cd) $( top_srcdir) \
&& gtags -i $( GTAGS_ARGS) " $$ here "
distclean-tags :
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
check-am : all -am
check : check -am
2015-01-23 02:42:08 +01:00
all-am : Makefile $( PROGRAMS ) $( MANS )
2015-01-09 22:23:09 +01:00
installdirs :
2015-01-23 02:42:08 +01:00
for dir in " $( DESTDIR) $( bindir) " " $( DESTDIR) $( man1dir) " ; do \
2015-01-09 22:23:09 +01:00
test -z " $$ dir " || $( MKDIR_P) " $$ dir " ; \
done
install : install -am
install-exec : install -exec -am
install-data : install -data -am
uninstall : uninstall -am
install-am : all -am
@$( MAKE) $( AM_MAKEFLAGS) install-exec-am install-data-am
installcheck : installcheck -am
install-strip :
2015-05-13 12:59:14 +02:00
if test -z '$(STRIP)' ; then \
$( MAKE) $( AM_MAKEFLAGS) INSTALL_PROGRAM = " $( INSTALL_STRIP_PROGRAM) " \
install_sh_PROGRAM = " $( INSTALL_STRIP_PROGRAM) " INSTALL_STRIP_FLAG = -s \
install; \
else \
$( MAKE) $( AM_MAKEFLAGS) INSTALL_PROGRAM = " $( INSTALL_STRIP_PROGRAM) " \
install_sh_PROGRAM = " $( INSTALL_STRIP_PROGRAM) " INSTALL_STRIP_FLAG = -s \
" INSTALL_PROGRAM_ENV=STRIPPROG=' $( STRIP) ' " install; \
fi
2015-01-09 22:23:09 +01:00
mostlyclean-generic :
2015-01-10 01:23:48 +01:00
-test -z " $( MOSTLYCLEANFILES) " || rm -f $( MOSTLYCLEANFILES)
2015-01-09 22:23:09 +01:00
clean-generic :
distclean-generic :
-test -z " $( CONFIG_CLEAN_FILES) " || rm -f $( CONFIG_CLEAN_FILES)
-test . = " $( srcdir) " || test -z " $( CONFIG_CLEAN_VPATH_FILES) " || rm -f $( CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic :
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
2017-09-14 19:11:35 +02:00
@NATIVE_FALSE@uninstall-local :
2017-09-19 09:51:49 +02:00
@NATIVE_FALSE@install-exec-local :
2015-01-09 22:23:09 +01:00
clean : clean -am
2015-01-22 05:19:11 +01:00
clean-am : clean -binPROGRAMS clean -generic clean -noinstPROGRAMS \
2015-01-09 22:23:09 +01:00
mostlyclean-am
distclean : distclean -am
-rm -f $( am__CONFIG_DISTCLEAN_FILES)
-rm -rf ./$( DEPDIR)
-rm -f Makefile
distclean-am : clean -am distclean -compile distclean -generic \
distclean-tags
dvi : dvi -am
dvi-am :
html : html -am
html-am :
info : info -am
info-am :
2015-01-23 02:42:08 +01:00
install-data-am : install -man
2015-01-09 22:23:09 +01:00
install-dvi : install -dvi -am
install-dvi-am :
2015-01-22 05:19:11 +01:00
install-exec-am : install -binPROGRAMS install -exec -local
2015-01-09 22:23:09 +01:00
install-html : install -html -am
install-html-am :
install-info : install -info -am
install-info-am :
2015-01-23 02:42:08 +01:00
install-man : install -man 1
2015-01-09 22:23:09 +01:00
install-pdf : install -pdf -am
install-pdf-am :
install-ps : install -ps -am
install-ps-am :
installcheck-am :
maintainer-clean : maintainer -clean -am
-rm -f $( am__CONFIG_DISTCLEAN_FILES)
-rm -rf $( top_srcdir) /autom4te.cache
-rm -rf ./$( DEPDIR)
-rm -f Makefile
maintainer-clean-am : distclean -am maintainer -clean -generic
mostlyclean : mostlyclean -am
2017-06-14 21:26:21 +02:00
mostlyclean-am : mostlyclean -compile mostlyclean -generic \
mostlyclean-local
2015-01-09 22:23:09 +01:00
pdf : pdf -am
pdf-am :
ps : ps -am
ps-am :
2015-01-23 02:42:08 +01:00
uninstall-am : uninstall -binPROGRAMS uninstall -local uninstall -man
uninstall-man : uninstall -man 1
2015-01-09 22:23:09 +01:00
.MAKE : install -am install -strip
.PHONY : CTAGS GTAGS all all -am am --refresh check check -am clean \
2015-01-22 05:19:11 +01:00
clean-binPROGRAMS clean-generic clean-noinstPROGRAMS ctags \
2015-01-09 22:23:09 +01:00
distclean distclean-compile distclean-generic distclean-tags \
dvi dvi-am html html-am info info-am install install-am \
install-binPROGRAMS install-data install-data-am install-dvi \
2015-01-22 05:19:11 +01:00
install-dvi-am install-exec install-exec-am install-exec-local \
install-html install-html-am install-info install-info-am \
2015-01-23 02:42:08 +01:00
install-man install-man1 install-pdf install-pdf-am install-ps \
2015-01-22 05:19:11 +01:00
install-ps-am install-strip installcheck installcheck-am \
installdirs maintainer-clean maintainer-clean-generic \
2017-06-14 21:26:21 +02:00
mostlyclean mostlyclean-compile mostlyclean-generic \
mostlyclean-local pdf pdf-am ps ps-am tags uninstall \
uninstall-am uninstall-binPROGRAMS uninstall-local \
uninstall-man uninstall-man1
2015-01-09 22:23:09 +01:00
zdefaultcc.go : s -zdefaultcc ; @true
s-zdefaultcc : Makefile
echo 'package main' > zdefaultcc.go.tmp
echo 'const defaultGCCGO = "$(bindir)/$(GCCGO_INSTALL_NAME)"' >> zdefaultcc.go.tmp
2017-06-27 00:47:18 +02:00
echo 'const defaultCC = "$(GCC_INSTALL_NAME)"' >> zdefaultcc.go.tmp
echo 'const defaultCXX = "$(GXX_INSTALL_NAME)"' >> zdefaultcc.go.tmp
2017-01-14 01:05:42 +01:00
echo 'const defaultPkgConfig = "pkg-config"' >> zdefaultcc.go.tmp
2015-01-09 22:23:09 +01:00
$( SHELL) $( srcdir) /../move-if-change zdefaultcc.go.tmp zdefaultcc.go
$( STAMP) $@
2017-06-29 18:01:38 +02:00
mostlyclean-local :
rm -rf check-go-dir check-runtime-dir cgo-test-dir carchive-test-dir
2017-09-14 19:11:35 +02:00
@NATIVE_TRUE@go$(EXEEXT) : $( go_cmd_go_files ) $( LIBGOTOOL ) $( LIBGODEP )
@ N A T I V E _ T R U E @ $( GOLINK ) $( go_cmd_go_files ) $( LIBGOTOOL ) $( LIBS ) $( NET_LIBS )
2015-01-09 22:23:09 +01:00
@NATIVE_TRUE@gofmt$(EXEEXT) : $( go_cmd_gofmt_files ) $( LIBGODEP )
2015-01-20 10:26:50 +01:00
@ N A T I V E _ T R U E @ $( GOLINK ) $( go_cmd_gofmt_files ) $( LIBS ) $( NET_LIBS )
2015-01-09 22:23:09 +01:00
@NATIVE_TRUE@cgo$(EXEEXT) : $( go_cmd_cgo_files ) zdefaultcc .go $( LIBGODEP )
2015-01-20 10:26:50 +01:00
@ N A T I V E _ T R U E @ $( GOLINK ) $( go_cmd_cgo_files ) z d e f a u l t c c . g o $( LIBS ) $( NET_LIBS )
2015-01-09 22:23:09 +01:00
2015-01-22 05:19:11 +01:00
@NATIVE_TRUE@install-exec-local : cgo $( EXEEXT )
@ N A T I V E _ T R U E @ $( MKDIR_P ) $( DESTDIR ) $( libexecsubdir )
@ N A T I V E _ T R U E @ r m - f $( DESTDIR ) $( libexecsubdir ) / c g o $( exeext )
@ N A T I V E _ T R U E @ $( INSTALL_PROGRAM ) c g o $( exeext ) $( DESTDIR ) $( libexecsubdir ) / c g o $( exeext )
@NATIVE_TRUE@uninstall-local :
@ N A T I V E _ T R U E @ r m - f $( DESTDIR ) $( libexecsubdir ) / c g o $( exeext )
2017-06-14 21:26:21 +02:00
# Run tests using the go tool, and frob the output to look like that
# generated by DejaGNU. The main output of this is two files:
# gotools.sum and gotools.log.
# check-head starts generating the log files in DejaGNU format. This
# is a separate target so that the date is approximately when we start
# running the tests.
@NATIVE_TRUE@check-head :
@ N A T I V E _ T R U E @ @ e c h o "Test Run By $${USER} on `date`" > g o t o o l s . h e a d
@ N A T I V E _ T R U E @ @ e c h o "Native configuration is $(host_triplet)" > > g o t o o l s . h e a d
@ N A T I V E _ T R U E @ @ e c h o > > g o t o o l s . h e a d
@ N A T I V E _ T R U E @ @ e c h o " === gotools tests ===" > > g o t o o l s . h e a d
@ N A T I V E _ T R U E @ @ e c h o > > g o t o o l s . h e a d
# check-gccgo is a little shell script that executes gccgo with the
# options to pick up the newly built libgo.
@NATIVE_TRUE@check-gccgo : Makefile
2017-08-30 20:27:17 +02:00
@ N A T I V E _ T R U E @ r m - f $@ $@ . t m p
@ N A T I V E _ T R U E @ e c h o "#!/bin/sh" > $@ . t m p
2017-06-14 21:26:21 +02:00
@ N A T I V E _ T R U E @ abs_libgodir = ` cd $( libgodir) && $( PWD_COMMAND) ` ; \
2017-08-30 20:27:17 +02:00
@ N A T I V E _ T R U E @ e c h o "$(GOCOMPILE)" '"$$@"' "-I $${abs_libgodir} -L $${abs_libgodir} -L $${abs_libgodir}/.libs" > > $@ . t m p
@ N A T I V E _ T R U E @ c h m o d + x $@ . t m p
@ N A T I V E _ T R U E @ m v - f $@ . t m p $@
# check-gcc is a little shell script that executes the newly built gcc
# with the options to pick up the newly built libgo.
@NATIVE_TRUE@check-gcc : Makefile
@ N A T I V E _ T R U E @ r m - f $@ $@ . t m p
@ N A T I V E _ T R U E @ e c h o "#!/bin/sh" > $@ . t m p
@ N A T I V E _ T R U E @ abs_libgodir = ` cd $( libgodir) && $( PWD_COMMAND) ` ; \
@ N A T I V E _ T R U E @ e c h o "$(GCC_FOR_TARGET)" '"$$@"' "-L $${abs_libgodir} -L $${abs_libgodir}/.libs" > > $@ . t m p
@ N A T I V E _ T R U E @ c h m o d + x $@ . t m p
@ N A T I V E _ T R U E @ m v - f $@ . t m p $@
2017-06-14 21:26:21 +02:00
# check-go-tools runs `go test cmd/go` in our environment.
2017-08-30 20:27:17 +02:00
@NATIVE_TRUE@check-go-tool : go $( EXEEXT ) cgo $( EXEEXT ) check -head check -gccgo check -gcc
2017-06-29 18:01:38 +02:00
@ N A T I V E _ T R U E @ r m - r f c h e c k - g o - d i r c m d _ g o - t e s t l o g
2017-06-14 21:26:21 +02:00
@ N A T I V E _ T R U E @ $( MKDIR_P ) c h e c k - g o - d i r / s r c / c m d / g o
@ N A T I V E _ T R U E @ c p $( cmdsrcdir ) / g o / * . g o c h e c k - g o - d i r / s r c / c m d / g o /
2017-09-14 19:11:35 +02:00
@ N A T I V E _ T R U E @ c p - r $( cmdsrcdir ) / g o / i n t e r n a l c h e c k - g o - d i r / s r c / c m d / g o /
@ N A T I V E _ T R U E @ c p $( libgodir ) / z s t d p k g l i s t . g o c h e c k - g o - d i r / s r c / c m d / g o / i n t e r n a l / l o a d /
@ N A T I V E _ T R U E @ c p $( libgodir ) / z d e f a u l t c c . g o c h e c k - g o - d i r / s r c / c m d / g o / i n t e r n a l / c f g /
2017-06-14 21:26:21 +02:00
@ N A T I V E _ T R U E @ c p - r $( cmdsrcdir ) / g o / t e s t d a t a c h e c k - g o - d i r / s r c / c m d / g o /
2017-09-14 19:11:35 +02:00
@ N A T I V E _ T R U E @ c p - r $( cmdsrcdir ) / i n t e r n a l c h e c k - g o - d i r / s r c / c m d /
2017-06-29 18:01:38 +02:00
@ N A T I V E _ T R U E @ @ abs_libgodir = ` cd $( libgodir) && $( PWD_COMMAND) ` ; \
@ N A T I V E _ T R U E @ abs_checkdir = ` cd check-go-dir && $( PWD_COMMAND) ` ; \
@ N A T I V E _ T R U E @ e c h o "cd check-go-dir/src/cmd/go && $(ECHO_ENV) GOPATH=$${abs_checkdir} $(abs_builddir)/go$(EXEEXT) test -test.short -test.v" > c m d _ g o - t e s t l o g
2017-06-14 21:26:21 +02:00
@ N A T I V E _ T R U E @ $( CHECK_ENV ) \
@ N A T I V E _ T R U E @ GOPATH = ` cd check-go-dir && $( PWD_COMMAND) ` ; \
@ N A T I V E _ T R U E @ export G O P A T H ; \
2017-09-14 19:11:35 +02:00
@ N A T I V E _ T R U E @ ( c d c h e c k - g o - d i r / s r c / c m d / g o & & $( abs_builddir ) / g o $( EXEEXT ) t e s t - t e s t . s h o r t - t e s t . v ) > > c m d _ g o - t e s t l o g 2 > & 1 | | e c h o "--- $${fl} go test cmd/go (0.00s)" > > c m d _ g o - t e s t l o g
2017-09-19 09:51:49 +02:00
@ N A T I V E _ T R U E @ g r e p '^--- ' c m d _ g o - t e s t l o g | s e d - e 's/^--- \(.*\) ([^)]*)$$/\1/' | s o r t - k 2
2017-06-14 21:26:21 +02:00
2017-06-29 18:01:38 +02:00
# check-runtime runs `go test runtime` in our environment.
# The runtime package is also tested as part of libgo,
# but the runtime tests use the go tool heavily, so testing
# here too will catch more problems.
2017-08-30 20:27:17 +02:00
@NATIVE_TRUE@check-runtime : go $( EXEEXT ) cgo $( EXEEXT ) check -head check -gccgo check -gcc
2017-06-29 18:01:38 +02:00
@ N A T I V E _ T R U E @ r m - r f c h e c k - r u n t i m e - d i r r u n t i m e - t e s t l o g
@ N A T I V E _ T R U E @ $( MKDIR_P ) c h e c k - r u n t i m e - d i r
@ N A T I V E _ T R U E @ @ abs_libgodir = ` cd $( libgodir) && $( PWD_COMMAND) ` ; \
@NATIVE_TRUE@ LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs : $${LD_LIBRARY_PATH } | sed 's , ::*, :, g ;s , ^:*, , ;s , :*$$, , '`; \
@ N A T I V E _ T R U E @ GOARCH = ` $( abs_builddir) /go$( EXEEXT) env GOARCH` ; \
@ N A T I V E _ T R U E @ GOOS = ` $( abs_builddir) /go$( EXEEXT) env GOOS` ; \
@ N A T I V E _ T R U E @ files = ` $( SHELL) $( libgosrcdir) /../match.sh --goarch= $$ { GOARCH} --goos= $$ { GOOS} --srcdir= $( libgosrcdir) /runtime --extrafiles= " $( libgodir) /runtime_sysinfo.go $( libgodir) /sigtab.go " --tag= libffi` ; \
2017-09-19 09:51:49 +02:00
@ N A T I V E _ T R U E @ e c h o "$(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" > r u n t i m e - t e s t l o g
2017-06-29 18:01:38 +02:00
@ N A T I V E _ T R U E @ $( CHECK_ENV ) \
@ N A T I V E _ T R U E @ GC = " $$ {GCCGO} -fgo-compiling-runtime " ; \
@ N A T I V E _ T R U E @ export G C ; \
@ N A T I V E _ T R U E @ GOARCH = ` $( abs_builddir) /go$( EXEEXT) env GOARCH` ; \
@ N A T I V E _ T R U E @ GOOS = ` $( abs_builddir) /go$( EXEEXT) env GOOS` ; \
@ N A T I V E _ T R U E @ files = ` $( SHELL) $( libgosrcdir) /../match.sh --goarch= $$ { GOARCH} --goos= $$ { GOOS} --srcdir= $( libgosrcdir) /runtime --extrafiles= " $( libgodir) /runtime_sysinfo.go $( libgodir) /sigtab.go " --tag= libffi` ; \
2017-09-19 09:51:49 +02:00
@ N A T I V E _ T R U E @ $( SHELL ) $( libgosrcdir ) / . . / t e s t s u i t e / g o t e s t --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
@ N A T I V E _ T R U E @ g r e p '^--- ' r u n t i m e - t e s t l o g | s e d - e 's/^--- \(.*\) ([^)]*)$$/\1/' | s o r t - k 2
2017-06-29 18:01:38 +02:00
# check-cgo-test runs `go test misc/cgo/test` in our environment.
2017-08-30 20:27:17 +02:00
@NATIVE_TRUE@check-cgo-test : go $( EXEEXT ) cgo $( EXEEXT ) check -head check -gccgo check -gcc
2017-06-29 18:01:38 +02:00
@ N A T I V E _ T R U E @ r m - r f c g o - t e s t - d i r c g o - t e s t l o g
@ N A T I V E _ T R U E @ $( MKDIR_P ) c g o - t e s t - d i r / m i s c / c g o
@ N A T I V E _ T R U E @ c p - r $( libgomiscdir ) / c g o / t e s t c g o - t e s t - d i r / m i s c / c g o /
@ N A T I V E _ T R U E @ @ abs_libgodir = ` cd $( libgodir) && $( PWD_COMMAND) ` ; \
@ N A T I V E _ T R U E @ e c h o "cd cgo-test-dir/misc/cgo/test && $(ECHO_ENV) GOTRACEBACK=2 $(abs_builddir)/go$(EXEEXT) test -test.short -test.v" > c g o - t e s t l o g
@ N A T I V E _ T R U E @ $( CHECK_ENV ) \
@ N A T I V E _ T R U E @ GOTRACEBACK = 2; \
@ N A T I V E _ T R U E @ export G O T R A C E B A C K ; \
2017-09-14 19:11:35 +02:00
@ N A T I V E _ T R U E @ ( c d c g o - t e s t - d i r / m i s c / c g o / t e s t & & $( abs_builddir ) / g o $( EXEEXT ) t e s t - t e s t . s h o r t - t e s t . v ) > > c g o - t e s t l o g 2 > & 1 | | e c h o "--- $${fl} go test misc/cgo/test (0.00s)" > > c g o - t e s t l o g
2017-09-19 09:51:49 +02:00
@ N A T I V E _ T R U E @ g r e p '^--- ' c g o - t e s t l o g | s e d - e 's/^--- \(.*\) ([^)]*)$$/\1/' | s o r t - k 2
2017-06-29 18:01:38 +02:00
# check-carchive-test runs `go test misc/cgo/testcarchive/carchive_test.go`
# in our environment.
2017-08-30 20:27:17 +02:00
@NATIVE_TRUE@check-carchive-test : go $( EXEEXT ) cgo $( EXEEXT ) check -head check -gccgo check -gcc
2017-06-29 18:01:38 +02:00
@ N A T I V E _ T R U E @ r m - r f c a r c h i v e - t e s t - d i r c a r c h i v e - t e s t l o g
@ N A T I V E _ T R U E @ $( MKDIR_P ) c a r c h i v e - t e s t - d i r / m i s c / c g o
@ N A T I V E _ T R U E @ c p - r $( libgomiscdir ) / c g o / t e s t c a r c h i v e c a r c h i v e - t e s t - d i r / m i s c / c g o /
@ N A T I V E _ T R U E @ @ abs_libgodir = ` cd $( libgodir) && $( PWD_COMMAND) ` ; \
@ N A T I V E _ T R U E @ e c h o "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" > c a r c h i v e - t e s t l o g
@ N A T I V E _ T R U E @ $( CHECK_ENV ) \
@NATIVE_TRUE@ LIBRARY_PATH=`echo $${abs_libgodir}/.libs : $${LIBRARY_PATH } | sed 's , ::*, :, g ;s , ^:*, , ;s , :*$$, , '`; \
@ N A T I V E _ T R U E @ export L I B R A R Y _ P A T H ; \
2017-09-14 19:11:35 +02:00
@ N A T I V E _ T R U E @ ( c d c a r c h i v e - t e s t - d i r / m i s c / c g o / t e s t c a r c h i v e & & $( abs_builddir ) / g o $( EXEEXT ) t e s t - t e s t . v c a r c h i v e _ t e s t . g o ) > > c a r c h i v e - t e s t l o g 2 > & 1 | | e c h o "--- $${fl} go test misc/cgo/testcarchive (0.00s)" > > c a r c h i v e - t e s t l o g
2017-09-19 09:51:49 +02:00
@ N A T I V E _ T R U E @ g r e p '^--- ' c a r c h i v e - t e s t l o g | s e d - e 's/^--- \(.*\) ([^)]*)$$/\1/' | s o r t - k 2
2017-06-29 18:01:38 +02:00
2017-06-14 21:26:21 +02:00
# The check targets runs the tests and assembles the output files.
2017-06-29 18:01:38 +02:00
@NATIVE_TRUE@check : check -head check -go -tool check -runtime check -cgo -test check -carchive -test
@ N A T I V E _ T R U E @ @ m v g o t o o l s . h e a d g o t o o l s . s u m
@ N A T I V E _ T R U E @ @ c p g o t o o l s . s u m g o t o o l s . l o g
@ N A T I V E _ T R U E @ @ f o r f i l e i n c m d _ g o - t e s t l o g r u n t i m e - t e s t l o g c g o - t e s t l o g c a r c h i v e - t e s t l o g ; d o \
2017-06-14 21:26:21 +02:00
@ N A T I V E _ T R U E @ testname = ` echo $$ { file} | sed -e 's/-testlog//' -e 's|_|/|' ` ; \
@ N A T I V E _ T R U E @ e c h o "Running $${testname}" > > g o t o o l s . s u m ; \
@ N A T I V E _ T R U E @ e c h o "Running $${testname}" > > g o t o o l s . l o g ; \
@ N A T I V E _ T R U E @ s e d - e 's/^--- \(.*\) ([^)]*)$$/\1/' < $$ { f i l e } > > g o t o o l s . l o g ; \
2017-09-19 09:51:49 +02:00
@ N A T I V E _ T R U E @ g r e p '^--- ' $$ { f i l e } | s e d - e 's/^--- \(.*\) ([^)]*)$$/\1/' - e 's/SKIP/UNTESTED/' | s o r t - k 2 > > g o t o o l s . s u m ; \
2017-06-14 21:26:21 +02:00
@ N A T I V E _ T R U E @ d o n e
@ N A T I V E _ T R U E @ @ e c h o > > g o t o o l s . s u m
@ N A T I V E _ T R U E @ @ e c h o " === gotools Summary ===" > > g o t o o l s . s u m
2017-06-29 18:01:38 +02:00
@ N A T I V E _ T R U E @ @ pass = ` grep -c '^PASS' gotools.sum` ; \
2017-06-14 21:26:21 +02:00
@ N A T I V E _ T R U E @ i f t e s t "$${pass}" - n e "0" ; t h e n \
@ N A T I V E _ T R U E @ e c h o "# of expected passes $${pass}" > > g o t o o l s . s u m ; \
@ N A T I V E _ T R U E @ f i
2017-06-29 18:01:38 +02:00
@ N A T I V E _ T R U E @ @ fail = ` grep -c '^FAIL' gotools.sum` ; \
2017-06-14 21:26:21 +02:00
@ N A T I V E _ T R U E @ i f t e s t "$${fail}" - n e "0" ; t h e n \
@ N A T I V E _ T R U E @ e c h o "# of unexpected failures $${fail}" > > g o t o o l s . s u m ; \
@ N A T I V E _ T R U E @ f i
2017-06-29 18:01:38 +02:00
@ N A T I V E _ T R U E @ @ untested = ` grep -c '^UNTESTED' gotools.sum` ; \
2017-06-14 21:26:21 +02:00
@ N A T I V E _ T R U E @ i f t e s t "$${untested}" - n e "0" ; t h e n \
@ N A T I V E _ T R U E @ e c h o "# of untested testcases $${untested}" > > g o t o o l s . s u m ; \
@ N A T I V E _ T R U E @ f i
2017-06-29 18:01:38 +02:00
@ N A T I V E _ T R U E @ @ e c h o ` e c h o $( GOC_FOR_TARGET ) | s e d - e 's/ .*//' ` ` $( GOC_FOR_TARGET ) - v 2 > & 1 | g r e p " version" | s e d - n - e 's/.* \(version.*$$\)/\1/p' ` > > g o t o o l s . s u m
@ N A T I V E _ T R U E @ @ e c h o > > g o t o o l s . l o g
@ N A T I V E _ T R U E @ @ e c h o "runtest completed at `date`" > > g o t o o l s . l o g
@ N A T I V E _ T R U E @ @ i f g r e p '^FAIL' g o t o o l s . s u m > / d e v / n u l l 2 > & 1 ; t h e n e x i t 1 ; f i
2017-06-14 21:26:21 +02:00
2017-06-29 18:01:38 +02:00
@NATIVE_TRUE@.PHONY : check check -head check -go -tool check -runtime check -cgo -test check -carchive -test
2017-06-14 21:26:21 +02:00
2015-01-09 22:23:09 +01:00
# For a non-native build we have to build the programs using a
# previously built host (or build -> host) Go compiler. We should
# only do this if such a compiler is available. We also need to get
# the right values for GOARCH and GOOS in the default build context in
# the go/build package. Figure this out later.
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT :