1 # Makefile.am -- Go library Makefile.
3 # Copyright 2009 The Go Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style
5 # license that can be found in the LICENSE file.
7 # Process this file with autoreconf to produce Makefile.in.
10 SUFFIXES = .c .go .gox .o .obj .lo .a
18 gcc_version := $(shell $(GOC) -dumpversion)
20 MAINT_CHARSET = latin1
22 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
23 PWD_COMMAND = $${PWDCMD-pwd}
24 STAMP = echo timestamp >
26 toolexecdir = $(glibgo_toolexecdir)
27 toolexeclibdir = $(glibgo_toolexeclibdir)
28 toolexeclibgodir = $(nover_glibgo_toolexeclibdir)/go/$(gcc_version)/$(target_alias)
29 libexecsubdir = $(libexecdir)/gcc/$(target_alias)/$(gcc_version)
32 LIBFFIINCS = @LIBFFIINCS@
34 LIBATOMIC = @LIBATOMIC@
36 WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
38 # -I/-D flags to pass when compiling.
39 AM_CPPFLAGS = -I $(srcdir)/runtime $(LIBFFIINCS) $(PTHREAD_CFLAGS)
41 ACLOCAL_AMFLAGS = -I ./config -I ../config
43 AM_CFLAGS = -fexceptions -fnon-call-exceptions -fplan9-extensions \
44 $(SPLIT_STACK) $(WARN_CFLAGS) \
45 $(STRINGOPS_FLAG) $(OSCFLAGS) \
46 -I $(srcdir)/../libgcc -I $(srcdir)/../libbacktrace \
47 -I $(MULTIBUILDTOP)../../gcc/include
50 AM_LDFLAGS = -XCClinker $(SPLIT_STACK)
56 # Work around what appears to be a GNU make handling MAKEFLAGS
57 # values defined in terms of make variables, as is the case for CC and
58 # friends when we are called from the top level Makefile.
60 "AR_FLAGS=$(AR_FLAGS)" \
61 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
62 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
64 "CXXFLAGS=$(CXXFLAGS)" \
65 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
66 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
67 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
69 "GOCFLAGS=$(GOCFLAGS)" \
70 "INSTALL=$(INSTALL)" \
71 "INSTALL_DATA=$(INSTALL_DATA)" \
72 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
73 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
74 "LDFLAGS=$(LDFLAGS)" \
75 "LIBCFLAGS=$(LIBCFLAGS)" \
76 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
78 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
79 "PICFLAG=$(PICFLAG)" \
80 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
82 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
83 "exec_prefix=$(exec_prefix)" \
84 "infodir=$(infodir)" \
86 "includedir=$(includedir)" \
88 "tooldir=$(tooldir)" \
89 "gxx_include_dir=$(gxx_include_dir)" \
95 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
96 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
97 "DESTDIR=$(DESTDIR)" \
100 # Subdir rules rely on $(FLAGS_TO_PASS)
101 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
104 toolexeclib_LTLIBRARIES = libgo-llgo.la
105 toolexeclib_LIBRARIES = libgobegin-llgo.a
107 toolexeclib_LTLIBRARIES = libgo.la
108 toolexeclib_LIBRARIES = libgobegin.a libgolibbegin.a libnetgo.a
111 toolexeclibgo_DATA = \
143 toolexeclibgoarchivedir = $(toolexeclibgodir)/archive
145 toolexeclibgoarchive_DATA = \
149 toolexeclibgocompressdir = $(toolexeclibgodir)/compress
151 toolexeclibgocompress_DATA = \
158 toolexeclibgocontainerdir = $(toolexeclibgodir)/container
160 toolexeclibgocontainer_DATA = \
165 toolexeclibgocryptodir = $(toolexeclibgodir)/crypto
167 toolexeclibgocrypto_DATA = \
173 crypto/elliptic.gox \
186 toolexeclibgocryptox509dir = $(toolexeclibgocryptodir)/x509
188 toolexeclibgocryptox509_DATA = \
191 toolexeclibgodatabasedir = $(toolexeclibgodir)/database
193 toolexeclibgodatabase_DATA = \
196 toolexeclibgodatabasesqldir = $(toolexeclibgodatabasedir)/sql
198 toolexeclibgodatabasesql_DATA = \
199 database/sql/driver.gox
201 toolexeclibgodebugdir = $(toolexeclibgodir)/debug
203 toolexeclibgodebug_DATA = \
211 toolexeclibgoencodingdir = $(toolexeclibgodir)/encoding
213 toolexeclibgoencoding_DATA = \
214 encoding/ascii85.gox \
216 encoding/base32.gox \
217 encoding/base64.gox \
218 encoding/binary.gox \
226 toolexeclibgoexpdir = $(toolexeclibgodir)/exp
228 toolexeclibgoexp_DATA = \
232 toolexeclibgogodir = $(toolexeclibgodir)/go
234 toolexeclibgogo_DATA = \
247 toolexeclibgohashdir = $(toolexeclibgodir)/hash
249 toolexeclibgohash_DATA = \
255 toolexeclibgohtmldir = $(toolexeclibgodir)/html
257 toolexeclibgohtml_DATA = \
260 toolexeclibgoimagedir = $(toolexeclibgodir)/image
262 toolexeclibgoimage_DATA = \
269 toolexeclibgoimagecolordir = $(toolexeclibgoimagedir)/color
271 toolexeclibgoimagecolor_DATA = \
272 image/color/palette.gox
274 toolexeclibgoindexdir = $(toolexeclibgodir)/index
276 toolexeclibgoindex_DATA = \
277 index/suffixarray.gox
279 toolexeclibgoiodir = $(toolexeclibgodir)/io
281 toolexeclibgoio_DATA = \
284 toolexeclibgologdir = $(toolexeclibgodir)/log
286 toolexeclibgolog_DATA = \
289 toolexeclibgomathdir = $(toolexeclibgodir)/math
291 toolexeclibgomath_DATA = \
296 toolexeclibgomimedir = $(toolexeclibgodir)/mime
298 toolexeclibgomime_DATA = \
300 mime/quotedprintable.gox
302 toolexeclibgonetdir = $(toolexeclibgodir)/net
304 toolexeclibgonet_DATA = \
312 toolexeclibgonethttpdir = $(toolexeclibgonetdir)/http
314 toolexeclibgonethttp_DATA = \
316 net/http/cookiejar.gox \
318 net/http/httptest.gox \
319 net/http/httptrace.gox \
320 net/http/httputil.gox \
323 toolexeclibgonetrpcdir = $(toolexeclibgonetdir)/rpc
325 toolexeclibgonetrpc_DATA = \
328 toolexeclibgoolddir = $(toolexeclibgodir)/old
330 toolexeclibgoold_DATA = \
334 toolexeclibgoosdir = $(toolexeclibgodir)/os
336 toolexeclibgoos_DATA = \
341 toolexeclibgopathdir = $(toolexeclibgodir)/path
343 toolexeclibgopath_DATA = \
346 toolexeclibgoregexpdir = $(toolexeclibgodir)/regexp
348 toolexeclibgoregexp_DATA = \
351 toolexeclibgoruntimedir = $(toolexeclibgodir)/runtime
353 toolexeclibgoruntime_DATA = \
357 toolexeclibgosyncdir = $(toolexeclibgodir)/sync
359 toolexeclibgosync_DATA = \
362 toolexeclibgotestingdir = $(toolexeclibgodir)/testing
364 toolexeclibgotesting_DATA = \
368 toolexeclibgotextdir = $(toolexeclibgodir)/text
370 toolexeclibgotext_DATA = \
375 toolexeclibgotexttemplatedir = $(toolexeclibgotextdir)/template
377 toolexeclibgotexttemplate_DATA = \
378 text/template/parse.gox
380 toolexeclibgounicodedir = $(toolexeclibgodir)/unicode
382 toolexeclibgounicode_DATA = \
387 runtime_mem_file = runtime/mem.c
389 runtime_mem_file = runtime/mem_posix_memalign.c
393 rtems_task_variable_add_file = runtime/rtems-task-variable-add.c
395 rtems_task_variable_add_file =
399 runtime_lock_files = runtime/lock_futex.c runtime/thread-linux.c
401 runtime_lock_files = runtime/lock_sema.c runtime/thread-sema.c
405 runtime_getncpu_file = runtime/getncpu-linux.c
408 runtime_getncpu_file = runtime/getncpu-bsd.c
411 runtime_getncpu_file = runtime/getncpu-irix.c
414 runtime_getncpu_file = runtime/getncpu-solaris.c
417 runtime_getncpu_file = runtime/getncpu-bsd.c
420 runtime_getncpu_file = runtime/getncpu-bsd.c
422 runtime_getncpu_file = runtime/getncpu-none.c
431 runtime_netpoll_files = runtime/netpoll_epoll.c
434 runtime_netpoll_files = runtime/netpoll_select.c
436 runtime_netpoll_files = runtime/netpoll_kqueue.c
441 runtime/go-append.c \
442 runtime/go-assert.c \
443 runtime/go-assert-interface.c \
444 runtime/go-byte-array-to-string.c \
445 runtime/go-breakpoint.c \
446 runtime/go-caller.c \
447 runtime/go-callers.c \
448 runtime/go-can-convert-interface.c \
451 runtime/go-check-interface.c \
452 runtime/go-construct-map.c \
453 runtime/go-convert-interface.c \
456 runtime/go-deferred-recover.c \
457 runtime/go-eface-compare.c \
458 runtime/go-eface-val-compare.c \
460 runtime/go-fieldtrack.c \
461 runtime/go-int-array-to-string.c \
462 runtime/go-int-to-string.c \
463 runtime/go-interface-compare.c \
464 runtime/go-interface-eface-compare.c \
465 runtime/go-interface-val-compare.c \
466 runtime/go-make-slice.c \
467 runtime/go-matherr.c \
468 runtime/go-memclr.c \
469 runtime/go-memcmp.c \
470 runtime/go-memequal.c \
471 runtime/go-memmove.c \
472 runtime/go-nanotime.c \
478 runtime/go-recover.c \
479 runtime/go-reflect-call.c \
481 runtime/go-runtime-error.c \
482 runtime/go-setenv.c \
483 runtime/go-signal.c \
484 runtime/go-strcmp.c \
485 runtime/go-string-to-byte-array.c \
486 runtime/go-string-to-int-array.c \
487 runtime/go-strplus.c \
488 runtime/go-strslice.c \
489 runtime/go-traceback.c \
490 runtime/go-type-complex.c \
491 runtime/go-type-eface.c \
492 runtime/go-type-float.c \
493 runtime/go-type-identity.c \
494 runtime/go-type-interface.c \
495 runtime/go-type-string.c \
496 runtime/go-typedesc-equal.c \
497 runtime/go-unsafe-new.c \
498 runtime/go-unsafe-newarray.c \
499 runtime/go-unsafe-pointer.c \
500 runtime/go-unsetenv.c \
501 runtime/go-unwind.c \
502 runtime/go-varargs.c \
503 runtime/env_posix.c \
505 $(runtime_lock_files) \
508 $(runtime_mem_file) \
509 runtime/mfixalloc.c \
513 $(runtime_netpoll_files) \
519 runtime/signal_unix.c \
522 $(rtems_task_variable_add_file) \
537 $(runtime_getncpu_file)
539 goc2c.$(OBJEXT): runtime/goc2c.c
540 $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
542 goc2c: goc2c.$(OBJEXT)
543 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
545 malloc.c: $(srcdir)/runtime/malloc.goc goc2c
549 mprof.c: $(srcdir)/runtime/mprof.goc goc2c
553 netpoll.c: $(srcdir)/runtime/netpoll.goc goc2c
557 reflect.c: $(srcdir)/runtime/reflect.goc goc2c
561 runtime1.c: $(srcdir)/runtime/runtime1.goc goc2c
565 sema.c: $(srcdir)/runtime/sema.goc goc2c
569 sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
570 ./goc2c --go-pkgpath os_signal $< > $@.tmp
573 time.c: $(srcdir)/runtime/time.goc goc2c
577 %.c: $(srcdir)/runtime/%.goc goc2c
581 version.go: s-version; @true
584 echo "package sys" > version.go.tmp
585 echo 'const DefaultGoroot = "$(prefix)"' >> version.go.tmp
586 echo 'const TheVersion = "'`cat $(srcdir)/VERSION | sed 1q`' '`$(GOC) --version | sed 1q`'"' >> version.go.tmp
587 echo 'const GOARCH = "'$(GOARCH)'"' >> version.go.tmp
588 echo 'const GOOS = "'$(GOOS)'"' >> version.go.tmp
589 echo 'const GccgoToolDir = "$(libexecsubdir)"' >> version.go.tmp
590 echo >> version.go.tmp
591 echo "type ArchFamilyType int" >> version.go.tmp
592 echo >> version.go.tmp
593 echo "const (" >> version.go.tmp
594 echo " UNKNOWN ArchFamilyType = iota" >> version.go.tmp
595 for a in $(ALLGOARCHFAMILY); do \
596 echo " $${a}" >> version.go.tmp; \
598 echo ")" >> version.go.tmp
599 echo >> version.go.tmp
600 for a in $(ALLGOARCH); do \
601 f=`echo $${a} | sed -e 's/\(.\).*/\1/' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`; \
602 n="$${f}`echo $${a} | sed -e 's/.//'`"; \
603 if test "$${a}" = "$(GOARCH)"; then \
604 echo "const Goarch$${n} = 1" >> version.go.tmp; \
606 echo "const Goarch$${n} = 0" >> version.go.tmp; \
609 echo >> version.go.tmp
610 echo "const (" >> version.go.tmp
611 echo " ArchFamily = $(GOARCH_FAMILY)" >> version.go.tmp
612 echo " BigEndian = $(GOARCH_BIGENDIAN)" >> version.go.tmp
613 echo " CacheLineSize = $(GOARCH_CACHELINESIZE)" >> version.go.tmp
614 echo " PhysPageSize = $(GOARCH_PHYSPAGESIZE)" >> version.go.tmp
615 echo " PCQuantum = $(GOARCH_PCQUANTUM)" >> version.go.tmp
616 echo " Int64Align = $(GOARCH_INT64ALIGN)" >> version.go.tmp
617 echo " HugePageSize = $(GOARCH_HUGEPAGESIZE)" >> version.go.tmp
618 echo " MinFrameSize = $(GOARCH_MINFRAMESIZE)" >> version.go.tmp
619 echo ")" >> version.go.tmp
620 echo >> version.go.tmp
621 for a in $(ALLGOOS); do \
622 f=`echo $${a} | sed -e 's/\(.\).*/\1/' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`; \
623 n="$${f}`echo $${a} | sed -e 's/.//'`"; \
624 if test "$${a}" = "$(GOOS)"; then \
625 echo "const Goos$${n} = 1" >> version.go.tmp; \
627 echo "const Goos$${n} = 0" >> version.go.tmp; \
630 echo >> version.go.tmp
631 echo "type Uintreg uintptr" >> version.go.tmp
632 $(SHELL) $(srcdir)/mvifdiff.sh version.go.tmp version.go
635 runtime_sysinfo.go: s-runtime_sysinfo; @true
636 s-runtime_sysinfo: sysinfo.go
637 rm -f tmp-runtime_sysinfo.go
638 echo 'package runtime' > tmp-runtime_sysinfo.go
639 echo >> tmp-runtime_sysinfo.go
640 grep 'const _sizeof_ucontext_t ' sysinfo.go >> tmp-runtime_sysinfo.go
641 grep 'type _sigset_t ' sysinfo.go >> tmp-runtime_sysinfo.go
642 $(SHELL) $(srcdir)/mvifdiff.sh tmp-runtime_sysinfo.go runtime_sysinfo.go
645 noinst_DATA = zstdpkglist.go
647 # Generate the list of go std packages that were included in libgo
648 zstdpkglist.go: s-zstdpkglist; @true
649 s-zstdpkglist: Makefile
650 rm -f zstdpkglist.go.tmp
651 echo 'package main' > zstdpkglist.go.tmp
652 echo "" >> zstdpkglist.go.tmp
653 echo 'var stdpkg = map[string]bool{' >> zstdpkglist.go.tmp
654 echo $(libgo_go_objs) 'unsafe.lo' 'runtime/cgo.lo' | sed 's/\.lo /\": true,\n/g' | sed 's/\.lo/\": true,/' | sed 's/-go//' | grep -v _c | sed 's/^/\t\"/' | sort | uniq >> zstdpkglist.go.tmp
655 echo '}' >> zstdpkglist.go.tmp
656 $(SHELL) $(srcdir)/mvifdiff.sh zstdpkglist.go.tmp zstdpkglist.go
660 syscall_epoll_file = epoll.go
665 extra_go_files_syscall = \
669 $(syscall_epoll_file)
671 libcalls.go: s-libcalls; @true
672 s-libcalls: libcalls-list go/syscall/mksyscall.awk $(srcdir)/go/syscall/*.go
673 rm -f libcalls.go.tmp
674 $(AWK) -f $(srcdir)/go/syscall/mksyscall.awk `cat libcalls-list` > libcalls.go.tmp
675 $(SHELL) $(srcdir)/mvifdiff.sh libcalls.go.tmp libcalls.go
678 libcalls-list: s-libcalls-list; @true
679 s-libcalls-list: Makefile $(srcdir)/go/syscall/*.go
680 rm -f libcalls-list.tmp
681 $(SHELL) $(srcdir)/match.sh --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/syscall $(matchargs_syscall) > libcalls-list.tmp
682 $(SHELL) $(srcdir)/mvifdiff.sh libcalls-list.tmp libcalls-list
685 syscall_arch.go: s-syscall_arch; @true
686 s-syscall_arch: Makefile
687 rm -f syscall_arch.go.tmp
688 echo "package syscall" > syscall_arch.go.tmp
689 echo 'const ARCH = "'$(GOARCH)'"' >> syscall_arch.go.tmp
690 echo 'const OS = "'$(GOOS)'"' >> syscall_arch.go.tmp
691 $(SHELL) $(srcdir)/mvifdiff.sh syscall_arch.go.tmp syscall_arch.go
695 $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
696 $(CPPFLAGS) $(OSCFLAGS) -O
698 gen-sysinfo.go: s-gen-sysinfo; @true
699 s-gen-sysinfo: $(srcdir)/sysinfo.c config.h
700 $(CC) $(SYSINFO_FLAGS) -fdump-go-spec=tmp-gen-sysinfo.go -std=gnu99 -S -o sysinfo.s $(srcdir)/sysinfo.c
702 $(SHELL) $(srcdir)/mvifdiff.sh tmp-gen-sysinfo.go gen-sysinfo.go
705 errno.i: s-errno; @true
707 echo '#include <errno.h>' | $(CC) $(SYSINFO_FLAGS) -x c - -E -dM > tmp-errno.i
708 $(SHELL) $(srcdir)/mvifdiff.sh tmp-errno.i errno.i
711 sysinfo.go: s-sysinfo; @true
712 s-sysinfo: $(srcdir)/mksysinfo.sh gen-sysinfo.go errno.i
713 $(SHELL) $(srcdir)/mksysinfo.sh
714 $(SHELL) $(srcdir)/mvifdiff.sh tmp-sysinfo.go sysinfo.go
717 # The epoll struct has an embedded union and is packed on x86_64,
718 # which is too complicated for mksysinfo.sh. We find the offset of
719 # the only field we care about in configure.ac, and generate the
721 epoll.go: s-epoll; @true
724 echo 'package syscall' > epoll.go.tmp
725 echo 'type EpollEvent struct {' >> epoll.go.tmp
726 echo ' Events uint32' >> epoll.go.tmp
727 case "$(SIZEOF_STRUCT_EPOLL_EVENT),$(STRUCT_EPOLL_EVENT_FD_OFFSET)" in \
728 0,0) echo 1>&2 "*** struct epoll_event data.fd offset unknown"; \
730 8,4) echo ' Fd int32' >> epoll.go.tmp; ;; \
731 12,4) echo ' Fd int32' >> epoll.go.tmp; \
732 echo ' Pad [4]byte' >> epoll.go.tmp; ;; \
733 12,8) echo ' Pad [4]byte' >> epoll.go.tmp; \
734 echo ' Fd int32' >> epoll.go.tmp; ;; \
735 16,8) echo ' Pad [4]byte' >> epoll.go.tmp; \
736 echo ' Fd int32' >> epoll.go.tmp; \
737 echo ' Pad2 [4]byte' >> epoll.go.tmp; ;; \
738 *) echo 1>&2 "*** struct epoll_event unsupported"; \
741 echo '}' >> epoll.go.tmp
742 $(SHELL) $(srcdir)/mvifdiff.sh epoll.go.tmp epoll.go
767 reflect/makefunc_ffi_c.lo \
809 crypto/x509/pkix.lo \
811 database/sql/driver.lo \
818 encoding/ascii85.lo \
838 go/internal/gcimporter.lo \
839 go/internal/gccgoimporter.lo \
845 golang_org/x/net/http2/hpack.lo \
846 golang_org/x/net/lex/httplex.lo \
847 $(golang_org_x_net_route_lo) \
853 net/http/cookiejar.lo \
855 net/http/httptest.lo \
856 net/http/httptrace.lo \
857 net/http/httputil.lo \
858 net/http/internal.lo \
861 image/color/palette.lo \
864 image/internal/imageutil.lo \
867 index/suffixarray.lo \
868 internal/nettrace.lo \
870 internal/singleflight.lo \
871 internal/syscall/unix.lo \
872 internal/testenv.lo \
876 log/syslog/syslog_c.lo \
881 mime/quotedprintable.lo \
883 net/internal/socktest.lo \
892 $(os_lib_inotify_lo) \
900 runtime/internal/atomic.lo \
901 runtime/internal/atomic_c.lo \
902 runtime/internal/sys.lo \
908 text/template/parse.lo \
915 -version-info $(libtool_VERSION) $(PTHREAD_CFLAGS) $(AM_LDFLAGS)
918 $(libgo_go_objs) ../libbacktrace/libbacktrace.la \
919 $(LIBATOMIC) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)
921 libgo_la_SOURCES = $(runtime_files)
922 libgo_la_LDFLAGS = $(libgo_ldflags)
923 libgo_la_LIBADD = $(libgo_libadd)
925 libgo_llgo_la_SOURCES = $(runtime_files)
926 libgo_llgo_la_LDFLAGS = $(libgo_ldflags)
927 libgo_llgo_la_LIBADD = $(libgo_libadd)
929 libgobegin_a_SOURCES = \
932 libgobegin_llgo_a_SOURCES = \
935 # Use -fPIC for libgobegin so that it can be put in a PIE.
936 libgobegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
937 libgobegin_llgo_a_CFLAGS = $(AM_CFLAGS) -fPIC
939 libgolibbegin_a_SOURCES = \
942 libgolibbegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
945 libnetgo_a_LIBADD = netgo.o
947 # Make sure runtime.inc is built before compiling any .c file.
948 $(libgo_la_OBJECTS): runtime.inc
949 $(libgo_llgo_la_OBJECTS): runtime.inc
950 $(libgobegin_a_OBJECTS): runtime.inc
951 $(libgobegin_llgo_a_OBJECTS): runtime.inc
952 $(libgolibbegin_a_OBJECTS): runtime.inc
954 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
957 AM_GOCFLAGS = $(STRINGOPS_FLAG) $(GO_SPLIT_STACK)
958 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
960 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
961 $(AM_GOCFLAGS) $(GOCFLAGS)
963 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
964 $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
966 # Build the dependencies for a Go package.
969 dir=`echo $@ | sed -e 's/.lo.dep$$//' -e 's/-go//'`; \
970 files=`$(SHELL) $(srcdir)/match.sh --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/$$dir --extrafiles="$(extra_go_files_$(subst /,_,$(subst -go,,$(subst .lo.dep,,$@))))" $(matchargs_$(subst /,_,$(subst -go,,$(subst .lo.dep,,$@))))`; \
971 $(SHELL) $(srcdir)/godeps.sh `echo $@ | sed -e 's/.dep$$//'` $$files > $@.tmp; \
972 if ! cmp $@.tmp $@ >/dev/null 2>/dev/null; then \
973 rm -f `echo $@ | sed -e 's/\.dep$$//'`; \
977 # Build the .go files for a package, generating a .lo file.
980 files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; \
981 $(LTGOCOMPILE) -I . -c -fgo-pkgpath=`echo $@ | sed -e 's/.lo$$//' -e 's/-go$$//'` $($(subst -,_,$(subst .,_,$(subst /,_,$@)))_GOCFLAGS) -o $@ $$files
983 # Build deps for netgo.o.
986 files=`$(SHELL) $(srcdir)/match.sh --nocgo --tag=netgo --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/net`; \
987 $(SHELL) $(srcdir)/godeps.sh netgo.o $$files > $@.tmp; \
993 files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; \
994 $(GOCOMPILE) -I . -c -fPIC -fgo-pkgpath=net -o $@ $$files
1001 GC="$(GOC) $(GOCFLAGS) $($(subst /,_,$@)_GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
1003 GOLIBS="$(MATH_LIBS) $(NET_LIBS) $(LIBS)"; \
1005 RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
1006 export RUNTESTFLAGS; \
1009 libgccdir=`${GOC} -print-libgcc-file-name | sed -e 's|/[^/]*$$||'`; \
1010 LD_LIBRARY_PATH="`${PWD_COMMAND}`/.libs:$${libgccdir}:${LD_LIBRARY_PATH}"; \
1011 LD_LIBRARY_PATH=`echo $${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
1012 export LD_LIBRARY_PATH; \
1014 rm -f $@-testsum $@-testlog; \
1015 files=`$(SHELL) $(srcdir)/match.sh --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/$(@D) --extrafiles="$(extra_go_files_$(subst /,_,$(@D)))" $(matchargs_$(subst /,_,$(@D)))`; \
1016 if test "$(USE_DEJAGNU)" = "yes"; then \
1017 $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" --testname="$(@D)" $(GOTESTFLAGS); \
1018 elif test "$(GOBENCH)" != ""; then \
1019 $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" --bench="$(GOBENCH)" $(GOTESTFLAGS); \
1021 if $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" $(GOTESTFLAGS) >>$@-testlog 2>&1; then \
1022 echo "PASS: $(@D)" >> $@-testlog; \
1023 echo "PASS: $(@D)"; \
1024 echo "PASS: $(@D)" > $@-testsum; \
1026 echo "FAIL: $(@D)" >> $@-testlog; \
1028 echo "FAIL: $(@D)" > $@-testsum; \
1033 # Build all packages before checking any.
1035 $(toolexeclibgo_DATA) \
1036 $(toolexeclibgoarchive_DATA) \
1037 $(toolexeclibgocompress_DATA) \
1038 $(toolexeclibgocontainer_DATA) \
1039 $(toolexeclibgocrypto_DATA) \
1040 $(toolexeclibgodebug_DATA) \
1041 $(toolexeclibgoencoding_DATA) \
1042 $(toolexeclibgoexp_DATA) \
1043 $(toolexeclibgogo_DATA) \
1044 $(toolexeclibgohash_DATA) \
1045 $(toolexeclibgoimage_DATA) \
1046 $(toolexeclibgoindex_DATA) \
1047 $(toolexeclibgoio_DATA) \
1048 $(toolexeclibgolog_DATA) \
1049 $(toolexeclibgomath_DATA) \
1050 $(toolexeclibgomime_DATA) \
1051 $(toolexeclibgonet_DATA) \
1052 $(toolexeclibgonethttp_DATA) \
1053 $(toolexeclibgoos_DATA) \
1054 $(toolexeclibgopath_DATA) \
1055 $(toolexeclibgorpc_DATA) \
1056 $(toolexeclibgoruntime_DATA) \
1057 $(toolexeclibgosync_DATA) \
1058 $(toolexeclibgotesting_DATA) \
1059 $(toolexeclibgotext_DATA) \
1060 $(toolexeclibgotexttemplate_DATA) \
1061 $(toolexeclibgounicode_DATA)
1064 CHECK_DEPS += libgo-llgo.la libgobegin-llgo.a
1066 CHECK_DEPS += libgo.la libgobegin.a
1069 @go_include@ bufio.lo.dep
1070 bufio.lo.dep: $(srcdir)/go/bufio/*.go
1074 bufio/check: $(CHECK_DEPS)
1078 @go_include@ bytes.lo.dep
1079 bytes.lo.dep: $(srcdir)/go/bytes/*.go
1083 bytes/index.lo: go/bytes/indexbyte.c runtime.inc
1085 $(LTCOMPILE) -c -o bytes/index.lo $(srcdir)/go/bytes/indexbyte.c
1086 bytes/check: $(CHECK_DEPS)
1090 @go_include@ context.lo.dep
1091 context.lo.dep: $(srcdir)/go/context/*.go
1095 context/check: $(CHECK_DEPS)
1097 .PHONY: context/check
1099 @go_include@ crypto.lo.dep
1100 crypto.lo.dep: $(srcdir)/go/crypto/*.go
1104 crypto/check: $(CHECK_DEPS)
1106 .PHONY: crypto/check
1108 @go_include@ encoding.lo.dep
1109 encoding.lo.dep: $(srcdir)/go/encoding/*.go
1113 encoding/check: $(CHECK_DEPS)
1115 .PHONY: encoding/check
1117 @go_include@ errors.lo.dep
1118 errors.lo.dep: $(srcdir)/go/errors/*.go
1122 errors/check: $(CHECK_DEPS)
1124 .PHONY: errors/check
1126 @go_include@ expvar.lo.dep
1127 expvar.lo.dep: $(srcdir)/go/expvar/*.go
1131 expvar/check: $(CHECK_DEPS)
1133 .PHONY: expvar/check
1135 @go_include@ flag.lo.dep
1136 flag.lo.dep: $(srcdir)/go/flag/*.go
1140 flag/check: $(CHECK_DEPS)
1144 @go_include@ fmt.lo.dep
1145 fmt.lo.dep: $(srcdir)/go/fmt/*.go
1149 fmt/check: $(CHECK_DEPS)
1153 @go_include@ hash.lo.dep
1154 hash.lo.dep: $(srcdir)/go/hash/*.go
1158 hash/check: $(CHECK_DEPS)
1162 @go_include@ html.lo.dep
1163 html.lo.dep: $(srcdir)/go/html/*.go
1167 html/check: $(CHECK_DEPS)
1171 @go_include@ image.lo.dep
1172 image.lo.dep: $(srcdir)/go/image/*.go
1176 image/check: $(CHECK_DEPS)
1180 @go_include@ io.lo.dep
1181 io.lo.dep: $(srcdir)/go/io/*.go
1185 io/check: $(CHECK_DEPS)
1189 @go_include@ log.lo.dep
1190 log.lo.dep: $(srcdir)/go/log/*.go
1194 log/check: $(CHECK_DEPS)
1198 @go_include@ math.lo.dep
1199 math.lo.dep: $(srcdir)/go/math/*.go
1203 files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
1204 $(LTGOCOMPILE) $(MATH_FLAG) -I . -c -fgo-pkgpath=math -o $@ $$files
1205 math/check: $(CHECK_DEPS)
1209 @go_include@ mime.lo.dep
1210 mime.lo.dep: $(srcdir)/go/mime/*.go
1214 mime/check: $(CHECK_DEPS)
1218 @go_include@ net.lo.dep
1219 net.lo.dep: $(srcdir)/go/net/*.go
1223 net/check: $(CHECK_DEPS)
1227 @go_include@ netgo.o.dep
1228 netgo.o.dep: $(srcdir)/go/net/*.go
1230 netgo.o: netgo.o.dep
1234 if HAVE_STAT_TIMESPEC
1235 matchargs_os = --tag=solaristag
1243 @go_include@ os.lo.dep
1244 os.lo.dep: $(srcdir)/go/os/*.go
1248 os/check: $(CHECK_DEPS)
1252 @go_include@ path.lo.dep
1253 path.lo.dep: $(srcdir)/go/path/*.go
1257 path/check: $(CHECK_DEPS)
1261 @go_include@ reflect-go.lo.dep
1262 reflect-go.lo.dep: $(srcdir)/go/reflect/*.go
1266 reflect/check: $(CHECK_DEPS)
1268 reflect/makefunc_ffi_c.lo: go/reflect/makefunc_ffi_c.c runtime.inc
1270 $(LTCOMPILE) -c -o $@ $<
1271 .PHONY: reflect/check
1273 @go_include@ regexp.lo.dep
1274 regexp.lo.dep: $(srcdir)/go/regexp/*.go
1278 regexp/check: $(CHECK_DEPS)
1280 .PHONY: regexp/check
1282 extra_go_files_runtime = runtime_sysinfo.go
1284 @go_include@ runtime-go.lo.dep
1285 runtime-go.lo.dep: $(srcdir)/go/runtime/*.go $(extra_go_files_runtime)
1287 runtime_go_lo_GOCFLAGS = -fgo-c-header=runtime.inc.tmp -fgo-compiling-runtime
1290 runtime.inc: s-runtime-inc; @true
1291 s-runtime-inc: runtime-go.lo
1292 $(SHELL) $(srcdir)/mvifdiff.sh runtime.inc.tmp runtime.inc
1294 runtime_check_GOCFLAGS = -fgo-compiling-runtime
1295 runtime/check: $(CHECK_DEPS)
1297 .PHONY: runtime/check
1299 @go_include@ sort.lo.dep
1300 sort.lo.dep: $(srcdir)/go/sort/*.go
1304 sort/check: $(CHECK_DEPS)
1308 @go_include@ strconv.lo.dep
1309 strconv.lo.dep: $(srcdir)/go/strconv/*.go
1313 strconv/check: $(CHECK_DEPS)
1315 .PHONY: strconv/check
1317 @go_include@ strings.lo.dep
1318 strings.lo.dep: $(srcdir)/go/strings/*.go
1322 strings/index.lo: go/strings/indexbyte.c runtime.inc
1324 $(LTCOMPILE) -c -o strings/index.lo $(srcdir)/go/strings/indexbyte.c
1325 strings/check: $(CHECK_DEPS)
1327 .PHONY: strings/check
1329 @go_include@ sync.lo.dep
1330 sync.lo.dep: $(srcdir)/go/sync/*.go
1334 sync/check: $(CHECK_DEPS)
1338 @go_include@ testing.lo.dep
1339 testing.lo.dep: $(srcdir)/go/testing/*.go
1343 testing/check: $(CHECK_DEPS)
1345 .PHONY: testing/check
1347 @go_include@ time-go.lo.dep
1348 time-go.lo.dep: $(srcdir)/go/time/*.go
1352 time/check: $(CHECK_DEPS)
1356 @go_include@ unicode.lo.dep
1357 unicode.lo.dep: $(srcdir)/go/unicode/*.go
1361 unicode/check: $(CHECK_DEPS)
1363 .PHONY: unicode/check
1365 @go_include@ archive/tar.lo.dep
1366 archive/tar.lo.dep: $(srcdir)/go/archive/tar/*.go
1370 archive/tar/check: $(CHECK_DEPS)
1372 .PHONY: archive/tar/check
1374 @go_include@ archive/zip.lo.dep
1375 archive/zip.lo.dep: $(srcdir)/go/archive/zip/*.go
1379 archive/zip/check: $(CHECK_DEPS)
1381 .PHONY: archive/zip/check
1383 @go_include@ compress/bzip2.lo.dep
1384 compress/bzip2.lo.dep: $(srcdir)/go/compress/bzip2/*.go
1388 compress/bzip2/check: $(CHECK_DEPS)
1390 .PHONY: compress/bzip2/check
1392 @go_include@ compress/flate.lo.dep
1393 compress/flate.lo.dep: $(srcdir)/go/compress/flate/*.go
1397 compress/flate/check: $(CHECK_DEPS)
1399 .PHONY: compress/flate/check
1401 @go_include@ compress/gzip.lo.dep
1402 compress/gzip.lo.dep: $(srcdir)/go/compress/gzip/*.go
1406 compress/gzip/check: $(CHECK_DEPS)
1408 .PHONY: compress/gzip/check
1410 @go_include@ compress/lzw.lo.dep
1411 compress/lzw.lo.dep: $(srcdir)/go/compress/lzw/*.go
1415 compress/lzw/check: $(CHECK_DEPS)
1417 .PHONY: compress/lzw/check
1419 @go_include@ compress/zlib.lo.dep
1420 compress/zlib.lo.dep: $(srcdir)/go/compress/zlib/*.go
1424 compress/zlib/check: $(CHECK_DEPS)
1426 .PHONY: compress/zlib/check
1428 @go_include@ container/heap.lo.dep
1429 container/heap.lo.dep: $(srcdir)/go/container/heap/*.go
1433 container/heap/check: $(CHECK_DEPS)
1435 .PHONY: container/heap/check
1437 @go_include@ container/list.lo.dep
1438 container/list.lo.dep: $(srcdir)/go/container/list/*.go
1442 container/list/check: $(CHECK_DEPS)
1444 .PHONY: container/list/check
1446 @go_include@ container/ring.lo.dep
1447 container/ring.lo.dep: $(srcdir)/go/container/ring/*.go
1451 container/ring/check: $(CHECK_DEPS)
1453 .PHONY: container/ring/check
1455 @go_include@ crypto/aes.lo.dep
1456 crypto/aes.lo.dep: $(srcdir)/go/crypto/aes/*.go
1460 crypto/aes/check: $(CHECK_DEPS)
1462 .PHONY: crypto/aes/check
1464 @go_include@ crypto/cipher.lo.dep
1465 crypto/cipher.lo.dep: $(srcdir)/go/crypto/cipher/*.go
1469 crypto/cipher/check: $(CHECK_DEPS)
1471 .PHONY: crypto/cipher/check
1473 @go_include@ crypto/des.lo.dep
1474 crypto/des.lo.dep: $(srcdir)/go/crypto/des/*.go
1478 crypto/des/check: $(CHECK_DEPS)
1480 .PHONY: crypto/des/check
1482 @go_include@ crypto/dsa.lo.dep
1483 crypto/dsa.lo.dep: $(srcdir)/go/crypto/dsa/*.go
1487 crypto/dsa/check: $(CHECK_DEPS)
1489 .PHONY: crypto/dsa/check
1491 @go_include@ crypto/ecdsa.lo.dep
1492 crypto/ecdsa.lo.dep: $(srcdir)/go/crypto/ecdsa/*.go
1496 crypto/ecdsa/check: $(CHECK_DEPS)
1498 .PHONY: crypto/ecdsa/check
1500 @go_include@ crypto/elliptic.lo.dep
1501 crypto/elliptic.lo.dep: $(srcdir)/go/crypto/elliptic/*.go
1505 crypto/elliptic/check: $(CHECK_DEPS)
1507 .PHONY: crypto/elliptic/check
1509 @go_include@ crypto/hmac.lo.dep
1510 crypto/hmac.lo.dep: $(srcdir)/go/crypto/hmac/*.go
1514 crypto/hmac/check: $(CHECK_DEPS)
1516 .PHONY: crypto/hmac/check
1518 @go_include@ crypto/md5.lo.dep
1519 crypto/md5.lo.dep: $(srcdir)/go/crypto/md5/*.go
1523 crypto/md5/check: $(CHECK_DEPS)
1525 .PHONY: crypto/md5/check
1527 @go_include@ crypto/rand.lo.dep
1528 crypto/rand.lo.dep: $(srcdir)/go/crypto/rand/*.go
1532 crypto/rand/check: $(CHECK_DEPS)
1534 .PHONY: crypto/rand/check
1536 @go_include@ crypto/rc4.lo.dep
1537 crypto/rc4.lo.dep: $(srcdir)/go/crypto/rc4/*.go
1541 crypto/rc4/check: $(CHECK_DEPS)
1543 .PHONY: crypto/rc4/check
1545 @go_include@ crypto/rsa.lo.dep
1546 crypto/rsa.lo.dep: $(srcdir)/go/crypto/rsa/*.go
1550 crypto/rsa/check: $(CHECK_DEPS)
1552 .PHONY: crypto/rsa/check
1554 @go_include@ crypto/sha1.lo.dep
1555 crypto/sha1.lo.dep: $(srcdir)/go/crypto/sha1/*.go
1559 crypto/sha1/check: $(CHECK_DEPS)
1561 .PHONY: crypto/sha1/check
1563 @go_include@ crypto/sha256.lo.dep
1564 crypto/sha256.lo.dep: $(srcdir)/go/crypto/sha256/*.go
1568 crypto/sha256/check: $(CHECK_DEPS)
1570 .PHONY: crypto/sha256/check
1572 @go_include@ crypto/sha512.lo.dep
1573 crypto/sha512.lo.dep: $(srcdir)/go/crypto/sha512/*.go
1577 crypto/sha512/check: $(CHECK_DEPS)
1579 .PHONY: crypto/sha512/check
1581 @go_include@ crypto/subtle.lo.dep
1582 crypto/subtle.lo.dep: $(srcdir)/go/crypto/subtle/*.go
1586 crypto/subtle/check: $(CHECK_DEPS)
1588 .PHONY: crypto/subtle/check
1590 @go_include@ crypto/tls.lo.dep
1591 crypto/tls.lo.dep: $(srcdir)/go/crypto/tls/*.go
1595 crypto/tls/check: $(CHECK_DEPS)
1597 .PHONY: crypto/tls/check
1599 @go_include@ crypto/x509.lo.dep
1600 crypto/x509.lo.dep: $(srcdir)/go/crypto/x509/*.go
1604 crypto/x509/check: $(CHECK_DEPS)
1606 .PHONY: crypto/x509/check
1608 @go_include@ crypto/x509/pkix.lo.dep
1609 crypto/x509/pkix.lo.dep: $(srcdir)/go/crypto/x509/pkix/*.go
1611 crypto/x509/pkix.lo:
1613 crypto/x509/pkix/check: $(CHECK_DEPS)
1615 .PHONY: crypto/x509/pkix/check
1617 @go_include@ database/sql.lo.dep
1618 database/sql.lo.dep: $(srcdir)/go/database/sql/*.go
1622 database/sql/check: $(CHECK_DEPS)
1624 .PHONY: database/sql/check
1626 @go_include@ database/sql/driver.lo.dep
1627 database/sql/driver.lo.dep: $(srcdir)/go/database/sql/driver/*.go
1629 database/sql/driver.lo:
1631 database/sql/driver/check: $(CHECK_DEPS)
1633 .PHONY: database/sql/driver/check
1635 @go_include@ debug/dwarf.lo.dep
1636 debug/dwarf.lo.dep: $(srcdir)/go/debug/dwarf/*.go
1640 debug/dwarf/check: $(CHECK_DEPS)
1642 .PHONY: debug/dwarf/check
1644 @go_include@ debug/elf.lo.dep
1645 debug/elf.lo.dep: $(srcdir)/go/debug/elf/*.go
1649 debug/elf/check: $(CHECK_DEPS)
1651 .PHONY: debug/elf/check
1653 @go_include@ debug/gosym.lo.dep
1654 debug/gosym.lo.dep: $(srcdir)/go/debug/gosym/*.go
1658 debug/gosym/check: $(CHECK_DEPS)
1660 .PHONY: debug/gosym/check
1662 @go_include@ debug/macho.lo.dep
1663 debug/macho.lo.dep: $(srcdir)/go/debug/macho/*.go
1667 debug/macho/check: $(CHECK_DEPS)
1669 .PHONY: debug/macho/check
1671 @go_include@ debug/pe.lo.dep
1672 debug/pe.lo.dep: $(srcdir)/go/debug/pe/*.go
1676 debug/pe/check: $(CHECK_DEPS)
1678 .PHONY: debug/pe/check
1680 @go_include@ debug/plan9obj.lo.dep
1681 debug/plan9obj.lo.dep: $(srcdir)/go/debug/plan9obj/*.go
1685 debug/plan9obj/check: $(CHECK_DEPS)
1687 .PHONY: debug/plan9obj/check
1689 @go_include@ encoding/asn1.lo.dep
1690 encoding/asn1.lo.dep: $(srcdir)/go/encoding/asn1/*.go
1694 encoding/asn1/check: $(CHECK_DEPS)
1696 .PHONY: encoding/asn1/check
1698 @go_include@ encoding/ascii85.lo.dep
1699 encoding/ascii85.lo.dep: $(srcdir)/go/encoding/ascii85/*.go
1701 encoding/ascii85.lo:
1703 encoding/ascii85/check: $(CHECK_DEPS)
1705 .PHONY: encoding/ascii85/check
1707 @go_include@ encoding/base32.lo.dep
1708 encoding/base32.lo.dep: $(srcdir)/go/encoding/base32/*.go
1712 encoding/base32/check: $(CHECK_DEPS)
1714 .PHONY: encoding/base32/check
1716 @go_include@ encoding/base64.lo.dep
1717 encoding/base64.lo.dep: $(srcdir)/go/encoding/base64/*.go
1721 encoding/base64/check: $(CHECK_DEPS)
1723 .PHONY: encoding/base64/check
1725 @go_include@ encoding/binary.lo.dep
1726 encoding/binary.lo.dep: $(srcdir)/go/encoding/binary/*.go
1730 encoding/binary/check: $(CHECK_DEPS)
1732 .PHONY: encoding/binary/check
1734 @go_include@ encoding/csv.lo.dep
1735 encoding/csv.lo.dep: $(srcdir)/go/encoding/csv/*.go
1739 encoding/csv/check: $(CHECK_DEPS)
1741 .PHONY: encoding/csv/check
1743 @go_include@ encoding/gob.lo.dep
1744 encoding/gob.lo.dep: $(srcdir)/go/encoding/gob/*.go
1748 encoding/gob/check: $(CHECK_DEPS)
1750 .PHONY: encoding/gob/check
1752 @go_include@ encoding/hex.lo.dep
1753 encoding/hex.lo.dep: $(srcdir)/go/encoding/hex/*.go
1757 encoding/hex/check: $(CHECK_DEPS)
1759 .PHONY: encoding/hex/check
1761 @go_include@ encoding/json.lo.dep
1762 encoding/json.lo.dep: $(srcdir)/go/encoding/json/*.go
1766 encoding/json/check: $(CHECK_DEPS)
1768 .PHONY: encoding/json/check
1770 @go_include@ encoding/pem.lo.dep
1771 encoding/pem.lo.dep: $(srcdir)/go/encoding/pem/*.go
1775 encoding/pem/check: $(CHECK_DEPS)
1777 .PHONY: encoding/pem/check
1779 @go_include@ encoding/xml.lo.dep
1780 encoding/xml.lo.dep: $(srcdir)/go/encoding/xml/*.go
1784 encoding/xml/check: $(CHECK_DEPS)
1786 .PHONY: encoding/xml/check
1788 @go_include@ exp/proxy.lo.dep
1789 exp/proxy.lo.dep: $(srcdir)/go/exp/proxy/*.go
1793 exp/proxy/check: $(CHECK_DEPS)
1795 .PHONY: exp/proxy/check
1797 @go_include@ exp/terminal.lo.dep
1798 exp/terminal.lo.dep: $(srcdir)/go/exp/terminal/*.go
1802 exp/terminal/check: $(CHECK_DEPS)
1804 .PHONY: exp/terminal/check
1806 @go_include@ html/template.lo.dep
1807 html/template.lo.dep: $(srcdir)/go/html/template/*.go
1811 html/template/check: $(CHECK_DEPS)
1813 .PHONY: html/template/check
1815 @go_include@ go/ast.lo.dep
1816 go/ast.lo.dep: $(srcdir)/go/go/ast/*.go
1820 go/ast/check: $(CHECK_DEPS)
1822 .PHONY: go/ast/check
1824 @go_include@ go/build.lo.dep
1825 go/build.lo.dep: $(srcdir)/go/go/build/*.go
1829 go/build/check: $(CHECK_DEPS)
1831 .PHONY: go/build/check
1833 @go_include@ go/constant.lo.dep
1834 go/constant.lo.dep: $(srcdir)/go/go/constant/*.go
1838 go/constant/check: $(CHECK_DEPS)
1840 .PHONY: go/constant/check
1842 @go_include@ go/doc.lo.dep
1843 go/doc.lo.dep: $(srcdir)/go/go/doc/*.go
1847 go/doc/check: $(CHECK_DEPS)
1849 .PHONY: go/doc/check
1851 @go_include@ go/format.lo.dep
1852 go/format.lo.dep: $(srcdir)/go/go/format/*.go
1856 go/format/check: $(CHECK_DEPS)
1858 .PHONY: go/format/check
1860 @go_include@ go/importer.lo.dep
1861 go/importer.lo.dep: $(srcdir)/go/go/importer/*.go
1865 go/importer/check: $(CHECK_DEPS)
1867 .PHONY: go/importer/check
1869 @go_include@ go/parser.lo.dep
1870 go/parser.lo.dep: $(srcdir)/go/go/parser/*.go
1874 go/parser/check: $(CHECK_DEPS)
1876 .PHONY: go/parser/check
1878 @go_include@ go/printer.lo.dep
1879 go/printer.lo.dep: $(srcdir)/go/go/printer/*.go
1883 go/printer/check: $(CHECK_DEPS)
1885 .PHONY: go/printer/check
1887 @go_include@ go/scanner.lo.dep
1888 go/scanner.lo.dep: $(srcdir)/go/go/scanner/*.go
1892 go/scanner/check: $(CHECK_DEPS)
1894 .PHONY: go/scanner/check
1896 @go_include@ go/token.lo.dep
1897 go/token.lo.dep: $(srcdir)/go/go/token/*.go
1901 go/token/check: $(CHECK_DEPS)
1903 .PHONY: go/token/check
1905 @go_include@ go/types.lo.dep
1906 go/types.lo.dep: $(srcdir)/go/go/types/*.go
1910 go/types/check: $(CHECK_DEPS)
1912 .PHONY: go/types/check
1914 @go_include@ go/internal/gcimporter.lo.dep
1915 go/internal/gcimporter.lo.dep: $(srcdir)/go/go/internal/gcimporter/*.go
1917 go/internal/gcimporter.lo:
1919 go/internal/gcimporter/check: $(CHECK_DEPS)
1921 .PHONY: go/internal/gcimporter/check
1923 @go_include@ go/internal/gccgoimporter.lo.dep
1924 go/internal/gccgoimporter.lo.dep: $(srcdir)/go/go/internal/gccgoimporter/*.go
1926 go/internal/gccgoimporter.lo:
1928 go/internal/gccgoimporter/check: $(CHECK_DEPS)
1930 .PHONY: go/internal/gccgoimporter/check
1932 @go_include@ golang_org/x/net/http2/hpack.lo.dep
1933 golang_org/x/net/http2/hpack.lo.dep: $(srcdir)/go/golang_org/x/net/http2/hpack/*.go
1935 golang_org/x/net/http2/hpack.lo:
1937 golang_org/x/net/http2/hpack/check: $(CHECK_DEPS)
1939 .PHONY: golang_org/x/net/http2/hpack/check
1941 @go_include@ golang_org/x/net/lex/httplex.lo.dep
1942 golang_org/x/net/lex/httplex.lo.dep: $(srcdir)/go/golang_org/x/net/lex/httplex/*.go
1944 golang_org/x/net/lex/httplex.lo:
1946 golang_org/x/net/lex/httplex/check: $(CHECK_DEPS)
1948 .PHONY: golang_org/x/net/lex/httplex/check
1952 golang_org_x_net_route_lo = \
1953 golang_org/x/net/route/route.lo
1954 golang_org_x_net_route_check = \
1955 golang_org/x/net/route/check
1957 @go_include@ golang_org/x/net/route.lo.dep
1958 golang_org/x/net/route.lo.dep: $(srcdir)/go/golang_org/x/net/route/*.go
1960 golang_org/x/net/route.lo:
1962 golang_org/x/net/route/check: $(CHECK_DEPS)
1967 .PHONY: golang_org/x/net/route/check
1969 @go_include@ hash/adler32.lo.dep
1970 hash/adler32.lo.dep: $(srcdir)/go/hash/adler32/*.go
1974 hash/adler32/check: $(CHECK_DEPS)
1976 .PHONY: hash/adler32/check
1978 @go_include@ hash/crc32.lo.dep
1979 hash/crc32.lo.dep: $(srcdir)/go/hash/crc32/*.go
1983 hash/crc32/check: $(CHECK_DEPS)
1985 .PHONY: hash/crc32/check
1987 @go_include@ hash/crc64.lo.dep
1988 hash/crc64.lo.dep: $(srcdir)/go/hash/crc64/*.go
1992 hash/crc64/check: $(CHECK_DEPS)
1994 .PHONY: hash/crc64/check
1996 @go_include@ hash/fnv.lo.dep
1997 hash/fnv.lo.dep: $(srcdir)/go/hash/fnv/*.go
2001 hash/fnv/check: $(CHECK_DEPS)
2003 .PHONY: hash/fnv/check
2005 @go_include@ image/color.lo.dep
2006 image/color.lo.dep: $(srcdir)/go/image/color/*.go
2010 image/color/check: $(CHECK_DEPS)
2012 .PHONY: image/color/check
2014 @go_include@ image/color/palette.lo.dep
2015 image/color/palette.lo.dep: $(srcdir)/go/image/color/palette/*.go
2017 image/color/palette.lo:
2019 image/color/palette/check: $(CHECK_DEPS)
2021 .PHONY: image/color/palette/check
2023 @go_include@ image/draw.lo.dep
2024 image/draw.lo.dep: $(srcdir)/go/image/draw/*.go
2028 image/draw/check: $(CHECK_DEPS)
2030 .PHONY: image/draw/check
2032 @go_include@ image/gif.lo.dep
2033 image/gif.lo.dep: $(srcdir)/go/image/gif/*.go
2037 image/gif/check: $(CHECK_DEPS)
2039 .PHONY: image/gif/check
2041 @go_include@ image/internal/imageutil.lo.dep
2042 image/internal/imageutil.lo.dep: $(srcdir)/go/image/internal/imageutil/*.go
2044 image/internal/imageutil.lo:
2046 image/internal/imageutil/check: $(CHECK_DEPS)
2048 .PHONY: image/internal/imageutil/check
2050 @go_include@ image/jpeg.lo.dep
2051 image/jpeg.lo.dep: $(srcdir)/go/image/jpeg/*.go
2055 image/jpeg/check: $(CHECK_DEPS)
2057 .PHONY: image/jpeg/check
2059 @go_include@ image/png.lo.dep
2060 image/png.lo.dep: $(srcdir)/go/image/png/*.go
2064 image/png/check: $(CHECK_DEPS)
2066 .PHONY: image/png/check
2068 @go_include@ index/suffixarray.lo.dep
2069 index/suffixarray.lo.dep: $(srcdir)/go/index/suffixarray/*.go
2071 index/suffixarray.lo:
2073 index/suffixarray/check: $(CHECK_DEPS)
2075 .PHONY: index/suffixarray/check
2077 @go_include@ internal/nettrace.lo.dep
2078 internal/nettrace.lo.dep: $(srcdir)/go/internal/nettrace/*.go
2080 internal/nettrace.lo:
2082 internal/nettrace/check: $(CHECK_DEPS)
2084 .PHONY: internal/nettrace/check
2086 @go_include@ internal/race.lo.dep
2087 internal/race.lo.dep: $(srcdir)/go/internal/race/*.go
2091 internal/race/check: $(CHECK_DEPS)
2093 .PHONY: internal/race/check
2095 @go_include@ internal/singleflight.lo.dep
2096 internal/singleflight.lo.dep: $(srcdir)/go/internal/singleflight/*.go
2098 internal/singleflight.lo:
2100 internal/singleflight/check: $(CHECK_DEPS)
2102 .PHONY: internal/singleflight/check
2104 @go_include@ internal/syscall/unix.lo.dep
2105 internal/syscall/unix.lo.dep: $(srcdir)/go/internal/syscall/unix/*.go
2107 internal/syscall/unix.lo:
2109 internal/syscall/unix/check: $(CHECK_DEPS)
2111 .PHONY: internal/syscall/unix/check
2113 @go_include@ internal/testenv.lo.dep
2114 internal/testenv.lo.dep: $(srcdir)/go/internal/testenv/*.go
2116 internal/testenv.lo:
2118 internal/testenv/check: $(CHECK_DEPS)
2120 .PHONY: internal/testenv/check
2122 @go_include@ internal/trace.lo.dep
2123 internal/trace.lo.dep: $(srcdir)/go/internal/trace/*.go
2127 internal/trace/check: $(CHECK_DEPS)
2129 .PHONY: internal/trace/check
2131 @go_include@ io/ioutil.lo.dep
2132 io/ioutil.lo.dep: $(srcdir)/go/io/ioutil/*.go
2136 io/ioutil/check: $(CHECK_DEPS)
2138 .PHONY: io/ioutil/check
2140 @go_include@ log/syslog.lo.dep
2141 log/syslog.lo.dep: $(srcdir)/go/log/syslog/*.go
2145 log/syslog/syslog_c.lo: go/log/syslog/syslog_c.c runtime.inc log/syslog.lo
2146 @$(MKDIR_P) log/syslog
2147 $(LTCOMPILE) -c -o $@ $(srcdir)/go/log/syslog/syslog_c.c
2148 log/syslog/check: $(CHECK_DEPS)
2150 .PHONY: log/syslog/check
2152 @go_include@ math/big.lo.dep
2153 math/big.lo.dep: $(srcdir)/go/math/big/*.go
2157 math/big/check: $(CHECK_DEPS)
2159 .PHONY: math/big/check
2161 @go_include@ math/cmplx.lo.dep
2162 math/cmplx.lo.dep: $(srcdir)/go/math/cmplx/*.go
2166 math/cmplx/check: $(CHECK_DEPS)
2168 .PHONY: math/cmplx/check
2170 @go_include@ math/rand.lo.dep
2171 math/rand.lo.dep: $(srcdir)/go/math/rand/*.go
2175 math/rand/check: $(CHECK_DEPS)
2177 .PHONY: math/rand/check
2179 @go_include@ mime/multipart.lo.dep
2180 mime/multipart.lo.dep: $(srcdir)/go/mime/multipart/*.go
2184 mime/multipart/check: $(CHECK_DEPS)
2186 .PHONY: mime/multipart/check
2188 @go_include@ mime/quotedprintable.lo.dep
2189 mime/quotedprintable.lo.dep: $(srcdir)/go/mime/quotedprintable/*.go
2191 mime/quotedprintable.lo:
2193 mime/quotedprintable/check: $(CHECK_DEPS)
2195 .PHONY: mime/quotedprintable/check
2197 @go_include@ net/http.lo.dep
2198 net/http.lo.dep: $(srcdir)/go/net/http/*.go
2202 net/http/check: $(CHECK_DEPS)
2204 .PHONY: net/http/check
2206 @go_include@ net/mail.lo.dep
2207 net/mail.lo.dep: $(srcdir)/go/net/mail/*.go
2211 net/mail/check: $(CHECK_DEPS)
2213 .PHONY: net/mail/check
2215 @go_include@ net/rpc.lo.dep
2216 net/rpc.lo.dep: $(srcdir)/go/net/rpc/*.go
2220 net/rpc/check: $(CHECK_DEPS)
2222 .PHONY: net/rpc/check
2224 @go_include@ net/smtp.lo.dep
2225 net/smtp.lo.dep: $(srcdir)/go/net/smtp/*.go
2229 net/smtp/check: $(CHECK_DEPS)
2231 .PHONY: net/smtp/check
2233 @go_include@ net/url.lo.dep
2234 net/url.lo.dep: $(srcdir)/go/net/url/*.go
2238 net/url/check: $(CHECK_DEPS)
2240 .PHONY: net/url/check
2242 @go_include@ net/textproto.lo.dep
2243 net/textproto.lo.dep: $(srcdir)/go/net/textproto/*.go
2247 net/textproto/check: $(CHECK_DEPS)
2249 .PHONY: net/textproto/check
2251 @go_include@ net/http/cgi.lo.dep
2252 net/http/cgi.lo.dep: $(srcdir)/go/net/http/cgi/*.go
2256 net/http/cgi/check: $(CHECK_DEPS)
2258 .PHONY: net/http/cgi/check
2260 @go_include@ net/http/cookiejar.lo.dep
2261 net/http/cookiejar.lo.dep: $(srcdir)/go/net/http/cookiejar/*.go
2263 net/http/cookiejar.lo:
2265 net/http/cookiejar/check: $(CHECK_DEPS)
2267 .PHONY: net/http/cookiejar/check
2269 @go_include@ net/http/fcgi.lo.dep
2270 net/http/fcgi.lo.dep: $(srcdir)/go/net/http/fcgi/*.go
2274 net/http/fcgi/check: $(CHECK_DEPS)
2276 .PHONY: net/http/fcgi/check
2278 @go_include@ net/http/httptest.lo.dep
2279 net/http/httptest.lo.dep: $(srcdir)/go/net/http/httptest/*.go
2281 net/http/httptest.lo:
2283 net/http/httptest/check: $(check_deps)
2285 .PHONY: net/http/httptest/check
2287 @go_include@ net/http/httptrace.lo.dep
2288 net/http/httptrace.lo.dep: $(srcdir)/go/net/http/httptrace/*.go
2290 net/http/httptrace.lo:
2292 net/http/httptrace/check: $(check_deps)
2294 .PHONY: net/http/httptrace/check
2296 @go_include@ net/http/httputil.lo.dep
2297 net/http/httputil.lo.dep: $(srcdir)/go/net/http/httputil/*.go
2299 net/http/httputil.lo:
2301 net/http/httputil/check: $(check_deps)
2303 .PHONY: net/http/httputil/check
2305 @go_include@ net/http/internal.lo.dep
2306 net/http/internal.lo.dep: $(srcdir)/go/net/http/internal/*.go
2308 net/http/internal.lo:
2310 net/http/internal/check: $(CHECK_DEPS)
2312 .PHONY: net/http/internal/check
2314 @go_include@ net/http/pprof.lo.dep
2315 net/http/pprof.lo.dep: $(srcdir)/go/net/http/pprof/*.go
2319 net/http/pprof/check: $(CHECK_DEPS)
2321 .PHONY: net/http/pprof/check
2323 @go_include@ net/internal/socktest.lo.dep
2324 net/internal/socktest.lo.dep: $(srcdir)/go/net/internal/socktest/*.go
2326 net/internal/socktest.lo:
2328 net/internal/socktest/check: $(CHECK_DEPS)
2330 .PHONY: net/internal/socktest/check
2332 @go_include@ net/rpc/jsonrpc.lo.dep
2333 net/rpc/jsonrpc.lo.dep: $(srcdir)/go/net/rpc/jsonrpc/*.go
2337 net/rpc/jsonrpc/check: $(CHECK_DEPS)
2339 .PHONY: net/rpc/jsonrpc/check
2341 @go_include@ old/regexp.lo.dep
2342 old/regexp.lo.dep: $(srcdir)/go/old/regexp/*.go
2346 old/regexp/check: $(CHECK_DEPS)
2348 .PHONY: old/regexp/check
2350 @go_include@ old/template.lo.dep
2351 old/template.lo.dep: $(srcdir)/go/old/template/*.go
2355 old/template/check: $(CHECK_DEPS)
2357 .PHONY: old/template/check
2359 @go_include@ os/exec.lo.dep
2360 os/exec.lo.dep: $(srcdir)/go/os/exec/*.go
2364 os/exec/check: $(CHECK_DEPS)
2366 .PHONY: os/exec/check
2368 @go_include@ os/signal.lo.dep
2369 os/signal.lo.dep: $(srcdir)/go/os/signal/*.go
2373 os/signal/check: $(CHECK_DEPS)
2375 .PHONY: os/signal/check
2377 @go_include@ os/user.lo.dep
2378 os/user.lo.dep: $(srcdir)/go/os/user/*.go
2382 os/user/check: $(CHECK_DEPS)
2384 .PHONY: os/user/check
2386 @go_include@ path/filepath.lo.dep
2387 path/filepath.lo.dep: $(srcdir)/go/path/filepath/*.go
2391 path/filepath/check: $(CHECK_DEPS)
2393 .PHONY: path/filepath/check
2395 @go_include@ regexp/syntax.lo.dep
2396 regexp/syntax.lo.dep: $(srcdir)/go/regexp/syntax/*.go
2400 regexp/syntax/check: $(CHECK_DEPS)
2402 .PHONY: regexp/syntax/check
2404 @go_include@ runtime/debug.lo.dep
2405 runtime/debug.lo.dep: $(srcdir)/go/runtime/debug/*.go
2409 runtime/debug/check: $(CHECK_DEPS)
2411 .PHONY: runtime/debug/check
2413 @go_include@ runtime/pprof.lo.dep
2414 runtime/pprof.lo.dep: $(srcdir)/go/runtime/pprof/*.go
2418 runtime/pprof/check: $(CHECK_DEPS)
2420 .PHONY: runtime/pprof/check
2421 # At least for now, we need -static-libgo for this test, because
2422 # otherwise we can't get the line numbers.
2423 # Also use -fno-inline to get better results from the memory profiler.
2424 runtime_pprof_check_GOCFLAGS = -static-libgo -fno-inline
2426 @go_include@ runtime/internal/atomic.lo.dep
2427 runtime/internal/atomic.lo.dep: $(srcdir)/go/runtime/internal/atomic/*.go
2429 runtime_internal_atomic_lo_GOCFLAGS = -fgo-compiling-runtime
2430 runtime/internal/atomic.lo:
2432 runtime/internal/atomic_c.lo: go/runtime/internal/atomic/atomic.c runtime.inc runtime/internal/atomic.lo
2433 $(LTCOMPILE) -c -o $@ $(srcdir)/go/runtime/internal/atomic/atomic.c
2434 runtime/internal/atomic/check: $(CHECK_DEPS)
2436 .PHONY: runtime/internal/atomic/check
2438 extra_go_files_runtime_internal_sys = version.go
2440 @go_include@ runtime/internal/sys.lo.dep
2441 runtime/internal/sys.lo.dep: $(srcdir)/go/runtime/internal/sys/*.go
2443 runtime_internal_sys_lo_GOCFLAGS = -fgo-compiling-runtime
2444 runtime/internal/sys.lo:
2446 runtime/internal/sys/check: $(CHECK_DEPS)
2448 .PHONY: runtime/internal/sys/check
2450 @go_include@ sync/atomic.lo.dep
2451 sync/atomic.lo.dep: $(srcdir)/go/sync/atomic/*.go
2455 sync/atomic_c.lo: go/sync/atomic/atomic.c runtime.inc sync/atomic.lo
2456 $(LTCOMPILE) -c -o $@ $(srcdir)/go/sync/atomic/atomic.c
2457 sync/atomic/check: $(CHECK_DEPS)
2459 .PHONY: sync/atomic/check
2461 @go_include@ text/scanner.lo.dep
2462 text/scanner.lo.dep: $(srcdir)/go/text/scanner/*.go
2466 text/scanner/check: $(CHECK_DEPS)
2468 .PHONY: text/scanner/check
2470 @go_include@ text/tabwriter.lo.dep
2471 text/tabwriter.lo.dep: $(srcdir)/go/text/tabwriter/*.go
2475 text/tabwriter/check: $(CHECK_DEPS)
2477 .PHONY: text/tabwriter/check
2479 @go_include@ text/template.lo.dep
2480 text/template.lo.dep: $(srcdir)/go/text/template/*.go
2484 text/template/check: $(CHECK_DEPS)
2486 .PHONY: text/template/check
2488 @go_include@ text/template/parse.lo.dep
2489 text/template/parse.lo.dep: $(srcdir)/go/text/template/parse/*.go
2491 text/template/parse.lo:
2493 text/template/parse/check: $(CHECK_DEPS)
2495 .PHONY: text/template/parse/check
2497 @go_include@ testing/iotest.lo.dep
2498 testing/iotest.lo.dep: $(srcdir)/go/testing/iotest/*.go
2502 testing/iotest/check: $(CHECK_DEPS)
2504 .PHONY: testing/iotest/check
2506 @go_include@ testing/quick.lo.dep
2507 testing/quick.lo.dep: $(srcdir)/go/testing/quick/*.go
2511 testing/quick/check: $(CHECK_DEPS)
2513 .PHONY: testing/quick/check
2515 @go_include@ unicode/utf16.lo.dep
2516 unicode/utf16.lo.dep: $(srcdir)/go/unicode/utf16/*.go
2520 unicode/utf16/check: $(CHECK_DEPS)
2522 .PHONY: unicode/utf16/check
2524 @go_include@ unicode/utf8.lo.dep
2525 unicode/utf8.lo.dep: $(srcdir)/go/unicode/utf8/*.go
2529 unicode/utf8/check: $(CHECK_DEPS)
2531 .PHONY: unicode/utf8/check
2533 @go_include@ syscall.lo.dep
2534 syscall.lo.dep: $(srcdir)/go/syscall/*.go $(extra_go_files_syscall)
2538 syscall/errno.lo: go/syscall/errno.c runtime.inc
2540 $(LTCOMPILE) -c -o $@ $<
2541 syscall/signame.lo: go/syscall/signame.c runtime.inc
2543 $(LTCOMPILE) -c -o $@ $<
2544 syscall/wait.lo: go/syscall/wait.c runtime.inc
2546 $(LTCOMPILE) -c -o $@ $<
2547 syscall/check: $(CHECK_DEPS)
2549 .PHONY: syscall/check
2551 # How to build a .gox file from a .lo file.
2553 f=`echo $< | sed -e 's/.lo$$/.o/'`; \
2554 $(OBJCOPY) -j .go_export $$f $@.tmp && mv -f $@.tmp $@
2560 context.gox: context.lo
2562 crypto.gox: crypto.lo
2564 encoding.gox: encoding.lo
2566 errors.gox: errors.lo
2568 expvar.gox: expvar.lo
2594 reflect.gox: reflect-go.lo
2596 regexp.gox: regexp.lo
2598 runtime.gox: runtime-go.lo
2602 strconv.gox: strconv.lo
2604 strings.gox: strings.lo
2608 syscall.gox: syscall.lo
2610 testing.gox: testing.lo
2612 time.gox: time-go.lo
2614 unicode.gox: unicode.lo
2617 archive/tar.gox: archive/tar.lo
2619 archive/zip.gox: archive/zip.lo
2622 compress/bzip2.gox: compress/bzip2.lo
2624 compress/flate.gox: compress/flate.lo
2626 compress/gzip.gox: compress/gzip.lo
2628 compress/lzw.gox: compress/lzw.lo
2630 compress/zlib.gox: compress/zlib.lo
2633 container/heap.gox: container/heap.lo
2635 container/list.gox: container/list.lo
2637 container/ring.gox: container/ring.lo
2640 crypto/aes.gox: crypto/aes.lo
2642 crypto/cipher.gox: crypto/cipher.lo
2644 crypto/des.gox: crypto/des.lo
2646 crypto/dsa.gox: crypto/dsa.lo
2648 crypto/ecdsa.gox: crypto/ecdsa.lo
2650 crypto/elliptic.gox: crypto/elliptic.lo
2652 crypto/hmac.gox: crypto/hmac.lo
2654 crypto/md5.gox: crypto/md5.lo
2656 crypto/rand.gox: crypto/rand.lo
2658 crypto/rc4.gox: crypto/rc4.lo
2660 crypto/rsa.gox: crypto/rsa.lo
2662 crypto/sha1.gox: crypto/sha1.lo
2664 crypto/sha256.gox: crypto/sha256.lo
2666 crypto/sha512.gox: crypto/sha512.lo
2668 crypto/subtle.gox: crypto/subtle.lo
2670 crypto/tls.gox: crypto/tls.lo
2672 crypto/x509.gox: crypto/x509.lo
2675 crypto/x509/pkix.gox: crypto/x509/pkix.lo
2678 database/sql.gox: database/sql.lo
2681 database/sql/driver.gox: database/sql/driver.lo
2684 debug/dwarf.gox: debug/dwarf.lo
2686 debug/elf.gox: debug/elf.lo
2688 debug/gosym.gox: debug/gosym.lo
2690 debug/macho.gox: debug/macho.lo
2692 debug/pe.gox: debug/pe.lo
2694 debug/plan9obj.gox: debug/plan9obj.lo
2697 encoding/ascii85.gox: encoding/ascii85.lo
2699 encoding/asn1.gox: encoding/asn1.lo
2701 encoding/base32.gox: encoding/base32.lo
2703 encoding/base64.gox: encoding/base64.lo
2705 encoding/binary.gox: encoding/binary.lo
2707 encoding/csv.gox: encoding/csv.lo
2709 encoding/gob.gox: encoding/gob.lo
2711 encoding/hex.gox: encoding/hex.lo
2713 encoding/json.gox: encoding/json.lo
2715 encoding/pem.gox: encoding/pem.lo
2717 encoding/xml.gox: encoding/xml.lo
2720 exp/proxy.gox: exp/proxy.lo
2722 exp/terminal.gox: exp/terminal.lo
2725 html/template.gox: html/template.lo
2728 go/ast.gox: go/ast.lo
2730 go/build.gox: go/build.lo
2732 go/constant.gox: go/constant.lo
2734 go/doc.gox: go/doc.lo
2736 go/format.gox: go/format.lo
2738 go/importer.gox: go/importer.lo
2740 go/parser.gox: go/parser.lo
2742 go/printer.gox: go/printer.lo
2744 go/scanner.gox: go/scanner.lo
2746 go/token.gox: go/token.lo
2748 go/types.gox: go/types.lo
2751 go/internal/gcimporter.gox: go/internal/gcimporter.lo
2753 go/internal/gccgoimporter.gox: go/internal/gccgoimporter.lo
2756 golang_org/x/net/http2/hpack.gox: golang_org/x/net/http2/hpack.lo
2759 golang_org/x/net/lex/httplex.gox: golang_org/x/net/lex/httplex.lo
2763 golang_org/x/net/route.gox: golang_org/x/net/route.lo
2767 hash/adler32.gox: hash/adler32.lo
2769 hash/crc32.gox: hash/crc32.lo
2771 hash/crc64.gox: hash/crc64.lo
2773 hash/fnv.gox: hash/fnv.lo
2776 image/color.gox: image/color.lo
2778 image/draw.gox: image/draw.lo
2780 image/gif.gox: image/gif.lo
2782 image/internal/imageutil.gox: image/internal/imageutil.lo
2784 image/jpeg.gox: image/jpeg.lo
2786 image/png.gox: image/png.lo
2789 image/color/palette.gox: image/color/palette.lo
2792 index/suffixarray.gox: index/suffixarray.lo
2795 internal/nettrace.gox: internal/nettrace.lo
2797 internal/race.gox: internal/race.lo
2799 internal/singleflight.gox: internal/singleflight.lo
2801 internal/syscall/unix.gox: internal/syscall/unix.lo
2803 internal/testenv.gox: internal/testenv.lo
2805 internal/trace.gox: internal/trace.lo
2808 io/ioutil.gox: io/ioutil.lo
2811 log/syslog.gox: log/syslog.lo
2814 math/big.gox: math/big.lo
2816 math/cmplx.gox: math/cmplx.lo
2818 math/rand.gox: math/rand.lo
2821 mime/multipart.gox: mime/multipart.lo
2823 mime/quotedprintable.gox: mime/quotedprintable.lo
2826 net/http.gox: net/http.lo
2828 net/mail.gox: net/mail.lo
2830 net/rpc.gox: net/rpc.lo
2832 net/smtp.gox: net/smtp.lo
2834 net/textproto.gox: net/textproto.lo
2836 net/url.gox: net/url.lo
2839 net/http/cgi.gox: net/http/cgi.lo
2841 net/http/cookiejar.gox: net/http/cookiejar.lo
2843 net/http/fcgi.gox: net/http/fcgi.lo
2845 net/http/httptest.gox: net/http/httptest.lo
2847 net/http/httptrace.gox: net/http/httptrace.lo
2849 net/http/httputil.gox: net/http/httputil.lo
2851 net/http/pprof.gox: net/http/pprof.lo
2854 net/http/internal.gox: net/http/internal.lo
2857 net/internal/socktest.gox: net/internal/socktest.lo
2860 net/rpc/jsonrpc.gox: net/rpc/jsonrpc.lo
2863 old/regexp.gox: old/regexp.lo
2865 old/template.gox: old/template.lo
2868 os/exec.gox: os/exec.lo
2870 os/signal.gox: os/signal.lo
2872 os/user.gox: os/user.lo
2875 path/filepath.gox: path/filepath.lo
2878 regexp/syntax.gox: regexp/syntax.lo
2881 runtime/debug.gox: runtime/debug.lo
2883 runtime/pprof.gox: runtime/pprof.lo
2885 runtime/internal/atomic.gox: runtime/internal/atomic.lo
2887 runtime/internal/sys.gox: runtime/internal/sys.lo
2890 sync/atomic.gox: sync/atomic.lo
2893 text/scanner.gox: text/scanner.lo
2895 text/tabwriter.gox: text/tabwriter.lo
2897 text/template.gox: text/template.lo
2899 text/template/parse.gox: text/template/parse.lo
2902 testing/iotest.gox: testing/iotest.lo
2904 testing/quick.gox: testing/quick.lo
2907 unicode/utf16.gox: unicode/utf16.lo
2909 unicode/utf8.gox: unicode/utf8.lo
2941 compress/bzip2/check \
2942 compress/flate/check \
2943 compress/gzip/check \
2944 compress/lzw/check \
2945 compress/zlib/check \
2946 container/heap/check \
2947 container/list/check \
2948 container/ring/check \
2950 crypto/cipher/check \
2953 crypto/ecdsa/check \
2954 crypto/elliptic/check \
2961 crypto/sha256/check \
2962 crypto/sha512/check \
2963 crypto/subtle/check \
2966 database/sql/check \
2967 database/sql/driver/check \
2972 debug/plan9obj/check \
2973 encoding/ascii85/check \
2974 encoding/asn1/check \
2975 encoding/base32/check \
2976 encoding/base64/check \
2977 encoding/binary/check \
2978 encoding/csv/check \
2979 encoding/gob/check \
2980 encoding/hex/check \
2981 encoding/json/check \
2982 encoding/pem/check \
2983 encoding/xml/check \
2985 exp/terminal/check \
2986 html/template/check \
2992 go/internal/gcimporter/check \
2993 go/internal/gccgoimporter/check \
2999 golang_org/x/net/http2/hpack/check \
3000 golang_org/x/net/lex/httplex/check \
3001 $(golang_org_x_net_route_check) \
3002 hash/adler32/check \
3010 index/suffixarray/check \
3011 internal/singleflight/check \
3012 internal/trace/check \
3018 mime/multipart/check \
3019 mime/quotedprintable/check \
3021 net/http/cgi/check \
3022 net/http/cookiejar/check \
3023 net/http/fcgi/check \
3024 net/http/httptest/check \
3025 net/http/httptrace/check \
3026 net/http/httputil/check \
3027 net/http/internal/check \
3028 net/internal/socktest/check \
3032 net/textproto/check \
3034 net/rpc/jsonrpc/check \
3036 old/template/check \
3040 path/filepath/check \
3041 regexp/syntax/check \
3042 runtime/pprof/check \
3043 runtime/internal/atomic/check \
3044 runtime/internal/sys/check \
3046 text/scanner/check \
3047 text/tabwriter/check \
3048 text/template/check \
3049 text/template/parse/check \
3050 testing/quick/check \
3051 unicode/utf16/check \
3055 check-recursive: check-head
3058 @echo "Test Run By $${USER} on `date`" > libgo.head
3059 @echo "Native configuration is $(host_triplet)" >> libgo.head
3061 @echo " === libgo tests ===" >> libgo.head
3064 check-tail: check-recursive check-multi
3065 @if test "$(USE_DEJAGNU)" = "yes"; then \
3068 lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
3069 for dir in . $(MULTIDIRS); do \
3070 mv ../$${dir}/$${lib}/libgo.sum ../$${dir}/$${lib}/libgo.sum.sep; \
3071 mv ../$${dir}/$${lib}/libgo.log ../$${dir}/$${lib}/libgo.log.sep; \
3073 mv libgo.head libgo.sum; \
3074 cp libgo.sum libgo.log; \
3075 echo "Schedule of variations:" >> libgo.sum; \
3076 for dir in . $(MULTIDIRS); do \
3077 multidir=../$${dir}/$${lib}; \
3078 multivar=`cat $${multidir}/libgo.var`; \
3079 echo " $${multivar}" >> libgo.sum; \
3081 echo >> libgo.sum; \
3082 pass=0; fail=0; untested=0; \
3083 for dir in . $(MULTIDIRS); do \
3084 multidir=../$${dir}/$${lib}; \
3085 multivar=`cat $${multidir}/libgo.var`; \
3086 echo "Running target $${multivar}" >> libgo.sum; \
3087 echo "Running $(srcdir)/libgo.exp ..." >> libgo.sum; \
3088 cat $${multidir}/libgo.sum.sep >> libgo.sum; \
3089 cat $${multidir}/libgo.log.sep >> libgo.log; \
3090 if test -n "${MULTIDIRS}"; then \
3091 echo " === libgo Summary for $${multivar} ===" >> libgo.sum; \
3092 echo >> libgo.sum; \
3094 p=`grep -c PASS $${multidir}/libgo.sum.sep`; \
3095 pass=`expr $$pass + $$p`; \
3096 if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3097 echo "# of expected passes $$p" >> libgo.sum; \
3099 p=`grep -c FAIL $${multidir}/libgo.sum.sep`; \
3100 fail=`expr $$fail + $$p`; \
3101 if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3102 echo "# of unexpected failures $$p" >> libgo.sum; \
3104 p=`grep -c UNTESTED $${multidir}/libgo.sum.sep`; \
3105 untested=`expr $$untested + $$p`; \
3106 if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3107 echo "# of untested testcases $$p" >> libgo.sum; \
3110 echo >> libgo.sum; \
3111 echo " === libgo Summary ===" >> libgo.sum; \
3112 echo >> libgo.sum; \
3113 if test "$$pass" -ne "0"; then \
3114 echo "# of expected passes $$pass" >> libgo.sum; \
3116 if test "$$fail" -ne "0"; then \
3117 echo "# of unexpected failures $$fail" >> libgo.sum; \
3119 if test "$$untested" -ne "0"; then \
3120 echo "# of untested testcases $$untested" >> libgo.sum; \
3122 echo `echo $(GOC) | sed -e 's/ .*//'` `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
3123 echo >> libgo.log; \
3124 echo "runtest completed at `date`" >> libgo.log; \
3125 if test "$$fail" -ne "0"; then \
3133 @rm -f libgo.sum libgo.log libgo.tail
3135 [ -z "$(MULTIFLAGS)" ] || multivar="$${multivar}/$(MULTIFLAGS)"; \
3136 echo "$${multivar}" > libgo.var
3137 @for f in $(TEST_PACKAGES); do \
3138 rm -f $$f-testsum $$f-testlog; \
3140 -@$(MAKE) -k $(TEST_PACKAGES)
3141 @for f in $(TEST_PACKAGES); do \
3142 if test -f $$f-testsum; then \
3143 cat $$f-testsum >> libgo.sum; \
3145 if test -f $$f-testlog; then \
3146 cat $$f-testlog >> libgo.log; \
3151 $(MULTIDO) $(AM_MAKEFLAGS) DO=check-am multi-do # $(MAKE)
3154 -@$(MAKE) -k $(TEST_PACKAGES) GOBENCH=.
3156 MOSTLYCLEAN_FILES = libgo.head libgo.sum.sep libgo.log.sep
3159 find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
3160 find . -name '*.$(OBJEXT)' -print | xargs rm -f
3161 find . -name '*-testsum' -print | xargs rm -f
3162 find . -name '*-testlog' -print | xargs rm -f
3164 CLEANFILES = *.go *.gox goc2c *.c s-version libgo.sum libgo.log
3167 find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
3168 find . -name '*.a' -print | xargs rm -f