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 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)
30 LIBFFIINCS = @LIBFFIINCS@
32 WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
34 # -I/-D flags to pass when compiling.
35 AM_CPPFLAGS = -I $(srcdir)/runtime $(LIBFFIINCS) $(PTHREAD_CFLAGS)
37 ACLOCAL_AMFLAGS = -I ./config -I ../config
39 AM_CFLAGS = -fexceptions -fplan9-extensions $(SPLIT_STACK) $(WARN_CFLAGS) \
41 -I $(srcdir)/../gcc -I $(MULTIBUILDTOP)../../gcc/include
44 AM_LDFLAGS = -XCClinker $(SPLIT_STACK)
50 # Work around what appears to be a GNU make handling MAKEFLAGS
51 # values defined in terms of make variables, as is the case for CC and
52 # friends when we are called from the top level Makefile.
54 "AR_FLAGS=$(AR_FLAGS)" \
55 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
56 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
58 "CXXFLAGS=$(CXXFLAGS)" \
59 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
60 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
61 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
63 "GOCFLAGS=$(GOCFLAGS)" \
64 "INSTALL=$(INSTALL)" \
65 "INSTALL_DATA=$(INSTALL_DATA)" \
66 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
67 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
68 "LDFLAGS=$(LDFLAGS)" \
69 "LIBCFLAGS=$(LIBCFLAGS)" \
70 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
72 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
73 "PICFLAG=$(PICFLAG)" \
74 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
76 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
77 "exec_prefix=$(exec_prefix)" \
78 "infodir=$(infodir)" \
80 "includedir=$(includedir)" \
82 "tooldir=$(tooldir)" \
83 "gxx_include_dir=$(gxx_include_dir)" \
89 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
90 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
91 "DESTDIR=$(DESTDIR)" \
94 # Subdir rules rely on $(FLAGS_TO_PASS)
95 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
97 toolexeclib_LTLIBRARIES = libgo.la
98 toolexeclib_LIBRARIES = libgobegin.a
100 toolexeclibgodir = $(toolexeclibdir)/go/$(gcc_version)/$(target_alias)
102 toolexeclibgo_DATA = \
152 toolexeclibgoarchivedir = $(toolexeclibgodir)/archive
154 toolexeclibgoarchive_DATA = \
158 toolexeclibgocompressdir = $(toolexeclibgodir)/compress
160 toolexeclibgocompress_DATA = \
165 toolexeclibgocontainerdir = $(toolexeclibgodir)/container
167 toolexeclibgocontainer_DATA = \
173 toolexeclibgocryptodir = $(toolexeclibgodir)/crypto
175 toolexeclibgocrypto_DATA = \
178 crypto/blowfish.gox \
186 crypto/ripemd160.gox \
196 toolexeclibgodebugdir = $(toolexeclibgodir)/debug
198 toolexeclibgodebug_DATA = \
206 toolexeclibgoencodingdir = $(toolexeclibgodir)/encoding
208 toolexeclibgoencoding_DATA = \
209 encoding/ascii85.gox \
210 encoding/base64.gox \
211 encoding/binary.gox \
216 toolexeclibgoexpdir = $(toolexeclibgodir)/exp
218 toolexeclibgoexp_DATA = \
223 toolexeclibgogodir = $(toolexeclibgodir)/go
225 toolexeclibgogo_DATA = \
234 toolexeclibgohashdir = $(toolexeclibgodir)/hash
236 toolexeclibgohash_DATA = \
241 toolexeclibgohttpdir = $(toolexeclibgodir)/http
243 toolexeclibgohttp_DATA = \
246 toolexeclibgoimagedir = $(toolexeclibgodir)/image
248 toolexeclibgoimage_DATA = \
252 toolexeclibgoindexdir = $(toolexeclibgodir)/index
254 toolexeclibgoindex_DATA = \
255 index/suffixarray.gox
257 toolexeclibgoiodir = $(toolexeclibgodir)/io
259 toolexeclibgoio_DATA = \
262 toolexeclibgomimedir = $(toolexeclibgodir)/mime
264 toolexeclibgomime_DATA = \
267 toolexeclibgonetdir = $(toolexeclibgodir)/net
269 toolexeclibgonet_DATA = \
273 toolexeclibgoosdir = $(toolexeclibgodir)/os
275 toolexeclibgoos_DATA = \
278 toolexeclibgorpcdir = $(toolexeclibgodir)/rpc
280 toolexeclibgorpc_DATA = \
283 toolexeclibgoruntimedir = $(toolexeclibgodir)/runtime
285 toolexeclibgoruntime_DATA = \
288 toolexeclibgotestingdir = $(toolexeclibgodir)/testing
290 toolexeclibgotesting_DATA = \
296 runtime_mem_file = runtime/mem.c
298 runtime_mem_file = runtime/mem_posix_memalign.c
302 rtems_task_variable_add_file = runtime/rtems-task-variable-add.c
304 rtems_task_variable_add_file =
308 runtime/go-append.c \
309 runtime/go-assert.c \
310 runtime/go-assert-interface.c \
311 runtime/go-byte-array-to-string.c \
312 runtime/go-breakpoint.c \
313 runtime/go-caller.c \
314 runtime/go-can-convert-interface.c \
315 runtime/go-chan-cap.c \
316 runtime/go-chan-len.c \
317 runtime/go-check-interface.c \
319 runtime/go-closed.c \
320 runtime/go-construct-map.c \
321 runtime/go-convert-interface.c \
324 runtime/go-deferred-recover.c \
325 runtime/go-eface-compare.c \
326 runtime/go-eface-val-compare.c \
327 runtime/go-getgoroot.c \
329 runtime/go-gomaxprocs.c \
330 runtime/go-int-array-to-string.c \
331 runtime/go-int-to-string.c \
332 runtime/go-interface-compare.c \
333 runtime/go-interface-val-compare.c \
334 runtime/go-lock-os-thread.c \
335 runtime/go-map-delete.c \
336 runtime/go-map-index.c \
337 runtime/go-map-len.c \
338 runtime/go-map-range.c \
339 runtime/go-nanotime.c \
340 runtime/go-new-channel.c \
341 runtime/go-new-map.c \
345 runtime/go-panic-defer.c \
347 runtime/go-rec-big.c \
348 runtime/go-rec-nb-big.c \
349 runtime/go-rec-nb-small.c \
350 runtime/go-rec-small.c \
351 runtime/go-recover.c \
352 runtime/go-reflect.c \
353 runtime/go-reflect-call.c \
354 runtime/go-reflect-chan.c \
355 runtime/go-reflect-map.c \
357 runtime/go-runtime-error.c \
359 runtime/go-select.c \
360 runtime/go-semacquire.c \
361 runtime/go-send-big.c \
362 runtime/go-send-nb-big.c \
363 runtime/go-send-nb-small.c \
364 runtime/go-send-small.c \
365 runtime/go-signal.c \
366 runtime/go-strcmp.c \
367 runtime/go-string-to-byte-array.c \
368 runtime/go-string-to-int-array.c \
369 runtime/go-strplus.c \
370 runtime/go-strslice.c \
371 runtime/go-trampoline.c \
372 runtime/go-type-eface.c \
373 runtime/go-type-error.c \
374 runtime/go-type-identity.c \
375 runtime/go-type-interface.c \
376 runtime/go-type-string.c \
377 runtime/go-typedesc-equal.c \
378 runtime/go-typestring.c \
379 runtime/go-unreflect.c \
380 runtime/go-unsafe-new.c \
381 runtime/go-unsafe-newarray.c \
382 runtime/go-unsafe-pointer.c \
383 runtime/go-unwind.c \
386 $(runtime_mem_file) \
388 runtime/mfixalloc.c \
391 runtime/mheapmap32.c \
392 runtime/mheapmap64.c \
396 $(rtems_task_variable_add_file) \
406 goc2c.$(OBJEXT): runtime/goc2c.c
407 $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
409 goc2c: goc2c.$(OBJEXT)
410 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
412 malloc.c: $(srcdir)/runtime/malloc.goc goc2c
413 ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
416 mprof.c: $(srcdir)/runtime/mprof.goc goc2c
417 ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
420 reflect.c: $(srcdir)/runtime/reflect.goc goc2c
421 ./goc2c --gcc --go-prefix libgo_reflect $< > $@.tmp
424 sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
425 ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
428 %.c: $(srcdir)/runtime/%.goc goc2c
429 ./goc2c --gcc $< > $@.tmp
449 go/bytes/bytes_decl.go
515 go/http/response.go \
518 go/http/transfer.go \
553 go/math/copysign.go \
565 go/math/hypot_port.go \
576 go/math/nextafter.go \
579 go/math/remainder.go \
585 go/math/sqrt_port.go \
592 go/mime/mediatype.go \
596 go_net_fd_os_file = go/net/fd_rtems.go
597 go_net_newpollserver_file = go/net/newpollserver_rtems.go
599 go_net_fd_os_file = go/net/fd_linux.go
600 go_net_newpollserver_file = go/net/newpollserver.go
605 go/net/dnsclient.go \
606 go/net/dnsconfig.go \
608 $(go_net_newpollserver_file) \
610 $(go_net_fd_os_file) \
613 go/net/iprawsock.go \
625 go/netchan/common.go \
626 go/netchan/export.go \
663 go/reflect/deepequal.go \
676 go/runtime/debug.go \
677 go/runtime/error.go \
678 go/runtime/extern.go \
680 go/runtime/softfloat64.go \
716 version.go: s-version; @true
719 echo "package runtime" > version.go.tmp
720 echo 'const defaultGoroot = "$(prefix)"' >> version.go.tmp
721 echo 'const theVersion = "'`$(CC) --version | sed 1q`'"' >> version.go.tmp
722 echo 'const theGoarch = "'$(GOARCH)'"' >> version.go.tmp
723 echo 'const theGoos = "'$(GOOS)'"' >> version.go.tmp
724 $(SHELL) $(srcdir)/../move-if-change version.go.tmp version.go
728 go/scanner/scanner.go
741 go/strconv/decimal.go \
747 go/strings/reader.go \
748 go/strings/strings.go
760 go_tabwriter_files = \
761 go/tabwriter/tabwriter.go
763 go_template_files = \
764 go/template/format.go \
765 go/template/template.go
768 go/testing/benchmark.go \
769 go/testing/testing.go
776 go/time/zoneinfo_unix.go
782 go/unicode/casetables.go \
783 go/unicode/digit.go \
784 go/unicode/letter.go \
794 go_websocket_files = \
795 go/websocket/client.go \
796 go/websocket/server.go \
797 go/websocket/websocket.go
803 go_archive_tar_files = \
804 go/archive/tar/common.go \
805 go/archive/tar/reader.go \
806 go/archive/tar/writer.go
808 go_archive_zip_files = \
809 go/archive/zip/reader.go \
810 go/archive/zip/struct.go
812 go_compress_flate_files = \
813 go/compress/flate/deflate.go \
814 go/compress/flate/huffman_bit_writer.go \
815 go/compress/flate/huffman_code.go \
816 go/compress/flate/inflate.go \
817 go/compress/flate/reverse_bits.go \
818 go/compress/flate/token.go \
819 go/compress/flate/util.go
821 go_compress_gzip_files = \
822 go/compress/gzip/gzip.go \
823 go/compress/gzip/gunzip.go
825 go_compress_zlib_files = \
826 go/compress/zlib/reader.go \
827 go/compress/zlib/writer.go
829 go_container_heap_files = \
830 go/container/heap/heap.go
832 go_container_list_files = \
833 go/container/list/list.go
835 go_container_ring_files = \
836 go/container/ring/ring.go
838 go_container_vector_files = \
839 go/container/vector/defs.go \
840 go/container/vector/intvector.go \
841 go/container/vector/stringvector.go \
842 go/container/vector/vector.go
844 go_crypto_aes_files = \
845 go/crypto/aes/block.go \
846 go/crypto/aes/cipher.go \
847 go/crypto/aes/const.go
848 go_crypto_block_files = \
849 go/crypto/block/cbc.go \
850 go/crypto/block/cfb.go \
851 go/crypto/block/cmac.go \
852 go/crypto/block/cipher.go \
853 go/crypto/block/ctr.go \
854 go/crypto/block/eax.go \
855 go/crypto/block/ecb.go \
856 go/crypto/block/ofb.go \
857 go/crypto/block/xor.go
858 go_crypto_blowfish_files = \
859 go/crypto/blowfish/block.go \
860 go/crypto/blowfish/const.go \
861 go/crypto/blowfish/cipher.go
862 go_crypto_cast5_files = \
863 go/crypto/cast5/cast5.go
864 go_crypto_hmac_files = \
865 go/crypto/hmac/hmac.go
866 go_crypto_md4_files = \
867 go/crypto/md4/md4.go \
868 go/crypto/md4/md4block.go
869 go_crypto_md5_files = \
870 go/crypto/md5/md5.go \
871 go/crypto/md5/md5block.go
872 go_crypto_ocsp_files = \
873 go/crypto/ocsp/ocsp.go
874 go_crypto_rand_files = \
875 go/crypto/rand/rand.go \
876 go/crypto/rand/rand_unix.go
877 go_crypto_rc4_files = \
879 go_crypto_ripemd160_files = \
880 go/crypto/ripemd160/ripemd160.go \
881 go/crypto/ripemd160/ripemd160block.go
882 go_crypto_rsa_files = \
883 go/crypto/rsa/pkcs1v15.go \
885 go_crypto_sha1_files = \
886 go/crypto/sha1/sha1.go \
887 go/crypto/sha1/sha1block.go
888 go_crypto_sha256_files = \
889 go/crypto/sha256/sha256.go \
890 go/crypto/sha256/sha256block.go
891 go_crypto_sha512_files = \
892 go/crypto/sha512/sha512.go \
893 go/crypto/sha512/sha512block.go
894 go_crypto_subtle_files = \
895 go/crypto/subtle/constant_time.go
896 go_crypto_tls_files = \
897 go/crypto/tls/alert.go \
898 go/crypto/tls/ca_set.go \
899 go/crypto/tls/common.go \
900 go/crypto/tls/conn.go \
901 go/crypto/tls/handshake_client.go \
902 go/crypto/tls/handshake_messages.go \
903 go/crypto/tls/handshake_server.go \
904 go/crypto/tls/prf.go \
906 go_crypto_x509_files = \
907 go/crypto/x509/x509.go
908 go_crypto_xtea_files = \
909 go/crypto/xtea/block.go \
910 go/crypto/xtea/cipher.go
912 go_debug_dwarf_files = \
913 go/debug/dwarf/buf.go \
914 go/debug/dwarf/const.go \
915 go/debug/dwarf/entry.go \
916 go/debug/dwarf/open.go \
917 go/debug/dwarf/type.go \
918 go/debug/dwarf/unit.go
919 go_debug_elf_files = \
920 go/debug/elf/elf.go \
922 go_debug_gosym_files = \
923 go/debug/gosym/pclntab.go \
924 go/debug/gosym/symtab.go
925 go_debug_macho_files = \
926 go/debug/macho/file.go \
927 go/debug/macho/macho.go
928 go_debug_pe_files = \
929 go/debug/pe/file.go \
933 proc_file = go/debug/proc/proc_linux.go
935 regs_file = go/debug/proc/regs_linux_386.go
938 regs_file = go/debug/proc/regs_linux_amd64.go
945 proc_file = go/debug/proc/proc_darwin.go
947 regs_file = go/debug/proc/regs_darwin_386.go
950 regs_file = go/debug/proc/regs_darwin_amd64.go
957 proc_file = go/debug/proc/proc_freebsd.go
959 regs_file = go/debug/proc/regs_freebsd_386.go
962 regs_file = go/debug/proc/regs_freebsd_amd64.go
974 go_debug_proc_files = \
975 go/debug/proc/proc.go \
979 go_encoding_ascii85_files = \
980 go/encoding/ascii85/ascii85.go
981 go_encoding_base64_files = \
982 go/encoding/base64/base64.go
983 go_encoding_binary_files = \
984 go/encoding/binary/binary.go
985 go_encoding_git85_files = \
986 go/encoding/git85/git.go
987 go_encoding_hex_files = \
988 go/encoding/hex/hex.go
989 go_encoding_pem_files = \
990 go/encoding/pem/pem.go
992 go_exp_datafmt_files = \
993 go/exp/datafmt/datafmt.go \
994 go/exp/datafmt/parser.go
995 go_exp_draw_files = \
996 go/exp/draw/draw.go \
998 go_exp_eval_files = \
999 go/exp/eval/abort.go \
1000 go/exp/eval/bridge.go \
1001 go/exp/eval/compiler.go \
1002 go/exp/eval/expr.go \
1003 go/exp/eval/expr1.go \
1004 go/exp/eval/func.go \
1005 go/exp/eval/scope.go \
1006 go/exp/eval/stmt.go \
1007 go/exp/eval/type.go \
1008 go/exp/eval/typec.go \
1009 go/exp/eval/value.go \
1010 go/exp/eval/world.go
1014 go/go/ast/filter.go \
1015 go/go/ast/print.go \
1016 go/go/ast/scope.go \
1019 go/go/doc/comment.go \
1021 go_go_parser_files = \
1022 go/go/parser/interface.go \
1023 go/go/parser/parser.go
1024 go_go_printer_files = \
1025 go/go/printer/nodes.go \
1026 go/go/printer/printer.go
1027 go_go_scanner_files = \
1028 go/go/scanner/errors.go \
1029 go/go/scanner/scanner.go
1030 go_go_token_files = \
1031 go/go/token/token.go
1032 go_go_typechecker_files = \
1033 go/go/typechecker/scope.go \
1034 go/go/typechecker/typechecker.go \
1035 go/go/typechecker/universe.go
1037 go_hash_adler32_files = \
1038 go/hash/adler32/adler32.go
1039 go_hash_crc32_files = \
1040 go/hash/crc32/crc32.go
1041 go_hash_crc64_files = \
1042 go/hash/crc64/crc64.go
1044 go_http_pprof_files = \
1045 go/http/pprof/pprof.go
1047 go_image_jpeg_files = \
1048 go/image/jpeg/huffman.go \
1049 go/image/jpeg/idct.go \
1050 go/image/jpeg/reader.go
1052 go_image_png_files = \
1053 go/image/png/reader.go \
1054 go/image/png/writer.go
1056 go_index_suffixarray_files = \
1057 go/index/suffixarray/suffixarray.go
1059 go_io_ioutil_files = \
1060 go/io/ioutil/ioutil.go \
1061 go/io/ioutil/tempfile.go
1063 go_mime_multipart_files = \
1064 go/mime/multipart/multipart.go
1066 go_net_dict_files = \
1069 go_net_textproto_files = \
1070 go/net/textproto/pipeline.go \
1071 go/net/textproto/reader.go \
1072 go/net/textproto/textproto.go \
1073 go/net/textproto/writer.go
1075 go_os_signal_files = \
1076 go/os/signal/signal.go \
1079 go_rpc_jsonrpc_files = \
1080 go/rpc/jsonrpc/client.go \
1081 go/rpc/jsonrpc/server.go
1083 go_runtime_pprof_files = \
1084 go/runtime/pprof/pprof.go
1086 go_testing_iotest_files = \
1087 go/testing/iotest/logger.go \
1088 go/testing/iotest/reader.go \
1089 go/testing/iotest/writer.go
1090 go_testing_quick_files = \
1091 go/testing/quick/quick.go
1092 go_testing_script_files = \
1093 go/testing/script/script.go
1096 syscall_os_file = syscalls/syscall_linux.go
1098 syscall_arch_file = syscalls/syscall_linux_386.go
1101 syscall_arch_file = syscalls/syscall_linux_amd64.go
1112 syscall_exec_os_file = syscalls/exec_stubs.go
1113 syscall_socket_os_file = syscalls/socket_bsd.go
1114 syscall_socket_epoll_file=
1115 syscall_sysfile_os_file = syscalls/sysfile_rtems.go
1116 syscall_syscall_file = syscalls/syscall_stubs.go
1117 syscall_errstr_file = syscalls/errstr_rtems.go
1118 syscall_errstr_decl_file = syscalls/errstr_decl_rtems.go
1120 syscall_exec_os_file = syscalls/exec.go
1121 syscall_socket_os_file = syscalls/socket_linux.go
1122 syscall_socket_epoll_file = syscalls/socket_epoll.go
1123 syscall_sysfile_os_file = syscalls/sysfile_linux.go
1124 syscall_syscall_file = syscalls/syscall.go
1125 syscall_errstr_file = syscalls/errstr.go
1127 syscall_errstr_decl_file = syscalls/errstr_decl_linux.go
1129 syscall_errstr_decl_file = syscalls/errstr_decl.go
1133 go_syscall_files = \
1134 $(syscall_errstr_file) \
1135 $(syscall_errstr_decl_file) \
1136 syscalls/exec_helpers.go \
1137 $(syscall_exec_os_file) \
1138 syscalls/socket.go \
1139 $(syscall_socket_os_file) \
1140 $(syscall_socket_epoll_file) \
1141 $(syscall_syscall_file) \
1142 syscalls/syscall_unix.go \
1143 syscalls/stringbyte.go \
1144 $(syscall_os_file) \
1145 $(syscall_arch_file) \
1146 syscalls/sysfile_posix.go \
1147 $(syscall_sysfile_os_file) \
1149 go_syscall_c_files = \
1160 expvar/libexpvar.la \
1174 netchan/libnetchan.la \
1179 reflect/libreflect.la \
1180 regexp/libregexp.la \
1182 runtime/libruntime.la \
1183 scanner/libscanner.la \
1186 strconv/libstrconv.la \
1187 strings/libstrings.la \
1189 syslog/libsyslog.la \
1190 tabwriter/libtabwriter.la \
1191 template/libtemplate.la \
1194 unicode/libunicode.la \
1197 websocket/libwebsocket.la \
1201 compress/libflate.la \
1202 compress/libgzip.la \
1203 compress/libzlib.la \
1204 container/libheap.la \
1205 container/liblist.la \
1206 container/libring.la \
1207 container/libvector.la \
1209 crypto/libblock.la \
1210 crypto/libblowfish.la \
1211 crypto/libcast5.la \
1218 crypto/libripemd160.la \
1221 crypto/libsha256.la \
1222 crypto/libsha512.la \
1223 crypto/libsubtle.la \
1233 encoding/libascii85.la \
1234 encoding/libbase64.la \
1235 encoding/libbinary.la \
1236 encoding/libgit85.la \
1237 encoding/libhex.la \
1238 encoding/libpem.la \
1248 go/libtypechecker.la \
1249 hash/libadler32.la \
1255 index/libsuffixarray.la \
1257 mime/libmultipart.la \
1259 net/libtextproto.la \
1262 runtime/libpprof.la \
1263 syscalls/libsyscall.la \
1264 testing/libtesting.la \
1265 testing/libiotest.la \
1266 testing/libquick.la \
1267 testing/libscript.la
1269 libgo_la_SOURCES = $(runtime_files)
1271 libgo_la_LIBADD = $(libgo_go_objs) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS)
1273 libgobegin_a_SOURCES = \
1276 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
1278 GOCFLAGS = $(CFLAGS)
1279 AM_GOCFLAGS = $(STRINGOPS_FLAG)
1280 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
1282 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
1283 $(AM_GOCFLAGS) $(GOCFLAGS)
1285 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
1286 $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) \
1287 $(PTHREAD_LIBS) $(MATH_LIBS) -o $@
1291 rm -f `echo $@ | sed -e 's|/lib|/|' -e 's/\.a/.gox/'`; \
1292 test -d $(@D) || $(MKDIR_P) $(@D); \
1294 files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
1295 if $(LTGOCOMPILE) -I . -c -fgo-prefix="libgo_$(@D)" -o $@.$(OBJEXT) $$files; then \
1296 $(AR) rc $@ $@.$(OBJEXT); \
1299 # Build a .la file from a .a file.
1311 @GC="$(GOC) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs -Wl,-R,`${PWD_COMMAND}`/.libs"; \
1313 RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
1314 export RUNTESTFLAGS; \
1318 echo -n "$(@D) " >$@-log 2>&1; \
1319 prefix=`if test "$(@D)" = "regexp"; then echo regexp-test; else dirname $(@D); fi`; \
1320 test "$${prefix}" != "." || prefix="$(@D)"; \
1321 $(srcdir)/testsuite/gotest --dejagnu=$(use_dejagnu) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" >>$@-log 2>&1; \
1326 # Build all packages before checking any.
1327 CHECK_DEPS = libgo.la libgobegin.a \
1328 $(toolexeclib_DATA) \
1329 $(toolexeclibarchive_DATA) \
1330 $(toolexeclibcompress_DATA) \
1331 $(toolexeclibcontainer_DATA) \
1332 $(toolexeclibcrypto_DATA) \
1333 $(toolexeclibdebug_DATA) \
1334 $(toolexeclibencoding_DATA) \
1335 $(toolexeclibexp_DATA) \
1336 $(toolexeclibgo_DATA) \
1337 $(toolexeclibhash_DATA) \
1338 $(toolexeclibhttp_DATA) \
1339 $(toolexeclibimage_DATA) \
1340 $(toolexeclibio_DATA) \
1341 $(toolexeclibos_DATA) \
1342 $(toolexeclibrpc_DATA) \
1343 $(toolexeclibruntime_DATA) \
1344 $(toolexeclibtesting_DATA)
1346 asn1/libasn1.a: $(go_asn1_files) bytes.gox fmt.gox io.gox os.gox reflect.gox \
1347 strconv.gox strings.gox time.gox
1349 asn1/libasn1.la: asn1/libasn1.a
1350 asn1/check: $(CHECK_DEPS)
1354 big/libbig.a: $(go_big_files) fmt.gox rand.gox strings.gox
1356 big/libbig.la: big/libbig.a
1357 big/check: $(CHECK_DEPS)
1361 bufio/libbufio.a: $(go_bufio_files) bytes.gox io.gox os.gox strconv.gox \
1364 bufio/libbufio.la: bufio/libbufio.a
1365 bufio/check: $(CHECK_DEPS)
1369 bytes/libbytes.a: $(go_bytes_files) $(go_bytes_c_files) io.gox os.gox \
1370 unicode.gox utf8.gox
1371 test -d bytes || $(MKDIR_P) bytes
1372 $(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
1373 $(LTCOMPILE) -c -o bytes/index.$(OBJEXT) $(srcdir)/go/bytes/indexbyte.c
1375 $(AR) rc $@ bytes/bytes.$(OBJEXT) bytes/index.$(OBJEXT)
1376 bytes/libbytes.la: bytes/libbytes.a
1377 $(LINK) bytes/bytes.lo bytes/index.lo
1378 bytes/check: $(CHECK_DEPS)
1382 cmath/libcmath.a: $(go_cmath_files) math.gox
1384 cmath/libcmath.la: cmath/libcmath.a
1385 cmath/check: $(CHECK_DEPS)
1389 ebnf/libebnf.a: $(go_ebnf_files) container/vector.gox go/scanner.gox \
1390 go/token.gox os.gox strconv.gox unicode.gox utf8.gox
1392 ebnf/libebnf.la: ebnf/libebnf.a
1393 ebnf/check: $(CHECK_DEPS)
1397 exec/libexec.a: $(go_exec_files) os.gox strings.gox
1399 exec/libexec.la: exec/libexec.a
1400 exec/check: $(CHECK_DEPS)
1404 expvar/libexpvar.a: $(go_expvar_files) bytes.gox fmt.gox http.gox json.gox \
1405 log.gox os.gox runtime.gox strconv.gox sync.gox
1407 expvar/libexpvar.la: expvar/libexpvar.a
1408 expvar/check: $(CHECK_DEPS)
1410 .PHONY: expvar/check
1412 flag/libflag.a: $(go_flag_files) fmt.gox os.gox strconv.gox
1414 flag/libflag.la: flag/libflag.a
1415 flag/check: $(CHECK_DEPS)
1419 fmt/libfmt.a: $(go_fmt_files) bytes.gox io.gox os.gox reflect.gox strconv.gox \
1420 strings.gox unicode.gox utf8.gox
1422 fmt/libfmt.la: fmt/libfmt.a
1423 fmt/check: $(CHECK_DEPS)
1427 gob/libgob.a: $(go_gob_files) bytes.gox fmt.gox io.gox math.gox os.gox \
1428 reflect.gox runtime.gox strings.gox sync.gox unicode.gox
1430 gob/libgob.la: gob/libgob.a
1431 gob/check: $(CHECK_DEPS)
1435 hash/libhash.a: $(go_hash_files) io.gox
1437 hash/libhash.la: hash/libhash.a
1438 hash/check: $(CHECK_DEPS)
1442 html/libhtml.a: $(go_html_files) bytes.gox io.gox os.gox strconv.gox \
1443 strings.gox utf8.gox
1445 html/libhtml.la: html/libhtml.a
1446 html/check: $(CHECK_DEPS)
1450 http/libhttp.a: $(go_http_files) bufio.gox bytes.gox container/list.gox \
1451 container/vector.gox crypto/rand.gox crypto/tls.gox \
1452 encoding/base64.gox fmt.gox io.gox io/ioutil.gox log.gox \
1453 mime.gox mime/multipart.gox net.gox os.gox path.gox sort.gox \
1454 strconv.gox strings.gox sync.gox time.gox utf8.gox
1456 http/libhttp.la: http/libhttp.a
1457 http/check: $(CHECK_DEPS)
1461 image/libimage.a: $(go_image_files) bufio.gox io.gox os.gox strconv.gox
1463 image/libimage.la: image/libimage.a
1464 image/check: $(CHECK_DEPS)
1468 io/libio.a: $(go_io_files) os.gox runtime.gox sync.gox
1470 io/libio.la: io/libio.a
1471 io/check: $(CHECK_DEPS)
1475 json/libjson.a: $(go_json_files) bytes.gox container/vector.gox fmt.gox \
1476 io.gox math.gox os.gox reflect.gox runtime.gox strconv.gox \
1477 strings.gox unicode.gox utf16.gox utf8.gox
1479 json/libjson.la: json/libjson.a
1480 json/check: $(CHECK_DEPS)
1484 log/liblog.a: $(go_log_files) bytes.gox fmt.gox io.gox runtime.gox os.gox \
1487 log/liblog.la: log/liblog.a
1488 log/check: $(CHECK_DEPS)
1492 math/libmath.a: $(go_math_files)
1494 math/libmath.la: math/libmath.a
1495 math/check: $(CHECK_DEPS)
1499 mime/libmime.a: $(go_mime_files) bufio.gox bytes.gox os.gox strings.gox \
1500 sync.gox unicode.gox
1502 mime/libmime.la: mime/libmime.a
1503 mime/check: $(CHECK_DEPS)
1507 net/libnet.a: $(go_net_files) fmt.gox io.gox os.gox reflect.gox strconv.gox \
1508 strings.gox sync.gox syscall.gox
1510 net/libnet.la: net/libnet.a
1511 net/check: $(CHECK_DEPS)
1515 netchan/libnetchan.a: $(go_netchan_files) gob.gox log.gox net.gox os.gox \
1516 reflect.gox sync.gox time.gox
1518 netchan/libnetchan.la: netchan/libnetchan.a
1519 netchan/check: $(CHECK_DEPS)
1521 .PHONY: netchan/check
1523 os/libos.a: $(go_os_files) sync.gox syscall.gox
1525 os/libos.la: os/libos.a
1526 os/check: $(CHECK_DEPS)
1530 patch/libpatch.a: $(go_patch_files) bytes.gox compress/zlib.gox \
1531 crypto/sha1.gox encoding/git85.gox fmt.gox io.gox os.gox \
1532 path.gox strings.gox
1534 patch/libpatch.la: patch/libpatch.a
1535 patch/check: $(CHECK_DEPS)
1539 path/libpath.a: $(go_path_files) io/ioutil.gox os.gox sort.gox strings.gox \
1542 path/libpath.la: path/libpath.a
1543 path/check: $(CHECK_DEPS)
1547 rand/librand.a: $(go_rand_files) math.gox sync.gox
1549 rand/librand.la: rand/librand.a
1550 rand/check: $(CHECK_DEPS)
1554 reflect/libreflect.a: $(go_reflect_files) math.gox runtime.gox strconv.gox \
1557 reflect/libreflect.la: reflect/libreflect.a
1558 reflect/check: $(CHECK_DEPS)
1560 .PHONY: reflect/check
1562 regexp/libregexp.a: $(go_regexp_files) bytes.gox io.gox os.gox strings.gox \
1565 regexp/libregexp.la: regexp/libregexp.a
1566 regexp/check: $(CHECK_DEPS)
1568 .PHONY: regexp/check
1570 rpc/librpc.a: $(go_rpc_files) bufio.gox fmt.gox gob.gox http.gox io.gox \
1571 log.gox net.gox os.gox reflect.gox sort.gox strings.gox \
1572 strconv.gox sync.gox template.gox unicode.gox utf8.gox
1574 rpc/librpc.la: rpc/librpc.a
1575 rpc/check: $(CHECK_DEPS)
1579 runtime/libruntime.a: $(go_runtime_files)
1581 runtime/libruntime.la: runtime/libruntime.a
1582 runtime/check: $(CHECK_DEPS)
1584 .PHONY: runtime/check
1586 scanner/libscanner.a: $(go_scanner_files) bytes.gox fmt.gox io.gox os.gox \
1587 unicode.gox utf8.gox
1589 scanner/libscanner.la: scanner/libscanner.a
1590 scanner/check: $(CHECK_DEPS)
1592 .PHONY: scanner/check
1594 smtp/libsmtp.a: $(go_smtp_files) crypto/tls.gox encoding/base64.gox io.gox \
1595 net.gox net/textproto.gox os.gox strings.gox
1597 smtp/libsmtp.la: smtp/libsmtp.a
1598 smtp/check: $(CHECK_DEPS)
1602 sort/libsort.a: $(go_sort_files)
1604 sort/libsort.la: sort/libsort.a
1605 sort/check: $(CHECK_DEPS)
1609 strconv/libstrconv.a: $(go_strconv_files) bytes.gox math.gox os.gox \
1610 strings.gox unicode.gox utf8.gox
1612 strconv/libstrconv.la: strconv/libstrconv.a
1613 strconv/check: $(CHECK_DEPS)
1615 .PHONY: strconv/check
1617 strings/libstrings.a: $(go_strings_files) os.gox unicode.gox utf8.gox
1619 strings/libstrings.la: strings/libstrings.a
1620 strings/check: $(CHECK_DEPS)
1622 .PHONY: strings/check
1624 sync/libsync.a: $(go_sync_files) $(go_sync_c_files) runtime.gox
1625 test -d sync || $(MKDIR_P) sync
1626 $(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
1627 $(LTCOMPILE) -c -o sync/cas.$(OBJEXT) $(srcdir)/go/sync/cas.c
1629 $(AR) rc $@ sync/mutex.$(OBJEXT) sync/cas.$(OBJEXT)
1630 sync/libsync.la: sync/libsync.a
1631 $(LINK) sync/mutex.lo sync/cas.lo
1632 sync/check: $(CHECK_DEPS)
1636 syslog/libsyslog.a: $(go_syslog_files) fmt.gox log.gox net.gox os.gox
1638 syslog/libsyslog.la: syslog/libsyslog.a
1639 syslog/check: $(CHECK_DEPS)
1641 .PHONY: syslog/check
1643 tabwriter/libtabwriter.a: $(go_tabwriter_files) bytes.gox io.gox os.gox \
1646 tabwriter/libtabwriter.la: tabwriter/libtabwriter.a
1647 tabwriter/check: $(CHECK_DEPS)
1649 .PHONY: tabwriter/check
1651 template/libtemplate.a: $(go_template_files) bytes.gox fmt.gox io.gox os.gox \
1652 reflect.gox runtime.gox strings.gox container/vector.gox
1654 template/libtemplate.la: template/libtemplate.a
1655 template/check: $(CHECK_DEPS)
1657 .PHONY: template/check
1659 testing/libtesting.a: $(go_testing_files) flag.gox fmt.gox os.gox regexp.gox \
1660 runtime.gox time.gox
1662 testing/libtesting.la: testing/libtesting.a
1663 testing/check: $(CHECK_DEPS)
1665 .PHONY: testing/check
1667 time/libtime.a: $(go_time_files) bytes.gox io/ioutil.gox os.gox strconv.gox \
1668 sync.gox syscall.gox
1670 time/libtime.la: time/libtime.a
1671 time/check: $(CHECK_DEPS)
1675 try/libtry.a: $(go_try_files) fmt.gox io.gox os.gox reflect.gox unicode.gox
1677 try/libtry.la: try/libtry.a
1678 try/check: $(CHECK_DEPS)
1682 unicode/libunicode.a: $(go_unicode_files)
1684 unicode/libunicode.la: unicode/libunicode.a
1685 unicode/check: $(CHECK_DEPS)
1687 .PHONY: unicode/check
1689 utf16/libutf16.a: $(go_utf16_files) unicode.gox
1691 utf16/libutf16.la: utf16/libutf16.a
1692 utf16/check: $(CHECK_DEPS)
1696 utf8/libutf8.a: $(go_utf8_files) unicode.gox
1698 utf8/libutf8.la: utf8/libutf8.a
1699 utf8/check: $(CHECK_DEPS)
1703 websocket/libwebsocket.a: $(go_websocket_files) bufio.gox bytes.gox \
1704 container/vector.gox crypto/md5.gox crypto/tls.gox \
1705 encoding/binary.gox fmt.gox http.gox io.gox net.gox os.gox \
1706 rand.gox strings.gox
1708 websocket/libwebsocket.la: websocket/libwebsocket.a
1709 websocket/check: $(CHECK_DEPS)
1711 .PHONY: websocket/check
1713 xml/libxml.a: $(go_xml_files) bufio.gox bytes.gox io.gox os.gox reflect.gox \
1714 strconv.gox strings.gox unicode.gox utf8.gox
1716 xml/libxml.la: xml/libxml.a
1717 xml/check: $(CHECK_DEPS)
1721 archive/libtar.a: $(go_archive_tar_files) bytes.gox io.gox os.gox strconv.gox \
1724 archive/libtar.la: archive/libtar.a
1725 archive/tar/check: $(CHECK_DEPS)
1726 @$(MKDIR_P) archive/tar
1728 .PHONY: archive/tar/check
1730 archive/libzip.a: $(go_archive_zip_files) bufio.gox bytes.gox \
1731 compress/flate.gox hash.gox hash/crc32.gox \
1732 encoding/binary.gox io.gox os.gox
1734 archive/libzip.la: archive/libzip.a
1735 archive/zip/check: $(CHECK_DEPS)
1736 @$(MKDIR_P) archive/zip
1738 .PHONY: archive/zip/check
1740 compress/libflate.a: $(go_compress_flate_files) bufio.gox io.gox math.gox \
1741 os.gox sort.gox strconv.gox
1743 compress/libflate.la: compress/libflate.a
1744 compress/flate/check: $(CHECK_DEPS)
1745 @$(MKDIR_P) compress/flate
1747 .PHONY: compress/flate/check
1749 compress/libgzip.a: $(go_compress_gzip_files) bufio.gox compress/flate.gox \
1750 hash.gox hash/crc32.gox io.gox os.gox
1752 compress/libgzip.la: compress/libgzip.a
1753 compress/gzip/check: $(CHECK_DEPS)
1754 @$(MKDIR_P) compress/gzip
1756 .PHONY: compress/gzip/check
1758 compress/libzlib.a: $(go_compress_zlib_files) bufio.gox compress/flate.gox \
1759 hash.gox hash/adler32.gox io.gox os.gox
1761 compress/libzlib.la: compress/libzlib.a
1762 compress/zlib/check: $(CHECK_DEPS)
1763 @$(MKDIR_P) compress/zlib
1765 .PHONY: compress/zlib/check
1767 container/libheap.a: $(go_container_heap_files) sort.gox
1769 container/libheap.la: container/libheap.a
1770 container/heap/check: $(CHECK_DEPS)
1771 @$(MKDIR_P) container/heap
1773 .PHONY: container/heap/check
1775 container/liblist.a: $(go_container_list_files)
1777 container/liblist.la: container/liblist.a
1778 container/list/check: $(CHECK_DEPS)
1779 @$(MKDIR_P) container/list
1781 .PHONY: container/list/check
1783 container/libring.a: $(go_container_ring_files)
1785 container/libring.la: container/libring.a
1786 container/ring/check: $(CHECK_DEPS)
1787 @$(MKDIR_P) container/ring
1789 .PHONY: container/ring/check
1791 container/libvector.a: $(go_container_vector_files)
1793 container/libvector.la: container/libvector.a
1794 container/vector/check: $(CHECK_DEPS)
1795 @$(MKDIR_P) container/vector
1797 .PHONY: container/vector/check
1799 crypto/libaes.a: $(go_crypto_aes_files) os.gox strconv.gox
1801 crypto/libaes.la: crypto/libaes.a
1802 crypto/aes/check: $(CHECK_DEPS)
1803 @$(MKDIR_P) crypto/aes
1805 .PHONY: crypto/aes/check
1807 crypto/libblock.a: $(go_crypto_block_files) fmt.gox io.gox os.gox strconv.gox
1809 crypto/libblock.la: crypto/libblock.a
1810 crypto/block/check: $(CHECK_DEPS)
1811 @$(MKDIR_P) crypto/block
1813 .PHONY: crypto/block/check
1815 crypto/libblowfish.a: $(go_crypto_blowfish_files) os.gox strconv.gox
1817 crypto/libblowfish.la: crypto/libblowfish.a
1818 crypto/blowfish/check: $(CHECK_DEPS)
1819 @$(MKDIR_P) crypto/blowfish
1821 .PHONY: crypto/blowfish/check
1823 crypto/libcast5.a: $(go_crypto_cast5_files) os.gox
1825 crypto/libcast5.la: crypto/libcast5.a
1826 crypt/cast5/check: $(CHECK_DEPS)
1827 @$(MKDIR_P) crypto/cast5
1829 .PHONY: crypto/cast5/check
1831 crypto/libhmac.a: $(go_crypto_hmac_files) crypto/md5.gox crypto/sha1.gox \
1834 crypto/libhmac.la: crypto/libhmac.a
1835 crypto/hmac/check: $(CHECK_DEPS)
1836 @$(MKDIR_P) crypto/hmac
1838 .PHONY: crypto/hmac/check
1840 crypto/libmd4.a: $(go_crypto_md4_files) hash.gox os.gox
1842 crypto/libmd4.la: crypto/libmd4.a
1843 crypto/md4/check: $(CHECK_DEPS)
1844 @$(MKDIR_P) crypto/md4
1846 .PHONY: crypto/md4/check
1848 crypto/libmd5.a: $(go_crypto_md5_files) hash.gox os.gox
1850 crypto/libmd5.la: crypto/libmd5.a
1851 crypto/md5/check: $(CHECK_DEPS)
1852 @$(MKDIR_P) crypto/md5
1854 .PHONY: crypto/md5/check
1856 crypto/libocsp.a: $(go_crypto_ocsp_files) asn1.gox crypto/rsa.gox \
1857 crypto/sha1.gox crypto/x509.gox os.gox time.gox
1859 crypto/libocsp.la: crypto/libocsp.a
1860 crypto/ocsp/check: $(CHECK_DEPS)
1861 @$(MKDIR_P) crypto/ocsp
1863 .PHONY: crypto/ocsp/check
1865 crypto/librand.a: $(go_crypto_rand_files) crypto/aes.gox io.gox os.gox \
1868 crypto/librand.la: crypto/librand.a
1869 crypto/rand/check: $(CHECK_DEPS)
1870 @$(MKDIR_P) crypto/rand
1872 .PHONY: crypto/rand/check
1874 crypto/librc4.a: $(go_crypto_rc4_files) os.gox strconv.gox
1876 crypto/librc4.la: crypto/librc4.a
1877 crypto/rc4/check: $(CHECK_DEPS)
1878 @$(MKDIR_P) crypto/rc4
1880 .PHONY: crypto/rc4/check
1882 crypto/libripemd160.a: $(go_crypto_ripemd160_files) hash.gox os.gox
1884 crypto/libripemd160.la: crypto/libripemd160.a
1885 crypto/ripemd160/check: $(CHECK_DEPS)
1886 @$(MKDIR_P) crypto/ripemd160
1888 .PHONY: crypto/ripemd160/check
1890 crypto/librsa.a: $(go_crypto_rsa_files) big.gox crypto/sha1.gox \
1891 crypto/subtle.gox encoding/hex.gox hash.gox io.gox os.gox
1893 crypto/librsa.la: crypto/librsa.a
1894 crypto/rsa/check: $(CHECK_DEPS)
1895 @$(MKDIR_P) crypto/rsa
1897 .PHONY: crypto/rsa/check
1899 crypto/libsha1.a: $(go_crypto_sha1_files) hash.gox os.gox
1901 crypto/libsha1.la: crypto/libsha1.a
1902 crypto/sha1/check: $(CHECK_DEPS)
1903 @$(MKDIR_P) crypto/sha1
1905 .PHONY: crypto/sha1/check
1907 crypto/libsha256.a: $(go_crypto_sha256_files) hash.gox os.gox
1909 crypto/libsha256.la: crypto/libsha256.a
1910 crypto/sha256/check: $(CHECK_DEPS)
1911 @$(MKDIR_P) crypto/sha256
1913 .PHONY: crypto/sha256/check
1915 crypto/libsha512.a: $(go_crypto_sha512_files) hash.gox os.gox
1917 crypto/libsha512.la: crypto/libsha512.a
1918 crypto/sha512/check: $(CHECK_DEPS)
1919 @$(MKDIR_P) crypto/sha512
1921 .PHONY: crypto/sha512/check
1923 crypto/libsubtle.a: $(go_crypto_subtle_files)
1925 crypto/libsubtle.la: crypto/libsubtle.a
1926 crypto/subtle/check: $(CHECK_DEPS)
1927 @$(MKDIR_P) crypto/subtle
1929 .PHONY: crypto/subtle/check
1931 crypto/libtls.a: $(go_crypto_tls_files) bufio.gox bytes.gox container/list.gox \
1932 crypto/hmac.gox crypto/md5.gox crypto/rc4.gox crypto/rand.gox \
1933 crypto/rsa.gox crypto/sha1.gox crypto/subtle.gox \
1934 crypto/rsa.gox crypto/x509.gox encoding/pem.gox fmt.gox \
1935 hash.gox io.gox io/ioutil.gox net.gox os.gox strings.gox \
1938 crypto/libtls.la: crypto/libtls.a
1939 crypto/tls/check: $(CHECK_DEPS)
1940 @$(MKDIR_P) crypto/tls
1942 .PHONY: crypto/tls/check
1944 crypto/libx509.a: $(go_crypto_x509_files) asn1.gox big.gox \
1945 container/vector.gox crypto/rsa.gox crypto/sha1.gox hash.gox \
1946 os.gox strings.gox time.gox
1948 crypto/libx509.la: crypto/libx509.a
1949 crypto/x509/check: $(CHECK_DEPS)
1950 @$(MKDIR_P) crypto/x509
1952 .PHONY: crypto/x509/check
1954 crypto/libxtea.a: $(go_crypto_xtea_files) os.gox strconv.gox
1956 crypto/libxtea.la: crypto/libxtea.a
1957 crypto/xtea/check: $(CHECK_DEPS)
1958 @$(MKDIR_P) crypto/xtea
1960 .PHONY: crypto/xtea/check
1962 debug/libdwarf.a: $(go_debug_dwarf_files) encoding/binary.gox os.gox \
1965 debug/libdwarf.la: debug/libdwarf.a
1966 debug/dwarf/check: $(CHECK_DEPS)
1967 @$(MKDIR_P) debug/dwarf
1969 .PHONY: debug/dwarf/check
1971 debug/libelf.a: $(go_debug_elf_files) bytes.gox debug/dwarf.gox \
1972 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
1974 debug/libelf.la: debug/libelf.a
1975 debug/elf/check: $(CHECK_DEPS)
1976 @$(MKDIR_P) debug/elf
1978 .PHONY: debug/elf/check
1980 debug/libgosym.a: $(go_debug_gosym_files) encoding/binary.gox fmt.gox os.gox \
1981 strconv.gox strings.gox
1983 debug/libgosym.la: debug/libgosym.a
1984 debug/gosym/check: $(CHECK_DEPS)
1985 @$(MKDIR_P) debug/gosym
1987 .PHONY: debug/gosym/check
1989 debug/libmacho.a: $(go_debug_macho_files) bytes.gox debug/dwarf.gox \
1990 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
1992 debug/libmacho.la: debug/libmacho.a
1993 debug/macho/check: $(CHECK_DEPS)
1994 @$(MKDIR_P) debug/macho
1996 .PHONY: debug/macho/check
1998 debug/libpe.a: $(go_debug_pe_files) debug/dwarf.gox encoding/binary.gox \
1999 fmt.gox io.gox os.gox strconv.gox
2001 debug/libpe.la: debug/libpe.a
2002 debug/pe/check: $(CHECK_DEPS)
2003 @$(MKDIR_P) debug/pe
2005 .PHONY: debug/pe/check
2007 debug/libproc.a: $(go_debug_proc_files) container/vector.gox fmt.gox \
2008 io/ioutil.gox os.gox runtime.gox strconv.gox strings.gox \
2009 sync.gox syscall.gox
2011 debug/libproc.la: debug/libproc.a
2012 debug/proc/check: $(CHECK_DEPS)
2013 @$(MKDIR_P) debug/proc
2015 .PHONY: debug/proc/check
2017 encoding/libascii85.a: $(go_encoding_ascii85_files) io.gox os.gox strconv.gox
2019 encoding/libascii85.la: encoding/libascii85.a
2020 encoding/ascii85/check: $(CHECK_DEPS)
2021 @$(MKDIR_P) encoding/ascii85
2023 .PHONY: encoding/ascii85/check
2025 encoding/libbase64.a: $(go_encoding_base64_files) io.gox os.gox strconv.gox
2027 encoding/libbase64.la: encoding/libbase64.a
2028 encoding/base64/check: $(CHECK_DEPS)
2029 @$(MKDIR_P) encoding/base64
2031 .PHONY: encoding/base64/check
2033 encoding/libbinary.a: $(go_encoding_binary_files) io.gox math.gox os.gox \
2036 encoding/libbinary.la: encoding/libbinary.a
2037 encoding/binary/check: $(CHECK_DEPS)
2038 @$(MKDIR_P) encoding/binary
2040 .PHONY: encoding/binary/check
2042 encoding/libgit85.a: $(go_encoding_git85_files) bytes.gox io.gox os.gox \
2045 encoding/libgit85.la: encoding/libgit85.a
2046 encoding/git85/check: $(CHECK_DEPS)
2047 @$(MKDIR_P) encoding/git85
2049 .PHONY: encoding/git85/check
2051 encoding/libhex.a: $(go_encoding_hex_files) os.gox strconv.gox
2053 encoding/libhex.la: encoding/libhex.a
2054 encoding/hex/check: $(CHECK_DEPS)
2055 @$(MKDIR_P) encoding/hex
2057 .PHONY: encoding/hex/check
2059 encoding/libpem.a: $(go_encoding_pem_files) bytes.gox encoding/base64.gox
2061 encoding/libpem.la: encoding/libpem.a
2062 encoding/pem/check: $(CHECK_DEPS)
2063 @$(MKDIR_P) encoding/pem
2065 .PHONY: encoding/pem/check
2067 exp/libdatafmt.a: $(go_exp_datafmt_files) bytes.gox container/vector.gox \
2068 fmt.gox go/scanner.gox go/token.gox io.gox os.gox reflect.gox \
2069 runtime.gox strconv.gox strings.gox
2071 exp/libdatafmt.la: exp/libdatafmt.a
2072 exp/datafmt/check: $(CHECK_DEPS)
2073 @$(MKDIR_P) exp/datafmt
2075 .PHONY: exp/datafmt/check
2077 exp/libdraw.a: $(go_exp_draw_files) image.gox os.gox
2079 exp/libdraw.la: exp/libdraw.a
2080 exp/draw/check: $(CHECK_DEPS)
2081 @$(MKDIR_P) exp/draw
2083 .PHONY: exp/draw/check
2085 exp/libeval.a: $(go_exp_eval_files) big.gox go/ast.gox go/parser.gox \
2086 go/scanner.gox go/token.gox fmt.gox log.gox strconv.gox \
2087 strings.gox os.gox reflect.gox runtime.gox sort.gox template.gox
2089 exp/libeval.la: exp/libeval.a
2090 exp/eval/check: $(CHECK_DEPS)
2091 @$(MKDIR_P) exp/eval
2093 .PHONY: exp/eval/check
2095 go/libast.a: $(go_go_ast_files) fmt.gox go/token.gox io.gox os.gox \
2096 reflect.gox unicode.gox utf8.gox
2098 go/libast.la: go/libast.a
2099 go/ast/check: $(CHECK_DEPS)
2102 .PHONY: go/ast/check
2104 go/libdoc.a: $(go_go_doc_files) go/ast.gox go/token.gox io.gox regexp.gox \
2105 sort.gox strings.gox template.gox
2107 go/libdoc.la: go/libdoc.a
2108 go/doc/check: $(CHECK_DEPS)
2111 .PHONY: go/doc/check
2113 go/libparser.a: $(go_go_parser_files) bytes.gox fmt.gox go/ast.gox \
2114 go/scanner.gox go/token.gox io.gox io/ioutil.gox os.gox \
2115 path.gox strings.gox
2117 go/libparser.la: go/libparser.a
2118 go/parser/check: $(CHECK_DEPS)
2119 @$(MKDIR_P) go/parser
2121 .PHONY: go/parser/check
2123 go/libprinter.a: $(go_go_printer_files) bytes.gox fmt.gox go/ast.gox \
2124 go/token.gox io.gox os.gox reflect.gox runtime.gox \
2125 strings.gox tabwriter.gox
2127 go/libprinter.la: go/libprinter.a
2128 go/printer/check: $(CHECK_DEPS)
2129 @$(MKDIR_P) go/printer
2131 .PHONY: go/printer/check
2133 go/libscanner.a: $(go_go_scanner_files) bytes.gox container/vector.gox fmt.gox \
2134 go/token.gox io.gox os.gox sort.gox strconv.gox unicode.gox \
2137 go/libscanner.la: go/libscanner.a
2138 go/scanner/check: $(CHECK_DEPS)
2139 @$(MKDIR_P) go/scanner
2141 .PHONY: go/scanner/check
2143 go/libtoken.a: $(go_go_token_files) fmt.gox strconv.gox
2145 go/libtoken.la: go/libtoken.a
2146 go/token/check: $(CHECK_DEPS)
2147 @$(MKDIR_P) go/token
2149 .PHONY: go/token/check
2151 go/libtypechecker.a: $(go_go_typechecker_files) fmt.gox go/ast.gox \
2152 go/token.gox go/scanner.gox os.gox
2154 go/libtypechecker.la: go/libtypechecker.a
2155 go/typechecker/check: $(CHECK_DEPS)
2156 @$(MKDIR_P) go/typechecker
2158 .PHONY: go/typechecker/check
2160 hash/libadler32.a: $(go_hash_adler32_files) hash.gox os.gox
2162 hash/libadler32.la: hash/libadler32.a
2163 hash/adler32/check: $(CHECK_DEPS)
2164 @$(MKDIR_P) hash/adler32
2166 .PHONY: hash/adler32/check
2168 hash/libcrc32.a: $(go_hash_crc32_files) hash.gox os.gox
2170 hash/libcrc32.la: hash/libcrc32.a
2171 hash/crc32/check: $(CHECK_DEPS)
2172 @$(MKDIR_P) hash/crc32
2174 .PHONY: hash/crc32/check
2176 hash/libcrc64.a: $(go_hash_crc64_files) hash.gox os.gox
2178 hash/libcrc64.la: hash/libcrc64.a
2179 hash/crc64/check: $(CHECK_DEPS)
2180 @$(MKDIR_P) hash/crc64
2182 .PHONY: hash/crc64/check
2184 http/libpprof.a: $(go_http_pprof_files) bufio.gox fmt.gox http.gox os.gox \
2185 runtime.gox runtime/pprof.gox strconv.gox strings.gox
2187 http/libpprof.la: http/libpprof.a
2188 http/pprof/check: $(CHECK_DEPS)
2189 @$(MKDIR_P) http/pprof
2191 .PHONY: http/pprof/check
2193 image/libjpeg.a: $(go_image_jpeg_files) bufio.gox image.gox io.gox os.gox
2195 image/libjpeg.la: image/libjpeg.a
2196 image/jpeg/check: $(CHECK_DEPS)
2197 @$(MKDIR_P) image/jpeg
2199 .PHONY: image/jpeg/check
2201 image/libpng.a: $(go_image_png_files) bufio.gox compress/zlib.gox fmt.gox \
2202 hash.gox hash/crc32.gox image.gox io.gox os.gox strconv.gox
2204 image/libpng.la: image/libpng.a
2205 image/png/check: $(CHECK_DEPS)
2206 @$(MKDIR_P) image/png
2208 .PHONY: image/png/check
2210 index/libsuffixarray.a: $(go_index_suffixarray_files) bytes.gox \
2211 container/vector.gox sort.gox
2213 index/libsuffixarray.la: index/libsuffixarray.a
2214 index/suffixarray/check: $(CHECK_DEPS)
2215 @$(MKDIR_P) index/suffixarray
2217 .PHONY: index/suffixarray/check
2219 io/libioutil.a: $(go_io_ioutil_files) bytes.gox io.gox os.gox sort.gox \
2222 io/libioutil.la: io/libioutil.a
2223 io/ioutil/check: $(CHECK_DEPS)
2224 @$(MKDIR_P) io/ioutil
2226 .PHONY: io/ioutil/check
2228 mime/libmultipart.a: $(go_mime_multipart_files) bufio.gox bytes.gox io.gox \
2229 mime.gox os.gox regexp.gox strings.gox
2231 mime/libmultipart.la: mime/libmultipart.a
2232 mime/multipart/check: $(CHECK_DEPS)
2233 @$(MKDIR_P) mime/multipart
2235 .PHONY: mime/multipart/check
2237 net/libdict.a: $(go_net_dict_files) container/vector.gox net/textproto.gox \
2238 os.gox strconv.gox strings.gox
2240 net/libdict.la: net/libdict.a
2242 net/libtextproto.a: $(go_net_textproto_files) bufio.gox bytes.gox \
2243 container/vector.gox fmt.gox io.gox io/ioutil.gox net.gox \
2244 os.gox strconv.gox sync.gox
2246 net/libtextproto.la: net/libtextproto.a
2247 net/textproto/check: $(CHECK_DEPS)
2248 @$(MKDIR_P) net/textproto
2250 .PHONY: net/textproto/check
2252 os/libsignal.a: $(go_os_signal_files) runtime.gox strconv.gox
2254 os/libsignal.la: os/libsignal.a
2255 os/signal/check: $(CHECK_DEPS)
2256 @$(MKDIR_P) os/signal
2258 .PHONY: os/signal/check
2260 unix.go: $(srcdir)/go/os/signal/mkunix.sh sysinfo.go
2261 $(SHELL) $(srcdir)/go/os/signal/mkunix.sh sysinfo.go > $@.tmp
2264 rpc/libjsonrpc.a: $(go_rpc_jsonrpc_files) fmt.gox io.gox json.gox net.gox \
2265 os.gox rpc.gox sync.gox
2267 rpc/libjsonrpc.la: rpc/libjsonrpc.a
2268 rpc/jsonrpc/check: $(CHECK_DEPS)
2269 @$(MKDIR_P) rpc/jsonrpc
2271 .PHONY: rpc/jsonrpc/check
2273 runtime/libpprof.a: $(go_runtime_pprof_files) bufio.gox fmt.gox io.gox os.gox \
2276 runtime/libpprof.la: runtime/libpprof.a
2277 runtime/pprof/check: $(CHECK_DEPS)
2278 @$(MKDIR_P) runtime/pprof
2280 .PHONY: runtime/pprof/check
2282 testing/libiotest.a: $(go_testing_iotest_files) io.gox log.gox os.gox
2284 testing/libiotest.la: testing/libiotest.a
2285 testing/iotest/check: $(CHECK_DEPS)
2286 @$(MKDIR_P) testing/iotest
2288 .PHONY: testing/iotest/check
2290 testing/libquick.a: $(go_testing_quick_files) flag.gox fmt.gox math.gox \
2291 os.gox rand.gox reflect.gox strings.gox
2293 testing/libquick.la: testing/libquick.a
2294 testing/quick/check: $(CHECK_DEPS)
2295 @$(MKDIR_P) testing/quick
2297 .PHONY: testing/quick/check
2299 testing/libscript.a: $(go_testing_script_files) fmt.gox os.gox rand.gox \
2300 reflect.gox strings.gox
2302 testing/libscript.la: testing/libscript.a
2303 testing/script/check: $(CHECK_DEPS)
2304 @$(MKDIR_P) testing/script
2306 .PHONY: testing/script/check
2308 sysinfo.go: $(srcdir)/mksysinfo.sh config.h
2309 $(SHELL) $(srcdir)/mksysinfo.sh
2310 syscalls/libsyscall.a: $(go_syscall_files) $(go_syscall_c_files) sync.gox
2311 rm -f syscall.gox syscalls/libsyscall.a
2312 test -d syscalls || $(MKDIR_P) syscalls
2313 files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e's/[^ ]*\.c//g'`; \
2314 $(LTGOCOMPILE) -c -fgo-prefix="libgo_syscalls" -o syscalls/syscall.$(OBJEXT) $$files
2315 $(LTCOMPILE) -c -o syscalls/errno.$(OBJEXT) $(srcdir)/syscalls/errno.c
2316 $(AR) rc syscalls/libsyscall.a syscalls/syscall.$(OBJEXT) syscalls/errno.$(OBJEXT)
2317 syscalls/libsyscall.la: syscalls/libsyscall.a
2318 $(LINK) syscalls/syscall.lo syscalls/errno.lo
2320 # How to build a .gox file from a .a file.
2323 rm -f $@.$(OBJEXT); \
2324 $(CC) -r -nostdlib -o $@.$(OBJEXT) -Wl,--whole-archive $<; \
2325 $(OBJCOPY) -j .go_export $@.$(OBJEXT) $@.tmp; \
2329 asn1.gox: asn1/libasn1.a
2331 big.gox: big/libbig.a
2333 bufio.gox: bufio/libbufio.a
2335 bytes.gox: bytes/libbytes.a
2337 cmath.gox: cmath/libcmath.a
2339 ebnf.gox: ebnf/libebnf.a
2341 exec.gox: exec/libexec.a
2343 expvar.gox: expvar/libexpvar.a
2345 flag.gox: flag/libflag.a
2347 fmt.gox: fmt/libfmt.a
2349 gob.gox: gob/libgob.a
2351 hash.gox: hash/libhash.a
2353 html.gox: html/libhtml.a
2355 http.gox: http/libhttp.a
2357 image.gox: image/libimage.a
2361 json.gox: json/libjson.a
2363 log.gox: log/liblog.a
2365 math.gox: math/libmath.a
2367 mime.gox: mime/libmime.a
2369 net.gox: net/libnet.a
2371 netchan.gox: netchan/libnetchan.a
2375 patch.gox: patch/libpatch.a
2377 path.gox: path/libpath.a
2379 rand.gox: rand/librand.a
2381 reflect.gox: reflect/libreflect.a
2383 regexp.gox: regexp/libregexp.a
2385 rpc.gox: rpc/librpc.a
2387 runtime.gox: runtime/libruntime.a
2389 scanner.gox: scanner/libscanner.a
2391 smtp.gox: smtp/libsmtp.a
2393 sort.gox: sort/libsort.a
2395 strconv.gox: strconv/libstrconv.a
2397 strings.gox: strings/libstrings.a
2399 sync.gox: sync/libsync.a
2401 syslog.gox: syslog/libsyslog.a
2403 syscall.gox: syscalls/libsyscall.a
2405 tabwriter.gox: tabwriter/libtabwriter.a
2407 template.gox: template/libtemplate.a
2409 testing.gox: testing/libtesting.a
2411 time.gox: time/libtime.a
2413 try.gox: try/libtry.a
2415 unicode.gox: unicode/libunicode.a
2417 utf16.gox: utf16/libutf16.a
2419 utf8.gox: utf8/libutf8.a
2421 websocket.gox: websocket/libwebsocket.a
2423 xml.gox: xml/libxml.a
2426 archive/tar.gox: archive/libtar.a
2428 archive/zip.gox: archive/libzip.a
2431 compress/flate.gox: compress/libflate.a
2433 compress/gzip.gox: compress/libgzip.a
2435 compress/zlib.gox: compress/libzlib.a
2438 container/heap.gox: container/libheap.a
2440 container/list.gox: container/liblist.a
2442 container/ring.gox: container/libring.a
2444 container/vector.gox: container/libvector.a
2447 crypto/aes.gox: crypto/libaes.a
2449 crypto/block.gox: crypto/libblock.a
2451 crypto/blowfish.gox: crypto/libblowfish.a
2453 crypto/cast5.gox: crypto/libcast5.a
2455 crypto/hmac.gox: crypto/libhmac.a
2457 crypto/md4.gox: crypto/libmd4.a
2459 crypto/md5.gox: crypto/libmd5.a
2461 crypto/ocsp.gox: crypto/libocsp.a
2463 crypto/rand.gox: crypto/librand.a
2465 crypto/rc4.gox: crypto/librc4.a
2467 crypto/ripemd160.gox: crypto/libripemd160.a
2469 crypto/rsa.gox: crypto/librsa.a
2471 crypto/sha1.gox: crypto/libsha1.a
2473 crypto/sha256.gox: crypto/libsha256.a
2475 crypto/sha512.gox: crypto/libsha512.a
2477 crypto/subtle.gox: crypto/libsubtle.a
2479 crypto/tls.gox: crypto/libtls.a
2481 crypto/x509.gox: crypto/libx509.a
2483 crypto/xtea.gox: crypto/libxtea.a
2486 debug/dwarf.gox: debug/libdwarf.a
2488 debug/elf.gox: debug/libelf.a
2490 debug/gosym.gox: debug/libgosym.a
2492 debug/macho.gox: debug/libmacho.a
2494 debug/pe.gox: debug/libpe.a
2496 debug/proc.gox: debug/libproc.a
2499 encoding/ascii85.gox: encoding/libascii85.a
2501 encoding/base64.gox: encoding/libbase64.a
2503 encoding/binary.gox: encoding/libbinary.a
2505 encoding/git85.gox: encoding/libgit85.a
2507 encoding/hex.gox: encoding/libhex.a
2509 encoding/pem.gox: encoding/libpem.a
2512 exp/datafmt.gox: exp/libdatafmt.a
2514 exp/draw.gox: exp/libdraw.a
2516 exp/eval.gox: exp/libeval.a
2519 go/ast.gox: go/libast.a
2521 go/doc.gox: go/libdoc.a
2523 go/parser.gox: go/libparser.a
2525 go/printer.gox: go/libprinter.a
2527 go/scanner.gox: go/libscanner.a
2529 go/token.gox: go/libtoken.a
2531 go/typechecker.gox: go/libtypechecker.a
2534 hash/adler32.gox: hash/libadler32.a
2536 hash/crc32.gox: hash/libcrc32.a
2538 hash/crc64.gox: hash/libcrc64.a
2541 http/pprof.gox: http/libpprof.a
2544 image/jpeg.gox: image/libjpeg.a
2546 image/png.gox: image/libpng.a
2549 index/suffixarray.gox: index/libsuffixarray.a
2552 io/ioutil.gox: io/libioutil.a
2555 mime/multipart.gox: mime/libmultipart.a
2558 net/dict.gox: net/libdict.a
2560 net/textproto.gox: net/libtextproto.a
2563 os/signal.gox: os/libsignal.a
2566 rpc/jsonrpc.gox: rpc/libjsonrpc.a
2569 runtime/pprof.gox: runtime/libpprof.a
2572 testing/iotest.gox: testing/libiotest.a
2574 testing/quick.gox: testing/libquick.a
2576 testing/script.gox: testing/libscript.a
2626 compress/flate/check \
2627 compress/gzip/check \
2628 compress/zlib/check \
2629 container/heap/check \
2630 container/list/check \
2631 container/ring/check \
2632 container/vector/check \
2634 crypto/block/check \
2635 crypto/blowfish/check \
2636 crypto/cast5/check \
2643 crypto/ripemd160/check \
2646 crypto/sha256/check \
2647 crypto/sha512/check \
2648 crypto/subtle/check \
2656 encoding/ascii85/check \
2657 encoding/base64/check \
2658 encoding/binary/check \
2659 encoding/git85/check \
2660 encoding/hex/check \
2661 encoding/pem/check \
2668 go/typechecker/check \
2669 hash/adler32/check \
2673 index/suffixarray/check \
2675 mime/multipart/check \
2676 net/textproto/check \
2679 testing/quick/check \
2680 testing/script/check
2682 check-recursive: $(TEST_PACKAGES)
2685 find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
2686 find . -name '*.$(OBJEXT)' -print | xargs rm -f
2689 find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
2690 find . -name '*.a' -print | xargs rm -f
2692 CLEANFILES = *.go *.gox goc2c *.c s-version