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.
10 SUFFIXES = .c .go .gox .o .obj .lo .a
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)
31 LIBFFIINCS = @LIBFFIINCS@
33 WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
35 # -I/-D flags to pass when compiling.
36 AM_CPPFLAGS = -I $(srcdir)/runtime $(LIBFFIINCS) $(PTHREAD_CFLAGS)
38 ACLOCAL_AMFLAGS = -I ./config -I ../config
40 AM_CFLAGS = -fexceptions -fplan9-extensions $(SPLIT_STACK) $(WARN_CFLAGS) \
41 $(STRINGOPS_FLAG) $(OSCFLAGS) \
42 -I $(srcdir)/../libgcc -I $(srcdir)/../libbacktrace \
43 -I $(MULTIBUILDTOP)../../gcc/include
46 AM_LDFLAGS = -XCClinker $(SPLIT_STACK)
52 # Work around what appears to be a GNU make handling MAKEFLAGS
53 # values defined in terms of make variables, as is the case for CC and
54 # friends when we are called from the top level Makefile.
56 "AR_FLAGS=$(AR_FLAGS)" \
57 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
58 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
60 "CXXFLAGS=$(CXXFLAGS)" \
61 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
62 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
63 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
65 "GOCFLAGS=$(GOCFLAGS)" \
66 "INSTALL=$(INSTALL)" \
67 "INSTALL_DATA=$(INSTALL_DATA)" \
68 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
69 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
70 "LDFLAGS=$(LDFLAGS)" \
71 "LIBCFLAGS=$(LIBCFLAGS)" \
72 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
74 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
75 "PICFLAG=$(PICFLAG)" \
76 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
78 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
79 "exec_prefix=$(exec_prefix)" \
80 "infodir=$(infodir)" \
82 "includedir=$(includedir)" \
84 "tooldir=$(tooldir)" \
85 "gxx_include_dir=$(gxx_include_dir)" \
91 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
92 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
93 "DESTDIR=$(DESTDIR)" \
96 # Subdir rules rely on $(FLAGS_TO_PASS)
97 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
99 toolexeclib_LTLIBRARIES = libgo.la
100 toolexeclib_LIBRARIES = libgobegin.a
102 toolexeclibgo_DATA = \
132 toolexeclibgoarchivedir = $(toolexeclibgodir)/archive
134 toolexeclibgoarchive_DATA = \
138 toolexeclibgocompressdir = $(toolexeclibgodir)/compress
140 toolexeclibgocompress_DATA = \
147 toolexeclibgocontainerdir = $(toolexeclibgodir)/container
149 toolexeclibgocontainer_DATA = \
154 toolexeclibgocryptodir = $(toolexeclibgodir)/crypto
156 toolexeclibgocrypto_DATA = \
162 crypto/elliptic.gox \
175 toolexeclibgocryptox509dir = $(toolexeclibgocryptodir)/x509
177 toolexeclibgocryptox509_DATA = \
180 toolexeclibgodatabasedir = $(toolexeclibgodir)/database
182 toolexeclibgodatabase_DATA = \
185 toolexeclibgodatabasesqldir = $(toolexeclibgodatabasedir)/sql
187 toolexeclibgodatabasesql_DATA = \
188 database/sql/driver.gox
190 toolexeclibgodebugdir = $(toolexeclibgodir)/debug
192 toolexeclibgodebug_DATA = \
199 toolexeclibgoencodingdir = $(toolexeclibgodir)/encoding
201 toolexeclibgoencoding_DATA = \
202 encoding/ascii85.gox \
204 encoding/base32.gox \
205 encoding/base64.gox \
206 encoding/binary.gox \
214 toolexeclibgoexpdir = $(toolexeclibgodir)/exp
216 toolexeclibgoexp_DATA = \
220 toolexeclibgogodir = $(toolexeclibgodir)/go
222 toolexeclibgogo_DATA = \
232 toolexeclibgohashdir = $(toolexeclibgodir)/hash
234 toolexeclibgohash_DATA = \
240 toolexeclibgohtmldir = $(toolexeclibgodir)/html
242 toolexeclibgohtml_DATA = \
245 toolexeclibgoimagedir = $(toolexeclibgodir)/image
247 toolexeclibgoimage_DATA = \
254 toolexeclibgoindexdir = $(toolexeclibgodir)/index
256 toolexeclibgoindex_DATA = \
257 index/suffixarray.gox
259 toolexeclibgoiodir = $(toolexeclibgodir)/io
261 toolexeclibgoio_DATA = \
264 toolexeclibgologdir = $(toolexeclibgodir)/log
266 toolexeclibgolog_DATA = \
269 toolexeclibgomathdir = $(toolexeclibgodir)/math
271 toolexeclibgomath_DATA = \
276 toolexeclibgomimedir = $(toolexeclibgodir)/mime
278 toolexeclibgomime_DATA = \
281 toolexeclibgonetdir = $(toolexeclibgodir)/net
283 toolexeclibgonet_DATA = \
291 toolexeclibgonethttpdir = $(toolexeclibgonetdir)/http
293 toolexeclibgonethttp_DATA = \
295 net/http/cookiejar.gox \
297 net/http/httptest.gox \
298 net/http/httputil.gox \
301 toolexeclibgonetrpcdir = $(toolexeclibgonetdir)/rpc
303 toolexeclibgonetrpc_DATA = \
306 toolexeclibgoolddir = $(toolexeclibgodir)/old
308 toolexeclibgoold_DATA = \
312 toolexeclibgoosdir = $(toolexeclibgodir)/os
314 toolexeclibgoos_DATA = \
319 toolexeclibgopathdir = $(toolexeclibgodir)/path
321 toolexeclibgopath_DATA = \
324 toolexeclibgoregexpdir = $(toolexeclibgodir)/regexp
326 toolexeclibgoregexp_DATA = \
329 toolexeclibgoruntimedir = $(toolexeclibgodir)/runtime
331 toolexeclibgoruntime_DATA = \
335 toolexeclibgosyncdir = $(toolexeclibgodir)/sync
337 toolexeclibgosync_DATA = \
340 toolexeclibgotestingdir = $(toolexeclibgodir)/testing
342 toolexeclibgotesting_DATA = \
346 toolexeclibgotextdir = $(toolexeclibgodir)/text
348 toolexeclibgotext_DATA = \
353 toolexeclibgotexttemplatedir = $(toolexeclibgotextdir)/template
355 toolexeclibgotexttemplate_DATA = \
356 text/template/parse.gox
358 toolexeclibgounicodedir = $(toolexeclibgodir)/unicode
360 toolexeclibgounicode_DATA = \
365 runtime_mem_file = runtime/mem.c
367 runtime_mem_file = runtime/mem_posix_memalign.c
371 rtems_task_variable_add_file = runtime/rtems-task-variable-add.c
373 rtems_task_variable_add_file =
377 runtime_lock_files = runtime/lock_futex.c runtime/thread-linux.c
379 runtime_lock_files = runtime/lock_sema.c runtime/thread-sema.c
383 runtime_getncpu_file = runtime/getncpu-linux.c
386 runtime_getncpu_file = runtime/getncpu-bsd.c
389 runtime_getncpu_file = runtime/getncpu-irix.c
392 runtime_getncpu_file = runtime/getncpu-solaris.c
395 runtime_getncpu_file = runtime/getncpu-bsd.c
398 runtime_getncpu_file = runtime/getncpu-bsd.c
400 runtime_getncpu_file = runtime/getncpu-none.c
409 runtime_netpoll_files = netpoll.c runtime/netpoll_epoll.c
412 runtime_netpoll_files = netpoll.c runtime/netpoll_kqueue.c
414 runtime_netpoll_files = runtime/netpoll_stub.c
419 runtime/go-append.c \
420 runtime/go-assert.c \
421 runtime/go-assert-interface.c \
422 runtime/go-byte-array-to-string.c \
423 runtime/go-breakpoint.c \
424 runtime/go-caller.c \
425 runtime/go-callers.c \
426 runtime/go-can-convert-interface.c \
428 runtime/go-check-interface.c \
429 runtime/go-construct-map.c \
430 runtime/go-convert-interface.c \
433 runtime/go-deferred-recover.c \
434 runtime/go-eface-compare.c \
435 runtime/go-eface-val-compare.c \
436 runtime/go-fieldtrack.c \
437 runtime/go-getgoroot.c \
438 runtime/go-int-array-to-string.c \
439 runtime/go-int-to-string.c \
440 runtime/go-interface-compare.c \
441 runtime/go-interface-eface-compare.c \
442 runtime/go-interface-val-compare.c \
443 runtime/go-make-slice.c \
444 runtime/go-map-delete.c \
445 runtime/go-map-index.c \
446 runtime/go-map-len.c \
447 runtime/go-map-range.c \
448 runtime/go-matherr.c \
449 runtime/go-memcmp.c \
450 runtime/go-nanotime.c \
452 runtime/go-new-map.c \
457 runtime/go-recover.c \
458 runtime/go-reflect-call.c \
459 runtime/go-reflect-map.c \
461 runtime/go-runtime-error.c \
462 runtime/go-setenv.c \
463 runtime/go-signal.c \
464 runtime/go-strcmp.c \
465 runtime/go-string-to-byte-array.c \
466 runtime/go-string-to-int-array.c \
467 runtime/go-strplus.c \
468 runtime/go-strslice.c \
469 runtime/go-traceback.c \
470 runtime/go-type-complex.c \
471 runtime/go-type-eface.c \
472 runtime/go-type-error.c \
473 runtime/go-type-float.c \
474 runtime/go-type-identity.c \
475 runtime/go-type-interface.c \
476 runtime/go-type-string.c \
477 runtime/go-typedesc-equal.c \
478 runtime/go-typestring.c \
479 runtime/go-unsafe-new.c \
480 runtime/go-unsafe-newarray.c \
481 runtime/go-unsafe-pointer.c \
482 runtime/go-unwind.c \
485 runtime/env_posix.c \
487 $(runtime_lock_files) \
490 $(runtime_mem_file) \
492 runtime/mfixalloc.c \
496 $(runtime_netpoll_files) \
502 runtime/signal_unix.c \
505 $(rtems_task_variable_add_file) \
516 $(runtime_getncpu_file)
518 goc2c.$(OBJEXT): runtime/goc2c.c
519 $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
521 goc2c: goc2c.$(OBJEXT)
522 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
524 malloc.c: $(srcdir)/runtime/malloc.goc goc2c
528 mprof.c: $(srcdir)/runtime/mprof.goc goc2c
532 netpoll.c: $(srcdir)/runtime/netpoll.goc goc2c
536 reflect.c: $(srcdir)/runtime/reflect.goc goc2c
540 runtime1.c: $(srcdir)/runtime/runtime1.goc goc2c
544 sema.c: $(srcdir)/runtime/sema.goc goc2c
548 sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
549 ./goc2c --go-pkgpath os_signal $< > $@.tmp
552 time.c: $(srcdir)/runtime/time.goc goc2c
556 %.c: $(srcdir)/runtime/%.goc goc2c
567 go/bytes/bytes_decl.go \
623 go/math/copysign.go \
643 go/math/nextafter.go \
646 go/math/remainder.go \
658 go/mime/mediatype.go \
663 go_net_fd_os_file = go/net/fd_select.go
664 go_net_newpollserver_file = go/net/newpollserver_rtems.go
665 else # !LIBGO_IS_RTEMS
668 go_net_newpollserver_file =
669 else # !LIBGO_IS_LINUX && !LIBGO_IS_RTEMS
671 go_net_fd_os_file = go/net/fd_bsd.go
672 go_net_newpollserver_file =
673 else # !LIBGO_IS_NETBSD && !LIBGO_IS_LINUX && !LIBGO_IS_RTEMS
674 # By default use select with pipes. Most systems should have
676 go_net_fd_os_file = go/net/fd_select.go
677 go_net_newpollserver_file =
678 endif # !LIBGO_IS_NETBSD
679 endif # !LIBGO_IS_LINUX
680 endif # !LIBGO_IS_RTEMS
683 go_net_cgo_file = go/net/cgo_linux.go
684 go_net_sock_file = go/net/sock_linux.go
685 go_net_sockopt_file = go/net/sockopt_linux.go
686 go_net_sockoptip_file = go/net/sockoptip_linux.go go/net/sockoptip_posix.go
689 go_net_cgo_file = go/net/cgo_linux.go
690 go_net_sock_file = go/net/sock_linux.go
691 go_net_sockopt_file = go/net/sockopt_linux.go
692 go_net_sockoptip_file = go/net/sockoptip_linux.go go/net/sockoptip_posix.go
695 go_net_cgo_file = go/net/cgo_linux.go
696 go_net_sock_file = go/net/sock_solaris.go
697 go_net_sockopt_file = go/net/sockopt_bsd.go
698 go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
701 go_net_cgo_file = go/net/cgo_bsd.go
702 go_net_sock_file = go/net/sock_bsd.go
703 go_net_sockopt_file = go/net/sockopt_bsd.go
704 go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
707 go_net_cgo_file = go/net/cgo_netbsd.go
708 go_net_sock_file = go/net/sock_bsd.go
709 go_net_sockopt_file = go/net/sockopt_bsd.go
710 go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
712 go_net_cgo_file = go/net/cgo_bsd.go
713 go_net_sock_file = go/net/sock_bsd.go
714 go_net_sockopt_file = go/net/sockopt_bsd.go
715 go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
723 go_net_sendfile_file = go/net/sendfile_linux.go
726 go_net_sendfile_file = go/net/sendfile_freebsd.go
728 go_net_sendfile_file = go/net/sendfile_stub.go
733 go_net_interface_file = go/net/interface_linux.go
736 go_net_interface_file = go/net/interface_netbsd.go
738 go_net_interface_file = go/net/interface_stub.go
743 go_net_cloexec_file = go/net/sock_cloexec.go
745 go_net_cloexec_file = go/net/sys_cloexec.go
749 go_net_poll_file = go/net/fd_poll_runtime.go
752 go_net_poll_file = go/net/fd_poll_runtime.go
754 go_net_poll_file = go/net/fd_poll_unix.go
761 $(go_net_cloexec_file) \
763 go/net/dnsclient.go \
764 go/net/dnsclient_unix.go \
765 go/net/dnsconfig_unix.go \
767 $(go_net_newpollserver_file) \
769 $(go_net_fd_os_file) \
770 go/net/file_unix.go \
772 go/net/interface.go \
773 $(go_net_interface_file) \
775 go/net/iprawsock.go \
776 go/net/iprawsock_posix.go \
778 go/net/ipsock_posix.go \
780 go/net/lookup_unix.go \
785 $(go_net_poll_file) \
787 go/net/port_unix.go \
788 $(go_net_sendfile_file) \
789 go/net/sock_posix.go \
790 go/net/sock_unix.go \
791 $(go_net_sock_file) \
792 go/net/sockopt_posix.go \
793 $(go_net_sockopt_file) \
794 $(go_net_sockoptip_file) \
796 go/net/tcpsock_posix.go \
798 go/net/udpsock_posix.go \
800 go/net/unixsock_posix.go
804 go_os_dir_file = go/os/dir_largefile.go
807 go_os_dir_file = go/os/dir_largefile.go
809 go_os_dir_file = go/os/dir_regfile.go
814 go_os_dir_file = go/os/dir_largefile.go
816 go_os_dir_file = go/os/dir_regfile.go
821 go_os_sys_file = go/os/sys_linux.go
824 go_os_sys_file = go/os/sys_uname.go
827 go_os_sys_file = go/os/sys_uname.go
830 go_os_sys_file = go/os/sys_uname.go
832 go_os_sys_file = go/os/sys_bsd.go
839 go_os_stat_file = go/os/stat_solaris.go
842 go_os_stat_file = go/os/stat_atim.go
845 go_os_stat_file = go/os/stat_atim.go
848 go_os_stat_file = go/os/stat_atimespec.go
851 go_os_stat_file = go/os/stat_atimespec.go
854 go_os_stat_file = go/os/stat_atimespec.go
856 go_os_stat_file = go/os/stat.go
865 go_os_pipe_file = go/os/pipe_linux.go
867 go_os_pipe_file = go/os/pipe_bsd.go
876 go/os/error_posix.go \
878 go/os/exec_posix.go \
881 go/os/file_posix.go \
892 go/os/types_notwin.go
899 go/reflect/deepequal.go \
900 go/reflect/makefunc.go \
909 go/net/rpc/client.go \
910 go/net/rpc/debug.go \
914 go/runtime/compiler.go \
915 go/runtime/debug.go \
916 go/runtime/error.go \
917 go/runtime/extern.go \
919 go/runtime/softfloat64.go \
923 version.go: s-version; @true
926 echo "package runtime" > version.go.tmp
927 echo 'const defaultGoroot = "$(prefix)"' >> version.go.tmp
928 echo 'const theVersion = "'`$(CC) --version | sed 1q`'"' >> version.go.tmp
929 echo 'const theGoarch = "'$(GOARCH)'"' >> version.go.tmp
930 echo 'const theGoos = "'$(GOOS)'"' >> version.go.tmp
931 $(SHELL) $(srcdir)/../move-if-change version.go.tmp version.go
942 go/strconv/decimal.go \
943 go/strconv/extfloat.go \
945 go/strconv/isprint.go \
950 go/strings/reader.go \
951 go/strings/replace.go \
952 go/strings/search.go \
953 go/strings/strings.go
965 go_syslog_file = go/log/syslog/syslog_libc.go
968 go_syslog_file = go/log/syslog/syslog_libc.go
970 go_syslog_file = go/log/syslog/syslog_unix.go
974 go_log_syslog_files = \
975 go/log/syslog/syslog.go \
977 go_syslog_c_files = \
978 go/log/syslog/syslog_c.c
981 go/testing/allocs.go \
982 go/testing/benchmark.go \
983 go/testing/example.go \
984 go/testing/testing.go
989 go/time/sys_unix.go \
992 go/time/zoneinfo.go \
993 go/time/zoneinfo_read.go \
994 go/time/zoneinfo_unix.go
997 go/unicode/casetables.go \
998 go/unicode/digit.go \
999 go/unicode/graphic.go \
1000 go/unicode/letter.go \
1001 go/unicode/tables.go
1004 archive_tar_atim_file = go/archive/tar/stat_atim.go
1007 archive_tar_atim_file = go/archive/tar/stat_atim.go
1010 archive_tar_atim_file = go/archive/tar/stat_atim.go
1013 archive_tar_atim_file = go/archive/tar/stat_atimespec.go
1016 archive_tar_atim_file = go/archive/tar/stat_atimespec.go
1019 archive_tar_atim_file = go/archive/tar/stat_atimespec.go
1022 go_archive_tar_files = \
1023 go/archive/tar/common.go \
1024 go/archive/tar/reader.go \
1025 go/archive/tar/stat_unix.go \
1026 go/archive/tar/writer.go \
1027 $(archive_tar_atim_file)
1029 go_archive_zip_files = \
1030 go/archive/zip/reader.go \
1031 go/archive/zip/struct.go \
1032 go/archive/zip/writer.go
1034 go_compress_bzip2_files = \
1035 go/compress/bzip2/bit_reader.go \
1036 go/compress/bzip2/bzip2.go \
1037 go/compress/bzip2/huffman.go \
1038 go/compress/bzip2/move_to_front.go
1040 go_compress_flate_files = \
1041 go/compress/flate/copy.go \
1042 go/compress/flate/deflate.go \
1043 go/compress/flate/fixedhuff.go \
1044 go/compress/flate/huffman_bit_writer.go \
1045 go/compress/flate/huffman_code.go \
1046 go/compress/flate/inflate.go \
1047 go/compress/flate/reverse_bits.go \
1048 go/compress/flate/token.go
1050 go_compress_gzip_files = \
1051 go/compress/gzip/gzip.go \
1052 go/compress/gzip/gunzip.go
1054 go_compress_lzw_files = \
1055 go/compress/lzw/reader.go \
1056 go/compress/lzw/writer.go
1058 go_compress_zlib_files = \
1059 go/compress/zlib/reader.go \
1060 go/compress/zlib/writer.go
1062 go_container_heap_files = \
1063 go/container/heap/heap.go
1065 go_container_list_files = \
1066 go/container/list/list.go
1068 go_container_ring_files = \
1069 go/container/ring/ring.go
1071 go_crypto_aes_files = \
1072 go/crypto/aes/block.go \
1073 go/crypto/aes/cipher.go \
1074 go/crypto/aes/cipher_generic.go \
1075 go/crypto/aes/const.go
1076 go_crypto_cipher_files = \
1077 go/crypto/cipher/cbc.go \
1078 go/crypto/cipher/cfb.go \
1079 go/crypto/cipher/cipher.go \
1080 go/crypto/cipher/ctr.go \
1081 go/crypto/cipher/io.go \
1082 go/crypto/cipher/ofb.go
1083 go_crypto_des_files = \
1084 go/crypto/des/block.go \
1085 go/crypto/des/cipher.go \
1086 go/crypto/des/const.go
1087 go_crypto_dsa_files = \
1088 go/crypto/dsa/dsa.go
1089 go_crypto_ecdsa_files = \
1090 go/crypto/ecdsa/ecdsa.go
1091 go_crypto_elliptic_files = \
1092 go/crypto/elliptic/elliptic.go \
1093 go/crypto/elliptic/p224.go
1094 go_crypto_hmac_files = \
1095 go/crypto/hmac/hmac.go
1096 go_crypto_md5_files = \
1097 go/crypto/md5/md5.go \
1098 go/crypto/md5/md5block.go
1099 go_crypto_rand_files = \
1100 go/crypto/rand/rand.go \
1101 go/crypto/rand/rand_unix.go \
1102 go/crypto/rand/util.go
1103 go_crypto_rc4_files = \
1104 go/crypto/rc4/rc4.go \
1105 go/crypto/rc4/rc4_ref.go
1106 go_crypto_rsa_files = \
1107 go/crypto/rsa/pkcs1v15.go \
1108 go/crypto/rsa/rsa.go
1109 go_crypto_sha1_files = \
1110 go/crypto/sha1/sha1.go \
1111 go/crypto/sha1/sha1block.go
1112 go_crypto_sha256_files = \
1113 go/crypto/sha256/sha256.go \
1114 go/crypto/sha256/sha256block.go
1115 go_crypto_sha512_files = \
1116 go/crypto/sha512/sha512.go \
1117 go/crypto/sha512/sha512block.go
1118 go_crypto_subtle_files = \
1119 go/crypto/subtle/constant_time.go
1120 go_crypto_tls_files = \
1121 go/crypto/tls/alert.go \
1122 go/crypto/tls/cipher_suites.go \
1123 go/crypto/tls/common.go \
1124 go/crypto/tls/conn.go \
1125 go/crypto/tls/handshake_client.go \
1126 go/crypto/tls/handshake_messages.go \
1127 go/crypto/tls/handshake_server.go \
1128 go/crypto/tls/key_agreement.go \
1129 go/crypto/tls/prf.go \
1130 go/crypto/tls/ticket.go \
1131 go/crypto/tls/tls.go
1132 go_crypto_x509_files = \
1133 go/crypto/x509/cert_pool.go \
1134 go/crypto/x509/pem_decrypt.go \
1135 go/crypto/x509/pkcs1.go \
1136 go/crypto/x509/pkcs8.go \
1137 go/crypto/x509/root.go \
1138 go/crypto/x509/root_unix.go \
1139 go/crypto/x509/sec1.go \
1140 go/crypto/x509/verify.go \
1141 go/crypto/x509/x509.go
1143 go_crypto_x509_pkix_files = \
1144 go/crypto/x509/pkix/pkix.go
1146 go_database_sql_files = \
1147 go/database/sql/convert.go \
1148 go/database/sql/sql.go
1150 go_database_sql_driver_files = \
1151 go/database/sql/driver/driver.go \
1152 go/database/sql/driver/types.go
1154 go_debug_dwarf_files = \
1155 go/debug/dwarf/buf.go \
1156 go/debug/dwarf/const.go \
1157 go/debug/dwarf/entry.go \
1158 go/debug/dwarf/line.go \
1159 go/debug/dwarf/open.go \
1160 go/debug/dwarf/type.go \
1161 go/debug/dwarf/unit.go
1162 go_debug_elf_files = \
1163 go/debug/elf/elf.go \
1164 go/debug/elf/file.go
1165 go_debug_gosym_files = \
1166 go/debug/gosym/pclntab.go \
1167 go/debug/gosym/symtab.go
1168 go_debug_macho_files = \
1169 go/debug/macho/file.go \
1170 go/debug/macho/macho.go
1171 go_debug_pe_files = \
1172 go/debug/pe/file.go \
1175 go_encoding_ascii85_files = \
1176 go/encoding/ascii85/ascii85.go
1177 go_encoding_asn1_files = \
1178 go/encoding/asn1/asn1.go \
1179 go/encoding/asn1/common.go \
1180 go/encoding/asn1/marshal.go
1181 go_encoding_base32_files = \
1182 go/encoding/base32/base32.go
1183 go_encoding_base64_files = \
1184 go/encoding/base64/base64.go
1185 go_encoding_binary_files = \
1186 go/encoding/binary/binary.go \
1187 go/encoding/binary/varint.go
1188 go_encoding_csv_files = \
1189 go/encoding/csv/reader.go \
1190 go/encoding/csv/writer.go
1191 go_encoding_gob_files = \
1192 go/encoding/gob/decode.go \
1193 go/encoding/gob/decoder.go \
1194 go/encoding/gob/doc.go \
1195 go/encoding/gob/encode.go \
1196 go/encoding/gob/encoder.go \
1197 go/encoding/gob/error.go \
1198 go/encoding/gob/type.go
1199 go_encoding_hex_files = \
1200 go/encoding/hex/hex.go
1201 go_encoding_json_files = \
1202 go/encoding/json/decode.go \
1203 go/encoding/json/encode.go \
1204 go/encoding/json/indent.go \
1205 go/encoding/json/scanner.go \
1206 go/encoding/json/stream.go \
1207 go/encoding/json/tags.go
1208 go_encoding_pem_files = \
1209 go/encoding/pem/pem.go
1210 go_encoding_xml_files = \
1211 go/encoding/xml/marshal.go \
1212 go/encoding/xml/read.go \
1213 go/encoding/xml/typeinfo.go \
1214 go/encoding/xml/xml.go
1216 go_exp_proxy_files = \
1217 go/exp/proxy/direct.go \
1218 go/exp/proxy/per_host.go \
1219 go/exp/proxy/proxy.go \
1220 go/exp/proxy/socks5.go
1221 go_exp_terminal_files = \
1222 go/exp/terminal/terminal.go \
1223 go/exp/terminal/util.go
1227 go/go/ast/commentmap.go \
1228 go/go/ast/filter.go \
1229 go/go/ast/import.go \
1230 go/go/ast/print.go \
1231 go/go/ast/resolve.go \
1232 go/go/ast/scope.go \
1234 go_go_build_files = \
1235 go/go/build/build.go \
1236 go/go/build/doc.go \
1237 go/go/build/read.go \
1240 go/go/doc/comment.go \
1242 go/go/doc/example.go \
1243 go/go/doc/exports.go \
1244 go/go/doc/filter.go \
1245 go/go/doc/reader.go \
1246 go/go/doc/synopsis.go
1247 go_go_format_files = \
1248 go/go/format/format.go
1249 go_go_parser_files = \
1250 go/go/parser/interface.go \
1251 go/go/parser/parser.go
1252 go_go_printer_files = \
1253 go/go/printer/nodes.go \
1254 go/go/printer/printer.go
1255 go_go_scanner_files = \
1256 go/go/scanner/errors.go \
1257 go/go/scanner/scanner.go
1258 go_go_token_files = \
1259 go/go/token/position.go \
1260 go/go/token/serialize.go \
1261 go/go/token/token.go
1263 go_hash_adler32_files = \
1264 go/hash/adler32/adler32.go
1265 go_hash_crc32_files = \
1266 go/hash/crc32/crc32.go \
1267 go/hash/crc32/crc32_generic.go
1268 go_hash_crc64_files = \
1269 go/hash/crc64/crc64.go
1270 go_hash_fnv_files = \
1273 go_html_template_files = \
1274 go/html/template/attr.go \
1275 go/html/template/content.go \
1276 go/html/template/context.go \
1277 go/html/template/css.go \
1278 go/html/template/doc.go \
1279 go/html/template/error.go \
1280 go/html/template/escape.go \
1281 go/html/template/html.go \
1282 go/html/template/js.go \
1283 go/html/template/template.go \
1284 go/html/template/transition.go \
1285 go/html/template/url.go
1287 go_image_color_files = \
1288 go/image/color/color.go \
1289 go/image/color/ycbcr.go
1291 go_image_draw_files = \
1292 go/image/draw/draw.go
1294 go_image_gif_files = \
1295 go/image/gif/reader.go
1297 go_image_jpeg_files = \
1298 go/image/jpeg/fdct.go \
1299 go/image/jpeg/huffman.go \
1300 go/image/jpeg/idct.go \
1301 go/image/jpeg/reader.go \
1302 go/image/jpeg/scan.go \
1303 go/image/jpeg/writer.go
1305 go_image_png_files = \
1306 go/image/png/paeth.go \
1307 go/image/png/reader.go \
1308 go/image/png/writer.go
1310 go_index_suffixarray_files = \
1311 go/index/suffixarray/qsufsort.go \
1312 go/index/suffixarray/suffixarray.go
1314 go_io_ioutil_files = \
1315 go/io/ioutil/blackhole.go \
1316 go/io/ioutil/ioutil.go \
1317 go/io/ioutil/tempfile.go
1319 go_math_big_files = \
1320 go/math/big/arith.go \
1321 go/math/big/int.go \
1322 go/math/big/nat.go \
1324 go_math_cmplx_files = \
1325 go/math/cmplx/abs.go \
1326 go/math/cmplx/asin.go \
1327 go/math/cmplx/conj.go \
1328 go/math/cmplx/exp.go \
1329 go/math/cmplx/isinf.go \
1330 go/math/cmplx/isnan.go \
1331 go/math/cmplx/log.go \
1332 go/math/cmplx/phase.go \
1333 go/math/cmplx/polar.go \
1334 go/math/cmplx/pow.go \
1335 go/math/cmplx/rect.go \
1336 go/math/cmplx/sin.go \
1337 go/math/cmplx/sqrt.go \
1338 go/math/cmplx/tan.go
1339 go_math_rand_files = \
1340 go/math/rand/exp.go \
1341 go/math/rand/normal.go \
1342 go/math/rand/rand.go \
1343 go/math/rand/rng.go \
1344 go/math/rand/zipf.go
1346 go_mime_multipart_files = \
1347 go/mime/multipart/formdata.go \
1348 go/mime/multipart/multipart.go \
1349 go/mime/multipart/quotedprintable.go \
1350 go/mime/multipart/writer.go
1352 go_net_http_files = \
1353 go/net/http/chunked.go \
1354 go/net/http/client.go \
1355 go/net/http/cookie.go \
1356 go/net/http/filetransport.go \
1358 go/net/http/header.go \
1359 go/net/http/jar.go \
1360 go/net/http/lex.go \
1361 go/net/http/request.go \
1362 go/net/http/response.go \
1363 go/net/http/server.go \
1364 go/net/http/sniff.go \
1365 go/net/http/status.go \
1366 go/net/http/transfer.go \
1367 go/net/http/transport.go
1368 go_net_mail_files = \
1369 go/net/mail/message.go
1370 go_net_smtp_files = \
1371 go/net/smtp/auth.go \
1373 go_net_textproto_files = \
1374 go/net/textproto/header.go \
1375 go/net/textproto/pipeline.go \
1376 go/net/textproto/reader.go \
1377 go/net/textproto/textproto.go \
1378 go/net/textproto/writer.go
1379 go_net_url_files = \
1382 go_net_http_cgi_files = \
1383 go/net/http/cgi/child.go \
1384 go/net/http/cgi/host.go
1385 go_net_http_cookiejar_files = \
1386 go/net/http/cookiejar/jar.go \
1387 go/net/http/cookiejar/punycode.go
1388 go_net_http_fcgi_files = \
1389 go/net/http/fcgi/child.go \
1390 go/net/http/fcgi/fcgi.go
1391 go_net_http_httptest_files = \
1392 go/net/http/httptest/recorder.go \
1393 go/net/http/httptest/server.go
1394 go_net_http_pprof_files = \
1395 go/net/http/pprof/pprof.go
1396 go_net_http_httputil_files = \
1397 go/net/http/httputil/chunked.go \
1398 go/net/http/httputil/dump.go \
1399 go/net/http/httputil/persist.go \
1400 go/net/http/httputil/reverseproxy.go
1403 go_old_regexp_files = \
1404 go/old/regexp/regexp.go
1405 go_old_template_files = \
1406 go/old/template/doc.go \
1407 go/old/template/execute.go \
1408 go/old/template/format.go \
1409 go/old/template/parse.go
1411 go_os_exec_files = \
1412 go/os/exec/exec.go \
1413 go/os/exec/lp_unix.go
1415 go_os_signal_files = \
1416 go/os/signal/signal.go \
1417 go/os/signal/signal_unix.go
1419 go_os_user_files = \
1420 go/os/user/user.go \
1421 go/os/user/lookup.go \
1422 go/os/user/lookup_unix.go
1424 go_path_filepath_files = \
1425 go/path/filepath/match.go \
1426 go/path/filepath/path.go \
1427 go/path/filepath/path_unix.go \
1428 go/path/filepath/symlink.go
1430 go_regexp_syntax_files = \
1431 go/regexp/syntax/compile.go \
1432 go/regexp/syntax/doc.go \
1433 go/regexp/syntax/parse.go \
1434 go/regexp/syntax/perl_groups.go \
1435 go/regexp/syntax/prog.go \
1436 go/regexp/syntax/regexp.go \
1437 go/regexp/syntax/simplify.go
1439 go_net_rpc_jsonrpc_files = \
1440 go/net/rpc/jsonrpc/client.go \
1441 go/net/rpc/jsonrpc/server.go
1443 go_runtime_debug_files = \
1444 go/runtime/debug/garbage.go \
1445 go/runtime/debug/stack.go
1446 go_runtime_pprof_files = \
1447 go/runtime/pprof/pprof.go
1449 go_text_tabwriter_files = \
1450 go/text/tabwriter/tabwriter.go
1451 go_text_template_files = \
1452 go/text/template/doc.go \
1453 go/text/template/exec.go \
1454 go/text/template/funcs.go \
1455 go/text/template/helper.go \
1456 go/text/template/template.go
1457 go_text_template_parse_files = \
1458 go/text/template/parse/lex.go \
1459 go/text/template/parse/node.go \
1460 go/text/template/parse/parse.go
1462 go_sync_atomic_files = \
1463 go/sync/atomic/doc.go
1464 go_sync_atomic_c_files = \
1465 go/sync/atomic/atomic.c
1467 go_testing_iotest_files = \
1468 go/testing/iotest/logger.go \
1469 go/testing/iotest/reader.go \
1470 go/testing/iotest/writer.go
1471 go_testing_quick_files = \
1472 go/testing/quick/quick.go
1474 go_text_scanner_files = \
1475 go/text/scanner/scanner.go
1477 go_unicode_utf16_files = \
1478 go/unicode/utf16/utf16.go
1479 go_unicode_utf8_files = \
1480 go/unicode/utf8/utf8.go
1482 # Define Syscall and Syscall6.
1484 syscall_syscall_file = go/syscall/syscall_stubs.go
1486 syscall_syscall_file = go/syscall/syscall_unix.go
1489 # Define ForkExec and Exec.
1491 syscall_exec_file = go/syscall/exec_stubs.go
1492 syscall_exec_os_file =
1495 syscall_exec_file = go/syscall/exec_unix.go
1496 syscall_exec_os_file = go/syscall/exec_linux.go
1498 syscall_exec_file = go/syscall/exec_unix.go
1499 syscall_exec_os_file = go/syscall/exec_bsd.go
1508 syscall_wait_file = go/syscall/libcall_wait4.go
1510 syscall_wait_file = go/syscall/libcall_waitpid.go
1514 # Support for pulling apart wait status.
1516 syscall_wait_c_file =
1518 syscall_wait_c_file = go/syscall/wait.c
1523 syscall_sleep_file = go/syscall/sleep_rtems.go
1525 syscall_sleep_file = go/syscall/sleep_select.go
1530 syscall_errstr_file = go/syscall/errstr_linux.go
1533 syscall_errstr_file = go/syscall/errstr_linux.go
1536 syscall_errstr_file = go/syscall/errstr.go
1538 syscall_errstr_file = go/syscall/errstr_nor.go
1543 # Declare libc functions that vary for largefile systems.
1545 # Always use lseek64 on GNU/Linux.
1546 syscall_size_file = go/syscall/libcall_posix_largefile.go
1547 else # !LIBGO_IS_LINUX
1550 # Use lseek64 on 32-bit Solaris/x86.
1551 syscall_size_file = go/syscall/libcall_posix_largefile.go
1552 else # !LIBGO_IS_386
1554 # Use lseek64 on 32-bit Solaris/SPARC.
1555 syscall_size_file = go/syscall/libcall_posix_largefile.go
1556 else # !LIBGO_IS_386 && !LIBGO_IS_SPARC
1557 # Use lseek on 64-bit Solaris.
1558 syscall_size_file = go/syscall/libcall_posix_regfile.go
1559 endif # !LIBGO_IS_386 && !LIBGO_IS_SPARC
1560 endif # !LIBGO_IS_SOLARIS
1561 else # !LIBGO_IS_LINUX && !LIBGO_IS_SOLARIS
1562 # Use lseek by default.
1563 syscall_size_file = go/syscall/libcall_posix_regfile.go
1564 endif # !LIBGO_IS_SOLARIS
1565 endif # !LIBGO_IS_LINUX
1567 # Define socket sizes and types.
1569 syscall_socket_file = go/syscall/socket_linux.go epoll.go
1572 syscall_socket_file = go/syscall/socket_solaris.go
1575 syscall_socket_file = go/syscall/socket_irix.go
1577 syscall_socket_file = go/syscall/socket_bsd.go
1582 # Define socket functions.
1584 syscall_socket_os_file = go/syscall/socket_xnet.go
1586 syscall_socket_os_file = go/syscall/socket_posix.go
1589 # Support for uname.
1592 # 32-bit Solaris 2/x86 needs _nuname, handled in libcall_solaris_386.go.
1593 syscall_uname_file =
1594 else # !LIBGO_IS_386 && LIBGO_IS_SOLARIS
1595 syscall_uname_file = go/syscall/libcall_uname.go
1597 else # !LIBGO_IS_SOLARIS
1598 syscall_uname_file = go/syscall/libcall_uname.go
1601 # GNU/Linux specific socket control messages.
1603 syscall_sockcmsg_file = go/syscall/sockcmsg_linux.go
1605 syscall_sockcmsg_file =
1608 # Support for netlink sockets and messages.
1610 syscall_netlink_file = go/syscall/netlink_linux.go
1612 syscall_netlink_file =
1615 # GNU/Linux specific socket filters.
1617 syscall_lsf_file = go/syscall/lsf_linux.go
1622 # GNU/Linux specific utimesnano support.
1624 syscall_utimesnano_file = go/syscall/libcall_linux_utimesnano.go
1626 syscall_utimesnano_file = go/syscall/libcall_posix_utimesnano.go
1631 syscall_creds_test_file = go/syscall/creds_test.go
1633 syscall_creds_test_file =
1636 go_base_syscall_files = \
1637 go/syscall/env_unix.go \
1638 go/syscall/syscall_errno.go \
1639 go/syscall/libcall_support.go \
1640 go/syscall/libcall_posix.go \
1641 go/syscall/race0.go \
1642 go/syscall/socket.go \
1643 go/syscall/sockcmsg_unix.go \
1645 go/syscall/syscall.go \
1646 $(syscall_sockcmsg_file) \
1647 $(syscall_syscall_file) \
1648 $(syscall_exec_file) \
1649 $(syscall_exec_os_file) \
1650 $(syscall_wait_file) \
1651 $(syscall_sleep_file) \
1652 $(syscall_errstr_file) \
1653 $(syscall_size_file) \
1654 $(syscall_socket_file) \
1655 $(syscall_socket_os_file) \
1656 $(syscall_uname_file) \
1657 $(syscall_netlink_file) \
1658 $(syscall_lsf_file) \
1659 $(syscall_utimesnano_file) \
1660 $(GO_LIBCALL_OS_FILE) \
1661 $(GO_LIBCALL_OS_ARCH_FILE) \
1662 $(GO_SYSCALL_OS_FILE) \
1663 $(GO_SYSCALL_OS_ARCH_FILE)
1665 go_syscall_files = \
1666 $(go_base_syscall_files) \
1670 go_syscall_c_files = \
1671 go/syscall/errno.c \
1672 go/syscall/signame.c \
1673 $(syscall_wait_c_file)
1675 go_syscall_test_files = \
1676 $(syscall_creds_test_file) \
1677 go/syscall/passfd_test.go
1679 libcalls.go: s-libcalls; @true
1680 s-libcalls: libcalls-list go/syscall/mksyscall.awk $(go_base_syscall_files)
1681 rm -f libcalls.go.tmp
1682 files=`echo $^ | sed -e 's/libcalls-list//' -e 's|[^ ]*go/syscall/mksyscall.awk||'`; \
1683 $(AWK) -f $(srcdir)/go/syscall/mksyscall.awk $${files} > libcalls.go.tmp
1684 $(SHELL) $(srcdir)/../move-if-change libcalls.go.tmp libcalls.go
1687 libcalls-list: s-libcalls-list; @true
1688 s-libcalls-list: Makefile
1689 rm -f libcalls-list.tmp
1690 echo $(go_base_syscall_files) > libcalls-list.tmp
1691 $(SHELL) $(srcdir)/../move-if-change libcalls-list.tmp libcalls-list
1694 syscall_arch.go: s-syscall_arch; @true
1695 s-syscall_arch: Makefile
1696 rm -f syscall_arch.go.tmp
1697 echo "package syscall" > syscall_arch.go.tmp
1698 echo 'const ARCH = "'$(GOARCH)'"' >> syscall_arch.go.tmp
1699 echo 'const OS = "'$(GOOS)'"' >> syscall_arch.go.tmp
1700 $(SHELL) $(srcdir)/../move-if-change syscall_arch.go.tmp syscall_arch.go
1703 sysinfo.go: s-sysinfo; @true
1704 s-sysinfo: $(srcdir)/mksysinfo.sh config.h
1705 CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS)" $(SHELL) $(srcdir)/mksysinfo.sh
1706 $(SHELL) $(srcdir)/../move-if-change tmp-sysinfo.go sysinfo.go
1709 # The epoll struct has an embedded union and is packed on x86_64,
1710 # which is too complicated for mksysinfo.sh. We find the offset of
1711 # the only field we care about in configure.ac, and generate the
1713 epoll.go: s-epoll; @true
1716 echo 'package syscall' > epoll.go.tmp
1717 echo 'type EpollEvent struct {' >> epoll.go.tmp
1718 echo ' Events uint32' >> epoll.go.tmp
1719 case "$(SIZEOF_STRUCT_EPOLL_EVENT),$(STRUCT_EPOLL_EVENT_FD_OFFSET)" in \
1720 0,0) echo 1>&2 "*** struct epoll_event data.fd offset unknown"; \
1722 8,4) echo ' Fd int32' >> epoll.go.tmp; ;; \
1723 12,4) echo ' Fd int32' >> epoll.go.tmp; \
1724 echo ' Pad [4]byte' >> epoll.go.tmp; ;; \
1725 12,8) echo ' Pad [4]byte' >> epoll.go.tmp; \
1726 echo ' Fd int32' >> epoll.go.tmp; ;; \
1727 16,8) echo ' Pad [4]byte' >> epoll.go.tmp; \
1728 echo ' Fd int32' >> epoll.go.tmp; \
1729 echo ' Pad2 [4]byte' >> epoll.go.tmp; ;; \
1730 *) echo 1>&2 "*** struct epoll_event unsupported"; \
1733 echo '}' >> epoll.go.tmp
1734 $(SHELL) $(srcdir)/../move-if-change epoll.go.tmp epoll.go
1738 # os_lib_inotify_lo = os/inotify.lo
1772 syscall/signame.lo \
1792 crypto/elliptic.lo \
1804 crypto/x509/pkix.lo \
1806 database/sql/driver.lo \
1812 encoding/ascii85.lo \
1814 encoding/base32.lo \
1815 encoding/base64.lo \
1816 encoding/binary.lo \
1839 net/http/cookiejar.lo \
1841 net/http/httptest.lo \
1842 net/http/httputil.lo \
1849 index/suffixarray.lo \
1852 log/syslog/syslog_c.lo \
1866 $(os_lib_inotify_lo) \
1871 net/rpc/jsonrpc.lo \
1879 text/template/parse.lo \
1885 libgo_la_SOURCES = $(runtime_files)
1887 libgo_la_LDFLAGS = \
1888 -version-info $(libtool_VERSION) $(PTHREAD_CFLAGS) $(AM_LDFLAGS)
1891 $(libgo_go_objs) ../libbacktrace/libbacktrace.la \
1892 ../libatomic/libatomic_convenience.la \
1893 $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)
1895 libgobegin_a_SOURCES = \
1898 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
1900 GOCFLAGS = $(CFLAGS)
1901 AM_GOCFLAGS = $(STRINGOPS_FLAG)
1902 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
1904 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
1905 $(AM_GOCFLAGS) $(GOCFLAGS)
1907 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
1908 $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
1910 # Build the dependencies for a Go package.
1913 $(SHELL) $(srcdir)/godeps.sh `echo $@ | sed -e 's/.dep$$//'` $^ > $@.tmp; \
1916 # Build the .go files for a package, generating a .lo file.
1919 files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
1920 $(LTGOCOMPILE) -I . -c -fgo-pkgpath=`echo $@ | sed -e 's/.lo$$//' -e 's/-go$$//'` -o $@ $$files
1926 GC="$(GOC) $(GOCFLAGS) $($(subst /,_,$@)_GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
1928 GOLIBS="$(MATH_LIBS) $(NET_LIBS) $(LIBS)"; \
1930 RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
1931 export RUNTESTFLAGS; \
1934 libgccdir=`${GOC} -print-libgcc-file-name | sed -e 's|/[^/]*$$||'`; \
1935 LD_LIBRARY_PATH="`${PWD_COMMAND}`/.libs:$${libgccdir}:${LD_LIBRARY_PATH}"; \
1936 LD_LIBRARY_PATH=`echo $${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
1937 export LD_LIBRARY_PATH; \
1939 rm -f $@-testsum $@-testlog; \
1940 if test "$(USE_DEJAGNU)" = "yes"; then \
1941 $(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); \
1943 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 \
1944 echo "PASS: $(@D)" >> $@-testlog; \
1945 echo "PASS: $(@D)"; \
1946 echo "PASS: $(@D)" > $@-testsum; \
1948 echo "FAIL: $(@D)" >> $@-testlog; \
1950 echo "FAIL: $(@D)" > $@-testsum; \
1955 # Build all packages before checking any.
1956 CHECK_DEPS = libgo.la libgobegin.a \
1957 $(toolexeclibgo_DATA) \
1958 $(toolexeclibgoarchive_DATA) \
1959 $(toolexeclibgocompress_DATA) \
1960 $(toolexeclibgocontainer_DATA) \
1961 $(toolexeclibgocrypto_DATA) \
1962 $(toolexeclibgodebug_DATA) \
1963 $(toolexeclibgoencoding_DATA) \
1964 $(toolexeclibgoexp_DATA) \
1965 $(toolexeclibgogo_DATA) \
1966 $(toolexeclibgohash_DATA) \
1967 $(toolexeclibgoimage_DATA) \
1968 $(toolexeclibgoindex_DATA) \
1969 $(toolexeclibgoio_DATA) \
1970 $(toolexeclibgolog_DATA) \
1971 $(toolexeclibgomath_DATA) \
1972 $(toolexeclibgomime_DATA) \
1973 $(toolexeclibgonet_DATA) \
1974 $(toolexeclibgonethttp_DATA) \
1975 $(toolexeclibgoos_DATA) \
1976 $(toolexeclibgopath_DATA) \
1977 $(toolexeclibgorpc_DATA) \
1978 $(toolexeclibgoruntime_DATA) \
1979 $(toolexeclibgosync_DATA) \
1980 $(toolexeclibgotesting_DATA) \
1981 $(toolexeclibgotext_DATA) \
1982 $(toolexeclibgotexttemplate_DATA) \
1983 $(toolexeclibgounicode_DATA)
1985 @go_include@ bufio.lo.dep
1986 bufio.lo.dep: $(go_bufio_files)
1988 bufio.lo: $(go_bufio_files)
1990 bufio/check: $(CHECK_DEPS)
1994 @go_include@ bytes.lo.dep
1995 bytes.lo.dep: $(go_bytes_files)
1997 bytes.lo: $(go_bytes_files)
1999 bytes/index.lo: $(go_bytes_c_files)
2001 $(LTCOMPILE) -c -o bytes/index.lo $(srcdir)/go/bytes/indexbyte.c
2002 bytes/check: $(CHECK_DEPS)
2006 @go_include@ crypto.lo.dep
2007 crypto.lo.dep: $(go_crypto_files)
2009 crypto.lo: $(go_crypto_files)
2011 crypto/check: $(CHECK_DEPS)
2013 .PHONY: crypto/check
2015 @go_include@ errors.lo.dep
2016 errors.lo.dep: $(go_errors_files)
2018 errors.lo: $(go_errors_files)
2020 errors/check: $(CHECK_DEPS)
2022 .PHONY: errors/check
2024 @go_include@ expvar.lo.dep
2025 expvar.lo.dep: $(go_expvar_files)
2027 expvar.lo: $(go_expvar_files)
2029 expvar/check: $(CHECK_DEPS)
2031 .PHONY: expvar/check
2033 @go_include@ flag.lo.dep
2034 flag.lo.dep: $(go_flag_files)
2036 flag.lo: $(go_flag_files)
2038 flag/check: $(CHECK_DEPS)
2042 @go_include@ fmt.lo.dep
2043 fmt.lo.dep: $(go_fmt_files)
2045 fmt.lo: $(go_fmt_files)
2047 fmt/check: $(CHECK_DEPS)
2051 @go_include@ hash.lo.dep
2052 hash.lo.dep: $(go_hash_files)
2054 hash.lo: $(go_hash_files)
2056 hash/check: $(CHECK_DEPS)
2060 @go_include@ html.lo.dep
2061 html.lo.dep: $(go_html_files)
2063 html.lo: $(go_html_files)
2065 html/check: $(CHECK_DEPS)
2069 @go_include@ image.lo.dep
2070 image.lo.dep: $(go_image_files)
2072 image.lo: $(go_image_files)
2074 image/check: $(CHECK_DEPS)
2078 @go_include@ io.lo.dep
2079 io.lo.dep: $(go_io_files)
2081 io.lo: $(go_io_files)
2083 io/check: $(CHECK_DEPS)
2087 @go_include@ log.lo.dep
2088 log.lo.dep: $(go_log_files)
2090 log.lo: $(go_log_files)
2092 log/check: $(CHECK_DEPS)
2096 @go_include@ math.lo.dep
2097 math.lo.dep: $(go_math_files)
2099 math.lo: $(go_math_files)
2101 files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
2102 $(LTGOCOMPILE) $(MATH_FLAG) -I . -c -fgo-pkgpath=math -o $@ $$files
2103 math/check: $(CHECK_DEPS)
2107 @go_include@ mime.lo.dep
2108 mime.lo.dep: $(go_mime_files)
2110 mime.lo: $(go_mime_files)
2112 mime/check: $(CHECK_DEPS)
2116 @go_include@ net.lo.dep
2117 net.lo.dep: $(go_net_files)
2119 net.lo: $(go_net_files)
2121 net/check: $(CHECK_DEPS)
2125 @go_include@ os.lo.dep
2126 os.lo.dep: $(go_os_files)
2128 os.lo: $(go_os_files)
2130 os/check: $(CHECK_DEPS)
2134 @go_include@ path.lo.dep
2135 path.lo.dep: $(go_path_files)
2137 path.lo: $(go_path_files)
2139 path/check: $(CHECK_DEPS)
2143 @go_include@ reflect-go.lo.dep
2144 reflect-go.lo.dep: $(go_reflect_files)
2146 reflect-go.lo: $(go_reflect_files)
2148 reflect/check: $(CHECK_DEPS)
2150 .PHONY: reflect/check
2152 @go_include@ regexp.lo.dep
2153 regexp.lo.dep: $(go_regexp_files)
2155 regexp.lo: $(go_regexp_files)
2157 regexp/check: $(CHECK_DEPS)
2159 .PHONY: regexp/check
2161 @go_include@ runtime-go.lo.dep
2162 runtime-go.lo.dep: $(go_runtime_files)
2164 runtime-go.lo: $(go_runtime_files)
2166 runtime/check: $(CHECK_DEPS)
2168 .PHONY: runtime/check
2170 @go_include@ sort.lo.dep
2171 sort.lo.dep: $(go_sort_files)
2173 sort.lo: $(go_sort_files)
2175 sort/check: $(CHECK_DEPS)
2179 @go_include@ strconv.lo.dep
2180 strconv.lo.dep: $(go_strconv_files)
2182 strconv.lo: $(go_strconv_files)
2184 strconv/check: $(CHECK_DEPS)
2186 .PHONY: strconv/check
2188 @go_include@ strings.lo.dep
2189 strings.lo.dep: $(go_strings_files)
2191 strings.lo: $(go_strings_files)
2193 strings/check: $(CHECK_DEPS)
2195 .PHONY: strings/check
2197 @go_include@ sync.lo.dep
2198 sync.lo.dep: $(go_sync_files)
2200 sync.lo: $(go_sync_files)
2202 sync/check: $(CHECK_DEPS)
2206 @go_include@ testing.lo.dep
2207 testing.lo.dep: $(go_testing_files)
2209 testing.lo: $(go_testing_files)
2211 testing/check: $(CHECK_DEPS)
2213 .PHONY: testing/check
2215 @go_include@ time-go.lo.dep
2216 time-go.lo.dep: $(go_time_files)
2218 time-go.lo: $(go_time_files)
2220 time/check: $(CHECK_DEPS)
2224 @go_include@ unicode.lo.dep
2225 unicode.lo.dep: $(go_unicode_files)
2227 unicode.lo: $(go_unicode_files)
2229 unicode/check: $(CHECK_DEPS)
2231 .PHONY: unicode/check
2233 @go_include@ archive/tar.lo.dep
2234 archive/tar.lo.dep: $(go_archive_tar_files)
2236 archive/tar.lo: $(go_archive_tar_files)
2238 archive/tar/check: $(CHECK_DEPS)
2240 .PHONY: archive/tar/check
2242 @go_include@ archive/zip.lo.dep
2243 archive/zip.lo.dep: $(go_archive_zip_files)
2245 archive/zip.lo: $(go_archive_zip_files)
2247 archive/zip/check: $(CHECK_DEPS)
2249 .PHONY: archive/zip/check
2251 @go_include@ compress/bzip2.lo.dep
2252 compress/bzip2.lo.dep: $(go_compress_bzip2_files)
2254 compress/bzip2.lo: $(go_compress_bzip2_files)
2256 compress/bzip2/check: $(CHECK_DEPS)
2258 .PHONY: compress/bzip2/check
2260 @go_include@ compress/flate.lo.dep
2261 compress/flate.lo.dep: $(go_compress_flate_files)
2263 compress/flate.lo: $(go_compress_flate_files)
2265 compress/flate/check: $(CHECK_DEPS)
2267 .PHONY: compress/flate/check
2269 @go_include@ compress/gzip.lo.dep
2270 compress/gzip.lo.dep: $(go_compress_gzip_files)
2272 compress/gzip.lo: $(go_compress_gzip_files)
2274 compress/gzip/check: $(CHECK_DEPS)
2276 .PHONY: compress/gzip/check
2278 @go_include@ compress/lzw.lo.dep
2279 compress/lzw.lo.dep: $(go_compress_lzw_files)
2281 compress/lzw.lo: $(go_compress_lzw_files)
2283 compress/lzw/check: $(CHECK_DEPS)
2285 .PHONY: compress/lzw/check
2287 @go_include@ compress/zlib.lo.dep
2288 compress/zlib.lo.dep: $(go_compress_zlib_files)
2290 compress/zlib.lo: $(go_compress_zlib_files)
2292 compress/zlib/check: $(CHECK_DEPS)
2294 .PHONY: compress/zlib/check
2296 @go_include@ container/heap.lo.dep
2297 container/heap.lo.dep: $(go_container_heap_files)
2299 container/heap.lo: $(go_container_heap_files)
2301 container/heap/check: $(CHECK_DEPS)
2303 .PHONY: container/heap/check
2305 @go_include@ container/list.lo.dep
2306 container/list.lo.dep: $(go_container_list_files)
2308 container/list.lo: $(go_container_list_files)
2310 container/list/check: $(CHECK_DEPS)
2312 .PHONY: container/list/check
2314 @go_include@ container/ring.lo.dep
2315 container/ring.lo.dep: $(go_container_ring_files)
2317 container/ring.lo: $(go_container_ring_files)
2319 container/ring/check: $(CHECK_DEPS)
2321 .PHONY: container/ring/check
2323 @go_include@ crypto/aes.lo.dep
2324 crypto/aes.lo.dep: $(go_crypto_aes_files)
2326 crypto/aes.lo: $(go_crypto_aes_files)
2328 crypto/aes/check: $(CHECK_DEPS)
2330 .PHONY: crypto/aes/check
2332 @go_include@ crypto/cipher.lo.dep
2333 crypto/cipher.lo.dep: $(go_crypto_cipher_files)
2335 crypto/cipher.lo: $(go_crypto_cipher_files)
2337 crypto/cipher/check: $(CHECK_DEPS)
2339 .PHONY: crypto/cipher/check
2341 @go_include@ crypto/des.lo.dep
2342 crypto/des.lo.dep: $(go_crypto_des_files)
2344 crypto/des.lo: $(go_crypto_des_files)
2346 crypto/des/check: $(CHECK_DEPS)
2348 .PHONY: crypto/des/check
2350 @go_include@ crypto/dsa.lo.dep
2351 crypto/dsa.lo.dep: $(go_crypto_dsa_files)
2353 crypto/dsa.lo: $(go_crypto_dsa_files)
2355 crypto/dsa/check: $(CHECK_DEPS)
2357 .PHONY: crypto/dsa/check
2359 @go_include@ crypto/ecdsa.lo.dep
2360 crypto/ecdsa.lo.dep: $(go_crypto_ecdsa_files)
2362 crypto/ecdsa.lo: $(go_crypto_ecdsa_files)
2364 crypto/ecdsa/check: $(CHECK_DEPS)
2366 .PHONY: crypto/ecdsa/check
2368 @go_include@ crypto/elliptic.lo.dep
2369 crypto/elliptic.lo.dep: $(go_crypto_elliptic_files)
2371 crypto/elliptic.lo: $(go_crypto_elliptic_files)
2373 crypto/elliptic/check: $(CHECK_DEPS)
2375 .PHONY: crypto/elliptic/check
2377 @go_include@ crypto/hmac.lo.dep
2378 crypto/hmac.lo.dep: $(go_crypto_hmac_files)
2380 crypto/hmac.lo: $(go_crypto_hmac_files)
2382 crypto/hmac/check: $(CHECK_DEPS)
2384 .PHONY: crypto/hmac/check
2386 @go_include@ crypto/md5.lo.dep
2387 crypto/md5.lo.dep: $(go_crypto_md5_files)
2389 crypto/md5.lo: $(go_crypto_md5_files)
2391 crypto/md5/check: $(CHECK_DEPS)
2393 .PHONY: crypto/md5/check
2395 @go_include@ crypto/rand.lo.dep
2396 crypto/rand.lo.dep: $(go_crypto_rand_files)
2398 crypto/rand.lo: $(go_crypto_rand_files)
2400 crypto/rand/check: $(CHECK_DEPS)
2402 .PHONY: crypto/rand/check
2404 @go_include@ crypto/rc4.lo.dep
2405 crypto/rc4.lo.dep: $(go_crypto_rc4_files)
2407 crypto/rc4.lo: $(go_crypto_rc4_files)
2409 crypto/rc4/check: $(CHECK_DEPS)
2411 .PHONY: crypto/rc4/check
2413 @go_include@ crypto/rsa.lo.dep
2414 crypto/rsa.lo.dep: $(go_crypto_rsa_files)
2416 crypto/rsa.lo: $(go_crypto_rsa_files)
2418 crypto/rsa/check: $(CHECK_DEPS)
2420 .PHONY: crypto/rsa/check
2422 @go_include@ crypto/sha1.lo.dep
2423 crypto/sha1.lo.dep: $(go_crypto_sha1_files)
2425 crypto/sha1.lo: $(go_crypto_sha1_files)
2427 crypto/sha1/check: $(CHECK_DEPS)
2429 .PHONY: crypto/sha1/check
2431 @go_include@ crypto/sha256.lo.dep
2432 crypto/sha256.lo.dep: $(go_crypto_sha256_files)
2434 crypto/sha256.lo: $(go_crypto_sha256_files)
2436 crypto/sha256/check: $(CHECK_DEPS)
2438 .PHONY: crypto/sha256/check
2440 @go_include@ crypto/sha512.lo.dep
2441 crypto/sha512.lo.dep: $(go_crypto_sha512_files)
2443 crypto/sha512.lo: $(go_crypto_sha512_files)
2445 crypto/sha512/check: $(CHECK_DEPS)
2447 .PHONY: crypto/sha512/check
2449 @go_include@ crypto/subtle.lo.dep
2450 crypto/subtle.lo.dep: $(go_crypto_subtle_files)
2452 crypto/subtle.lo: $(go_crypto_subtle_files)
2454 crypto/subtle/check: $(CHECK_DEPS)
2456 .PHONY: crypto/subtle/check
2458 @go_include@ crypto/tls.lo.dep
2459 crypto/tls.lo.dep: $(go_crypto_tls_files)
2461 crypto/tls.lo: $(go_crypto_tls_files)
2463 crypto/tls/check: $(CHECK_DEPS)
2465 .PHONY: crypto/tls/check
2467 @go_include@ crypto/x509.lo.dep
2468 crypto/x509.lo.dep: $(go_crypto_x509_files)
2470 crypto/x509.lo: $(go_crypto_x509_files)
2472 crypto/x509/check: $(CHECK_DEPS)
2474 .PHONY: crypto/x509/check
2476 @go_include@ crypto/x509/pkix.lo.dep
2477 crypto/x509/pkix.lo.dep: $(go_crypto_x509_pkix_files)
2479 crypto/x509/pkix.lo: $(go_crypto_x509_pkix_files)
2481 crypto/x509/pkix/check: $(CHECK_DEPS)
2483 .PHONY: crypto/x509/pkix/check
2485 @go_include@ database/sql.lo.dep
2486 database/sql.lo.dep: $(go_database_sql_files)
2488 database/sql.lo: $(go_database_sql_files)
2490 database/sql/check: $(CHECK_DEPS)
2492 .PHONY: database/sql/check
2494 @go_include@ database/sql/driver.lo.dep
2495 database/sql/driver.lo.dep: $(go_database_sql_driver_files)
2497 database/sql/driver.lo: $(go_database_sql_driver_files)
2499 database/sql/driver/check: $(CHECK_DEPS)
2501 .PHONY: database/sql/driver/check
2503 @go_include@ debug/dwarf.lo.dep
2504 debug/dwarf.lo.dep: $(go_debug_dwarf_files)
2506 debug/dwarf.lo: $(go_debug_dwarf_files)
2508 debug/dwarf/check: $(CHECK_DEPS)
2510 .PHONY: debug/dwarf/check
2512 @go_include@ debug/elf.lo.dep
2513 debug/elf.lo.dep: $(go_debug_elf_files)
2515 debug/elf.lo: $(go_debug_elf_files)
2517 debug/elf/check: $(CHECK_DEPS)
2519 .PHONY: debug/elf/check
2521 @go_include@ debug/gosym.lo.dep
2522 debug/gosym.lo.dep: $(go_debug_gosym_files)
2524 debug/gosym.lo: $(go_debug_gosym_files)
2526 debug/gosym/check: $(CHECK_DEPS)
2528 .PHONY: debug/gosym/check
2530 @go_include@ debug/macho.lo.dep
2531 debug/macho.lo.dep: $(go_debug_macho_files)
2533 debug/macho.lo: $(go_debug_macho_files)
2535 debug/macho/check: $(CHECK_DEPS)
2537 .PHONY: debug/macho/check
2539 @go_include@ debug/pe.lo.dep
2540 debug/pe.lo.dep: $(go_debug_pe_files)
2542 debug/pe.lo: $(go_debug_pe_files)
2544 debug/pe/check: $(CHECK_DEPS)
2546 .PHONY: debug/pe/check
2548 @go_include@ encoding/asn1.lo.dep
2549 encoding/asn1.lo.dep: $(go_encoding_asn1_files)
2551 encoding/asn1.lo: $(go_encoding_asn1_files)
2553 encoding/asn1/check: $(CHECK_DEPS)
2555 .PHONY: encoding/asn1/check
2557 @go_include@ encoding/ascii85.lo.dep
2558 encoding/ascii85.lo.dep: $(go_encoding_ascii85_files)
2560 encoding/ascii85.lo: $(go_encoding_ascii85_files)
2562 encoding/ascii85/check: $(CHECK_DEPS)
2564 .PHONY: encoding/ascii85/check
2566 @go_include@ encoding/base32.lo.dep
2567 encoding/base32.lo.dep: $(go_encoding_base32_files)
2569 encoding/base32.lo: $(go_encoding_base32_files)
2571 encoding/base32/check: $(CHECK_DEPS)
2573 .PHONY: encoding/base32/check
2575 @go_include@ encoding/base64.lo.dep
2576 encoding/base64.lo.dep: $(go_encoding_base64_files)
2578 encoding/base64.lo: $(go_encoding_base64_files)
2580 encoding/base64/check: $(CHECK_DEPS)
2582 .PHONY: encoding/base64/check
2584 @go_include@ encoding/binary.lo.dep
2585 encoding/binary.lo.dep: $(go_encoding_binary_files)
2587 encoding/binary.lo: $(go_encoding_binary_files)
2589 encoding/binary/check: $(CHECK_DEPS)
2591 .PHONY: encoding/binary/check
2593 @go_include@ encoding/csv.lo.dep
2594 encoding/csv.lo.dep: $(go_encoding_csv_files)
2596 encoding/csv.lo: $(go_encoding_csv_files)
2598 encoding/csv/check: $(CHECK_DEPS)
2600 .PHONY: encoding/csv/check
2602 @go_include@ encoding/gob.lo.dep
2603 encoding/gob.lo.dep: $(go_encoding_gob_files)
2605 encoding/gob.lo: $(go_encoding_gob_files)
2607 encoding/gob/check: $(CHECK_DEPS)
2609 .PHONY: encoding/gob/check
2611 @go_include@ encoding/hex.lo.dep
2612 encoding/hex.lo.dep: $(go_encoding_hex_files)
2614 encoding/hex.lo: $(go_encoding_hex_files)
2616 encoding/hex/check: $(CHECK_DEPS)
2618 .PHONY: encoding/hex/check
2620 @go_include@ encoding/json.lo.dep
2621 encoding/json.lo.dep: $(go_encoding_json_files)
2623 encoding/json.lo: $(go_encoding_json_files)
2625 encoding/json/check: $(CHECK_DEPS)
2627 .PHONY: encoding/json/check
2629 @go_include@ encoding/pem.lo.dep
2630 encoding/pem.lo.dep: $(go_encoding_pem_files)
2632 encoding/pem.lo: $(go_encoding_pem_files)
2634 encoding/pem/check: $(CHECK_DEPS)
2636 .PHONY: encoding/pem/check
2638 @go_include@ encoding/xml.lo.dep
2639 encoding/xml.lo.dep: $(go_encoding_xml_files)
2641 encoding/xml.lo: $(go_encoding_xml_files)
2643 encoding/xml/check: $(CHECK_DEPS)
2645 .PHONY: encoding/xml/check
2647 @go_include@ exp/proxy.lo.dep
2648 exp/proxy.lo.dep: $(go_exp_proxy_files)
2650 exp/proxy.lo: $(go_exp_proxy_files)
2652 exp/proxy/check: $(CHECK_DEPS)
2654 .PHONY: exp/proxy/check
2656 @go_include@ exp/terminal.lo.dep
2657 exp/terminal.lo.dep: $(go_exp_terminal_files)
2659 exp/terminal.lo: $(go_exp_terminal_files)
2661 exp/terminal/check: $(CHECK_DEPS)
2663 .PHONY: exp/terminal/check
2665 @go_include@ html/template.lo.dep
2666 html/template.lo.dep: $(go_html_template_files)
2668 html/template.lo: $(go_html_template_files)
2670 html/template/check: $(CHECK_DEPS)
2672 .PHONY: html/template/check
2674 @go_include@ go/ast.lo.dep
2675 go/ast.lo.dep: $(go_go_ast_files)
2677 go/ast.lo: $(go_go_ast_files)
2679 go/ast/check: $(CHECK_DEPS)
2681 .PHONY: go/ast/check
2683 @go_include@ go/build.lo.dep
2684 go/build.lo.dep: $(go_go_build_files)
2686 go/build.lo: $(go_go_build_files)
2688 go/build/check: $(CHECK_DEPS)
2690 .PHONY: go/build/check
2692 syslist.go: s-syslist; @true
2694 echo '// Generated automatically by make.' >syslist.go.tmp
2695 echo 'package build' >>syslist.go.tmp
2696 echo 'const goosList = "$(GOOS)"' >>syslist.go.tmp
2697 echo 'const goarchList = "$(GOARCH)"' >>syslist.go.tmp
2698 $(SHELL) $(srcdir)/../move-if-change syslist.go.tmp syslist.go
2701 @go_include@ go/doc.lo.dep
2702 go/doc.lo.dep: $(go_go_doc_files)
2704 go/doc.lo: $(go_go_doc_files)
2706 go/doc/check: $(CHECK_DEPS)
2708 .PHONY: go/doc/check
2710 @go_include@ go/format.lo.dep
2711 go/format.lo.dep: $(go_go_format_files)
2713 go/format.lo: $(go_go_format_files)
2715 go/format/check: $(CHECK_DEPS)
2717 .PHONY: go/format/check
2719 @go_include@ go/parser.lo.dep
2720 go/parser.lo.dep: $(go_go_parser_files)
2722 go/parser.lo: $(go_go_parser_files)
2724 go/parser/check: $(CHECK_DEPS)
2726 .PHONY: go/parser/check
2728 @go_include@ go/printer.lo.dep
2729 go/printer.lo.dep: $(go_go_printer_files)
2731 go/printer.lo: $(go_go_printer_files)
2733 go/printer/check: $(CHECK_DEPS)
2735 .PHONY: go/printer/check
2737 @go_include@ go/scanner.lo.dep
2738 go/scanner.lo.dep: $(go_go_scanner_files)
2740 go/scanner.lo: $(go_go_scanner_files)
2742 go/scanner/check: $(CHECK_DEPS)
2744 .PHONY: go/scanner/check
2746 @go_include@ go/token.lo.dep
2747 go/token.lo.dep: $(go_go_token_files)
2749 go/token.lo: $(go_go_token_files)
2751 go/token/check: $(CHECK_DEPS)
2753 .PHONY: go/token/check
2755 @go_include@ hash/adler32.lo.dep
2756 hash/adler32.lo.dep: $(go_hash_adler32_files)
2758 hash/adler32.lo: $(go_hash_adler32_files)
2760 hash/adler32/check: $(CHECK_DEPS)
2762 .PHONY: hash/adler32/check
2764 @go_include@ hash/crc32.lo.dep
2765 hash/crc32.lo.dep: $(go_hash_crc32_files)
2767 hash/crc32.lo: $(go_hash_crc32_files)
2769 hash/crc32/check: $(CHECK_DEPS)
2771 .PHONY: hash/crc32/check
2773 @go_include@ hash/crc64.lo.dep
2774 hash/crc64.lo.dep: $(go_hash_crc64_files)
2776 hash/crc64.lo: $(go_hash_crc64_files)
2778 hash/crc64/check: $(CHECK_DEPS)
2780 .PHONY: hash/crc64/check
2782 @go_include@ hash/fnv.lo.dep
2783 hash/fnv.lo.dep: $(go_hash_fnv_files)
2785 hash/fnv.lo: $(go_hash_fnv_files)
2787 hash/fnv/check: $(CHECK_DEPS)
2789 .PHONY: hash/fnv/check
2791 @go_include@ image/color.lo.dep
2792 image/color.lo.dep: $(go_image_color_files)
2794 image/color.lo: $(go_image_color_files)
2796 image/color/check: $(CHECK_DEPS)
2798 .PHONY: image/color/check
2800 @go_include@ image/draw.lo.dep
2801 image/draw.lo.dep: $(go_image_draw_files)
2803 image/draw.lo: $(go_image_draw_files)
2805 image/draw/check: $(CHECK_DEPS)
2807 .PHONY: image/draw/check
2809 @go_include@ image/gif.lo.dep
2810 image/gif.lo.dep: $(go_image_gif_files)
2812 image/gif.lo: $(go_image_gif_files)
2814 image/gif/check: $(CHECK_DEPS)
2816 .PHONY: image/gif/check
2818 @go_include@ image/jpeg.lo.dep
2819 image/jpeg.lo.dep: $(go_image_jpeg_files)
2821 image/jpeg.lo: $(go_image_jpeg_files)
2823 image/jpeg/check: $(CHECK_DEPS)
2825 .PHONY: image/jpeg/check
2827 @go_include@ image/png.lo.dep
2828 image/png.lo.dep: $(go_image_png_files)
2830 image/png.lo: $(go_image_png_files)
2832 image/png/check: $(CHECK_DEPS)
2834 .PHONY: image/png/check
2836 @go_include@ index/suffixarray.lo.dep
2837 index/suffixarray.lo.dep: $(go_index_suffixarray_files)
2839 index/suffixarray.lo: $(go_index_suffixarray_files)
2841 index/suffixarray/check: $(CHECK_DEPS)
2843 .PHONY: index/suffixarray/check
2845 @go_include@ io/ioutil.lo.dep
2846 io/ioutil.lo.dep: $(go_io_ioutil_files)
2848 io/ioutil.lo: $(go_io_ioutil_files)
2850 io/ioutil/check: $(CHECK_DEPS)
2852 .PHONY: io/ioutil/check
2854 @go_include@ log/syslog.lo.dep
2855 log/syslog.lo.dep: $(go_log_syslog_files)
2857 log/syslog.lo: $(go_log_syslog_files)
2859 log/syslog/syslog_c.lo: $(go_syslog_c_files) log/syslog.lo
2860 @$(MKDIR_P) log/syslog
2861 $(LTCOMPILE) -c -o $@ $(srcdir)/go/log/syslog/syslog_c.c
2862 log/syslog/check: $(CHECK_DEPS)
2864 .PHONY: log/syslog/check
2866 @go_include@ math/big.lo.dep
2867 math/big.lo.dep: $(go_math_big_files)
2869 math/big.lo: $(go_math_big_files)
2871 math/big/check: $(CHECK_DEPS)
2873 .PHONY: math/big/check
2875 @go_include@ math/cmplx.lo.dep
2876 math/cmplx.lo.dep: $(go_math_cmplx_files)
2878 math/cmplx.lo: $(go_math_cmplx_files)
2880 math/cmplx/check: $(CHECK_DEPS)
2882 .PHONY: math/cmplx/check
2884 @go_include@ math/rand.lo.dep
2885 math/rand.lo.dep: $(go_math_rand_files)
2887 math/rand.lo: $(go_math_rand_files)
2889 math/rand/check: $(CHECK_DEPS)
2891 .PHONY: math/rand/check
2893 @go_include@ mime/multipart.lo.dep
2894 mime/multipart.lo.dep: $(go_mime_multipart_files)
2896 mime/multipart.lo: $(go_mime_multipart_files)
2898 mime/multipart/check: $(CHECK_DEPS)
2900 .PHONY: mime/multipart/check
2902 @go_include@ net/http.lo.dep
2903 net/http.lo.dep: $(go_net_http_files)
2905 net/http.lo: $(go_net_http_files)
2907 net/http/check: $(CHECK_DEPS)
2909 .PHONY: net/http/check
2911 @go_include@ net/mail.lo.dep
2912 net/mail.lo.dep: $(go_net_mail_files)
2914 net/mail.lo: $(go_net_mail_files)
2916 net/mail/check: $(CHECK_DEPS)
2918 .PHONY: net/mail/check
2920 @go_include@ net/rpc.lo.dep
2921 net/rpc.lo.dep: $(go_net_rpc_files)
2923 net/rpc.lo: $(go_net_rpc_files)
2925 net/rpc/check: $(CHECK_DEPS)
2927 .PHONY: net/rpc/check
2929 @go_include@ net/smtp.lo.dep
2930 net/smtp.lo.dep: $(go_net_smtp_files)
2932 net/smtp.lo: $(go_net_smtp_files)
2934 net/smtp/check: $(CHECK_DEPS)
2936 .PHONY: net/smtp/check
2938 @go_include@ net/url.lo.dep
2939 net/url.lo.dep: $(go_net_url_files)
2941 net/url.lo: $(go_net_url_files)
2943 net/url/check: $(CHECK_DEPS)
2945 .PHONY: net/url/check
2947 @go_include@ net/textproto.lo.dep
2948 net/textproto.lo.dep: $(go_net_textproto_files)
2950 net/textproto.lo: $(go_net_textproto_files)
2952 net/textproto/check: $(CHECK_DEPS)
2954 .PHONY: net/textproto/check
2956 @go_include@ net/http/cgi.lo.dep
2957 net/http/cgi.lo.dep: $(go_net_http_cgi_files)
2959 net/http/cgi.lo: $(go_net_http_cgi_files)
2961 net/http/cgi/check: $(CHECK_DEPS)
2963 .PHONY: net/http/cgi/check
2965 @go_include@ net/http/cookiejar.lo.dep
2966 net/http/cookiejar.lo.dep: $(go_net_http_cookiejar_files)
2968 net/http/cookiejar.lo: $(go_net_http_cookiejar_files)
2970 net/http/cookiejar/check: $(CHECK_DEPS)
2972 .PHONY: net/http/cookiejar/check
2974 @go_include@ net/http/fcgi.lo.dep
2975 net/http/fcgi.lo.dep: $(go_net_http_fcgi_files)
2977 net/http/fcgi.lo: $(go_net_http_fcgi_files)
2979 net/http/fcgi/check: $(CHECK_DEPS)
2981 .PHONY: net/http/fcgi/check
2983 @go_include@ net/http/httptest.lo.dep
2984 net/http/httptest.lo.dep: $(go_net_http_httptest_files)
2986 net/http/httptest.lo: $(go_net_http_httptest_files)
2988 net/http/httptest/check: $(check_deps)
2990 .PHONY: net/http/httptest/check
2992 @go_include@ net/http/httputil.lo.dep
2993 net/http/httputil.lo.dep: $(go_net_http_httputil_files)
2995 net/http/httputil.lo: $(go_net_http_httputil_files)
2997 net/http/httputil/check: $(check_deps)
2999 .PHONY: net/http/httputil/check
3001 @go_include@ net/http/pprof.lo.dep
3002 net/http/pprof.lo.dep: $(go_net_http_pprof_files)
3004 net/http/pprof.lo: $(go_net_http_pprof_files)
3006 net/http/pprof/check: $(CHECK_DEPS)
3008 .PHONY: net/http/pprof/check
3010 @go_include@ net/rpc/jsonrpc.lo.dep
3011 net/rpc/jsonrpc.lo.dep: $(go_net_rpc_jsonrpc_files)
3013 net/rpc/jsonrpc.lo: $(go_net_rpc_jsonrpc_files)
3015 net/rpc/jsonrpc/check: $(CHECK_DEPS)
3017 .PHONY: net/rpc/jsonrpc/check
3019 @go_include@ old/regexp.lo.dep
3020 old/regexp.lo.dep: $(go_old_regexp_files)
3022 old/regexp.lo: $(go_old_regexp_files)
3024 old/regexp/check: $(CHECK_DEPS)
3026 .PHONY: old/regexp/check
3028 @go_include@ old/template.lo.dep
3029 old/template.lo.dep: $(go_old_template_files)
3031 old/template.lo: $(go_old_template_files)
3033 old/template/check: $(CHECK_DEPS)
3035 .PHONY: old/template/check
3037 @go_include@ os/exec.lo.dep
3038 os/exec.lo.dep: $(go_os_exec_files)
3040 os/exec.lo: $(go_os_exec_files)
3042 os/exec/check: $(CHECK_DEPS)
3044 .PHONY: os/exec/check
3046 @go_include@ os/signal.lo.dep
3047 os/signal.lo.dep: $(go_os_signal_files)
3049 os/signal.lo: $(go_os_signal_files)
3051 os/signal/check: $(CHECK_DEPS)
3053 .PHONY: os/signal/check
3055 @go_include@ os/user.lo.dep
3056 os/user.lo.dep: $(go_os_user_files)
3058 os/user.lo: $(go_os_user_files)
3060 os/user/check: $(CHECK_DEPS)
3062 .PHONY: os/user/check
3064 @go_include@ path/filepath.lo.dep
3065 path/filepath.lo.dep: $(go_path_filepath_files)
3067 path/filepath.lo: $(go_path_filepath_files)
3069 path/filepath/check: $(CHECK_DEPS)
3071 .PHONY: path/filepath/check
3073 @go_include@ regexp/syntax.lo.dep
3074 regexp/syntax.lo.dep: $(go_regexp_syntax_files)
3076 regexp/syntax.lo: $(go_regexp_syntax_files)
3078 regexp/syntax/check: $(CHECK_DEPS)
3080 .PHONY: regexp/syntax/check
3082 @go_include@ runtime/debug.lo.dep
3083 runtime/debug.lo.dep: $(go_runtime_debug_files)
3085 runtime/debug.lo: $(go_runtime_debug_files)
3087 runtime/debug/check: $(CHECK_DEPS)
3089 .PHONY: runtime/debug/check
3091 @go_include@ runtime/pprof.lo.dep
3092 runtime/pprof.lo.dep: $(go_runtime_pprof_files)
3094 runtime/pprof.lo: $(go_runtime_pprof_files)
3096 runtime/pprof/check: $(CHECK_DEPS)
3098 .PHONY: runtime/pprof/check
3099 # At least for now, we need -static-libgo for this test, because
3100 # otherwise we can't get the line numbers.
3101 runtime_pprof_check_GOCFLAGS = -static-libgo
3103 @go_include@ sync/atomic.lo.dep
3104 sync/atomic.lo.dep: $(go_sync_atomic_files)
3106 sync/atomic.lo: $(go_sync_atomic_files)
3108 sync/atomic_c.lo: $(go_sync_atomic_c_files) sync/atomic.lo
3109 $(LTCOMPILE) -c -o $@ $(srcdir)/go/sync/atomic/atomic.c
3110 sync/atomic/check: $(CHECK_DEPS)
3112 .PHONY: sync/atomic/check
3114 @go_include@ text/scanner.lo.dep
3115 text/scanner.lo.dep: $(go_text_scanner_files)
3117 text/scanner.lo: $(go_text_scanner_files)
3119 text/scanner/check: $(CHECK_DEPS)
3121 .PHONY: text/scanner/check
3123 @go_include@ text/tabwriter.lo.dep
3124 text/tabwriter.lo.dep: $(go_text_tabwriter_files)
3126 text/tabwriter.lo: $(go_text_tabwriter_files)
3128 text/tabwriter/check: $(CHECK_DEPS)
3130 .PHONY: text/tabwriter/check
3132 @go_include@ text/template.lo.dep
3133 text/template.lo.dep: $(go_text_template_files)
3135 text/template.lo: $(go_text_template_files)
3137 text/template/check: $(CHECK_DEPS)
3139 .PHONY: text/template/check
3141 @go_include@ text/template/parse.lo.dep
3142 text/template/parse.lo.dep: $(go_text_template_parse_files)
3144 text/template/parse.lo: $(go_text_template_parse_files)
3146 text/template/parse/check: $(CHECK_DEPS)
3148 .PHONY: text/template/parse/check
3150 @go_include@ testing/iotest.lo.dep
3151 testing/iotest.lo.dep: $(go_testing_iotest_files)
3153 testing/iotest.lo: $(go_testing_iotest_files)
3155 testing/iotest/check: $(CHECK_DEPS)
3157 .PHONY: testing/iotest/check
3159 @go_include@ testing/quick.lo.dep
3160 testing/quick.lo.dep: $(go_testing_quick_files)
3162 testing/quick.lo: $(go_testing_quick_files)
3164 testing/quick/check: $(CHECK_DEPS)
3166 .PHONY: testing/quick/check
3168 @go_include@ unicode/utf16.lo.dep
3169 unicode/utf16.lo.dep: $(go_unicode_utf16_files)
3171 unicode/utf16.lo: $(go_unicode_utf16_files)
3173 unicode/utf16/check: $(CHECK_DEPS)
3175 .PHONY: unicode/utf16/check
3177 @go_include@ unicode/utf8.lo.dep
3178 unicode/utf8.lo.dep: $(go_unicode_utf8_files)
3180 unicode/utf8.lo: $(go_unicode_utf8_files)
3182 unicode/utf8/check: $(CHECK_DEPS)
3184 .PHONY: unicode/utf8/check
3186 @go_include@ syscall.lo.dep
3187 syscall.lo.dep: $(go_syscall_files)
3189 syscall.lo: $(go_syscall_files)
3191 syscall/errno.lo: go/syscall/errno.c
3193 $(LTCOMPILE) -c -o $@ $<
3194 syscall/signame.lo: go/syscall/signame.c
3196 $(LTCOMPILE) -c -o $@ $<
3197 syscall/wait.lo: go/syscall/wait.c
3199 $(LTCOMPILE) -c -o $@ $<
3200 syscall/check: $(CHECK_DEPS)
3202 .PHONY: syscall/check
3204 # How to build a .gox file from a .lo file.
3206 f=`echo $< | sed -e 's/.lo$$/.o/'`; \
3207 $(OBJCOPY) -j .go_export $$f $@.tmp && mv -f $@.tmp $@
3213 crypto.gox: crypto.lo
3215 errors.gox: errors.lo
3217 expvar.gox: expvar.lo
3243 reflect.gox: reflect-go.lo
3245 regexp.gox: regexp.lo
3247 runtime.gox: runtime-go.lo
3251 strconv.gox: strconv.lo
3253 strings.gox: strings.lo
3257 syscall.gox: syscall.lo
3259 testing.gox: testing.lo
3261 time.gox: time-go.lo
3263 unicode.gox: unicode.lo
3266 archive/tar.gox: archive/tar.lo
3268 archive/zip.gox: archive/zip.lo
3271 compress/bzip2.gox: compress/bzip2.lo
3273 compress/flate.gox: compress/flate.lo
3275 compress/gzip.gox: compress/gzip.lo
3277 compress/lzw.gox: compress/lzw.lo
3279 compress/zlib.gox: compress/zlib.lo
3282 container/heap.gox: container/heap.lo
3284 container/list.gox: container/list.lo
3286 container/ring.gox: container/ring.lo
3289 crypto/aes.gox: crypto/aes.lo
3291 crypto/cipher.gox: crypto/cipher.lo
3293 crypto/des.gox: crypto/des.lo
3295 crypto/dsa.gox: crypto/dsa.lo
3297 crypto/ecdsa.gox: crypto/ecdsa.lo
3299 crypto/elliptic.gox: crypto/elliptic.lo
3301 crypto/hmac.gox: crypto/hmac.lo
3303 crypto/md5.gox: crypto/md5.lo
3305 crypto/rand.gox: crypto/rand.lo
3307 crypto/rc4.gox: crypto/rc4.lo
3309 crypto/rsa.gox: crypto/rsa.lo
3311 crypto/sha1.gox: crypto/sha1.lo
3313 crypto/sha256.gox: crypto/sha256.lo
3315 crypto/sha512.gox: crypto/sha512.lo
3317 crypto/subtle.gox: crypto/subtle.lo
3319 crypto/tls.gox: crypto/tls.lo
3321 crypto/x509.gox: crypto/x509.lo
3324 crypto/x509/pkix.gox: crypto/x509/pkix.lo
3327 database/sql.gox: database/sql.lo
3330 database/sql/driver.gox: database/sql/driver.lo
3333 debug/dwarf.gox: debug/dwarf.lo
3335 debug/elf.gox: debug/elf.lo
3337 debug/gosym.gox: debug/gosym.lo
3339 debug/macho.gox: debug/macho.lo
3341 debug/pe.gox: debug/pe.lo
3344 encoding/ascii85.gox: encoding/ascii85.lo
3346 encoding/asn1.gox: encoding/asn1.lo
3348 encoding/base32.gox: encoding/base32.lo
3350 encoding/base64.gox: encoding/base64.lo
3352 encoding/binary.gox: encoding/binary.lo
3354 encoding/csv.gox: encoding/csv.lo
3356 encoding/gob.gox: encoding/gob.lo
3358 encoding/hex.gox: encoding/hex.lo
3360 encoding/json.gox: encoding/json.lo
3362 encoding/pem.gox: encoding/pem.lo
3364 encoding/xml.gox: encoding/xml.lo
3367 exp/proxy.gox: exp/proxy.lo
3369 exp/terminal.gox: exp/terminal.lo
3372 html/template.gox: html/template.lo
3375 go/ast.gox: go/ast.lo
3377 go/build.gox: go/build.lo
3379 go/doc.gox: go/doc.lo
3381 go/format.gox: go/format.lo
3383 go/parser.gox: go/parser.lo
3385 go/printer.gox: go/printer.lo
3387 go/scanner.gox: go/scanner.lo
3389 go/token.gox: go/token.lo
3392 hash/adler32.gox: hash/adler32.lo
3394 hash/crc32.gox: hash/crc32.lo
3396 hash/crc64.gox: hash/crc64.lo
3398 hash/fnv.gox: hash/fnv.lo
3401 image/color.gox: image/color.lo
3403 image/draw.gox: image/draw.lo
3405 image/gif.gox: image/gif.lo
3407 image/jpeg.gox: image/jpeg.lo
3409 image/png.gox: image/png.lo
3412 index/suffixarray.gox: index/suffixarray.lo
3415 io/ioutil.gox: io/ioutil.lo
3418 log/syslog.gox: log/syslog.lo
3421 math/big.gox: math/big.lo
3423 math/cmplx.gox: math/cmplx.lo
3425 math/rand.gox: math/rand.lo
3428 mime/multipart.gox: mime/multipart.lo
3431 net/http.gox: net/http.lo
3433 net/mail.gox: net/mail.lo
3435 net/rpc.gox: net/rpc.lo
3437 net/smtp.gox: net/smtp.lo
3439 net/textproto.gox: net/textproto.lo
3441 net/url.gox: net/url.lo
3444 net/http/cgi.gox: net/http/cgi.lo
3446 net/http/cookiejar.gox: net/http/cookiejar.lo
3448 net/http/fcgi.gox: net/http/fcgi.lo
3450 net/http/httptest.gox: net/http/httptest.lo
3452 net/http/httputil.gox: net/http/httputil.lo
3454 net/http/pprof.gox: net/http/pprof.lo
3457 net/rpc/jsonrpc.gox: net/rpc/jsonrpc.lo
3460 old/regexp.gox: old/regexp.lo
3462 old/template.gox: old/template.lo
3465 os/exec.gox: os/exec.lo
3467 os/signal.gox: os/signal.lo
3469 os/user.gox: os/user.lo
3472 path/filepath.gox: path/filepath.lo
3475 regexp/syntax.gox: regexp/syntax.lo
3478 runtime/debug.gox: runtime/debug.lo
3480 runtime/pprof.gox: runtime/pprof.lo
3483 sync/atomic.gox: sync/atomic.lo
3486 text/scanner.gox: text/scanner.lo
3488 text/tabwriter.gox: text/tabwriter.lo
3490 text/template.gox: text/template.lo
3492 text/template/parse.gox: text/template/parse.lo
3495 testing/iotest.gox: testing/iotest.lo
3497 testing/quick.gox: testing/quick.lo
3500 unicode/utf16.gox: unicode/utf16.lo
3502 unicode/utf8.gox: unicode/utf8.lo
3533 compress/bzip2/check \
3534 compress/flate/check \
3535 compress/gzip/check \
3536 compress/lzw/check \
3537 compress/zlib/check \
3538 container/heap/check \
3539 container/list/check \
3540 container/ring/check \
3542 crypto/cipher/check \
3545 crypto/ecdsa/check \
3546 crypto/elliptic/check \
3553 crypto/sha256/check \
3554 crypto/sha512/check \
3555 crypto/subtle/check \
3558 database/sql/check \
3559 database/sql/driver/check \
3564 encoding/ascii85/check \
3565 encoding/asn1/check \
3566 encoding/base32/check \
3567 encoding/base64/check \
3568 encoding/binary/check \
3569 encoding/csv/check \
3570 encoding/gob/check \
3571 encoding/hex/check \
3572 encoding/json/check \
3573 encoding/pem/check \
3574 encoding/xml/check \
3576 exp/terminal/check \
3577 html/template/check \
3579 $(go_build_check_omitted_since_it_calls_6g) \
3586 hash/adler32/check \
3594 index/suffixarray/check \
3600 mime/multipart/check \
3602 net/http/cgi/check \
3603 net/http/cookiejar/check \
3604 net/http/fcgi/check \
3605 net/http/httptest/check \
3606 net/http/httputil/check \
3610 net/textproto/check \
3612 net/rpc/jsonrpc/check \
3614 old/template/check \
3618 path/filepath/check \
3619 regexp/syntax/check \
3620 runtime/pprof/check \
3622 text/scanner/check \
3623 text/tabwriter/check \
3624 text/template/check \
3625 text/template/parse/check \
3626 testing/quick/check \
3627 unicode/utf16/check \
3631 check-recursive: check-head
3634 @echo "Test Run By $${USER} on `date`" > libgo.head
3635 @echo "Native configuration is $(host_triplet)" >> libgo.head
3637 @echo " === libgo tests ===" >> libgo.head
3640 check-tail: check-recursive check-multi
3641 @if test "$(USE_DEJAGNU)" = "yes"; then \
3644 lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
3645 for dir in . $(MULTIDIRS); do \
3646 mv ../$${dir}/$${lib}/libgo.sum ../$${dir}/$${lib}/libgo.sum.sep; \
3647 mv ../$${dir}/$${lib}/libgo.log ../$${dir}/$${lib}/libgo.log.sep; \
3649 mv libgo.head libgo.sum; \
3650 cp libgo.sum libgo.log; \
3651 echo "Schedule of variations:" >> libgo.sum; \
3652 for dir in . $(MULTIDIRS); do \
3653 multidir=../$${dir}/$${lib}; \
3654 multivar=`cat $${multidir}/libgo.var`; \
3655 echo " $${multivar}" >> libgo.sum; \
3657 echo >> libgo.sum; \
3658 pass=0; fail=0; untested=0; \
3659 for dir in . $(MULTIDIRS); do \
3660 multidir=../$${dir}/$${lib}; \
3661 multivar=`cat $${multidir}/libgo.var`; \
3662 echo "Running target $${multivar}" >> libgo.sum; \
3663 echo "Running $(srcdir)/libgo.exp ..." >> libgo.sum; \
3664 cat $${multidir}/libgo.sum.sep >> libgo.sum; \
3665 cat $${multidir}/libgo.log.sep >> libgo.log; \
3666 if test -n "${MULTIDIRS}"; then \
3667 echo " === libgo Summary for $${multivar} ===" >> libgo.sum; \
3668 echo >> libgo.sum; \
3670 p=`grep -c PASS $${multidir}/libgo.sum.sep`; \
3671 pass=`expr $$pass + $$p`; \
3672 if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3673 echo "# of expected passes $$p" >> libgo.sum; \
3675 p=`grep -c FAIL $${multidir}/libgo.sum.sep`; \
3676 fail=`expr $$fail + $$p`; \
3677 if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3678 echo "# of unexpected failures $$p" >> libgo.sum; \
3680 p=`grep -c UNTESTED $${multidir}/libgo.sum.sep`; \
3681 untested=`expr $$untested + $$p`; \
3682 if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3683 echo "# of untested testcases $$p" >> libgo.sum; \
3686 echo >> libgo.sum; \
3687 echo " === libgo Summary ===" >> libgo.sum; \
3688 echo >> libgo.sum; \
3689 if test "$$pass" -ne "0"; then \
3690 echo "# of expected passes $$pass" >> libgo.sum; \
3692 if test "$$fail" -ne "0"; then \
3693 echo "# of unexpected failures $$fail" >> libgo.sum; \
3695 if test "$$untested" -ne "0"; then \
3696 echo "# of untested testcases $$untested" >> libgo.sum; \
3698 echo `echo $(GOC) | sed -e 's/ .*//'` `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
3699 echo >> libgo.log; \
3700 echo "runtest completed at `date`" >> libgo.log; \
3701 if test "$$fail" -ne "0"; then \
3709 @rm -f libgo.sum libgo.log libgo.tail
3711 [ -z "$(MULTIFLAGS)" ] || multivar="$${multivar}/$(MULTIFLAGS)"; \
3712 echo "$${multivar}" > libgo.var
3713 @for f in $(TEST_PACKAGES); do \
3714 rm -f $$f-testsum $$f-testlog; \
3716 -@$(MAKE) -k $(TEST_PACKAGES)
3717 @for f in $(TEST_PACKAGES); do \
3718 if test -f $$f-testsum; then \
3719 cat $$f-testsum >> libgo.sum; \
3721 if test -f $$f-testlog; then \
3722 cat $$f-testlog >> libgo.log; \
3727 $(MULTIDO) $(AM_MAKEFLAGS) DO=check-am multi-do # $(MAKE)
3729 MOSTLYCLEAN_FILES = libgo.head libgo.sum.sep libgo.log.sep
3732 find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
3733 find . -name '*.$(OBJEXT)' -print | xargs rm -f
3734 find . -name '*-testsum' -print | xargs rm -f
3735 find . -name '*-testlog' -print | xargs rm -f
3737 CLEANFILES = *.go *.gox goc2c *.c s-version libgo.sum libgo.log
3740 find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
3741 find . -name '*.a' -print | xargs rm -f