gcc/:
[official-gcc.git] / libgo / Makefile.am
blob6d00bcc38c6fc40fe71f68c65e3304f540987d5c
1 # Makefile.am -- Go library Makefile.
3 # Copyright 2009 The Go Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style
5 # license that can be found in the LICENSE file.
7 # Process this file with autoreconf to produce Makefile.in.
9 # Go support.
10 SUFFIXES = .c .go .gox .o .obj .lo .a
12 if LIBGO_IS_RTEMS
13 subdirs = testsuite
14 endif
16 SUBDIRS = ${subdirs}
18 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
20 MAINT_CHARSET = latin1
22 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
23 PWD_COMMAND = $${PWDCMD-pwd}
24 STAMP = echo timestamp >
26 toolexecdir = $(glibgo_toolexecdir)
27 toolexeclibdir = $(glibgo_toolexeclibdir)
28 toolexeclibgodir = $(nover_glibgo_toolexeclibdir)/go/$(gcc_version)/$(target_alias)
30 LIBFFI = @LIBFFI@
31 LIBFFIINCS = @LIBFFIINCS@
33 LIBATOMIC = @LIBATOMIC@
35 WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
37 # -I/-D flags to pass when compiling.
38 AM_CPPFLAGS = -I $(srcdir)/runtime $(LIBFFIINCS) $(PTHREAD_CFLAGS)
40 ACLOCAL_AMFLAGS = -I ./config -I ../config
42 AM_CFLAGS = -fexceptions -fnon-call-exceptions -fplan9-extensions \
43         $(SPLIT_STACK) $(WARN_CFLAGS) \
44         $(STRINGOPS_FLAG) $(OSCFLAGS) \
45         -I $(srcdir)/../libgcc -I $(srcdir)/../libbacktrace \
46         -I $(MULTIBUILDTOP)../../gcc/include
48 if USING_SPLIT_STACK
49 AM_LDFLAGS = -XCClinker $(SPLIT_STACK)
50 endif
52 # Multilib support.
53 MAKEOVERRIDES=
55 # Work around what appears to be a GNU make  handling MAKEFLAGS
56 # values defined in terms of make variables, as is the case for CC and
57 # friends when we are called from the top level Makefile.
58 AM_MAKEFLAGS = \
59         "AR_FLAGS=$(AR_FLAGS)" \
60         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
61         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
62         "CFLAGS=$(CFLAGS)" \
63         "CXXFLAGS=$(CXXFLAGS)" \
64         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
65         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
66         "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
67         "GOC=$(GOC)" \
68         "GOCFLAGS=$(GOCFLAGS)" \
69         "INSTALL=$(INSTALL)" \
70         "INSTALL_DATA=$(INSTALL_DATA)" \
71         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
72         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
73         "LDFLAGS=$(LDFLAGS)" \
74         "LIBCFLAGS=$(LIBCFLAGS)" \
75         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
76         "MAKE=$(MAKE)" \
77         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
78         "PICFLAG=$(PICFLAG)" \
79         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
80         "SHELL=$(SHELL)" \
81         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
82         "exec_prefix=$(exec_prefix)" \
83         "infodir=$(infodir)" \
84         "libdir=$(libdir)" \
85         "includedir=$(includedir)" \
86         "prefix=$(prefix)" \
87         "tooldir=$(tooldir)" \
88         "gxx_include_dir=$(gxx_include_dir)" \
89         "AR=$(AR)" \
90         "AS=$(AS)" \
91         "LD=$(LD)" \
92         "RANLIB=$(RANLIB)" \
93         "NM=$(NM)" \
94         "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
95         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
96         "DESTDIR=$(DESTDIR)" \
97         "WERROR=$(WERROR)"
99 # Subdir rules rely on $(FLAGS_TO_PASS)
100 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
102 toolexeclib_LTLIBRARIES = libgo.la
103 toolexeclib_LIBRARIES = libgobegin.a
105 toolexeclibgo_DATA = \
106         bufio.gox \
107         bytes.gox \
108         crypto.gox \
109         encoding.gox \
110         errors.gox \
111         expvar.gox \
112         flag.gox \
113         fmt.gox \
114         hash.gox \
115         html.gox \
116         image.gox \
117         io.gox \
118         log.gox \
119         math.gox \
120         mime.gox \
121         net.gox \
122         os.gox \
123         path.gox \
124         reflect.gox \
125         regexp.gox \
126         runtime.gox \
127         sort.gox \
128         strconv.gox \
129         strings.gox \
130         sync.gox \
131         syscall.gox \
132         testing.gox \
133         time.gox \
134         unicode.gox
136 toolexeclibgoarchivedir = $(toolexeclibgodir)/archive
138 toolexeclibgoarchive_DATA = \
139         archive/tar.gox \
140         archive/zip.gox
142 toolexeclibgocompressdir = $(toolexeclibgodir)/compress
144 toolexeclibgocompress_DATA = \
145         compress/bzip2.gox \
146         compress/flate.gox \
147         compress/gzip.gox \
148         compress/lzw.gox \
149         compress/zlib.gox
151 toolexeclibgocontainerdir = $(toolexeclibgodir)/container
153 toolexeclibgocontainer_DATA = \
154         container/heap.gox \
155         container/list.gox \
156         container/ring.gox
158 toolexeclibgocryptodir = $(toolexeclibgodir)/crypto
160 toolexeclibgocrypto_DATA = \
161         crypto/aes.gox \
162         crypto/cipher.gox \
163         crypto/des.gox \
164         crypto/dsa.gox \
165         crypto/ecdsa.gox \
166         crypto/elliptic.gox \
167         crypto/hmac.gox \
168         crypto/md5.gox \
169         crypto/rand.gox \
170         crypto/rc4.gox \
171         crypto/rsa.gox \
172         crypto/sha1.gox \
173         crypto/sha256.gox \
174         crypto/sha512.gox \
175         crypto/subtle.gox \
176         crypto/tls.gox \
177         crypto/x509.gox
179 toolexeclibgocryptox509dir = $(toolexeclibgocryptodir)/x509
181 toolexeclibgocryptox509_DATA = \
182         crypto/x509/pkix.gox
184 toolexeclibgodatabasedir = $(toolexeclibgodir)/database
186 toolexeclibgodatabase_DATA = \
187         database/sql.gox
189 toolexeclibgodatabasesqldir = $(toolexeclibgodatabasedir)/sql
191 toolexeclibgodatabasesql_DATA = \
192         database/sql/driver.gox
194 toolexeclibgodebugdir = $(toolexeclibgodir)/debug
196 toolexeclibgodebug_DATA = \
197         debug/dwarf.gox \
198         debug/elf.gox \
199         debug/gosym.gox \
200         debug/macho.gox \
201         debug/pe.gox \
202         debug/plan9obj.gox
204 toolexeclibgoencodingdir = $(toolexeclibgodir)/encoding
206 toolexeclibgoencoding_DATA = \
207         encoding/ascii85.gox \
208         encoding/asn1.gox \
209         encoding/base32.gox \
210         encoding/base64.gox \
211         encoding/binary.gox \
212         encoding/csv.gox \
213         encoding/gob.gox \
214         encoding/hex.gox \
215         encoding/json.gox \
216         encoding/pem.gox \
217         encoding/xml.gox
219 toolexeclibgoexpdir = $(toolexeclibgodir)/exp
221 toolexeclibgoexp_DATA = \
222         exp/proxy.gox \
223         exp/terminal.gox
225 toolexeclibgogodir = $(toolexeclibgodir)/go
227 toolexeclibgogo_DATA = \
228         go/ast.gox \
229         go/build.gox \
230         go/doc.gox \
231         go/format.gox \
232         go/parser.gox \
233         go/printer.gox \
234         go/scanner.gox \
235         go/token.gox
237 toolexeclibgohashdir = $(toolexeclibgodir)/hash
239 toolexeclibgohash_DATA = \
240         hash/adler32.gox \
241         hash/crc32.gox \
242         hash/crc64.gox \
243         hash/fnv.gox
245 toolexeclibgohtmldir = $(toolexeclibgodir)/html
247 toolexeclibgohtml_DATA = \
248         html/template.gox
250 toolexeclibgoimagedir = $(toolexeclibgodir)/image
252 toolexeclibgoimage_DATA = \
253         image/color.gox \
254         image/draw.gox \
255         image/gif.gox \
256         image/jpeg.gox \
257         image/png.gox
259 toolexeclibgoimagecolordir = $(toolexeclibgoimagedir)/color
261 toolexeclibgoimagecolor_DATA = \
262         image/color/palette.gox
264 toolexeclibgoindexdir = $(toolexeclibgodir)/index
266 toolexeclibgoindex_DATA = \
267         index/suffixarray.gox
269 toolexeclibgoiodir = $(toolexeclibgodir)/io
271 toolexeclibgoio_DATA = \
272         io/ioutil.gox
274 toolexeclibgologdir = $(toolexeclibgodir)/log
276 toolexeclibgolog_DATA = \
277         log/syslog.gox
279 toolexeclibgomathdir = $(toolexeclibgodir)/math
281 toolexeclibgomath_DATA = \
282         math/big.gox \
283         math/cmplx.gox \
284         math/rand.gox
286 toolexeclibgomimedir = $(toolexeclibgodir)/mime
288 toolexeclibgomime_DATA = \
289         mime/multipart.gox
291 toolexeclibgonetdir = $(toolexeclibgodir)/net
293 toolexeclibgonet_DATA = \
294         net/http.gox \
295         net/mail.gox \
296         net/rpc.gox \
297         net/smtp.gox \
298         net/textproto.gox \
299         net/url.gox
301 toolexeclibgonethttpdir = $(toolexeclibgonetdir)/http
303 toolexeclibgonethttp_DATA = \
304         net/http/cgi.gox \
305         net/http/cookiejar.gox \
306         net/http/fcgi.gox \
307         net/http/httptest.gox \
308         net/http/httputil.gox \
309         net/http/pprof.gox
311 toolexeclibgonetrpcdir = $(toolexeclibgonetdir)/rpc
313 toolexeclibgonetrpc_DATA = \
314         net/rpc/jsonrpc.gox
316 toolexeclibgoolddir = $(toolexeclibgodir)/old
318 toolexeclibgoold_DATA = \
319         old/regexp.gox \
320         old/template.gox
322 toolexeclibgoosdir = $(toolexeclibgodir)/os
324 toolexeclibgoos_DATA = \
325         os/exec.gox \
326         os/signal.gox \
327         os/user.gox
329 toolexeclibgopathdir = $(toolexeclibgodir)/path
331 toolexeclibgopath_DATA = \
332         path/filepath.gox
334 toolexeclibgoregexpdir = $(toolexeclibgodir)/regexp
336 toolexeclibgoregexp_DATA = \
337         regexp/syntax.gox
339 toolexeclibgoruntimedir = $(toolexeclibgodir)/runtime
341 toolexeclibgoruntime_DATA = \
342         runtime/debug.gox \
343         runtime/pprof.gox
345 toolexeclibgosyncdir = $(toolexeclibgodir)/sync
347 toolexeclibgosync_DATA = \
348         sync/atomic.gox
350 toolexeclibgotestingdir = $(toolexeclibgodir)/testing
352 toolexeclibgotesting_DATA = \
353         testing/iotest.gox \
354         testing/quick.gox
356 toolexeclibgotextdir = $(toolexeclibgodir)/text
358 toolexeclibgotext_DATA = \
359         text/scanner.gox \
360         text/tabwriter.gox \
361         text/template.gox
363 toolexeclibgotexttemplatedir = $(toolexeclibgotextdir)/template
365 toolexeclibgotexttemplate_DATA = \
366         text/template/parse.gox
368 toolexeclibgounicodedir = $(toolexeclibgodir)/unicode
370 toolexeclibgounicode_DATA = \
371         unicode/utf16.gox \
372         unicode/utf8.gox
374 if HAVE_SYS_MMAN_H
375 runtime_mem_file = runtime/mem.c
376 else
377 runtime_mem_file = runtime/mem_posix_memalign.c
378 endif
380 if LIBGO_IS_RTEMS
381 rtems_task_variable_add_file = runtime/rtems-task-variable-add.c
382 else
383 rtems_task_variable_add_file =
384 endif
386 if LIBGO_IS_LINUX
387 runtime_lock_files = runtime/lock_futex.c runtime/thread-linux.c
388 else
389 runtime_lock_files = runtime/lock_sema.c runtime/thread-sema.c
390 endif
392 if LIBGO_IS_LINUX
393 runtime_getncpu_file = runtime/getncpu-linux.c
394 else
395 if LIBGO_IS_DARWIN
396 runtime_getncpu_file = runtime/getncpu-bsd.c
397 else
398 if LIBGO_IS_IRIX
399 runtime_getncpu_file = runtime/getncpu-irix.c
400 else
401 if LIBGO_IS_SOLARIS
402 runtime_getncpu_file = runtime/getncpu-solaris.c
403 else
404 if LIBGO_IS_FREEBSD
405 runtime_getncpu_file = runtime/getncpu-bsd.c
406 else
407 if LIBGO_IS_NETBSD
408 runtime_getncpu_file = runtime/getncpu-bsd.c
409 else
410 runtime_getncpu_file = runtime/getncpu-none.c
411 endif
412 endif
413 endif
414 endif
415 endif
416 endif
418 if LIBGO_IS_LINUX
419 runtime_netpoll_files = runtime/netpoll_epoll.c
420 else
421 if LIBGO_IS_SOLARIS
422 runtime_netpoll_files = runtime/netpoll_select.c
423 else
424 runtime_netpoll_files = runtime/netpoll_kqueue.c
425 endif
426 endif
428 runtime_files = \
429         runtime/go-append.c \
430         runtime/go-assert.c \
431         runtime/go-assert-interface.c \
432         runtime/go-byte-array-to-string.c \
433         runtime/go-breakpoint.c \
434         runtime/go-caller.c \
435         runtime/go-callers.c \
436         runtime/go-can-convert-interface.c \
437         runtime/go-cdiv.c \
438         runtime/go-cgo.c \
439         runtime/go-check-interface.c \
440         runtime/go-construct-map.c \
441         runtime/go-convert-interface.c \
442         runtime/go-copy.c \
443         runtime/go-defer.c \
444         runtime/go-deferred-recover.c \
445         runtime/go-eface-compare.c \
446         runtime/go-eface-val-compare.c \
447         runtime/go-ffi.c \
448         runtime/go-fieldtrack.c \
449         runtime/go-int-array-to-string.c \
450         runtime/go-int-to-string.c \
451         runtime/go-interface-compare.c \
452         runtime/go-interface-eface-compare.c \
453         runtime/go-interface-val-compare.c \
454         runtime/go-make-slice.c \
455         runtime/go-map-delete.c \
456         runtime/go-map-index.c \
457         runtime/go-map-len.c \
458         runtime/go-map-range.c \
459         runtime/go-matherr.c \
460         runtime/go-memcmp.c \
461         runtime/go-nanotime.c \
462         runtime/go-now.c \
463         runtime/go-new-map.c \
464         runtime/go-new.c \
465         runtime/go-nosys.c \
466         runtime/go-panic.c \
467         runtime/go-print.c \
468         runtime/go-recover.c \
469         runtime/go-reflect-call.c \
470         runtime/go-reflect-map.c \
471         runtime/go-rune.c \
472         runtime/go-runtime-error.c \
473         runtime/go-setenv.c \
474         runtime/go-signal.c \
475         runtime/go-strcmp.c \
476         runtime/go-string-to-byte-array.c \
477         runtime/go-string-to-int-array.c \
478         runtime/go-strplus.c \
479         runtime/go-strslice.c \
480         runtime/go-traceback.c \
481         runtime/go-type-complex.c \
482         runtime/go-type-eface.c \
483         runtime/go-type-error.c \
484         runtime/go-type-float.c \
485         runtime/go-type-identity.c \
486         runtime/go-type-interface.c \
487         runtime/go-type-string.c \
488         runtime/go-typedesc-equal.c \
489         runtime/go-unsafe-new.c \
490         runtime/go-unsafe-newarray.c \
491         runtime/go-unsafe-pointer.c \
492         runtime/go-unwind.c \
493         runtime/go-varargs.c \
494         runtime/env_posix.c \
495         runtime/heapdump.c \
496         $(runtime_lock_files) \
497         runtime/mcache.c \
498         runtime/mcentral.c \
499         $(runtime_mem_file) \
500         runtime/mfixalloc.c \
501         runtime/mgc0.c \
502         runtime/mheap.c \
503         runtime/msize.c \
504         $(runtime_netpoll_files) \
505         runtime/panic.c \
506         runtime/parfor.c \
507         runtime/print.c \
508         runtime/proc.c \
509         runtime/runtime.c \
510         runtime/signal_unix.c \
511         runtime/thread.c \
512         runtime/yield.c \
513         $(rtems_task_variable_add_file) \
514         chan.c \
515         cpuprof.c \
516         go-iface.c \
517         lfstack.c \
518         malloc.c \
519         map.c \
520         mprof.c \
521         netpoll.c \
522         rdebug.c \
523         reflect.c \
524         runtime1.c \
525         sema.c \
526         sigqueue.c \
527         string.c \
528         time.c \
529         $(runtime_getncpu_file)
531 goc2c.$(OBJEXT): runtime/goc2c.c
532         $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
534 goc2c: goc2c.$(OBJEXT)
535         $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
537 malloc.c: $(srcdir)/runtime/malloc.goc goc2c
538         ./goc2c $< > $@.tmp
539         mv -f $@.tmp $@
541 mprof.c: $(srcdir)/runtime/mprof.goc goc2c
542         ./goc2c $< > $@.tmp
543         mv -f $@.tmp $@
545 netpoll.c: $(srcdir)/runtime/netpoll.goc goc2c
546         ./goc2c $< > $@.tmp
547         mv -f $@.tmp $@
549 reflect.c: $(srcdir)/runtime/reflect.goc goc2c
550         ./goc2c $< > $@.tmp
551         mv -f $@.tmp $@
553 runtime1.c: $(srcdir)/runtime/runtime1.goc goc2c
554         ./goc2c $< > $@.tmp
555         mv -f $@.tmp $@
557 sema.c: $(srcdir)/runtime/sema.goc goc2c
558         ./goc2c $< > $@.tmp
559         mv -f $@.tmp $@
561 sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
562         ./goc2c --go-pkgpath os_signal $< > $@.tmp
563         mv -f $@.tmp $@
565 time.c: $(srcdir)/runtime/time.goc goc2c
566         ./goc2c $< > $@.tmp
567         mv -f $@.tmp $@
569 %.c: $(srcdir)/runtime/%.goc goc2c
570         ./goc2c $< > $@.tmp
571         mv -f $@.tmp $@
573 go_bufio_files = \
574         go/bufio/bufio.go \
575         go/bufio/scan.go
577 go_bytes_files = \
578         go/bytes/buffer.go \
579         go/bytes/bytes.go \
580         go/bytes/bytes_decl.go \
581         go/bytes/reader.go
582 go_bytes_c_files = \
583         go/bytes/indexbyte.c
585 go_crypto_files = \
586         go/crypto/crypto.go
588 go_encoding_files = \
589         go/encoding/encoding.go
591 go_errors_files = \
592         go/errors/errors.go
594 go_expvar_files = \
595         go/expvar/expvar.go
597 go_flag_files = \
598         go/flag/flag.go
600 go_fmt_files = \
601         go/fmt/doc.go \
602         go/fmt/format.go \
603         go/fmt/print.go \
604         go/fmt/scan.go
606 go_hash_files = \
607         go/hash/hash.go
609 go_html_files = \
610         go/html/entity.go \
611         go/html/escape.go
613 go_image_files = \
614         go/image/format.go \
615         go/image/geom.go \
616         go/image/image.go \
617         go/image/names.go \
618         go/image/ycbcr.go
620 go_io_files = \
621         go/io/multi.go \
622         go/io/io.go \
623         go/io/pipe.go
625 go_log_files = \
626         go/log/log.go
628 go_math_files = \
629         go/math/abs.go \
630         go/math/acosh.go \
631         go/math/asin.go \
632         go/math/asinh.go \
633         go/math/atan.go \
634         go/math/atanh.go \
635         go/math/atan2.go \
636         go/math/bits.go \
637         go/math/cbrt.go \
638         go/math/const.go \
639         go/math/copysign.go \
640         go/math/dim.go \
641         go/math/erf.go \
642         go/math/exp.go \
643         go/math/expm1.go \
644         go/math/floor.go \
645         go/math/frexp.go \
646         go/math/gamma.go \
647         go/math/hypot.go \
648         go/math/j0.go \
649         go/math/j1.go \
650         go/math/jn.go \
651         go/math/ldexp.go \
652         go/math/lgamma.go \
653         go/math/log.go \
654         go/math/log1p.go \
655         go/math/log10.go \
656         go/math/logb.go \
657         go/math/mod.go \
658         go/math/modf.go \
659         go/math/nextafter.go \
660         go/math/pow.go \
661         go/math/pow10.go \
662         go/math/remainder.go \
663         go/math/signbit.go \
664         go/math/sin.go \
665         go/math/sincos.go \
666         go/math/sinh.go \
667         go/math/sqrt.go \
668         go/math/tan.go \
669         go/math/tanh.go \
670         go/math/unsafe.go
672 go_mime_files = \
673         go/mime/grammar.go \
674         go/mime/mediatype.go \
675         go/mime/type.go \
676         go/mime/type_unix.go
678 if LIBGO_IS_LINUX
679 go_net_cgo_file = go/net/cgo_linux.go
680 go_net_sock_file = go/net/sock_linux.go
681 go_net_sockopt_file = go/net/sockopt_linux.go
682 go_net_sockoptip_file = go/net/sockoptip_linux.go go/net/sockoptip_posix.go
683 else
684 if LIBGO_IS_IRIX
685 go_net_cgo_file = go/net/cgo_linux.go
686 go_net_sock_file = go/net/sock_linux.go
687 go_net_sockopt_file = go/net/sockopt_linux.go
688 go_net_sockoptip_file = go/net/sockoptip_linux.go go/net/sockoptip_posix.go
689 else
690 if LIBGO_IS_SOLARIS
691 go_net_cgo_file = go/net/cgo_linux.go
692 go_net_sock_file = go/net/sock_solaris.go
693 go_net_sockopt_file = go/net/sockopt_solaris.go
694 go_net_sockoptip_file = go/net/sockoptip_stub.go
695 else
696 if LIBGO_IS_FREEBSD
697 go_net_cgo_file = go/net/cgo_bsd.go
698 go_net_sock_file = go/net/sock_bsd.go
699 go_net_sockopt_file = go/net/sockopt_bsd.go
700 go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
701 else
702 if LIBGO_IS_NETBSD
703 go_net_cgo_file = go/net/cgo_netbsd.go
704 go_net_sock_file = go/net/sock_bsd.go
705 go_net_sockopt_file = go/net/sockopt_bsd.go
706 go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
707 else
708 go_net_cgo_file = go/net/cgo_bsd.go
709 go_net_sock_file = go/net/sock_bsd.go
710 go_net_sockopt_file = go/net/sockopt_bsd.go
711 go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
712 endif
713 endif
714 endif
715 endif
716 endif
718 if LIBGO_IS_LINUX
719 go_net_sendfile_file = go/net/sendfile_linux.go
720 else
721 if LIBGO_IS_FREEBSD
722 go_net_sendfile_file = go/net/sendfile_freebsd.go
723 else
724 if LIBGO_IS_DRAGONFLY
725 go_net_sendfile_file = go/net/sendfile_dragonfly.go
726 else
727 go_net_sendfile_file = go/net/sendfile_stub.go
728 endif
729 endif
730 endif
732 if LIBGO_IS_LINUX
733 go_net_interface_file = go/net/interface_linux.go
734 else
735 if LIBGO_IS_NETBSD
736 go_net_interface_file = go/net/interface_netbsd.go
737 else
738 if LIBGO_IS_DRAGONFLY
739 go_net_interface_file = go/net/interface_dragonfly.go
740 else
741 go_net_interface_file = go/net/interface_stub.go
742 endif
743 endif
744 endif
746 if LIBGO_IS_LINUX
747 go_net_cloexec_file = go/net/sock_cloexec.go
748 else
749 go_net_cloexec_file = go/net/sys_cloexec.go
750 endif
752 if LIBGO_IS_OPENBSD
753 go_net_tcpsockopt_file = go/net/tcpsockopt_openbsd.go
754 else
755 if LIBGO_IS_DARWIN
756 go_net_tcpsockopt_file = go/net/tcpsockopt_darwin.go
757 else
758 if LIBGO_IS_SOLARIS
759 go_net_tcpsockopt_file = go/net/tcpsockopt_solaris.go
760 else
761 if LIBGO_IS_DRAGONFLY
762 go_net_tcpsockopt_file = go/net/tcpsockopt_dragonfly.go
763 else
764 go_net_tcpsockopt_file = go/net/tcpsockopt_unix.go
765 endif
766 endif
767 endif
768 endif
770 go_net_files = \
771         go/net/cgo_unix.go \
772         $(go_net_cgo_file) \
773         $(go_net_cloexec_file) \
774         go/net/dial.go \
775         go/net/dnsclient.go \
776         go/net/dnsclient_unix.go \
777         go/net/dnsconfig_unix.go \
778         go/net/dnsmsg.go \
779         go/net/fd_mutex.go \
780         go/net/fd_unix.go \
781         go/net/file_unix.go \
782         go/net/hosts.go \
783         go/net/interface.go \
784         $(go_net_interface_file) \
785         go/net/ip.go \
786         go/net/iprawsock.go \
787         go/net/iprawsock_posix.go \
788         go/net/ipsock.go \
789         go/net/ipsock_posix.go \
790         go/net/lookup.go \
791         go/net/lookup_unix.go \
792         go/net/mac.go \
793         go/net/net.go \
794         go/net/parse.go \
795         go/net/pipe.go \
796         go/net/fd_poll_runtime.go \
797         go/net/port.go \
798         go/net/port_unix.go \
799         go/net/race0.go \
800         $(go_net_sendfile_file) \
801         go/net/singleflight.go \
802         go/net/sock_posix.go \
803         $(go_net_sock_file) \
804         go/net/sockopt_posix.go \
805         $(go_net_sockopt_file) \
806         $(go_net_sockoptip_file) \
807         go/net/tcpsock.go \
808         go/net/tcpsock_posix.go \
809         go/net/tcpsockopt_posix.go \
810         $(go_net_tcpsockopt_file) \
811         go/net/udpsock.go \
812         go/net/udpsock_posix.go \
813         go/net/unixsock.go \
814         go/net/unixsock_posix.go
816 if LIBGO_IS_SOLARIS
817 if LIBGO_IS_386
818 go_os_dir_file = go/os/dir_largefile.go
819 else
820 if LIBGO_IS_SPARC
821 go_os_dir_file = go/os/dir_largefile.go
822 else
823 go_os_dir_file = go/os/dir_regfile.go
824 endif
825 endif
826 else
827 if LIBGO_IS_LINUX
828 go_os_dir_file = go/os/dir_largefile.go
829 else
830 go_os_dir_file = go/os/dir_regfile.go
831 endif
832 endif
834 if LIBGO_IS_DARWIN
835 go_os_getwd_file = go/os/getwd_darwin.go
836 else
837 go_os_getwd_file =
838 endif
840 if LIBGO_IS_LINUX
841 go_os_sys_file = go/os/sys_linux.go
842 else
843 if LIBGO_IS_SOLARIS
844 go_os_sys_file = go/os/sys_uname.go
845 else
846 if LIBGO_IS_IRIX
847 go_os_sys_file = go/os/sys_uname.go
848 else
849 if LIBGO_IS_RTEMS
850 go_os_sys_file = go/os/sys_uname.go
851 else
852 go_os_sys_file = go/os/sys_bsd.go
853 endif
854 endif
855 endif
856 endif
858 if LIBGO_IS_FREEBSD
859 go_os_cloexec_file = go/os/sys_freebsd.go
860 else
861 if LIBGO_IS_DARWIN
862 go_os_cloexec_file = go/os/sys_darwin.go
863 else
864 go_os_cloexec_file = go/os/sys_unix.go
865 endif
866 endif
868 if LIBGO_IS_SOLARIS
869 go_os_stat_file = go/os/stat_solaris.go
870 else
871 if LIBGO_IS_LINUX
872 go_os_stat_file = go/os/stat_atim.go
873 else
874 if LIBGO_IS_OPENBSD
875 go_os_stat_file = go/os/stat_atim.go
876 else
877 if LIBGO_IS_DARWIN
878 go_os_stat_file = go/os/stat_atimespec.go
879 else
880 if LIBGO_IS_FREEBSD
881 go_os_stat_file = go/os/stat_atimespec.go
882 else
883 if LIBGO_IS_NETBSD
884 go_os_stat_file = go/os/stat_atimespec.go
885 else
886 if LIBGO_IS_DRAGONFLY
887 go_os_stat_file = go/os/stat_dragonfly.go
888 else
889 go_os_stat_file = go/os/stat.go
890 endif
891 endif
892 endif
893 endif
894 endif
895 endif
896 endif
898 if LIBGO_IS_LINUX
899 go_os_pipe_file = go/os/pipe_linux.go
900 else
901 go_os_pipe_file = go/os/pipe_bsd.go
902 endif
904 go_os_files = \
905         $(go_os_dir_file) \
906         go/os/dir.go \
907         go/os/doc.go \
908         go/os/env.go \
909         go/os/error.go \
910         go/os/error_unix.go \
911         go/os/exec.go \
912         go/os/exec_posix.go \
913         go/os/exec_unix.go \
914         go/os/file.go \
915         go/os/file_posix.go \
916         go/os/file_unix.go \
917         go/os/getwd.go \
918         $(go_os_getwd_file) \
919         go/os/path.go \
920         go/os/path_unix.go \
921         $(go_os_pipe_file) \
922         go/os/proc.go \
923         $(go_os_stat_file) \
924         go/os/str.go \
925         $(go_os_sys_file) \
926         $(go_os_cloexec_file) \
927         go/os/types.go \
928         go/os/types_notwin.go
930 go_path_files = \
931         go/path/match.go \
932         go/path/path.go
934 if LIBGO_IS_X86_64
935 go_reflect_makefunc_file = \
936         go/reflect/makefuncgo_amd64.go
937 go_reflect_makefunc_s_file = \
938         go/reflect/makefunc_amd64.S
939 else
940 if LIBGO_IS_386
941 go_reflect_makefunc_file = \
942         go/reflect/makefuncgo_386.go
943 go_reflect_makefunc_s_file = \
944         go/reflect/makefunc_386.S
945 else
946 go_reflect_makefunc_file =
947 go_reflect_makefunc_s_file = \
948         go/reflect/makefunc_dummy.c
949 endif
950 endif
952 go_reflect_files = \
953         go/reflect/deepequal.go \
954         go/reflect/makefunc.go \
955         go/reflect/makefunc_ffi.go \
956         $(go_reflect_makefunc_file) \
957         go/reflect/type.go \
958         go/reflect/value.go
959 go_reflect_makefunc_c_file = \
960         go/reflect/makefunc_ffi_c.c
962 go_regexp_files = \
963         go/regexp/exec.go \
964         go/regexp/onepass.go \
965         go/regexp/regexp.go
967 go_net_rpc_files = \
968         go/net/rpc/client.go \
969         go/net/rpc/debug.go \
970         go/net/rpc/server.go
972 go_runtime_files = \
973         go/runtime/compiler.go \
974         go/runtime/debug.go \
975         go/runtime/error.go \
976         go/runtime/extern.go \
977         go/runtime/mem.go \
978         go/runtime/softfloat64.go \
979         go/runtime/type.go \
980         version.go
982 version.go: s-version; @true
983 s-version: Makefile
984         rm -f version.go.tmp
985         echo "package runtime" > version.go.tmp
986         echo 'const defaultGoroot = "$(prefix)"' >> version.go.tmp
987         echo 'const theVersion = "'`$(GOC) --version | sed 1q`'"' >> version.go.tmp
988         echo 'const theGoarch = "'$(GOARCH)'"' >> version.go.tmp
989         echo 'const theGoos = "'$(GOOS)'"' >> version.go.tmp
990         $(SHELL) $(srcdir)/../move-if-change version.go.tmp version.go
991         $(STAMP) $@
993 go_sort_files = \
994         go/sort/search.go \
995         go/sort/sort.go
997 go_strconv_files = \
998         go/strconv/atob.go \
999         go/strconv/atof.go \
1000         go/strconv/atoi.go \
1001         go/strconv/decimal.go \
1002         go/strconv/extfloat.go \
1003         go/strconv/ftoa.go \
1004         go/strconv/isprint.go \
1005         go/strconv/itoa.go \
1006         go/strconv/quote.go
1008 go_strings_files = \
1009         go/strings/reader.go \
1010         go/strings/replace.go \
1011         go/strings/search.go \
1012         go/strings/strings.go \
1013         go/strings/strings_decl.go
1014 go_strings_c_files = \
1015         go/strings/indexbyte.c
1017 go_sync_files = \
1018         go/sync/cond.go \
1019         go/sync/mutex.go \
1020         go/sync/once.go \
1021         go/sync/pool.go \
1022         go/sync/race0.go \
1023         go/sync/runtime.go \
1024         go/sync/rwmutex.go \
1025         go/sync/waitgroup.go
1027 if LIBGO_IS_SOLARIS
1028 go_syslog_file = go/log/syslog/syslog_libc.go
1029 else
1030 if LIBGO_IS_IRIX
1031 go_syslog_file = go/log/syslog/syslog_libc.go
1032 else
1033 go_syslog_file = go/log/syslog/syslog_unix.go
1034 endif
1035 endif
1037 go_log_syslog_files = \
1038         go/log/syslog/syslog.go \
1039         $(go_syslog_file)
1040 go_syslog_c_files = \
1041         go/log/syslog/syslog_c.c
1043 go_testing_files = \
1044         go/testing/allocs.go \
1045         go/testing/benchmark.go \
1046         go/testing/cover.go \
1047         go/testing/example.go \
1048         go/testing/testing.go
1050 go_time_files = \
1051         go/time/format.go \
1052         go/time/sleep.go \
1053         go/time/sys_unix.go \
1054         go/time/tick.go \
1055         go/time/time.go \
1056         go/time/zoneinfo.go \
1057         go/time/zoneinfo_read.go \
1058         go/time/zoneinfo_unix.go
1060 go_unicode_files = \
1061         go/unicode/casetables.go \
1062         go/unicode/digit.go \
1063         go/unicode/graphic.go \
1064         go/unicode/letter.go \
1065         go/unicode/tables.go
1067 if LIBGO_IS_LINUX
1068 archive_tar_atim_file = go/archive/tar/stat_atim.go
1069 endif
1070 if LIBGO_IS_OPENBSD
1071 archive_tar_atim_file = go/archive/tar/stat_atim.go
1072 endif
1073 if LIBGO_IS_SOLARIS
1074 archive_tar_atim_file = go/archive/tar/stat_atim.go
1075 endif
1076 if LIBGO_IS_DARWIN
1077 archive_tar_atim_file = go/archive/tar/stat_atimespec.go
1078 endif
1079 if LIBGO_IS_FREEBSD
1080 archive_tar_atim_file = go/archive/tar/stat_atimespec.go
1081 endif
1082 if LIBGO_IS_NETBSD
1083 archive_tar_atim_file = go/archive/tar/stat_atimespec.go
1084 endif
1086 go_archive_tar_files = \
1087         go/archive/tar/common.go \
1088         go/archive/tar/reader.go \
1089         go/archive/tar/stat_unix.go \
1090         go/archive/tar/writer.go \
1091         $(archive_tar_atim_file)
1093 go_archive_zip_files = \
1094         go/archive/zip/reader.go \
1095         go/archive/zip/register.go \
1096         go/archive/zip/struct.go \
1097         go/archive/zip/writer.go
1099 go_compress_bzip2_files = \
1100         go/compress/bzip2/bit_reader.go \
1101         go/compress/bzip2/bzip2.go \
1102         go/compress/bzip2/huffman.go \
1103         go/compress/bzip2/move_to_front.go
1105 go_compress_flate_files = \
1106         go/compress/flate/copy.go \
1107         go/compress/flate/deflate.go \
1108         go/compress/flate/fixedhuff.go \
1109         go/compress/flate/huffman_bit_writer.go \
1110         go/compress/flate/huffman_code.go \
1111         go/compress/flate/inflate.go \
1112         go/compress/flate/reverse_bits.go \
1113         go/compress/flate/token.go
1115 go_compress_gzip_files = \
1116         go/compress/gzip/gzip.go \
1117         go/compress/gzip/gunzip.go
1119 go_compress_lzw_files = \
1120         go/compress/lzw/reader.go \
1121         go/compress/lzw/writer.go
1123 go_compress_zlib_files = \
1124         go/compress/zlib/reader.go \
1125         go/compress/zlib/writer.go
1127 go_container_heap_files = \
1128         go/container/heap/heap.go
1130 go_container_list_files = \
1131         go/container/list/list.go
1133 go_container_ring_files = \
1134         go/container/ring/ring.go
1136 go_crypto_aes_files = \
1137         go/crypto/aes/block.go \
1138         go/crypto/aes/cipher.go \
1139         go/crypto/aes/cipher_generic.go \
1140         go/crypto/aes/const.go
1141 go_crypto_cipher_files = \
1142         go/crypto/cipher/cbc.go \
1143         go/crypto/cipher/cfb.go \
1144         go/crypto/cipher/cipher.go \
1145         go/crypto/cipher/ctr.go \
1146         go/crypto/cipher/gcm.go \
1147         go/crypto/cipher/io.go \
1148         go/crypto/cipher/ofb.go \
1149         go/crypto/cipher/xor.go
1150 go_crypto_des_files = \
1151         go/crypto/des/block.go \
1152         go/crypto/des/cipher.go \
1153         go/crypto/des/const.go
1154 go_crypto_dsa_files = \
1155         go/crypto/dsa/dsa.go
1156 go_crypto_ecdsa_files = \
1157         go/crypto/ecdsa/ecdsa.go
1158 go_crypto_elliptic_files = \
1159         go/crypto/elliptic/elliptic.go \
1160         go/crypto/elliptic/p224.go \
1161         go/crypto/elliptic/p256.go
1162 go_crypto_hmac_files = \
1163         go/crypto/hmac/hmac.go
1164 go_crypto_md5_files = \
1165         go/crypto/md5/md5.go \
1166         go/crypto/md5/md5block.go \
1167         go/crypto/md5/md5block_generic.go
1168 go_crypto_rand_files = \
1169         go/crypto/rand/rand.go \
1170         go/crypto/rand/rand_unix.go \
1171         go/crypto/rand/util.go
1172 go_crypto_rc4_files = \
1173         go/crypto/rc4/rc4.go \
1174         go/crypto/rc4/rc4_ref.go
1175 go_crypto_rsa_files = \
1176         go/crypto/rsa/pkcs1v15.go \
1177         go/crypto/rsa/pss.go \
1178         go/crypto/rsa/rsa.go
1179 go_crypto_sha1_files = \
1180         go/crypto/sha1/sha1.go \
1181         go/crypto/sha1/sha1block.go \
1182         go/crypto/sha1/sha1block_generic.go
1183 go_crypto_sha256_files = \
1184         go/crypto/sha256/sha256.go \
1185         go/crypto/sha256/sha256block.go
1186 go_crypto_sha512_files = \
1187         go/crypto/sha512/sha512.go \
1188         go/crypto/sha512/sha512block.go
1189 go_crypto_subtle_files = \
1190         go/crypto/subtle/constant_time.go
1191 go_crypto_tls_files = \
1192         go/crypto/tls/alert.go \
1193         go/crypto/tls/cipher_suites.go \
1194         go/crypto/tls/common.go \
1195         go/crypto/tls/conn.go \
1196         go/crypto/tls/handshake_client.go \
1197         go/crypto/tls/handshake_messages.go \
1198         go/crypto/tls/handshake_server.go \
1199         go/crypto/tls/key_agreement.go \
1200         go/crypto/tls/prf.go \
1201         go/crypto/tls/ticket.go \
1202         go/crypto/tls/tls.go
1203 go_crypto_x509_files = \
1204         go/crypto/x509/cert_pool.go \
1205         go/crypto/x509/pem_decrypt.go \
1206         go/crypto/x509/pkcs1.go \
1207         go/crypto/x509/pkcs8.go \
1208         go/crypto/x509/root.go \
1209         go/crypto/x509/root_unix.go \
1210         go/crypto/x509/sec1.go \
1211         go/crypto/x509/verify.go \
1212         go/crypto/x509/x509.go
1214 go_crypto_x509_pkix_files = \
1215         go/crypto/x509/pkix/pkix.go
1217 go_database_sql_files = \
1218         go/database/sql/convert.go \
1219         go/database/sql/sql.go
1221 go_database_sql_driver_files = \
1222         go/database/sql/driver/driver.go \
1223         go/database/sql/driver/types.go
1225 go_debug_dwarf_files = \
1226         go/debug/dwarf/buf.go \
1227         go/debug/dwarf/const.go \
1228         go/debug/dwarf/entry.go \
1229         go/debug/dwarf/line.go \
1230         go/debug/dwarf/open.go \
1231         go/debug/dwarf/type.go \
1232         go/debug/dwarf/typeunit.go \
1233         go/debug/dwarf/unit.go
1234 go_debug_elf_files = \
1235         go/debug/elf/elf.go \
1236         go/debug/elf/file.go
1237 go_debug_gosym_files = \
1238         go/debug/gosym/pclntab.go \
1239         go/debug/gosym/symtab.go
1240 go_debug_macho_files = \
1241         go/debug/macho/fat.go \
1242         go/debug/macho/file.go \
1243         go/debug/macho/macho.go
1244 go_debug_pe_files = \
1245         go/debug/pe/file.go \
1246         go/debug/pe/pe.go
1247 go_debug_plan9obj_files = \
1248         go/debug/plan9obj/file.go \
1249         go/debug/plan9obj/plan9obj.go
1251 go_encoding_ascii85_files = \
1252         go/encoding/ascii85/ascii85.go
1253 go_encoding_asn1_files = \
1254         go/encoding/asn1/asn1.go \
1255         go/encoding/asn1/common.go \
1256         go/encoding/asn1/marshal.go
1257 go_encoding_base32_files = \
1258         go/encoding/base32/base32.go
1259 go_encoding_base64_files = \
1260         go/encoding/base64/base64.go
1261 go_encoding_binary_files = \
1262         go/encoding/binary/binary.go \
1263         go/encoding/binary/varint.go
1264 go_encoding_csv_files = \
1265         go/encoding/csv/reader.go \
1266         go/encoding/csv/writer.go
1267 go_encoding_gob_files = \
1268         go/encoding/gob/decode.go \
1269         go/encoding/gob/decoder.go \
1270         go/encoding/gob/doc.go \
1271         go/encoding/gob/encode.go \
1272         go/encoding/gob/encoder.go \
1273         go/encoding/gob/error.go \
1274         go/encoding/gob/type.go
1275 go_encoding_hex_files = \
1276         go/encoding/hex/hex.go
1277 go_encoding_json_files = \
1278         go/encoding/json/decode.go \
1279         go/encoding/json/encode.go \
1280         go/encoding/json/fold.go \
1281         go/encoding/json/indent.go \
1282         go/encoding/json/scanner.go \
1283         go/encoding/json/stream.go \
1284         go/encoding/json/tags.go
1285 go_encoding_pem_files = \
1286         go/encoding/pem/pem.go
1287 go_encoding_xml_files = \
1288         go/encoding/xml/marshal.go \
1289         go/encoding/xml/read.go \
1290         go/encoding/xml/typeinfo.go \
1291         go/encoding/xml/xml.go
1293 go_exp_proxy_files = \
1294         go/exp/proxy/direct.go \
1295         go/exp/proxy/per_host.go \
1296         go/exp/proxy/proxy.go \
1297         go/exp/proxy/socks5.go
1298 go_exp_terminal_files = \
1299         go/exp/terminal/terminal.go \
1300         go/exp/terminal/util.go
1302 go_go_ast_files = \
1303         go/go/ast/ast.go \
1304         go/go/ast/commentmap.go \
1305         go/go/ast/filter.go \
1306         go/go/ast/import.go \
1307         go/go/ast/print.go \
1308         go/go/ast/resolve.go \
1309         go/go/ast/scope.go \
1310         go/go/ast/walk.go
1311 go_go_build_files = \
1312         go/go/build/build.go \
1313         go/go/build/doc.go \
1314         go/go/build/read.go \
1315         go/go/build/syslist.go
1316 go_go_doc_files = \
1317         go/go/doc/comment.go \
1318         go/go/doc/doc.go \
1319         go/go/doc/example.go \
1320         go/go/doc/exports.go \
1321         go/go/doc/filter.go \
1322         go/go/doc/reader.go \
1323         go/go/doc/synopsis.go
1324 go_go_format_files = \
1325         go/go/format/format.go
1326 go_go_parser_files = \
1327         go/go/parser/interface.go \
1328         go/go/parser/parser.go
1329 go_go_printer_files = \
1330         go/go/printer/nodes.go \
1331         go/go/printer/printer.go
1332 go_go_scanner_files = \
1333         go/go/scanner/errors.go \
1334         go/go/scanner/scanner.go
1335 go_go_token_files = \
1336         go/go/token/position.go \
1337         go/go/token/serialize.go \
1338         go/go/token/token.go
1340 go_hash_adler32_files = \
1341         go/hash/adler32/adler32.go
1342 go_hash_crc32_files = \
1343         go/hash/crc32/crc32.go \
1344         go/hash/crc32/crc32_generic.go
1345 go_hash_crc64_files = \
1346         go/hash/crc64/crc64.go
1347 go_hash_fnv_files = \
1348         go/hash/fnv/fnv.go
1350 go_html_template_files = \
1351         go/html/template/attr.go \
1352         go/html/template/content.go \
1353         go/html/template/context.go \
1354         go/html/template/css.go \
1355         go/html/template/doc.go \
1356         go/html/template/error.go \
1357         go/html/template/escape.go \
1358         go/html/template/html.go \
1359         go/html/template/js.go \
1360         go/html/template/template.go \
1361         go/html/template/transition.go \
1362         go/html/template/url.go
1364 go_image_color_files = \
1365         go/image/color/color.go \
1366         go/image/color/ycbcr.go
1368 go_image_color_palette_files = \
1369         go/image/color/palette/palette.go
1371 go_image_draw_files = \
1372         go/image/draw/draw.go
1374 go_image_gif_files = \
1375         go/image/gif/reader.go \
1376         go/image/gif/writer.go
1378 go_image_jpeg_files = \
1379         go/image/jpeg/fdct.go \
1380         go/image/jpeg/huffman.go \
1381         go/image/jpeg/idct.go \
1382         go/image/jpeg/reader.go \
1383         go/image/jpeg/scan.go \
1384         go/image/jpeg/writer.go
1386 go_image_png_files = \
1387         go/image/png/paeth.go \
1388         go/image/png/reader.go \
1389         go/image/png/writer.go
1391 go_index_suffixarray_files = \
1392         go/index/suffixarray/qsufsort.go \
1393         go/index/suffixarray/suffixarray.go
1395 go_io_ioutil_files = \
1396         go/io/ioutil/ioutil.go \
1397         go/io/ioutil/tempfile.go
1399 go_math_big_files = \
1400         go/math/big/arith.go \
1401         go/math/big/int.go \
1402         go/math/big/nat.go \
1403         go/math/big/rat.go
1404 go_math_cmplx_files = \
1405         go/math/cmplx/abs.go \
1406         go/math/cmplx/asin.go \
1407         go/math/cmplx/conj.go \
1408         go/math/cmplx/exp.go \
1409         go/math/cmplx/isinf.go \
1410         go/math/cmplx/isnan.go \
1411         go/math/cmplx/log.go \
1412         go/math/cmplx/phase.go \
1413         go/math/cmplx/polar.go \
1414         go/math/cmplx/pow.go \
1415         go/math/cmplx/rect.go \
1416         go/math/cmplx/sin.go \
1417         go/math/cmplx/sqrt.go \
1418         go/math/cmplx/tan.go
1419 go_math_rand_files = \
1420         go/math/rand/exp.go \
1421         go/math/rand/normal.go \
1422         go/math/rand/rand.go \
1423         go/math/rand/rng.go \
1424         go/math/rand/zipf.go
1426 go_mime_multipart_files = \
1427         go/mime/multipart/formdata.go \
1428         go/mime/multipart/multipart.go \
1429         go/mime/multipart/quotedprintable.go \
1430         go/mime/multipart/writer.go
1432 go_net_http_files = \
1433         go/net/http/chunked.go \
1434         go/net/http/client.go \
1435         go/net/http/cookie.go \
1436         go/net/http/filetransport.go \
1437         go/net/http/fs.go \
1438         go/net/http/header.go \
1439         go/net/http/jar.go \
1440         go/net/http/lex.go \
1441         go/net/http/request.go \
1442         go/net/http/response.go \
1443         go/net/http/server.go \
1444         go/net/http/sniff.go \
1445         go/net/http/status.go \
1446         go/net/http/transfer.go \
1447         go/net/http/transport.go
1448 go_net_mail_files = \
1449         go/net/mail/message.go
1450 go_net_smtp_files = \
1451         go/net/smtp/auth.go \
1452         go/net/smtp/smtp.go
1453 go_net_textproto_files = \
1454         go/net/textproto/header.go \
1455         go/net/textproto/pipeline.go \
1456         go/net/textproto/reader.go \
1457         go/net/textproto/textproto.go \
1458         go/net/textproto/writer.go
1459 go_net_url_files = \
1460         go/net/url/url.go
1462 go_net_http_cgi_files = \
1463         go/net/http/cgi/child.go \
1464         go/net/http/cgi/host.go
1465 go_net_http_cookiejar_files = \
1466         go/net/http/cookiejar/jar.go \
1467         go/net/http/cookiejar/punycode.go
1468 go_net_http_fcgi_files = \
1469         go/net/http/fcgi/child.go \
1470         go/net/http/fcgi/fcgi.go
1471 go_net_http_httptest_files = \
1472         go/net/http/httptest/recorder.go \
1473         go/net/http/httptest/server.go
1474 go_net_http_pprof_files = \
1475         go/net/http/pprof/pprof.go
1476 go_net_http_httputil_files = \
1477         go/net/http/httputil/chunked.go \
1478         go/net/http/httputil/dump.go \
1479         go/net/http/httputil/httputil.go \
1480         go/net/http/httputil/persist.go \
1481         go/net/http/httputil/reverseproxy.go
1484 go_old_regexp_files = \
1485         go/old/regexp/regexp.go
1486 go_old_template_files = \
1487         go/old/template/doc.go \
1488         go/old/template/execute.go \
1489         go/old/template/format.go \
1490         go/old/template/parse.go
1492 go_os_exec_files = \
1493         go/os/exec/exec.go \
1494         go/os/exec/lp_unix.go
1496 go_os_signal_files = \
1497         go/os/signal/signal.go \
1498         go/os/signal/signal_unix.go
1500 if LIBGO_IS_SOLARIS
1501 os_user_decls_file = go/os/user/decls_solaris.go
1502 else
1503 os_user_decls_file = go/os/user/decls_unix.go
1504 endif
1506 go_os_user_files = \
1507         go/os/user/lookup.go \
1508         go/os/user/lookup_unix.go \
1509         go/os/user/user.go \
1510         $(os_user_decls_file)
1512 go_path_filepath_files = \
1513         go/path/filepath/match.go \
1514         go/path/filepath/path.go \
1515         go/path/filepath/path_unix.go \
1516         go/path/filepath/symlink.go
1518 go_regexp_syntax_files = \
1519         go/regexp/syntax/compile.go \
1520         go/regexp/syntax/doc.go \
1521         go/regexp/syntax/parse.go \
1522         go/regexp/syntax/perl_groups.go \
1523         go/regexp/syntax/prog.go \
1524         go/regexp/syntax/regexp.go \
1525         go/regexp/syntax/simplify.go
1527 go_net_rpc_jsonrpc_files = \
1528         go/net/rpc/jsonrpc/client.go \
1529         go/net/rpc/jsonrpc/server.go
1531 go_runtime_debug_files = \
1532         go/runtime/debug/garbage.go \
1533         go/runtime/debug/stack.go
1534 go_runtime_pprof_files = \
1535         go/runtime/pprof/pprof.go
1537 go_text_tabwriter_files = \
1538         go/text/tabwriter/tabwriter.go
1539 go_text_template_files = \
1540         go/text/template/doc.go \
1541         go/text/template/exec.go \
1542         go/text/template/funcs.go \
1543         go/text/template/helper.go \
1544         go/text/template/template.go
1545 go_text_template_parse_files = \
1546         go/text/template/parse/lex.go \
1547         go/text/template/parse/node.go \
1548         go/text/template/parse/parse.go
1550 go_sync_atomic_files = \
1551         go/sync/atomic/doc.go
1552 go_sync_atomic_c_files = \
1553         go/sync/atomic/atomic.c
1555 go_testing_iotest_files = \
1556         go/testing/iotest/logger.go \
1557         go/testing/iotest/reader.go \
1558         go/testing/iotest/writer.go
1559 go_testing_quick_files = \
1560         go/testing/quick/quick.go
1562 go_text_scanner_files = \
1563         go/text/scanner/scanner.go
1565 go_unicode_utf16_files = \
1566         go/unicode/utf16/utf16.go
1567 go_unicode_utf8_files = \
1568         go/unicode/utf8/utf8.go
1570 # Define Syscall and Syscall6.
1571 if LIBGO_IS_RTEMS
1572 syscall_syscall_file = go/syscall/syscall_stubs.go
1573 else
1574 syscall_syscall_file = go/syscall/syscall_unix.go
1575 endif
1577 # Define ForkExec and Exec.
1578 if LIBGO_IS_RTEMS
1579 syscall_exec_file = go/syscall/exec_stubs.go
1580 syscall_exec_os_file =
1581 else
1582 if LIBGO_IS_LINUX
1583 syscall_exec_file = go/syscall/exec_unix.go
1584 syscall_exec_os_file = go/syscall/exec_linux.go
1585 else
1586 syscall_exec_file = go/syscall/exec_unix.go
1587 syscall_exec_os_file = go/syscall/exec_bsd.go
1588 endif
1589 endif
1591 # Define Wait4.
1592 if LIBGO_IS_RTEMS
1593 syscall_wait_file =
1594 else
1595 if HAVE_WAIT4
1596 syscall_wait_file = go/syscall/libcall_wait4.go
1597 else
1598 syscall_wait_file = go/syscall/libcall_waitpid.go
1599 endif
1600 endif
1602 # Support for pulling apart wait status.
1603 if LIBGO_IS_RTEMS
1604 syscall_wait_c_file =
1605 else
1606 syscall_wait_c_file = go/syscall/wait.c
1607 endif
1609 # Define Sleep.
1610 if LIBGO_IS_RTEMS
1611 syscall_sleep_file = go/syscall/sleep_rtems.go
1612 else
1613 syscall_sleep_file = go/syscall/sleep_select.go
1614 endif
1616 # Define Errstr.
1617 if LIBGO_IS_LINUX
1618 syscall_errstr_file = go/syscall/errstr_linux.go
1619 else
1620 if LIBGO_IS_RTEMS
1621 syscall_errstr_file = go/syscall/errstr_linux.go
1622 else
1623 if HAVE_STRERROR_R
1624 syscall_errstr_file = go/syscall/errstr.go
1625 else
1626 syscall_errstr_file = go/syscall/errstr_nor.go
1627 endif
1628 endif
1629 endif
1631 # Declare libc functions that vary for largefile systems.
1632 if LIBGO_IS_LINUX
1633 # Always use lseek64 on GNU/Linux.
1634 syscall_size_file = go/syscall/libcall_posix_largefile.go
1635 else # !LIBGO_IS_LINUX
1636 if LIBGO_IS_SOLARIS
1637 if LIBGO_IS_386
1638 # Use lseek64 on 32-bit Solaris/x86.
1639 syscall_size_file = go/syscall/libcall_posix_largefile.go
1640 else # !LIBGO_IS_386
1641 if LIBGO_IS_SPARC
1642 # Use lseek64 on 32-bit Solaris/SPARC.
1643 syscall_size_file = go/syscall/libcall_posix_largefile.go
1644 else # !LIBGO_IS_386 && !LIBGO_IS_SPARC
1645 # Use lseek on 64-bit Solaris.
1646 syscall_size_file = go/syscall/libcall_posix_regfile.go
1647 endif # !LIBGO_IS_386 && !LIBGO_IS_SPARC
1648 endif # !LIBGO_IS_SOLARIS
1649 else # !LIBGO_IS_LINUX && !LIBGO_IS_SOLARIS
1650 # Use lseek by default.
1651 syscall_size_file = go/syscall/libcall_posix_regfile.go
1652 endif # !LIBGO_IS_SOLARIS
1653 endif # !LIBGO_IS_LINUX
1655 # Define socket sizes and types.
1656 if LIBGO_IS_LINUX
1657 syscall_socket_file = go/syscall/socket_linux.go epoll.go
1658 else
1659 if LIBGO_IS_SOLARIS
1660 syscall_socket_file = go/syscall/socket_solaris.go
1661 else
1662 if LIBGO_IS_IRIX
1663 syscall_socket_file = go/syscall/socket_irix.go
1664 else
1665 syscall_socket_file = go/syscall/socket_bsd.go
1666 endif
1667 endif
1668 endif
1670 # Define socket functions.
1671 if LIBGO_IS_SOLARIS
1672 syscall_socket_os_file = go/syscall/socket_xnet.go
1673 else
1674 syscall_socket_os_file = go/syscall/socket_posix.go
1675 endif
1677 # Support for uname.
1678 if LIBGO_IS_SOLARIS
1679 if LIBGO_IS_386
1680 # 32-bit Solaris 2/x86 needs _nuname, handled in libcall_solaris_386.go.
1681 syscall_uname_file =
1682 else # !LIBGO_IS_386 && LIBGO_IS_SOLARIS
1683 syscall_uname_file = go/syscall/libcall_uname.go
1684 endif
1685 else # !LIBGO_IS_SOLARIS
1686 syscall_uname_file = go/syscall/libcall_uname.go
1687 endif
1689 # GNU/Linux specific socket control messages.
1690 if LIBGO_IS_LINUX
1691 syscall_sockcmsg_file = go/syscall/sockcmsg_linux.go
1692 else
1693 syscall_sockcmsg_file =
1694 endif
1696 # Support for netlink sockets and messages.
1697 if LIBGO_IS_LINUX
1698 syscall_netlink_file = go/syscall/netlink_linux.go
1699 else
1700 syscall_netlink_file =
1701 endif
1703 # GNU/Linux specific socket filters.
1704 if LIBGO_IS_LINUX
1705 syscall_lsf_file = go/syscall/lsf_linux.go
1706 else
1707 syscall_lsf_file =
1708 endif
1710 # GNU/Linux specific utimesnano support.
1711 if LIBGO_IS_LINUX
1712 syscall_utimesnano_file = go/syscall/libcall_linux_utimesnano.go
1713 else
1714 syscall_utimesnano_file = go/syscall/libcall_posix_utimesnano.go
1715 endif
1717 # Test files.
1718 if LIBGO_IS_LINUX
1719 syscall_creds_test_file = go/syscall/creds_test.go
1720 else
1721 syscall_creds_test_file =
1722 endif
1724 go_base_syscall_files = \
1725         go/syscall/env_unix.go \
1726         go/syscall/syscall_errno.go \
1727         go/syscall/libcall_support.go \
1728         go/syscall/libcall_posix.go \
1729         go/syscall/race0.go \
1730         go/syscall/socket.go \
1731         go/syscall/sockcmsg_unix.go \
1732         go/syscall/str.go \
1733         go/syscall/syscall.go \
1734         $(syscall_sockcmsg_file) \
1735         $(syscall_syscall_file) \
1736         $(syscall_exec_file) \
1737         $(syscall_exec_os_file) \
1738         $(syscall_wait_file) \
1739         $(syscall_sleep_file) \
1740         $(syscall_errstr_file) \
1741         $(syscall_size_file) \
1742         $(syscall_socket_file) \
1743         $(syscall_socket_os_file) \
1744         $(syscall_uname_file) \
1745         $(syscall_netlink_file) \
1746         $(syscall_lsf_file) \
1747         $(syscall_utimesnano_file) \
1748         $(GO_LIBCALL_OS_FILE) \
1749         $(GO_LIBCALL_OS_ARCH_FILE) \
1750         $(GO_SYSCALL_OS_FILE) \
1751         $(GO_SYSCALL_OS_ARCH_FILE)
1753 go_syscall_files = \
1754         $(go_base_syscall_files) \
1755         libcalls.go \
1756         sysinfo.go \
1757         syscall_arch.go
1758 go_syscall_c_files = \
1759         go/syscall/errno.c \
1760         go/syscall/signame.c \
1761         $(syscall_wait_c_file)
1763 go_syscall_test_files = \
1764         $(syscall_creds_test_file) \
1765         go/syscall/mmap_unix_test.go \
1766         go/syscall/syscall_test.go \
1767         go/syscall/syscall_unix_test.go
1769 libcalls.go: s-libcalls; @true
1770 s-libcalls: libcalls-list go/syscall/mksyscall.awk $(go_base_syscall_files)
1771         rm -f libcalls.go.tmp
1772         files=`echo $^ | sed -e 's/libcalls-list//' -e 's|[^ ]*go/syscall/mksyscall.awk||'`; \
1773         $(AWK) -f $(srcdir)/go/syscall/mksyscall.awk $${files} > libcalls.go.tmp
1774         $(SHELL) $(srcdir)/../move-if-change libcalls.go.tmp libcalls.go
1775         $(STAMP) $@
1777 libcalls-list: s-libcalls-list; @true
1778 s-libcalls-list: Makefile
1779         rm -f libcalls-list.tmp
1780         echo $(go_base_syscall_files) > libcalls-list.tmp
1781         $(SHELL) $(srcdir)/../move-if-change libcalls-list.tmp libcalls-list
1782         $(STAMP) $@
1784 syscall_arch.go: s-syscall_arch; @true
1785 s-syscall_arch: Makefile
1786         rm -f syscall_arch.go.tmp
1787         echo "package syscall" > syscall_arch.go.tmp
1788         echo 'const ARCH = "'$(GOARCH)'"' >> syscall_arch.go.tmp
1789         echo 'const OS = "'$(GOOS)'"' >> syscall_arch.go.tmp
1790         $(SHELL) $(srcdir)/../move-if-change syscall_arch.go.tmp syscall_arch.go
1791         $(STAMP) $@
1793 sysinfo.go: s-sysinfo; @true
1794 s-sysinfo: $(srcdir)/mksysinfo.sh config.h
1795         CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS)" $(SHELL) $(srcdir)/mksysinfo.sh
1796         $(SHELL) $(srcdir)/../move-if-change tmp-sysinfo.go sysinfo.go
1797         $(STAMP) $@
1799 # The epoll struct has an embedded union and is packed on x86_64,
1800 # which is too complicated for mksysinfo.sh.  We find the offset of
1801 # the only field we care about in configure.ac, and generate the
1802 # struct here.
1803 epoll.go: s-epoll; @true
1804 s-epoll: Makefile
1805         rm -f epoll.go.tmp
1806         echo 'package syscall' > epoll.go.tmp
1807         echo 'type EpollEvent struct {' >> epoll.go.tmp
1808         echo '  Events uint32' >> epoll.go.tmp
1809         case "$(SIZEOF_STRUCT_EPOLL_EVENT),$(STRUCT_EPOLL_EVENT_FD_OFFSET)" in \
1810         0,0) echo 1>&2 "*** struct epoll_event data.fd offset unknown"; \
1811            exit 1; ;; \
1812         8,4) echo '     Fd int32' >> epoll.go.tmp; ;; \
1813         12,4) echo '    Fd int32' >> epoll.go.tmp; \
1814            echo '       Pad [4]byte' >> epoll.go.tmp; ;; \
1815         12,8) echo '    Pad [4]byte' >> epoll.go.tmp; \
1816            echo '       Fd int32' >> epoll.go.tmp; ;; \
1817         16,8) echo '    Pad [4]byte' >> epoll.go.tmp; \
1818            echo '       Fd int32' >> epoll.go.tmp; \
1819            echo '       Pad2 [4]byte' >> epoll.go.tmp; ;; \
1820         *) echo 1>&2 "*** struct epoll_event unsupported"; \
1821            exit 1; ;; \
1822         esac
1823         echo '}' >> epoll.go.tmp
1824         $(SHELL) $(srcdir)/../move-if-change epoll.go.tmp epoll.go
1825         $(STAMP) $@
1827 if LIBGO_IS_LINUX
1828 # os_lib_inotify_lo = os/inotify.lo
1829 os_lib_inotify_lo =
1830 else
1831 os_lib_inotify_lo =
1832 endif
1834 libgo_go_objs = \
1835         bufio.lo \
1836         bytes.lo \
1837         bytes/index.lo \
1838         crypto.lo \
1839         encoding.lo \
1840         errors.lo \
1841         expvar.lo \
1842         flag.lo \
1843         fmt.lo \
1844         hash.lo \
1845         html.lo \
1846         image.lo \
1847         io.lo \
1848         log.lo \
1849         math.lo \
1850         mime.lo \
1851         net.lo \
1852         os.lo \
1853         path.lo \
1854         reflect-go.lo \
1855         reflect/makefunc.lo \
1856         reflect/makefunc_ffi_c.lo \
1857         regexp.lo \
1858         runtime-go.lo \
1859         sort.lo \
1860         strconv.lo \
1861         strings.lo \
1862         strings/index.lo \
1863         sync.lo \
1864         syscall.lo \
1865         syscall/errno.lo \
1866         syscall/signame.lo \
1867         syscall/wait.lo \
1868         testing.lo \
1869         time-go.lo \
1870         unicode.lo \
1871         archive/tar.lo \
1872         archive/zip.lo \
1873         compress/bzip2.lo \
1874         compress/flate.lo \
1875         compress/gzip.lo \
1876         compress/lzw.lo \
1877         compress/zlib.lo \
1878         container/heap.lo \
1879         container/list.lo \
1880         container/ring.lo \
1881         crypto/aes.lo \
1882         crypto/cipher.lo \
1883         crypto/des.lo \
1884         crypto/dsa.lo \
1885         crypto/ecdsa.lo \
1886         crypto/elliptic.lo \
1887         crypto/hmac.lo \
1888         crypto/md5.lo \
1889         crypto/rand.lo \
1890         crypto/rc4.lo \
1891         crypto/rsa.lo \
1892         crypto/sha1.lo \
1893         crypto/sha256.lo \
1894         crypto/sha512.lo \
1895         crypto/subtle.lo \
1896         crypto/tls.lo \
1897         crypto/x509.lo \
1898         crypto/x509/pkix.lo \
1899         database/sql.lo \
1900         database/sql/driver.lo \
1901         debug/dwarf.lo \
1902         debug/elf.lo \
1903         debug/gosym.lo \
1904         debug/macho.lo \
1905         debug/pe.lo \
1906         debug/plan9obj.lo \
1907         encoding/ascii85.lo \
1908         encoding/asn1.lo \
1909         encoding/base32.lo \
1910         encoding/base64.lo \
1911         encoding/binary.lo \
1912         encoding/csv.lo \
1913         encoding/gob.lo \
1914         encoding/hex.lo \
1915         encoding/json.lo \
1916         encoding/pem.lo \
1917         encoding/xml.lo \
1918         exp/proxy.lo \
1919         exp/terminal.lo \
1920         html/template.lo \
1921         go/ast.lo \
1922         go/build.lo \
1923         go/doc.lo \
1924         go/format.lo \
1925         go/parser.lo \
1926         go/printer.lo \
1927         go/scanner.lo \
1928         go/token.lo \
1929         hash/adler32.lo \
1930         hash/crc32.lo \
1931         hash/crc64.lo \
1932         hash/fnv.lo \
1933         net/http/cgi.lo \
1934         net/http/cookiejar.lo \
1935         net/http/fcgi.lo \
1936         net/http/httptest.lo \
1937         net/http/httputil.lo \
1938         net/http/pprof.lo \
1939         image/color.lo \
1940         image/color/palette.lo \
1941         image/draw.lo \
1942         image/gif.lo \
1943         image/jpeg.lo \
1944         image/png.lo \
1945         index/suffixarray.lo \
1946         io/ioutil.lo \
1947         log/syslog.lo \
1948         log/syslog/syslog_c.lo \
1949         math/big.lo \
1950         math/cmplx.lo \
1951         math/rand.lo \
1952         mime/multipart.lo \
1953         net/http.lo \
1954         net/mail.lo \
1955         net/rpc.lo \
1956         net/smtp.lo \
1957         net/textproto.lo \
1958         net/url.lo \
1959         old/regexp.lo \
1960         old/template.lo \
1961         os/exec.lo \
1962         $(os_lib_inotify_lo) \
1963         os/signal.lo \
1964         os/user.lo \
1965         path/filepath.lo \
1966         regexp/syntax.lo \
1967         net/rpc/jsonrpc.lo \
1968         runtime/debug.lo \
1969         runtime/pprof.lo \
1970         sync/atomic.lo \
1971         sync/atomic_c.lo \
1972         text/scanner.lo \
1973         text/tabwriter.lo \
1974         text/template.lo \
1975         text/template/parse.lo \
1976         testing/iotest.lo \
1977         testing/quick.lo \
1978         unicode/utf16.lo \
1979         unicode/utf8.lo
1981 libgo_la_SOURCES = $(runtime_files)
1983 libgo_la_LDFLAGS = \
1984         -version-info $(libtool_VERSION) $(PTHREAD_CFLAGS) $(AM_LDFLAGS)
1986 libgo_la_LIBADD = \
1987         $(libgo_go_objs) ../libbacktrace/libbacktrace.la \
1988         $(LIBATOMIC) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)
1990 libgobegin_a_SOURCES = \
1991         runtime/go-main.c
1993 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
1995 GOCFLAGS = $(CFLAGS)
1996 AM_GOCFLAGS = $(STRINGOPS_FLAG)
1997 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
1999 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
2000         $(AM_GOCFLAGS) $(GOCFLAGS)
2002 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
2003         $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
2005 # Build the dependencies for a Go package.
2006 BUILDDEPS = \
2007         $(MKDIR_P) $(@D); \
2008         $(SHELL) $(srcdir)/godeps.sh `echo $@ | sed -e 's/.dep$$//'` $^ > $@.tmp; \
2009         mv -f $@.tmp $@
2011 # Build the .go files for a package, generating a .lo file.
2012 BUILDPACKAGE = \
2013         $(MKDIR_P) $(@D); \
2014         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
2015         $(LTGOCOMPILE) -I . -c -fgo-pkgpath=`echo $@ | sed -e 's/.lo$$//' -e 's/-go$$//'` -o $@ $$files
2017 GOTESTFLAGS =
2018 GOBENCH = 
2020 # Check a package.
2021 CHECK = \
2022         GC="$(GOC) $(GOCFLAGS) $($(subst /,_,$@)_GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
2023         export GC; \
2024         GOLIBS="$(MATH_LIBS) $(NET_LIBS) $(LIBS)"; \
2025         export GOLIBS; \
2026         RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
2027         export RUNTESTFLAGS; \
2028         MAKE="$(MAKE)"; \
2029         export MAKE; \
2030         libgccdir=`${GOC} -print-libgcc-file-name | sed -e 's|/[^/]*$$||'`; \
2031         LD_LIBRARY_PATH="`${PWD_COMMAND}`/.libs:$${libgccdir}:${LD_LIBRARY_PATH}"; \
2032         LD_LIBRARY_PATH=`echo $${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
2033         export LD_LIBRARY_PATH; \
2034         $(MKDIR_P) $(@D); \
2035         rm -f $@-testsum $@-testlog; \
2036         if test "$(USE_DEJAGNU)" = "yes"; then \
2037           $(SHELL) $(srcdir)/testsuite/gotest --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --testname="$(@D)" --goarch="$(GOARCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files); \
2038         elif test "$(GOBENCH)" != ""; then \
2039           $(SHELL) $(srcdir)/testsuite/gotest --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --goarch="$(GOARCH)" --bench="$(GOBENCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files); \
2040         else \
2041           if $(SHELL) $(srcdir)/testsuite/gotest --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --goarch="$(GOARCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files) >>$@-testlog 2>&1; then \
2042             echo "PASS: $(@D)" >> $@-testlog; \
2043             echo "PASS: $(@D)"; \
2044             echo "PASS: $(@D)" > $@-testsum; \
2045           else \
2046             echo "FAIL: $(@D)" >> $@-testlog; \
2047             cat $@-testlog; \
2048             echo "FAIL: $(@D)" > $@-testsum; \
2049             exit 1; \
2050           fi; \
2051         fi
2053 # Build all packages before checking any.
2054 CHECK_DEPS = libgo.la libgobegin.a \
2055         $(toolexeclibgo_DATA) \
2056         $(toolexeclibgoarchive_DATA) \
2057         $(toolexeclibgocompress_DATA) \
2058         $(toolexeclibgocontainer_DATA) \
2059         $(toolexeclibgocrypto_DATA) \
2060         $(toolexeclibgodebug_DATA) \
2061         $(toolexeclibgoencoding_DATA) \
2062         $(toolexeclibgoexp_DATA) \
2063         $(toolexeclibgogo_DATA) \
2064         $(toolexeclibgohash_DATA) \
2065         $(toolexeclibgoimage_DATA) \
2066         $(toolexeclibgoindex_DATA) \
2067         $(toolexeclibgoio_DATA) \
2068         $(toolexeclibgolog_DATA) \
2069         $(toolexeclibgomath_DATA) \
2070         $(toolexeclibgomime_DATA) \
2071         $(toolexeclibgonet_DATA) \
2072         $(toolexeclibgonethttp_DATA) \
2073         $(toolexeclibgoos_DATA) \
2074         $(toolexeclibgopath_DATA) \
2075         $(toolexeclibgorpc_DATA) \
2076         $(toolexeclibgoruntime_DATA) \
2077         $(toolexeclibgosync_DATA) \
2078         $(toolexeclibgotesting_DATA) \
2079         $(toolexeclibgotext_DATA) \
2080         $(toolexeclibgotexttemplate_DATA) \
2081         $(toolexeclibgounicode_DATA)
2083 @go_include@ bufio.lo.dep
2084 bufio.lo.dep: $(go_bufio_files)
2085         $(BUILDDEPS)
2086 bufio.lo: $(go_bufio_files)
2087         $(BUILDPACKAGE)
2088 bufio/check: $(CHECK_DEPS)
2089         @$(CHECK)
2090 .PHONY: bufio/check
2092 @go_include@ bytes.lo.dep
2093 bytes.lo.dep: $(go_bytes_files)
2094         $(BUILDDEPS)
2095 bytes.lo: $(go_bytes_files)
2096         $(BUILDPACKAGE)
2097 bytes/index.lo: $(go_bytes_c_files)
2098         @$(MKDIR_P) bytes
2099         $(LTCOMPILE) -c -o bytes/index.lo $(srcdir)/go/bytes/indexbyte.c
2100 bytes/check: $(CHECK_DEPS)
2101         @$(CHECK)
2102 .PHONY: bytes/check
2104 @go_include@ crypto.lo.dep
2105 crypto.lo.dep: $(go_crypto_files)
2106         $(BUILDDEPS)
2107 crypto.lo: $(go_crypto_files)
2108         $(BUILDPACKAGE)
2109 crypto/check: $(CHECK_DEPS)
2110         @$(CHECK)
2111 .PHONY: crypto/check
2113 @go_include@ encoding.lo.dep
2114 encoding.lo.dep: $(go_encoding_files)
2115         $(BUILDDEPS)
2116 encoding.lo: $(go_encoding_files)
2117         $(BUILDPACKAGE)
2118 encoding/check: $(CHECK_DEPS)
2119         @$(CHECK)
2120 .PHONY: encoding/check
2122 @go_include@ errors.lo.dep
2123 errors.lo.dep: $(go_errors_files)
2124         $(BUILDDEPS)
2125 errors.lo: $(go_errors_files)
2126         $(BUILDPACKAGE)
2127 errors/check: $(CHECK_DEPS)
2128         @$(CHECK)
2129 .PHONY: errors/check
2131 @go_include@ expvar.lo.dep
2132 expvar.lo.dep: $(go_expvar_files)
2133         $(BUILDDEPS)
2134 expvar.lo: $(go_expvar_files)
2135         $(BUILDPACKAGE)
2136 expvar/check: $(CHECK_DEPS)
2137         @$(CHECK)
2138 .PHONY: expvar/check
2140 @go_include@ flag.lo.dep
2141 flag.lo.dep: $(go_flag_files)
2142         $(BUILDDEPS)
2143 flag.lo: $(go_flag_files)
2144         $(BUILDPACKAGE)
2145 flag/check: $(CHECK_DEPS)
2146         @$(CHECK)
2147 .PHONY: flag/check
2149 @go_include@ fmt.lo.dep
2150 fmt.lo.dep: $(go_fmt_files)
2151         $(BUILDDEPS)
2152 fmt.lo: $(go_fmt_files)
2153         $(BUILDPACKAGE)
2154 fmt/check: $(CHECK_DEPS)
2155         @$(CHECK)
2156 .PHONY: fmt/check
2158 @go_include@ hash.lo.dep
2159 hash.lo.dep: $(go_hash_files)
2160         $(BUILDDEPS)
2161 hash.lo: $(go_hash_files)
2162         $(BUILDPACKAGE)
2163 hash/check: $(CHECK_DEPS)
2164         @$(CHECK)
2165 .PHONY: hash/check
2167 @go_include@ html.lo.dep
2168 html.lo.dep: $(go_html_files)
2169         $(BUILDDEPS)
2170 html.lo: $(go_html_files)
2171         $(BUILDPACKAGE)
2172 html/check: $(CHECK_DEPS)
2173         @$(CHECK)
2174 .PHONY: html/check
2176 @go_include@ image.lo.dep
2177 image.lo.dep: $(go_image_files)
2178         $(BUILDDEPS)
2179 image.lo: $(go_image_files)
2180         $(BUILDPACKAGE)
2181 image/check: $(CHECK_DEPS)
2182         @$(CHECK)
2183 .PHONY: image/check
2185 @go_include@ io.lo.dep
2186 io.lo.dep: $(go_io_files)
2187         $(BUILDDEPS)
2188 io.lo: $(go_io_files)
2189         $(BUILDPACKAGE)
2190 io/check: $(CHECK_DEPS)
2191         @$(CHECK)
2192 .PHONY: io/check
2194 @go_include@ log.lo.dep
2195 log.lo.dep: $(go_log_files)
2196         $(BUILDDEPS)
2197 log.lo: $(go_log_files)
2198         $(BUILDPACKAGE)
2199 log/check: $(CHECK_DEPS)
2200         @$(CHECK)
2201 .PHONY: log/check
2203 @go_include@ math.lo.dep
2204 math.lo.dep: $(go_math_files)
2205         $(BUILDDEPS)
2206 math.lo: $(go_math_files)
2207         $(MKDIR_P) $(@D)
2208         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
2209         $(LTGOCOMPILE) $(MATH_FLAG) -I . -c -fgo-pkgpath=math -o $@ $$files
2210 math/check: $(CHECK_DEPS)
2211         @$(CHECK)
2212 .PHONY: math/check
2214 @go_include@ mime.lo.dep
2215 mime.lo.dep: $(go_mime_files)
2216         $(BUILDDEPS)
2217 mime.lo: $(go_mime_files)
2218         $(BUILDPACKAGE)
2219 mime/check: $(CHECK_DEPS)
2220         @$(CHECK)
2221 .PHONY: mime/check
2223 @go_include@ net.lo.dep
2224 net.lo.dep: $(go_net_files)
2225         $(BUILDDEPS)
2226 net.lo: $(go_net_files)
2227         $(BUILDPACKAGE)
2228 net/check: $(CHECK_DEPS)
2229         @$(CHECK)
2230 .PHONY: net/check
2232 @go_include@ os.lo.dep
2233 os.lo.dep: $(go_os_files)
2234         $(BUILDDEPS)
2235 os.lo: $(go_os_files)
2236         $(BUILDPACKAGE)
2237 os/check: $(CHECK_DEPS)
2238         @$(CHECK)
2239 .PHONY: os/check
2241 @go_include@ path.lo.dep
2242 path.lo.dep: $(go_path_files)
2243         $(BUILDDEPS)
2244 path.lo: $(go_path_files)
2245         $(BUILDPACKAGE)
2246 path/check: $(CHECK_DEPS)
2247         @$(CHECK)
2248 .PHONY: path/check
2250 @go_include@ reflect-go.lo.dep
2251 reflect-go.lo.dep: $(go_reflect_files)
2252         $(BUILDDEPS)
2253 reflect-go.lo: $(go_reflect_files)
2254         $(BUILDPACKAGE)
2255 reflect/check: $(CHECK_DEPS)
2256         @$(CHECK)
2257 reflect/makefunc.lo: $(go_reflect_makefunc_s_file)
2258         @$(MKDIR_P) reflect
2259         $(LTCOMPILE) -c -o $@ $<
2260 reflect/makefunc_ffi_c.lo: $(go_reflect_makefunc_c_file)
2261         @$(MKDIR_P) reflect
2262         $(LTCOMPILE) -c -o $@ $<
2263 .PHONY: reflect/check
2265 @go_include@ regexp.lo.dep
2266 regexp.lo.dep: $(go_regexp_files)
2267         $(BUILDDEPS)
2268 regexp.lo: $(go_regexp_files)
2269         $(BUILDPACKAGE)
2270 regexp/check: $(CHECK_DEPS)
2271         @$(CHECK)
2272 .PHONY: regexp/check
2274 @go_include@ runtime-go.lo.dep
2275 runtime-go.lo.dep: $(go_runtime_files)
2276         $(BUILDDEPS)
2277 runtime-go.lo: $(go_runtime_files)
2278         $(BUILDPACKAGE)
2279 runtime/check: $(CHECK_DEPS)
2280         @$(CHECK)
2281 .PHONY: runtime/check
2283 @go_include@ sort.lo.dep
2284 sort.lo.dep: $(go_sort_files)
2285         $(BUILDDEPS)
2286 sort.lo: $(go_sort_files)
2287         $(BUILDPACKAGE)
2288 sort/check: $(CHECK_DEPS)
2289         @$(CHECK)
2290 .PHONY: sort/check
2292 @go_include@ strconv.lo.dep
2293 strconv.lo.dep: $(go_strconv_files)
2294         $(BUILDDEPS)
2295 strconv.lo: $(go_strconv_files)
2296         $(BUILDPACKAGE)
2297 strconv/check: $(CHECK_DEPS)
2298         @$(CHECK)
2299 .PHONY: strconv/check
2301 @go_include@ strings.lo.dep
2302 strings.lo.dep: $(go_strings_files)
2303         $(BUILDDEPS)
2304 strings.lo: $(go_strings_files)
2305         $(BUILDPACKAGE)
2306 strings/index.lo: $(go_strings_c_files)
2307         @$(MKDIR_P) strings
2308         $(LTCOMPILE) -c -o strings/index.lo $(srcdir)/go/strings/indexbyte.c
2309 strings/check: $(CHECK_DEPS)
2310         @$(CHECK)
2311 .PHONY: strings/check
2313 @go_include@ sync.lo.dep
2314 sync.lo.dep: $(go_sync_files)
2315         $(BUILDDEPS)
2316 sync.lo: $(go_sync_files)
2317         $(BUILDPACKAGE)
2318 sync/check: $(CHECK_DEPS)
2319         @$(CHECK)
2320 .PHONY: sync/check
2322 @go_include@ testing.lo.dep
2323 testing.lo.dep: $(go_testing_files)
2324         $(BUILDDEPS)
2325 testing.lo: $(go_testing_files)
2326         $(BUILDPACKAGE)
2327 testing/check: $(CHECK_DEPS)
2328         @$(CHECK)
2329 .PHONY: testing/check
2331 @go_include@ time-go.lo.dep
2332 time-go.lo.dep: $(go_time_files)
2333         $(BUILDDEPS)
2334 time-go.lo: $(go_time_files)
2335         $(BUILDPACKAGE)
2336 time/check: $(CHECK_DEPS)
2337         @$(CHECK)
2338 .PHONY: time/check
2340 @go_include@ unicode.lo.dep
2341 unicode.lo.dep: $(go_unicode_files)
2342         $(BUILDDEPS)
2343 unicode.lo: $(go_unicode_files)
2344         $(BUILDPACKAGE)
2345 unicode/check: $(CHECK_DEPS)
2346         @$(CHECK)
2347 .PHONY: unicode/check
2349 @go_include@ archive/tar.lo.dep
2350 archive/tar.lo.dep: $(go_archive_tar_files)
2351         $(BUILDDEPS)
2352 archive/tar.lo: $(go_archive_tar_files)
2353         $(BUILDPACKAGE)
2354 archive/tar/check: $(CHECK_DEPS)
2355         @$(CHECK)
2356 .PHONY: archive/tar/check
2358 @go_include@ archive/zip.lo.dep
2359 archive/zip.lo.dep: $(go_archive_zip_files)
2360         $(BUILDDEPS)
2361 archive/zip.lo: $(go_archive_zip_files)
2362         $(BUILDPACKAGE)
2363 archive/zip/check: $(CHECK_DEPS)
2364         @$(CHECK)
2365 .PHONY: archive/zip/check
2367 @go_include@ compress/bzip2.lo.dep
2368 compress/bzip2.lo.dep: $(go_compress_bzip2_files)
2369         $(BUILDDEPS)
2370 compress/bzip2.lo: $(go_compress_bzip2_files)
2371         $(BUILDPACKAGE)
2372 compress/bzip2/check: $(CHECK_DEPS)
2373         @$(CHECK)
2374 .PHONY: compress/bzip2/check
2376 @go_include@ compress/flate.lo.dep
2377 compress/flate.lo.dep: $(go_compress_flate_files)
2378         $(BUILDDEPS)
2379 compress/flate.lo: $(go_compress_flate_files)
2380         $(BUILDPACKAGE)
2381 compress/flate/check: $(CHECK_DEPS)
2382         @$(CHECK)
2383 .PHONY: compress/flate/check
2385 @go_include@ compress/gzip.lo.dep
2386 compress/gzip.lo.dep: $(go_compress_gzip_files)
2387         $(BUILDDEPS)
2388 compress/gzip.lo: $(go_compress_gzip_files)
2389         $(BUILDPACKAGE)
2390 compress/gzip/check: $(CHECK_DEPS)
2391         @$(CHECK)
2392 .PHONY: compress/gzip/check
2394 @go_include@ compress/lzw.lo.dep
2395 compress/lzw.lo.dep: $(go_compress_lzw_files)
2396         $(BUILDDEPS)
2397 compress/lzw.lo: $(go_compress_lzw_files)
2398         $(BUILDPACKAGE)
2399 compress/lzw/check: $(CHECK_DEPS)
2400         @$(CHECK)
2401 .PHONY: compress/lzw/check
2403 @go_include@ compress/zlib.lo.dep
2404 compress/zlib.lo.dep: $(go_compress_zlib_files)
2405         $(BUILDDEPS)
2406 compress/zlib.lo: $(go_compress_zlib_files)
2407         $(BUILDPACKAGE)
2408 compress/zlib/check: $(CHECK_DEPS)
2409         @$(CHECK)
2410 .PHONY: compress/zlib/check
2412 @go_include@ container/heap.lo.dep
2413 container/heap.lo.dep: $(go_container_heap_files)
2414         $(BUILDDEPS)
2415 container/heap.lo: $(go_container_heap_files)
2416         $(BUILDPACKAGE)
2417 container/heap/check: $(CHECK_DEPS)
2418         @$(CHECK)
2419 .PHONY: container/heap/check
2421 @go_include@ container/list.lo.dep
2422 container/list.lo.dep: $(go_container_list_files)
2423         $(BUILDDEPS)
2424 container/list.lo: $(go_container_list_files)
2425         $(BUILDPACKAGE)
2426 container/list/check: $(CHECK_DEPS)
2427         @$(CHECK)
2428 .PHONY: container/list/check
2430 @go_include@ container/ring.lo.dep
2431 container/ring.lo.dep: $(go_container_ring_files)
2432         $(BUILDDEPS)
2433 container/ring.lo: $(go_container_ring_files)
2434         $(BUILDPACKAGE)
2435 container/ring/check: $(CHECK_DEPS)
2436         @$(CHECK)
2437 .PHONY: container/ring/check
2439 @go_include@ crypto/aes.lo.dep
2440 crypto/aes.lo.dep: $(go_crypto_aes_files)
2441         $(BUILDDEPS)
2442 crypto/aes.lo: $(go_crypto_aes_files)
2443         $(BUILDPACKAGE)
2444 crypto/aes/check: $(CHECK_DEPS)
2445         @$(CHECK)
2446 .PHONY: crypto/aes/check
2448 @go_include@ crypto/cipher.lo.dep
2449 crypto/cipher.lo.dep: $(go_crypto_cipher_files)
2450         $(BUILDDEPS)
2451 crypto/cipher.lo: $(go_crypto_cipher_files)
2452         $(BUILDPACKAGE)
2453 crypto/cipher/check: $(CHECK_DEPS)
2454         @$(CHECK)
2455 .PHONY: crypto/cipher/check
2457 @go_include@ crypto/des.lo.dep
2458 crypto/des.lo.dep: $(go_crypto_des_files)
2459         $(BUILDDEPS)
2460 crypto/des.lo: $(go_crypto_des_files)
2461         $(BUILDPACKAGE)
2462 crypto/des/check: $(CHECK_DEPS)
2463         @$(CHECK)
2464 .PHONY: crypto/des/check
2466 @go_include@ crypto/dsa.lo.dep
2467 crypto/dsa.lo.dep: $(go_crypto_dsa_files)
2468         $(BUILDDEPS)
2469 crypto/dsa.lo: $(go_crypto_dsa_files)
2470         $(BUILDPACKAGE)
2471 crypto/dsa/check: $(CHECK_DEPS)
2472         @$(CHECK)
2473 .PHONY: crypto/dsa/check
2475 @go_include@ crypto/ecdsa.lo.dep
2476 crypto/ecdsa.lo.dep: $(go_crypto_ecdsa_files)
2477         $(BUILDDEPS)
2478 crypto/ecdsa.lo: $(go_crypto_ecdsa_files)
2479         $(BUILDPACKAGE)
2480 crypto/ecdsa/check: $(CHECK_DEPS)
2481         @$(CHECK)
2482 .PHONY: crypto/ecdsa/check
2484 @go_include@ crypto/elliptic.lo.dep
2485 crypto/elliptic.lo.dep: $(go_crypto_elliptic_files)
2486         $(BUILDDEPS)
2487 crypto/elliptic.lo: $(go_crypto_elliptic_files)
2488         $(BUILDPACKAGE)
2489 crypto/elliptic/check: $(CHECK_DEPS)
2490         @$(CHECK)
2491 .PHONY: crypto/elliptic/check
2493 @go_include@ crypto/hmac.lo.dep
2494 crypto/hmac.lo.dep: $(go_crypto_hmac_files)
2495         $(BUILDDEPS)
2496 crypto/hmac.lo: $(go_crypto_hmac_files)
2497         $(BUILDPACKAGE)
2498 crypto/hmac/check: $(CHECK_DEPS)
2499         @$(CHECK)
2500 .PHONY: crypto/hmac/check
2502 @go_include@ crypto/md5.lo.dep
2503 crypto/md5.lo.dep: $(go_crypto_md5_files)
2504         $(BUILDDEPS)
2505 crypto/md5.lo: $(go_crypto_md5_files)
2506         $(BUILDPACKAGE)
2507 crypto/md5/check: $(CHECK_DEPS)
2508         @$(CHECK)
2509 .PHONY: crypto/md5/check
2511 @go_include@ crypto/rand.lo.dep
2512 crypto/rand.lo.dep: $(go_crypto_rand_files)
2513         $(BUILDDEPS)
2514 crypto/rand.lo: $(go_crypto_rand_files)
2515         $(BUILDPACKAGE)
2516 crypto/rand/check: $(CHECK_DEPS)
2517         @$(CHECK)
2518 .PHONY: crypto/rand/check
2520 @go_include@ crypto/rc4.lo.dep
2521 crypto/rc4.lo.dep: $(go_crypto_rc4_files)
2522         $(BUILDDEPS)
2523 crypto/rc4.lo: $(go_crypto_rc4_files)
2524         $(BUILDPACKAGE)
2525 crypto/rc4/check: $(CHECK_DEPS)
2526         @$(CHECK)
2527 .PHONY: crypto/rc4/check
2529 @go_include@ crypto/rsa.lo.dep
2530 crypto/rsa.lo.dep: $(go_crypto_rsa_files)
2531         $(BUILDDEPS)
2532 crypto/rsa.lo: $(go_crypto_rsa_files)
2533         $(BUILDPACKAGE)
2534 crypto/rsa/check: $(CHECK_DEPS)
2535         @$(CHECK)
2536 .PHONY: crypto/rsa/check
2538 @go_include@ crypto/sha1.lo.dep
2539 crypto/sha1.lo.dep: $(go_crypto_sha1_files)
2540         $(BUILDDEPS)
2541 crypto/sha1.lo: $(go_crypto_sha1_files)
2542         $(BUILDPACKAGE)
2543 crypto/sha1/check: $(CHECK_DEPS)
2544         @$(CHECK)
2545 .PHONY: crypto/sha1/check
2547 @go_include@ crypto/sha256.lo.dep
2548 crypto/sha256.lo.dep: $(go_crypto_sha256_files)
2549         $(BUILDDEPS)
2550 crypto/sha256.lo: $(go_crypto_sha256_files)
2551         $(BUILDPACKAGE)
2552 crypto/sha256/check: $(CHECK_DEPS)
2553         @$(CHECK)
2554 .PHONY: crypto/sha256/check
2556 @go_include@ crypto/sha512.lo.dep
2557 crypto/sha512.lo.dep: $(go_crypto_sha512_files)
2558         $(BUILDDEPS)
2559 crypto/sha512.lo: $(go_crypto_sha512_files)
2560         $(BUILDPACKAGE)
2561 crypto/sha512/check: $(CHECK_DEPS)
2562         @$(CHECK)
2563 .PHONY: crypto/sha512/check
2565 @go_include@ crypto/subtle.lo.dep
2566 crypto/subtle.lo.dep: $(go_crypto_subtle_files)
2567         $(BUILDDEPS)
2568 crypto/subtle.lo: $(go_crypto_subtle_files)
2569         $(BUILDPACKAGE)
2570 crypto/subtle/check: $(CHECK_DEPS)
2571         @$(CHECK)
2572 .PHONY: crypto/subtle/check
2574 @go_include@ crypto/tls.lo.dep
2575 crypto/tls.lo.dep: $(go_crypto_tls_files)
2576         $(BUILDDEPS)
2577 crypto/tls.lo: $(go_crypto_tls_files)
2578         $(BUILDPACKAGE)
2579 crypto/tls/check: $(CHECK_DEPS)
2580         @$(CHECK)
2581 .PHONY: crypto/tls/check
2583 @go_include@ crypto/x509.lo.dep
2584 crypto/x509.lo.dep: $(go_crypto_x509_files)
2585         $(BUILDDEPS)
2586 crypto/x509.lo: $(go_crypto_x509_files)
2587         $(BUILDPACKAGE)
2588 crypto/x509/check: $(CHECK_DEPS)
2589         @$(CHECK)
2590 .PHONY: crypto/x509/check
2592 @go_include@ crypto/x509/pkix.lo.dep
2593 crypto/x509/pkix.lo.dep: $(go_crypto_x509_pkix_files)
2594         $(BUILDDEPS)
2595 crypto/x509/pkix.lo: $(go_crypto_x509_pkix_files)
2596         $(BUILDPACKAGE)
2597 crypto/x509/pkix/check: $(CHECK_DEPS)
2598         @$(CHECK)
2599 .PHONY: crypto/x509/pkix/check
2601 @go_include@ database/sql.lo.dep
2602 database/sql.lo.dep: $(go_database_sql_files)
2603         $(BUILDDEPS)
2604 database/sql.lo: $(go_database_sql_files)
2605         $(BUILDPACKAGE)
2606 database/sql/check: $(CHECK_DEPS)
2607         @$(CHECK)
2608 .PHONY: database/sql/check
2610 @go_include@ database/sql/driver.lo.dep
2611 database/sql/driver.lo.dep: $(go_database_sql_driver_files)
2612         $(BUILDDEPS)
2613 database/sql/driver.lo: $(go_database_sql_driver_files)
2614         $(BUILDPACKAGE)
2615 database/sql/driver/check: $(CHECK_DEPS)
2616         @$(CHECK)
2617 .PHONY: database/sql/driver/check
2619 @go_include@ debug/dwarf.lo.dep
2620 debug/dwarf.lo.dep: $(go_debug_dwarf_files)
2621         $(BUILDDEPS)
2622 debug/dwarf.lo: $(go_debug_dwarf_files)
2623         $(BUILDPACKAGE)
2624 debug/dwarf/check: $(CHECK_DEPS)
2625         @$(CHECK)
2626 .PHONY: debug/dwarf/check
2628 @go_include@ debug/elf.lo.dep
2629 debug/elf.lo.dep: $(go_debug_elf_files)
2630         $(BUILDDEPS)
2631 debug/elf.lo: $(go_debug_elf_files)
2632         $(BUILDPACKAGE)
2633 debug/elf/check: $(CHECK_DEPS)
2634         @$(CHECK)
2635 .PHONY: debug/elf/check
2637 @go_include@ debug/gosym.lo.dep
2638 debug/gosym.lo.dep: $(go_debug_gosym_files)
2639         $(BUILDDEPS)
2640 debug/gosym.lo: $(go_debug_gosym_files)
2641         $(BUILDPACKAGE)
2642 debug/gosym/check: $(CHECK_DEPS)
2643         @$(CHECK)
2644 .PHONY: debug/gosym/check
2646 @go_include@ debug/macho.lo.dep
2647 debug/macho.lo.dep: $(go_debug_macho_files)
2648         $(BUILDDEPS)
2649 debug/macho.lo: $(go_debug_macho_files)
2650         $(BUILDPACKAGE)
2651 debug/macho/check: $(CHECK_DEPS)
2652         @$(CHECK)
2653 .PHONY: debug/macho/check
2655 @go_include@ debug/pe.lo.dep
2656 debug/pe.lo.dep: $(go_debug_pe_files)
2657         $(BUILDDEPS)
2658 debug/pe.lo: $(go_debug_pe_files)
2659         $(BUILDPACKAGE)
2660 debug/pe/check: $(CHECK_DEPS)
2661         @$(CHECK)
2662 .PHONY: debug/pe/check
2664 @go_include@ debug/plan9obj.lo.dep
2665 debug/plan9obj.lo.dep: $(go_debug_plan9obj_files)
2666         $(BUILDDEPS)
2667 debug/plan9obj.lo: $(go_debug_plan9obj_files)
2668         $(BUILDPACKAGE)
2669 debug/plan9obj/check: $(CHECK_DEPS)
2670         @$(CHECK)
2671 .PHONY: debug/plan9obj/check
2673 @go_include@ encoding/asn1.lo.dep
2674 encoding/asn1.lo.dep: $(go_encoding_asn1_files)
2675         $(BUILDDEPS)
2676 encoding/asn1.lo: $(go_encoding_asn1_files)
2677         $(BUILDPACKAGE)
2678 encoding/asn1/check: $(CHECK_DEPS)
2679         @$(CHECK)
2680 .PHONY: encoding/asn1/check
2682 @go_include@ encoding/ascii85.lo.dep
2683 encoding/ascii85.lo.dep: $(go_encoding_ascii85_files)
2684         $(BUILDDEPS)
2685 encoding/ascii85.lo: $(go_encoding_ascii85_files)
2686         $(BUILDPACKAGE)
2687 encoding/ascii85/check: $(CHECK_DEPS)
2688         @$(CHECK)
2689 .PHONY: encoding/ascii85/check
2691 @go_include@ encoding/base32.lo.dep
2692 encoding/base32.lo.dep: $(go_encoding_base32_files)
2693         $(BUILDDEPS)
2694 encoding/base32.lo: $(go_encoding_base32_files)
2695         $(BUILDPACKAGE)
2696 encoding/base32/check: $(CHECK_DEPS)
2697         @$(CHECK)
2698 .PHONY: encoding/base32/check
2700 @go_include@ encoding/base64.lo.dep
2701 encoding/base64.lo.dep: $(go_encoding_base64_files)
2702         $(BUILDDEPS)
2703 encoding/base64.lo: $(go_encoding_base64_files)
2704         $(BUILDPACKAGE)
2705 encoding/base64/check: $(CHECK_DEPS)
2706         @$(CHECK)
2707 .PHONY: encoding/base64/check
2709 @go_include@ encoding/binary.lo.dep
2710 encoding/binary.lo.dep: $(go_encoding_binary_files)
2711         $(BUILDDEPS)
2712 encoding/binary.lo: $(go_encoding_binary_files)
2713         $(BUILDPACKAGE)
2714 encoding/binary/check: $(CHECK_DEPS)
2715         @$(CHECK)
2716 .PHONY: encoding/binary/check
2718 @go_include@ encoding/csv.lo.dep
2719 encoding/csv.lo.dep: $(go_encoding_csv_files)
2720         $(BUILDDEPS)
2721 encoding/csv.lo: $(go_encoding_csv_files)
2722         $(BUILDPACKAGE)
2723 encoding/csv/check: $(CHECK_DEPS)
2724         @$(CHECK)
2725 .PHONY: encoding/csv/check
2727 @go_include@ encoding/gob.lo.dep
2728 encoding/gob.lo.dep: $(go_encoding_gob_files)
2729         $(BUILDDEPS)
2730 encoding/gob.lo: $(go_encoding_gob_files)
2731         $(BUILDPACKAGE)
2732 encoding/gob/check: $(CHECK_DEPS)
2733         @$(CHECK)
2734 .PHONY: encoding/gob/check
2736 @go_include@ encoding/hex.lo.dep
2737 encoding/hex.lo.dep: $(go_encoding_hex_files)
2738         $(BUILDDEPS)
2739 encoding/hex.lo: $(go_encoding_hex_files)
2740         $(BUILDPACKAGE)
2741 encoding/hex/check: $(CHECK_DEPS)
2742         @$(CHECK)
2743 .PHONY: encoding/hex/check
2745 @go_include@ encoding/json.lo.dep
2746 encoding/json.lo.dep: $(go_encoding_json_files)
2747         $(BUILDDEPS)
2748 encoding/json.lo: $(go_encoding_json_files)
2749         $(BUILDPACKAGE)
2750 encoding/json/check: $(CHECK_DEPS)
2751         @$(CHECK)
2752 .PHONY: encoding/json/check
2754 @go_include@ encoding/pem.lo.dep
2755 encoding/pem.lo.dep: $(go_encoding_pem_files)
2756         $(BUILDDEPS)
2757 encoding/pem.lo: $(go_encoding_pem_files)
2758         $(BUILDPACKAGE)
2759 encoding/pem/check: $(CHECK_DEPS)
2760         @$(CHECK)
2761 .PHONY: encoding/pem/check
2763 @go_include@ encoding/xml.lo.dep
2764 encoding/xml.lo.dep: $(go_encoding_xml_files)
2765         $(BUILDDEPS)
2766 encoding/xml.lo: $(go_encoding_xml_files)
2767         $(BUILDPACKAGE)
2768 encoding/xml/check: $(CHECK_DEPS)
2769         @$(CHECK)
2770 .PHONY: encoding/xml/check
2772 @go_include@ exp/proxy.lo.dep
2773 exp/proxy.lo.dep: $(go_exp_proxy_files)
2774         $(BUILDDEPS)
2775 exp/proxy.lo: $(go_exp_proxy_files)
2776         $(BUILDPACKAGE)
2777 exp/proxy/check: $(CHECK_DEPS)
2778         @$(CHECK)
2779 .PHONY: exp/proxy/check
2781 @go_include@ exp/terminal.lo.dep
2782 exp/terminal.lo.dep: $(go_exp_terminal_files)
2783         $(BUILDDEPS)
2784 exp/terminal.lo: $(go_exp_terminal_files)
2785         $(BUILDPACKAGE)
2786 exp/terminal/check: $(CHECK_DEPS)
2787         @$(CHECK)
2788 .PHONY: exp/terminal/check
2790 @go_include@ html/template.lo.dep
2791 html/template.lo.dep: $(go_html_template_files)
2792         $(BUILDDEPS)
2793 html/template.lo: $(go_html_template_files)
2794         $(BUILDPACKAGE)
2795 html/template/check: $(CHECK_DEPS)
2796         @$(CHECK)
2797 .PHONY: html/template/check
2799 @go_include@ go/ast.lo.dep
2800 go/ast.lo.dep: $(go_go_ast_files)
2801         $(BUILDDEPS)
2802 go/ast.lo: $(go_go_ast_files)
2803         $(BUILDPACKAGE)
2804 go/ast/check: $(CHECK_DEPS)
2805         @$(CHECK)
2806 .PHONY: go/ast/check
2808 @go_include@ go/build.lo.dep
2809 go/build.lo.dep: $(go_go_build_files)
2810         $(BUILDDEPS)
2811 go/build.lo: $(go_go_build_files)
2812         $(BUILDPACKAGE)
2813 go/build/check: $(CHECK_DEPS)
2814         @$(CHECK)
2815 .PHONY: go/build/check
2817 @go_include@ go/doc.lo.dep
2818 go/doc.lo.dep: $(go_go_doc_files)
2819         $(BUILDDEPS)
2820 go/doc.lo: $(go_go_doc_files)
2821         $(BUILDPACKAGE)
2822 go/doc/check: $(CHECK_DEPS)
2823         @$(CHECK)
2824 .PHONY: go/doc/check
2826 @go_include@ go/format.lo.dep
2827 go/format.lo.dep: $(go_go_format_files)
2828         $(BUILDDEPS)
2829 go/format.lo: $(go_go_format_files)
2830         $(BUILDPACKAGE)
2831 go/format/check: $(CHECK_DEPS)
2832         @$(CHECK)
2833 .PHONY: go/format/check
2835 @go_include@ go/parser.lo.dep
2836 go/parser.lo.dep: $(go_go_parser_files)
2837         $(BUILDDEPS)
2838 go/parser.lo: $(go_go_parser_files)
2839         $(BUILDPACKAGE)
2840 go/parser/check: $(CHECK_DEPS)
2841         @$(CHECK)
2842 .PHONY: go/parser/check
2844 @go_include@ go/printer.lo.dep
2845 go/printer.lo.dep: $(go_go_printer_files)
2846         $(BUILDDEPS)
2847 go/printer.lo: $(go_go_printer_files)
2848         $(BUILDPACKAGE)
2849 go/printer/check: $(CHECK_DEPS)
2850         @$(CHECK)
2851 .PHONY: go/printer/check
2853 @go_include@ go/scanner.lo.dep
2854 go/scanner.lo.dep: $(go_go_scanner_files)
2855         $(BUILDDEPS)
2856 go/scanner.lo: $(go_go_scanner_files)
2857         $(BUILDPACKAGE)
2858 go/scanner/check: $(CHECK_DEPS)
2859         @$(CHECK)
2860 .PHONY: go/scanner/check
2862 @go_include@ go/token.lo.dep
2863 go/token.lo.dep: $(go_go_token_files)
2864         $(BUILDDEPS)
2865 go/token.lo: $(go_go_token_files)
2866         $(BUILDPACKAGE)
2867 go/token/check: $(CHECK_DEPS)
2868         @$(CHECK)
2869 .PHONY: go/token/check
2871 @go_include@ hash/adler32.lo.dep
2872 hash/adler32.lo.dep: $(go_hash_adler32_files)
2873         $(BUILDDEPS)
2874 hash/adler32.lo: $(go_hash_adler32_files)
2875         $(BUILDPACKAGE)
2876 hash/adler32/check: $(CHECK_DEPS)
2877         @$(CHECK)
2878 .PHONY: hash/adler32/check
2880 @go_include@ hash/crc32.lo.dep
2881 hash/crc32.lo.dep: $(go_hash_crc32_files)
2882         $(BUILDDEPS)
2883 hash/crc32.lo: $(go_hash_crc32_files)
2884         $(BUILDPACKAGE)
2885 hash/crc32/check: $(CHECK_DEPS)
2886         @$(CHECK)
2887 .PHONY: hash/crc32/check
2889 @go_include@ hash/crc64.lo.dep
2890 hash/crc64.lo.dep: $(go_hash_crc64_files)
2891         $(BUILDDEPS)
2892 hash/crc64.lo: $(go_hash_crc64_files)
2893         $(BUILDPACKAGE)
2894 hash/crc64/check: $(CHECK_DEPS)
2895         @$(CHECK)
2896 .PHONY: hash/crc64/check
2898 @go_include@ hash/fnv.lo.dep
2899 hash/fnv.lo.dep: $(go_hash_fnv_files)
2900         $(BUILDDEPS)
2901 hash/fnv.lo: $(go_hash_fnv_files)
2902         $(BUILDPACKAGE)
2903 hash/fnv/check: $(CHECK_DEPS)
2904         @$(CHECK)
2905 .PHONY: hash/fnv/check
2907 @go_include@ image/color.lo.dep
2908 image/color.lo.dep: $(go_image_color_files)
2909         $(BUILDDEPS)
2910 image/color.lo: $(go_image_color_files)
2911         $(BUILDPACKAGE)
2912 image/color/check: $(CHECK_DEPS)
2913         @$(CHECK)
2914 .PHONY: image/color/check
2916 @go_include@ image/color/palette.lo.dep
2917 image/color/palette.lo.dep: $(go_image_color_palette_files)
2918         $(BUILDDEPS)
2919 image/color/palette.lo: $(go_image_color_palette_files)
2920         $(BUILDPACKAGE)
2921 image/color/palette/check: $(CHECK_DEPS)
2922         @$(CHECK)
2923 .PHONY: image/color/palette/check
2925 @go_include@ image/draw.lo.dep
2926 image/draw.lo.dep: $(go_image_draw_files)
2927         $(BUILDDEPS)
2928 image/draw.lo: $(go_image_draw_files)
2929         $(BUILDPACKAGE)
2930 image/draw/check: $(CHECK_DEPS)
2931         @$(CHECK)
2932 .PHONY: image/draw/check
2934 @go_include@ image/gif.lo.dep
2935 image/gif.lo.dep: $(go_image_gif_files)
2936         $(BUILDDEPS)
2937 image/gif.lo: $(go_image_gif_files)
2938         $(BUILDPACKAGE)
2939 image/gif/check: $(CHECK_DEPS)
2940         @$(CHECK)
2941 .PHONY: image/gif/check
2943 @go_include@ image/jpeg.lo.dep
2944 image/jpeg.lo.dep: $(go_image_jpeg_files)
2945         $(BUILDDEPS)
2946 image/jpeg.lo: $(go_image_jpeg_files)
2947         $(BUILDPACKAGE)
2948 image/jpeg/check: $(CHECK_DEPS)
2949         @$(CHECK)
2950 .PHONY: image/jpeg/check
2952 @go_include@ image/png.lo.dep
2953 image/png.lo.dep: $(go_image_png_files)
2954         $(BUILDDEPS)
2955 image/png.lo: $(go_image_png_files)
2956         $(BUILDPACKAGE)
2957 image/png/check: $(CHECK_DEPS)
2958         @$(CHECK)
2959 .PHONY: image/png/check
2961 @go_include@ index/suffixarray.lo.dep
2962 index/suffixarray.lo.dep: $(go_index_suffixarray_files)
2963         $(BUILDDEPS)
2964 index/suffixarray.lo: $(go_index_suffixarray_files)
2965         $(BUILDPACKAGE)
2966 index/suffixarray/check: $(CHECK_DEPS)
2967         @$(CHECK)
2968 .PHONY: index/suffixarray/check
2970 @go_include@ io/ioutil.lo.dep
2971 io/ioutil.lo.dep: $(go_io_ioutil_files)
2972         $(BUILDDEPS)
2973 io/ioutil.lo: $(go_io_ioutil_files)
2974         $(BUILDPACKAGE)
2975 io/ioutil/check: $(CHECK_DEPS)
2976         @$(CHECK)
2977 .PHONY: io/ioutil/check
2979 @go_include@ log/syslog.lo.dep
2980 log/syslog.lo.dep: $(go_log_syslog_files)
2981         $(BUILDDEPS)
2982 log/syslog.lo: $(go_log_syslog_files)
2983         $(BUILDPACKAGE)
2984 log/syslog/syslog_c.lo: $(go_syslog_c_files) log/syslog.lo
2985         @$(MKDIR_P) log/syslog
2986         $(LTCOMPILE) -c -o $@ $(srcdir)/go/log/syslog/syslog_c.c
2987 log/syslog/check: $(CHECK_DEPS)
2988         @$(CHECK)
2989 .PHONY: log/syslog/check
2991 @go_include@ math/big.lo.dep
2992 math/big.lo.dep: $(go_math_big_files)
2993         $(BUILDDEPS)
2994 math/big.lo: $(go_math_big_files)
2995         $(BUILDPACKAGE)
2996 math/big/check: $(CHECK_DEPS)
2997         @$(CHECK)
2998 .PHONY: math/big/check
3000 @go_include@ math/cmplx.lo.dep
3001 math/cmplx.lo.dep: $(go_math_cmplx_files)
3002         $(BUILDDEPS)
3003 math/cmplx.lo: $(go_math_cmplx_files)
3004         $(BUILDPACKAGE)
3005 math/cmplx/check: $(CHECK_DEPS)
3006         @$(CHECK)
3007 .PHONY: math/cmplx/check
3009 @go_include@ math/rand.lo.dep
3010 math/rand.lo.dep: $(go_math_rand_files)
3011         $(BUILDDEPS)
3012 math/rand.lo: $(go_math_rand_files)
3013         $(BUILDPACKAGE)
3014 math/rand/check: $(CHECK_DEPS)
3015         @$(CHECK)
3016 .PHONY: math/rand/check
3018 @go_include@ mime/multipart.lo.dep
3019 mime/multipart.lo.dep: $(go_mime_multipart_files)
3020         $(BUILDDEPS)
3021 mime/multipart.lo: $(go_mime_multipart_files)
3022         $(BUILDPACKAGE)
3023 mime/multipart/check: $(CHECK_DEPS)
3024         @$(CHECK)
3025 .PHONY: mime/multipart/check
3027 @go_include@ net/http.lo.dep
3028 net/http.lo.dep: $(go_net_http_files)
3029         $(BUILDDEPS)
3030 net/http.lo: $(go_net_http_files)
3031         $(BUILDPACKAGE)
3032 net/http/check: $(CHECK_DEPS)
3033         @$(CHECK)
3034 .PHONY: net/http/check
3036 @go_include@ net/mail.lo.dep
3037 net/mail.lo.dep: $(go_net_mail_files)
3038         $(BUILDDEPS)
3039 net/mail.lo: $(go_net_mail_files)
3040         $(BUILDPACKAGE)
3041 net/mail/check: $(CHECK_DEPS)
3042         @$(CHECK)
3043 .PHONY: net/mail/check
3045 @go_include@ net/rpc.lo.dep
3046 net/rpc.lo.dep: $(go_net_rpc_files)
3047         $(BUILDDEPS)
3048 net/rpc.lo: $(go_net_rpc_files)
3049         $(BUILDPACKAGE)
3050 net/rpc/check: $(CHECK_DEPS)
3051         @$(CHECK)
3052 .PHONY: net/rpc/check
3054 @go_include@ net/smtp.lo.dep
3055 net/smtp.lo.dep: $(go_net_smtp_files)
3056         $(BUILDDEPS)
3057 net/smtp.lo: $(go_net_smtp_files)
3058         $(BUILDPACKAGE)
3059 net/smtp/check: $(CHECK_DEPS)
3060         @$(CHECK)
3061 .PHONY: net/smtp/check
3063 @go_include@ net/url.lo.dep
3064 net/url.lo.dep: $(go_net_url_files)
3065         $(BUILDDEPS)
3066 net/url.lo: $(go_net_url_files)
3067         $(BUILDPACKAGE)
3068 net/url/check: $(CHECK_DEPS)
3069         @$(CHECK)
3070 .PHONY: net/url/check
3072 @go_include@ net/textproto.lo.dep
3073 net/textproto.lo.dep: $(go_net_textproto_files)
3074         $(BUILDDEPS)
3075 net/textproto.lo: $(go_net_textproto_files)
3076         $(BUILDPACKAGE)
3077 net/textproto/check: $(CHECK_DEPS)
3078         @$(CHECK)
3079 .PHONY: net/textproto/check
3081 @go_include@ net/http/cgi.lo.dep
3082 net/http/cgi.lo.dep: $(go_net_http_cgi_files)
3083         $(BUILDDEPS)
3084 net/http/cgi.lo: $(go_net_http_cgi_files)
3085         $(BUILDPACKAGE)
3086 net/http/cgi/check: $(CHECK_DEPS)
3087         @$(CHECK)
3088 .PHONY: net/http/cgi/check
3090 @go_include@ net/http/cookiejar.lo.dep
3091 net/http/cookiejar.lo.dep: $(go_net_http_cookiejar_files)
3092         $(BUILDDEPS)
3093 net/http/cookiejar.lo: $(go_net_http_cookiejar_files)
3094         $(BUILDPACKAGE)
3095 net/http/cookiejar/check: $(CHECK_DEPS)
3096         @$(CHECK)
3097 .PHONY: net/http/cookiejar/check
3099 @go_include@ net/http/fcgi.lo.dep
3100 net/http/fcgi.lo.dep: $(go_net_http_fcgi_files)
3101         $(BUILDDEPS)
3102 net/http/fcgi.lo: $(go_net_http_fcgi_files)
3103         $(BUILDPACKAGE)
3104 net/http/fcgi/check: $(CHECK_DEPS)
3105         @$(CHECK)
3106 .PHONY: net/http/fcgi/check
3108 @go_include@ net/http/httptest.lo.dep
3109 net/http/httptest.lo.dep: $(go_net_http_httptest_files)
3110         $(BUILDDEPS)
3111 net/http/httptest.lo: $(go_net_http_httptest_files)
3112         $(BUILDPACKAGE)
3113 net/http/httptest/check: $(check_deps)
3114         @$(CHECK)
3115 .PHONY: net/http/httptest/check
3117 @go_include@ net/http/httputil.lo.dep
3118 net/http/httputil.lo.dep: $(go_net_http_httputil_files)
3119         $(BUILDDEPS)
3120 net/http/httputil.lo: $(go_net_http_httputil_files)
3121         $(BUILDPACKAGE)
3122 net/http/httputil/check: $(check_deps)
3123         @$(CHECK)
3124 .PHONY: net/http/httputil/check
3126 @go_include@ net/http/pprof.lo.dep
3127 net/http/pprof.lo.dep: $(go_net_http_pprof_files)
3128         $(BUILDDEPS)
3129 net/http/pprof.lo: $(go_net_http_pprof_files)
3130         $(BUILDPACKAGE)
3131 net/http/pprof/check: $(CHECK_DEPS)
3132         @$(CHECK)
3133 .PHONY: net/http/pprof/check
3135 @go_include@ net/rpc/jsonrpc.lo.dep
3136 net/rpc/jsonrpc.lo.dep: $(go_net_rpc_jsonrpc_files)
3137         $(BUILDDEPS)
3138 net/rpc/jsonrpc.lo: $(go_net_rpc_jsonrpc_files)
3139         $(BUILDPACKAGE)
3140 net/rpc/jsonrpc/check: $(CHECK_DEPS)
3141         @$(CHECK)
3142 .PHONY: net/rpc/jsonrpc/check
3144 @go_include@ old/regexp.lo.dep
3145 old/regexp.lo.dep: $(go_old_regexp_files)
3146         $(BUILDDEPS)
3147 old/regexp.lo: $(go_old_regexp_files)
3148         $(BUILDPACKAGE)
3149 old/regexp/check: $(CHECK_DEPS)
3150         @$(CHECK)
3151 .PHONY: old/regexp/check
3153 @go_include@ old/template.lo.dep
3154 old/template.lo.dep: $(go_old_template_files)
3155         $(BUILDDEPS)
3156 old/template.lo: $(go_old_template_files)
3157         $(BUILDPACKAGE)
3158 old/template/check: $(CHECK_DEPS)
3159         @$(CHECK)
3160 .PHONY: old/template/check
3162 @go_include@ os/exec.lo.dep
3163 os/exec.lo.dep: $(go_os_exec_files)
3164         $(BUILDDEPS)
3165 os/exec.lo: $(go_os_exec_files)
3166         $(BUILDPACKAGE)
3167 os/exec/check: $(CHECK_DEPS)
3168         @$(CHECK)
3169 .PHONY: os/exec/check
3171 @go_include@ os/signal.lo.dep
3172 os/signal.lo.dep: $(go_os_signal_files)
3173         $(BUILDDEPS)
3174 os/signal.lo: $(go_os_signal_files)
3175         $(BUILDPACKAGE)
3176 os/signal/check: $(CHECK_DEPS)
3177         @$(CHECK)
3178 .PHONY: os/signal/check
3180 @go_include@ os/user.lo.dep
3181 os/user.lo.dep: $(go_os_user_files)
3182         $(BUILDDEPS)
3183 os/user.lo: $(go_os_user_files)
3184         $(BUILDPACKAGE)
3185 os/user/check: $(CHECK_DEPS)
3186         @$(CHECK)
3187 .PHONY: os/user/check
3189 @go_include@ path/filepath.lo.dep
3190 path/filepath.lo.dep: $(go_path_filepath_files)
3191         $(BUILDDEPS)
3192 path/filepath.lo: $(go_path_filepath_files)
3193         $(BUILDPACKAGE)
3194 path/filepath/check: $(CHECK_DEPS)
3195         @$(CHECK)
3196 .PHONY: path/filepath/check
3198 @go_include@ regexp/syntax.lo.dep
3199 regexp/syntax.lo.dep: $(go_regexp_syntax_files)
3200         $(BUILDDEPS)
3201 regexp/syntax.lo: $(go_regexp_syntax_files)
3202         $(BUILDPACKAGE)
3203 regexp/syntax/check: $(CHECK_DEPS)
3204         @$(CHECK)
3205 .PHONY: regexp/syntax/check
3207 @go_include@ runtime/debug.lo.dep
3208 runtime/debug.lo.dep: $(go_runtime_debug_files)
3209         $(BUILDDEPS)
3210 runtime/debug.lo: $(go_runtime_debug_files)
3211         $(BUILDPACKAGE)
3212 runtime/debug/check: $(CHECK_DEPS)
3213         @$(CHECK)
3214 .PHONY: runtime/debug/check
3216 @go_include@ runtime/pprof.lo.dep
3217 runtime/pprof.lo.dep: $(go_runtime_pprof_files)
3218         $(BUILDDEPS)
3219 runtime/pprof.lo: $(go_runtime_pprof_files)
3220         $(BUILDPACKAGE)
3221 runtime/pprof/check: $(CHECK_DEPS)
3222         @$(CHECK)
3223 .PHONY: runtime/pprof/check
3224 # At least for now, we need -static-libgo for this test, because
3225 # otherwise we can't get the line numbers.
3226 runtime_pprof_check_GOCFLAGS = -static-libgo
3228 @go_include@ sync/atomic.lo.dep
3229 sync/atomic.lo.dep: $(go_sync_atomic_files)
3230         $(BUILDDEPS)
3231 sync/atomic.lo: $(go_sync_atomic_files)
3232         $(BUILDPACKAGE)
3233 sync/atomic_c.lo: $(go_sync_atomic_c_files) sync/atomic.lo
3234         $(LTCOMPILE) -c -o $@ $(srcdir)/go/sync/atomic/atomic.c
3235 sync/atomic/check: $(CHECK_DEPS)
3236         @$(CHECK)
3237 .PHONY: sync/atomic/check
3239 @go_include@ text/scanner.lo.dep
3240 text/scanner.lo.dep: $(go_text_scanner_files)
3241         $(BUILDDEPS)
3242 text/scanner.lo: $(go_text_scanner_files)
3243         $(BUILDPACKAGE)
3244 text/scanner/check: $(CHECK_DEPS)
3245         @$(CHECK)
3246 .PHONY: text/scanner/check
3248 @go_include@ text/tabwriter.lo.dep
3249 text/tabwriter.lo.dep: $(go_text_tabwriter_files)
3250         $(BUILDDEPS)
3251 text/tabwriter.lo: $(go_text_tabwriter_files)
3252         $(BUILDPACKAGE)
3253 text/tabwriter/check: $(CHECK_DEPS)
3254         @$(CHECK)
3255 .PHONY: text/tabwriter/check
3257 @go_include@ text/template.lo.dep
3258 text/template.lo.dep: $(go_text_template_files)
3259         $(BUILDDEPS)
3260 text/template.lo: $(go_text_template_files)
3261         $(BUILDPACKAGE)
3262 text/template/check: $(CHECK_DEPS)
3263         @$(CHECK)
3264 .PHONY: text/template/check
3266 @go_include@ text/template/parse.lo.dep
3267 text/template/parse.lo.dep: $(go_text_template_parse_files)
3268         $(BUILDDEPS)
3269 text/template/parse.lo: $(go_text_template_parse_files)
3270         $(BUILDPACKAGE)
3271 text/template/parse/check: $(CHECK_DEPS)
3272         @$(CHECK)
3273 .PHONY: text/template/parse/check
3275 @go_include@ testing/iotest.lo.dep
3276 testing/iotest.lo.dep: $(go_testing_iotest_files)
3277         $(BUILDDEPS)
3278 testing/iotest.lo: $(go_testing_iotest_files)
3279         $(BUILDPACKAGE)
3280 testing/iotest/check: $(CHECK_DEPS)
3281         @$(CHECK)
3282 .PHONY: testing/iotest/check
3284 @go_include@ testing/quick.lo.dep
3285 testing/quick.lo.dep: $(go_testing_quick_files)
3286         $(BUILDDEPS)
3287 testing/quick.lo: $(go_testing_quick_files)
3288         $(BUILDPACKAGE)
3289 testing/quick/check: $(CHECK_DEPS)
3290         @$(CHECK)
3291 .PHONY: testing/quick/check
3293 @go_include@ unicode/utf16.lo.dep
3294 unicode/utf16.lo.dep: $(go_unicode_utf16_files)
3295         $(BUILDDEPS)
3296 unicode/utf16.lo: $(go_unicode_utf16_files)
3297         $(BUILDPACKAGE)
3298 unicode/utf16/check: $(CHECK_DEPS)
3299         @$(CHECK)
3300 .PHONY: unicode/utf16/check
3302 @go_include@ unicode/utf8.lo.dep
3303 unicode/utf8.lo.dep: $(go_unicode_utf8_files)
3304         $(BUILDDEPS)
3305 unicode/utf8.lo: $(go_unicode_utf8_files)
3306         $(BUILDPACKAGE)
3307 unicode/utf8/check: $(CHECK_DEPS)
3308         @$(CHECK)
3309 .PHONY: unicode/utf8/check
3311 @go_include@ syscall.lo.dep
3312 syscall.lo.dep: $(go_syscall_files)
3313         $(BUILDDEPS)
3314 syscall.lo: $(go_syscall_files)
3315         $(BUILDPACKAGE)
3316 syscall/errno.lo: go/syscall/errno.c
3317         @$(MKDIR_P) syscall
3318         $(LTCOMPILE) -c -o $@ $<
3319 syscall/signame.lo: go/syscall/signame.c
3320         @$(MKDIR_P) syscall
3321         $(LTCOMPILE) -c -o $@ $<
3322 syscall/wait.lo: go/syscall/wait.c
3323         @$(MKDIR_P) syscall
3324         $(LTCOMPILE) -c -o $@ $<
3325 syscall/check: $(CHECK_DEPS)
3326         @$(CHECK)
3327 .PHONY: syscall/check
3329 # How to build a .gox file from a .lo file.
3330 BUILDGOX = \
3331         f=`echo $< | sed -e 's/.lo$$/.o/'`; \
3332         $(OBJCOPY) -j .go_export $$f $@.tmp && mv -f $@.tmp $@
3334 bufio.gox: bufio.lo
3335         $(BUILDGOX)
3336 bytes.gox: bytes.lo
3337         $(BUILDGOX)
3338 crypto.gox: crypto.lo
3339         $(BUILDGOX)
3340 encoding.gox: encoding.lo
3341         $(BUILDGOX)
3342 errors.gox: errors.lo
3343         $(BUILDGOX)
3344 expvar.gox: expvar.lo
3345         $(BUILDGOX)
3346 flag.gox: flag.lo
3347         $(BUILDGOX)
3348 fmt.gox: fmt.lo
3349         $(BUILDGOX)
3350 hash.gox: hash.lo
3351         $(BUILDGOX)
3352 html.gox: html.lo
3353         $(BUILDGOX)
3354 image.gox: image.lo
3355         $(BUILDGOX)
3356 io.gox: io.lo
3357         $(BUILDGOX)
3358 log.gox: log.lo
3359         $(BUILDGOX)
3360 math.gox: math.lo
3361         $(BUILDGOX)
3362 mime.gox: mime.lo
3363         $(BUILDGOX)
3364 net.gox: net.lo
3365         $(BUILDGOX)
3366 os.gox: os.lo
3367         $(BUILDGOX)
3368 path.gox: path.lo
3369         $(BUILDGOX)
3370 reflect.gox: reflect-go.lo
3371         $(BUILDGOX)
3372 regexp.gox: regexp.lo
3373         $(BUILDGOX)
3374 runtime.gox: runtime-go.lo
3375         $(BUILDGOX)
3376 sort.gox: sort.lo
3377         $(BUILDGOX)
3378 strconv.gox: strconv.lo
3379         $(BUILDGOX)
3380 strings.gox: strings.lo
3381         $(BUILDGOX)
3382 sync.gox: sync.lo
3383         $(BUILDGOX)
3384 syscall.gox: syscall.lo
3385         $(BUILDGOX)
3386 testing.gox: testing.lo
3387         $(BUILDGOX)
3388 time.gox: time-go.lo
3389         $(BUILDGOX)
3390 unicode.gox: unicode.lo
3391         $(BUILDGOX)
3393 archive/tar.gox: archive/tar.lo
3394         $(BUILDGOX)
3395 archive/zip.gox: archive/zip.lo
3396         $(BUILDGOX)
3398 compress/bzip2.gox: compress/bzip2.lo
3399         $(BUILDGOX)
3400 compress/flate.gox: compress/flate.lo
3401         $(BUILDGOX)
3402 compress/gzip.gox: compress/gzip.lo
3403         $(BUILDGOX)
3404 compress/lzw.gox: compress/lzw.lo
3405         $(BUILDGOX)
3406 compress/zlib.gox: compress/zlib.lo
3407         $(BUILDGOX)
3409 container/heap.gox: container/heap.lo
3410         $(BUILDGOX)
3411 container/list.gox: container/list.lo
3412         $(BUILDGOX)
3413 container/ring.gox: container/ring.lo
3414         $(BUILDGOX)
3416 crypto/aes.gox: crypto/aes.lo
3417         $(BUILDGOX)
3418 crypto/cipher.gox: crypto/cipher.lo
3419         $(BUILDGOX)
3420 crypto/des.gox: crypto/des.lo
3421         $(BUILDGOX)
3422 crypto/dsa.gox: crypto/dsa.lo
3423         $(BUILDGOX)
3424 crypto/ecdsa.gox: crypto/ecdsa.lo       
3425         $(BUILDGOX)
3426 crypto/elliptic.gox: crypto/elliptic.lo
3427         $(BUILDGOX)
3428 crypto/hmac.gox: crypto/hmac.lo
3429         $(BUILDGOX)
3430 crypto/md5.gox: crypto/md5.lo
3431         $(BUILDGOX)
3432 crypto/rand.gox: crypto/rand.lo
3433         $(BUILDGOX)
3434 crypto/rc4.gox: crypto/rc4.lo
3435         $(BUILDGOX)
3436 crypto/rsa.gox: crypto/rsa.lo
3437         $(BUILDGOX)
3438 crypto/sha1.gox: crypto/sha1.lo
3439         $(BUILDGOX)
3440 crypto/sha256.gox: crypto/sha256.lo
3441         $(BUILDGOX)
3442 crypto/sha512.gox: crypto/sha512.lo
3443         $(BUILDGOX)
3444 crypto/subtle.gox: crypto/subtle.lo
3445         $(BUILDGOX)
3446 crypto/tls.gox: crypto/tls.lo
3447         $(BUILDGOX)
3448 crypto/x509.gox: crypto/x509.lo
3449         $(BUILDGOX)
3451 crypto/x509/pkix.gox: crypto/x509/pkix.lo
3452         $(BUILDGOX)
3454 database/sql.gox: database/sql.lo
3455         $(BUILDGOX)
3457 database/sql/driver.gox: database/sql/driver.lo
3458         $(BUILDGOX)
3460 debug/dwarf.gox: debug/dwarf.lo
3461         $(BUILDGOX)
3462 debug/elf.gox: debug/elf.lo
3463         $(BUILDGOX)
3464 debug/gosym.gox: debug/gosym.lo
3465         $(BUILDGOX)
3466 debug/macho.gox: debug/macho.lo
3467         $(BUILDGOX)
3468 debug/pe.gox: debug/pe.lo
3469         $(BUILDGOX)
3470 debug/plan9obj.gox: debug/plan9obj.lo
3471         $(BUILDGOX)
3473 encoding/ascii85.gox: encoding/ascii85.lo
3474         $(BUILDGOX)
3475 encoding/asn1.gox: encoding/asn1.lo
3476         $(BUILDGOX)
3477 encoding/base32.gox: encoding/base32.lo
3478         $(BUILDGOX)
3479 encoding/base64.gox: encoding/base64.lo
3480         $(BUILDGOX)
3481 encoding/binary.gox: encoding/binary.lo
3482         $(BUILDGOX)
3483 encoding/csv.gox: encoding/csv.lo
3484         $(BUILDGOX)
3485 encoding/gob.gox: encoding/gob.lo
3486         $(BUILDGOX)
3487 encoding/hex.gox: encoding/hex.lo
3488         $(BUILDGOX)
3489 encoding/json.gox: encoding/json.lo
3490         $(BUILDGOX)
3491 encoding/pem.gox: encoding/pem.lo
3492         $(BUILDGOX)
3493 encoding/xml.gox: encoding/xml.lo
3494         $(BUILDGOX)
3496 exp/proxy.gox: exp/proxy.lo
3497         $(BUILDGOX)
3498 exp/terminal.gox: exp/terminal.lo
3499         $(BUILDGOX)
3501 html/template.gox: html/template.lo
3502         $(BUILDGOX)
3504 go/ast.gox: go/ast.lo
3505         $(BUILDGOX)
3506 go/build.gox: go/build.lo
3507         $(BUILDGOX)
3508 go/doc.gox: go/doc.lo
3509         $(BUILDGOX)
3510 go/format.gox: go/format.lo
3511         $(BUILDGOX)
3512 go/parser.gox: go/parser.lo
3513         $(BUILDGOX)
3514 go/printer.gox: go/printer.lo
3515         $(BUILDGOX)
3516 go/scanner.gox: go/scanner.lo
3517         $(BUILDGOX)
3518 go/token.gox: go/token.lo
3519         $(BUILDGOX)
3521 hash/adler32.gox: hash/adler32.lo
3522         $(BUILDGOX)
3523 hash/crc32.gox: hash/crc32.lo
3524         $(BUILDGOX)
3525 hash/crc64.gox: hash/crc64.lo
3526         $(BUILDGOX)
3527 hash/fnv.gox: hash/fnv.lo
3528         $(BUILDGOX)
3530 image/color.gox: image/color.lo
3531         $(BUILDGOX)
3532 image/draw.gox: image/draw.lo
3533         $(BUILDGOX)
3534 image/gif.gox: image/gif.lo
3535         $(BUILDGOX)
3536 image/jpeg.gox: image/jpeg.lo
3537         $(BUILDGOX)
3538 image/png.gox: image/png.lo
3539         $(BUILDGOX)
3541 image/color/palette.gox: image/color/palette.lo
3542         $(BUILDGOX)
3544 index/suffixarray.gox: index/suffixarray.lo
3545         $(BUILDGOX)
3547 io/ioutil.gox: io/ioutil.lo
3548         $(BUILDGOX)
3550 log/syslog.gox: log/syslog.lo
3551         $(BUILDGOX)
3553 math/big.gox: math/big.lo
3554         $(BUILDGOX)
3555 math/cmplx.gox: math/cmplx.lo
3556         $(BUILDGOX)
3557 math/rand.gox: math/rand.lo
3558         $(BUILDGOX)
3560 mime/multipart.gox: mime/multipart.lo
3561         $(BUILDGOX)
3563 net/http.gox: net/http.lo
3564         $(BUILDGOX)
3565 net/mail.gox: net/mail.lo
3566         $(BUILDGOX)
3567 net/rpc.gox: net/rpc.lo
3568         $(BUILDGOX)
3569 net/smtp.gox: net/smtp.lo
3570         $(BUILDGOX)
3571 net/textproto.gox: net/textproto.lo
3572         $(BUILDGOX)
3573 net/url.gox: net/url.lo
3574         $(BUILDGOX)
3576 net/http/cgi.gox: net/http/cgi.lo
3577         $(BUILDGOX)
3578 net/http/cookiejar.gox: net/http/cookiejar.lo
3579         $(BUILDGOX)
3580 net/http/fcgi.gox: net/http/fcgi.lo
3581         $(BUILDGOX)
3582 net/http/httptest.gox: net/http/httptest.lo
3583         $(BUILDGOX)
3584 net/http/httputil.gox: net/http/httputil.lo
3585         $(BUILDGOX)
3586 net/http/pprof.gox: net/http/pprof.lo
3587         $(BUILDGOX)
3589 net/rpc/jsonrpc.gox: net/rpc/jsonrpc.lo
3590         $(BUILDGOX)
3592 old/regexp.gox: old/regexp.lo
3593         $(BUILDGOX)
3594 old/template.gox: old/template.lo
3595         $(BUILDGOX)
3597 os/exec.gox: os/exec.lo
3598         $(BUILDGOX)
3599 os/signal.gox: os/signal.lo
3600         $(BUILDGOX)
3601 os/user.gox: os/user.lo
3602         $(BUILDGOX)
3604 path/filepath.gox: path/filepath.lo
3605         $(BUILDGOX)
3607 regexp/syntax.gox: regexp/syntax.lo
3608         $(BUILDGOX)
3610 runtime/debug.gox: runtime/debug.lo
3611         $(BUILDGOX)
3612 runtime/pprof.gox: runtime/pprof.lo
3613         $(BUILDGOX)
3615 sync/atomic.gox: sync/atomic.lo
3616         $(BUILDGOX)
3618 text/scanner.gox: text/scanner.lo
3619         $(BUILDGOX)
3620 text/tabwriter.gox: text/tabwriter.lo
3621         $(BUILDGOX)
3622 text/template.gox: text/template.lo
3623         $(BUILDGOX)
3624 text/template/parse.gox: text/template/parse.lo
3625         $(BUILDGOX)
3627 testing/iotest.gox: testing/iotest.lo
3628         $(BUILDGOX)
3629 testing/quick.gox: testing/quick.lo
3630         $(BUILDGOX)
3632 unicode/utf16.gox: unicode/utf16.lo
3633         $(BUILDGOX)
3634 unicode/utf8.gox: unicode/utf8.lo
3635         $(BUILDGOX)
3637 TEST_PACKAGES = \
3638         bufio/check \
3639         bytes/check \
3640         errors/check \
3641         expvar/check \
3642         flag/check \
3643         fmt/check \
3644         html/check \
3645         image/check \
3646         io/check \
3647         log/check \
3648         math/check \
3649         mime/check \
3650         net/check \
3651         os/check \
3652         path/check \
3653         reflect/check \
3654         regexp/check \
3655         runtime/check \
3656         sort/check \
3657         strconv/check \
3658         strings/check \
3659         sync/check \
3660         syscall/check \
3661         time/check \
3662         unicode/check \
3663         archive/tar/check \
3664         archive/zip/check \
3665         compress/bzip2/check \
3666         compress/flate/check \
3667         compress/gzip/check \
3668         compress/lzw/check \
3669         compress/zlib/check \
3670         container/heap/check \
3671         container/list/check \
3672         container/ring/check \
3673         crypto/aes/check \
3674         crypto/cipher/check \
3675         crypto/des/check \
3676         crypto/dsa/check \
3677         crypto/ecdsa/check \
3678         crypto/elliptic/check \
3679         crypto/hmac/check \
3680         crypto/md5/check \
3681         crypto/rand/check \
3682         crypto/rc4/check \
3683         crypto/rsa/check \
3684         crypto/sha1/check \
3685         crypto/sha256/check \
3686         crypto/sha512/check \
3687         crypto/subtle/check \
3688         crypto/tls/check \
3689         crypto/x509/check \
3690         database/sql/check \
3691         database/sql/driver/check \
3692         debug/dwarf/check \
3693         debug/elf/check \
3694         debug/macho/check \
3695         debug/pe/check \
3696         debug/plan9obj/check \
3697         encoding/ascii85/check \
3698         encoding/asn1/check \
3699         encoding/base32/check \
3700         encoding/base64/check \
3701         encoding/binary/check \
3702         encoding/csv/check \
3703         encoding/gob/check \
3704         encoding/hex/check \
3705         encoding/json/check \
3706         encoding/pem/check \
3707         encoding/xml/check \
3708         exp/proxy/check \
3709         exp/terminal/check \
3710         html/template/check \
3711         go/ast/check \
3712         $(go_build_check_omitted_since_it_calls_6g) \
3713         go/doc/check \
3714         go/format/check \
3715         go/parser/check \
3716         go/printer/check \
3717         go/scanner/check \
3718         go/token/check \
3719         hash/adler32/check \
3720         hash/crc32/check \
3721         hash/crc64/check \
3722         hash/fnv/check \
3723         image/color/check \
3724         image/draw/check \
3725         image/jpeg/check \
3726         image/png/check \
3727         index/suffixarray/check \
3728         io/ioutil/check \
3729         log/syslog/check \
3730         math/big/check \
3731         math/cmplx/check \
3732         math/rand/check \
3733         mime/multipart/check \
3734         net/http/check \
3735         net/http/cgi/check \
3736         net/http/cookiejar/check \
3737         net/http/fcgi/check \
3738         net/http/httptest/check \
3739         net/http/httputil/check \
3740         net/mail/check \
3741         net/rpc/check \
3742         net/smtp/check \
3743         net/textproto/check \
3744         net/url/check \
3745         net/rpc/jsonrpc/check \
3746         old/regexp/check \
3747         old/template/check \
3748         os/exec/check \
3749         os/signal/check \
3750         os/user/check \
3751         path/filepath/check \
3752         regexp/syntax/check \
3753         runtime/pprof/check \
3754         sync/atomic/check \
3755         text/scanner/check \
3756         text/tabwriter/check \
3757         text/template/check \
3758         text/template/parse/check \
3759         testing/quick/check \
3760         unicode/utf16/check \
3761         unicode/utf8/check
3763 check: check-tail
3764 check-recursive: check-head
3766 check-head:
3767         @echo "Test Run By $${USER} on `date`" > libgo.head
3768         @echo "Native configuration is $(host_triplet)" >> libgo.head
3769         @echo >> libgo.head
3770         @echo "         === libgo tests ===" >> libgo.head
3771         @echo >> libgo.head
3773 check-tail: check-recursive check-multi
3774         @if test "$(USE_DEJAGNU)" = "yes"; then \
3775           exit 0; \
3776         fi; \
3777         lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
3778         for dir in . $(MULTIDIRS); do \
3779           mv ../$${dir}/$${lib}/libgo.sum ../$${dir}/$${lib}/libgo.sum.sep; \
3780           mv ../$${dir}/$${lib}/libgo.log ../$${dir}/$${lib}/libgo.log.sep; \
3781         done; \
3782         mv libgo.head libgo.sum; \
3783         cp libgo.sum libgo.log; \
3784         echo "Schedule of variations:" >> libgo.sum; \
3785         for dir in . $(MULTIDIRS); do \
3786           multidir=../$${dir}/$${lib}; \
3787           multivar=`cat $${multidir}/libgo.var`; \
3788           echo "    $${multivar}" >> libgo.sum; \
3789         done; \
3790         echo >> libgo.sum; \
3791         pass=0; fail=0; untested=0; \
3792         for dir in . $(MULTIDIRS); do \
3793           multidir=../$${dir}/$${lib}; \
3794           multivar=`cat $${multidir}/libgo.var`; \
3795           echo "Running target $${multivar}" >> libgo.sum; \
3796           echo "Running $(srcdir)/libgo.exp ..." >> libgo.sum; \
3797           cat $${multidir}/libgo.sum.sep >> libgo.sum; \
3798           cat $${multidir}/libgo.log.sep >> libgo.log; \
3799           if test -n "${MULTIDIRS}"; then \
3800             echo "              === libgo Summary for $${multivar} ===" >> libgo.sum; \
3801             echo >> libgo.sum; \
3802           fi; \
3803           p=`grep -c PASS $${multidir}/libgo.sum.sep`; \
3804           pass=`expr $$pass + $$p`; \
3805           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3806             echo "# of expected passes          $$p" >> libgo.sum; \
3807           fi; \
3808           p=`grep -c FAIL $${multidir}/libgo.sum.sep`; \
3809           fail=`expr $$fail + $$p`; \
3810           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3811             echo "# of unexpected failures      $$p" >> libgo.sum; \
3812           fi; \
3813           p=`grep -c UNTESTED $${multidir}/libgo.sum.sep`; \
3814           untested=`expr $$untested + $$p`; \
3815           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3816             echo "# of untested testcases               $$p" >> libgo.sum; \
3817           fi; \
3818         done; \
3819         echo >> libgo.sum; \
3820         echo "          === libgo Summary ===" >> libgo.sum; \
3821         echo >> libgo.sum; \
3822         if test "$$pass" -ne "0"; then \
3823           echo "# of expected passes            $$pass" >> libgo.sum; \
3824         fi; \
3825         if test "$$fail" -ne "0"; then \
3826           echo "# of unexpected failures        $$fail" >> libgo.sum; \
3827         fi; \
3828         if test "$$untested" -ne "0"; then \
3829           echo "# of untested testcases         $$untested" >> libgo.sum; \
3830         fi; \
3831         echo `echo $(GOC) | sed -e 's/ .*//'`  `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
3832         echo >> libgo.log; \
3833         echo "runtest completed at `date`" >> libgo.log; \
3834         if test "$$fail" -ne "0"; then \
3835           status=1; \
3836         else \
3837           status=0; \
3838         fi; \
3839         exit $$status
3841 check-am:
3842         @rm -f libgo.sum libgo.log libgo.tail
3843         @multivar="unix"; \
3844         [ -z "$(MULTIFLAGS)" ] || multivar="$${multivar}/$(MULTIFLAGS)"; \
3845         echo "$${multivar}" > libgo.var
3846         @for f in $(TEST_PACKAGES); do \
3847            rm -f $$f-testsum $$f-testlog; \
3848          done
3849         -@$(MAKE) -k $(TEST_PACKAGES)
3850         @for f in $(TEST_PACKAGES); do \
3851           if test -f $$f-testsum; then \
3852             cat $$f-testsum >> libgo.sum; \
3853           fi; \
3854           if test -f $$f-testlog; then \
3855             cat $$f-testlog >> libgo.log; \
3856           fi; \
3857         done
3859 check-multi:
3860         $(MULTIDO) $(AM_MAKEFLAGS) DO=check-am multi-do # $(MAKE)
3862 bench:
3863         -@$(MAKE) -k $(TEST_PACKAGES) GOBENCH=.
3865 MOSTLYCLEAN_FILES = libgo.head libgo.sum.sep libgo.log.sep
3867 mostlyclean-local:
3868         find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
3869         find . -name '*.$(OBJEXT)' -print | xargs rm -f
3870         find . -name '*-testsum' -print | xargs rm -f
3871         find . -name '*-testlog' -print | xargs rm -f
3873 CLEANFILES = *.go *.gox goc2c *.c s-version libgo.sum libgo.log
3875 clean-local:
3876         find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
3877         find . -name '*.a' -print | xargs rm -f