1 # Makefile.am -- Go library Makefile.
3 # Copyright 2009, 2010 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 MAINT_CHARSET = latin1
20 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
21 PWD_COMMAND = $${PWDCMD-pwd}
22 STAMP = echo timestamp >
24 toolexecdir = $(glibgo_toolexecdir)
25 toolexeclibdir = $(glibgo_toolexeclibdir)
28 LIBFFIINCS = @LIBFFIINCS@
30 WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
32 # -I/-D flags to pass when compiling.
33 AM_CPPFLAGS = -I $(srcdir)/runtime $(LIBFFIINCS) -pthread
35 ACLOCAL_AMFLAGS = -I ./config -I ../config
37 AM_CFLAGS = -fexceptions -fplan9-extensions $(SPLIT_STACK) $(WARN_CFLAGS) \
39 -I $(srcdir)/../gcc -I $(MULTIBUILDTOP)../../gcc/include
42 AM_LDFLAGS = -XCClinker $(SPLIT_STACK)
48 # Work around what appears to be a GNU make handling MAKEFLAGS
49 # values defined in terms of make variables, as is the case for CC and
50 # friends when we are called from the top level Makefile.
52 "AR_FLAGS=$(AR_FLAGS)" \
53 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
54 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
56 "CXXFLAGS=$(CXXFLAGS)" \
57 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
58 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
59 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
61 "GOCFLAGS=$(GOCFLAGS)" \
62 "INSTALL=$(INSTALL)" \
63 "INSTALL_DATA=$(INSTALL_DATA)" \
64 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
65 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
66 "LDFLAGS=$(LDFLAGS)" \
67 "LIBCFLAGS=$(LIBCFLAGS)" \
68 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
70 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
71 "PICFLAG=$(PICFLAG)" \
72 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
74 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
75 "exec_prefix=$(exec_prefix)" \
76 "infodir=$(infodir)" \
78 "includedir=$(includedir)" \
80 "tooldir=$(tooldir)" \
81 "gxx_include_dir=$(gxx_include_dir)" \
87 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
88 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
89 "DESTDIR=$(DESTDIR)" \
92 # Subdir rules rely on $(FLAGS_TO_PASS)
93 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
95 toolexeclib_LTLIBRARIES = libgo.la
96 toolexeclib_LIBRARIES = libgobegin.a
148 toolexeclibarchivedir = $(toolexeclibdir)/archive
150 toolexeclibarchive_DATA = \
154 toolexeclibcompressdir = $(toolexeclibdir)/compress
156 toolexeclibcompress_DATA = \
161 toolexeclibcontainerdir = $(toolexeclibdir)/container
163 toolexeclibcontainer_DATA = \
169 toolexeclibcryptodir = $(toolexeclibdir)/crypto
171 toolexeclibcrypto_DATA = \
174 crypto/blowfish.gox \
182 crypto/ripemd160.gox \
192 toolexeclibdebugdir = $(toolexeclibdir)/debug
194 toolexeclibdebug_DATA = \
202 toolexeclibencodingdir = $(toolexeclibdir)/encoding
204 toolexeclibencoding_DATA = \
205 encoding/ascii85.gox \
206 encoding/base64.gox \
207 encoding/binary.gox \
212 toolexeclibexpdir = $(toolexeclibdir)/exp
214 toolexeclibexp_DATA = \
219 toolexeclibgodir = $(toolexeclibdir)/go
221 toolexeclibgo_DATA = \
230 toolexeclibhashdir = $(toolexeclibdir)/hash
232 toolexeclibhash_DATA = \
237 toolexeclibhttpdir = $(toolexeclibdir)/http
239 toolexeclibhttp_DATA = \
242 toolexeclibimagedir = $(toolexeclibdir)/image
244 toolexeclibimage_DATA = \
248 toolexeclibindexdir = $(toolexeclibdir)/index
250 toolexeclibindex_DATA = \
251 index/suffixarray.gox
253 toolexeclibiodir = $(toolexeclibdir)/io
255 toolexeclibio_DATA = \
258 toolexeclibmimedir = $(toolexeclibdir)/mime
260 toolexeclibmime_DATA = \
263 toolexeclibnetdir = $(toolexeclibdir)/net
265 toolexeclibnet_DATA = \
269 toolexeclibosdir = $(toolexeclibdir)/os
271 toolexeclibos_DATA = \
274 toolexeclibrpcdir = $(toolexeclibdir)/rpc
276 toolexeclibrpc_DATA = \
279 toolexeclibruntimedir = $(toolexeclibdir)/runtime
281 toolexeclibruntime_DATA = \
284 toolexeclibtestingdir = $(toolexeclibdir)/testing
286 toolexeclibtesting_DATA = \
292 runtime_mem_file = runtime/mem.c
294 runtime_mem_file = runtime/mem_posix_memalign.c
298 rtems_task_variable_add_file = runtime/rtems-task-variable-add.c
300 rtems_task_variable_add_file =
304 runtime/go-append.c \
305 runtime/go-assert.c \
306 runtime/go-assert-interface.c \
307 runtime/go-byte-array-to-string.c \
308 runtime/go-breakpoint.c \
309 runtime/go-caller.c \
310 runtime/go-can-convert-interface.c \
311 runtime/go-chan-cap.c \
312 runtime/go-chan-len.c \
313 runtime/go-check-interface.c \
315 runtime/go-closed.c \
316 runtime/go-construct-map.c \
317 runtime/go-convert-interface.c \
319 runtime/go-deferred-recover.c \
320 runtime/go-eface-compare.c \
321 runtime/go-eface-val-compare.c \
322 runtime/go-getgoroot.c \
324 runtime/go-gomaxprocs.c \
325 runtime/go-int-array-to-string.c \
326 runtime/go-int-to-string.c \
327 runtime/go-interface-compare.c \
328 runtime/go-interface-val-compare.c \
329 runtime/go-lock-os-thread.c \
330 runtime/go-map-delete.c \
331 runtime/go-map-index.c \
332 runtime/go-map-len.c \
333 runtime/go-map-range.c \
334 runtime/go-nanotime.c \
335 runtime/go-new-channel.c \
336 runtime/go-new-map.c \
340 runtime/go-panic-defer.c \
342 runtime/go-rec-big.c \
343 runtime/go-rec-nb-big.c \
344 runtime/go-rec-nb-small.c \
345 runtime/go-rec-small.c \
346 runtime/go-recover.c \
347 runtime/go-reflect.c \
348 runtime/go-reflect-call.c \
349 runtime/go-reflect-chan.c \
350 runtime/go-reflect-map.c \
352 runtime/go-runtime-error.c \
354 runtime/go-select.c \
355 runtime/go-semacquire.c \
356 runtime/go-send-big.c \
357 runtime/go-send-nb-big.c \
358 runtime/go-send-nb-small.c \
359 runtime/go-send-small.c \
360 runtime/go-signal.c \
361 runtime/go-strcmp.c \
362 runtime/go-string-to-byte-array.c \
363 runtime/go-string-to-int-array.c \
364 runtime/go-strplus.c \
365 runtime/go-strslice.c \
366 runtime/go-trampoline.c \
367 runtime/go-type-eface.c \
368 runtime/go-type-error.c \
369 runtime/go-type-identity.c \
370 runtime/go-type-interface.c \
371 runtime/go-type-string.c \
372 runtime/go-typedesc-equal.c \
373 runtime/go-typestring.c \
374 runtime/go-unreflect.c \
375 runtime/go-unsafe-new.c \
376 runtime/go-unsafe-newarray.c \
377 runtime/go-unsafe-pointer.c \
378 runtime/go-unwind.c \
381 $(runtime_mem_file) \
383 runtime/mfixalloc.c \
386 runtime/mheapmap32.c \
387 runtime/mheapmap64.c \
391 $(rtems_task_variable_add_file) \
401 goc2c.$(OBJEXT): runtime/goc2c.c
402 $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
404 goc2c: goc2c.$(OBJEXT)
405 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
407 malloc.c: $(srcdir)/runtime/malloc.goc goc2c
408 ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
411 mprof.c: $(srcdir)/runtime/mprof.goc goc2c
412 ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
415 reflect.c: $(srcdir)/runtime/reflect.goc goc2c
416 ./goc2c --gcc --go-prefix libgo_reflect $< > $@.tmp
419 sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
420 ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
423 %.c: $(srcdir)/runtime/%.goc goc2c
424 ./goc2c --gcc $< > $@.tmp
444 go/bytes/bytes_decl.go
510 go/http/response.go \
513 go/http/transfer.go \
548 go/math/copysign.go \
560 go/math/hypot_port.go \
571 go/math/nextafter.go \
574 go/math/remainder.go \
580 go/math/sqrt_port.go \
587 go/mime/mediatype.go \
591 go_net_fd_os_file = go/net/fd_rtems.go
592 go_net_newpollserver_file = go/net/newpollserver_rtems.go
594 go_net_fd_os_file = go/net/fd_linux.go
595 go_net_newpollserver_file = go/net/newpollserver.go
600 go/net/dnsclient.go \
601 go/net/dnsconfig.go \
603 $(go_net_newpollserver_file) \
605 $(go_net_fd_os_file) \
608 go/net/iprawsock.go \
620 go/netchan/common.go \
621 go/netchan/export.go \
658 go/reflect/deepequal.go \
671 go/runtime/debug.go \
672 go/runtime/error.go \
673 go/runtime/extern.go \
675 go/runtime/softfloat64.go \
711 version.go: s-version; @true
714 echo "package runtime" > version.go.tmp
715 echo 'const defaultGoroot = "$(prefix)"' >> version.go.tmp
716 echo 'const theVersion = "'`$(CC) --version | sed 1q`'"' >> version.go.tmp
717 echo 'const theGoarch = "'$(GOARCH)'"' >> version.go.tmp
718 echo 'const theGoos = "'$(GOOS)'"' >> version.go.tmp
719 $(SHELL) $(srcdir)/../move-if-change version.go.tmp version.go
723 go/scanner/scanner.go
736 go/strconv/decimal.go \
742 go/strings/reader.go \
743 go/strings/strings.go
755 go_tabwriter_files = \
756 go/tabwriter/tabwriter.go
758 go_template_files = \
759 go/template/format.go \
760 go/template/template.go
763 go/testing/benchmark.go \
764 go/testing/testing.go
771 go/time/zoneinfo_unix.go
777 go/unicode/casetables.go \
778 go/unicode/digit.go \
779 go/unicode/letter.go \
789 go_websocket_files = \
790 go/websocket/client.go \
791 go/websocket/server.go \
792 go/websocket/websocket.go
798 go_archive_tar_files = \
799 go/archive/tar/common.go \
800 go/archive/tar/reader.go \
801 go/archive/tar/writer.go
803 go_archive_zip_files = \
804 go/archive/zip/reader.go \
805 go/archive/zip/struct.go
807 go_compress_flate_files = \
808 go/compress/flate/deflate.go \
809 go/compress/flate/huffman_bit_writer.go \
810 go/compress/flate/huffman_code.go \
811 go/compress/flate/inflate.go \
812 go/compress/flate/reverse_bits.go \
813 go/compress/flate/token.go \
814 go/compress/flate/util.go
816 go_compress_gzip_files = \
817 go/compress/gzip/gzip.go \
818 go/compress/gzip/gunzip.go
820 go_compress_zlib_files = \
821 go/compress/zlib/reader.go \
822 go/compress/zlib/writer.go
824 go_container_heap_files = \
825 go/container/heap/heap.go
827 go_container_list_files = \
828 go/container/list/list.go
830 go_container_ring_files = \
831 go/container/ring/ring.go
833 go_container_vector_files = \
834 go/container/vector/defs.go \
835 go/container/vector/intvector.go \
836 go/container/vector/stringvector.go \
837 go/container/vector/vector.go
839 go_crypto_aes_files = \
840 go/crypto/aes/block.go \
841 go/crypto/aes/cipher.go \
842 go/crypto/aes/const.go
843 go_crypto_block_files = \
844 go/crypto/block/cbc.go \
845 go/crypto/block/cfb.go \
846 go/crypto/block/cmac.go \
847 go/crypto/block/cipher.go \
848 go/crypto/block/ctr.go \
849 go/crypto/block/eax.go \
850 go/crypto/block/ecb.go \
851 go/crypto/block/ofb.go \
852 go/crypto/block/xor.go
853 go_crypto_blowfish_files = \
854 go/crypto/blowfish/block.go \
855 go/crypto/blowfish/const.go \
856 go/crypto/blowfish/cipher.go
857 go_crypto_cast5_files = \
858 go/crypto/cast5/cast5.go
859 go_crypto_hmac_files = \
860 go/crypto/hmac/hmac.go
861 go_crypto_md4_files = \
862 go/crypto/md4/md4.go \
863 go/crypto/md4/md4block.go
864 go_crypto_md5_files = \
865 go/crypto/md5/md5.go \
866 go/crypto/md5/md5block.go
867 go_crypto_ocsp_files = \
868 go/crypto/ocsp/ocsp.go
869 go_crypto_rand_files = \
870 go/crypto/rand/rand.go \
871 go/crypto/rand/rand_unix.go
872 go_crypto_rc4_files = \
874 go_crypto_ripemd160_files = \
875 go/crypto/ripemd160/ripemd160.go \
876 go/crypto/ripemd160/ripemd160block.go
877 go_crypto_rsa_files = \
878 go/crypto/rsa/pkcs1v15.go \
880 go_crypto_sha1_files = \
881 go/crypto/sha1/sha1.go \
882 go/crypto/sha1/sha1block.go
883 go_crypto_sha256_files = \
884 go/crypto/sha256/sha256.go \
885 go/crypto/sha256/sha256block.go
886 go_crypto_sha512_files = \
887 go/crypto/sha512/sha512.go \
888 go/crypto/sha512/sha512block.go
889 go_crypto_subtle_files = \
890 go/crypto/subtle/constant_time.go
891 go_crypto_tls_files = \
892 go/crypto/tls/alert.go \
893 go/crypto/tls/ca_set.go \
894 go/crypto/tls/common.go \
895 go/crypto/tls/conn.go \
896 go/crypto/tls/handshake_client.go \
897 go/crypto/tls/handshake_messages.go \
898 go/crypto/tls/handshake_server.go \
899 go/crypto/tls/prf.go \
901 go_crypto_x509_files = \
902 go/crypto/x509/x509.go
903 go_crypto_xtea_files = \
904 go/crypto/xtea/block.go \
905 go/crypto/xtea/cipher.go
907 go_debug_dwarf_files = \
908 go/debug/dwarf/buf.go \
909 go/debug/dwarf/const.go \
910 go/debug/dwarf/entry.go \
911 go/debug/dwarf/open.go \
912 go/debug/dwarf/type.go \
913 go/debug/dwarf/unit.go
914 go_debug_elf_files = \
915 go/debug/elf/elf.go \
917 go_debug_gosym_files = \
918 go/debug/gosym/pclntab.go \
919 go/debug/gosym/symtab.go
920 go_debug_macho_files = \
921 go/debug/macho/file.go \
922 go/debug/macho/macho.go
923 go_debug_pe_files = \
924 go/debug/pe/file.go \
928 proc_file = go/debug/proc/proc_linux.go
930 regs_file = go/debug/proc/regs_linux_386.go
933 regs_file = go/debug/proc/regs_linux_amd64.go
940 proc_file = go/debug/proc/proc_darwin.go
942 regs_file = go/debug/proc/regs_darwin_386.go
945 regs_file = go/debug/proc/regs_darwin_amd64.go
952 proc_file = go/debug/proc/proc_freebsd.go
954 regs_file = go/debug/proc/regs_freebsd_386.go
957 regs_file = go/debug/proc/regs_freebsd_amd64.go
969 go_debug_proc_files = \
970 go/debug/proc/proc.go \
974 go_encoding_ascii85_files = \
975 go/encoding/ascii85/ascii85.go
976 go_encoding_base64_files = \
977 go/encoding/base64/base64.go
978 go_encoding_binary_files = \
979 go/encoding/binary/binary.go
980 go_encoding_git85_files = \
981 go/encoding/git85/git.go
982 go_encoding_hex_files = \
983 go/encoding/hex/hex.go
984 go_encoding_pem_files = \
985 go/encoding/pem/pem.go
987 go_exp_datafmt_files = \
988 go/exp/datafmt/datafmt.go \
989 go/exp/datafmt/parser.go
990 go_exp_draw_files = \
991 go/exp/draw/draw.go \
993 go_exp_eval_files = \
994 go/exp/eval/abort.go \
995 go/exp/eval/bridge.go \
996 go/exp/eval/compiler.go \
997 go/exp/eval/expr.go \
998 go/exp/eval/expr1.go \
999 go/exp/eval/func.go \
1000 go/exp/eval/scope.go \
1001 go/exp/eval/stmt.go \
1002 go/exp/eval/type.go \
1003 go/exp/eval/typec.go \
1004 go/exp/eval/value.go \
1005 go/exp/eval/world.go
1009 go/go/ast/filter.go \
1010 go/go/ast/print.go \
1011 go/go/ast/scope.go \
1014 go/go/doc/comment.go \
1016 go_go_parser_files = \
1017 go/go/parser/interface.go \
1018 go/go/parser/parser.go
1019 go_go_printer_files = \
1020 go/go/printer/nodes.go \
1021 go/go/printer/printer.go
1022 go_go_scanner_files = \
1023 go/go/scanner/errors.go \
1024 go/go/scanner/scanner.go
1025 go_go_token_files = \
1026 go/go/token/token.go
1027 go_go_typechecker_files = \
1028 go/go/typechecker/scope.go \
1029 go/go/typechecker/typechecker.go \
1030 go/go/typechecker/universe.go
1032 go_hash_adler32_files = \
1033 go/hash/adler32/adler32.go
1034 go_hash_crc32_files = \
1035 go/hash/crc32/crc32.go
1036 go_hash_crc64_files = \
1037 go/hash/crc64/crc64.go
1039 go_http_pprof_files = \
1040 go/http/pprof/pprof.go
1042 go_image_jpeg_files = \
1043 go/image/jpeg/huffman.go \
1044 go/image/jpeg/idct.go \
1045 go/image/jpeg/reader.go
1047 go_image_png_files = \
1048 go/image/png/reader.go \
1049 go/image/png/writer.go
1051 go_index_suffixarray_files = \
1052 go/index/suffixarray/suffixarray.go
1054 go_io_ioutil_files = \
1055 go/io/ioutil/ioutil.go \
1056 go/io/ioutil/tempfile.go
1058 go_mime_multipart_files = \
1059 go/mime/multipart/multipart.go
1061 go_net_dict_files = \
1064 go_net_textproto_files = \
1065 go/net/textproto/pipeline.go \
1066 go/net/textproto/reader.go \
1067 go/net/textproto/textproto.go \
1068 go/net/textproto/writer.go
1070 go_os_signal_files = \
1071 go/os/signal/signal.go \
1074 go_rpc_jsonrpc_files = \
1075 go/rpc/jsonrpc/client.go \
1076 go/rpc/jsonrpc/server.go
1078 go_runtime_pprof_files = \
1079 go/runtime/pprof/pprof.go
1081 go_testing_iotest_files = \
1082 go/testing/iotest/logger.go \
1083 go/testing/iotest/reader.go \
1084 go/testing/iotest/writer.go
1085 go_testing_quick_files = \
1086 go/testing/quick/quick.go
1087 go_testing_script_files = \
1088 go/testing/script/script.go
1091 syscall_os_file = syscalls/syscall_linux.go
1093 syscall_arch_file = syscalls/syscall_linux_386.go
1096 syscall_arch_file = syscalls/syscall_linux_amd64.go
1107 syscall_exec_os_file = syscalls/exec_stubs.go
1108 syscall_socket_os_file = syscalls/socket_bsd.go
1109 syscall_socket_epoll_file=
1110 syscall_sysfile_os_file = syscalls/sysfile_rtems.go
1111 syscall_syscall_file = syscalls/syscall_stubs.go
1112 syscall_errstr_file = syscalls/errstr_rtems.go
1113 syscall_errstr_decl_file = syscalls/errstr_decl_rtems.go
1115 syscall_exec_os_file = syscalls/exec.go
1116 syscall_socket_os_file = syscalls/socket_linux.go
1117 syscall_socket_epoll_file = syscalls/socket_epoll.go
1118 syscall_sysfile_os_file = syscalls/sysfile_linux.go
1119 syscall_syscall_file = syscalls/syscall.go
1120 syscall_errstr_file = syscalls/errstr.go
1122 syscall_errstr_decl_file = syscalls/errstr_decl_linux.go
1124 syscall_errstr_decl_file = syscalls/errstr_decl.go
1128 go_syscall_files = \
1129 $(syscall_errstr_file) \
1130 $(syscall_errstr_decl_file) \
1131 syscalls/exec_helpers.go \
1132 $(syscall_exec_os_file) \
1133 syscalls/socket.go \
1134 $(syscall_socket_os_file) \
1135 $(syscall_socket_epoll_file) \
1136 $(syscall_syscall_file) \
1137 syscalls/syscall_unix.go \
1138 syscalls/stringbyte.go \
1139 $(syscall_os_file) \
1140 $(syscall_arch_file) \
1141 syscalls/sysfile_posix.go \
1142 $(syscall_sysfile_os_file) \
1144 go_syscall_c_files = \
1155 expvar/libexpvar.la \
1169 netchan/libnetchan.la \
1174 reflect/libreflect.la \
1175 regexp/libregexp.la \
1177 runtime/libruntime.la \
1178 scanner/libscanner.la \
1181 strconv/libstrconv.la \
1182 strings/libstrings.la \
1184 syslog/libsyslog.la \
1185 tabwriter/libtabwriter.la \
1186 template/libtemplate.la \
1189 unicode/libunicode.la \
1192 websocket/libwebsocket.la \
1196 compress/libflate.la \
1197 compress/libgzip.la \
1198 compress/libzlib.la \
1199 container/libheap.la \
1200 container/liblist.la \
1201 container/libring.la \
1202 container/libvector.la \
1204 crypto/libblock.la \
1205 crypto/libblowfish.la \
1206 crypto/libcast5.la \
1213 crypto/libripemd160.la \
1216 crypto/libsha256.la \
1217 crypto/libsha512.la \
1218 crypto/libsubtle.la \
1228 encoding/libascii85.la \
1229 encoding/libbase64.la \
1230 encoding/libbinary.la \
1231 encoding/libgit85.la \
1232 encoding/libhex.la \
1233 encoding/libpem.la \
1243 go/libtypechecker.la \
1244 hash/libadler32.la \
1250 index/libsuffixarray.la \
1252 mime/libmultipart.la \
1254 net/libtextproto.la \
1257 runtime/libpprof.la \
1258 syscalls/libsyscall.la \
1259 testing/libtesting.la \
1260 testing/libiotest.la \
1261 testing/libquick.la \
1262 testing/libscript.la
1264 libgo_la_SOURCES = $(runtime_files)
1266 libgo_la_LIBADD = $(libgo_go_objs) $(LIBFFI) -lpthread
1268 libgobegin_a_SOURCES = \
1271 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
1273 GOCFLAGS = $(CFLAGS)
1274 AM_GOCFLAGS = $(STRINGOPS_FLAG)
1275 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
1277 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
1278 $(AM_GOCFLAGS) $(GOCFLAGS)
1280 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
1281 $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) \
1286 rm -f `echo $@ | sed -e 's|/lib|/|' -e 's/\.a/.gox/'`; \
1287 test -d $(@D) || $(MKDIR_P) $(@D); \
1289 files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
1290 if $(LTGOCOMPILE) -c -fgo-prefix="libgo_$(@D)" -o $@.$(OBJEXT) $$files; then \
1291 $(AR) rc $@ $@.$(OBJEXT); \
1294 # Build a .la file from a .a file.
1306 @GC="$(GOC) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs -Wl,-R,`${PWD_COMMAND}`/.libs"; \
1308 RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
1309 export RUNTESTFLAGS; \
1313 echo -n "$(@D) " >$@-log 2>&1; \
1314 prefix=`if test "$(@D)" = "regexp"; then echo regexp-test; else dirname $(@D); fi`; \
1315 test "$${prefix}" != "." || prefix="$(@D)"; \
1316 $(srcdir)/testsuite/gotest --dejagnu=$(use_dejagnu) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" >>$@-log 2>&1; \
1321 # Build all packages before checking any.
1322 CHECK_DEPS = libgo.la libgobegin.a \
1323 $(toolexeclib_DATA) \
1324 $(toolexeclibarchive_DATA) \
1325 $(toolexeclibcompress_DATA) \
1326 $(toolexeclibcontainer_DATA) \
1327 $(toolexeclibcrypto_DATA) \
1328 $(toolexeclibdebug_DATA) \
1329 $(toolexeclibencoding_DATA) \
1330 $(toolexeclibexp_DATA) \
1331 $(toolexeclibgo_DATA) \
1332 $(toolexeclibhash_DATA) \
1333 $(toolexeclibhttp_DATA) \
1334 $(toolexeclibimage_DATA) \
1335 $(toolexeclibio_DATA) \
1336 $(toolexeclibos_DATA) \
1337 $(toolexeclibrpc_DATA) \
1338 $(toolexeclibruntime_DATA) \
1339 $(toolexeclibtesting_DATA)
1341 asn1/libasn1.a: $(go_asn1_files) bytes.gox fmt.gox io.gox os.gox reflect.gox \
1342 strconv.gox strings.gox time.gox
1344 asn1/libasn1.la: asn1/libasn1.a
1345 asn1/check: $(CHECK_DEPS)
1349 big/libbig.a: $(go_big_files) fmt.gox rand.gox strings.gox
1351 big/libbig.la: big/libbig.a
1352 big/check: $(CHECK_DEPS)
1356 bufio/libbufio.a: $(go_bufio_files) bytes.gox io.gox os.gox strconv.gox \
1359 bufio/libbufio.la: bufio/libbufio.a
1360 bufio/check: $(CHECK_DEPS)
1364 bytes/libbytes.a: $(go_bytes_files) $(go_bytes_c_files) io.gox os.gox utf8.gox
1365 test -d bytes || $(MKDIR_P) bytes
1366 $(LTGOCOMPILE) -c -o bytes/bytes.$(OBJEXT) -fgo-prefix=libgo_bytes $(srcdir)/go/bytes/buffer.go $(srcdir)/go/bytes/bytes.go $(srcdir)/go/bytes/bytes_decl.go
1367 $(LTCOMPILE) -c -o bytes/index.$(OBJEXT) $(srcdir)/go/bytes/indexbyte.c
1369 $(AR) rc $@ bytes/bytes.$(OBJEXT) bytes/index.$(OBJEXT)
1370 bytes/libbytes.la: bytes/libbytes.a
1371 $(LINK) bytes/bytes.lo bytes/index.lo
1372 bytes/check: $(CHECK_DEPS)
1376 cmath/libcmath.a: $(go_cmath_files) math.gox
1378 cmath/libcmath.la: cmath/libcmath.a
1379 cmath/check: $(CHECK_DEPS)
1383 ebnf/libebnf.a: $(go_ebnf_files) container/vector.gox go/scanner.gox \
1384 go/token.gox os.gox strconv.gox unicode.gox utf8.gox
1386 ebnf/libebnf.la: ebnf/libebnf.a
1387 ebnf/check: $(CHECK_DEPS)
1391 exec/libexec.a: $(go_exec_files) os.gox strings.gox
1393 exec/libexec.la: exec/libexec.a
1394 exec/check: $(CHECK_DEPS)
1398 expvar/libexpvar.a: $(go_expvar_files) bytes.gox fmt.gox http.gox json.gox \
1399 log.gox os.gox runtime.gox strconv.gox sync.gox
1401 expvar/libexpvar.la: expvar/libexpvar.a
1402 expvar/check: $(CHECK_DEPS)
1404 .PHONY: expvar/check
1406 flag/libflag.a: $(go_flag_files) fmt.gox os.gox strconv.gox
1408 flag/libflag.la: flag/libflag.a
1409 flag/check: $(CHECK_DEPS)
1413 fmt/libfmt.a: $(go_fmt_files) bytes.gox io.gox os.gox reflect.gox strconv.gox \
1414 strings.gox unicode.gox utf8.gox
1416 fmt/libfmt.la: fmt/libfmt.a
1417 fmt/check: $(CHECK_DEPS)
1421 gob/libgob.a: $(go_gob_files) bytes.gox fmt.gox io.gox math.gox os.gox \
1422 reflect.gox runtime.gox strings.gox sync.gox unicode.gox
1424 gob/libgob.la: gob/libgob.a
1425 gob/check: $(CHECK_DEPS)
1429 hash/libhash.a: $(go_hash_files) io.gox
1431 hash/libhash.la: hash/libhash.a
1432 hash/check: $(CHECK_DEPS)
1436 html/libhtml.a: $(go_html_files) bytes.gox io.gox os.gox strconv.gox \
1437 strings.gox utf8.gox
1439 html/libhtml.la: html/libhtml.a
1440 html/check: $(CHECK_DEPS)
1444 http/libhttp.a: $(go_http_files) bufio.gox bytes.gox container/list.gox \
1445 container/vector.gox crypto/rand.gox crypto/tls.gox \
1446 encoding/base64.gox fmt.gox io.gox io/ioutil.gox log.gox \
1447 mime.gox mime/multipart.gox net.gox os.gox path.gox sort.gox \
1448 strconv.gox strings.gox sync.gox time.gox utf8.gox
1450 http/libhttp.la: http/libhttp.a
1451 http/check: $(CHECK_DEPS)
1455 image/libimage.a: $(go_image_files) bufio.gox io.gox os.gox strconv.gox
1457 image/libimage.la: image/libimage.a
1458 image/check: $(CHECK_DEPS)
1462 io/libio.a: $(go_io_files) os.gox runtime.gox sync.gox
1464 io/libio.la: io/libio.a
1465 io/check: $(CHECK_DEPS)
1469 json/libjson.a: $(go_json_files) bytes.gox container/vector.gox fmt.gox \
1470 io.gox math.gox os.gox reflect.gox runtime.gox strconv.gox \
1471 strings.gox unicode.gox utf16.gox utf8.gox
1473 json/libjson.la: json/libjson.a
1474 json/check: $(CHECK_DEPS)
1478 log/liblog.a: $(go_log_files) bytes.gox fmt.gox io.gox runtime.gox os.gox \
1481 log/liblog.la: log/liblog.a
1482 log/check: $(CHECK_DEPS)
1486 math/libmath.a: $(go_math_files)
1488 math/libmath.la: math/libmath.a
1489 math/check: $(CHECK_DEPS)
1493 mime/libmime.a: $(go_mime_files) bufio.gox bytes.gox os.gox strings.gox \
1494 sync.gox unicode.gox
1496 mime/libmime.la: mime/libmime.a
1497 mime/check: $(CHECK_DEPS)
1501 net/libnet.a: $(go_net_files) fmt.gox io.gox os.gox reflect.gox strconv.gox \
1502 strings.gox sync.gox syscall.gox
1504 net/libnet.la: net/libnet.a
1505 net/check: $(CHECK_DEPS)
1509 netchan/libnetchan.a: $(go_netchan_files) gob.gox log.gox net.gox os.gox \
1510 reflect.gox sync.gox time.gox
1512 netchan/libnetchan.la: netchan/libnetchan.a
1513 netchan/check: $(CHECK_DEPS)
1515 .PHONY: netchan/check
1517 os/libos.a: $(go_os_files) sync.gox syscall.gox
1519 os/libos.la: os/libos.a
1520 os/check: $(CHECK_DEPS)
1524 patch/libpatch.a: $(go_patch_files) bytes.gox compress/zlib.gox \
1525 crypto/sha1.gox encoding/git85.gox fmt.gox io.gox os.gox \
1526 path.gox strings.gox
1528 patch/libpatch.la: patch/libpatch.a
1529 patch/check: $(CHECK_DEPS)
1533 path/libpath.a: $(go_path_files) io/ioutil.gox os.gox sort.gox strings.gox \
1536 path/libpath.la: path/libpath.a
1537 path/check: $(CHECK_DEPS)
1541 rand/librand.a: $(go_rand_files) math.gox sync.gox
1543 rand/librand.la: rand/librand.a
1544 rand/check: $(CHECK_DEPS)
1548 reflect/libreflect.a: $(go_reflect_files) math.gox runtime.gox strconv.gox \
1551 reflect/libreflect.la: reflect/libreflect.a
1552 reflect/check: $(CHECK_DEPS)
1554 .PHONY: reflect/check
1556 regexp/libregexp.a: $(go_regexp_files) bytes.gox io.gox os.gox strings.gox \
1559 regexp/libregexp.la: regexp/libregexp.a
1560 regexp/check: $(CHECK_DEPS)
1562 .PHONY: regexp/check
1564 rpc/librpc.a: $(go_rpc_files) bufio.gox fmt.gox gob.gox http.gox io.gox \
1565 log.gox net.gox os.gox reflect.gox sort.gox strings.gox \
1566 strconv.gox sync.gox template.gox unicode.gox utf8.gox
1568 rpc/librpc.la: rpc/librpc.a
1569 rpc/check: $(CHECK_DEPS)
1573 runtime/libruntime.a: $(go_runtime_files)
1575 runtime/libruntime.la: runtime/libruntime.a
1576 runtime/check: $(CHECK_DEPS)
1578 .PHONY: runtime/check
1580 scanner/libscanner.a: $(go_scanner_files) bytes.gox fmt.gox io.gox os.gox \
1581 unicode.gox utf8.gox
1583 scanner/libscanner.la: scanner/libscanner.a
1584 scanner/check: $(CHECK_DEPS)
1586 .PHONY: scanner/check
1588 smtp/libsmtp.a: $(go_smtp_files) crypto/tls.gox encoding/base64.gox io.gox \
1589 net.gox net/textproto.gox os.gox strings.gox
1591 smtp/libsmtp.la: smtp/libsmtp.a
1592 smtp/check: $(CHECK_DEPS)
1596 sort/libsort.a: $(go_sort_files)
1598 sort/libsort.la: sort/libsort.a
1599 sort/check: $(CHECK_DEPS)
1603 strconv/libstrconv.a: $(go_strconv_files) bytes.gox math.gox os.gox \
1604 strings.gox unicode.gox utf8.gox
1606 strconv/libstrconv.la: strconv/libstrconv.a
1607 strconv/check: $(CHECK_DEPS)
1609 .PHONY: strconv/check
1611 strings/libstrings.a: $(go_strings_files) os.gox unicode.gox utf8.gox
1613 strings/libstrings.la: strings/libstrings.a
1614 strings/check: $(CHECK_DEPS)
1616 .PHONY: strings/check
1618 sync/libsync.a: $(go_sync_files) $(go_sync_c_files) runtime.gox
1619 test -d sync || $(MKDIR_P) sync
1620 $(LTGOCOMPILE) -c -o sync/mutex.$(OBJEXT) -fgo-prefix=libgo_sync $(srcdir)/go/sync/mutex.go $(srcdir)/go/sync/once.go $(srcdir)/go/sync/rwmutex.go
1621 $(LTCOMPILE) -c -o sync/cas.$(OBJEXT) $(srcdir)/go/sync/cas.c
1623 $(AR) rc $@ sync/mutex.$(OBJEXT) sync/cas.$(OBJEXT)
1624 sync/libsync.la: sync/libsync.a
1625 $(LINK) sync/mutex.lo sync/cas.lo
1626 sync/check: $(CHECK_DEPS)
1630 syslog/libsyslog.a: $(go_syslog_files) fmt.gox log.gox net.gox os.gox
1632 syslog/libsyslog.la: syslog/libsyslog.a
1633 syslog/check: $(CHECK_DEPS)
1635 .PHONY: syslog/check
1637 tabwriter/libtabwriter.a: $(go_tabwriter_files) bytes.gox io.gox os.gox \
1640 tabwriter/libtabwriter.la: tabwriter/libtabwriter.a
1641 tabwriter/check: $(CHECK_DEPS)
1643 .PHONY: tabwriter/check
1645 template/libtemplate.a: $(go_template_files) bytes.gox fmt.gox io.gox os.gox \
1646 reflect.gox runtime.gox strings.gox container/vector.gox
1648 template/libtemplate.la: template/libtemplate.a
1649 template/check: $(CHECK_DEPS)
1651 .PHONY: template/check
1653 testing/libtesting.a: $(go_testing_files) flag.gox fmt.gox os.gox regexp.gox \
1654 runtime.gox time.gox
1656 testing/libtesting.la: testing/libtesting.a
1657 testing/check: $(CHECK_DEPS)
1659 .PHONY: testing/check
1661 time/libtime.a: $(go_time_files) bytes.gox io/ioutil.gox os.gox strconv.gox \
1662 sync.gox syscall.gox
1664 time/libtime.la: time/libtime.a
1665 time/check: $(CHECK_DEPS)
1669 try/libtry.a: $(go_try_files) fmt.gox io.gox os.gox reflect.gox unicode.gox
1671 try/libtry.la: try/libtry.a
1672 try/check: $(CHECK_DEPS)
1676 unicode/libunicode.a: $(go_unicode_files)
1678 unicode/libunicode.la: unicode/libunicode.a
1679 unicode/check: $(CHECK_DEPS)
1681 .PHONY: unicode/check
1683 utf16/libutf16.a: $(go_utf16_files) unicode.gox
1685 utf16/libutf16.la: utf16/libutf16.a
1686 utf16/check: $(CHECK_DEPS)
1690 utf8/libutf8.a: $(go_utf8_files) unicode.gox
1692 utf8/libutf8.la: utf8/libutf8.a
1693 utf8/check: $(CHECK_DEPS)
1697 websocket/libwebsocket.a: $(go_websocket_files) bufio.gox bytes.gox \
1698 container/vector.gox crypto/md5.gox crypto/tls.gox \
1699 encoding/binary.gox fmt.gox http.gox io.gox net.gox os.gox \
1700 rand.gox strings.gox
1702 websocket/libwebsocket.la: websocket/libwebsocket.a
1703 websocket/check: $(CHECK_DEPS)
1705 .PHONY: websocket/check
1707 xml/libxml.a: $(go_xml_files) bufio.gox bytes.gox io.gox os.gox reflect.gox \
1708 strconv.gox strings.gox unicode.gox utf8.gox
1710 xml/libxml.la: xml/libxml.a
1711 xml/check: $(CHECK_DEPS)
1715 archive/libtar.a: $(go_archive_tar_files) bytes.gox io.gox os.gox strconv.gox \
1718 archive/libtar.la: archive/libtar.a
1719 archive/tar/check: $(CHECK_DEPS)
1720 @$(MKDIR_P) archive/tar
1722 .PHONY: archive/tar/check
1724 archive/libzip.a: $(go_archive_zip_files) bufio.gox bytes.gox \
1725 compress/flate.gox hash.gox hash/crc32.gox \
1726 encoding/binary.gox io.gox os.gox
1728 archive/libzip.la: archive/libzip.a
1729 archive/zip/check: $(CHECK_DEPS)
1730 @$(MKDIR_P) archive/zip
1732 .PHONY: archive/zip/check
1734 compress/libflate.a: $(go_compress_flate_files) bufio.gox io.gox math.gox \
1735 os.gox sort.gox strconv.gox
1737 compress/libflate.la: compress/libflate.a
1738 compress/flate/check: $(CHECK_DEPS)
1739 @$(MKDIR_P) compress/flate
1741 .PHONY: compress/flate/check
1743 compress/libgzip.a: $(go_compress_gzip_files) bufio.gox compress/flate.gox \
1744 hash.gox hash/crc32.gox io.gox os.gox
1746 compress/libgzip.la: compress/libgzip.a
1747 compress/gzip/check: $(CHECK_DEPS)
1748 @$(MKDIR_P) compress/gzip
1750 .PHONY: compress/gzip/check
1752 compress/libzlib.a: $(go_compress_zlib_files) bufio.gox compress/flate.gox \
1753 hash.gox hash/adler32.gox io.gox os.gox
1755 compress/libzlib.la: compress/libzlib.a
1756 compress/zlib/check: $(CHECK_DEPS)
1757 @$(MKDIR_P) compress/zlib
1759 .PHONY: compress/zlib/check
1761 container/libheap.a: $(go_container_heap_files) sort.gox
1763 container/libheap.la: container/libheap.a
1764 container/heap/check: $(CHECK_DEPS)
1765 @$(MKDIR_P) container/heap
1767 .PHONY: container/heap/check
1769 container/liblist.a: $(go_container_list_files)
1771 container/liblist.la: container/liblist.a
1772 container/list/check: $(CHECK_DEPS)
1773 @$(MKDIR_P) container/list
1775 .PHONY: container/list/check
1777 container/libring.a: $(go_container_ring_files)
1779 container/libring.la: container/libring.a
1780 container/ring/check: $(CHECK_DEPS)
1781 @$(MKDIR_P) container/ring
1783 .PHONY: container/ring/check
1785 container/libvector.a: $(go_container_vector_files)
1787 container/libvector.la: container/libvector.a
1788 container/vector/check: $(CHECK_DEPS)
1789 @$(MKDIR_P) container/vector
1791 .PHONY: container/vector/check
1793 crypto/libaes.a: $(go_crypto_aes_files) os.gox strconv.gox
1795 crypto/libaes.la: crypto/libaes.a
1796 crypto/aes/check: $(CHECK_DEPS)
1797 @$(MKDIR_P) crypto/aes
1799 .PHONY: crypto/aes/check
1801 crypto/libblock.a: $(go_crypto_block_files) fmt.gox io.gox os.gox strconv.gox
1803 crypto/libblock.la: crypto/libblock.a
1804 crypto/block/check: $(CHECK_DEPS)
1805 @$(MKDIR_P) crypto/block
1807 .PHONY: crypto/block/check
1809 crypto/libblowfish.a: $(go_crypto_blowfish_files) os.gox strconv.gox
1811 crypto/libblowfish.la: crypto/libblowfish.a
1812 crypto/blowfish/check: $(CHECK_DEPS)
1813 @$(MKDIR_P) crypto/blowfish
1815 .PHONY: crypto/blowfish/check
1817 crypto/libcast5.a: $(go_crypto_cast5_files) os.gox
1819 crypto/libcast5.la: crypto/libcast5.a
1820 crypt/cast5/check: $(CHECK_DEPS)
1821 @$(MKDIR_P) crypto/cast5
1823 .PHONY: crypto/cast5/check
1825 crypto/libhmac.a: $(go_crypto_hmac_files) crypto/md5.gox crypto/sha1.gox \
1828 crypto/libhmac.la: crypto/libhmac.a
1829 crypto/hmac/check: $(CHECK_DEPS)
1830 @$(MKDIR_P) crypto/hmac
1832 .PHONY: crypto/hmac/check
1834 crypto/libmd4.a: $(go_crypto_md4_files) hash.gox os.gox
1836 crypto/libmd4.la: crypto/libmd4.a
1837 crypto/md4/check: $(CHECK_DEPS)
1838 @$(MKDIR_P) crypto/md4
1840 .PHONY: crypto/md4/check
1842 crypto/libmd5.a: $(go_crypto_md5_files) hash.gox os.gox
1844 crypto/libmd5.la: crypto/libmd5.a
1845 crypto/md5/check: $(CHECK_DEPS)
1846 @$(MKDIR_P) crypto/md5
1848 .PHONY: crypto/md5/check
1850 crypto/libocsp.a: $(go_crypto_ocsp_files) asn1.gox crypto/rsa.gox \
1851 crypto/sha1.gox crypto/x509.gox os.gox time.gox
1853 crypto/libocsp.la: crypto/libocsp.a
1854 crypto/ocsp/check: $(CHECK_DEPS)
1855 @$(MKDIR_P) crypto/ocsp
1857 .PHONY: crypto/ocsp/check
1859 crypto/librand.a: $(go_crypto_rand_files) crypto/aes.gox io.gox os.gox \
1862 crypto/librand.la: crypto/librand.a
1863 crypto/rand/check: $(CHECK_DEPS)
1864 @$(MKDIR_P) crypto/rand
1866 .PHONY: crypto/rand/check
1868 crypto/librc4.a: $(go_crypto_rc4_files) os.gox strconv.gox
1870 crypto/librc4.la: crypto/librc4.a
1871 crypto/rc4/check: $(CHECK_DEPS)
1872 @$(MKDIR_P) crypto/rc4
1874 .PHONY: crypto/rc4/check
1876 crypto/libripemd160.a: $(go_crypto_ripemd160_files) hash.gox os.gox
1878 crypto/libripemd160.la: crypto/libripemd160.a
1879 crypto/ripemd160/check: $(CHECK_DEPS)
1880 @$(MKDIR_P) crypto/ripemd160
1882 .PHONY: crypto/ripemd160/check
1884 crypto/librsa.a: $(go_crypto_rsa_files) big.gox crypto/sha1.gox \
1885 crypto/subtle.gox encoding/hex.gox hash.gox io.gox os.gox
1887 crypto/librsa.la: crypto/librsa.a
1888 crypto/rsa/check: $(CHECK_DEPS)
1889 @$(MKDIR_P) crypto/rsa
1891 .PHONY: crypto/rsa/check
1893 crypto/libsha1.a: $(go_crypto_sha1_files) hash.gox os.gox
1895 crypto/libsha1.la: crypto/libsha1.a
1896 crypto/sha1/check: $(CHECK_DEPS)
1897 @$(MKDIR_P) crypto/sha1
1899 .PHONY: crypto/sha1/check
1901 crypto/libsha256.a: $(go_crypto_sha256_files) hash.gox os.gox
1903 crypto/libsha256.la: crypto/libsha256.a
1904 crypto/sha256/check: $(CHECK_DEPS)
1905 @$(MKDIR_P) crypto/sha256
1907 .PHONY: crypto/sha256/check
1909 crypto/libsha512.a: $(go_crypto_sha512_files) hash.gox os.gox
1911 crypto/libsha512.la: crypto/libsha512.a
1912 crypto/sha512/check: $(CHECK_DEPS)
1913 @$(MKDIR_P) crypto/sha512
1915 .PHONY: crypto/sha512/check
1917 crypto/libsubtle.a: $(go_crypto_subtle_files)
1919 crypto/libsubtle.la: crypto/libsubtle.a
1920 crypto/subtle/check: $(CHECK_DEPS)
1921 @$(MKDIR_P) crypto/subtle
1923 .PHONY: crypto/subtle/check
1925 crypto/libtls.a: $(go_crypto_tls_files) bufio.gox bytes.gox container/list.gox \
1926 crypto/hmac.gox crypto/md5.gox crypto/rc4.gox crypto/rand.gox \
1927 crypto/rsa.gox crypto/sha1.gox crypto/subtle.gox \
1928 crypto/rsa.gox crypto/x509.gox encoding/pem.gox fmt.gox \
1929 hash.gox io.gox io/ioutil.gox net.gox os.gox strings.gox \
1932 crypto/libtls.la: crypto/libtls.a
1933 crypto/tls/check: $(CHECK_DEPS)
1934 @$(MKDIR_P) crypto/tls
1936 .PHONY: crypto/tls/check
1938 crypto/libx509.a: $(go_crypto_x509_files) asn1.gox big.gox \
1939 container/vector.gox crypto/rsa.gox crypto/sha1.gox hash.gox \
1940 os.gox strings.gox time.gox
1942 crypto/libx509.la: crypto/libx509.a
1943 crypto/x509/check: $(CHECK_DEPS)
1944 @$(MKDIR_P) crypto/x509
1946 .PHONY: crypto/x509/check
1948 crypto/libxtea.a: $(go_crypto_xtea_files) os.gox strconv.gox
1950 crypto/libxtea.la: crypto/libxtea.a
1951 crypto/xtea/check: $(CHECK_DEPS)
1952 @$(MKDIR_P) crypto/xtea
1954 .PHONY: crypto/xtea/check
1956 debug/libdwarf.a: $(go_debug_dwarf_files) encoding/binary.gox os.gox \
1959 debug/libdwarf.la: debug/libdwarf.a
1960 debug/dwarf/check: $(CHECK_DEPS)
1961 @$(MKDIR_P) debug/dwarf
1963 .PHONY: debug/dwarf/check
1965 debug/libelf.a: $(go_debug_elf_files) bytes.gox debug/dwarf.gox \
1966 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
1968 debug/libelf.la: debug/libelf.a
1969 debug/elf/check: $(CHECK_DEPS)
1970 @$(MKDIR_P) debug/elf
1972 .PHONY: debug/elf/check
1974 debug/libgosym.a: $(go_debug_gosym_files) encoding/binary.gox fmt.gox os.gox \
1975 strconv.gox strings.gox
1977 debug/libgosym.la: debug/libgosym.a
1978 debug/gosym/check: $(CHECK_DEPS)
1979 @$(MKDIR_P) debug/gosym
1981 .PHONY: debug/gosym/check
1983 debug/libmacho.a: $(go_debug_macho_files) bytes.gox debug/dwarf.gox \
1984 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
1986 debug/libmacho.la: debug/libmacho.a
1987 debug/macho/check: $(CHECK_DEPS)
1988 @$(MKDIR_P) debug/macho
1990 .PHONY: debug/macho/check
1992 debug/libpe.a: $(go_debug_pe_files) debug/dwarf.gox encoding/binary.gox \
1993 fmt.gox io.gox os.gox strconv.gox
1995 debug/libpe.la: debug/libpe.a
1996 debug/pe/check: $(CHECK_DEPS)
1997 @$(MKDIR_P) debug/pe
1999 .PHONY: debug/pe/check
2001 debug/libproc.a: $(go_debug_proc_files) container/vector.gox fmt.gox \
2002 io/ioutil.gox os.gox runtime.gox strconv.gox strings.gox \
2003 sync.gox syscall.gox
2005 debug/libproc.la: debug/libproc.a
2006 debug/proc/check: $(CHECK_DEPS)
2007 @$(MKDIR_P) debug/proc
2009 .PHONY: debug/proc/check
2011 encoding/libascii85.a: $(go_encoding_ascii85_files) io.gox os.gox strconv.gox
2013 encoding/libascii85.la: encoding/libascii85.a
2014 encoding/ascii85/check: $(CHECK_DEPS)
2015 @$(MKDIR_P) encoding/ascii85
2017 .PHONY: encoding/ascii85/check
2019 encoding/libbase64.a: $(go_encoding_base64_files) io.gox os.gox strconv.gox
2021 encoding/libbase64.la: encoding/libbase64.a
2022 encoding/base64/check: $(CHECK_DEPS)
2023 @$(MKDIR_P) encoding/base64
2025 .PHONY: encoding/base64/check
2027 encoding/libbinary.a: $(go_encoding_binary_files) io.gox math.gox os.gox \
2030 encoding/libbinary.la: encoding/libbinary.a
2031 encoding/binary/check: $(CHECK_DEPS)
2032 @$(MKDIR_P) encoding/binary
2034 .PHONY: encoding/binary/check
2036 encoding/libgit85.a: $(go_encoding_git85_files) bytes.gox io.gox os.gox \
2039 encoding/libgit85.la: encoding/libgit85.a
2040 encoding/git85/check: $(CHECK_DEPS)
2041 @$(MKDIR_P) encoding/git85
2043 .PHONY: encoding/git85/check
2045 encoding/libhex.a: $(go_encoding_hex_files) os.gox strconv.gox
2047 encoding/libhex.la: encoding/libhex.a
2048 encoding/hex/check: $(CHECK_DEPS)
2049 @$(MKDIR_P) encoding/hex
2051 .PHONY: encoding/hex/check
2053 encoding/libpem.a: $(go_encoding_pem_files) bytes.gox encoding/base64.gox
2055 encoding/libpem.la: encoding/libpem.a
2056 encoding/pem/check: $(CHECK_DEPS)
2057 @$(MKDIR_P) encoding/pem
2059 .PHONY: encoding/pem/check
2061 exp/libdatafmt.a: $(go_exp_datafmt_files) bytes.gox container/vector.gox \
2062 fmt.gox go/scanner.gox go/token.gox io.gox os.gox reflect.gox \
2063 runtime.gox strconv.gox strings.gox
2065 exp/libdatafmt.la: exp/libdatafmt.a
2066 exp/datafmt/check: $(CHECK_DEPS)
2067 @$(MKDIR_P) exp/datafmt
2069 .PHONY: exp/datafmt/check
2071 exp/libdraw.a: $(go_exp_draw_files) image.gox os.gox
2073 exp/libdraw.la: exp/libdraw.a
2074 exp/draw/check: $(CHECK_DEPS)
2075 @$(MKDIR_P) exp/draw
2077 .PHONY: exp/draw/check
2079 exp/libeval.a: $(go_exp_eval_files) big.gox go/ast.gox go/parser.gox \
2080 go/scanner.gox go/token.gox fmt.gox log.gox strconv.gox \
2081 strings.gox os.gox reflect.gox runtime.gox sort.gox template.gox
2083 exp/libeval.la: exp/libeval.a
2084 exp/eval/check: $(CHECK_DEPS)
2085 @$(MKDIR_P) exp/eval
2087 .PHONY: exp/eval/check
2089 go/libast.a: $(go_go_ast_files) fmt.gox go/token.gox io.gox os.gox \
2090 reflect.gox unicode.gox utf8.gox
2092 go/libast.la: go/libast.a
2093 go/ast/check: $(CHECK_DEPS)
2096 .PHONY: go/ast/check
2098 go/libdoc.a: $(go_go_doc_files) go/ast.gox go/token.gox io.gox regexp.gox \
2099 sort.gox strings.gox template.gox
2101 go/libdoc.la: go/libdoc.a
2102 go/doc/check: $(CHECK_DEPS)
2105 .PHONY: go/doc/check
2107 go/libparser.a: $(go_go_parser_files) bytes.gox fmt.gox go/ast.gox \
2108 go/scanner.gox go/token.gox io.gox io/ioutil.gox os.gox \
2109 path.gox strings.gox
2111 go/libparser.la: go/libparser.a
2112 go/parser/check: $(CHECK_DEPS)
2113 @$(MKDIR_P) go/parser
2115 .PHONY: go/parser/check
2117 go/libprinter.a: $(go_go_printer_files) bytes.gox fmt.gox go/ast.gox \
2118 go/token.gox io.gox os.gox reflect.gox runtime.gox \
2119 strings.gox tabwriter.gox
2121 go/libprinter.la: go/libprinter.a
2122 go/printer/check: $(CHECK_DEPS)
2123 @$(MKDIR_P) go/printer
2125 .PHONY: go/printer/check
2127 go/libscanner.a: $(go_go_scanner_files) bytes.gox container/vector.gox fmt.gox \
2128 go/token.gox io.gox os.gox sort.gox strconv.gox unicode.gox \
2131 go/libscanner.la: go/libscanner.a
2132 go/scanner/check: $(CHECK_DEPS)
2133 @$(MKDIR_P) go/scanner
2135 .PHONY: go/scanner/check
2137 go/libtoken.a: $(go_go_token_files) fmt.gox strconv.gox
2139 go/libtoken.la: go/libtoken.a
2140 go/token/check: $(CHECK_DEPS)
2141 @$(MKDIR_P) go/token
2143 .PHONY: go/token/check
2145 go/libtypechecker.a: $(go_go_typechecker_files) fmt.gox go/ast.gox \
2146 go/token.gox go/scanner.gox os.gox
2148 go/libtypechecker.la: go/libtypechecker.a
2149 go/typechecker/check: $(CHECK_DEPS)
2150 @$(MKDIR_P) go/typechecker
2152 .PHONY: go/typechecker/check
2154 hash/libadler32.a: $(go_hash_adler32_files) hash.gox os.gox
2156 hash/libadler32.la: hash/libadler32.a
2157 hash/adler32/check: $(CHECK_DEPS)
2158 @$(MKDIR_P) hash/adler32
2160 .PHONY: hash/adler32/check
2162 hash/libcrc32.a: $(go_hash_crc32_files) hash.gox os.gox
2164 hash/libcrc32.la: hash/libcrc32.a
2165 hash/crc32/check: $(CHECK_DEPS)
2166 @$(MKDIR_P) hash/crc32
2168 .PHONY: hash/crc32/check
2170 hash/libcrc64.a: $(go_hash_crc64_files) hash.gox os.gox
2172 hash/libcrc64.la: hash/libcrc64.a
2173 hash/crc64/check: $(CHECK_DEPS)
2174 @$(MKDIR_P) hash/crc64
2176 .PHONY: hash/crc64/check
2178 http/libpprof.a: $(go_http_pprof_files) bufio.gox fmt.gox http.gox os.gox \
2179 runtime.gox runtime/pprof.gox strconv.gox strings.gox
2181 http/libpprof.la: http/libpprof.a
2182 http/pprof/check: $(CHECK_DEPS)
2183 @$(MKDIR_P) http/pprof
2185 .PHONY: http/pprof/check
2187 image/libjpeg.a: $(go_image_jpeg_files) bufio.gox image.gox io.gox os.gox
2189 image/libjpeg.la: image/libjpeg.a
2190 image/jpeg/check: $(CHECK_DEPS)
2191 @$(MKDIR_P) image/jpeg
2193 .PHONY: image/jpeg/check
2195 image/libpng.a: $(go_image_png_files) bufio.gox compress/zlib.gox fmt.gox \
2196 hash.gox hash/crc32.gox image.gox io.gox os.gox strconv.gox
2198 image/libpng.la: image/libpng.a
2199 image/png/check: $(CHECK_DEPS)
2200 @$(MKDIR_P) image/png
2202 .PHONY: image/png/check
2204 index/libsuffixarray.a: $(go_index_suffixarray_files) bytes.gox \
2205 container/vector.gox sort.gox
2207 index/libsuffixarray.la: index/libsuffixarray.a
2208 index/suffixarray/check: $(CHECK_DEPS)
2209 @$(MKDIR_P) index/suffixarray
2211 .PHONY: index/suffixarray/check
2213 io/libioutil.a: $(go_io_ioutil_files) bytes.gox io.gox os.gox sort.gox \
2216 io/libioutil.la: io/libioutil.a
2217 io/ioutil/check: $(CHECK_DEPS)
2218 @$(MKDIR_P) io/ioutil
2220 .PHONY: io/ioutil/check
2222 mime/libmultipart.a: $(go_mime_multipart_files) bufio.gox bytes.gox io.gox \
2223 mime.gox os.gox regexp.gox strings.gox
2225 mime/libmultipart.la: mime/libmultipart.a
2226 mime/multipart/check: $(CHECK_DEPS)
2227 @$(MKDIR_P) mime/multipart
2229 .PHONY: mime/multipart/check
2231 net/libdict.a: $(go_net_dict_files) container/vector.gox net/textproto.gox \
2232 os.gox strconv.gox strings.gox
2234 net/libdict.la: net/libdict.a
2236 net/libtextproto.a: $(go_net_textproto_files) bufio.gox bytes.gox \
2237 container/vector.gox fmt.gox io.gox io/ioutil.gox net.gox \
2238 os.gox strconv.gox sync.gox
2240 net/libtextproto.la: net/libtextproto.a
2241 net/textproto/check: $(CHECK_DEPS)
2242 @$(MKDIR_P) net/textproto
2244 .PHONY: net/textproto/check
2246 os/libsignal.a: $(go_os_signal_files) runtime.gox strconv.gox
2248 os/libsignal.la: os/libsignal.a
2249 os/signal/check: $(CHECK_DEPS)
2250 @$(MKDIR_P) os/signal
2252 .PHONY: os/signal/check
2254 unix.go: $(srcdir)/go/os/signal/mkunix.sh sysinfo.go
2255 $(SHELL) $(srcdir)/go/os/signal/mkunix.sh sysinfo.go > $@.tmp
2258 rpc/libjsonrpc.a: $(go_rpc_jsonrpc_files) fmt.gox io.gox json.gox net.gox \
2259 os.gox rpc.gox sync.gox
2261 rpc/libjsonrpc.la: rpc/libjsonrpc.a
2262 rpc/jsonrpc/check: $(CHECK_DEPS)
2263 @$(MKDIR_P) rpc/jsonrpc
2265 .PHONY: rpc/jsonrpc/check
2267 runtime/libpprof.a: $(go_runtime_pprof_files) bufio.gox fmt.gox io.gox os.gox \
2270 runtime/libpprof.la: runtime/libpprof.a
2271 runtime/pprof/check: $(CHECK_DEPS)
2272 @$(MKDIR_P) runtime/pprof
2274 .PHONY: runtime/pprof/check
2276 testing/libiotest.a: $(go_testing_iotest_files) io.gox log.gox os.gox
2278 testing/libiotest.la: testing/libiotest.a
2279 testing/iotest/check: $(CHECK_DEPS)
2280 @$(MKDIR_P) testing/iotest
2282 .PHONY: testing/iotest/check
2284 testing/libquick.a: $(go_testing_quick_files) flag.gox fmt.gox math.gox \
2285 os.gox rand.gox reflect.gox strings.gox
2287 testing/libquick.la: testing/libquick.a
2288 testing/quick/check: $(CHECK_DEPS)
2289 @$(MKDIR_P) testing/quick
2291 .PHONY: testing/quick/check
2293 testing/libscript.a: $(go_testing_script_files) fmt.gox os.gox rand.gox \
2294 reflect.gox strings.gox
2296 testing/libscript.la: testing/libscript.a
2297 testing/script/check: $(CHECK_DEPS)
2298 @$(MKDIR_P) testing/script
2300 .PHONY: testing/script/check
2302 sysinfo.go: $(srcdir)/mksysinfo.sh config.h
2303 $(SHELL) $(srcdir)/mksysinfo.sh
2304 syscalls/libsyscall.a: $(go_syscall_files) $(go_syscall_c_files) sync.gox
2305 rm -f syscall.gox syscalls/libsyscall.a
2306 test -d syscalls || $(MKDIR_P) syscalls
2307 files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e's/[^ ]*\.c//g'`; \
2308 $(LTGOCOMPILE) -c -fgo-prefix="libgo_syscalls" -o syscalls/syscall.$(OBJEXT) $$files
2309 $(LTCOMPILE) -c -o syscalls/errno.$(OBJEXT) $(srcdir)/syscalls/errno.c
2310 $(AR) rc syscalls/libsyscall.a syscalls/syscall.$(OBJEXT) syscalls/errno.$(OBJEXT)
2311 syscalls/libsyscall.la: syscalls/libsyscall.a
2312 $(LINK) syscalls/syscall.lo syscalls/errno.lo
2314 # How to build a .gox file from a .a file.
2317 rm -f $@.$(OBJEXT); \
2318 $(CC) -r -nostdlib -o $@.$(OBJEXT) -Wl,--whole-archive $<; \
2319 $(OBJCOPY) -j .go_export $@.$(OBJEXT) $@.tmp; \
2323 asn1.gox: asn1/libasn1.a
2325 big.gox: big/libbig.a
2327 bufio.gox: bufio/libbufio.a
2329 bytes.gox: bytes/libbytes.a
2331 cmath.gox: cmath/libcmath.a
2333 ebnf.gox: ebnf/libebnf.a
2335 exec.gox: exec/libexec.a
2337 expvar.gox: expvar/libexpvar.a
2339 flag.gox: flag/libflag.a
2341 fmt.gox: fmt/libfmt.a
2343 gob.gox: gob/libgob.a
2345 hash.gox: hash/libhash.a
2347 html.gox: html/libhtml.a
2349 http.gox: http/libhttp.a
2351 image.gox: image/libimage.a
2355 json.gox: json/libjson.a
2357 log.gox: log/liblog.a
2359 math.gox: math/libmath.a
2361 mime.gox: mime/libmime.a
2363 net.gox: net/libnet.a
2365 netchan.gox: netchan/libnetchan.a
2369 patch.gox: patch/libpatch.a
2371 path.gox: path/libpath.a
2373 rand.gox: rand/librand.a
2375 reflect.gox: reflect/libreflect.a
2377 regexp.gox: regexp/libregexp.a
2379 rpc.gox: rpc/librpc.a
2381 runtime.gox: runtime/libruntime.a
2383 scanner.gox: scanner/libscanner.a
2385 smtp.gox: smtp/libsmtp.a
2387 sort.gox: sort/libsort.a
2389 strconv.gox: strconv/libstrconv.a
2391 strings.gox: strings/libstrings.a
2393 sync.gox: sync/libsync.a
2395 syslog.gox: syslog/libsyslog.a
2397 syscall.gox: syscalls/libsyscall.a
2399 tabwriter.gox: tabwriter/libtabwriter.a
2401 template.gox: template/libtemplate.a
2403 testing.gox: testing/libtesting.a
2405 time.gox: time/libtime.a
2407 try.gox: try/libtry.a
2409 unicode.gox: unicode/libunicode.a
2411 utf16.gox: utf16/libutf16.a
2413 utf8.gox: utf8/libutf8.a
2415 websocket.gox: websocket/libwebsocket.a
2417 xml.gox: xml/libxml.a
2420 archive/tar.gox: archive/libtar.a
2422 archive/zip.gox: archive/libzip.a
2425 compress/flate.gox: compress/libflate.a
2427 compress/gzip.gox: compress/libgzip.a
2429 compress/zlib.gox: compress/libzlib.a
2432 container/heap.gox: container/libheap.a
2434 container/list.gox: container/liblist.a
2436 container/ring.gox: container/libring.a
2438 container/vector.gox: container/libvector.a
2441 crypto/aes.gox: crypto/libaes.a
2443 crypto/block.gox: crypto/libblock.a
2445 crypto/blowfish.gox: crypto/libblowfish.a
2447 crypto/cast5.gox: crypto/libcast5.a
2449 crypto/hmac.gox: crypto/libhmac.a
2451 crypto/md4.gox: crypto/libmd4.a
2453 crypto/md5.gox: crypto/libmd5.a
2455 crypto/ocsp.gox: crypto/libocsp.a
2457 crypto/rand.gox: crypto/librand.a
2459 crypto/rc4.gox: crypto/librc4.a
2461 crypto/ripemd160.gox: crypto/libripemd160.a
2463 crypto/rsa.gox: crypto/librsa.a
2465 crypto/sha1.gox: crypto/libsha1.a
2467 crypto/sha256.gox: crypto/libsha256.a
2469 crypto/sha512.gox: crypto/libsha512.a
2471 crypto/subtle.gox: crypto/libsubtle.a
2473 crypto/tls.gox: crypto/libtls.a
2475 crypto/x509.gox: crypto/libx509.a
2477 crypto/xtea.gox: crypto/libxtea.a
2480 debug/dwarf.gox: debug/libdwarf.a
2482 debug/elf.gox: debug/libelf.a
2484 debug/gosym.gox: debug/libgosym.a
2486 debug/macho.gox: debug/libmacho.a
2488 debug/pe.gox: debug/libpe.a
2490 debug/proc.gox: debug/libproc.a
2493 encoding/ascii85.gox: encoding/libascii85.a
2495 encoding/base64.gox: encoding/libbase64.a
2497 encoding/binary.gox: encoding/libbinary.a
2499 encoding/git85.gox: encoding/libgit85.a
2501 encoding/hex.gox: encoding/libhex.a
2503 encoding/pem.gox: encoding/libpem.a
2506 exp/datafmt.gox: exp/libdatafmt.a
2508 exp/draw.gox: exp/libdraw.a
2510 exp/eval.gox: exp/libeval.a
2513 go/ast.gox: go/libast.a
2515 go/doc.gox: go/libdoc.a
2517 go/parser.gox: go/libparser.a
2519 go/printer.gox: go/libprinter.a
2521 go/scanner.gox: go/libscanner.a
2523 go/token.gox: go/libtoken.a
2525 go/typechecker.gox: go/libtypechecker.a
2528 hash/adler32.gox: hash/libadler32.a
2530 hash/crc32.gox: hash/libcrc32.a
2532 hash/crc64.gox: hash/libcrc64.a
2535 http/pprof.gox: http/libpprof.a
2538 image/jpeg.gox: image/libjpeg.a
2540 image/png.gox: image/libpng.a
2543 index/suffixarray.gox: index/libsuffixarray.a
2546 io/ioutil.gox: io/libioutil.a
2549 mime/multipart.gox: mime/libmultipart.a
2552 net/dict.gox: net/libdict.a
2554 net/textproto.gox: net/libtextproto.a
2557 os/signal.gox: os/libsignal.a
2560 rpc/jsonrpc.gox: rpc/libjsonrpc.a
2563 runtime/pprof.gox: runtime/libpprof.a
2566 testing/iotest.gox: testing/libiotest.a
2568 testing/quick.gox: testing/libquick.a
2570 testing/script.gox: testing/libscript.a
2620 compress/flate/check \
2621 compress/gzip/check \
2622 compress/zlib/check \
2623 container/heap/check \
2624 container/list/check \
2625 container/ring/check \
2626 container/vector/check \
2628 crypto/block/check \
2629 crypto/blowfish/check \
2630 crypto/cast5/check \
2637 crypto/ripemd160/check \
2640 crypto/sha256/check \
2641 crypto/sha512/check \
2642 crypto/subtle/check \
2650 encoding/ascii85/check \
2651 encoding/base64/check \
2652 encoding/binary/check \
2653 encoding/git85/check \
2654 encoding/hex/check \
2655 encoding/pem/check \
2662 go/typechecker/check \
2663 hash/adler32/check \
2667 index/suffixarray/check \
2669 mime/multipart/check \
2670 net/textproto/check \
2673 testing/quick/check \
2674 testing/script/check
2676 check-recursive: $(TEST_PACKAGES)
2679 find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
2680 find . -name '*.$(OBJEXT)' -print | xargs rm -f
2683 find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
2684 find . -name '*.a' -print | xargs rm -f
2686 CLEANFILES = *.go *.gox goc2c *.c s-version