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_thread_files = runtime/thread-linux.c
401 runtime_thread_files = 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/go-append.c \
432 runtime/go-assert.c \
433 runtime/go-breakpoint.c \
434 runtime/go-caller.c \
435 runtime/go-callers.c \
438 runtime/go-construct-map.c \
441 runtime/go-deferred-recover.c \
443 runtime/go-fieldtrack.c \
444 runtime/go-make-slice.c \
445 runtime/go-matherr.c \
446 runtime/go-memclr.c \
447 runtime/go-memcmp.c \
448 runtime/go-memequal.c \
449 runtime/go-memmove.c \
450 runtime/go-nanotime.c \
455 runtime/go-recover.c \
456 runtime/go-reflect-call.c \
457 runtime/go-runtime-error.c \
458 runtime/go-setenv.c \
459 runtime/go-signal.c \
460 runtime/go-strslice.c \
461 runtime/go-type-complex.c \
462 runtime/go-type-float.c \
463 runtime/go-type-identity.c \
464 runtime/go-type-string.c \
465 runtime/go-typedesc-equal.c \
466 runtime/go-unsafe-new.c \
467 runtime/go-unsafe-newarray.c \
468 runtime/go-unsafe-pointer.c \
469 runtime/go-unsetenv.c \
470 runtime/go-unwind.c \
471 runtime/go-varargs.c \
472 runtime/env_posix.c \
476 $(runtime_mem_file) \
477 runtime/mfixalloc.c \
486 runtime/signal_unix.c \
488 $(runtime_thread_files) \
490 $(rtems_task_variable_add_file) \
494 $(runtime_getncpu_file)
496 goc2c.$(OBJEXT): runtime/goc2c.c
497 $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
499 goc2c: goc2c.$(OBJEXT)
500 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
502 malloc.c: $(srcdir)/runtime/malloc.goc goc2c
506 runtime1.c: $(srcdir)/runtime/runtime1.goc goc2c
510 sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
511 ./goc2c --go-pkgpath os_signal $< > $@.tmp
514 %.c: $(srcdir)/runtime/%.goc goc2c
518 version.go: s-version; @true
521 echo "package sys" > version.go.tmp
522 echo 'const DefaultGoroot = "$(prefix)"' >> version.go.tmp
523 echo 'const TheVersion = "'`cat $(srcdir)/VERSION | sed 1q`' '`$(GOC) --version | sed 1q`'"' >> version.go.tmp
524 echo 'const GOARCH = "'$(GOARCH)'"' >> version.go.tmp
525 echo 'const GOOS = "'$(GOOS)'"' >> version.go.tmp
526 echo 'const GccgoToolDir = "$(libexecsubdir)"' >> version.go.tmp
527 echo >> version.go.tmp
528 echo "type ArchFamilyType int" >> version.go.tmp
529 echo >> version.go.tmp
530 echo "const (" >> version.go.tmp
531 echo " UNKNOWN ArchFamilyType = iota" >> version.go.tmp
532 for a in $(ALLGOARCHFAMILY); do \
533 echo " $${a}" >> version.go.tmp; \
535 echo ")" >> version.go.tmp
536 echo >> version.go.tmp
537 for a in $(ALLGOARCH); do \
538 f=`echo $${a} | sed -e 's/\(.\).*/\1/' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`; \
539 n="$${f}`echo $${a} | sed -e 's/.//'`"; \
540 if test "$${a}" = "$(GOARCH)"; then \
541 echo "const Goarch$${n} = 1" >> version.go.tmp; \
543 echo "const Goarch$${n} = 0" >> version.go.tmp; \
546 echo >> version.go.tmp
547 echo "const (" >> version.go.tmp
548 echo " ArchFamily = $(GOARCH_FAMILY)" >> version.go.tmp
549 echo " BigEndian = $(GOARCH_BIGENDIAN)" >> version.go.tmp
550 echo " CacheLineSize = $(GOARCH_CACHELINESIZE)" >> version.go.tmp
551 echo " PhysPageSize = $(GOARCH_PHYSPAGESIZE)" >> version.go.tmp
552 echo " PCQuantum = $(GOARCH_PCQUANTUM)" >> version.go.tmp
553 echo " Int64Align = $(GOARCH_INT64ALIGN)" >> version.go.tmp
554 echo " HugePageSize = $(GOARCH_HUGEPAGESIZE)" >> version.go.tmp
555 echo " MinFrameSize = $(GOARCH_MINFRAMESIZE)" >> version.go.tmp
556 echo ")" >> version.go.tmp
557 echo >> version.go.tmp
558 for a in $(ALLGOOS); do \
559 f=`echo $${a} | sed -e 's/\(.\).*/\1/' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`; \
560 n="$${f}`echo $${a} | sed -e 's/.//'`"; \
561 if test "$${a}" = "$(GOOS)"; then \
562 echo "const Goos$${n} = 1" >> version.go.tmp; \
564 echo "const Goos$${n} = 0" >> version.go.tmp; \
567 echo >> version.go.tmp
568 echo "type Uintreg uintptr" >> version.go.tmp
569 $(SHELL) $(srcdir)/mvifdiff.sh version.go.tmp version.go
572 runtime_sysinfo.go: s-runtime_sysinfo; @true
573 s-runtime_sysinfo: $(srcdir)/mkrsysinfo.sh gen-sysinfo.go
574 $(SHELL) $(srcdir)/mkrsysinfo.sh
575 $(SHELL) $(srcdir)/mvifdiff.sh tmp-runtime_sysinfo.go runtime_sysinfo.go
578 noinst_DATA = zstdpkglist.go
580 # Generate the list of go std packages that were included in libgo
581 zstdpkglist.go: s-zstdpkglist; @true
582 s-zstdpkglist: Makefile
583 rm -f zstdpkglist.go.tmp
584 echo 'package main' > zstdpkglist.go.tmp
585 echo "" >> zstdpkglist.go.tmp
586 echo 'var stdpkg = map[string]bool{' >> zstdpkglist.go.tmp
587 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
588 echo '}' >> zstdpkglist.go.tmp
589 $(SHELL) $(srcdir)/mvifdiff.sh zstdpkglist.go.tmp zstdpkglist.go
593 syscall_epoll_file = epoll.go
598 extra_go_files_syscall = \
602 $(syscall_epoll_file)
604 libcalls.go: s-libcalls; @true
605 s-libcalls: libcalls-list go/syscall/mksyscall.awk $(srcdir)/go/syscall/*.go
606 rm -f libcalls.go.tmp
607 $(AWK) -f $(srcdir)/go/syscall/mksyscall.awk `cat libcalls-list` > libcalls.go.tmp
608 $(SHELL) $(srcdir)/mvifdiff.sh libcalls.go.tmp libcalls.go
611 libcalls-list: s-libcalls-list; @true
612 s-libcalls-list: Makefile $(srcdir)/go/syscall/*.go
613 rm -f libcalls-list.tmp
614 $(SHELL) $(srcdir)/match.sh --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/syscall $(matchargs_syscall) > libcalls-list.tmp
615 $(SHELL) $(srcdir)/mvifdiff.sh libcalls-list.tmp libcalls-list
618 syscall_arch.go: s-syscall_arch; @true
619 s-syscall_arch: Makefile
620 rm -f syscall_arch.go.tmp
621 echo "package syscall" > syscall_arch.go.tmp
622 echo 'const ARCH = "'$(GOARCH)'"' >> syscall_arch.go.tmp
623 echo 'const OS = "'$(GOOS)'"' >> syscall_arch.go.tmp
624 $(SHELL) $(srcdir)/mvifdiff.sh syscall_arch.go.tmp syscall_arch.go
628 $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
629 $(CPPFLAGS) $(OSCFLAGS) -O
631 gen-sysinfo.go: s-gen-sysinfo; @true
632 s-gen-sysinfo: $(srcdir)/sysinfo.c config.h
633 $(CC) $(SYSINFO_FLAGS) -fdump-go-spec=tmp-gen-sysinfo.go -std=gnu99 -S -o sysinfo.s $(srcdir)/sysinfo.c
635 $(SHELL) $(srcdir)/mvifdiff.sh tmp-gen-sysinfo.go gen-sysinfo.go
638 errno.i: s-errno; @true
640 echo '#include <errno.h>' | $(CC) $(SYSINFO_FLAGS) -x c - -E -dM > tmp-errno.i
641 $(SHELL) $(srcdir)/mvifdiff.sh tmp-errno.i errno.i
644 sysinfo.go: s-sysinfo; @true
645 s-sysinfo: $(srcdir)/mksysinfo.sh gen-sysinfo.go errno.i
646 $(SHELL) $(srcdir)/mksysinfo.sh
647 $(SHELL) $(srcdir)/mvifdiff.sh tmp-sysinfo.go sysinfo.go
650 # The epoll struct has an embedded union and is packed on x86_64,
651 # which is too complicated for mksysinfo.sh. We find the offset of
652 # the only field we care about in configure.ac, and generate the
654 epoll.go: s-epoll; @true
657 echo 'package syscall' > epoll.go.tmp
658 echo 'type EpollEvent struct {' >> epoll.go.tmp
659 echo ' Events uint32' >> epoll.go.tmp
660 case "$(SIZEOF_STRUCT_EPOLL_EVENT),$(STRUCT_EPOLL_EVENT_FD_OFFSET)" in \
661 0,0) echo 1>&2 "*** struct epoll_event data.fd offset unknown"; \
663 8,4) echo ' Fd int32' >> epoll.go.tmp; ;; \
664 12,4) echo ' Fd int32' >> epoll.go.tmp; \
665 echo ' Pad [4]byte' >> epoll.go.tmp; ;; \
666 12,8) echo ' Pad [4]byte' >> epoll.go.tmp; \
667 echo ' Fd int32' >> epoll.go.tmp; ;; \
668 16,8) echo ' Pad [4]byte' >> epoll.go.tmp; \
669 echo ' Fd int32' >> epoll.go.tmp; \
670 echo ' Pad2 [4]byte' >> epoll.go.tmp; ;; \
671 *) echo 1>&2 "*** struct epoll_event unsupported"; \
674 echo '}' >> epoll.go.tmp
675 $(SHELL) $(srcdir)/mvifdiff.sh epoll.go.tmp epoll.go
679 syscall_lib_clone_lo = syscall/clone_linux.lo
681 syscall_lib_clone_lo =
706 reflect/makefunc_ffi_c.lo \
715 $(syscall_lib_clone_lo) \
749 crypto/x509/pkix.lo \
751 database/sql/driver.lo \
758 encoding/ascii85.lo \
778 go/internal/gcimporter.lo \
779 go/internal/gccgoimporter.lo \
785 golang_org/x/net/http2/hpack.lo \
786 golang_org/x/net/lex/httplex.lo \
787 $(golang_org_x_net_route_lo) \
793 net/http/cookiejar.lo \
795 net/http/httptest.lo \
796 net/http/httptrace.lo \
797 net/http/httputil.lo \
798 net/http/internal.lo \
801 image/color/palette.lo \
804 image/internal/imageutil.lo \
807 index/suffixarray.lo \
808 internal/nettrace.lo \
810 internal/singleflight.lo \
811 internal/syscall/unix.lo \
812 internal/testenv.lo \
816 log/syslog/syslog_c.lo \
821 mime/quotedprintable.lo \
823 net/internal/socktest.lo \
832 $(os_lib_inotify_lo) \
840 runtime/internal/atomic.lo \
841 runtime/internal/atomic_c.lo \
842 runtime/internal/sys.lo \
848 text/template/parse.lo \
855 -version-info $(libtool_VERSION) $(PTHREAD_CFLAGS) $(AM_LDFLAGS)
858 $(libgo_go_objs) ../libbacktrace/libbacktrace.la \
859 $(LIBATOMIC) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)
861 libgo_la_SOURCES = $(runtime_files)
862 libgo_la_LDFLAGS = $(libgo_ldflags)
863 libgo_la_LIBADD = $(libgo_libadd)
865 libgo_llgo_la_SOURCES = $(runtime_files)
866 libgo_llgo_la_LDFLAGS = $(libgo_ldflags)
867 libgo_llgo_la_LIBADD = $(libgo_libadd)
869 libgobegin_a_SOURCES = \
872 libgobegin_llgo_a_SOURCES = \
875 # Use -fPIC for libgobegin so that it can be put in a PIE.
876 libgobegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
877 libgobegin_llgo_a_CFLAGS = $(AM_CFLAGS) -fPIC
879 libgolibbegin_a_SOURCES = \
882 libgolibbegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
885 libnetgo_a_LIBADD = netgo.o
887 # Make sure runtime.inc is built before compiling any .c file.
888 $(libgo_la_OBJECTS): runtime.inc
889 $(libgo_llgo_la_OBJECTS): runtime.inc
890 $(libgobegin_a_OBJECTS): runtime.inc
891 $(libgobegin_llgo_a_OBJECTS): runtime.inc
892 $(libgolibbegin_a_OBJECTS): runtime.inc
894 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
897 AM_GOCFLAGS = $(STRINGOPS_FLAG) $(GO_SPLIT_STACK)
898 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
900 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
901 $(AM_GOCFLAGS) $(GOCFLAGS)
903 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
904 $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
906 # Build the dependencies for a Go package.
909 dir=`echo $@ | sed -e 's/.lo.dep$$//' -e 's/-go//'`; \
910 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,,$@))))`; \
911 $(SHELL) $(srcdir)/godeps.sh `echo $@ | sed -e 's/.dep$$//'` $$files > $@.tmp; \
912 if ! cmp $@.tmp $@ >/dev/null 2>/dev/null; then \
913 rm -f `echo $@ | sed -e 's/\.dep$$//'`; \
917 # Build the .go files for a package, generating a .lo file.
920 files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; \
921 $(LTGOCOMPILE) -I . -c -fgo-pkgpath=`echo $@ | sed -e 's/.lo$$//' -e 's/-go$$//'` $($(subst -,_,$(subst .,_,$(subst /,_,$@)))_GOCFLAGS) -o $@ $$files
923 # Build deps for netgo.o.
926 files=`$(SHELL) $(srcdir)/match.sh --nocgo --tag=netgo --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/net`; \
927 $(SHELL) $(srcdir)/godeps.sh netgo.o $$files > $@.tmp; \
933 files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; \
934 $(GOCOMPILE) -I . -c -fPIC -fgo-pkgpath=net -o $@ $$files
941 GC="$(GOC) $(GOCFLAGS) $($(subst /,_,$@)_GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
943 GOLIBS="$(MATH_LIBS) $(NET_LIBS) $(LIBS)"; \
945 RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
946 export RUNTESTFLAGS; \
949 libgccdir=`${GOC} -print-libgcc-file-name | sed -e 's|/[^/]*$$||'`; \
950 LD_LIBRARY_PATH="`${PWD_COMMAND}`/.libs:$${libgccdir}:${LD_LIBRARY_PATH}"; \
951 LD_LIBRARY_PATH=`echo $${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
952 export LD_LIBRARY_PATH; \
954 rm -f $@-testsum $@-testlog; \
955 files=`$(SHELL) $(srcdir)/match.sh --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/$(@D) --extrafiles="$(extra_go_files_$(subst /,_,$(@D)))" $(matchargs_$(subst /,_,$(@D)))`; \
956 if test "$(USE_DEJAGNU)" = "yes"; then \
957 $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" --testname="$(@D)" $(GOTESTFLAGS); \
958 elif test "$(GOBENCH)" != ""; then \
959 $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" --bench="$(GOBENCH)" $(GOTESTFLAGS); \
961 if $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" $(GOTESTFLAGS) >>$@-testlog 2>&1; then \
962 echo "PASS: $(@D)" >> $@-testlog; \
963 echo "PASS: $(@D)"; \
964 echo "PASS: $(@D)" > $@-testsum; \
966 echo "FAIL: $(@D)" >> $@-testlog; \
968 echo "FAIL: $(@D)" > $@-testsum; \
973 # Build all packages before checking any.
975 $(toolexeclibgo_DATA) \
976 $(toolexeclibgoarchive_DATA) \
977 $(toolexeclibgocompress_DATA) \
978 $(toolexeclibgocontainer_DATA) \
979 $(toolexeclibgocrypto_DATA) \
980 $(toolexeclibgodebug_DATA) \
981 $(toolexeclibgoencoding_DATA) \
982 $(toolexeclibgoexp_DATA) \
983 $(toolexeclibgogo_DATA) \
984 $(toolexeclibgohash_DATA) \
985 $(toolexeclibgoimage_DATA) \
986 $(toolexeclibgoindex_DATA) \
987 $(toolexeclibgoio_DATA) \
988 $(toolexeclibgolog_DATA) \
989 $(toolexeclibgomath_DATA) \
990 $(toolexeclibgomime_DATA) \
991 $(toolexeclibgonet_DATA) \
992 $(toolexeclibgonethttp_DATA) \
993 $(toolexeclibgoos_DATA) \
994 $(toolexeclibgopath_DATA) \
995 $(toolexeclibgorpc_DATA) \
996 $(toolexeclibgoruntime_DATA) \
997 $(toolexeclibgosync_DATA) \
998 $(toolexeclibgotesting_DATA) \
999 $(toolexeclibgotext_DATA) \
1000 $(toolexeclibgotexttemplate_DATA) \
1001 $(toolexeclibgounicode_DATA)
1004 CHECK_DEPS += libgo-llgo.la libgobegin-llgo.a
1006 CHECK_DEPS += libgo.la libgobegin.a
1009 @go_include@ bufio.lo.dep
1010 bufio.lo.dep: $(srcdir)/go/bufio/*.go
1014 bufio/check: $(CHECK_DEPS)
1018 @go_include@ bytes.lo.dep
1019 bytes.lo.dep: $(srcdir)/go/bytes/*.go
1023 bytes/index.lo: go/bytes/indexbyte.c runtime.inc
1025 $(LTCOMPILE) -c -o bytes/index.lo $(srcdir)/go/bytes/indexbyte.c
1026 bytes/check: $(CHECK_DEPS)
1030 @go_include@ context.lo.dep
1031 context.lo.dep: $(srcdir)/go/context/*.go
1035 context/check: $(CHECK_DEPS)
1037 .PHONY: context/check
1039 @go_include@ crypto.lo.dep
1040 crypto.lo.dep: $(srcdir)/go/crypto/*.go
1044 crypto/check: $(CHECK_DEPS)
1046 .PHONY: crypto/check
1048 @go_include@ encoding.lo.dep
1049 encoding.lo.dep: $(srcdir)/go/encoding/*.go
1053 encoding/check: $(CHECK_DEPS)
1055 .PHONY: encoding/check
1057 @go_include@ errors.lo.dep
1058 errors.lo.dep: $(srcdir)/go/errors/*.go
1062 errors/check: $(CHECK_DEPS)
1064 .PHONY: errors/check
1066 @go_include@ expvar.lo.dep
1067 expvar.lo.dep: $(srcdir)/go/expvar/*.go
1071 expvar/check: $(CHECK_DEPS)
1073 .PHONY: expvar/check
1075 @go_include@ flag.lo.dep
1076 flag.lo.dep: $(srcdir)/go/flag/*.go
1080 flag/check: $(CHECK_DEPS)
1084 @go_include@ fmt.lo.dep
1085 fmt.lo.dep: $(srcdir)/go/fmt/*.go
1089 fmt/check: $(CHECK_DEPS)
1093 @go_include@ hash.lo.dep
1094 hash.lo.dep: $(srcdir)/go/hash/*.go
1098 hash/check: $(CHECK_DEPS)
1102 @go_include@ html.lo.dep
1103 html.lo.dep: $(srcdir)/go/html/*.go
1107 html/check: $(CHECK_DEPS)
1111 @go_include@ image.lo.dep
1112 image.lo.dep: $(srcdir)/go/image/*.go
1116 image/check: $(CHECK_DEPS)
1120 @go_include@ io.lo.dep
1121 io.lo.dep: $(srcdir)/go/io/*.go
1125 io/check: $(CHECK_DEPS)
1129 @go_include@ log.lo.dep
1130 log.lo.dep: $(srcdir)/go/log/*.go
1134 log/check: $(CHECK_DEPS)
1138 @go_include@ math.lo.dep
1139 math.lo.dep: $(srcdir)/go/math/*.go
1143 files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
1144 $(LTGOCOMPILE) $(MATH_FLAG) -I . -c -fgo-pkgpath=math -o $@ $$files
1145 math/check: $(CHECK_DEPS)
1149 @go_include@ mime.lo.dep
1150 mime.lo.dep: $(srcdir)/go/mime/*.go
1154 mime/check: $(CHECK_DEPS)
1158 @go_include@ net.lo.dep
1159 net.lo.dep: $(srcdir)/go/net/*.go
1163 net/check: $(CHECK_DEPS)
1167 @go_include@ netgo.o.dep
1168 netgo.o.dep: $(srcdir)/go/net/*.go
1170 netgo.o: netgo.o.dep
1174 if HAVE_STAT_TIMESPEC
1175 matchargs_os = --tag=solaristag
1183 @go_include@ os.lo.dep
1184 os.lo.dep: $(srcdir)/go/os/*.go
1188 os/check: $(CHECK_DEPS)
1192 @go_include@ path.lo.dep
1193 path.lo.dep: $(srcdir)/go/path/*.go
1197 path/check: $(CHECK_DEPS)
1201 @go_include@ reflect-go.lo.dep
1202 reflect-go.lo.dep: $(srcdir)/go/reflect/*.go
1206 reflect/check: $(CHECK_DEPS)
1208 reflect/makefunc_ffi_c.lo: go/reflect/makefunc_ffi_c.c runtime.inc
1210 $(LTCOMPILE) -c -o $@ $<
1211 .PHONY: reflect/check
1213 @go_include@ regexp.lo.dep
1214 regexp.lo.dep: $(srcdir)/go/regexp/*.go
1218 regexp/check: $(CHECK_DEPS)
1220 .PHONY: regexp/check
1222 extra_go_files_runtime = runtime_sysinfo.go
1224 @go_include@ runtime-go.lo.dep
1225 runtime-go.lo.dep: $(srcdir)/go/runtime/*.go $(extra_go_files_runtime)
1227 runtime_go_lo_GOCFLAGS = -fgo-c-header=runtime.inc.tmp -fgo-compiling-runtime
1230 runtime.inc: s-runtime-inc; @true
1231 s-runtime-inc: runtime-go.lo Makefile
1232 rm -f runtime.inc.tmp2
1233 grep -v "#define _" runtime.inc.tmp | grep -v "#define c0 " | grep -v "#define c1 " > runtime.inc.tmp2
1234 for pattern in '_G[a-z]' '_P[a-z]' _Max _Lock _Sig _Trace _MHeap _Num; do \
1235 grep "#define $$pattern" runtime.inc.tmp >> runtime.inc.tmp2; \
1237 $(SHELL) $(srcdir)/mvifdiff.sh runtime.inc.tmp2 runtime.inc
1239 runtime_check_GOCFLAGS = -fgo-compiling-runtime
1240 runtime/check: $(CHECK_DEPS)
1242 .PHONY: runtime/check
1244 @go_include@ sort.lo.dep
1245 sort.lo.dep: $(srcdir)/go/sort/*.go
1249 sort/check: $(CHECK_DEPS)
1253 @go_include@ strconv.lo.dep
1254 strconv.lo.dep: $(srcdir)/go/strconv/*.go
1258 strconv/check: $(CHECK_DEPS)
1260 .PHONY: strconv/check
1262 @go_include@ strings.lo.dep
1263 strings.lo.dep: $(srcdir)/go/strings/*.go
1267 strings/index.lo: go/strings/indexbyte.c runtime.inc
1269 $(LTCOMPILE) -c -o strings/index.lo $(srcdir)/go/strings/indexbyte.c
1270 strings/check: $(CHECK_DEPS)
1272 .PHONY: strings/check
1274 @go_include@ sync.lo.dep
1275 sync.lo.dep: $(srcdir)/go/sync/*.go
1279 sync/check: $(CHECK_DEPS)
1283 @go_include@ testing.lo.dep
1284 testing.lo.dep: $(srcdir)/go/testing/*.go
1288 testing/check: $(CHECK_DEPS)
1290 .PHONY: testing/check
1292 @go_include@ time-go.lo.dep
1293 time-go.lo.dep: $(srcdir)/go/time/*.go
1297 time/check: $(CHECK_DEPS)
1301 @go_include@ unicode.lo.dep
1302 unicode.lo.dep: $(srcdir)/go/unicode/*.go
1306 unicode/check: $(CHECK_DEPS)
1308 .PHONY: unicode/check
1310 @go_include@ archive/tar.lo.dep
1311 archive/tar.lo.dep: $(srcdir)/go/archive/tar/*.go
1315 archive/tar/check: $(CHECK_DEPS)
1317 .PHONY: archive/tar/check
1319 @go_include@ archive/zip.lo.dep
1320 archive/zip.lo.dep: $(srcdir)/go/archive/zip/*.go
1324 archive/zip/check: $(CHECK_DEPS)
1326 .PHONY: archive/zip/check
1328 @go_include@ compress/bzip2.lo.dep
1329 compress/bzip2.lo.dep: $(srcdir)/go/compress/bzip2/*.go
1333 compress/bzip2/check: $(CHECK_DEPS)
1335 .PHONY: compress/bzip2/check
1337 @go_include@ compress/flate.lo.dep
1338 compress/flate.lo.dep: $(srcdir)/go/compress/flate/*.go
1342 compress/flate/check: $(CHECK_DEPS)
1344 .PHONY: compress/flate/check
1346 @go_include@ compress/gzip.lo.dep
1347 compress/gzip.lo.dep: $(srcdir)/go/compress/gzip/*.go
1351 compress/gzip/check: $(CHECK_DEPS)
1353 .PHONY: compress/gzip/check
1355 @go_include@ compress/lzw.lo.dep
1356 compress/lzw.lo.dep: $(srcdir)/go/compress/lzw/*.go
1360 compress/lzw/check: $(CHECK_DEPS)
1362 .PHONY: compress/lzw/check
1364 @go_include@ compress/zlib.lo.dep
1365 compress/zlib.lo.dep: $(srcdir)/go/compress/zlib/*.go
1369 compress/zlib/check: $(CHECK_DEPS)
1371 .PHONY: compress/zlib/check
1373 @go_include@ container/heap.lo.dep
1374 container/heap.lo.dep: $(srcdir)/go/container/heap/*.go
1378 container/heap/check: $(CHECK_DEPS)
1380 .PHONY: container/heap/check
1382 @go_include@ container/list.lo.dep
1383 container/list.lo.dep: $(srcdir)/go/container/list/*.go
1387 container/list/check: $(CHECK_DEPS)
1389 .PHONY: container/list/check
1391 @go_include@ container/ring.lo.dep
1392 container/ring.lo.dep: $(srcdir)/go/container/ring/*.go
1396 container/ring/check: $(CHECK_DEPS)
1398 .PHONY: container/ring/check
1400 @go_include@ crypto/aes.lo.dep
1401 crypto/aes.lo.dep: $(srcdir)/go/crypto/aes/*.go
1405 crypto/aes/check: $(CHECK_DEPS)
1407 .PHONY: crypto/aes/check
1409 @go_include@ crypto/cipher.lo.dep
1410 crypto/cipher.lo.dep: $(srcdir)/go/crypto/cipher/*.go
1414 crypto/cipher/check: $(CHECK_DEPS)
1416 .PHONY: crypto/cipher/check
1418 @go_include@ crypto/des.lo.dep
1419 crypto/des.lo.dep: $(srcdir)/go/crypto/des/*.go
1423 crypto/des/check: $(CHECK_DEPS)
1425 .PHONY: crypto/des/check
1427 @go_include@ crypto/dsa.lo.dep
1428 crypto/dsa.lo.dep: $(srcdir)/go/crypto/dsa/*.go
1432 crypto/dsa/check: $(CHECK_DEPS)
1434 .PHONY: crypto/dsa/check
1436 @go_include@ crypto/ecdsa.lo.dep
1437 crypto/ecdsa.lo.dep: $(srcdir)/go/crypto/ecdsa/*.go
1441 crypto/ecdsa/check: $(CHECK_DEPS)
1443 .PHONY: crypto/ecdsa/check
1445 @go_include@ crypto/elliptic.lo.dep
1446 crypto/elliptic.lo.dep: $(srcdir)/go/crypto/elliptic/*.go
1450 crypto/elliptic/check: $(CHECK_DEPS)
1452 .PHONY: crypto/elliptic/check
1454 @go_include@ crypto/hmac.lo.dep
1455 crypto/hmac.lo.dep: $(srcdir)/go/crypto/hmac/*.go
1459 crypto/hmac/check: $(CHECK_DEPS)
1461 .PHONY: crypto/hmac/check
1463 @go_include@ crypto/md5.lo.dep
1464 crypto/md5.lo.dep: $(srcdir)/go/crypto/md5/*.go
1468 crypto/md5/check: $(CHECK_DEPS)
1470 .PHONY: crypto/md5/check
1472 @go_include@ crypto/rand.lo.dep
1473 crypto/rand.lo.dep: $(srcdir)/go/crypto/rand/*.go
1477 crypto/rand/check: $(CHECK_DEPS)
1479 .PHONY: crypto/rand/check
1481 @go_include@ crypto/rc4.lo.dep
1482 crypto/rc4.lo.dep: $(srcdir)/go/crypto/rc4/*.go
1486 crypto/rc4/check: $(CHECK_DEPS)
1488 .PHONY: crypto/rc4/check
1490 @go_include@ crypto/rsa.lo.dep
1491 crypto/rsa.lo.dep: $(srcdir)/go/crypto/rsa/*.go
1495 crypto/rsa/check: $(CHECK_DEPS)
1497 .PHONY: crypto/rsa/check
1499 @go_include@ crypto/sha1.lo.dep
1500 crypto/sha1.lo.dep: $(srcdir)/go/crypto/sha1/*.go
1504 crypto/sha1/check: $(CHECK_DEPS)
1506 .PHONY: crypto/sha1/check
1508 @go_include@ crypto/sha256.lo.dep
1509 crypto/sha256.lo.dep: $(srcdir)/go/crypto/sha256/*.go
1513 crypto/sha256/check: $(CHECK_DEPS)
1515 .PHONY: crypto/sha256/check
1517 @go_include@ crypto/sha512.lo.dep
1518 crypto/sha512.lo.dep: $(srcdir)/go/crypto/sha512/*.go
1522 crypto/sha512/check: $(CHECK_DEPS)
1524 .PHONY: crypto/sha512/check
1526 @go_include@ crypto/subtle.lo.dep
1527 crypto/subtle.lo.dep: $(srcdir)/go/crypto/subtle/*.go
1531 crypto/subtle/check: $(CHECK_DEPS)
1533 .PHONY: crypto/subtle/check
1535 @go_include@ crypto/tls.lo.dep
1536 crypto/tls.lo.dep: $(srcdir)/go/crypto/tls/*.go
1540 crypto/tls/check: $(CHECK_DEPS)
1542 .PHONY: crypto/tls/check
1544 @go_include@ crypto/x509.lo.dep
1545 crypto/x509.lo.dep: $(srcdir)/go/crypto/x509/*.go
1549 crypto/x509/check: $(CHECK_DEPS)
1551 .PHONY: crypto/x509/check
1553 @go_include@ crypto/x509/pkix.lo.dep
1554 crypto/x509/pkix.lo.dep: $(srcdir)/go/crypto/x509/pkix/*.go
1556 crypto/x509/pkix.lo:
1558 crypto/x509/pkix/check: $(CHECK_DEPS)
1560 .PHONY: crypto/x509/pkix/check
1562 @go_include@ database/sql.lo.dep
1563 database/sql.lo.dep: $(srcdir)/go/database/sql/*.go
1567 database/sql/check: $(CHECK_DEPS)
1569 .PHONY: database/sql/check
1571 @go_include@ database/sql/driver.lo.dep
1572 database/sql/driver.lo.dep: $(srcdir)/go/database/sql/driver/*.go
1574 database/sql/driver.lo:
1576 database/sql/driver/check: $(CHECK_DEPS)
1578 .PHONY: database/sql/driver/check
1580 @go_include@ debug/dwarf.lo.dep
1581 debug/dwarf.lo.dep: $(srcdir)/go/debug/dwarf/*.go
1585 debug/dwarf/check: $(CHECK_DEPS)
1587 .PHONY: debug/dwarf/check
1589 @go_include@ debug/elf.lo.dep
1590 debug/elf.lo.dep: $(srcdir)/go/debug/elf/*.go
1594 debug/elf/check: $(CHECK_DEPS)
1596 .PHONY: debug/elf/check
1598 @go_include@ debug/gosym.lo.dep
1599 debug/gosym.lo.dep: $(srcdir)/go/debug/gosym/*.go
1603 debug/gosym/check: $(CHECK_DEPS)
1605 .PHONY: debug/gosym/check
1607 @go_include@ debug/macho.lo.dep
1608 debug/macho.lo.dep: $(srcdir)/go/debug/macho/*.go
1612 debug/macho/check: $(CHECK_DEPS)
1614 .PHONY: debug/macho/check
1616 @go_include@ debug/pe.lo.dep
1617 debug/pe.lo.dep: $(srcdir)/go/debug/pe/*.go
1621 debug/pe/check: $(CHECK_DEPS)
1623 .PHONY: debug/pe/check
1625 @go_include@ debug/plan9obj.lo.dep
1626 debug/plan9obj.lo.dep: $(srcdir)/go/debug/plan9obj/*.go
1630 debug/plan9obj/check: $(CHECK_DEPS)
1632 .PHONY: debug/plan9obj/check
1634 @go_include@ encoding/asn1.lo.dep
1635 encoding/asn1.lo.dep: $(srcdir)/go/encoding/asn1/*.go
1639 encoding/asn1/check: $(CHECK_DEPS)
1641 .PHONY: encoding/asn1/check
1643 @go_include@ encoding/ascii85.lo.dep
1644 encoding/ascii85.lo.dep: $(srcdir)/go/encoding/ascii85/*.go
1646 encoding/ascii85.lo:
1648 encoding/ascii85/check: $(CHECK_DEPS)
1650 .PHONY: encoding/ascii85/check
1652 @go_include@ encoding/base32.lo.dep
1653 encoding/base32.lo.dep: $(srcdir)/go/encoding/base32/*.go
1657 encoding/base32/check: $(CHECK_DEPS)
1659 .PHONY: encoding/base32/check
1661 @go_include@ encoding/base64.lo.dep
1662 encoding/base64.lo.dep: $(srcdir)/go/encoding/base64/*.go
1666 encoding/base64/check: $(CHECK_DEPS)
1668 .PHONY: encoding/base64/check
1670 @go_include@ encoding/binary.lo.dep
1671 encoding/binary.lo.dep: $(srcdir)/go/encoding/binary/*.go
1675 encoding/binary/check: $(CHECK_DEPS)
1677 .PHONY: encoding/binary/check
1679 @go_include@ encoding/csv.lo.dep
1680 encoding/csv.lo.dep: $(srcdir)/go/encoding/csv/*.go
1684 encoding/csv/check: $(CHECK_DEPS)
1686 .PHONY: encoding/csv/check
1688 @go_include@ encoding/gob.lo.dep
1689 encoding/gob.lo.dep: $(srcdir)/go/encoding/gob/*.go
1693 encoding/gob/check: $(CHECK_DEPS)
1695 .PHONY: encoding/gob/check
1697 @go_include@ encoding/hex.lo.dep
1698 encoding/hex.lo.dep: $(srcdir)/go/encoding/hex/*.go
1702 encoding/hex/check: $(CHECK_DEPS)
1704 .PHONY: encoding/hex/check
1706 @go_include@ encoding/json.lo.dep
1707 encoding/json.lo.dep: $(srcdir)/go/encoding/json/*.go
1711 encoding/json/check: $(CHECK_DEPS)
1713 .PHONY: encoding/json/check
1715 @go_include@ encoding/pem.lo.dep
1716 encoding/pem.lo.dep: $(srcdir)/go/encoding/pem/*.go
1720 encoding/pem/check: $(CHECK_DEPS)
1722 .PHONY: encoding/pem/check
1724 @go_include@ encoding/xml.lo.dep
1725 encoding/xml.lo.dep: $(srcdir)/go/encoding/xml/*.go
1729 encoding/xml/check: $(CHECK_DEPS)
1731 .PHONY: encoding/xml/check
1733 @go_include@ exp/proxy.lo.dep
1734 exp/proxy.lo.dep: $(srcdir)/go/exp/proxy/*.go
1738 exp/proxy/check: $(CHECK_DEPS)
1740 .PHONY: exp/proxy/check
1742 @go_include@ exp/terminal.lo.dep
1743 exp/terminal.lo.dep: $(srcdir)/go/exp/terminal/*.go
1747 exp/terminal/check: $(CHECK_DEPS)
1749 .PHONY: exp/terminal/check
1751 @go_include@ html/template.lo.dep
1752 html/template.lo.dep: $(srcdir)/go/html/template/*.go
1756 html/template/check: $(CHECK_DEPS)
1758 .PHONY: html/template/check
1760 @go_include@ go/ast.lo.dep
1761 go/ast.lo.dep: $(srcdir)/go/go/ast/*.go
1765 go/ast/check: $(CHECK_DEPS)
1767 .PHONY: go/ast/check
1769 @go_include@ go/build.lo.dep
1770 go/build.lo.dep: $(srcdir)/go/go/build/*.go
1774 go/build/check: $(CHECK_DEPS)
1776 .PHONY: go/build/check
1778 @go_include@ go/constant.lo.dep
1779 go/constant.lo.dep: $(srcdir)/go/go/constant/*.go
1783 go/constant/check: $(CHECK_DEPS)
1785 .PHONY: go/constant/check
1787 @go_include@ go/doc.lo.dep
1788 go/doc.lo.dep: $(srcdir)/go/go/doc/*.go
1792 go/doc/check: $(CHECK_DEPS)
1794 .PHONY: go/doc/check
1796 @go_include@ go/format.lo.dep
1797 go/format.lo.dep: $(srcdir)/go/go/format/*.go
1801 go/format/check: $(CHECK_DEPS)
1803 .PHONY: go/format/check
1805 @go_include@ go/importer.lo.dep
1806 go/importer.lo.dep: $(srcdir)/go/go/importer/*.go
1810 go/importer/check: $(CHECK_DEPS)
1812 .PHONY: go/importer/check
1814 @go_include@ go/parser.lo.dep
1815 go/parser.lo.dep: $(srcdir)/go/go/parser/*.go
1819 go/parser/check: $(CHECK_DEPS)
1821 .PHONY: go/parser/check
1823 @go_include@ go/printer.lo.dep
1824 go/printer.lo.dep: $(srcdir)/go/go/printer/*.go
1828 go/printer/check: $(CHECK_DEPS)
1830 .PHONY: go/printer/check
1832 @go_include@ go/scanner.lo.dep
1833 go/scanner.lo.dep: $(srcdir)/go/go/scanner/*.go
1837 go/scanner/check: $(CHECK_DEPS)
1839 .PHONY: go/scanner/check
1841 @go_include@ go/token.lo.dep
1842 go/token.lo.dep: $(srcdir)/go/go/token/*.go
1846 go/token/check: $(CHECK_DEPS)
1848 .PHONY: go/token/check
1850 @go_include@ go/types.lo.dep
1851 go/types.lo.dep: $(srcdir)/go/go/types/*.go
1855 go/types/check: $(CHECK_DEPS)
1857 .PHONY: go/types/check
1859 @go_include@ go/internal/gcimporter.lo.dep
1860 go/internal/gcimporter.lo.dep: $(srcdir)/go/go/internal/gcimporter/*.go
1862 go/internal/gcimporter.lo:
1864 go/internal/gcimporter/check: $(CHECK_DEPS)
1866 .PHONY: go/internal/gcimporter/check
1868 @go_include@ go/internal/gccgoimporter.lo.dep
1869 go/internal/gccgoimporter.lo.dep: $(srcdir)/go/go/internal/gccgoimporter/*.go
1871 go/internal/gccgoimporter.lo:
1873 go/internal/gccgoimporter/check: $(CHECK_DEPS)
1875 .PHONY: go/internal/gccgoimporter/check
1877 @go_include@ golang_org/x/net/http2/hpack.lo.dep
1878 golang_org/x/net/http2/hpack.lo.dep: $(srcdir)/go/golang_org/x/net/http2/hpack/*.go
1880 golang_org/x/net/http2/hpack.lo:
1882 golang_org/x/net/http2/hpack/check: $(CHECK_DEPS)
1884 .PHONY: golang_org/x/net/http2/hpack/check
1886 @go_include@ golang_org/x/net/lex/httplex.lo.dep
1887 golang_org/x/net/lex/httplex.lo.dep: $(srcdir)/go/golang_org/x/net/lex/httplex/*.go
1889 golang_org/x/net/lex/httplex.lo:
1891 golang_org/x/net/lex/httplex/check: $(CHECK_DEPS)
1893 .PHONY: golang_org/x/net/lex/httplex/check
1897 golang_org_x_net_route_lo = \
1898 golang_org/x/net/route/route.lo
1899 golang_org_x_net_route_check = \
1900 golang_org/x/net/route/check
1902 @go_include@ golang_org/x/net/route.lo.dep
1903 golang_org/x/net/route.lo.dep: $(srcdir)/go/golang_org/x/net/route/*.go
1905 golang_org/x/net/route.lo:
1907 golang_org/x/net/route/check: $(CHECK_DEPS)
1912 .PHONY: golang_org/x/net/route/check
1914 @go_include@ hash/adler32.lo.dep
1915 hash/adler32.lo.dep: $(srcdir)/go/hash/adler32/*.go
1919 hash/adler32/check: $(CHECK_DEPS)
1921 .PHONY: hash/adler32/check
1923 @go_include@ hash/crc32.lo.dep
1924 hash/crc32.lo.dep: $(srcdir)/go/hash/crc32/*.go
1928 hash/crc32/check: $(CHECK_DEPS)
1930 .PHONY: hash/crc32/check
1932 @go_include@ hash/crc64.lo.dep
1933 hash/crc64.lo.dep: $(srcdir)/go/hash/crc64/*.go
1937 hash/crc64/check: $(CHECK_DEPS)
1939 .PHONY: hash/crc64/check
1941 @go_include@ hash/fnv.lo.dep
1942 hash/fnv.lo.dep: $(srcdir)/go/hash/fnv/*.go
1946 hash/fnv/check: $(CHECK_DEPS)
1948 .PHONY: hash/fnv/check
1950 @go_include@ image/color.lo.dep
1951 image/color.lo.dep: $(srcdir)/go/image/color/*.go
1955 image/color/check: $(CHECK_DEPS)
1957 .PHONY: image/color/check
1959 @go_include@ image/color/palette.lo.dep
1960 image/color/palette.lo.dep: $(srcdir)/go/image/color/palette/*.go
1962 image/color/palette.lo:
1964 image/color/palette/check: $(CHECK_DEPS)
1966 .PHONY: image/color/palette/check
1968 @go_include@ image/draw.lo.dep
1969 image/draw.lo.dep: $(srcdir)/go/image/draw/*.go
1973 image/draw/check: $(CHECK_DEPS)
1975 .PHONY: image/draw/check
1977 @go_include@ image/gif.lo.dep
1978 image/gif.lo.dep: $(srcdir)/go/image/gif/*.go
1982 image/gif/check: $(CHECK_DEPS)
1984 .PHONY: image/gif/check
1986 @go_include@ image/internal/imageutil.lo.dep
1987 image/internal/imageutil.lo.dep: $(srcdir)/go/image/internal/imageutil/*.go
1989 image/internal/imageutil.lo:
1991 image/internal/imageutil/check: $(CHECK_DEPS)
1993 .PHONY: image/internal/imageutil/check
1995 @go_include@ image/jpeg.lo.dep
1996 image/jpeg.lo.dep: $(srcdir)/go/image/jpeg/*.go
2000 image/jpeg/check: $(CHECK_DEPS)
2002 .PHONY: image/jpeg/check
2004 @go_include@ image/png.lo.dep
2005 image/png.lo.dep: $(srcdir)/go/image/png/*.go
2009 image/png/check: $(CHECK_DEPS)
2011 .PHONY: image/png/check
2013 @go_include@ index/suffixarray.lo.dep
2014 index/suffixarray.lo.dep: $(srcdir)/go/index/suffixarray/*.go
2016 index/suffixarray.lo:
2018 index/suffixarray/check: $(CHECK_DEPS)
2020 .PHONY: index/suffixarray/check
2022 @go_include@ internal/nettrace.lo.dep
2023 internal/nettrace.lo.dep: $(srcdir)/go/internal/nettrace/*.go
2025 internal/nettrace.lo:
2027 internal/nettrace/check: $(CHECK_DEPS)
2029 .PHONY: internal/nettrace/check
2031 @go_include@ internal/race.lo.dep
2032 internal/race.lo.dep: $(srcdir)/go/internal/race/*.go
2036 internal/race/check: $(CHECK_DEPS)
2038 .PHONY: internal/race/check
2040 @go_include@ internal/singleflight.lo.dep
2041 internal/singleflight.lo.dep: $(srcdir)/go/internal/singleflight/*.go
2043 internal/singleflight.lo:
2045 internal/singleflight/check: $(CHECK_DEPS)
2047 .PHONY: internal/singleflight/check
2049 @go_include@ internal/syscall/unix.lo.dep
2050 internal/syscall/unix.lo.dep: $(srcdir)/go/internal/syscall/unix/*.go
2052 internal/syscall/unix.lo:
2054 internal/syscall/unix/check: $(CHECK_DEPS)
2056 .PHONY: internal/syscall/unix/check
2058 @go_include@ internal/testenv.lo.dep
2059 internal/testenv.lo.dep: $(srcdir)/go/internal/testenv/*.go
2061 internal/testenv.lo:
2063 internal/testenv/check: $(CHECK_DEPS)
2065 .PHONY: internal/testenv/check
2067 @go_include@ internal/trace.lo.dep
2068 internal/trace.lo.dep: $(srcdir)/go/internal/trace/*.go
2072 internal/trace/check: $(CHECK_DEPS)
2074 .PHONY: internal/trace/check
2076 @go_include@ io/ioutil.lo.dep
2077 io/ioutil.lo.dep: $(srcdir)/go/io/ioutil/*.go
2081 io/ioutil/check: $(CHECK_DEPS)
2083 .PHONY: io/ioutil/check
2085 @go_include@ log/syslog.lo.dep
2086 log/syslog.lo.dep: $(srcdir)/go/log/syslog/*.go
2090 log/syslog/syslog_c.lo: go/log/syslog/syslog_c.c runtime.inc log/syslog.lo
2091 @$(MKDIR_P) log/syslog
2092 $(LTCOMPILE) -c -o $@ $(srcdir)/go/log/syslog/syslog_c.c
2093 log/syslog/check: $(CHECK_DEPS)
2095 .PHONY: log/syslog/check
2097 @go_include@ math/big.lo.dep
2098 math/big.lo.dep: $(srcdir)/go/math/big/*.go
2102 math/big/check: $(CHECK_DEPS)
2104 .PHONY: math/big/check
2106 @go_include@ math/cmplx.lo.dep
2107 math/cmplx.lo.dep: $(srcdir)/go/math/cmplx/*.go
2111 math/cmplx/check: $(CHECK_DEPS)
2113 .PHONY: math/cmplx/check
2115 @go_include@ math/rand.lo.dep
2116 math/rand.lo.dep: $(srcdir)/go/math/rand/*.go
2120 math/rand/check: $(CHECK_DEPS)
2122 .PHONY: math/rand/check
2124 @go_include@ mime/multipart.lo.dep
2125 mime/multipart.lo.dep: $(srcdir)/go/mime/multipart/*.go
2129 mime/multipart/check: $(CHECK_DEPS)
2131 .PHONY: mime/multipart/check
2133 @go_include@ mime/quotedprintable.lo.dep
2134 mime/quotedprintable.lo.dep: $(srcdir)/go/mime/quotedprintable/*.go
2136 mime/quotedprintable.lo:
2138 mime/quotedprintable/check: $(CHECK_DEPS)
2140 .PHONY: mime/quotedprintable/check
2142 @go_include@ net/http.lo.dep
2143 net/http.lo.dep: $(srcdir)/go/net/http/*.go
2147 net/http/check: $(CHECK_DEPS)
2149 .PHONY: net/http/check
2151 @go_include@ net/mail.lo.dep
2152 net/mail.lo.dep: $(srcdir)/go/net/mail/*.go
2156 net/mail/check: $(CHECK_DEPS)
2158 .PHONY: net/mail/check
2160 @go_include@ net/rpc.lo.dep
2161 net/rpc.lo.dep: $(srcdir)/go/net/rpc/*.go
2165 net/rpc/check: $(CHECK_DEPS)
2167 .PHONY: net/rpc/check
2169 @go_include@ net/smtp.lo.dep
2170 net/smtp.lo.dep: $(srcdir)/go/net/smtp/*.go
2174 net/smtp/check: $(CHECK_DEPS)
2176 .PHONY: net/smtp/check
2178 @go_include@ net/url.lo.dep
2179 net/url.lo.dep: $(srcdir)/go/net/url/*.go
2183 net/url/check: $(CHECK_DEPS)
2185 .PHONY: net/url/check
2187 @go_include@ net/textproto.lo.dep
2188 net/textproto.lo.dep: $(srcdir)/go/net/textproto/*.go
2192 net/textproto/check: $(CHECK_DEPS)
2194 .PHONY: net/textproto/check
2196 @go_include@ net/http/cgi.lo.dep
2197 net/http/cgi.lo.dep: $(srcdir)/go/net/http/cgi/*.go
2201 net/http/cgi/check: $(CHECK_DEPS)
2203 .PHONY: net/http/cgi/check
2205 @go_include@ net/http/cookiejar.lo.dep
2206 net/http/cookiejar.lo.dep: $(srcdir)/go/net/http/cookiejar/*.go
2208 net/http/cookiejar.lo:
2210 net/http/cookiejar/check: $(CHECK_DEPS)
2212 .PHONY: net/http/cookiejar/check
2214 @go_include@ net/http/fcgi.lo.dep
2215 net/http/fcgi.lo.dep: $(srcdir)/go/net/http/fcgi/*.go
2219 net/http/fcgi/check: $(CHECK_DEPS)
2221 .PHONY: net/http/fcgi/check
2223 @go_include@ net/http/httptest.lo.dep
2224 net/http/httptest.lo.dep: $(srcdir)/go/net/http/httptest/*.go
2226 net/http/httptest.lo:
2228 net/http/httptest/check: $(check_deps)
2230 .PHONY: net/http/httptest/check
2232 @go_include@ net/http/httptrace.lo.dep
2233 net/http/httptrace.lo.dep: $(srcdir)/go/net/http/httptrace/*.go
2235 net/http/httptrace.lo:
2237 net/http/httptrace/check: $(check_deps)
2239 .PHONY: net/http/httptrace/check
2241 @go_include@ net/http/httputil.lo.dep
2242 net/http/httputil.lo.dep: $(srcdir)/go/net/http/httputil/*.go
2244 net/http/httputil.lo:
2246 net/http/httputil/check: $(check_deps)
2248 .PHONY: net/http/httputil/check
2250 @go_include@ net/http/internal.lo.dep
2251 net/http/internal.lo.dep: $(srcdir)/go/net/http/internal/*.go
2253 net/http/internal.lo:
2255 net/http/internal/check: $(CHECK_DEPS)
2257 .PHONY: net/http/internal/check
2259 @go_include@ net/http/pprof.lo.dep
2260 net/http/pprof.lo.dep: $(srcdir)/go/net/http/pprof/*.go
2264 net/http/pprof/check: $(CHECK_DEPS)
2266 .PHONY: net/http/pprof/check
2268 @go_include@ net/internal/socktest.lo.dep
2269 net/internal/socktest.lo.dep: $(srcdir)/go/net/internal/socktest/*.go
2271 net/internal/socktest.lo:
2273 net/internal/socktest/check: $(CHECK_DEPS)
2275 .PHONY: net/internal/socktest/check
2277 @go_include@ net/rpc/jsonrpc.lo.dep
2278 net/rpc/jsonrpc.lo.dep: $(srcdir)/go/net/rpc/jsonrpc/*.go
2282 net/rpc/jsonrpc/check: $(CHECK_DEPS)
2284 .PHONY: net/rpc/jsonrpc/check
2286 @go_include@ old/regexp.lo.dep
2287 old/regexp.lo.dep: $(srcdir)/go/old/regexp/*.go
2291 old/regexp/check: $(CHECK_DEPS)
2293 .PHONY: old/regexp/check
2295 @go_include@ old/template.lo.dep
2296 old/template.lo.dep: $(srcdir)/go/old/template/*.go
2300 old/template/check: $(CHECK_DEPS)
2302 .PHONY: old/template/check
2304 @go_include@ os/exec.lo.dep
2305 os/exec.lo.dep: $(srcdir)/go/os/exec/*.go
2309 os/exec/check: $(CHECK_DEPS)
2311 .PHONY: os/exec/check
2313 @go_include@ os/signal.lo.dep
2314 os/signal.lo.dep: $(srcdir)/go/os/signal/*.go
2318 os/signal/check: $(CHECK_DEPS)
2320 .PHONY: os/signal/check
2322 @go_include@ os/user.lo.dep
2323 os/user.lo.dep: $(srcdir)/go/os/user/*.go
2327 os/user/check: $(CHECK_DEPS)
2329 .PHONY: os/user/check
2331 @go_include@ path/filepath.lo.dep
2332 path/filepath.lo.dep: $(srcdir)/go/path/filepath/*.go
2336 path/filepath/check: $(CHECK_DEPS)
2338 .PHONY: path/filepath/check
2340 @go_include@ regexp/syntax.lo.dep
2341 regexp/syntax.lo.dep: $(srcdir)/go/regexp/syntax/*.go
2345 regexp/syntax/check: $(CHECK_DEPS)
2347 .PHONY: regexp/syntax/check
2349 @go_include@ runtime/debug.lo.dep
2350 runtime/debug.lo.dep: $(srcdir)/go/runtime/debug/*.go
2354 runtime/debug/check: $(CHECK_DEPS)
2356 .PHONY: runtime/debug/check
2358 @go_include@ runtime/pprof.lo.dep
2359 runtime/pprof.lo.dep: $(srcdir)/go/runtime/pprof/*.go
2363 runtime/pprof/check: $(CHECK_DEPS)
2365 .PHONY: runtime/pprof/check
2366 # At least for now, we need -static-libgo for this test, because
2367 # otherwise we can't get the line numbers.
2368 # Also use -fno-inline to get better results from the memory profiler.
2369 runtime_pprof_check_GOCFLAGS = -static-libgo -fno-inline
2371 @go_include@ runtime/internal/atomic.lo.dep
2372 runtime/internal/atomic.lo.dep: $(srcdir)/go/runtime/internal/atomic/*.go
2374 runtime_internal_atomic_lo_GOCFLAGS = -fgo-compiling-runtime
2375 runtime/internal/atomic.lo:
2377 runtime/internal/atomic_c.lo: go/runtime/internal/atomic/atomic.c runtime.inc runtime/internal/atomic.lo
2378 $(LTCOMPILE) -c -o $@ $(srcdir)/go/runtime/internal/atomic/atomic.c
2379 runtime/internal/atomic/check: $(CHECK_DEPS)
2381 .PHONY: runtime/internal/atomic/check
2383 extra_go_files_runtime_internal_sys = version.go
2385 @go_include@ runtime/internal/sys.lo.dep
2386 runtime/internal/sys.lo.dep: $(srcdir)/go/runtime/internal/sys/*.go
2388 runtime_internal_sys_lo_GOCFLAGS = -fgo-compiling-runtime
2389 runtime/internal/sys.lo:
2391 runtime/internal/sys/check: $(CHECK_DEPS)
2393 .PHONY: runtime/internal/sys/check
2395 @go_include@ sync/atomic.lo.dep
2396 sync/atomic.lo.dep: $(srcdir)/go/sync/atomic/*.go
2400 sync/atomic_c.lo: go/sync/atomic/atomic.c runtime.inc sync/atomic.lo
2401 $(LTCOMPILE) -c -o $@ $(srcdir)/go/sync/atomic/atomic.c
2402 sync/atomic/check: $(CHECK_DEPS)
2404 .PHONY: sync/atomic/check
2406 @go_include@ text/scanner.lo.dep
2407 text/scanner.lo.dep: $(srcdir)/go/text/scanner/*.go
2411 text/scanner/check: $(CHECK_DEPS)
2413 .PHONY: text/scanner/check
2415 @go_include@ text/tabwriter.lo.dep
2416 text/tabwriter.lo.dep: $(srcdir)/go/text/tabwriter/*.go
2420 text/tabwriter/check: $(CHECK_DEPS)
2422 .PHONY: text/tabwriter/check
2424 @go_include@ text/template.lo.dep
2425 text/template.lo.dep: $(srcdir)/go/text/template/*.go
2429 text/template/check: $(CHECK_DEPS)
2431 .PHONY: text/template/check
2433 @go_include@ text/template/parse.lo.dep
2434 text/template/parse.lo.dep: $(srcdir)/go/text/template/parse/*.go
2436 text/template/parse.lo:
2438 text/template/parse/check: $(CHECK_DEPS)
2440 .PHONY: text/template/parse/check
2442 @go_include@ testing/iotest.lo.dep
2443 testing/iotest.lo.dep: $(srcdir)/go/testing/iotest/*.go
2447 testing/iotest/check: $(CHECK_DEPS)
2449 .PHONY: testing/iotest/check
2451 @go_include@ testing/quick.lo.dep
2452 testing/quick.lo.dep: $(srcdir)/go/testing/quick/*.go
2456 testing/quick/check: $(CHECK_DEPS)
2458 .PHONY: testing/quick/check
2460 @go_include@ unicode/utf16.lo.dep
2461 unicode/utf16.lo.dep: $(srcdir)/go/unicode/utf16/*.go
2465 unicode/utf16/check: $(CHECK_DEPS)
2467 .PHONY: unicode/utf16/check
2469 @go_include@ unicode/utf8.lo.dep
2470 unicode/utf8.lo.dep: $(srcdir)/go/unicode/utf8/*.go
2474 unicode/utf8/check: $(CHECK_DEPS)
2476 .PHONY: unicode/utf8/check
2478 @go_include@ syscall.lo.dep
2479 syscall.lo.dep: $(srcdir)/go/syscall/*.go $(extra_go_files_syscall)
2483 syscall/clone_linux.lo: go/syscall/clone_linux.c runtime.inc
2485 $(LTCOMPILE) -c -o $@ $<
2486 syscall/errno.lo: go/syscall/errno.c runtime.inc
2488 $(LTCOMPILE) -c -o $@ $<
2489 syscall/signame.lo: go/syscall/signame.c runtime.inc
2491 $(LTCOMPILE) -c -o $@ $<
2492 syscall/wait.lo: go/syscall/wait.c runtime.inc
2494 $(LTCOMPILE) -c -o $@ $<
2495 syscall/check: $(CHECK_DEPS)
2497 .PHONY: syscall/check
2499 # How to build a .gox file from a .lo file.
2501 f=`echo $< | sed -e 's/.lo$$/.o/'`; \
2502 $(OBJCOPY) -j .go_export $$f $@.tmp && mv -f $@.tmp $@
2508 context.gox: context.lo
2510 crypto.gox: crypto.lo
2512 encoding.gox: encoding.lo
2514 errors.gox: errors.lo
2516 expvar.gox: expvar.lo
2542 reflect.gox: reflect-go.lo
2544 regexp.gox: regexp.lo
2546 runtime.gox: runtime-go.lo
2550 strconv.gox: strconv.lo
2552 strings.gox: strings.lo
2556 syscall.gox: syscall.lo
2558 testing.gox: testing.lo
2560 time.gox: time-go.lo
2562 unicode.gox: unicode.lo
2565 archive/tar.gox: archive/tar.lo
2567 archive/zip.gox: archive/zip.lo
2570 compress/bzip2.gox: compress/bzip2.lo
2572 compress/flate.gox: compress/flate.lo
2574 compress/gzip.gox: compress/gzip.lo
2576 compress/lzw.gox: compress/lzw.lo
2578 compress/zlib.gox: compress/zlib.lo
2581 container/heap.gox: container/heap.lo
2583 container/list.gox: container/list.lo
2585 container/ring.gox: container/ring.lo
2588 crypto/aes.gox: crypto/aes.lo
2590 crypto/cipher.gox: crypto/cipher.lo
2592 crypto/des.gox: crypto/des.lo
2594 crypto/dsa.gox: crypto/dsa.lo
2596 crypto/ecdsa.gox: crypto/ecdsa.lo
2598 crypto/elliptic.gox: crypto/elliptic.lo
2600 crypto/hmac.gox: crypto/hmac.lo
2602 crypto/md5.gox: crypto/md5.lo
2604 crypto/rand.gox: crypto/rand.lo
2606 crypto/rc4.gox: crypto/rc4.lo
2608 crypto/rsa.gox: crypto/rsa.lo
2610 crypto/sha1.gox: crypto/sha1.lo
2612 crypto/sha256.gox: crypto/sha256.lo
2614 crypto/sha512.gox: crypto/sha512.lo
2616 crypto/subtle.gox: crypto/subtle.lo
2618 crypto/tls.gox: crypto/tls.lo
2620 crypto/x509.gox: crypto/x509.lo
2623 crypto/x509/pkix.gox: crypto/x509/pkix.lo
2626 database/sql.gox: database/sql.lo
2629 database/sql/driver.gox: database/sql/driver.lo
2632 debug/dwarf.gox: debug/dwarf.lo
2634 debug/elf.gox: debug/elf.lo
2636 debug/gosym.gox: debug/gosym.lo
2638 debug/macho.gox: debug/macho.lo
2640 debug/pe.gox: debug/pe.lo
2642 debug/plan9obj.gox: debug/plan9obj.lo
2645 encoding/ascii85.gox: encoding/ascii85.lo
2647 encoding/asn1.gox: encoding/asn1.lo
2649 encoding/base32.gox: encoding/base32.lo
2651 encoding/base64.gox: encoding/base64.lo
2653 encoding/binary.gox: encoding/binary.lo
2655 encoding/csv.gox: encoding/csv.lo
2657 encoding/gob.gox: encoding/gob.lo
2659 encoding/hex.gox: encoding/hex.lo
2661 encoding/json.gox: encoding/json.lo
2663 encoding/pem.gox: encoding/pem.lo
2665 encoding/xml.gox: encoding/xml.lo
2668 exp/proxy.gox: exp/proxy.lo
2670 exp/terminal.gox: exp/terminal.lo
2673 html/template.gox: html/template.lo
2676 go/ast.gox: go/ast.lo
2678 go/build.gox: go/build.lo
2680 go/constant.gox: go/constant.lo
2682 go/doc.gox: go/doc.lo
2684 go/format.gox: go/format.lo
2686 go/importer.gox: go/importer.lo
2688 go/parser.gox: go/parser.lo
2690 go/printer.gox: go/printer.lo
2692 go/scanner.gox: go/scanner.lo
2694 go/token.gox: go/token.lo
2696 go/types.gox: go/types.lo
2699 go/internal/gcimporter.gox: go/internal/gcimporter.lo
2701 go/internal/gccgoimporter.gox: go/internal/gccgoimporter.lo
2704 golang_org/x/net/http2/hpack.gox: golang_org/x/net/http2/hpack.lo
2707 golang_org/x/net/lex/httplex.gox: golang_org/x/net/lex/httplex.lo
2711 golang_org/x/net/route.gox: golang_org/x/net/route.lo
2715 hash/adler32.gox: hash/adler32.lo
2717 hash/crc32.gox: hash/crc32.lo
2719 hash/crc64.gox: hash/crc64.lo
2721 hash/fnv.gox: hash/fnv.lo
2724 image/color.gox: image/color.lo
2726 image/draw.gox: image/draw.lo
2728 image/gif.gox: image/gif.lo
2730 image/internal/imageutil.gox: image/internal/imageutil.lo
2732 image/jpeg.gox: image/jpeg.lo
2734 image/png.gox: image/png.lo
2737 image/color/palette.gox: image/color/palette.lo
2740 index/suffixarray.gox: index/suffixarray.lo
2743 internal/nettrace.gox: internal/nettrace.lo
2745 internal/race.gox: internal/race.lo
2747 internal/singleflight.gox: internal/singleflight.lo
2749 internal/syscall/unix.gox: internal/syscall/unix.lo
2751 internal/testenv.gox: internal/testenv.lo
2753 internal/trace.gox: internal/trace.lo
2756 io/ioutil.gox: io/ioutil.lo
2759 log/syslog.gox: log/syslog.lo
2762 math/big.gox: math/big.lo
2764 math/cmplx.gox: math/cmplx.lo
2766 math/rand.gox: math/rand.lo
2769 mime/multipart.gox: mime/multipart.lo
2771 mime/quotedprintable.gox: mime/quotedprintable.lo
2774 net/http.gox: net/http.lo
2776 net/mail.gox: net/mail.lo
2778 net/rpc.gox: net/rpc.lo
2780 net/smtp.gox: net/smtp.lo
2782 net/textproto.gox: net/textproto.lo
2784 net/url.gox: net/url.lo
2787 net/http/cgi.gox: net/http/cgi.lo
2789 net/http/cookiejar.gox: net/http/cookiejar.lo
2791 net/http/fcgi.gox: net/http/fcgi.lo
2793 net/http/httptest.gox: net/http/httptest.lo
2795 net/http/httptrace.gox: net/http/httptrace.lo
2797 net/http/httputil.gox: net/http/httputil.lo
2799 net/http/pprof.gox: net/http/pprof.lo
2802 net/http/internal.gox: net/http/internal.lo
2805 net/internal/socktest.gox: net/internal/socktest.lo
2808 net/rpc/jsonrpc.gox: net/rpc/jsonrpc.lo
2811 old/regexp.gox: old/regexp.lo
2813 old/template.gox: old/template.lo
2816 os/exec.gox: os/exec.lo
2818 os/signal.gox: os/signal.lo
2820 os/user.gox: os/user.lo
2823 path/filepath.gox: path/filepath.lo
2826 regexp/syntax.gox: regexp/syntax.lo
2829 runtime/debug.gox: runtime/debug.lo
2831 runtime/pprof.gox: runtime/pprof.lo
2833 runtime/internal/atomic.gox: runtime/internal/atomic.lo
2835 runtime/internal/sys.gox: runtime/internal/sys.lo
2838 sync/atomic.gox: sync/atomic.lo
2841 text/scanner.gox: text/scanner.lo
2843 text/tabwriter.gox: text/tabwriter.lo
2845 text/template.gox: text/template.lo
2847 text/template/parse.gox: text/template/parse.lo
2850 testing/iotest.gox: testing/iotest.lo
2852 testing/quick.gox: testing/quick.lo
2855 unicode/utf16.gox: unicode/utf16.lo
2857 unicode/utf8.gox: unicode/utf8.lo
2889 compress/bzip2/check \
2890 compress/flate/check \
2891 compress/gzip/check \
2892 compress/lzw/check \
2893 compress/zlib/check \
2894 container/heap/check \
2895 container/list/check \
2896 container/ring/check \
2898 crypto/cipher/check \
2901 crypto/ecdsa/check \
2902 crypto/elliptic/check \
2909 crypto/sha256/check \
2910 crypto/sha512/check \
2911 crypto/subtle/check \
2914 database/sql/check \
2915 database/sql/driver/check \
2920 debug/plan9obj/check \
2921 encoding/ascii85/check \
2922 encoding/asn1/check \
2923 encoding/base32/check \
2924 encoding/base64/check \
2925 encoding/binary/check \
2926 encoding/csv/check \
2927 encoding/gob/check \
2928 encoding/hex/check \
2929 encoding/json/check \
2930 encoding/pem/check \
2931 encoding/xml/check \
2933 exp/terminal/check \
2934 html/template/check \
2940 go/internal/gcimporter/check \
2941 go/internal/gccgoimporter/check \
2947 golang_org/x/net/http2/hpack/check \
2948 golang_org/x/net/lex/httplex/check \
2949 $(golang_org_x_net_route_check) \
2950 hash/adler32/check \
2958 index/suffixarray/check \
2959 internal/singleflight/check \
2960 internal/trace/check \
2966 mime/multipart/check \
2967 mime/quotedprintable/check \
2969 net/http/cgi/check \
2970 net/http/cookiejar/check \
2971 net/http/fcgi/check \
2972 net/http/httptest/check \
2973 net/http/httptrace/check \
2974 net/http/httputil/check \
2975 net/http/internal/check \
2976 net/internal/socktest/check \
2980 net/textproto/check \
2982 net/rpc/jsonrpc/check \
2984 old/template/check \
2988 path/filepath/check \
2989 regexp/syntax/check \
2990 runtime/debug/check \
2991 runtime/pprof/check \
2992 runtime/internal/atomic/check \
2993 runtime/internal/sys/check \
2995 text/scanner/check \
2996 text/tabwriter/check \
2997 text/template/check \
2998 text/template/parse/check \
2999 testing/quick/check \
3000 unicode/utf16/check \
3004 check-recursive: check-head
3007 @echo "Test Run By $${USER} on `date`" > libgo.head
3008 @echo "Native configuration is $(host_triplet)" >> libgo.head
3010 @echo " === libgo tests ===" >> libgo.head
3013 check-tail: check-recursive check-multi
3014 @if test "$(USE_DEJAGNU)" = "yes"; then \
3017 lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
3018 for dir in . $(MULTIDIRS); do \
3019 mv ../$${dir}/$${lib}/libgo.sum ../$${dir}/$${lib}/libgo.sum.sep; \
3020 mv ../$${dir}/$${lib}/libgo.log ../$${dir}/$${lib}/libgo.log.sep; \
3022 mv libgo.head libgo.sum; \
3023 cp libgo.sum libgo.log; \
3024 echo "Schedule of variations:" >> libgo.sum; \
3025 for dir in . $(MULTIDIRS); do \
3026 multidir=../$${dir}/$${lib}; \
3027 multivar=`cat $${multidir}/libgo.var`; \
3028 echo " $${multivar}" >> libgo.sum; \
3030 echo >> libgo.sum; \
3031 pass=0; fail=0; untested=0; \
3032 for dir in . $(MULTIDIRS); do \
3033 multidir=../$${dir}/$${lib}; \
3034 multivar=`cat $${multidir}/libgo.var`; \
3035 echo "Running target $${multivar}" >> libgo.sum; \
3036 echo "Running $(srcdir)/libgo.exp ..." >> libgo.sum; \
3037 cat $${multidir}/libgo.sum.sep >> libgo.sum; \
3038 cat $${multidir}/libgo.log.sep >> libgo.log; \
3039 if test -n "${MULTIDIRS}"; then \
3040 echo " === libgo Summary for $${multivar} ===" >> libgo.sum; \
3041 echo >> libgo.sum; \
3043 p=`grep -c PASS $${multidir}/libgo.sum.sep`; \
3044 pass=`expr $$pass + $$p`; \
3045 if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3046 echo "# of expected passes $$p" >> libgo.sum; \
3048 p=`grep -c FAIL $${multidir}/libgo.sum.sep`; \
3049 fail=`expr $$fail + $$p`; \
3050 if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3051 echo "# of unexpected failures $$p" >> libgo.sum; \
3053 p=`grep -c UNTESTED $${multidir}/libgo.sum.sep`; \
3054 untested=`expr $$untested + $$p`; \
3055 if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3056 echo "# of untested testcases $$p" >> libgo.sum; \
3059 echo >> libgo.sum; \
3060 echo " === libgo Summary ===" >> libgo.sum; \
3061 echo >> libgo.sum; \
3062 if test "$$pass" -ne "0"; then \
3063 echo "# of expected passes $$pass" >> libgo.sum; \
3065 if test "$$fail" -ne "0"; then \
3066 echo "# of unexpected failures $$fail" >> libgo.sum; \
3068 if test "$$untested" -ne "0"; then \
3069 echo "# of untested testcases $$untested" >> libgo.sum; \
3071 echo `echo $(GOC) | sed -e 's/ .*//'` `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
3072 echo >> libgo.log; \
3073 echo "runtest completed at `date`" >> libgo.log; \
3074 if test "$$fail" -ne "0"; then \
3082 @rm -f libgo.sum libgo.log libgo.tail
3084 [ -z "$(MULTIFLAGS)" ] || multivar="$${multivar}/$(MULTIFLAGS)"; \
3085 echo "$${multivar}" > libgo.var
3086 @for f in $(TEST_PACKAGES); do \
3087 rm -f $$f-testsum $$f-testlog; \
3089 -@$(MAKE) -k $(TEST_PACKAGES)
3090 @for f in $(TEST_PACKAGES); do \
3091 if test -f $$f-testsum; then \
3092 cat $$f-testsum >> libgo.sum; \
3094 if test -f $$f-testlog; then \
3095 cat $$f-testlog >> libgo.log; \
3100 $(MULTIDO) $(AM_MAKEFLAGS) DO=check-am multi-do # $(MAKE)
3103 -@$(MAKE) -k $(TEST_PACKAGES) GOBENCH=.
3105 MOSTLYCLEAN_FILES = libgo.head libgo.sum.sep libgo.log.sep
3108 find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
3109 find . -name '*.$(OBJEXT)' -print | xargs rm -f
3110 find . -name '*-testsum' -print | xargs rm -f
3111 find . -name '*-testlog' -print | xargs rm -f
3113 CLEANFILES = *.go *.gox goc2c *.c s-version libgo.sum libgo.log
3116 find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
3117 find . -name '*.a' -print | xargs rm -f