annotate gotools/Makefile.in @ 120:f93fa5091070

fix conv1.c
author mir3636
date Thu, 08 Mar 2018 14:53:42 +0900
parents 04ced10e8804
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 # Makefile.in generated by automake 1.11.6 from Makefile.am.
kono
parents:
diff changeset
2 # @configure_input@
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
kono
parents:
diff changeset
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
kono
parents:
diff changeset
6 # Foundation, Inc.
kono
parents:
diff changeset
7 # This Makefile.in is free software; the Free Software Foundation
kono
parents:
diff changeset
8 # gives unlimited permission to copy and/or distribute it,
kono
parents:
diff changeset
9 # with or without modifications, as long as this notice is preserved.
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 # This program is distributed in the hope that it will be useful,
kono
parents:
diff changeset
12 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
kono
parents:
diff changeset
13 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
kono
parents:
diff changeset
14 # PARTICULAR PURPOSE.
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 @SET_MAKE@
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 # Makefile for gotools
kono
parents:
diff changeset
19 # Copyright (C) 2015-2016 Free Software Foundation, Inc.
kono
parents:
diff changeset
20 #
kono
parents:
diff changeset
21 # This file is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
22 # it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
23 # the Free Software Foundation; either version 3 of the License, or
kono
parents:
diff changeset
24 # (at your option) any later version.
kono
parents:
diff changeset
25 #
kono
parents:
diff changeset
26 # This program is distributed in the hope that it will be useful,
kono
parents:
diff changeset
27 # but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
28 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
29 # GNU General Public License for more details.
kono
parents:
diff changeset
30 #
kono
parents:
diff changeset
31 # You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
32 # along with this program; see the file COPYING3. If not see
kono
parents:
diff changeset
33 # <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
34
kono
parents:
diff changeset
35 VPATH = @srcdir@
kono
parents:
diff changeset
36 am__make_dryrun = \
kono
parents:
diff changeset
37 { \
kono
parents:
diff changeset
38 am__dry=no; \
kono
parents:
diff changeset
39 case $$MAKEFLAGS in \
kono
parents:
diff changeset
40 *\\[\ \ ]*) \
kono
parents:
diff changeset
41 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
kono
parents:
diff changeset
42 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
kono
parents:
diff changeset
43 *) \
kono
parents:
diff changeset
44 for am__flg in $$MAKEFLAGS; do \
kono
parents:
diff changeset
45 case $$am__flg in \
kono
parents:
diff changeset
46 *=*|--*) ;; \
kono
parents:
diff changeset
47 *n*) am__dry=yes; break;; \
kono
parents:
diff changeset
48 esac; \
kono
parents:
diff changeset
49 done;; \
kono
parents:
diff changeset
50 esac; \
kono
parents:
diff changeset
51 test $$am__dry = yes; \
kono
parents:
diff changeset
52 }
kono
parents:
diff changeset
53 pkgdatadir = $(datadir)/@PACKAGE@
kono
parents:
diff changeset
54 pkgincludedir = $(includedir)/@PACKAGE@
kono
parents:
diff changeset
55 pkglibdir = $(libdir)/@PACKAGE@
kono
parents:
diff changeset
56 pkglibexecdir = $(libexecdir)/@PACKAGE@
kono
parents:
diff changeset
57 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
kono
parents:
diff changeset
58 install_sh_DATA = $(install_sh) -c -m 644
kono
parents:
diff changeset
59 install_sh_PROGRAM = $(install_sh) -c
kono
parents:
diff changeset
60 install_sh_SCRIPT = $(install_sh) -c
kono
parents:
diff changeset
61 INSTALL_HEADER = $(INSTALL_DATA)
kono
parents:
diff changeset
62 transform = $(program_transform_name)
kono
parents:
diff changeset
63 NORMAL_INSTALL = :
kono
parents:
diff changeset
64 PRE_INSTALL = :
kono
parents:
diff changeset
65 POST_INSTALL = :
kono
parents:
diff changeset
66 NORMAL_UNINSTALL = :
kono
parents:
diff changeset
67 PRE_UNINSTALL = :
kono
parents:
diff changeset
68 POST_UNINSTALL = :
kono
parents:
diff changeset
69 build_triplet = @build@
kono
parents:
diff changeset
70 host_triplet = @host@
kono
parents:
diff changeset
71 target_triplet = @target@
kono
parents:
diff changeset
72 subdir = .
kono
parents:
diff changeset
73 DIST_COMMON = README ChangeLog $(srcdir)/Makefile.in \
kono
parents:
diff changeset
74 $(srcdir)/Makefile.am $(top_srcdir)/configure \
kono
parents:
diff changeset
75 $(am__configure_deps) $(srcdir)/../mkinstalldirs \
kono
parents:
diff changeset
76 $(srcdir)/../depcomp
kono
parents:
diff changeset
77 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
kono
parents:
diff changeset
78 am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
kono
parents:
diff changeset
79 $(top_srcdir)/../config/depstand.m4 \
kono
parents:
diff changeset
80 $(top_srcdir)/../config/lead-dot.m4 \
kono
parents:
diff changeset
81 $(top_srcdir)/../config/override.m4 $(top_srcdir)/config/go.m4 \
kono
parents:
diff changeset
82 $(top_srcdir)/configure.ac
kono
parents:
diff changeset
83 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
kono
parents:
diff changeset
84 $(ACLOCAL_M4)
kono
parents:
diff changeset
85 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
kono
parents:
diff changeset
86 configure.lineno config.status.lineno
kono
parents:
diff changeset
87 CONFIG_CLEAN_FILES =
kono
parents:
diff changeset
88 CONFIG_CLEAN_VPATH_FILES =
kono
parents:
diff changeset
89 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"
kono
parents:
diff changeset
90 PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
kono
parents:
diff changeset
91 cgo_SOURCES = cgo.c
kono
parents:
diff changeset
92 cgo_OBJECTS = cgo.$(OBJEXT)
kono
parents:
diff changeset
93 cgo_LDADD = $(LDADD)
kono
parents:
diff changeset
94 go_SOURCES = go.c
kono
parents:
diff changeset
95 go_OBJECTS = go.$(OBJEXT)
kono
parents:
diff changeset
96 go_LDADD = $(LDADD)
kono
parents:
diff changeset
97 gofmt_SOURCES = gofmt.c
kono
parents:
diff changeset
98 gofmt_OBJECTS = gofmt.$(OBJEXT)
kono
parents:
diff changeset
99 gofmt_LDADD = $(LDADD)
kono
parents:
diff changeset
100 DEFAULT_INCLUDES = -I.@am__isrc@
kono
parents:
diff changeset
101 depcomp = $(SHELL) $(top_srcdir)/../depcomp
kono
parents:
diff changeset
102 am__depfiles_maybe = depfiles
kono
parents:
diff changeset
103 am__mv = mv -f
kono
parents:
diff changeset
104 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
kono
parents:
diff changeset
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
kono
parents:
diff changeset
106 CCLD = $(CC)
kono
parents:
diff changeset
107 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
kono
parents:
diff changeset
108 SOURCES = cgo.c go.c gofmt.c
kono
parents:
diff changeset
109 am__can_run_installinfo = \
kono
parents:
diff changeset
110 case $$AM_UPDATE_INFO_DIR in \
kono
parents:
diff changeset
111 n|no|NO) false;; \
kono
parents:
diff changeset
112 *) (install-info --version) >/dev/null 2>&1;; \
kono
parents:
diff changeset
113 esac
kono
parents:
diff changeset
114 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
kono
parents:
diff changeset
115 am__vpath_adj = case $$p in \
kono
parents:
diff changeset
116 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
kono
parents:
diff changeset
117 *) f=$$p;; \
kono
parents:
diff changeset
118 esac;
kono
parents:
diff changeset
119 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
kono
parents:
diff changeset
120 am__install_max = 40
kono
parents:
diff changeset
121 am__nobase_strip_setup = \
kono
parents:
diff changeset
122 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
kono
parents:
diff changeset
123 am__nobase_strip = \
kono
parents:
diff changeset
124 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
kono
parents:
diff changeset
125 am__nobase_list = $(am__nobase_strip_setup); \
kono
parents:
diff changeset
126 for p in $$list; do echo "$$p $$p"; done | \
kono
parents:
diff changeset
127 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
kono
parents:
diff changeset
128 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
kono
parents:
diff changeset
129 if (++n[$$2] == $(am__install_max)) \
kono
parents:
diff changeset
130 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
kono
parents:
diff changeset
131 END { for (dir in files) print dir, files[dir] }'
kono
parents:
diff changeset
132 am__base_list = \
kono
parents:
diff changeset
133 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
kono
parents:
diff changeset
134 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
kono
parents:
diff changeset
135 am__uninstall_files_from_dir = { \
kono
parents:
diff changeset
136 test -z "$$files" \
kono
parents:
diff changeset
137 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
kono
parents:
diff changeset
138 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
kono
parents:
diff changeset
139 $(am__cd) "$$dir" && rm -f $$files; }; \
kono
parents:
diff changeset
140 }
kono
parents:
diff changeset
141 man1dir = $(mandir)/man1
kono
parents:
diff changeset
142 NROFF = nroff
kono
parents:
diff changeset
143 MANS = $(man_MANS)
kono
parents:
diff changeset
144 ETAGS = etags
kono
parents:
diff changeset
145 CTAGS = ctags
kono
parents:
diff changeset
146 ACLOCAL = @ACLOCAL@
kono
parents:
diff changeset
147 AMTAR = @AMTAR@
kono
parents:
diff changeset
148 AUTOCONF = @AUTOCONF@
kono
parents:
diff changeset
149 AUTOHEADER = @AUTOHEADER@
kono
parents:
diff changeset
150 AUTOMAKE = @AUTOMAKE@
kono
parents:
diff changeset
151 AWK = @AWK@
kono
parents:
diff changeset
152 CC = @CC@
kono
parents:
diff changeset
153 CCDEPMODE = @CCDEPMODE@
kono
parents:
diff changeset
154 CFLAGS = @CFLAGS@
kono
parents:
diff changeset
155 CPPFLAGS = @CPPFLAGS@
kono
parents:
diff changeset
156 CYGPATH_W = @CYGPATH_W@
kono
parents:
diff changeset
157 DEFS = @DEFS@
kono
parents:
diff changeset
158 DEPDIR = @DEPDIR@
kono
parents:
diff changeset
159 ECHO_C = @ECHO_C@
kono
parents:
diff changeset
160 ECHO_N = @ECHO_N@
kono
parents:
diff changeset
161 ECHO_T = @ECHO_T@
kono
parents:
diff changeset
162 EXEEXT = @EXEEXT@
kono
parents:
diff changeset
163 GCC_FOR_TARGET = @GCC_FOR_TARGET@
kono
parents:
diff changeset
164 GOC = @GOC@
kono
parents:
diff changeset
165 GOCFLAGS = $(CFLAGS_FOR_TARGET)
kono
parents:
diff changeset
166 GOC_FOR_TARGET = @GOC_FOR_TARGET@
kono
parents:
diff changeset
167 INSTALL = @INSTALL@
kono
parents:
diff changeset
168 INSTALL_DATA = @INSTALL_DATA@
kono
parents:
diff changeset
169 INSTALL_PROGRAM = @INSTALL_PROGRAM@
kono
parents:
diff changeset
170 INSTALL_SCRIPT = @INSTALL_SCRIPT@
kono
parents:
diff changeset
171 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
kono
parents:
diff changeset
172 LDFLAGS = @LDFLAGS@
kono
parents:
diff changeset
173 LIBOBJS = @LIBOBJS@
kono
parents:
diff changeset
174 LIBS = @LIBS@
kono
parents:
diff changeset
175 LTLIBOBJS = @LTLIBOBJS@
kono
parents:
diff changeset
176 MAINT = @MAINT@
kono
parents:
diff changeset
177 MAKEINFO = @MAKEINFO@
kono
parents:
diff changeset
178 MKDIR_P = @MKDIR_P@
kono
parents:
diff changeset
179 NET_LIBS = @NET_LIBS@
kono
parents:
diff changeset
180 OBJEXT = @OBJEXT@
kono
parents:
diff changeset
181 PACKAGE = @PACKAGE@
kono
parents:
diff changeset
182 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
kono
parents:
diff changeset
183 PACKAGE_NAME = @PACKAGE_NAME@
kono
parents:
diff changeset
184 PACKAGE_STRING = @PACKAGE_STRING@
kono
parents:
diff changeset
185 PACKAGE_TARNAME = @PACKAGE_TARNAME@
kono
parents:
diff changeset
186 PACKAGE_URL = @PACKAGE_URL@
kono
parents:
diff changeset
187 PACKAGE_VERSION = @PACKAGE_VERSION@
kono
parents:
diff changeset
188 PATH_SEPARATOR = @PATH_SEPARATOR@
kono
parents:
diff changeset
189 SET_MAKE = @SET_MAKE@
kono
parents:
diff changeset
190 SHELL = @SHELL@
kono
parents:
diff changeset
191 STRIP = @STRIP@
kono
parents:
diff changeset
192 VERSION = @VERSION@
kono
parents:
diff changeset
193 abs_builddir = @abs_builddir@
kono
parents:
diff changeset
194 abs_srcdir = @abs_srcdir@
kono
parents:
diff changeset
195 abs_top_builddir = @abs_top_builddir@
kono
parents:
diff changeset
196 abs_top_srcdir = @abs_top_srcdir@
kono
parents:
diff changeset
197 ac_ct_CC = @ac_ct_CC@
kono
parents:
diff changeset
198 am__include = @am__include@
kono
parents:
diff changeset
199 am__leading_dot = @am__leading_dot@
kono
parents:
diff changeset
200 am__quote = @am__quote@
kono
parents:
diff changeset
201 am__tar = @am__tar@
kono
parents:
diff changeset
202 am__untar = @am__untar@
kono
parents:
diff changeset
203 bindir = @bindir@
kono
parents:
diff changeset
204 build = @build@
kono
parents:
diff changeset
205 build_alias = @build_alias@
kono
parents:
diff changeset
206 build_cpu = @build_cpu@
kono
parents:
diff changeset
207 build_noncanonical = @build_noncanonical@
kono
parents:
diff changeset
208 build_os = @build_os@
kono
parents:
diff changeset
209 build_vendor = @build_vendor@
kono
parents:
diff changeset
210 builddir = @builddir@
kono
parents:
diff changeset
211 datadir = @datadir@
kono
parents:
diff changeset
212 datarootdir = @datarootdir@
kono
parents:
diff changeset
213 docdir = @docdir@
kono
parents:
diff changeset
214 dvidir = @dvidir@
kono
parents:
diff changeset
215 exec_prefix = @exec_prefix@
kono
parents:
diff changeset
216 host = @host@
kono
parents:
diff changeset
217 host_alias = @host_alias@
kono
parents:
diff changeset
218 host_cpu = @host_cpu@
kono
parents:
diff changeset
219 host_noncanonical = @host_noncanonical@
kono
parents:
diff changeset
220 host_os = @host_os@
kono
parents:
diff changeset
221 host_vendor = @host_vendor@
kono
parents:
diff changeset
222 htmldir = @htmldir@
kono
parents:
diff changeset
223 includedir = @includedir@
kono
parents:
diff changeset
224 infodir = @infodir@
kono
parents:
diff changeset
225 install_sh = @install_sh@
kono
parents:
diff changeset
226 libdir = @libdir@
kono
parents:
diff changeset
227 libexecdir = @libexecdir@
kono
parents:
diff changeset
228 localedir = @localedir@
kono
parents:
diff changeset
229 localstatedir = @localstatedir@
kono
parents:
diff changeset
230 mandir = @mandir@
kono
parents:
diff changeset
231 mkdir_p = @mkdir_p@
kono
parents:
diff changeset
232 oldincludedir = @oldincludedir@
kono
parents:
diff changeset
233 pdfdir = @pdfdir@
kono
parents:
diff changeset
234 prefix = @prefix@
kono
parents:
diff changeset
235 program_transform_name = @program_transform_name@
kono
parents:
diff changeset
236 psdir = @psdir@
kono
parents:
diff changeset
237 sbindir = @sbindir@
kono
parents:
diff changeset
238 sharedstatedir = @sharedstatedir@
kono
parents:
diff changeset
239 srcdir = @srcdir@
kono
parents:
diff changeset
240 sysconfdir = @sysconfdir@
kono
parents:
diff changeset
241 target = @target@
kono
parents:
diff changeset
242 target_alias = @target_alias@
kono
parents:
diff changeset
243 target_cpu = @target_cpu@
kono
parents:
diff changeset
244 target_noncanonical = @target_noncanonical@
kono
parents:
diff changeset
245 target_os = @target_os@
kono
parents:
diff changeset
246 target_vendor = @target_vendor@
kono
parents:
diff changeset
247 top_build_prefix = @top_build_prefix@
kono
parents:
diff changeset
248 top_builddir = @top_builddir@
kono
parents:
diff changeset
249 top_srcdir = @top_srcdir@
kono
parents:
diff changeset
250 ACLOCAL_AMFLAGS = -I ./config -I ../config
kono
parents:
diff changeset
251 gcc_version := $(shell $(GCC_FOR_TARGET) -dumpversion)
kono
parents:
diff changeset
252 libexecsubdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
kono
parents:
diff changeset
253 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
kono
parents:
diff changeset
254 PWD_COMMAND = $${PWDCMD-pwd}
kono
parents:
diff changeset
255 STAMP = echo timestamp >
kono
parents:
diff changeset
256 libgodir = ../$(target_noncanonical)/libgo
kono
parents:
diff changeset
257 LIBGODEP = $(libgodir)/libgo.la
kono
parents:
diff changeset
258 LIBGOTOOL = $(libgodir)/libgotool.a
kono
parents:
diff changeset
259 @NATIVE_FALSE@GOCOMPILER = $(GOC)
kono
parents:
diff changeset
260
kono
parents:
diff changeset
261 # Use the compiler we just built.
kono
parents:
diff changeset
262 @NATIVE_TRUE@GOCOMPILER = $(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET)
kono
parents:
diff changeset
263 GOCOMPILE = $(GOCOMPILER) $(GOCFLAGS)
kono
parents:
diff changeset
264 AM_GOCFLAGS = -I $(libgodir)
kono
parents:
diff changeset
265 AM_LDFLAGS = -L $(libgodir) -L $(libgodir)/.libs
kono
parents:
diff changeset
266 GOLINK = $(GOCOMPILER) $(GOCFLAGS) $(AM_GOCFLAGS) $(LDFLAGS) $(AM_LDFLAGS) -o $@
kono
parents:
diff changeset
267 libgosrcdir = $(srcdir)/../libgo/go
kono
parents:
diff changeset
268 cmdsrcdir = $(libgosrcdir)/cmd
kono
parents:
diff changeset
269 libgomiscdir = $(srcdir)/../libgo/misc
kono
parents:
diff changeset
270 go_cmd_go_files = \
kono
parents:
diff changeset
271 $(cmdsrcdir)/go/alldocs.go \
kono
parents:
diff changeset
272 $(cmdsrcdir)/go/go11.go \
kono
parents:
diff changeset
273 $(cmdsrcdir)/go/main.go
kono
parents:
diff changeset
274
kono
parents:
diff changeset
275 go_cmd_gofmt_files = \
kono
parents:
diff changeset
276 $(cmdsrcdir)/gofmt/doc.go \
kono
parents:
diff changeset
277 $(cmdsrcdir)/gofmt/gofmt.go \
kono
parents:
diff changeset
278 $(cmdsrcdir)/gofmt/internal.go \
kono
parents:
diff changeset
279 $(cmdsrcdir)/gofmt/rewrite.go \
kono
parents:
diff changeset
280 $(cmdsrcdir)/gofmt/simplify.go
kono
parents:
diff changeset
281
kono
parents:
diff changeset
282 go_cmd_cgo_files = \
kono
parents:
diff changeset
283 $(cmdsrcdir)/cgo/ast.go \
kono
parents:
diff changeset
284 $(cmdsrcdir)/cgo/doc.go \
kono
parents:
diff changeset
285 $(cmdsrcdir)/cgo/gcc.go \
kono
parents:
diff changeset
286 $(cmdsrcdir)/cgo/godefs.go \
kono
parents:
diff changeset
287 $(cmdsrcdir)/cgo/main.go \
kono
parents:
diff changeset
288 $(cmdsrcdir)/cgo/out.go \
kono
parents:
diff changeset
289 $(cmdsrcdir)/cgo/util.go
kono
parents:
diff changeset
290
kono
parents:
diff changeset
291 GCCGO_INSTALL_NAME := $(shell echo gccgo|sed '$(program_transform_name)')
kono
parents:
diff changeset
292 GCC_INSTALL_NAME := $(shell echo gcc|sed '$(program_transform_name)')
kono
parents:
diff changeset
293 GXX_INSTALL_NAME := $(shell echo g++|sed '$(program_transform_name)')
kono
parents:
diff changeset
294 MOSTLYCLEANFILES = \
kono
parents:
diff changeset
295 zdefaultcc.go s-zdefaultcc \
kono
parents:
diff changeset
296 check-gccgo check-gcc gotools.head *-testlog gotools.sum gotools.log \
kono
parents:
diff changeset
297 *.sent
kono
parents:
diff changeset
298
kono
parents:
diff changeset
299
kono
parents:
diff changeset
300 # For a native build we build the programs using the newly built libgo
kono
parents:
diff changeset
301 # and install them as regular programs.
kono
parents:
diff changeset
302 @NATIVE_TRUE@bin_PROGRAMS = go$(EXEEXT) gofmt$(EXEEXT)
kono
parents:
diff changeset
303 @NATIVE_TRUE@noinst_PROGRAMS = cgo$(EXEEXT)
kono
parents:
diff changeset
304 @NATIVE_TRUE@man_MANS = go.1 gofmt.1
kono
parents:
diff changeset
305 @NATIVE_TRUE@GOTESTFLAGS =
kono
parents:
diff changeset
306
kono
parents:
diff changeset
307 # CHECK_ENV sets up the environment to run the newly built go tool.
kono
parents:
diff changeset
308 # If you change this, change ECHO_ENV, below.
kono
parents:
diff changeset
309 # The fl shell variable is used to avoid having FAIL appear
kono
parents:
diff changeset
310 # in the log unnecessarily.
kono
parents:
diff changeset
311 @NATIVE_TRUE@CHECK_ENV = \
kono
parents:
diff changeset
312 @NATIVE_TRUE@ PATH=`echo $(abs_builddir):$${PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
kono
parents:
diff changeset
313 @NATIVE_TRUE@ export PATH; \
kono
parents:
diff changeset
314 @NATIVE_TRUE@ GCCGO="$(abs_builddir)/check-gccgo"; \
kono
parents:
diff changeset
315 @NATIVE_TRUE@ export GCCGO; \
kono
parents:
diff changeset
316 @NATIVE_TRUE@ CC="$(abs_builddir)/check-gcc"; \
kono
parents:
diff changeset
317 @NATIVE_TRUE@ export CC; \
kono
parents:
diff changeset
318 @NATIVE_TRUE@ GCCGOTOOLDIR="$(abs_builddir)"; \
kono
parents:
diff changeset
319 @NATIVE_TRUE@ export GCCGOTOOLDIR; \
kono
parents:
diff changeset
320 @NATIVE_TRUE@ GO_TESTING_GOTOOLS=yes; \
kono
parents:
diff changeset
321 @NATIVE_TRUE@ export GO_TESTING_GOTOOLS; \
kono
parents:
diff changeset
322 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
kono
parents:
diff changeset
323 @NATIVE_TRUE@ LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
kono
parents:
diff changeset
324 @NATIVE_TRUE@ export LD_LIBRARY_PATH; \
kono
parents:
diff changeset
325 @NATIVE_TRUE@ GOROOT=$${abs_libgodir}; \
kono
parents:
diff changeset
326 @NATIVE_TRUE@ export GOROOT; \
kono
parents:
diff changeset
327 @NATIVE_TRUE@ fl1="FA"; fl2="IL"; fl="$${fl1}$${fl2}";
kono
parents:
diff changeset
328
kono
parents:
diff changeset
329
kono
parents:
diff changeset
330 # ECHO_ENV is a variant of CHECK_ENV to put into a testlog file.
kono
parents:
diff changeset
331 # It assumes that abs_libgodir is set.
kono
parents:
diff changeset
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}`
kono
parents:
diff changeset
333 all: all-am
kono
parents:
diff changeset
334
kono
parents:
diff changeset
335 .SUFFIXES:
kono
parents:
diff changeset
336 .SUFFIXES: .c .o .obj
kono
parents:
diff changeset
337 am--refresh: Makefile
kono
parents:
diff changeset
338 @:
kono
parents:
diff changeset
339 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
kono
parents:
diff changeset
340 @for dep in $?; do \
kono
parents:
diff changeset
341 case '$(am__configure_deps)' in \
kono
parents:
diff changeset
342 *$$dep*) \
kono
parents:
diff changeset
343 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
kono
parents:
diff changeset
344 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
kono
parents:
diff changeset
345 && exit 0; \
kono
parents:
diff changeset
346 exit 1;; \
kono
parents:
diff changeset
347 esac; \
kono
parents:
diff changeset
348 done; \
kono
parents:
diff changeset
349 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
kono
parents:
diff changeset
350 $(am__cd) $(top_srcdir) && \
kono
parents:
diff changeset
351 $(AUTOMAKE) --foreign Makefile
kono
parents:
diff changeset
352 .PRECIOUS: Makefile
kono
parents:
diff changeset
353 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
kono
parents:
diff changeset
354 @case '$?' in \
kono
parents:
diff changeset
355 *config.status*) \
kono
parents:
diff changeset
356 echo ' $(SHELL) ./config.status'; \
kono
parents:
diff changeset
357 $(SHELL) ./config.status;; \
kono
parents:
diff changeset
358 *) \
kono
parents:
diff changeset
359 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
kono
parents:
diff changeset
360 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
kono
parents:
diff changeset
361 esac;
kono
parents:
diff changeset
362
kono
parents:
diff changeset
363 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
kono
parents:
diff changeset
364 $(SHELL) ./config.status --recheck
kono
parents:
diff changeset
365
kono
parents:
diff changeset
366 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
kono
parents:
diff changeset
367 $(am__cd) $(srcdir) && $(AUTOCONF)
kono
parents:
diff changeset
368 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
kono
parents:
diff changeset
369 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
kono
parents:
diff changeset
370 $(am__aclocal_m4_deps):
kono
parents:
diff changeset
371 install-binPROGRAMS: $(bin_PROGRAMS)
kono
parents:
diff changeset
372 @$(NORMAL_INSTALL)
kono
parents:
diff changeset
373 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
kono
parents:
diff changeset
374 if test -n "$$list"; then \
kono
parents:
diff changeset
375 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
kono
parents:
diff changeset
376 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
kono
parents:
diff changeset
377 fi; \
kono
parents:
diff changeset
378 for p in $$list; do echo "$$p $$p"; done | \
kono
parents:
diff changeset
379 sed 's/$(EXEEXT)$$//' | \
kono
parents:
diff changeset
380 while read p p1; do if test -f $$p; \
kono
parents:
diff changeset
381 then echo "$$p"; echo "$$p"; else :; fi; \
kono
parents:
diff changeset
382 done | \
kono
parents:
diff changeset
383 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
kono
parents:
diff changeset
384 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
kono
parents:
diff changeset
385 sed 'N;N;N;s,\n, ,g' | \
kono
parents:
diff changeset
386 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
kono
parents:
diff changeset
387 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
kono
parents:
diff changeset
388 if ($$2 == $$4) files[d] = files[d] " " $$1; \
kono
parents:
diff changeset
389 else { print "f", $$3 "/" $$4, $$1; } } \
kono
parents:
diff changeset
390 END { for (d in files) print "f", d, files[d] }' | \
kono
parents:
diff changeset
391 while read type dir files; do \
kono
parents:
diff changeset
392 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
kono
parents:
diff changeset
393 test -z "$$files" || { \
kono
parents:
diff changeset
394 echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
kono
parents:
diff changeset
395 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
kono
parents:
diff changeset
396 } \
kono
parents:
diff changeset
397 ; done
kono
parents:
diff changeset
398
kono
parents:
diff changeset
399 uninstall-binPROGRAMS:
kono
parents:
diff changeset
400 @$(NORMAL_UNINSTALL)
kono
parents:
diff changeset
401 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
kono
parents:
diff changeset
402 files=`for p in $$list; do echo "$$p"; done | \
kono
parents:
diff changeset
403 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
kono
parents:
diff changeset
404 -e 's/$$/$(EXEEXT)/' `; \
kono
parents:
diff changeset
405 test -n "$$list" || exit 0; \
kono
parents:
diff changeset
406 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
kono
parents:
diff changeset
407 cd "$(DESTDIR)$(bindir)" && rm -f $$files
kono
parents:
diff changeset
408
kono
parents:
diff changeset
409 clean-binPROGRAMS:
kono
parents:
diff changeset
410 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
kono
parents:
diff changeset
411
kono
parents:
diff changeset
412 clean-noinstPROGRAMS:
kono
parents:
diff changeset
413 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
kono
parents:
diff changeset
414 @NATIVE_FALSE@cgo$(EXEEXT): $(cgo_OBJECTS) $(cgo_DEPENDENCIES) $(EXTRA_cgo_DEPENDENCIES)
kono
parents:
diff changeset
415 @NATIVE_FALSE@ @rm -f cgo$(EXEEXT)
kono
parents:
diff changeset
416 @NATIVE_FALSE@ $(LINK) $(cgo_OBJECTS) $(cgo_LDADD) $(LIBS)
kono
parents:
diff changeset
417 @NATIVE_FALSE@go$(EXEEXT): $(go_OBJECTS) $(go_DEPENDENCIES) $(EXTRA_go_DEPENDENCIES)
kono
parents:
diff changeset
418 @NATIVE_FALSE@ @rm -f go$(EXEEXT)
kono
parents:
diff changeset
419 @NATIVE_FALSE@ $(LINK) $(go_OBJECTS) $(go_LDADD) $(LIBS)
kono
parents:
diff changeset
420 @NATIVE_FALSE@gofmt$(EXEEXT): $(gofmt_OBJECTS) $(gofmt_DEPENDENCIES) $(EXTRA_gofmt_DEPENDENCIES)
kono
parents:
diff changeset
421 @NATIVE_FALSE@ @rm -f gofmt$(EXEEXT)
kono
parents:
diff changeset
422 @NATIVE_FALSE@ $(LINK) $(gofmt_OBJECTS) $(gofmt_LDADD) $(LIBS)
kono
parents:
diff changeset
423
kono
parents:
diff changeset
424 mostlyclean-compile:
kono
parents:
diff changeset
425 -rm -f *.$(OBJEXT)
kono
parents:
diff changeset
426
kono
parents:
diff changeset
427 distclean-compile:
kono
parents:
diff changeset
428 -rm -f *.tab.c
kono
parents:
diff changeset
429
kono
parents:
diff changeset
430 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cgo.Po@am__quote@
kono
parents:
diff changeset
431 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/go.Po@am__quote@
kono
parents:
diff changeset
432 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gofmt.Po@am__quote@
kono
parents:
diff changeset
433
kono
parents:
diff changeset
434 .c.o:
kono
parents:
diff changeset
435 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
kono
parents:
diff changeset
436 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
kono
parents:
diff changeset
437 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
kono
parents:
diff changeset
438 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
kono
parents:
diff changeset
439 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
kono
parents:
diff changeset
440
kono
parents:
diff changeset
441 .c.obj:
kono
parents:
diff changeset
442 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
kono
parents:
diff changeset
443 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
kono
parents:
diff changeset
444 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
kono
parents:
diff changeset
445 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
kono
parents:
diff changeset
446 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
kono
parents:
diff changeset
447 install-man1: $(man_MANS)
kono
parents:
diff changeset
448 @$(NORMAL_INSTALL)
kono
parents:
diff changeset
449 @list1=''; \
kono
parents:
diff changeset
450 list2='$(man_MANS)'; \
kono
parents:
diff changeset
451 test -n "$(man1dir)" \
kono
parents:
diff changeset
452 && test -n "`echo $$list1$$list2`" \
kono
parents:
diff changeset
453 || exit 0; \
kono
parents:
diff changeset
454 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
kono
parents:
diff changeset
455 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
kono
parents:
diff changeset
456 { for i in $$list1; do echo "$$i"; done; \
kono
parents:
diff changeset
457 if test -n "$$list2"; then \
kono
parents:
diff changeset
458 for i in $$list2; do echo "$$i"; done \
kono
parents:
diff changeset
459 | sed -n '/\.1[a-z]*$$/p'; \
kono
parents:
diff changeset
460 fi; \
kono
parents:
diff changeset
461 } | while read p; do \
kono
parents:
diff changeset
462 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
kono
parents:
diff changeset
463 echo "$$d$$p"; echo "$$p"; \
kono
parents:
diff changeset
464 done | \
kono
parents:
diff changeset
465 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
kono
parents:
diff changeset
466 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
kono
parents:
diff changeset
467 sed 'N;N;s,\n, ,g' | { \
kono
parents:
diff changeset
468 list=; while read file base inst; do \
kono
parents:
diff changeset
469 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
kono
parents:
diff changeset
470 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
kono
parents:
diff changeset
471 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
kono
parents:
diff changeset
472 fi; \
kono
parents:
diff changeset
473 done; \
kono
parents:
diff changeset
474 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
kono
parents:
diff changeset
475 while read files; do \
kono
parents:
diff changeset
476 test -z "$$files" || { \
kono
parents:
diff changeset
477 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
kono
parents:
diff changeset
478 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
kono
parents:
diff changeset
479 done; }
kono
parents:
diff changeset
480
kono
parents:
diff changeset
481 uninstall-man1:
kono
parents:
diff changeset
482 @$(NORMAL_UNINSTALL)
kono
parents:
diff changeset
483 @list=''; test -n "$(man1dir)" || exit 0; \
kono
parents:
diff changeset
484 files=`{ for i in $$list; do echo "$$i"; done; \
kono
parents:
diff changeset
485 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
kono
parents:
diff changeset
486 sed -n '/\.1[a-z]*$$/p'; \
kono
parents:
diff changeset
487 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
kono
parents:
diff changeset
488 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
kono
parents:
diff changeset
489 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
kono
parents:
diff changeset
490
kono
parents:
diff changeset
491 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
kono
parents:
diff changeset
492 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
kono
parents:
diff changeset
493 unique=`for i in $$list; do \
kono
parents:
diff changeset
494 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
kono
parents:
diff changeset
495 done | \
kono
parents:
diff changeset
496 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
kono
parents:
diff changeset
497 END { if (nonempty) { for (i in files) print i; }; }'`; \
kono
parents:
diff changeset
498 mkid -fID $$unique
kono
parents:
diff changeset
499 tags: TAGS
kono
parents:
diff changeset
500
kono
parents:
diff changeset
501 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
kono
parents:
diff changeset
502 $(TAGS_FILES) $(LISP)
kono
parents:
diff changeset
503 set x; \
kono
parents:
diff changeset
504 here=`pwd`; \
kono
parents:
diff changeset
505 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
kono
parents:
diff changeset
506 unique=`for i in $$list; do \
kono
parents:
diff changeset
507 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
kono
parents:
diff changeset
508 done | \
kono
parents:
diff changeset
509 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
kono
parents:
diff changeset
510 END { if (nonempty) { for (i in files) print i; }; }'`; \
kono
parents:
diff changeset
511 shift; \
kono
parents:
diff changeset
512 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
kono
parents:
diff changeset
513 test -n "$$unique" || unique=$$empty_fix; \
kono
parents:
diff changeset
514 if test $$# -gt 0; then \
kono
parents:
diff changeset
515 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
kono
parents:
diff changeset
516 "$$@" $$unique; \
kono
parents:
diff changeset
517 else \
kono
parents:
diff changeset
518 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
kono
parents:
diff changeset
519 $$unique; \
kono
parents:
diff changeset
520 fi; \
kono
parents:
diff changeset
521 fi
kono
parents:
diff changeset
522 ctags: CTAGS
kono
parents:
diff changeset
523 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
kono
parents:
diff changeset
524 $(TAGS_FILES) $(LISP)
kono
parents:
diff changeset
525 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
kono
parents:
diff changeset
526 unique=`for i in $$list; do \
kono
parents:
diff changeset
527 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
kono
parents:
diff changeset
528 done | \
kono
parents:
diff changeset
529 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
kono
parents:
diff changeset
530 END { if (nonempty) { for (i in files) print i; }; }'`; \
kono
parents:
diff changeset
531 test -z "$(CTAGS_ARGS)$$unique" \
kono
parents:
diff changeset
532 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
kono
parents:
diff changeset
533 $$unique
kono
parents:
diff changeset
534
kono
parents:
diff changeset
535 GTAGS:
kono
parents:
diff changeset
536 here=`$(am__cd) $(top_builddir) && pwd` \
kono
parents:
diff changeset
537 && $(am__cd) $(top_srcdir) \
kono
parents:
diff changeset
538 && gtags -i $(GTAGS_ARGS) "$$here"
kono
parents:
diff changeset
539
kono
parents:
diff changeset
540 distclean-tags:
kono
parents:
diff changeset
541 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
kono
parents:
diff changeset
542 check-am: all-am
kono
parents:
diff changeset
543 check: check-am
kono
parents:
diff changeset
544 all-am: Makefile $(PROGRAMS) $(MANS)
kono
parents:
diff changeset
545 installdirs:
kono
parents:
diff changeset
546 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
kono
parents:
diff changeset
547 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
kono
parents:
diff changeset
548 done
kono
parents:
diff changeset
549 install: install-am
kono
parents:
diff changeset
550 install-exec: install-exec-am
kono
parents:
diff changeset
551 install-data: install-data-am
kono
parents:
diff changeset
552 uninstall: uninstall-am
kono
parents:
diff changeset
553
kono
parents:
diff changeset
554 install-am: all-am
kono
parents:
diff changeset
555 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
kono
parents:
diff changeset
556
kono
parents:
diff changeset
557 installcheck: installcheck-am
kono
parents:
diff changeset
558 install-strip:
kono
parents:
diff changeset
559 if test -z '$(STRIP)'; then \
kono
parents:
diff changeset
560 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
kono
parents:
diff changeset
561 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
kono
parents:
diff changeset
562 install; \
kono
parents:
diff changeset
563 else \
kono
parents:
diff changeset
564 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
kono
parents:
diff changeset
565 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
kono
parents:
diff changeset
566 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
kono
parents:
diff changeset
567 fi
kono
parents:
diff changeset
568 mostlyclean-generic:
kono
parents:
diff changeset
569 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
kono
parents:
diff changeset
570
kono
parents:
diff changeset
571 clean-generic:
kono
parents:
diff changeset
572
kono
parents:
diff changeset
573 distclean-generic:
kono
parents:
diff changeset
574 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
kono
parents:
diff changeset
575 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
kono
parents:
diff changeset
576
kono
parents:
diff changeset
577 maintainer-clean-generic:
kono
parents:
diff changeset
578 @echo "This command is intended for maintainers to use"
kono
parents:
diff changeset
579 @echo "it deletes files that may require special tools to rebuild."
kono
parents:
diff changeset
580 @NATIVE_FALSE@uninstall-local:
kono
parents:
diff changeset
581 @NATIVE_FALSE@install-exec-local:
kono
parents:
diff changeset
582 clean: clean-am
kono
parents:
diff changeset
583
kono
parents:
diff changeset
584 clean-am: clean-binPROGRAMS clean-generic clean-noinstPROGRAMS \
kono
parents:
diff changeset
585 mostlyclean-am
kono
parents:
diff changeset
586
kono
parents:
diff changeset
587 distclean: distclean-am
kono
parents:
diff changeset
588 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
kono
parents:
diff changeset
589 -rm -rf ./$(DEPDIR)
kono
parents:
diff changeset
590 -rm -f Makefile
kono
parents:
diff changeset
591 distclean-am: clean-am distclean-compile distclean-generic \
kono
parents:
diff changeset
592 distclean-tags
kono
parents:
diff changeset
593
kono
parents:
diff changeset
594 dvi: dvi-am
kono
parents:
diff changeset
595
kono
parents:
diff changeset
596 dvi-am:
kono
parents:
diff changeset
597
kono
parents:
diff changeset
598 html: html-am
kono
parents:
diff changeset
599
kono
parents:
diff changeset
600 html-am:
kono
parents:
diff changeset
601
kono
parents:
diff changeset
602 info: info-am
kono
parents:
diff changeset
603
kono
parents:
diff changeset
604 info-am:
kono
parents:
diff changeset
605
kono
parents:
diff changeset
606 install-data-am: install-man
kono
parents:
diff changeset
607
kono
parents:
diff changeset
608 install-dvi: install-dvi-am
kono
parents:
diff changeset
609
kono
parents:
diff changeset
610 install-dvi-am:
kono
parents:
diff changeset
611
kono
parents:
diff changeset
612 install-exec-am: install-binPROGRAMS install-exec-local
kono
parents:
diff changeset
613
kono
parents:
diff changeset
614 install-html: install-html-am
kono
parents:
diff changeset
615
kono
parents:
diff changeset
616 install-html-am:
kono
parents:
diff changeset
617
kono
parents:
diff changeset
618 install-info: install-info-am
kono
parents:
diff changeset
619
kono
parents:
diff changeset
620 install-info-am:
kono
parents:
diff changeset
621
kono
parents:
diff changeset
622 install-man: install-man1
kono
parents:
diff changeset
623
kono
parents:
diff changeset
624 install-pdf: install-pdf-am
kono
parents:
diff changeset
625
kono
parents:
diff changeset
626 install-pdf-am:
kono
parents:
diff changeset
627
kono
parents:
diff changeset
628 install-ps: install-ps-am
kono
parents:
diff changeset
629
kono
parents:
diff changeset
630 install-ps-am:
kono
parents:
diff changeset
631
kono
parents:
diff changeset
632 installcheck-am:
kono
parents:
diff changeset
633
kono
parents:
diff changeset
634 maintainer-clean: maintainer-clean-am
kono
parents:
diff changeset
635 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
kono
parents:
diff changeset
636 -rm -rf $(top_srcdir)/autom4te.cache
kono
parents:
diff changeset
637 -rm -rf ./$(DEPDIR)
kono
parents:
diff changeset
638 -rm -f Makefile
kono
parents:
diff changeset
639 maintainer-clean-am: distclean-am maintainer-clean-generic
kono
parents:
diff changeset
640
kono
parents:
diff changeset
641 mostlyclean: mostlyclean-am
kono
parents:
diff changeset
642
kono
parents:
diff changeset
643 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
kono
parents:
diff changeset
644 mostlyclean-local
kono
parents:
diff changeset
645
kono
parents:
diff changeset
646 pdf: pdf-am
kono
parents:
diff changeset
647
kono
parents:
diff changeset
648 pdf-am:
kono
parents:
diff changeset
649
kono
parents:
diff changeset
650 ps: ps-am
kono
parents:
diff changeset
651
kono
parents:
diff changeset
652 ps-am:
kono
parents:
diff changeset
653
kono
parents:
diff changeset
654 uninstall-am: uninstall-binPROGRAMS uninstall-local uninstall-man
kono
parents:
diff changeset
655
kono
parents:
diff changeset
656 uninstall-man: uninstall-man1
kono
parents:
diff changeset
657
kono
parents:
diff changeset
658 .MAKE: install-am install-strip
kono
parents:
diff changeset
659
kono
parents:
diff changeset
660 .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
kono
parents:
diff changeset
661 clean-binPROGRAMS clean-generic clean-noinstPROGRAMS ctags \
kono
parents:
diff changeset
662 distclean distclean-compile distclean-generic distclean-tags \
kono
parents:
diff changeset
663 dvi dvi-am html html-am info info-am install install-am \
kono
parents:
diff changeset
664 install-binPROGRAMS install-data install-data-am install-dvi \
kono
parents:
diff changeset
665 install-dvi-am install-exec install-exec-am install-exec-local \
kono
parents:
diff changeset
666 install-html install-html-am install-info install-info-am \
kono
parents:
diff changeset
667 install-man install-man1 install-pdf install-pdf-am install-ps \
kono
parents:
diff changeset
668 install-ps-am install-strip installcheck installcheck-am \
kono
parents:
diff changeset
669 installdirs maintainer-clean maintainer-clean-generic \
kono
parents:
diff changeset
670 mostlyclean mostlyclean-compile mostlyclean-generic \
kono
parents:
diff changeset
671 mostlyclean-local pdf pdf-am ps ps-am tags uninstall \
kono
parents:
diff changeset
672 uninstall-am uninstall-binPROGRAMS uninstall-local \
kono
parents:
diff changeset
673 uninstall-man uninstall-man1
kono
parents:
diff changeset
674
kono
parents:
diff changeset
675
kono
parents:
diff changeset
676 zdefaultcc.go: s-zdefaultcc; @true
kono
parents:
diff changeset
677 s-zdefaultcc: Makefile
kono
parents:
diff changeset
678 echo 'package main' > zdefaultcc.go.tmp
kono
parents:
diff changeset
679 echo 'const defaultGCCGO = "$(bindir)/$(GCCGO_INSTALL_NAME)"' >> zdefaultcc.go.tmp
kono
parents:
diff changeset
680 echo 'const defaultCC = "$(GCC_INSTALL_NAME)"' >> zdefaultcc.go.tmp
kono
parents:
diff changeset
681 echo 'const defaultCXX = "$(GXX_INSTALL_NAME)"' >> zdefaultcc.go.tmp
kono
parents:
diff changeset
682 echo 'const defaultPkgConfig = "pkg-config"' >> zdefaultcc.go.tmp
kono
parents:
diff changeset
683 $(SHELL) $(srcdir)/../move-if-change zdefaultcc.go.tmp zdefaultcc.go
kono
parents:
diff changeset
684 $(STAMP) $@
kono
parents:
diff changeset
685
kono
parents:
diff changeset
686 mostlyclean-local:
kono
parents:
diff changeset
687 rm -rf check-go-dir check-runtime-dir cgo-test-dir carchive-test-dir
kono
parents:
diff changeset
688
kono
parents:
diff changeset
689 @NATIVE_TRUE@go$(EXEEXT): $(go_cmd_go_files) $(LIBGOTOOL) $(LIBGODEP)
kono
parents:
diff changeset
690 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_go_files) $(LIBGOTOOL) $(LIBS) $(NET_LIBS)
kono
parents:
diff changeset
691 @NATIVE_TRUE@gofmt$(EXEEXT): $(go_cmd_gofmt_files) $(LIBGODEP)
kono
parents:
diff changeset
692 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_gofmt_files) $(LIBS) $(NET_LIBS)
kono
parents:
diff changeset
693 @NATIVE_TRUE@cgo$(EXEEXT): $(go_cmd_cgo_files) zdefaultcc.go $(LIBGODEP)
kono
parents:
diff changeset
694 @NATIVE_TRUE@ $(GOLINK) $(go_cmd_cgo_files) zdefaultcc.go $(LIBS) $(NET_LIBS)
kono
parents:
diff changeset
695
kono
parents:
diff changeset
696 @NATIVE_TRUE@install-exec-local: cgo$(EXEEXT)
kono
parents:
diff changeset
697 @NATIVE_TRUE@ $(MKDIR_P) $(DESTDIR)$(libexecsubdir)
kono
parents:
diff changeset
698 @NATIVE_TRUE@ rm -f $(DESTDIR)$(libexecsubdir)/cgo$(exeext)
kono
parents:
diff changeset
699 @NATIVE_TRUE@ $(INSTALL_PROGRAM) cgo$(exeext) $(DESTDIR)$(libexecsubdir)/cgo$(exeext)
kono
parents:
diff changeset
700
kono
parents:
diff changeset
701 @NATIVE_TRUE@uninstall-local:
kono
parents:
diff changeset
702 @NATIVE_TRUE@ rm -f $(DESTDIR)$(libexecsubdir)/cgo$(exeext)
kono
parents:
diff changeset
703
kono
parents:
diff changeset
704 # Run tests using the go tool, and frob the output to look like that
kono
parents:
diff changeset
705 # generated by DejaGNU. The main output of this is two files:
kono
parents:
diff changeset
706 # gotools.sum and gotools.log.
kono
parents:
diff changeset
707
kono
parents:
diff changeset
708 # check-head starts generating the log files in DejaGNU format. This
kono
parents:
diff changeset
709 # is a separate target so that the date is approximately when we start
kono
parents:
diff changeset
710 # running the tests.
kono
parents:
diff changeset
711 @NATIVE_TRUE@check-head:
kono
parents:
diff changeset
712 @NATIVE_TRUE@ @echo "Test Run By $${USER} on `date`" > gotools.head
kono
parents:
diff changeset
713 @NATIVE_TRUE@ @echo "Native configuration is $(host_triplet)" >> gotools.head
kono
parents:
diff changeset
714 @NATIVE_TRUE@ @echo >> gotools.head
kono
parents:
diff changeset
715 @NATIVE_TRUE@ @echo " === gotools tests ===" >> gotools.head
kono
parents:
diff changeset
716 @NATIVE_TRUE@ @echo >> gotools.head
kono
parents:
diff changeset
717
kono
parents:
diff changeset
718 # check-gccgo is a little shell script that executes gccgo with the
kono
parents:
diff changeset
719 # options to pick up the newly built libgo.
kono
parents:
diff changeset
720 @NATIVE_TRUE@check-gccgo: Makefile
kono
parents:
diff changeset
721 @NATIVE_TRUE@ rm -f $@ $@.tmp
kono
parents:
diff changeset
722 @NATIVE_TRUE@ echo "#!/bin/sh" > $@.tmp
kono
parents:
diff changeset
723 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
kono
parents:
diff changeset
724 @NATIVE_TRUE@ echo "$(GOCOMPILE)" '"$$@"' "-I $${abs_libgodir} -L $${abs_libgodir} -L $${abs_libgodir}/.libs" >> $@.tmp
kono
parents:
diff changeset
725 @NATIVE_TRUE@ chmod +x $@.tmp
kono
parents:
diff changeset
726 @NATIVE_TRUE@ mv -f $@.tmp $@
kono
parents:
diff changeset
727
kono
parents:
diff changeset
728 # check-gcc is a little shell script that executes the newly built gcc
kono
parents:
diff changeset
729 # with the options to pick up the newly built libgo.
kono
parents:
diff changeset
730 @NATIVE_TRUE@check-gcc: Makefile
kono
parents:
diff changeset
731 @NATIVE_TRUE@ rm -f $@ $@.tmp
kono
parents:
diff changeset
732 @NATIVE_TRUE@ echo "#!/bin/sh" > $@.tmp
kono
parents:
diff changeset
733 @NATIVE_TRUE@ abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
kono
parents:
diff changeset
734 @NATIVE_TRUE@ echo "$(GCC_FOR_TARGET)" '"$$@"' "-L $${abs_libgodir} -L $${abs_libgodir}/.libs" >> $@.tmp
kono
parents:
diff changeset
735 @NATIVE_TRUE@ chmod +x $@.tmp
kono
parents:
diff changeset
736 @NATIVE_TRUE@ mv -f $@.tmp $@
kono
parents:
diff changeset
737
kono
parents:
diff changeset
738 # check-go-tools runs `go test cmd/go` in our environment.
kono
parents:
diff changeset
739 @NATIVE_TRUE@check-go-tool: go$(EXEEXT) cgo$(EXEEXT) check-head check-gccgo check-gcc
kono
parents:
diff changeset
740 @NATIVE_TRUE@ rm -rf check-go-dir cmd_go-testlog
kono
parents:
diff changeset
741 @NATIVE_TRUE@ $(MKDIR_P) check-go-dir/src/cmd/go
kono
parents:
diff changeset
742 @NATIVE_TRUE@ cp $(cmdsrcdir)/go/*.go check-go-dir/src/cmd/go/
kono
parents:
diff changeset
743 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/go/internal check-go-dir/src/cmd/go/
kono
parents:
diff changeset
744 @NATIVE_TRUE@ cp $(libgodir)/zstdpkglist.go check-go-dir/src/cmd/go/internal/load/
kono
parents:
diff changeset
745 @NATIVE_TRUE@ cp $(libgodir)/zdefaultcc.go check-go-dir/src/cmd/go/internal/cfg/
kono
parents:
diff changeset
746 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/go/testdata check-go-dir/src/cmd/go/
kono
parents:
diff changeset
747 @NATIVE_TRUE@ cp -r $(cmdsrcdir)/internal check-go-dir/src/cmd/
kono
parents:
diff changeset
748 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
kono
parents:
diff changeset
749 @NATIVE_TRUE@ abs_checkdir=`cd check-go-dir && $(PWD_COMMAND)`; \
kono
parents:
diff changeset
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
kono
parents:
diff changeset
751 @NATIVE_TRUE@ $(CHECK_ENV) \
kono
parents:
diff changeset
752 @NATIVE_TRUE@ GOPATH=`cd check-go-dir && $(PWD_COMMAND)`; \
kono
parents:
diff changeset
753 @NATIVE_TRUE@ export GOPATH; \
kono
parents:
diff changeset
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
kono
parents:
diff changeset
755 @NATIVE_TRUE@ grep '^--- ' cmd_go-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
kono
parents:
diff changeset
756
kono
parents:
diff changeset
757 # check-runtime runs `go test runtime` in our environment.
kono
parents:
diff changeset
758 # The runtime package is also tested as part of libgo,
kono
parents:
diff changeset
759 # but the runtime tests use the go tool heavily, so testing
kono
parents:
diff changeset
760 # here too will catch more problems.
kono
parents:
diff changeset
761 @NATIVE_TRUE@check-runtime: go$(EXEEXT) cgo$(EXEEXT) check-head check-gccgo check-gcc
kono
parents:
diff changeset
762 @NATIVE_TRUE@ rm -rf check-runtime-dir runtime-testlog
kono
parents:
diff changeset
763 @NATIVE_TRUE@ $(MKDIR_P) check-runtime-dir
kono
parents:
diff changeset
764 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
kono
parents:
diff changeset
765 @NATIVE_TRUE@ LD_LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
kono
parents:
diff changeset
766 @NATIVE_TRUE@ GOARCH=`$(abs_builddir)/go$(EXEEXT) env GOARCH`; \
kono
parents:
diff changeset
767 @NATIVE_TRUE@ GOOS=`$(abs_builddir)/go$(EXEEXT) env GOOS`; \
kono
parents:
diff changeset
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`; \
kono
parents:
diff changeset
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
kono
parents:
diff changeset
770 @NATIVE_TRUE@ $(CHECK_ENV) \
kono
parents:
diff changeset
771 @NATIVE_TRUE@ GC="$${GCCGO} -fgo-compiling-runtime"; \
kono
parents:
diff changeset
772 @NATIVE_TRUE@ export GC; \
kono
parents:
diff changeset
773 @NATIVE_TRUE@ GOARCH=`$(abs_builddir)/go$(EXEEXT) env GOARCH`; \
kono
parents:
diff changeset
774 @NATIVE_TRUE@ GOOS=`$(abs_builddir)/go$(EXEEXT) env GOOS`; \
kono
parents:
diff changeset
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`; \
kono
parents:
diff changeset
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
kono
parents:
diff changeset
777 @NATIVE_TRUE@ grep '^--- ' runtime-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
kono
parents:
diff changeset
778
kono
parents:
diff changeset
779 # check-cgo-test runs `go test misc/cgo/test` in our environment.
kono
parents:
diff changeset
780 @NATIVE_TRUE@check-cgo-test: go$(EXEEXT) cgo$(EXEEXT) check-head check-gccgo check-gcc
kono
parents:
diff changeset
781 @NATIVE_TRUE@ rm -rf cgo-test-dir cgo-testlog
kono
parents:
diff changeset
782 @NATIVE_TRUE@ $(MKDIR_P) cgo-test-dir/misc/cgo
kono
parents:
diff changeset
783 @NATIVE_TRUE@ cp -r $(libgomiscdir)/cgo/test cgo-test-dir/misc/cgo/
kono
parents:
diff changeset
784 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
kono
parents:
diff changeset
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
kono
parents:
diff changeset
786 @NATIVE_TRUE@ $(CHECK_ENV) \
kono
parents:
diff changeset
787 @NATIVE_TRUE@ GOTRACEBACK=2; \
kono
parents:
diff changeset
788 @NATIVE_TRUE@ export GOTRACEBACK; \
kono
parents:
diff changeset
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
kono
parents:
diff changeset
790 @NATIVE_TRUE@ grep '^--- ' cgo-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
kono
parents:
diff changeset
791
kono
parents:
diff changeset
792 # check-carchive-test runs `go test misc/cgo/testcarchive/carchive_test.go`
kono
parents:
diff changeset
793 # in our environment.
kono
parents:
diff changeset
794 @NATIVE_TRUE@check-carchive-test: go$(EXEEXT) cgo$(EXEEXT) check-head check-gccgo check-gcc
kono
parents:
diff changeset
795 @NATIVE_TRUE@ rm -rf carchive-test-dir carchive-testlog
kono
parents:
diff changeset
796 @NATIVE_TRUE@ $(MKDIR_P) carchive-test-dir/misc/cgo
kono
parents:
diff changeset
797 @NATIVE_TRUE@ cp -r $(libgomiscdir)/cgo/testcarchive carchive-test-dir/misc/cgo/
kono
parents:
diff changeset
798 @NATIVE_TRUE@ @abs_libgodir=`cd $(libgodir) && $(PWD_COMMAND)`; \
kono
parents:
diff changeset
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
kono
parents:
diff changeset
800 @NATIVE_TRUE@ $(CHECK_ENV) \
kono
parents:
diff changeset
801 @NATIVE_TRUE@ LIBRARY_PATH=`echo $${abs_libgodir}/.libs:$${LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
kono
parents:
diff changeset
802 @NATIVE_TRUE@ export LIBRARY_PATH; \
kono
parents:
diff changeset
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
kono
parents:
diff changeset
804 @NATIVE_TRUE@ grep '^--- ' carchive-testlog | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' | sort -k 2
kono
parents:
diff changeset
805
kono
parents:
diff changeset
806 # The check targets runs the tests and assembles the output files.
kono
parents:
diff changeset
807 @NATIVE_TRUE@check: check-head check-go-tool check-runtime check-cgo-test check-carchive-test
kono
parents:
diff changeset
808 @NATIVE_TRUE@ @mv gotools.head gotools.sum
kono
parents:
diff changeset
809 @NATIVE_TRUE@ @cp gotools.sum gotools.log
kono
parents:
diff changeset
810 @NATIVE_TRUE@ @for file in cmd_go-testlog runtime-testlog cgo-testlog carchive-testlog; do \
kono
parents:
diff changeset
811 @NATIVE_TRUE@ testname=`echo $${file} | sed -e 's/-testlog//' -e 's|_|/|'`; \
kono
parents:
diff changeset
812 @NATIVE_TRUE@ echo "Running $${testname}" >> gotools.sum; \
kono
parents:
diff changeset
813 @NATIVE_TRUE@ echo "Running $${testname}" >> gotools.log; \
kono
parents:
diff changeset
814 @NATIVE_TRUE@ sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' < $${file} >> gotools.log; \
kono
parents:
diff changeset
815 @NATIVE_TRUE@ grep '^--- ' $${file} | sed -e 's/^--- \(.*\) ([^)]*)$$/\1/' -e 's/SKIP/UNTESTED/' | sort -k 2 >> gotools.sum; \
kono
parents:
diff changeset
816 @NATIVE_TRUE@ done
kono
parents:
diff changeset
817 @NATIVE_TRUE@ @echo >> gotools.sum
kono
parents:
diff changeset
818 @NATIVE_TRUE@ @echo " === gotools Summary ===" >> gotools.sum
kono
parents:
diff changeset
819 @NATIVE_TRUE@ @pass=`grep -c '^PASS' gotools.sum`; \
kono
parents:
diff changeset
820 @NATIVE_TRUE@ if test "$${pass}" -ne "0"; then \
kono
parents:
diff changeset
821 @NATIVE_TRUE@ echo "# of expected passes $${pass}" >> gotools.sum; \
kono
parents:
diff changeset
822 @NATIVE_TRUE@ fi
kono
parents:
diff changeset
823 @NATIVE_TRUE@ @fail=`grep -c '^FAIL' gotools.sum`; \
kono
parents:
diff changeset
824 @NATIVE_TRUE@ if test "$${fail}" -ne "0"; then \
kono
parents:
diff changeset
825 @NATIVE_TRUE@ echo "# of unexpected failures $${fail}" >> gotools.sum; \
kono
parents:
diff changeset
826 @NATIVE_TRUE@ fi
kono
parents:
diff changeset
827 @NATIVE_TRUE@ @untested=`grep -c '^UNTESTED' gotools.sum`; \
kono
parents:
diff changeset
828 @NATIVE_TRUE@ if test "$${untested}" -ne "0"; then \
kono
parents:
diff changeset
829 @NATIVE_TRUE@ echo "# of untested testcases $${untested}" >> gotools.sum; \
kono
parents:
diff changeset
830 @NATIVE_TRUE@ fi
kono
parents:
diff changeset
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
kono
parents:
diff changeset
832 @NATIVE_TRUE@ @echo >> gotools.log
kono
parents:
diff changeset
833 @NATIVE_TRUE@ @echo "runtest completed at `date`" >> gotools.log
kono
parents:
diff changeset
834 @NATIVE_TRUE@ @if grep '^FAIL' gotools.sum >/dev/null 2>&1; then exit 1; fi
kono
parents:
diff changeset
835
kono
parents:
diff changeset
836 @NATIVE_TRUE@.PHONY: check check-head check-go-tool check-runtime check-cgo-test check-carchive-test
kono
parents:
diff changeset
837
kono
parents:
diff changeset
838 # For a non-native build we have to build the programs using a
kono
parents:
diff changeset
839 # previously built host (or build -> host) Go compiler. We should
kono
parents:
diff changeset
840 # only do this if such a compiler is available. We also need to get
kono
parents:
diff changeset
841 # the right values for GOARCH and GOOS in the default build context in
kono
parents:
diff changeset
842 # the go/build package. Figure this out later.
kono
parents:
diff changeset
843
kono
parents:
diff changeset
844 # Tell versions [3.59,3.63) of GNU make to not export all variables.
kono
parents:
diff changeset
845 # Otherwise a system limit (for SysV at least) may be exceeded.
kono
parents:
diff changeset
846 .NOEXPORT: