2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
[official-gcc.git] / libgo / Makefile.am
blob0851b71e02ed1f8c18bf714de97d4461713fc37c
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.
9 # Go support.
10 SUFFIXES = .c .go .gox .o .obj .lo .a
12 if LIBGO_IS_RTEMS
13 subdirs = testsuite
14 endif
16 SUBDIRS = ${subdirs}
18 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
20 MAINT_CHARSET = latin1
22 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
23 PWD_COMMAND = $${PWDCMD-pwd}
24 STAMP = echo timestamp >
26 toolexecdir = $(glibgo_toolexecdir)
27 toolexeclibdir = $(glibgo_toolexeclibdir)
28 toolexeclibgodir = $(nover_glibgo_toolexeclibdir)/go/$(gcc_version)/$(target_alias)
30 LIBFFI = @LIBFFI@
31 LIBFFIINCS = @LIBFFIINCS@
33 WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
35 # -I/-D flags to pass when compiling.
36 AM_CPPFLAGS = -I $(srcdir)/runtime $(LIBFFIINCS) $(PTHREAD_CFLAGS)
38 ACLOCAL_AMFLAGS = -I ./config -I ../config
40 AM_CFLAGS = -fexceptions -fnon-call-exceptions -fplan9-extensions \
41         $(SPLIT_STACK) $(WARN_CFLAGS) \
42         $(STRINGOPS_FLAG) $(OSCFLAGS) \
43         -I $(srcdir)/../libgcc -I $(srcdir)/../libbacktrace \
44         -I $(MULTIBUILDTOP)../../gcc/include
46 if USING_SPLIT_STACK
47 AM_LDFLAGS = -XCClinker $(SPLIT_STACK)
48 endif
50 # Multilib support.
51 MAKEOVERRIDES=
53 # Work around what appears to be a GNU make  handling MAKEFLAGS
54 # values defined in terms of make variables, as is the case for CC and
55 # friends when we are called from the top level Makefile.
56 AM_MAKEFLAGS = \
57         "AR_FLAGS=$(AR_FLAGS)" \
58         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
59         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
60         "CFLAGS=$(CFLAGS)" \
61         "CXXFLAGS=$(CXXFLAGS)" \
62         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
63         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
64         "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
65         "GOC=$(GOC)" \
66         "GOCFLAGS=$(GOCFLAGS)" \
67         "INSTALL=$(INSTALL)" \
68         "INSTALL_DATA=$(INSTALL_DATA)" \
69         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
70         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
71         "LDFLAGS=$(LDFLAGS)" \
72         "LIBCFLAGS=$(LIBCFLAGS)" \
73         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
74         "MAKE=$(MAKE)" \
75         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
76         "PICFLAG=$(PICFLAG)" \
77         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
78         "SHELL=$(SHELL)" \
79         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
80         "exec_prefix=$(exec_prefix)" \
81         "infodir=$(infodir)" \
82         "libdir=$(libdir)" \
83         "includedir=$(includedir)" \
84         "prefix=$(prefix)" \
85         "tooldir=$(tooldir)" \
86         "gxx_include_dir=$(gxx_include_dir)" \
87         "AR=$(AR)" \
88         "AS=$(AS)" \
89         "LD=$(LD)" \
90         "RANLIB=$(RANLIB)" \
91         "NM=$(NM)" \
92         "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
93         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
94         "DESTDIR=$(DESTDIR)" \
95         "WERROR=$(WERROR)"
97 # Subdir rules rely on $(FLAGS_TO_PASS)
98 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
100 toolexeclib_LTLIBRARIES = libgo.la
101 toolexeclib_LIBRARIES = libgobegin.a
103 toolexeclibgo_DATA = \
104         bufio.gox \
105         bytes.gox \
106         crypto.gox \
107         encoding.gox \
108         errors.gox \
109         expvar.gox \
110         flag.gox \
111         fmt.gox \
112         hash.gox \
113         html.gox \
114         image.gox \
115         io.gox \
116         log.gox \
117         math.gox \
118         mime.gox \
119         net.gox \
120         os.gox \
121         path.gox \
122         reflect.gox \
123         regexp.gox \
124         runtime.gox \
125         sort.gox \
126         strconv.gox \
127         strings.gox \
128         sync.gox \
129         syscall.gox \
130         testing.gox \
131         time.gox \
132         unicode.gox
134 toolexeclibgoarchivedir = $(toolexeclibgodir)/archive
136 toolexeclibgoarchive_DATA = \
137         archive/tar.gox \
138         archive/zip.gox
140 toolexeclibgocompressdir = $(toolexeclibgodir)/compress
142 toolexeclibgocompress_DATA = \
143         compress/bzip2.gox \
144         compress/flate.gox \
145         compress/gzip.gox \
146         compress/lzw.gox \
147         compress/zlib.gox
149 toolexeclibgocontainerdir = $(toolexeclibgodir)/container
151 toolexeclibgocontainer_DATA = \
152         container/heap.gox \
153         container/list.gox \
154         container/ring.gox
156 toolexeclibgocryptodir = $(toolexeclibgodir)/crypto
158 toolexeclibgocrypto_DATA = \
159         crypto/aes.gox \
160         crypto/cipher.gox \
161         crypto/des.gox \
162         crypto/dsa.gox \
163         crypto/ecdsa.gox \
164         crypto/elliptic.gox \
165         crypto/hmac.gox \
166         crypto/md5.gox \
167         crypto/rand.gox \
168         crypto/rc4.gox \
169         crypto/rsa.gox \
170         crypto/sha1.gox \
171         crypto/sha256.gox \
172         crypto/sha512.gox \
173         crypto/subtle.gox \
174         crypto/tls.gox \
175         crypto/x509.gox
177 toolexeclibgocryptox509dir = $(toolexeclibgocryptodir)/x509
179 toolexeclibgocryptox509_DATA = \
180         crypto/x509/pkix.gox
182 toolexeclibgodatabasedir = $(toolexeclibgodir)/database
184 toolexeclibgodatabase_DATA = \
185         database/sql.gox
187 toolexeclibgodatabasesqldir = $(toolexeclibgodatabasedir)/sql
189 toolexeclibgodatabasesql_DATA = \
190         database/sql/driver.gox
192 toolexeclibgodebugdir = $(toolexeclibgodir)/debug
194 toolexeclibgodebug_DATA = \
195         debug/dwarf.gox \
196         debug/elf.gox \
197         debug/gosym.gox \
198         debug/macho.gox \
199         debug/pe.gox
201 toolexeclibgoencodingdir = $(toolexeclibgodir)/encoding
203 toolexeclibgoencoding_DATA = \
204         encoding/ascii85.gox \
205         encoding/asn1.gox \
206         encoding/base32.gox \
207         encoding/base64.gox \
208         encoding/binary.gox \
209         encoding/csv.gox \
210         encoding/gob.gox \
211         encoding/hex.gox \
212         encoding/json.gox \
213         encoding/pem.gox \
214         encoding/xml.gox
216 toolexeclibgoexpdir = $(toolexeclibgodir)/exp
218 toolexeclibgoexp_DATA = \
219         exp/proxy.gox \
220         exp/terminal.gox
222 toolexeclibgogodir = $(toolexeclibgodir)/go
224 toolexeclibgogo_DATA = \
225         go/ast.gox \
226         go/build.gox \
227         go/doc.gox \
228         go/format.gox \
229         go/parser.gox \
230         go/printer.gox \
231         go/scanner.gox \
232         go/token.gox
234 toolexeclibgohashdir = $(toolexeclibgodir)/hash
236 toolexeclibgohash_DATA = \
237         hash/adler32.gox \
238         hash/crc32.gox \
239         hash/crc64.gox \
240         hash/fnv.gox
242 toolexeclibgohtmldir = $(toolexeclibgodir)/html
244 toolexeclibgohtml_DATA = \
245         html/template.gox
247 toolexeclibgoimagedir = $(toolexeclibgodir)/image
249 toolexeclibgoimage_DATA = \
250         image/color.gox \
251         image/draw.gox \
252         image/gif.gox \
253         image/jpeg.gox \
254         image/png.gox
256 toolexeclibgoimagecolordir = $(toolexeclibgoimagedir)/color
258 toolexeclibgoimagecolor_DATA = \
259         image/color/palette.gox
261 toolexeclibgoindexdir = $(toolexeclibgodir)/index
263 toolexeclibgoindex_DATA = \
264         index/suffixarray.gox
266 toolexeclibgoiodir = $(toolexeclibgodir)/io
268 toolexeclibgoio_DATA = \
269         io/ioutil.gox
271 toolexeclibgologdir = $(toolexeclibgodir)/log
273 toolexeclibgolog_DATA = \
274         log/syslog.gox
276 toolexeclibgomathdir = $(toolexeclibgodir)/math
278 toolexeclibgomath_DATA = \
279         math/big.gox \
280         math/cmplx.gox \
281         math/rand.gox
283 toolexeclibgomimedir = $(toolexeclibgodir)/mime
285 toolexeclibgomime_DATA = \
286         mime/multipart.gox
288 toolexeclibgonetdir = $(toolexeclibgodir)/net
290 toolexeclibgonet_DATA = \
291         net/http.gox \
292         net/mail.gox \
293         net/rpc.gox \
294         net/smtp.gox \
295         net/textproto.gox \
296         net/url.gox
298 toolexeclibgonethttpdir = $(toolexeclibgonetdir)/http
300 toolexeclibgonethttp_DATA = \
301         net/http/cgi.gox \
302         net/http/cookiejar.gox \
303         net/http/fcgi.gox \
304         net/http/httptest.gox \
305         net/http/httputil.gox \
306         net/http/pprof.gox
308 toolexeclibgonetrpcdir = $(toolexeclibgonetdir)/rpc
310 toolexeclibgonetrpc_DATA = \
311         net/rpc/jsonrpc.gox
313 toolexeclibgoolddir = $(toolexeclibgodir)/old
315 toolexeclibgoold_DATA = \
316         old/regexp.gox \
317         old/template.gox
319 toolexeclibgoosdir = $(toolexeclibgodir)/os
321 toolexeclibgoos_DATA = \
322         os/exec.gox \
323         os/signal.gox \
324         os/user.gox
326 toolexeclibgopathdir = $(toolexeclibgodir)/path
328 toolexeclibgopath_DATA = \
329         path/filepath.gox
331 toolexeclibgoregexpdir = $(toolexeclibgodir)/regexp
333 toolexeclibgoregexp_DATA = \
334         regexp/syntax.gox
336 toolexeclibgoruntimedir = $(toolexeclibgodir)/runtime
338 toolexeclibgoruntime_DATA = \
339         runtime/debug.gox \
340         runtime/pprof.gox
342 toolexeclibgosyncdir = $(toolexeclibgodir)/sync
344 toolexeclibgosync_DATA = \
345         sync/atomic.gox
347 toolexeclibgotestingdir = $(toolexeclibgodir)/testing
349 toolexeclibgotesting_DATA = \
350         testing/iotest.gox \
351         testing/quick.gox
353 toolexeclibgotextdir = $(toolexeclibgodir)/text
355 toolexeclibgotext_DATA = \
356         text/scanner.gox \
357         text/tabwriter.gox \
358         text/template.gox
360 toolexeclibgotexttemplatedir = $(toolexeclibgotextdir)/template
362 toolexeclibgotexttemplate_DATA = \
363         text/template/parse.gox
365 toolexeclibgounicodedir = $(toolexeclibgodir)/unicode
367 toolexeclibgounicode_DATA = \
368         unicode/utf16.gox \
369         unicode/utf8.gox
371 if HAVE_SYS_MMAN_H
372 runtime_mem_file = runtime/mem.c
373 else
374 runtime_mem_file = runtime/mem_posix_memalign.c
375 endif
377 if LIBGO_IS_RTEMS
378 rtems_task_variable_add_file = runtime/rtems-task-variable-add.c
379 else
380 rtems_task_variable_add_file =
381 endif
383 if LIBGO_IS_LINUX
384 runtime_lock_files = runtime/lock_futex.c runtime/thread-linux.c
385 else
386 runtime_lock_files = runtime/lock_sema.c runtime/thread-sema.c
387 endif
389 if LIBGO_IS_LINUX
390 runtime_getncpu_file = runtime/getncpu-linux.c
391 else
392 if LIBGO_IS_DARWIN
393 runtime_getncpu_file = runtime/getncpu-bsd.c
394 else
395 if LIBGO_IS_IRIX
396 runtime_getncpu_file = runtime/getncpu-irix.c
397 else
398 if LIBGO_IS_SOLARIS
399 runtime_getncpu_file = runtime/getncpu-solaris.c
400 else
401 if LIBGO_IS_FREEBSD
402 runtime_getncpu_file = runtime/getncpu-bsd.c
403 else
404 if LIBGO_IS_NETBSD
405 runtime_getncpu_file = runtime/getncpu-bsd.c
406 else
407 runtime_getncpu_file = runtime/getncpu-none.c
408 endif
409 endif
410 endif
411 endif
412 endif
413 endif
415 if LIBGO_IS_LINUX
416 runtime_netpoll_files = runtime/netpoll_epoll.c
417 else
418 if LIBGO_IS_SOLARIS
419 runtime_netpoll_files = runtime/netpoll_select.c
420 else
421 runtime_netpoll_files = runtime/netpoll_kqueue.c
422 endif
423 endif
425 runtime_files = \
426         runtime/go-append.c \
427         runtime/go-assert.c \
428         runtime/go-assert-interface.c \
429         runtime/go-byte-array-to-string.c \
430         runtime/go-breakpoint.c \
431         runtime/go-caller.c \
432         runtime/go-callers.c \
433         runtime/go-can-convert-interface.c \
434         runtime/go-cdiv.c \
435         runtime/go-cgo.c \
436         runtime/go-check-interface.c \
437         runtime/go-construct-map.c \
438         runtime/go-convert-interface.c \
439         runtime/go-copy.c \
440         runtime/go-defer.c \
441         runtime/go-deferred-recover.c \
442         runtime/go-eface-compare.c \
443         runtime/go-eface-val-compare.c \
444         runtime/go-fieldtrack.c \
445         runtime/go-getgoroot.c \
446         runtime/go-int-array-to-string.c \
447         runtime/go-int-to-string.c \
448         runtime/go-interface-compare.c \
449         runtime/go-interface-eface-compare.c \
450         runtime/go-interface-val-compare.c \
451         runtime/go-make-slice.c \
452         runtime/go-map-delete.c \
453         runtime/go-map-index.c \
454         runtime/go-map-len.c \
455         runtime/go-map-range.c \
456         runtime/go-matherr.c \
457         runtime/go-memcmp.c \
458         runtime/go-nanotime.c \
459         runtime/go-now.c \
460         runtime/go-new-map.c \
461         runtime/go-new.c \
462         runtime/go-nosys.c \
463         runtime/go-panic.c \
464         runtime/go-print.c \
465         runtime/go-recover.c \
466         runtime/go-reflect-call.c \
467         runtime/go-reflect-map.c \
468         runtime/go-rune.c \
469         runtime/go-runtime-error.c \
470         runtime/go-setenv.c \
471         runtime/go-signal.c \
472         runtime/go-strcmp.c \
473         runtime/go-string-to-byte-array.c \
474         runtime/go-string-to-int-array.c \
475         runtime/go-strplus.c \
476         runtime/go-strslice.c \
477         runtime/go-traceback.c \
478         runtime/go-type-complex.c \
479         runtime/go-type-eface.c \
480         runtime/go-type-error.c \
481         runtime/go-type-float.c \
482         runtime/go-type-identity.c \
483         runtime/go-type-interface.c \
484         runtime/go-type-string.c \
485         runtime/go-typedesc-equal.c \
486         runtime/go-typestring.c \
487         runtime/go-unsafe-new.c \
488         runtime/go-unsafe-newarray.c \
489         runtime/go-unsafe-pointer.c \
490         runtime/go-unwind.c \
491         runtime/go-varargs.c \
492         runtime/chan.c \
493         runtime/cpuprof.c \
494         runtime/env_posix.c \
495         runtime/lfstack.c \
496         $(runtime_lock_files) \
497         runtime/mcache.c \
498         runtime/mcentral.c \
499         $(runtime_mem_file) \
500         runtime/mfinal.c \
501         runtime/mfixalloc.c \
502         runtime/mgc0.c \
503         runtime/mheap.c \
504         runtime/msize.c \
505         $(runtime_netpoll_files) \
506         runtime/panic.c \
507         runtime/parfor.c \
508         runtime/print.c \
509         runtime/proc.c \
510         runtime/runtime.c \
511         runtime/signal_unix.c \
512         runtime/thread.c \
513         runtime/yield.c \
514         $(rtems_task_variable_add_file) \
515         iface.c \
516         malloc.c \
517         map.c \
518         mprof.c \
519         netpoll.c \
520         reflect.c \
521         runtime1.c \
522         sema.c \
523         sigqueue.c \
524         string.c \
525         time.c \
526         $(runtime_getncpu_file)
528 goc2c.$(OBJEXT): runtime/goc2c.c
529         $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
531 goc2c: goc2c.$(OBJEXT)
532         $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
534 malloc.c: $(srcdir)/runtime/malloc.goc goc2c
535         ./goc2c $< > $@.tmp
536         mv -f $@.tmp $@
538 mprof.c: $(srcdir)/runtime/mprof.goc goc2c
539         ./goc2c $< > $@.tmp
540         mv -f $@.tmp $@
542 netpoll.c: $(srcdir)/runtime/netpoll.goc goc2c
543         ./goc2c $< > $@.tmp
544         mv -f $@.tmp $@
546 reflect.c: $(srcdir)/runtime/reflect.goc goc2c
547         ./goc2c $< > $@.tmp
548         mv -f $@.tmp $@
550 runtime1.c: $(srcdir)/runtime/runtime1.goc goc2c
551         ./goc2c $< > $@.tmp
552         mv -f $@.tmp $@
554 sema.c: $(srcdir)/runtime/sema.goc goc2c
555         ./goc2c $< > $@.tmp
556         mv -f $@.tmp $@
558 sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
559         ./goc2c --go-pkgpath os_signal $< > $@.tmp
560         mv -f $@.tmp $@
562 time.c: $(srcdir)/runtime/time.goc goc2c
563         ./goc2c $< > $@.tmp
564         mv -f $@.tmp $@
566 %.c: $(srcdir)/runtime/%.goc goc2c
567         ./goc2c $< > $@.tmp
568         mv -f $@.tmp $@
570 go_bufio_files = \
571         go/bufio/bufio.go \
572         go/bufio/scan.go
574 go_bytes_files = \
575         go/bytes/buffer.go \
576         go/bytes/bytes.go \
577         go/bytes/bytes_decl.go \
578         go/bytes/reader.go
579 go_bytes_c_files = \
580         go/bytes/indexbyte.c
582 go_crypto_files = \
583         go/crypto/crypto.go
585 go_encoding_files = \
586         go/encoding/encoding.go
588 go_errors_files = \
589         go/errors/errors.go
591 go_expvar_files = \
592         go/expvar/expvar.go
594 go_flag_files = \
595         go/flag/flag.go
597 go_fmt_files = \
598         go/fmt/doc.go \
599         go/fmt/format.go \
600         go/fmt/print.go \
601         go/fmt/scan.go
603 go_hash_files = \
604         go/hash/hash.go
606 go_html_files = \
607         go/html/entity.go \
608         go/html/escape.go
610 go_image_files = \
611         go/image/format.go \
612         go/image/geom.go \
613         go/image/image.go \
614         go/image/names.go \
615         go/image/ycbcr.go
617 go_io_files = \
618         go/io/multi.go \
619         go/io/io.go \
620         go/io/pipe.go
622 go_log_files = \
623         go/log/log.go
625 go_math_files = \
626         go/math/abs.go \
627         go/math/acosh.go \
628         go/math/asin.go \
629         go/math/asinh.go \
630         go/math/atan.go \
631         go/math/atanh.go \
632         go/math/atan2.go \
633         go/math/bits.go \
634         go/math/cbrt.go \
635         go/math/const.go \
636         go/math/copysign.go \
637         go/math/dim.go \
638         go/math/erf.go \
639         go/math/exp.go \
640         go/math/expm1.go \
641         go/math/floor.go \
642         go/math/frexp.go \
643         go/math/gamma.go \
644         go/math/hypot.go \
645         go/math/j0.go \
646         go/math/j1.go \
647         go/math/jn.go \
648         go/math/ldexp.go \
649         go/math/lgamma.go \
650         go/math/log.go \
651         go/math/log1p.go \
652         go/math/log10.go \
653         go/math/logb.go \
654         go/math/mod.go \
655         go/math/modf.go \
656         go/math/nextafter.go \
657         go/math/pow.go \
658         go/math/pow10.go \
659         go/math/remainder.go \
660         go/math/signbit.go \
661         go/math/sin.go \
662         go/math/sincos.go \
663         go/math/sinh.go \
664         go/math/sqrt.go \
665         go/math/tan.go \
666         go/math/tanh.go \
667         go/math/unsafe.go
669 go_mime_files = \
670         go/mime/grammar.go \
671         go/mime/mediatype.go \
672         go/mime/type.go \
673         go/mime/type_unix.go
675 if LIBGO_IS_LINUX
676 go_net_cgo_file = go/net/cgo_linux.go
677 go_net_sock_file = go/net/sock_linux.go
678 go_net_sockopt_file = go/net/sockopt_linux.go
679 go_net_sockoptip_file = go/net/sockoptip_linux.go go/net/sockoptip_posix.go
680 else
681 if LIBGO_IS_IRIX
682 go_net_cgo_file = go/net/cgo_linux.go
683 go_net_sock_file = go/net/sock_linux.go
684 go_net_sockopt_file = go/net/sockopt_linux.go
685 go_net_sockoptip_file = go/net/sockoptip_linux.go go/net/sockoptip_posix.go
686 else
687 if LIBGO_IS_SOLARIS
688 go_net_cgo_file = go/net/cgo_linux.go
689 go_net_sock_file = go/net/sock_solaris.go
690 go_net_sockopt_file = go/net/sockopt_bsd.go
691 go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
692 else
693 if LIBGO_IS_FREEBSD
694 go_net_cgo_file = go/net/cgo_bsd.go
695 go_net_sock_file = go/net/sock_bsd.go
696 go_net_sockopt_file = go/net/sockopt_bsd.go
697 go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
698 else
699 if LIBGO_IS_NETBSD
700 go_net_cgo_file = go/net/cgo_netbsd.go
701 go_net_sock_file = go/net/sock_bsd.go
702 go_net_sockopt_file = go/net/sockopt_bsd.go
703 go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
704 else
705 go_net_cgo_file = go/net/cgo_bsd.go
706 go_net_sock_file = go/net/sock_bsd.go
707 go_net_sockopt_file = go/net/sockopt_bsd.go
708 go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
709 endif
710 endif
711 endif
712 endif
713 endif
715 if LIBGO_IS_LINUX
716 go_net_sendfile_file = go/net/sendfile_linux.go
717 else
718 if LIBGO_IS_FREEBSD
719 go_net_sendfile_file = go/net/sendfile_freebsd.go
720 else
721 if LIBGO_IS_DRAGONFLY
722 go_net_sendfile_file = go/net/sendfile_dragonfly.go
723 else
724 go_net_sendfile_file = go/net/sendfile_stub.go
725 endif
726 endif
727 endif
729 if LIBGO_IS_LINUX
730 go_net_interface_file = go/net/interface_linux.go
731 else
732 if LIBGO_IS_NETBSD
733 go_net_interface_file = go/net/interface_netbsd.go
734 else
735 if LIBGO_IS_DRAGONFLY
736 go_net_interface_file = go/net/interface_dragonfly.go
737 else
738 go_net_interface_file = go/net/interface_stub.go
739 endif
740 endif
741 endif
743 if LIBGO_IS_LINUX
744 go_net_cloexec_file = go/net/sock_cloexec.go
745 else
746 go_net_cloexec_file = go/net/sys_cloexec.go
747 endif
749 if LIBGO_IS_OPENBSD
750 go_net_tcpsockopt_file = go/net/tcpsockopt_openbsd.go
751 else
752 if LIBGO_IS_DARWIN
753 go_net_tcpsockopt_file = go/net/tcpsockopt_darwin.go
754 else
755 if LIBGO_IS_SOLARIS
756 go_net_tcpsockopt_file = go/net/tcpsockopt_darwin.go
757 else
758 go_net_tcpsockopt_file =  go/net/tcpsockopt_unix.go
759 endif
760 endif
761 endif
763 go_net_files = \
764         go/net/cgo_unix.go \
765         $(go_net_cgo_file) \
766         $(go_net_cloexec_file) \
767         go/net/dial.go \
768         go/net/dnsclient.go \
769         go/net/dnsclient_unix.go \
770         go/net/dnsconfig_unix.go \
771         go/net/dnsmsg.go \
772         go/net/fd_mutex.go \
773         go/net/fd_unix.go \
774         go/net/file_unix.go \
775         go/net/hosts.go \
776         go/net/interface.go \
777         $(go_net_interface_file) \
778         go/net/ip.go \
779         go/net/iprawsock.go \
780         go/net/iprawsock_posix.go \
781         go/net/ipsock.go \
782         go/net/ipsock_posix.go \
783         go/net/lookup.go \
784         go/net/lookup_unix.go \
785         go/net/mac.go \
786         go/net/net.go \
787         go/net/parse.go \
788         go/net/pipe.go \
789         go/net/fd_poll_runtime.go \
790         go/net/port.go \
791         go/net/port_unix.go \
792         go/net/race0.go \
793         $(go_net_sendfile_file) \
794         go/net/singleflight.go \
795         go/net/sock_posix.go \
796         $(go_net_sock_file) \
797         go/net/sockopt_posix.go \
798         $(go_net_sockopt_file) \
799         $(go_net_sockoptip_file) \
800         go/net/tcpsock.go \
801         go/net/tcpsock_posix.go \
802         go/net/tcpsockopt_posix.go \
803         $(go_net_tcpsockopt_file) \
804         go/net/udpsock.go \
805         go/net/udpsock_posix.go \
806         go/net/unixsock.go \
807         go/net/unixsock_posix.go
809 if LIBGO_IS_SOLARIS
810 if LIBGO_IS_386
811 go_os_dir_file = go/os/dir_largefile.go
812 else
813 if LIBGO_IS_SPARC
814 go_os_dir_file = go/os/dir_largefile.go
815 else
816 go_os_dir_file = go/os/dir_regfile.go
817 endif
818 endif
819 else
820 if LIBGO_IS_LINUX
821 go_os_dir_file = go/os/dir_largefile.go
822 else
823 go_os_dir_file = go/os/dir_regfile.go
824 endif
825 endif
827 if LIBGO_IS_DARWIN
828 go_os_getwd_file = go/os/getwd_darwin.go
829 else
830 go_os_getwd_file =
831 endif
833 if LIBGO_IS_LINUX
834 go_os_sys_file = go/os/sys_linux.go
835 else
836 if LIBGO_IS_SOLARIS
837 go_os_sys_file = go/os/sys_uname.go
838 else
839 if LIBGO_IS_IRIX
840 go_os_sys_file = go/os/sys_uname.go
841 else
842 if LIBGO_IS_RTEMS
843 go_os_sys_file = go/os/sys_uname.go
844 else
845 go_os_sys_file = go/os/sys_bsd.go
846 endif
847 endif
848 endif
849 endif
851 if LIBGO_IS_SOLARIS
852 go_os_stat_file = go/os/stat_solaris.go
853 else
854 if LIBGO_IS_LINUX
855 go_os_stat_file = go/os/stat_atim.go
856 else
857 if LIBGO_IS_OPENBSD
858 go_os_stat_file = go/os/stat_atim.go
859 else
860 if LIBGO_IS_DARWIN
861 go_os_stat_file = go/os/stat_atimespec.go
862 else
863 if LIBGO_IS_FREEBSD
864 go_os_stat_file = go/os/stat_atimespec.go
865 else
866 if LIBGO_IS_NETBSD
867 go_os_stat_file = go/os/stat_atimespec.go
868 else
869 if LIBGO_IS_DRAGONFLY
870 go_os_stat_file = go/os/stat_dragonfly.go
871 else
872 go_os_stat_file = go/os/stat.go
873 endif
874 endif
875 endif
876 endif
877 endif
878 endif
879 endif
881 if LIBGO_IS_LINUX
882 go_os_pipe_file = go/os/pipe_linux.go
883 else
884 go_os_pipe_file = go/os/pipe_bsd.go
885 endif
887 go_os_files = \
888         $(go_os_dir_file) \
889         go/os/dir.go \
890         go/os/doc.go \
891         go/os/env.go \
892         go/os/error.go \
893         go/os/error_unix.go \
894         go/os/exec.go \
895         go/os/exec_posix.go \
896         go/os/exec_unix.go \
897         go/os/file.go \
898         go/os/file_posix.go \
899         go/os/file_unix.go \
900         go/os/getwd.go \
901         $(go_os_getwd_file) \
902         go/os/path.go \
903         go/os/path_unix.go \
904         $(go_os_pipe_file) \
905         go/os/proc.go \
906         $(go_os_stat_file) \
907         go/os/str.go \
908         $(go_os_sys_file) \
909         go/os/types.go \
910         go/os/types_notwin.go
912 go_path_files = \
913         go/path/match.go \
914         go/path/path.go
916 if LIBGO_IS_X86_64
917 go_reflect_makefunc_file = \
918         go/reflect/makefuncgo_amd64.go
919 go_reflect_makefunc_s_file = \
920         go/reflect/makefunc_amd64.S
921 else
922 if LIBGO_IS_386
923 go_reflect_makefunc_file = \
924         go/reflect/makefuncgo_386.go
925 go_reflect_makefunc_s_file = \
926         go/reflect/makefunc_386.S
927 else
928 go_reflect_makefunc_file =
929 go_reflect_makefunc_s_file = \
930         go/reflect/makefunc_dummy.c
931 endif
932 endif
934 go_reflect_files = \
935         go/reflect/deepequal.go \
936         go/reflect/makefunc.go \
937         $(go_reflect_makefunc_file) \
938         go/reflect/type.go \
939         go/reflect/value.go
941 go_regexp_files = \
942         go/regexp/exec.go \
943         go/regexp/regexp.go
945 go_net_rpc_files = \
946         go/net/rpc/client.go \
947         go/net/rpc/debug.go \
948         go/net/rpc/server.go
950 go_runtime_files = \
951         go/runtime/compiler.go \
952         go/runtime/debug.go \
953         go/runtime/error.go \
954         go/runtime/extern.go \
955         go/runtime/mem.go \
956         go/runtime/softfloat64.go \
957         go/runtime/type.go \
958         version.go
960 version.go: s-version; @true
961 s-version: Makefile
962         rm -f version.go.tmp
963         echo "package runtime" > version.go.tmp
964         echo 'const defaultGoroot = "$(prefix)"' >> version.go.tmp
965         echo 'const theVersion = "'`$(CC) --version | sed 1q`'"' >> version.go.tmp
966         echo 'const theGoarch = "'$(GOARCH)'"' >> version.go.tmp
967         echo 'const theGoos = "'$(GOOS)'"' >> version.go.tmp
968         $(SHELL) $(srcdir)/../move-if-change version.go.tmp version.go
969         $(STAMP) $@
971 go_sort_files = \
972         go/sort/search.go \
973         go/sort/sort.go
975 go_strconv_files = \
976         go/strconv/atob.go \
977         go/strconv/atof.go \
978         go/strconv/atoi.go \
979         go/strconv/decimal.go \
980         go/strconv/extfloat.go \
981         go/strconv/ftoa.go \
982         go/strconv/isprint.go \
983         go/strconv/itoa.go \
984         go/strconv/quote.go
986 go_strings_files = \
987         go/strings/reader.go \
988         go/strings/replace.go \
989         go/strings/search.go \
990         go/strings/strings.go \
991         go/strings/strings_decl.go
992 go_strings_c_files = \
993         go/strings/indexbyte.c
995 go_sync_files = \
996         go/sync/cond.go \
997         go/sync/mutex.go \
998         go/sync/once.go \
999         go/sync/race0.go \
1000         go/sync/runtime.go \
1001         go/sync/rwmutex.go \
1002         go/sync/waitgroup.go
1004 if LIBGO_IS_SOLARIS
1005 go_syslog_file = go/log/syslog/syslog_libc.go
1006 else
1007 if LIBGO_IS_IRIX
1008 go_syslog_file = go/log/syslog/syslog_libc.go
1009 else
1010 go_syslog_file = go/log/syslog/syslog_unix.go
1011 endif
1012 endif
1014 go_log_syslog_files = \
1015         go/log/syslog/syslog.go \
1016         $(go_syslog_file)
1017 go_syslog_c_files = \
1018         go/log/syslog/syslog_c.c
1020 go_testing_files = \
1021         go/testing/allocs.go \
1022         go/testing/benchmark.go \
1023         go/testing/cover.go \
1024         go/testing/example.go \
1025         go/testing/testing.go
1027 go_time_files = \
1028         go/time/format.go \
1029         go/time/sleep.go \
1030         go/time/sys_unix.go \
1031         go/time/tick.go \
1032         go/time/time.go \
1033         go/time/zoneinfo.go \
1034         go/time/zoneinfo_read.go \
1035         go/time/zoneinfo_unix.go
1037 go_unicode_files = \
1038         go/unicode/casetables.go \
1039         go/unicode/digit.go \
1040         go/unicode/graphic.go \
1041         go/unicode/letter.go \
1042         go/unicode/tables.go
1044 if LIBGO_IS_LINUX
1045 archive_tar_atim_file = go/archive/tar/stat_atim.go
1046 endif
1047 if LIBGO_IS_OPENBSD
1048 archive_tar_atim_file = go/archive/tar/stat_atim.go
1049 endif
1050 if LIBGO_IS_SOLARIS
1051 archive_tar_atim_file = go/archive/tar/stat_atim.go
1052 endif
1053 if LIBGO_IS_DARWIN
1054 archive_tar_atim_file = go/archive/tar/stat_atimespec.go
1055 endif
1056 if LIBGO_IS_FREEBSD
1057 archive_tar_atim_file = go/archive/tar/stat_atimespec.go
1058 endif
1059 if LIBGO_IS_NETBSD
1060 archive_tar_atim_file = go/archive/tar/stat_atimespec.go
1061 endif
1063 go_archive_tar_files = \
1064         go/archive/tar/common.go \
1065         go/archive/tar/reader.go \
1066         go/archive/tar/stat_unix.go \
1067         go/archive/tar/writer.go \
1068         $(archive_tar_atim_file)
1070 go_archive_zip_files = \
1071         go/archive/zip/reader.go \
1072         go/archive/zip/register.go \
1073         go/archive/zip/struct.go \
1074         go/archive/zip/writer.go
1076 go_compress_bzip2_files = \
1077         go/compress/bzip2/bit_reader.go \
1078         go/compress/bzip2/bzip2.go \
1079         go/compress/bzip2/huffman.go \
1080         go/compress/bzip2/move_to_front.go
1082 go_compress_flate_files = \
1083         go/compress/flate/copy.go \
1084         go/compress/flate/deflate.go \
1085         go/compress/flate/fixedhuff.go \
1086         go/compress/flate/huffman_bit_writer.go \
1087         go/compress/flate/huffman_code.go \
1088         go/compress/flate/inflate.go \
1089         go/compress/flate/reverse_bits.go \
1090         go/compress/flate/token.go
1092 go_compress_gzip_files = \
1093         go/compress/gzip/gzip.go \
1094         go/compress/gzip/gunzip.go
1096 go_compress_lzw_files = \
1097         go/compress/lzw/reader.go \
1098         go/compress/lzw/writer.go
1100 go_compress_zlib_files = \
1101         go/compress/zlib/reader.go \
1102         go/compress/zlib/writer.go
1104 go_container_heap_files = \
1105         go/container/heap/heap.go
1107 go_container_list_files = \
1108         go/container/list/list.go
1110 go_container_ring_files = \
1111         go/container/ring/ring.go
1113 go_crypto_aes_files = \
1114         go/crypto/aes/block.go \
1115         go/crypto/aes/cipher.go \
1116         go/crypto/aes/cipher_generic.go \
1117         go/crypto/aes/const.go
1118 go_crypto_cipher_files = \
1119         go/crypto/cipher/cbc.go \
1120         go/crypto/cipher/cfb.go \
1121         go/crypto/cipher/cipher.go \
1122         go/crypto/cipher/ctr.go \
1123         go/crypto/cipher/gcm.go \
1124         go/crypto/cipher/io.go \
1125         go/crypto/cipher/ofb.go
1126 go_crypto_des_files = \
1127         go/crypto/des/block.go \
1128         go/crypto/des/cipher.go \
1129         go/crypto/des/const.go
1130 go_crypto_dsa_files = \
1131         go/crypto/dsa/dsa.go
1132 go_crypto_ecdsa_files = \
1133         go/crypto/ecdsa/ecdsa.go
1134 go_crypto_elliptic_files = \
1135         go/crypto/elliptic/elliptic.go \
1136         go/crypto/elliptic/p224.go \
1137         go/crypto/elliptic/p256.go
1138 go_crypto_hmac_files = \
1139         go/crypto/hmac/hmac.go
1140 go_crypto_md5_files = \
1141         go/crypto/md5/md5.go \
1142         go/crypto/md5/md5block.go
1143 go_crypto_rand_files = \
1144         go/crypto/rand/rand.go \
1145         go/crypto/rand/rand_unix.go \
1146         go/crypto/rand/util.go
1147 go_crypto_rc4_files = \
1148         go/crypto/rc4/rc4.go \
1149         go/crypto/rc4/rc4_ref.go
1150 go_crypto_rsa_files = \
1151         go/crypto/rsa/pkcs1v15.go \
1152         go/crypto/rsa/pss.go \
1153         go/crypto/rsa/rsa.go
1154 go_crypto_sha1_files = \
1155         go/crypto/sha1/sha1.go \
1156         go/crypto/sha1/sha1block.go
1157 go_crypto_sha256_files = \
1158         go/crypto/sha256/sha256.go \
1159         go/crypto/sha256/sha256block.go
1160 go_crypto_sha512_files = \
1161         go/crypto/sha512/sha512.go \
1162         go/crypto/sha512/sha512block.go
1163 go_crypto_subtle_files = \
1164         go/crypto/subtle/constant_time.go
1165 go_crypto_tls_files = \
1166         go/crypto/tls/alert.go \
1167         go/crypto/tls/cipher_suites.go \
1168         go/crypto/tls/common.go \
1169         go/crypto/tls/conn.go \
1170         go/crypto/tls/handshake_client.go \
1171         go/crypto/tls/handshake_messages.go \
1172         go/crypto/tls/handshake_server.go \
1173         go/crypto/tls/key_agreement.go \
1174         go/crypto/tls/prf.go \
1175         go/crypto/tls/ticket.go \
1176         go/crypto/tls/tls.go
1177 go_crypto_x509_files = \
1178         go/crypto/x509/cert_pool.go \
1179         go/crypto/x509/pem_decrypt.go \
1180         go/crypto/x509/pkcs1.go \
1181         go/crypto/x509/pkcs8.go \
1182         go/crypto/x509/root.go \
1183         go/crypto/x509/root_unix.go \
1184         go/crypto/x509/sec1.go \
1185         go/crypto/x509/verify.go \
1186         go/crypto/x509/x509.go
1188 go_crypto_x509_pkix_files = \
1189         go/crypto/x509/pkix/pkix.go
1191 go_database_sql_files = \
1192         go/database/sql/convert.go \
1193         go/database/sql/sql.go
1195 go_database_sql_driver_files = \
1196         go/database/sql/driver/driver.go \
1197         go/database/sql/driver/types.go
1199 go_debug_dwarf_files = \
1200         go/debug/dwarf/buf.go \
1201         go/debug/dwarf/const.go \
1202         go/debug/dwarf/entry.go \
1203         go/debug/dwarf/line.go \
1204         go/debug/dwarf/open.go \
1205         go/debug/dwarf/type.go \
1206         go/debug/dwarf/unit.go
1207 go_debug_elf_files = \
1208         go/debug/elf/elf.go \
1209         go/debug/elf/file.go
1210 go_debug_gosym_files = \
1211         go/debug/gosym/pclntab.go \
1212         go/debug/gosym/symtab.go
1213 go_debug_macho_files = \
1214         go/debug/macho/file.go \
1215         go/debug/macho/macho.go
1216 go_debug_pe_files = \
1217         go/debug/pe/file.go \
1218         go/debug/pe/pe.go
1220 go_encoding_ascii85_files = \
1221         go/encoding/ascii85/ascii85.go
1222 go_encoding_asn1_files = \
1223         go/encoding/asn1/asn1.go \
1224         go/encoding/asn1/common.go \
1225         go/encoding/asn1/marshal.go
1226 go_encoding_base32_files = \
1227         go/encoding/base32/base32.go
1228 go_encoding_base64_files = \
1229         go/encoding/base64/base64.go
1230 go_encoding_binary_files = \
1231         go/encoding/binary/binary.go \
1232         go/encoding/binary/varint.go
1233 go_encoding_csv_files = \
1234         go/encoding/csv/reader.go \
1235         go/encoding/csv/writer.go
1236 go_encoding_gob_files = \
1237         go/encoding/gob/decode.go \
1238         go/encoding/gob/decoder.go \
1239         go/encoding/gob/doc.go \
1240         go/encoding/gob/encode.go \
1241         go/encoding/gob/encoder.go \
1242         go/encoding/gob/error.go \
1243         go/encoding/gob/type.go
1244 go_encoding_hex_files = \
1245         go/encoding/hex/hex.go
1246 go_encoding_json_files = \
1247         go/encoding/json/decode.go \
1248         go/encoding/json/encode.go \
1249         go/encoding/json/indent.go \
1250         go/encoding/json/scanner.go \
1251         go/encoding/json/stream.go \
1252         go/encoding/json/tags.go
1253 go_encoding_pem_files = \
1254         go/encoding/pem/pem.go
1255 go_encoding_xml_files = \
1256         go/encoding/xml/marshal.go \
1257         go/encoding/xml/read.go \
1258         go/encoding/xml/typeinfo.go \
1259         go/encoding/xml/xml.go
1261 go_exp_proxy_files = \
1262         go/exp/proxy/direct.go \
1263         go/exp/proxy/per_host.go \
1264         go/exp/proxy/proxy.go \
1265         go/exp/proxy/socks5.go
1266 go_exp_terminal_files = \
1267         go/exp/terminal/terminal.go \
1268         go/exp/terminal/util.go
1270 go_go_ast_files = \
1271         go/go/ast/ast.go \
1272         go/go/ast/commentmap.go \
1273         go/go/ast/filter.go \
1274         go/go/ast/import.go \
1275         go/go/ast/print.go \
1276         go/go/ast/resolve.go \
1277         go/go/ast/scope.go \
1278         go/go/ast/walk.go
1279 go_go_build_files = \
1280         go/go/build/build.go \
1281         go/go/build/doc.go \
1282         go/go/build/read.go \
1283         go/go/build/syslist.go
1284 go_go_doc_files = \
1285         go/go/doc/comment.go \
1286         go/go/doc/doc.go \
1287         go/go/doc/example.go \
1288         go/go/doc/exports.go \
1289         go/go/doc/filter.go \
1290         go/go/doc/reader.go \
1291         go/go/doc/synopsis.go
1292 go_go_format_files = \
1293         go/go/format/format.go
1294 go_go_parser_files = \
1295         go/go/parser/interface.go \
1296         go/go/parser/parser.go
1297 go_go_printer_files = \
1298         go/go/printer/nodes.go \
1299         go/go/printer/printer.go
1300 go_go_scanner_files = \
1301         go/go/scanner/errors.go \
1302         go/go/scanner/scanner.go
1303 go_go_token_files = \
1304         go/go/token/position.go \
1305         go/go/token/serialize.go \
1306         go/go/token/token.go
1308 go_hash_adler32_files = \
1309         go/hash/adler32/adler32.go
1310 go_hash_crc32_files = \
1311         go/hash/crc32/crc32.go \
1312         go/hash/crc32/crc32_generic.go
1313 go_hash_crc64_files = \
1314         go/hash/crc64/crc64.go
1315 go_hash_fnv_files = \
1316         go/hash/fnv/fnv.go
1318 go_html_template_files = \
1319         go/html/template/attr.go \
1320         go/html/template/content.go \
1321         go/html/template/context.go \
1322         go/html/template/css.go \
1323         go/html/template/doc.go \
1324         go/html/template/error.go \
1325         go/html/template/escape.go \
1326         go/html/template/html.go \
1327         go/html/template/js.go \
1328         go/html/template/template.go \
1329         go/html/template/transition.go \
1330         go/html/template/url.go
1332 go_image_color_files = \
1333         go/image/color/color.go \
1334         go/image/color/ycbcr.go
1336 go_image_color_palette_files = \
1337         go/image/color/palette/palette.go
1339 go_image_draw_files = \
1340         go/image/draw/draw.go
1342 go_image_gif_files = \
1343         go/image/gif/reader.go \
1344         go/image/gif/writer.go
1346 go_image_jpeg_files = \
1347         go/image/jpeg/fdct.go \
1348         go/image/jpeg/huffman.go \
1349         go/image/jpeg/idct.go \
1350         go/image/jpeg/reader.go \
1351         go/image/jpeg/scan.go \
1352         go/image/jpeg/writer.go
1354 go_image_png_files = \
1355         go/image/png/paeth.go \
1356         go/image/png/reader.go \
1357         go/image/png/writer.go
1359 go_index_suffixarray_files = \
1360         go/index/suffixarray/qsufsort.go \
1361         go/index/suffixarray/suffixarray.go
1363 go_io_ioutil_files = \
1364         go/io/ioutil/blackhole.go \
1365         go/io/ioutil/ioutil.go \
1366         go/io/ioutil/tempfile.go
1368 go_math_big_files = \
1369         go/math/big/arith.go \
1370         go/math/big/int.go \
1371         go/math/big/nat.go \
1372         go/math/big/rat.go
1373 go_math_cmplx_files = \
1374         go/math/cmplx/abs.go \
1375         go/math/cmplx/asin.go \
1376         go/math/cmplx/conj.go \
1377         go/math/cmplx/exp.go \
1378         go/math/cmplx/isinf.go \
1379         go/math/cmplx/isnan.go \
1380         go/math/cmplx/log.go \
1381         go/math/cmplx/phase.go \
1382         go/math/cmplx/polar.go \
1383         go/math/cmplx/pow.go \
1384         go/math/cmplx/rect.go \
1385         go/math/cmplx/sin.go \
1386         go/math/cmplx/sqrt.go \
1387         go/math/cmplx/tan.go
1388 go_math_rand_files = \
1389         go/math/rand/exp.go \
1390         go/math/rand/normal.go \
1391         go/math/rand/rand.go \
1392         go/math/rand/rng.go \
1393         go/math/rand/zipf.go
1395 go_mime_multipart_files = \
1396         go/mime/multipart/formdata.go \
1397         go/mime/multipart/multipart.go \
1398         go/mime/multipart/quotedprintable.go \
1399         go/mime/multipart/writer.go
1401 go_net_http_files = \
1402         go/net/http/chunked.go \
1403         go/net/http/client.go \
1404         go/net/http/cookie.go \
1405         go/net/http/filetransport.go \
1406         go/net/http/fs.go \
1407         go/net/http/header.go \
1408         go/net/http/jar.go \
1409         go/net/http/lex.go \
1410         go/net/http/request.go \
1411         go/net/http/response.go \
1412         go/net/http/server.go \
1413         go/net/http/sniff.go \
1414         go/net/http/status.go \
1415         go/net/http/transfer.go \
1416         go/net/http/transport.go
1417 go_net_mail_files = \
1418         go/net/mail/message.go
1419 go_net_smtp_files = \
1420         go/net/smtp/auth.go \
1421         go/net/smtp/smtp.go
1422 go_net_textproto_files = \
1423         go/net/textproto/header.go \
1424         go/net/textproto/pipeline.go \
1425         go/net/textproto/reader.go \
1426         go/net/textproto/textproto.go \
1427         go/net/textproto/writer.go
1428 go_net_url_files = \
1429         go/net/url/url.go
1431 go_net_http_cgi_files = \
1432         go/net/http/cgi/child.go \
1433         go/net/http/cgi/host.go
1434 go_net_http_cookiejar_files = \
1435         go/net/http/cookiejar/jar.go \
1436         go/net/http/cookiejar/punycode.go
1437 go_net_http_fcgi_files = \
1438         go/net/http/fcgi/child.go \
1439         go/net/http/fcgi/fcgi.go
1440 go_net_http_httptest_files = \
1441         go/net/http/httptest/recorder.go \
1442         go/net/http/httptest/server.go
1443 go_net_http_pprof_files = \
1444         go/net/http/pprof/pprof.go
1445 go_net_http_httputil_files = \
1446         go/net/http/httputil/chunked.go \
1447         go/net/http/httputil/dump.go \
1448         go/net/http/httputil/persist.go \
1449         go/net/http/httputil/reverseproxy.go
1452 go_old_regexp_files = \
1453         go/old/regexp/regexp.go
1454 go_old_template_files = \
1455         go/old/template/doc.go \
1456         go/old/template/execute.go \
1457         go/old/template/format.go \
1458         go/old/template/parse.go
1460 go_os_exec_files = \
1461         go/os/exec/exec.go \
1462         go/os/exec/lp_unix.go
1464 go_os_signal_files = \
1465         go/os/signal/signal.go \
1466         go/os/signal/signal_unix.go
1468 go_os_user_files = \
1469         go/os/user/user.go \
1470         go/os/user/lookup.go \
1471         go/os/user/lookup_unix.go
1473 go_path_filepath_files = \
1474         go/path/filepath/match.go \
1475         go/path/filepath/path.go \
1476         go/path/filepath/path_unix.go \
1477         go/path/filepath/symlink.go
1479 go_regexp_syntax_files = \
1480         go/regexp/syntax/compile.go \
1481         go/regexp/syntax/doc.go \
1482         go/regexp/syntax/parse.go \
1483         go/regexp/syntax/perl_groups.go \
1484         go/regexp/syntax/prog.go \
1485         go/regexp/syntax/regexp.go \
1486         go/regexp/syntax/simplify.go
1488 go_net_rpc_jsonrpc_files = \
1489         go/net/rpc/jsonrpc/client.go \
1490         go/net/rpc/jsonrpc/server.go
1492 go_runtime_debug_files = \
1493         go/runtime/debug/garbage.go \
1494         go/runtime/debug/stack.go
1495 go_runtime_pprof_files = \
1496         go/runtime/pprof/pprof.go
1498 go_text_tabwriter_files = \
1499         go/text/tabwriter/tabwriter.go
1500 go_text_template_files = \
1501         go/text/template/doc.go \
1502         go/text/template/exec.go \
1503         go/text/template/funcs.go \
1504         go/text/template/helper.go \
1505         go/text/template/template.go
1506 go_text_template_parse_files = \
1507         go/text/template/parse/lex.go \
1508         go/text/template/parse/node.go \
1509         go/text/template/parse/parse.go
1511 go_sync_atomic_files = \
1512         go/sync/atomic/doc.go
1513 go_sync_atomic_c_files = \
1514         go/sync/atomic/atomic.c
1516 go_testing_iotest_files = \
1517         go/testing/iotest/logger.go \
1518         go/testing/iotest/reader.go \
1519         go/testing/iotest/writer.go
1520 go_testing_quick_files = \
1521         go/testing/quick/quick.go
1523 go_text_scanner_files = \
1524         go/text/scanner/scanner.go
1526 go_unicode_utf16_files = \
1527         go/unicode/utf16/utf16.go
1528 go_unicode_utf8_files = \
1529         go/unicode/utf8/utf8.go
1531 # Define Syscall and Syscall6.
1532 if LIBGO_IS_RTEMS
1533 syscall_syscall_file = go/syscall/syscall_stubs.go
1534 else
1535 syscall_syscall_file = go/syscall/syscall_unix.go
1536 endif
1538 # Define ForkExec and Exec.
1539 if LIBGO_IS_RTEMS
1540 syscall_exec_file = go/syscall/exec_stubs.go
1541 syscall_exec_os_file =
1542 else
1543 if LIBGO_IS_LINUX
1544 syscall_exec_file = go/syscall/exec_unix.go
1545 syscall_exec_os_file = go/syscall/exec_linux.go
1546 else
1547 syscall_exec_file = go/syscall/exec_unix.go
1548 syscall_exec_os_file = go/syscall/exec_bsd.go
1549 endif
1550 endif
1552 # Define Wait4.
1553 if LIBGO_IS_RTEMS
1554 syscall_wait_file =
1555 else
1556 if HAVE_WAIT4
1557 syscall_wait_file = go/syscall/libcall_wait4.go
1558 else
1559 syscall_wait_file = go/syscall/libcall_waitpid.go
1560 endif
1561 endif
1563 # Support for pulling apart wait status.
1564 if LIBGO_IS_RTEMS
1565 syscall_wait_c_file =
1566 else
1567 syscall_wait_c_file = go/syscall/wait.c
1568 endif
1570 # Define Sleep.
1571 if LIBGO_IS_RTEMS
1572 syscall_sleep_file = go/syscall/sleep_rtems.go
1573 else
1574 syscall_sleep_file = go/syscall/sleep_select.go
1575 endif
1577 # Define Errstr.
1578 if LIBGO_IS_LINUX
1579 syscall_errstr_file = go/syscall/errstr_linux.go
1580 else
1581 if LIBGO_IS_RTEMS
1582 syscall_errstr_file = go/syscall/errstr_linux.go
1583 else
1584 if HAVE_STRERROR_R
1585 syscall_errstr_file = go/syscall/errstr.go
1586 else
1587 syscall_errstr_file = go/syscall/errstr_nor.go
1588 endif
1589 endif
1590 endif
1592 # Declare libc functions that vary for largefile systems.
1593 if LIBGO_IS_LINUX
1594 # Always use lseek64 on GNU/Linux.
1595 syscall_size_file = go/syscall/libcall_posix_largefile.go
1596 else # !LIBGO_IS_LINUX
1597 if LIBGO_IS_SOLARIS
1598 if LIBGO_IS_386
1599 # Use lseek64 on 32-bit Solaris/x86.
1600 syscall_size_file = go/syscall/libcall_posix_largefile.go
1601 else # !LIBGO_IS_386
1602 if LIBGO_IS_SPARC
1603 # Use lseek64 on 32-bit Solaris/SPARC.
1604 syscall_size_file = go/syscall/libcall_posix_largefile.go
1605 else # !LIBGO_IS_386 && !LIBGO_IS_SPARC
1606 # Use lseek on 64-bit Solaris.
1607 syscall_size_file = go/syscall/libcall_posix_regfile.go
1608 endif # !LIBGO_IS_386 && !LIBGO_IS_SPARC
1609 endif # !LIBGO_IS_SOLARIS
1610 else # !LIBGO_IS_LINUX && !LIBGO_IS_SOLARIS
1611 # Use lseek by default.
1612 syscall_size_file = go/syscall/libcall_posix_regfile.go
1613 endif # !LIBGO_IS_SOLARIS
1614 endif # !LIBGO_IS_LINUX
1616 # Define socket sizes and types.
1617 if LIBGO_IS_LINUX
1618 syscall_socket_file = go/syscall/socket_linux.go epoll.go
1619 else
1620 if LIBGO_IS_SOLARIS
1621 syscall_socket_file = go/syscall/socket_solaris.go
1622 else
1623 if LIBGO_IS_IRIX
1624 syscall_socket_file = go/syscall/socket_irix.go
1625 else
1626 syscall_socket_file = go/syscall/socket_bsd.go
1627 endif
1628 endif
1629 endif
1631 # Define socket functions.
1632 if LIBGO_IS_SOLARIS
1633 syscall_socket_os_file = go/syscall/socket_xnet.go
1634 else
1635 syscall_socket_os_file = go/syscall/socket_posix.go
1636 endif
1638 # Support for uname.
1639 if LIBGO_IS_SOLARIS
1640 if LIBGO_IS_386
1641 # 32-bit Solaris 2/x86 needs _nuname, handled in libcall_solaris_386.go.
1642 syscall_uname_file =
1643 else # !LIBGO_IS_386 && LIBGO_IS_SOLARIS
1644 syscall_uname_file = go/syscall/libcall_uname.go
1645 endif
1646 else # !LIBGO_IS_SOLARIS
1647 syscall_uname_file = go/syscall/libcall_uname.go
1648 endif
1650 # GNU/Linux specific socket control messages.
1651 if LIBGO_IS_LINUX
1652 syscall_sockcmsg_file = go/syscall/sockcmsg_linux.go
1653 else
1654 syscall_sockcmsg_file =
1655 endif
1657 # Support for netlink sockets and messages.
1658 if LIBGO_IS_LINUX
1659 syscall_netlink_file = go/syscall/netlink_linux.go
1660 else
1661 syscall_netlink_file =
1662 endif
1664 # GNU/Linux specific socket filters.
1665 if LIBGO_IS_LINUX
1666 syscall_lsf_file = go/syscall/lsf_linux.go
1667 else
1668 syscall_lsf_file =
1669 endif
1671 # GNU/Linux specific utimesnano support.
1672 if LIBGO_IS_LINUX
1673 syscall_utimesnano_file = go/syscall/libcall_linux_utimesnano.go
1674 else
1675 syscall_utimesnano_file = go/syscall/libcall_posix_utimesnano.go
1676 endif
1678 # Test files.
1679 if LIBGO_IS_LINUX
1680 syscall_creds_test_file = go/syscall/creds_test.go
1681 else
1682 syscall_creds_test_file =
1683 endif
1685 go_base_syscall_files = \
1686         go/syscall/env_unix.go \
1687         go/syscall/syscall_errno.go \
1688         go/syscall/libcall_support.go \
1689         go/syscall/libcall_posix.go \
1690         go/syscall/race0.go \
1691         go/syscall/socket.go \
1692         go/syscall/sockcmsg_unix.go \
1693         go/syscall/str.go \
1694         go/syscall/syscall.go \
1695         $(syscall_sockcmsg_file) \
1696         $(syscall_syscall_file) \
1697         $(syscall_exec_file) \
1698         $(syscall_exec_os_file) \
1699         $(syscall_wait_file) \
1700         $(syscall_sleep_file) \
1701         $(syscall_errstr_file) \
1702         $(syscall_size_file) \
1703         $(syscall_socket_file) \
1704         $(syscall_socket_os_file) \
1705         $(syscall_uname_file) \
1706         $(syscall_netlink_file) \
1707         $(syscall_lsf_file) \
1708         $(syscall_utimesnano_file) \
1709         $(GO_LIBCALL_OS_FILE) \
1710         $(GO_LIBCALL_OS_ARCH_FILE) \
1711         $(GO_SYSCALL_OS_FILE) \
1712         $(GO_SYSCALL_OS_ARCH_FILE)
1714 go_syscall_files = \
1715         $(go_base_syscall_files) \
1716         libcalls.go \
1717         sysinfo.go \
1718         syscall_arch.go
1719 go_syscall_c_files = \
1720         go/syscall/errno.c \
1721         go/syscall/signame.c \
1722         $(syscall_wait_c_file)
1724 go_syscall_test_files = \
1725         $(syscall_creds_test_file) \
1726         go/syscall/passfd_test.go
1728 libcalls.go: s-libcalls; @true
1729 s-libcalls: libcalls-list go/syscall/mksyscall.awk $(go_base_syscall_files)
1730         rm -f libcalls.go.tmp
1731         files=`echo $^ | sed -e 's/libcalls-list//' -e 's|[^ ]*go/syscall/mksyscall.awk||'`; \
1732         $(AWK) -f $(srcdir)/go/syscall/mksyscall.awk $${files} > libcalls.go.tmp
1733         $(SHELL) $(srcdir)/../move-if-change libcalls.go.tmp libcalls.go
1734         $(STAMP) $@
1736 libcalls-list: s-libcalls-list; @true
1737 s-libcalls-list: Makefile
1738         rm -f libcalls-list.tmp
1739         echo $(go_base_syscall_files) > libcalls-list.tmp
1740         $(SHELL) $(srcdir)/../move-if-change libcalls-list.tmp libcalls-list
1741         $(STAMP) $@
1743 syscall_arch.go: s-syscall_arch; @true
1744 s-syscall_arch: Makefile
1745         rm -f syscall_arch.go.tmp
1746         echo "package syscall" > syscall_arch.go.tmp
1747         echo 'const ARCH = "'$(GOARCH)'"' >> syscall_arch.go.tmp
1748         echo 'const OS = "'$(GOOS)'"' >> syscall_arch.go.tmp
1749         $(SHELL) $(srcdir)/../move-if-change syscall_arch.go.tmp syscall_arch.go
1750         $(STAMP) $@
1752 sysinfo.go: s-sysinfo; @true
1753 s-sysinfo: $(srcdir)/mksysinfo.sh config.h
1754         CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS)" $(SHELL) $(srcdir)/mksysinfo.sh
1755         $(SHELL) $(srcdir)/../move-if-change tmp-sysinfo.go sysinfo.go
1756         $(STAMP) $@
1758 # The epoll struct has an embedded union and is packed on x86_64,
1759 # which is too complicated for mksysinfo.sh.  We find the offset of
1760 # the only field we care about in configure.ac, and generate the
1761 # struct here.
1762 epoll.go: s-epoll; @true
1763 s-epoll: Makefile
1764         rm -f epoll.go.tmp
1765         echo 'package syscall' > epoll.go.tmp
1766         echo 'type EpollEvent struct {' >> epoll.go.tmp
1767         echo '  Events uint32' >> epoll.go.tmp
1768         case "$(SIZEOF_STRUCT_EPOLL_EVENT),$(STRUCT_EPOLL_EVENT_FD_OFFSET)" in \
1769         0,0) echo 1>&2 "*** struct epoll_event data.fd offset unknown"; \
1770            exit 1; ;; \
1771         8,4) echo '     Fd int32' >> epoll.go.tmp; ;; \
1772         12,4) echo '    Fd int32' >> epoll.go.tmp; \
1773            echo '       Pad [4]byte' >> epoll.go.tmp; ;; \
1774         12,8) echo '    Pad [4]byte' >> epoll.go.tmp; \
1775            echo '       Fd int32' >> epoll.go.tmp; ;; \
1776         16,8) echo '    Pad [4]byte' >> epoll.go.tmp; \
1777            echo '       Fd int32' >> epoll.go.tmp; \
1778            echo '       Pad2 [4]byte' >> epoll.go.tmp; ;; \
1779         *) echo 1>&2 "*** struct epoll_event unsupported"; \
1780            exit 1; ;; \
1781         esac
1782         echo '}' >> epoll.go.tmp
1783         $(SHELL) $(srcdir)/../move-if-change epoll.go.tmp epoll.go
1784         $(STAMP) $@
1786 if LIBGO_IS_LINUX
1787 # os_lib_inotify_lo = os/inotify.lo
1788 os_lib_inotify_lo =
1789 else
1790 os_lib_inotify_lo =
1791 endif
1793 libgo_go_objs = \
1794         bufio.lo \
1795         bytes.lo \
1796         bytes/index.lo \
1797         crypto.lo \
1798         encoding.lo \
1799         errors.lo \
1800         expvar.lo \
1801         flag.lo \
1802         fmt.lo \
1803         hash.lo \
1804         html.lo \
1805         image.lo \
1806         io.lo \
1807         log.lo \
1808         math.lo \
1809         mime.lo \
1810         net.lo \
1811         os.lo \
1812         path.lo \
1813         reflect-go.lo \
1814         reflect/makefunc.lo \
1815         regexp.lo \
1816         runtime-go.lo \
1817         sort.lo \
1818         strconv.lo \
1819         strings.lo \
1820         strings/index.lo \
1821         sync.lo \
1822         syscall.lo \
1823         syscall/errno.lo \
1824         syscall/signame.lo \
1825         syscall/wait.lo \
1826         testing.lo \
1827         time-go.lo \
1828         unicode.lo \
1829         archive/tar.lo \
1830         archive/zip.lo \
1831         compress/bzip2.lo \
1832         compress/flate.lo \
1833         compress/gzip.lo \
1834         compress/lzw.lo \
1835         compress/zlib.lo \
1836         container/heap.lo \
1837         container/list.lo \
1838         container/ring.lo \
1839         crypto/aes.lo \
1840         crypto/cipher.lo \
1841         crypto/des.lo \
1842         crypto/dsa.lo \
1843         crypto/ecdsa.lo \
1844         crypto/elliptic.lo \
1845         crypto/hmac.lo \
1846         crypto/md5.lo \
1847         crypto/rand.lo \
1848         crypto/rc4.lo \
1849         crypto/rsa.lo \
1850         crypto/sha1.lo \
1851         crypto/sha256.lo \
1852         crypto/sha512.lo \
1853         crypto/subtle.lo \
1854         crypto/tls.lo \
1855         crypto/x509.lo \
1856         crypto/x509/pkix.lo \
1857         database/sql.lo \
1858         database/sql/driver.lo \
1859         debug/dwarf.lo \
1860         debug/elf.lo \
1861         debug/gosym.lo \
1862         debug/macho.lo \
1863         debug/pe.lo \
1864         encoding/ascii85.lo \
1865         encoding/asn1.lo \
1866         encoding/base32.lo \
1867         encoding/base64.lo \
1868         encoding/binary.lo \
1869         encoding/csv.lo \
1870         encoding/gob.lo \
1871         encoding/hex.lo \
1872         encoding/json.lo \
1873         encoding/pem.lo \
1874         encoding/xml.lo \
1875         exp/proxy.lo \
1876         exp/terminal.lo \
1877         html/template.lo \
1878         go/ast.lo \
1879         go/build.lo \
1880         go/doc.lo \
1881         go/format.lo \
1882         go/parser.lo \
1883         go/printer.lo \
1884         go/scanner.lo \
1885         go/token.lo \
1886         hash/adler32.lo \
1887         hash/crc32.lo \
1888         hash/crc64.lo \
1889         hash/fnv.lo \
1890         net/http/cgi.lo \
1891         net/http/cookiejar.lo \
1892         net/http/fcgi.lo \
1893         net/http/httptest.lo \
1894         net/http/httputil.lo \
1895         net/http/pprof.lo \
1896         image/color.lo \
1897         image/color/palette.lo \
1898         image/draw.lo \
1899         image/gif.lo \
1900         image/jpeg.lo \
1901         image/png.lo \
1902         index/suffixarray.lo \
1903         io/ioutil.lo \
1904         log/syslog.lo \
1905         log/syslog/syslog_c.lo \
1906         math/big.lo \
1907         math/cmplx.lo \
1908         math/rand.lo \
1909         mime/multipart.lo \
1910         net/http.lo \
1911         net/mail.lo \
1912         net/rpc.lo \
1913         net/smtp.lo \
1914         net/textproto.lo \
1915         net/url.lo \
1916         old/regexp.lo \
1917         old/template.lo \
1918         os/exec.lo \
1919         $(os_lib_inotify_lo) \
1920         os/signal.lo \
1921         os/user.lo \
1922         path/filepath.lo \
1923         regexp/syntax.lo \
1924         net/rpc/jsonrpc.lo \
1925         runtime/debug.lo \
1926         runtime/pprof.lo \
1927         sync/atomic.lo \
1928         sync/atomic_c.lo \
1929         text/scanner.lo \
1930         text/tabwriter.lo \
1931         text/template.lo \
1932         text/template/parse.lo \
1933         testing/iotest.lo \
1934         testing/quick.lo \
1935         unicode/utf16.lo \
1936         unicode/utf8.lo
1938 libgo_la_SOURCES = $(runtime_files)
1940 libgo_la_LDFLAGS = \
1941         -version-info $(libtool_VERSION) $(PTHREAD_CFLAGS) $(AM_LDFLAGS)
1943 libgo_la_LIBADD = \
1944         $(libgo_go_objs) ../libbacktrace/libbacktrace.la \
1945         ../libatomic/libatomic_convenience.la \
1946         $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)
1948 libgobegin_a_SOURCES = \
1949         runtime/go-main.c
1951 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
1953 GOCFLAGS = $(CFLAGS)
1954 AM_GOCFLAGS = $(STRINGOPS_FLAG)
1955 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
1957 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
1958         $(AM_GOCFLAGS) $(GOCFLAGS)
1960 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
1961         $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
1963 # Build the dependencies for a Go package.
1964 BUILDDEPS = \
1965         $(MKDIR_P) $(@D); \
1966         $(SHELL) $(srcdir)/godeps.sh `echo $@ | sed -e 's/.dep$$//'` $^ > $@.tmp; \
1967         mv -f $@.tmp $@
1969 # Build the .go files for a package, generating a .lo file.
1970 BUILDPACKAGE = \
1971         $(MKDIR_P) $(@D); \
1972         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
1973         $(LTGOCOMPILE) -I . -c -fgo-pkgpath=`echo $@ | sed -e 's/.lo$$//' -e 's/-go$$//'` -o $@ $$files
1975 GOTESTFLAGS =
1977 # Check a package.
1978 CHECK = \
1979         GC="$(GOC) $(GOCFLAGS) $($(subst /,_,$@)_GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
1980         export GC; \
1981         GOLIBS="$(MATH_LIBS) $(NET_LIBS) $(LIBS)"; \
1982         export GOLIBS; \
1983         RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
1984         export RUNTESTFLAGS; \
1985         MAKE="$(MAKE)"; \
1986         export MAKE; \
1987         libgccdir=`${GOC} -print-libgcc-file-name | sed -e 's|/[^/]*$$||'`; \
1988         LD_LIBRARY_PATH="`${PWD_COMMAND}`/.libs:$${libgccdir}:${LD_LIBRARY_PATH}"; \
1989         LD_LIBRARY_PATH=`echo $${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
1990         export LD_LIBRARY_PATH; \
1991         $(MKDIR_P) $(@D); \
1992         rm -f $@-testsum $@-testlog; \
1993         if test "$(USE_DEJAGNU)" = "yes"; then \
1994           $(SHELL) $(srcdir)/testsuite/gotest --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --testname="$(@D)" --goarch="$(GOARCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files); \
1995         else \
1996           if $(SHELL) $(srcdir)/testsuite/gotest --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --goarch="$(GOARCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files) >>$@-testlog 2>&1; then \
1997             echo "PASS: $(@D)" >> $@-testlog; \
1998             echo "PASS: $(@D)"; \
1999             echo "PASS: $(@D)" > $@-testsum; \
2000           else \
2001             echo "FAIL: $(@D)" >> $@-testlog; \
2002             cat $@-testlog; \
2003             echo "FAIL: $(@D)" > $@-testsum; \
2004             exit 1; \
2005           fi; \
2006         fi
2008 # Build all packages before checking any.
2009 CHECK_DEPS = libgo.la libgobegin.a \
2010         $(toolexeclibgo_DATA) \
2011         $(toolexeclibgoarchive_DATA) \
2012         $(toolexeclibgocompress_DATA) \
2013         $(toolexeclibgocontainer_DATA) \
2014         $(toolexeclibgocrypto_DATA) \
2015         $(toolexeclibgodebug_DATA) \
2016         $(toolexeclibgoencoding_DATA) \
2017         $(toolexeclibgoexp_DATA) \
2018         $(toolexeclibgogo_DATA) \
2019         $(toolexeclibgohash_DATA) \
2020         $(toolexeclibgoimage_DATA) \
2021         $(toolexeclibgoindex_DATA) \
2022         $(toolexeclibgoio_DATA) \
2023         $(toolexeclibgolog_DATA) \
2024         $(toolexeclibgomath_DATA) \
2025         $(toolexeclibgomime_DATA) \
2026         $(toolexeclibgonet_DATA) \
2027         $(toolexeclibgonethttp_DATA) \
2028         $(toolexeclibgoos_DATA) \
2029         $(toolexeclibgopath_DATA) \
2030         $(toolexeclibgorpc_DATA) \
2031         $(toolexeclibgoruntime_DATA) \
2032         $(toolexeclibgosync_DATA) \
2033         $(toolexeclibgotesting_DATA) \
2034         $(toolexeclibgotext_DATA) \
2035         $(toolexeclibgotexttemplate_DATA) \
2036         $(toolexeclibgounicode_DATA)
2038 @go_include@ bufio.lo.dep
2039 bufio.lo.dep: $(go_bufio_files)
2040         $(BUILDDEPS)
2041 bufio.lo: $(go_bufio_files)
2042         $(BUILDPACKAGE)
2043 bufio/check: $(CHECK_DEPS)
2044         @$(CHECK)
2045 .PHONY: bufio/check
2047 @go_include@ bytes.lo.dep
2048 bytes.lo.dep: $(go_bytes_files)
2049         $(BUILDDEPS)
2050 bytes.lo: $(go_bytes_files)
2051         $(BUILDPACKAGE)
2052 bytes/index.lo: $(go_bytes_c_files)
2053         @$(MKDIR_P) bytes
2054         $(LTCOMPILE) -c -o bytes/index.lo $(srcdir)/go/bytes/indexbyte.c
2055 bytes/check: $(CHECK_DEPS)
2056         @$(CHECK)
2057 .PHONY: bytes/check
2059 @go_include@ crypto.lo.dep
2060 crypto.lo.dep: $(go_crypto_files)
2061         $(BUILDDEPS)
2062 crypto.lo: $(go_crypto_files)
2063         $(BUILDPACKAGE)
2064 crypto/check: $(CHECK_DEPS)
2065         @$(CHECK)
2066 .PHONY: crypto/check
2068 @go_include@ encoding.lo.dep
2069 encoding.lo.dep: $(go_encoding_files)
2070         $(BUILDDEPS)
2071 encoding.lo: $(go_encoding_files)
2072         $(BUILDPACKAGE)
2073 encoding/check: $(CHECK_DEPS)
2074         @$(CHECK)
2075 .PHONY: encoding/check
2077 @go_include@ errors.lo.dep
2078 errors.lo.dep: $(go_errors_files)
2079         $(BUILDDEPS)
2080 errors.lo: $(go_errors_files)
2081         $(BUILDPACKAGE)
2082 errors/check: $(CHECK_DEPS)
2083         @$(CHECK)
2084 .PHONY: errors/check
2086 @go_include@ expvar.lo.dep
2087 expvar.lo.dep: $(go_expvar_files)
2088         $(BUILDDEPS)
2089 expvar.lo: $(go_expvar_files)
2090         $(BUILDPACKAGE)
2091 expvar/check: $(CHECK_DEPS)
2092         @$(CHECK)
2093 .PHONY: expvar/check
2095 @go_include@ flag.lo.dep
2096 flag.lo.dep: $(go_flag_files)
2097         $(BUILDDEPS)
2098 flag.lo: $(go_flag_files)
2099         $(BUILDPACKAGE)
2100 flag/check: $(CHECK_DEPS)
2101         @$(CHECK)
2102 .PHONY: flag/check
2104 @go_include@ fmt.lo.dep
2105 fmt.lo.dep: $(go_fmt_files)
2106         $(BUILDDEPS)
2107 fmt.lo: $(go_fmt_files)
2108         $(BUILDPACKAGE)
2109 fmt/check: $(CHECK_DEPS)
2110         @$(CHECK)
2111 .PHONY: fmt/check
2113 @go_include@ hash.lo.dep
2114 hash.lo.dep: $(go_hash_files)
2115         $(BUILDDEPS)
2116 hash.lo: $(go_hash_files)
2117         $(BUILDPACKAGE)
2118 hash/check: $(CHECK_DEPS)
2119         @$(CHECK)
2120 .PHONY: hash/check
2122 @go_include@ html.lo.dep
2123 html.lo.dep: $(go_html_files)
2124         $(BUILDDEPS)
2125 html.lo: $(go_html_files)
2126         $(BUILDPACKAGE)
2127 html/check: $(CHECK_DEPS)
2128         @$(CHECK)
2129 .PHONY: html/check
2131 @go_include@ image.lo.dep
2132 image.lo.dep: $(go_image_files)
2133         $(BUILDDEPS)
2134 image.lo: $(go_image_files)
2135         $(BUILDPACKAGE)
2136 image/check: $(CHECK_DEPS)
2137         @$(CHECK)
2138 .PHONY: image/check
2140 @go_include@ io.lo.dep
2141 io.lo.dep: $(go_io_files)
2142         $(BUILDDEPS)
2143 io.lo: $(go_io_files)
2144         $(BUILDPACKAGE)
2145 io/check: $(CHECK_DEPS)
2146         @$(CHECK)
2147 .PHONY: io/check
2149 @go_include@ log.lo.dep
2150 log.lo.dep: $(go_log_files)
2151         $(BUILDDEPS)
2152 log.lo: $(go_log_files)
2153         $(BUILDPACKAGE)
2154 log/check: $(CHECK_DEPS)
2155         @$(CHECK)
2156 .PHONY: log/check
2158 @go_include@ math.lo.dep
2159 math.lo.dep: $(go_math_files)
2160         $(BUILDDEPS)
2161 math.lo: $(go_math_files)
2162         $(MKDIR_P) $(@D)
2163         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
2164         $(LTGOCOMPILE) $(MATH_FLAG) -I . -c -fgo-pkgpath=math -o $@ $$files
2165 math/check: $(CHECK_DEPS)
2166         @$(CHECK)
2167 .PHONY: math/check
2169 @go_include@ mime.lo.dep
2170 mime.lo.dep: $(go_mime_files)
2171         $(BUILDDEPS)
2172 mime.lo: $(go_mime_files)
2173         $(BUILDPACKAGE)
2174 mime/check: $(CHECK_DEPS)
2175         @$(CHECK)
2176 .PHONY: mime/check
2178 @go_include@ net.lo.dep
2179 net.lo.dep: $(go_net_files)
2180         $(BUILDDEPS)
2181 net.lo: $(go_net_files)
2182         $(BUILDPACKAGE)
2183 net/check: $(CHECK_DEPS)
2184         @$(CHECK)
2185 .PHONY: net/check
2187 @go_include@ os.lo.dep
2188 os.lo.dep: $(go_os_files)
2189         $(BUILDDEPS)
2190 os.lo: $(go_os_files)
2191         $(BUILDPACKAGE)
2192 os/check: $(CHECK_DEPS)
2193         @$(CHECK)
2194 .PHONY: os/check
2196 @go_include@ path.lo.dep
2197 path.lo.dep: $(go_path_files)
2198         $(BUILDDEPS)
2199 path.lo: $(go_path_files)
2200         $(BUILDPACKAGE)
2201 path/check: $(CHECK_DEPS)
2202         @$(CHECK)
2203 .PHONY: path/check
2205 @go_include@ reflect-go.lo.dep
2206 reflect-go.lo.dep: $(go_reflect_files)
2207         $(BUILDDEPS)
2208 reflect-go.lo: $(go_reflect_files)
2209         $(BUILDPACKAGE)
2210 reflect/check: $(CHECK_DEPS)
2211         @$(CHECK)
2212 reflect/makefunc.lo: $(go_reflect_makefunc_s_file)
2213         @$(MKDIR_P) reflect
2214         $(LTCOMPILE) -c -o $@ $<
2215 .PHONY: reflect/check
2217 @go_include@ regexp.lo.dep
2218 regexp.lo.dep: $(go_regexp_files)
2219         $(BUILDDEPS)
2220 regexp.lo: $(go_regexp_files)
2221         $(BUILDPACKAGE)
2222 regexp/check: $(CHECK_DEPS)
2223         @$(CHECK)
2224 .PHONY: regexp/check
2226 @go_include@ runtime-go.lo.dep
2227 runtime-go.lo.dep: $(go_runtime_files)
2228         $(BUILDDEPS)
2229 runtime-go.lo: $(go_runtime_files)
2230         $(BUILDPACKAGE)
2231 runtime/check: $(CHECK_DEPS)
2232         @$(CHECK)
2233 .PHONY: runtime/check
2235 @go_include@ sort.lo.dep
2236 sort.lo.dep: $(go_sort_files)
2237         $(BUILDDEPS)
2238 sort.lo: $(go_sort_files)
2239         $(BUILDPACKAGE)
2240 sort/check: $(CHECK_DEPS)
2241         @$(CHECK)
2242 .PHONY: sort/check
2244 @go_include@ strconv.lo.dep
2245 strconv.lo.dep: $(go_strconv_files)
2246         $(BUILDDEPS)
2247 strconv.lo: $(go_strconv_files)
2248         $(BUILDPACKAGE)
2249 strconv/check: $(CHECK_DEPS)
2250         @$(CHECK)
2251 .PHONY: strconv/check
2253 @go_include@ strings.lo.dep
2254 strings.lo.dep: $(go_strings_files)
2255         $(BUILDDEPS)
2256 strings.lo: $(go_strings_files)
2257         $(BUILDPACKAGE)
2258 strings/index.lo: $(go_strings_c_files)
2259         @$(MKDIR_P) strings
2260         $(LTCOMPILE) -c -o strings/index.lo $(srcdir)/go/strings/indexbyte.c
2261 strings/check: $(CHECK_DEPS)
2262         @$(CHECK)
2263 .PHONY: strings/check
2265 @go_include@ sync.lo.dep
2266 sync.lo.dep: $(go_sync_files)
2267         $(BUILDDEPS)
2268 sync.lo: $(go_sync_files)
2269         $(BUILDPACKAGE)
2270 sync/check: $(CHECK_DEPS)
2271         @$(CHECK)
2272 .PHONY: sync/check
2274 @go_include@ testing.lo.dep
2275 testing.lo.dep: $(go_testing_files)
2276         $(BUILDDEPS)
2277 testing.lo: $(go_testing_files)
2278         $(BUILDPACKAGE)
2279 testing/check: $(CHECK_DEPS)
2280         @$(CHECK)
2281 .PHONY: testing/check
2283 @go_include@ time-go.lo.dep
2284 time-go.lo.dep: $(go_time_files)
2285         $(BUILDDEPS)
2286 time-go.lo: $(go_time_files)
2287         $(BUILDPACKAGE)
2288 time/check: $(CHECK_DEPS)
2289         @$(CHECK)
2290 .PHONY: time/check
2292 @go_include@ unicode.lo.dep
2293 unicode.lo.dep: $(go_unicode_files)
2294         $(BUILDDEPS)
2295 unicode.lo: $(go_unicode_files)
2296         $(BUILDPACKAGE)
2297 unicode/check: $(CHECK_DEPS)
2298         @$(CHECK)
2299 .PHONY: unicode/check
2301 @go_include@ archive/tar.lo.dep
2302 archive/tar.lo.dep: $(go_archive_tar_files)
2303         $(BUILDDEPS)
2304 archive/tar.lo: $(go_archive_tar_files)
2305         $(BUILDPACKAGE)
2306 archive/tar/check: $(CHECK_DEPS)
2307         @$(CHECK)
2308 .PHONY: archive/tar/check
2310 @go_include@ archive/zip.lo.dep
2311 archive/zip.lo.dep: $(go_archive_zip_files)
2312         $(BUILDDEPS)
2313 archive/zip.lo: $(go_archive_zip_files)
2314         $(BUILDPACKAGE)
2315 archive/zip/check: $(CHECK_DEPS)
2316         @$(CHECK)
2317 .PHONY: archive/zip/check
2319 @go_include@ compress/bzip2.lo.dep
2320 compress/bzip2.lo.dep: $(go_compress_bzip2_files)
2321         $(BUILDDEPS)
2322 compress/bzip2.lo: $(go_compress_bzip2_files)
2323         $(BUILDPACKAGE)
2324 compress/bzip2/check: $(CHECK_DEPS)
2325         @$(CHECK)
2326 .PHONY: compress/bzip2/check
2328 @go_include@ compress/flate.lo.dep
2329 compress/flate.lo.dep: $(go_compress_flate_files)
2330         $(BUILDDEPS)
2331 compress/flate.lo: $(go_compress_flate_files)
2332         $(BUILDPACKAGE)
2333 compress/flate/check: $(CHECK_DEPS)
2334         @$(CHECK)
2335 .PHONY: compress/flate/check
2337 @go_include@ compress/gzip.lo.dep
2338 compress/gzip.lo.dep: $(go_compress_gzip_files)
2339         $(BUILDDEPS)
2340 compress/gzip.lo: $(go_compress_gzip_files)
2341         $(BUILDPACKAGE)
2342 compress/gzip/check: $(CHECK_DEPS)
2343         @$(CHECK)
2344 .PHONY: compress/gzip/check
2346 @go_include@ compress/lzw.lo.dep
2347 compress/lzw.lo.dep: $(go_compress_lzw_files)
2348         $(BUILDDEPS)
2349 compress/lzw.lo: $(go_compress_lzw_files)
2350         $(BUILDPACKAGE)
2351 compress/lzw/check: $(CHECK_DEPS)
2352         @$(CHECK)
2353 .PHONY: compress/lzw/check
2355 @go_include@ compress/zlib.lo.dep
2356 compress/zlib.lo.dep: $(go_compress_zlib_files)
2357         $(BUILDDEPS)
2358 compress/zlib.lo: $(go_compress_zlib_files)
2359         $(BUILDPACKAGE)
2360 compress/zlib/check: $(CHECK_DEPS)
2361         @$(CHECK)
2362 .PHONY: compress/zlib/check
2364 @go_include@ container/heap.lo.dep
2365 container/heap.lo.dep: $(go_container_heap_files)
2366         $(BUILDDEPS)
2367 container/heap.lo: $(go_container_heap_files)
2368         $(BUILDPACKAGE)
2369 container/heap/check: $(CHECK_DEPS)
2370         @$(CHECK)
2371 .PHONY: container/heap/check
2373 @go_include@ container/list.lo.dep
2374 container/list.lo.dep: $(go_container_list_files)
2375         $(BUILDDEPS)
2376 container/list.lo: $(go_container_list_files)
2377         $(BUILDPACKAGE)
2378 container/list/check: $(CHECK_DEPS)
2379         @$(CHECK)
2380 .PHONY: container/list/check
2382 @go_include@ container/ring.lo.dep
2383 container/ring.lo.dep: $(go_container_ring_files)
2384         $(BUILDDEPS)
2385 container/ring.lo: $(go_container_ring_files)
2386         $(BUILDPACKAGE)
2387 container/ring/check: $(CHECK_DEPS)
2388         @$(CHECK)
2389 .PHONY: container/ring/check
2391 @go_include@ crypto/aes.lo.dep
2392 crypto/aes.lo.dep: $(go_crypto_aes_files)
2393         $(BUILDDEPS)
2394 crypto/aes.lo: $(go_crypto_aes_files)
2395         $(BUILDPACKAGE)
2396 crypto/aes/check: $(CHECK_DEPS)
2397         @$(CHECK)
2398 .PHONY: crypto/aes/check
2400 @go_include@ crypto/cipher.lo.dep
2401 crypto/cipher.lo.dep: $(go_crypto_cipher_files)
2402         $(BUILDDEPS)
2403 crypto/cipher.lo: $(go_crypto_cipher_files)
2404         $(BUILDPACKAGE)
2405 crypto/cipher/check: $(CHECK_DEPS)
2406         @$(CHECK)
2407 .PHONY: crypto/cipher/check
2409 @go_include@ crypto/des.lo.dep
2410 crypto/des.lo.dep: $(go_crypto_des_files)
2411         $(BUILDDEPS)
2412 crypto/des.lo: $(go_crypto_des_files)
2413         $(BUILDPACKAGE)
2414 crypto/des/check: $(CHECK_DEPS)
2415         @$(CHECK)
2416 .PHONY: crypto/des/check
2418 @go_include@ crypto/dsa.lo.dep
2419 crypto/dsa.lo.dep: $(go_crypto_dsa_files)
2420         $(BUILDDEPS)
2421 crypto/dsa.lo: $(go_crypto_dsa_files)
2422         $(BUILDPACKAGE)
2423 crypto/dsa/check: $(CHECK_DEPS)
2424         @$(CHECK)
2425 .PHONY: crypto/dsa/check
2427 @go_include@ crypto/ecdsa.lo.dep
2428 crypto/ecdsa.lo.dep: $(go_crypto_ecdsa_files)
2429         $(BUILDDEPS)
2430 crypto/ecdsa.lo: $(go_crypto_ecdsa_files)
2431         $(BUILDPACKAGE)
2432 crypto/ecdsa/check: $(CHECK_DEPS)
2433         @$(CHECK)
2434 .PHONY: crypto/ecdsa/check
2436 @go_include@ crypto/elliptic.lo.dep
2437 crypto/elliptic.lo.dep: $(go_crypto_elliptic_files)
2438         $(BUILDDEPS)
2439 crypto/elliptic.lo: $(go_crypto_elliptic_files)
2440         $(BUILDPACKAGE)
2441 crypto/elliptic/check: $(CHECK_DEPS)
2442         @$(CHECK)
2443 .PHONY: crypto/elliptic/check
2445 @go_include@ crypto/hmac.lo.dep
2446 crypto/hmac.lo.dep: $(go_crypto_hmac_files)
2447         $(BUILDDEPS)
2448 crypto/hmac.lo: $(go_crypto_hmac_files)
2449         $(BUILDPACKAGE)
2450 crypto/hmac/check: $(CHECK_DEPS)
2451         @$(CHECK)
2452 .PHONY: crypto/hmac/check
2454 @go_include@ crypto/md5.lo.dep
2455 crypto/md5.lo.dep: $(go_crypto_md5_files)
2456         $(BUILDDEPS)
2457 crypto/md5.lo: $(go_crypto_md5_files)
2458         $(BUILDPACKAGE)
2459 crypto/md5/check: $(CHECK_DEPS)
2460         @$(CHECK)
2461 .PHONY: crypto/md5/check
2463 @go_include@ crypto/rand.lo.dep
2464 crypto/rand.lo.dep: $(go_crypto_rand_files)
2465         $(BUILDDEPS)
2466 crypto/rand.lo: $(go_crypto_rand_files)
2467         $(BUILDPACKAGE)
2468 crypto/rand/check: $(CHECK_DEPS)
2469         @$(CHECK)
2470 .PHONY: crypto/rand/check
2472 @go_include@ crypto/rc4.lo.dep
2473 crypto/rc4.lo.dep: $(go_crypto_rc4_files)
2474         $(BUILDDEPS)
2475 crypto/rc4.lo: $(go_crypto_rc4_files)
2476         $(BUILDPACKAGE)
2477 crypto/rc4/check: $(CHECK_DEPS)
2478         @$(CHECK)
2479 .PHONY: crypto/rc4/check
2481 @go_include@ crypto/rsa.lo.dep
2482 crypto/rsa.lo.dep: $(go_crypto_rsa_files)
2483         $(BUILDDEPS)
2484 crypto/rsa.lo: $(go_crypto_rsa_files)
2485         $(BUILDPACKAGE)
2486 crypto/rsa/check: $(CHECK_DEPS)
2487         @$(CHECK)
2488 .PHONY: crypto/rsa/check
2490 @go_include@ crypto/sha1.lo.dep
2491 crypto/sha1.lo.dep: $(go_crypto_sha1_files)
2492         $(BUILDDEPS)
2493 crypto/sha1.lo: $(go_crypto_sha1_files)
2494         $(BUILDPACKAGE)
2495 crypto/sha1/check: $(CHECK_DEPS)
2496         @$(CHECK)
2497 .PHONY: crypto/sha1/check
2499 @go_include@ crypto/sha256.lo.dep
2500 crypto/sha256.lo.dep: $(go_crypto_sha256_files)
2501         $(BUILDDEPS)
2502 crypto/sha256.lo: $(go_crypto_sha256_files)
2503         $(BUILDPACKAGE)
2504 crypto/sha256/check: $(CHECK_DEPS)
2505         @$(CHECK)
2506 .PHONY: crypto/sha256/check
2508 @go_include@ crypto/sha512.lo.dep
2509 crypto/sha512.lo.dep: $(go_crypto_sha512_files)
2510         $(BUILDDEPS)
2511 crypto/sha512.lo: $(go_crypto_sha512_files)
2512         $(BUILDPACKAGE)
2513 crypto/sha512/check: $(CHECK_DEPS)
2514         @$(CHECK)
2515 .PHONY: crypto/sha512/check
2517 @go_include@ crypto/subtle.lo.dep
2518 crypto/subtle.lo.dep: $(go_crypto_subtle_files)
2519         $(BUILDDEPS)
2520 crypto/subtle.lo: $(go_crypto_subtle_files)
2521         $(BUILDPACKAGE)
2522 crypto/subtle/check: $(CHECK_DEPS)
2523         @$(CHECK)
2524 .PHONY: crypto/subtle/check
2526 @go_include@ crypto/tls.lo.dep
2527 crypto/tls.lo.dep: $(go_crypto_tls_files)
2528         $(BUILDDEPS)
2529 crypto/tls.lo: $(go_crypto_tls_files)
2530         $(BUILDPACKAGE)
2531 crypto/tls/check: $(CHECK_DEPS)
2532         @$(CHECK)
2533 .PHONY: crypto/tls/check
2535 @go_include@ crypto/x509.lo.dep
2536 crypto/x509.lo.dep: $(go_crypto_x509_files)
2537         $(BUILDDEPS)
2538 crypto/x509.lo: $(go_crypto_x509_files)
2539         $(BUILDPACKAGE)
2540 crypto/x509/check: $(CHECK_DEPS)
2541         @$(CHECK)
2542 .PHONY: crypto/x509/check
2544 @go_include@ crypto/x509/pkix.lo.dep
2545 crypto/x509/pkix.lo.dep: $(go_crypto_x509_pkix_files)
2546         $(BUILDDEPS)
2547 crypto/x509/pkix.lo: $(go_crypto_x509_pkix_files)
2548         $(BUILDPACKAGE)
2549 crypto/x509/pkix/check: $(CHECK_DEPS)
2550         @$(CHECK)
2551 .PHONY: crypto/x509/pkix/check
2553 @go_include@ database/sql.lo.dep
2554 database/sql.lo.dep: $(go_database_sql_files)
2555         $(BUILDDEPS)
2556 database/sql.lo: $(go_database_sql_files)
2557         $(BUILDPACKAGE)
2558 database/sql/check: $(CHECK_DEPS)
2559         @$(CHECK)
2560 .PHONY: database/sql/check
2562 @go_include@ database/sql/driver.lo.dep
2563 database/sql/driver.lo.dep: $(go_database_sql_driver_files)
2564         $(BUILDDEPS)
2565 database/sql/driver.lo: $(go_database_sql_driver_files)
2566         $(BUILDPACKAGE)
2567 database/sql/driver/check: $(CHECK_DEPS)
2568         @$(CHECK)
2569 .PHONY: database/sql/driver/check
2571 @go_include@ debug/dwarf.lo.dep
2572 debug/dwarf.lo.dep: $(go_debug_dwarf_files)
2573         $(BUILDDEPS)
2574 debug/dwarf.lo: $(go_debug_dwarf_files)
2575         $(BUILDPACKAGE)
2576 debug/dwarf/check: $(CHECK_DEPS)
2577         @$(CHECK)
2578 .PHONY: debug/dwarf/check
2580 @go_include@ debug/elf.lo.dep
2581 debug/elf.lo.dep: $(go_debug_elf_files)
2582         $(BUILDDEPS)
2583 debug/elf.lo: $(go_debug_elf_files)
2584         $(BUILDPACKAGE)
2585 debug/elf/check: $(CHECK_DEPS)
2586         @$(CHECK)
2587 .PHONY: debug/elf/check
2589 @go_include@ debug/gosym.lo.dep
2590 debug/gosym.lo.dep: $(go_debug_gosym_files)
2591         $(BUILDDEPS)
2592 debug/gosym.lo: $(go_debug_gosym_files)
2593         $(BUILDPACKAGE)
2594 debug/gosym/check: $(CHECK_DEPS)
2595         @$(CHECK)
2596 .PHONY: debug/gosym/check
2598 @go_include@ debug/macho.lo.dep
2599 debug/macho.lo.dep: $(go_debug_macho_files)
2600         $(BUILDDEPS)
2601 debug/macho.lo: $(go_debug_macho_files)
2602         $(BUILDPACKAGE)
2603 debug/macho/check: $(CHECK_DEPS)
2604         @$(CHECK)
2605 .PHONY: debug/macho/check
2607 @go_include@ debug/pe.lo.dep
2608 debug/pe.lo.dep: $(go_debug_pe_files)
2609         $(BUILDDEPS)
2610 debug/pe.lo: $(go_debug_pe_files)
2611         $(BUILDPACKAGE)
2612 debug/pe/check: $(CHECK_DEPS)
2613         @$(CHECK)
2614 .PHONY: debug/pe/check
2616 @go_include@ encoding/asn1.lo.dep
2617 encoding/asn1.lo.dep: $(go_encoding_asn1_files)
2618         $(BUILDDEPS)
2619 encoding/asn1.lo: $(go_encoding_asn1_files)
2620         $(BUILDPACKAGE)
2621 encoding/asn1/check: $(CHECK_DEPS)
2622         @$(CHECK)
2623 .PHONY: encoding/asn1/check
2625 @go_include@ encoding/ascii85.lo.dep
2626 encoding/ascii85.lo.dep: $(go_encoding_ascii85_files)
2627         $(BUILDDEPS)
2628 encoding/ascii85.lo: $(go_encoding_ascii85_files)
2629         $(BUILDPACKAGE)
2630 encoding/ascii85/check: $(CHECK_DEPS)
2631         @$(CHECK)
2632 .PHONY: encoding/ascii85/check
2634 @go_include@ encoding/base32.lo.dep
2635 encoding/base32.lo.dep: $(go_encoding_base32_files)
2636         $(BUILDDEPS)
2637 encoding/base32.lo: $(go_encoding_base32_files)
2638         $(BUILDPACKAGE)
2639 encoding/base32/check: $(CHECK_DEPS)
2640         @$(CHECK)
2641 .PHONY: encoding/base32/check
2643 @go_include@ encoding/base64.lo.dep
2644 encoding/base64.lo.dep: $(go_encoding_base64_files)
2645         $(BUILDDEPS)
2646 encoding/base64.lo: $(go_encoding_base64_files)
2647         $(BUILDPACKAGE)
2648 encoding/base64/check: $(CHECK_DEPS)
2649         @$(CHECK)
2650 .PHONY: encoding/base64/check
2652 @go_include@ encoding/binary.lo.dep
2653 encoding/binary.lo.dep: $(go_encoding_binary_files)
2654         $(BUILDDEPS)
2655 encoding/binary.lo: $(go_encoding_binary_files)
2656         $(BUILDPACKAGE)
2657 encoding/binary/check: $(CHECK_DEPS)
2658         @$(CHECK)
2659 .PHONY: encoding/binary/check
2661 @go_include@ encoding/csv.lo.dep
2662 encoding/csv.lo.dep: $(go_encoding_csv_files)
2663         $(BUILDDEPS)
2664 encoding/csv.lo: $(go_encoding_csv_files)
2665         $(BUILDPACKAGE)
2666 encoding/csv/check: $(CHECK_DEPS)
2667         @$(CHECK)
2668 .PHONY: encoding/csv/check
2670 @go_include@ encoding/gob.lo.dep
2671 encoding/gob.lo.dep: $(go_encoding_gob_files)
2672         $(BUILDDEPS)
2673 encoding/gob.lo: $(go_encoding_gob_files)
2674         $(BUILDPACKAGE)
2675 encoding/gob/check: $(CHECK_DEPS)
2676         @$(CHECK)
2677 .PHONY: encoding/gob/check
2679 @go_include@ encoding/hex.lo.dep
2680 encoding/hex.lo.dep: $(go_encoding_hex_files)
2681         $(BUILDDEPS)
2682 encoding/hex.lo: $(go_encoding_hex_files)
2683         $(BUILDPACKAGE)
2684 encoding/hex/check: $(CHECK_DEPS)
2685         @$(CHECK)
2686 .PHONY: encoding/hex/check
2688 @go_include@ encoding/json.lo.dep
2689 encoding/json.lo.dep: $(go_encoding_json_files)
2690         $(BUILDDEPS)
2691 encoding/json.lo: $(go_encoding_json_files)
2692         $(BUILDPACKAGE)
2693 encoding/json/check: $(CHECK_DEPS)
2694         @$(CHECK)
2695 .PHONY: encoding/json/check
2697 @go_include@ encoding/pem.lo.dep
2698 encoding/pem.lo.dep: $(go_encoding_pem_files)
2699         $(BUILDDEPS)
2700 encoding/pem.lo: $(go_encoding_pem_files)
2701         $(BUILDPACKAGE)
2702 encoding/pem/check: $(CHECK_DEPS)
2703         @$(CHECK)
2704 .PHONY: encoding/pem/check
2706 @go_include@ encoding/xml.lo.dep
2707 encoding/xml.lo.dep: $(go_encoding_xml_files)
2708         $(BUILDDEPS)
2709 encoding/xml.lo: $(go_encoding_xml_files)
2710         $(BUILDPACKAGE)
2711 encoding/xml/check: $(CHECK_DEPS)
2712         @$(CHECK)
2713 .PHONY: encoding/xml/check
2715 @go_include@ exp/proxy.lo.dep
2716 exp/proxy.lo.dep: $(go_exp_proxy_files)
2717         $(BUILDDEPS)
2718 exp/proxy.lo: $(go_exp_proxy_files)
2719         $(BUILDPACKAGE)
2720 exp/proxy/check: $(CHECK_DEPS)
2721         @$(CHECK)
2722 .PHONY: exp/proxy/check
2724 @go_include@ exp/terminal.lo.dep
2725 exp/terminal.lo.dep: $(go_exp_terminal_files)
2726         $(BUILDDEPS)
2727 exp/terminal.lo: $(go_exp_terminal_files)
2728         $(BUILDPACKAGE)
2729 exp/terminal/check: $(CHECK_DEPS)
2730         @$(CHECK)
2731 .PHONY: exp/terminal/check
2733 @go_include@ html/template.lo.dep
2734 html/template.lo.dep: $(go_html_template_files)
2735         $(BUILDDEPS)
2736 html/template.lo: $(go_html_template_files)
2737         $(BUILDPACKAGE)
2738 html/template/check: $(CHECK_DEPS)
2739         @$(CHECK)
2740 .PHONY: html/template/check
2742 @go_include@ go/ast.lo.dep
2743 go/ast.lo.dep: $(go_go_ast_files)
2744         $(BUILDDEPS)
2745 go/ast.lo: $(go_go_ast_files)
2746         $(BUILDPACKAGE)
2747 go/ast/check: $(CHECK_DEPS)
2748         @$(CHECK)
2749 .PHONY: go/ast/check
2751 @go_include@ go/build.lo.dep
2752 go/build.lo.dep: $(go_go_build_files)
2753         $(BUILDDEPS)
2754 go/build.lo: $(go_go_build_files)
2755         $(BUILDPACKAGE)
2756 go/build/check: $(CHECK_DEPS)
2757         @$(CHECK)
2758 .PHONY: go/build/check
2760 @go_include@ go/doc.lo.dep
2761 go/doc.lo.dep: $(go_go_doc_files)
2762         $(BUILDDEPS)
2763 go/doc.lo: $(go_go_doc_files)
2764         $(BUILDPACKAGE)
2765 go/doc/check: $(CHECK_DEPS)
2766         @$(CHECK)
2767 .PHONY: go/doc/check
2769 @go_include@ go/format.lo.dep
2770 go/format.lo.dep: $(go_go_format_files)
2771         $(BUILDDEPS)
2772 go/format.lo: $(go_go_format_files)
2773         $(BUILDPACKAGE)
2774 go/format/check: $(CHECK_DEPS)
2775         @$(CHECK)
2776 .PHONY: go/format/check
2778 @go_include@ go/parser.lo.dep
2779 go/parser.lo.dep: $(go_go_parser_files)
2780         $(BUILDDEPS)
2781 go/parser.lo: $(go_go_parser_files)
2782         $(BUILDPACKAGE)
2783 go/parser/check: $(CHECK_DEPS)
2784         @$(CHECK)
2785 .PHONY: go/parser/check
2787 @go_include@ go/printer.lo.dep
2788 go/printer.lo.dep: $(go_go_printer_files)
2789         $(BUILDDEPS)
2790 go/printer.lo: $(go_go_printer_files)
2791         $(BUILDPACKAGE)
2792 go/printer/check: $(CHECK_DEPS)
2793         @$(CHECK)
2794 .PHONY: go/printer/check
2796 @go_include@ go/scanner.lo.dep
2797 go/scanner.lo.dep: $(go_go_scanner_files)
2798         $(BUILDDEPS)
2799 go/scanner.lo: $(go_go_scanner_files)
2800         $(BUILDPACKAGE)
2801 go/scanner/check: $(CHECK_DEPS)
2802         @$(CHECK)
2803 .PHONY: go/scanner/check
2805 @go_include@ go/token.lo.dep
2806 go/token.lo.dep: $(go_go_token_files)
2807         $(BUILDDEPS)
2808 go/token.lo: $(go_go_token_files)
2809         $(BUILDPACKAGE)
2810 go/token/check: $(CHECK_DEPS)
2811         @$(CHECK)
2812 .PHONY: go/token/check
2814 @go_include@ hash/adler32.lo.dep
2815 hash/adler32.lo.dep: $(go_hash_adler32_files)
2816         $(BUILDDEPS)
2817 hash/adler32.lo: $(go_hash_adler32_files)
2818         $(BUILDPACKAGE)
2819 hash/adler32/check: $(CHECK_DEPS)
2820         @$(CHECK)
2821 .PHONY: hash/adler32/check
2823 @go_include@ hash/crc32.lo.dep
2824 hash/crc32.lo.dep: $(go_hash_crc32_files)
2825         $(BUILDDEPS)
2826 hash/crc32.lo: $(go_hash_crc32_files)
2827         $(BUILDPACKAGE)
2828 hash/crc32/check: $(CHECK_DEPS)
2829         @$(CHECK)
2830 .PHONY: hash/crc32/check
2832 @go_include@ hash/crc64.lo.dep
2833 hash/crc64.lo.dep: $(go_hash_crc64_files)
2834         $(BUILDDEPS)
2835 hash/crc64.lo: $(go_hash_crc64_files)
2836         $(BUILDPACKAGE)
2837 hash/crc64/check: $(CHECK_DEPS)
2838         @$(CHECK)
2839 .PHONY: hash/crc64/check
2841 @go_include@ hash/fnv.lo.dep
2842 hash/fnv.lo.dep: $(go_hash_fnv_files)
2843         $(BUILDDEPS)
2844 hash/fnv.lo: $(go_hash_fnv_files)
2845         $(BUILDPACKAGE)
2846 hash/fnv/check: $(CHECK_DEPS)
2847         @$(CHECK)
2848 .PHONY: hash/fnv/check
2850 @go_include@ image/color.lo.dep
2851 image/color.lo.dep: $(go_image_color_files)
2852         $(BUILDDEPS)
2853 image/color.lo: $(go_image_color_files)
2854         $(BUILDPACKAGE)
2855 image/color/check: $(CHECK_DEPS)
2856         @$(CHECK)
2857 .PHONY: image/color/check
2859 @go_include@ image/color/palette.lo.dep
2860 image/color/palette.lo.dep: $(go_image_color_palette_files)
2861         $(BUILDDEPS)
2862 image/color/palette.lo: $(go_image_color_palette_files)
2863         $(BUILDPACKAGE)
2864 image/color/palette/check: $(CHECK_DEPS)
2865         @$(CHECK)
2866 .PHONY: image/color/palette/check
2868 @go_include@ image/draw.lo.dep
2869 image/draw.lo.dep: $(go_image_draw_files)
2870         $(BUILDDEPS)
2871 image/draw.lo: $(go_image_draw_files)
2872         $(BUILDPACKAGE)
2873 image/draw/check: $(CHECK_DEPS)
2874         @$(CHECK)
2875 .PHONY: image/draw/check
2877 @go_include@ image/gif.lo.dep
2878 image/gif.lo.dep: $(go_image_gif_files)
2879         $(BUILDDEPS)
2880 image/gif.lo: $(go_image_gif_files)
2881         $(BUILDPACKAGE)
2882 image/gif/check: $(CHECK_DEPS)
2883         @$(CHECK)
2884 .PHONY: image/gif/check
2886 @go_include@ image/jpeg.lo.dep
2887 image/jpeg.lo.dep: $(go_image_jpeg_files)
2888         $(BUILDDEPS)
2889 image/jpeg.lo: $(go_image_jpeg_files)
2890         $(BUILDPACKAGE)
2891 image/jpeg/check: $(CHECK_DEPS)
2892         @$(CHECK)
2893 .PHONY: image/jpeg/check
2895 @go_include@ image/png.lo.dep
2896 image/png.lo.dep: $(go_image_png_files)
2897         $(BUILDDEPS)
2898 image/png.lo: $(go_image_png_files)
2899         $(BUILDPACKAGE)
2900 image/png/check: $(CHECK_DEPS)
2901         @$(CHECK)
2902 .PHONY: image/png/check
2904 @go_include@ index/suffixarray.lo.dep
2905 index/suffixarray.lo.dep: $(go_index_suffixarray_files)
2906         $(BUILDDEPS)
2907 index/suffixarray.lo: $(go_index_suffixarray_files)
2908         $(BUILDPACKAGE)
2909 index/suffixarray/check: $(CHECK_DEPS)
2910         @$(CHECK)
2911 .PHONY: index/suffixarray/check
2913 @go_include@ io/ioutil.lo.dep
2914 io/ioutil.lo.dep: $(go_io_ioutil_files)
2915         $(BUILDDEPS)
2916 io/ioutil.lo: $(go_io_ioutil_files)
2917         $(BUILDPACKAGE)
2918 io/ioutil/check: $(CHECK_DEPS)
2919         @$(CHECK)
2920 .PHONY: io/ioutil/check
2922 @go_include@ log/syslog.lo.dep
2923 log/syslog.lo.dep: $(go_log_syslog_files)
2924         $(BUILDDEPS)
2925 log/syslog.lo: $(go_log_syslog_files)
2926         $(BUILDPACKAGE)
2927 log/syslog/syslog_c.lo: $(go_syslog_c_files) log/syslog.lo
2928         @$(MKDIR_P) log/syslog
2929         $(LTCOMPILE) -c -o $@ $(srcdir)/go/log/syslog/syslog_c.c
2930 log/syslog/check: $(CHECK_DEPS)
2931         @$(CHECK)
2932 .PHONY: log/syslog/check
2934 @go_include@ math/big.lo.dep
2935 math/big.lo.dep: $(go_math_big_files)
2936         $(BUILDDEPS)
2937 math/big.lo: $(go_math_big_files)
2938         $(BUILDPACKAGE)
2939 math/big/check: $(CHECK_DEPS)
2940         @$(CHECK)
2941 .PHONY: math/big/check
2943 @go_include@ math/cmplx.lo.dep
2944 math/cmplx.lo.dep: $(go_math_cmplx_files)
2945         $(BUILDDEPS)
2946 math/cmplx.lo: $(go_math_cmplx_files)
2947         $(BUILDPACKAGE)
2948 math/cmplx/check: $(CHECK_DEPS)
2949         @$(CHECK)
2950 .PHONY: math/cmplx/check
2952 @go_include@ math/rand.lo.dep
2953 math/rand.lo.dep: $(go_math_rand_files)
2954         $(BUILDDEPS)
2955 math/rand.lo: $(go_math_rand_files)
2956         $(BUILDPACKAGE)
2957 math/rand/check: $(CHECK_DEPS)
2958         @$(CHECK)
2959 .PHONY: math/rand/check
2961 @go_include@ mime/multipart.lo.dep
2962 mime/multipart.lo.dep: $(go_mime_multipart_files)
2963         $(BUILDDEPS)
2964 mime/multipart.lo: $(go_mime_multipart_files)
2965         $(BUILDPACKAGE)
2966 mime/multipart/check: $(CHECK_DEPS)
2967         @$(CHECK)
2968 .PHONY: mime/multipart/check
2970 @go_include@ net/http.lo.dep
2971 net/http.lo.dep: $(go_net_http_files)
2972         $(BUILDDEPS)
2973 net/http.lo: $(go_net_http_files)
2974         $(BUILDPACKAGE)
2975 net/http/check: $(CHECK_DEPS)
2976         @$(CHECK)
2977 .PHONY: net/http/check
2979 @go_include@ net/mail.lo.dep
2980 net/mail.lo.dep: $(go_net_mail_files)
2981         $(BUILDDEPS)
2982 net/mail.lo: $(go_net_mail_files)
2983         $(BUILDPACKAGE)
2984 net/mail/check: $(CHECK_DEPS)
2985         @$(CHECK)
2986 .PHONY: net/mail/check
2988 @go_include@ net/rpc.lo.dep
2989 net/rpc.lo.dep: $(go_net_rpc_files)
2990         $(BUILDDEPS)
2991 net/rpc.lo: $(go_net_rpc_files)
2992         $(BUILDPACKAGE)
2993 net/rpc/check: $(CHECK_DEPS)
2994         @$(CHECK)
2995 .PHONY: net/rpc/check
2997 @go_include@ net/smtp.lo.dep
2998 net/smtp.lo.dep: $(go_net_smtp_files)
2999         $(BUILDDEPS)
3000 net/smtp.lo: $(go_net_smtp_files)
3001         $(BUILDPACKAGE)
3002 net/smtp/check: $(CHECK_DEPS)
3003         @$(CHECK)
3004 .PHONY: net/smtp/check
3006 @go_include@ net/url.lo.dep
3007 net/url.lo.dep: $(go_net_url_files)
3008         $(BUILDDEPS)
3009 net/url.lo: $(go_net_url_files)
3010         $(BUILDPACKAGE)
3011 net/url/check: $(CHECK_DEPS)
3012         @$(CHECK)
3013 .PHONY: net/url/check
3015 @go_include@ net/textproto.lo.dep
3016 net/textproto.lo.dep: $(go_net_textproto_files)
3017         $(BUILDDEPS)
3018 net/textproto.lo: $(go_net_textproto_files)
3019         $(BUILDPACKAGE)
3020 net/textproto/check: $(CHECK_DEPS)
3021         @$(CHECK)
3022 .PHONY: net/textproto/check
3024 @go_include@ net/http/cgi.lo.dep
3025 net/http/cgi.lo.dep: $(go_net_http_cgi_files)
3026         $(BUILDDEPS)
3027 net/http/cgi.lo: $(go_net_http_cgi_files)
3028         $(BUILDPACKAGE)
3029 net/http/cgi/check: $(CHECK_DEPS)
3030         @$(CHECK)
3031 .PHONY: net/http/cgi/check
3033 @go_include@ net/http/cookiejar.lo.dep
3034 net/http/cookiejar.lo.dep: $(go_net_http_cookiejar_files)
3035         $(BUILDDEPS)
3036 net/http/cookiejar.lo: $(go_net_http_cookiejar_files)
3037         $(BUILDPACKAGE)
3038 net/http/cookiejar/check: $(CHECK_DEPS)
3039         @$(CHECK)
3040 .PHONY: net/http/cookiejar/check
3042 @go_include@ net/http/fcgi.lo.dep
3043 net/http/fcgi.lo.dep: $(go_net_http_fcgi_files)
3044         $(BUILDDEPS)
3045 net/http/fcgi.lo: $(go_net_http_fcgi_files)
3046         $(BUILDPACKAGE)
3047 net/http/fcgi/check: $(CHECK_DEPS)
3048         @$(CHECK)
3049 .PHONY: net/http/fcgi/check
3051 @go_include@ net/http/httptest.lo.dep
3052 net/http/httptest.lo.dep: $(go_net_http_httptest_files)
3053         $(BUILDDEPS)
3054 net/http/httptest.lo: $(go_net_http_httptest_files)
3055         $(BUILDPACKAGE)
3056 net/http/httptest/check: $(check_deps)
3057         @$(CHECK)
3058 .PHONY: net/http/httptest/check
3060 @go_include@ net/http/httputil.lo.dep
3061 net/http/httputil.lo.dep: $(go_net_http_httputil_files)
3062         $(BUILDDEPS)
3063 net/http/httputil.lo: $(go_net_http_httputil_files)
3064         $(BUILDPACKAGE)
3065 net/http/httputil/check: $(check_deps)
3066         @$(CHECK)
3067 .PHONY: net/http/httputil/check
3069 @go_include@ net/http/pprof.lo.dep
3070 net/http/pprof.lo.dep: $(go_net_http_pprof_files)
3071         $(BUILDDEPS)
3072 net/http/pprof.lo: $(go_net_http_pprof_files)
3073         $(BUILDPACKAGE)
3074 net/http/pprof/check: $(CHECK_DEPS)
3075         @$(CHECK)
3076 .PHONY: net/http/pprof/check
3078 @go_include@ net/rpc/jsonrpc.lo.dep
3079 net/rpc/jsonrpc.lo.dep: $(go_net_rpc_jsonrpc_files)
3080         $(BUILDDEPS)
3081 net/rpc/jsonrpc.lo: $(go_net_rpc_jsonrpc_files)
3082         $(BUILDPACKAGE)
3083 net/rpc/jsonrpc/check: $(CHECK_DEPS)
3084         @$(CHECK)
3085 .PHONY: net/rpc/jsonrpc/check
3087 @go_include@ old/regexp.lo.dep
3088 old/regexp.lo.dep: $(go_old_regexp_files)
3089         $(BUILDDEPS)
3090 old/regexp.lo: $(go_old_regexp_files)
3091         $(BUILDPACKAGE)
3092 old/regexp/check: $(CHECK_DEPS)
3093         @$(CHECK)
3094 .PHONY: old/regexp/check
3096 @go_include@ old/template.lo.dep
3097 old/template.lo.dep: $(go_old_template_files)
3098         $(BUILDDEPS)
3099 old/template.lo: $(go_old_template_files)
3100         $(BUILDPACKAGE)
3101 old/template/check: $(CHECK_DEPS)
3102         @$(CHECK)
3103 .PHONY: old/template/check
3105 @go_include@ os/exec.lo.dep
3106 os/exec.lo.dep: $(go_os_exec_files)
3107         $(BUILDDEPS)
3108 os/exec.lo: $(go_os_exec_files)
3109         $(BUILDPACKAGE)
3110 os/exec/check: $(CHECK_DEPS)
3111         @$(CHECK)
3112 .PHONY: os/exec/check
3114 @go_include@ os/signal.lo.dep
3115 os/signal.lo.dep: $(go_os_signal_files)
3116         $(BUILDDEPS)
3117 os/signal.lo: $(go_os_signal_files)
3118         $(BUILDPACKAGE)
3119 os/signal/check: $(CHECK_DEPS)
3120         @$(CHECK)
3121 .PHONY: os/signal/check
3123 @go_include@ os/user.lo.dep
3124 os/user.lo.dep: $(go_os_user_files)
3125         $(BUILDDEPS)
3126 os/user.lo: $(go_os_user_files)
3127         $(BUILDPACKAGE)
3128 os/user/check: $(CHECK_DEPS)
3129         @$(CHECK)
3130 .PHONY: os/user/check
3132 @go_include@ path/filepath.lo.dep
3133 path/filepath.lo.dep: $(go_path_filepath_files)
3134         $(BUILDDEPS)
3135 path/filepath.lo: $(go_path_filepath_files)
3136         $(BUILDPACKAGE)
3137 path/filepath/check: $(CHECK_DEPS)
3138         @$(CHECK)
3139 .PHONY: path/filepath/check
3141 @go_include@ regexp/syntax.lo.dep
3142 regexp/syntax.lo.dep: $(go_regexp_syntax_files)
3143         $(BUILDDEPS)
3144 regexp/syntax.lo: $(go_regexp_syntax_files)
3145         $(BUILDPACKAGE)
3146 regexp/syntax/check: $(CHECK_DEPS)
3147         @$(CHECK)
3148 .PHONY: regexp/syntax/check
3150 @go_include@ runtime/debug.lo.dep
3151 runtime/debug.lo.dep: $(go_runtime_debug_files)
3152         $(BUILDDEPS)
3153 runtime/debug.lo: $(go_runtime_debug_files)
3154         $(BUILDPACKAGE)
3155 runtime/debug/check: $(CHECK_DEPS)
3156         @$(CHECK)
3157 .PHONY: runtime/debug/check
3159 @go_include@ runtime/pprof.lo.dep
3160 runtime/pprof.lo.dep: $(go_runtime_pprof_files)
3161         $(BUILDDEPS)
3162 runtime/pprof.lo: $(go_runtime_pprof_files)
3163         $(BUILDPACKAGE)
3164 runtime/pprof/check: $(CHECK_DEPS)
3165         @$(CHECK)
3166 .PHONY: runtime/pprof/check
3167 # At least for now, we need -static-libgo for this test, because
3168 # otherwise we can't get the line numbers.
3169 runtime_pprof_check_GOCFLAGS = -static-libgo
3171 @go_include@ sync/atomic.lo.dep
3172 sync/atomic.lo.dep: $(go_sync_atomic_files)
3173         $(BUILDDEPS)
3174 sync/atomic.lo: $(go_sync_atomic_files)
3175         $(BUILDPACKAGE)
3176 sync/atomic_c.lo: $(go_sync_atomic_c_files) sync/atomic.lo
3177         $(LTCOMPILE) -c -o $@ $(srcdir)/go/sync/atomic/atomic.c
3178 sync/atomic/check: $(CHECK_DEPS)
3179         @$(CHECK)
3180 .PHONY: sync/atomic/check
3182 @go_include@ text/scanner.lo.dep
3183 text/scanner.lo.dep: $(go_text_scanner_files)
3184         $(BUILDDEPS)
3185 text/scanner.lo: $(go_text_scanner_files)
3186         $(BUILDPACKAGE)
3187 text/scanner/check: $(CHECK_DEPS)
3188         @$(CHECK)
3189 .PHONY: text/scanner/check
3191 @go_include@ text/tabwriter.lo.dep
3192 text/tabwriter.lo.dep: $(go_text_tabwriter_files)
3193         $(BUILDDEPS)
3194 text/tabwriter.lo: $(go_text_tabwriter_files)
3195         $(BUILDPACKAGE)
3196 text/tabwriter/check: $(CHECK_DEPS)
3197         @$(CHECK)
3198 .PHONY: text/tabwriter/check
3200 @go_include@ text/template.lo.dep
3201 text/template.lo.dep: $(go_text_template_files)
3202         $(BUILDDEPS)
3203 text/template.lo: $(go_text_template_files)
3204         $(BUILDPACKAGE)
3205 text/template/check: $(CHECK_DEPS)
3206         @$(CHECK)
3207 .PHONY: text/template/check
3209 @go_include@ text/template/parse.lo.dep
3210 text/template/parse.lo.dep: $(go_text_template_parse_files)
3211         $(BUILDDEPS)
3212 text/template/parse.lo: $(go_text_template_parse_files)
3213         $(BUILDPACKAGE)
3214 text/template/parse/check: $(CHECK_DEPS)
3215         @$(CHECK)
3216 .PHONY: text/template/parse/check
3218 @go_include@ testing/iotest.lo.dep
3219 testing/iotest.lo.dep: $(go_testing_iotest_files)
3220         $(BUILDDEPS)
3221 testing/iotest.lo: $(go_testing_iotest_files)
3222         $(BUILDPACKAGE)
3223 testing/iotest/check: $(CHECK_DEPS)
3224         @$(CHECK)
3225 .PHONY: testing/iotest/check
3227 @go_include@ testing/quick.lo.dep
3228 testing/quick.lo.dep: $(go_testing_quick_files)
3229         $(BUILDDEPS)
3230 testing/quick.lo: $(go_testing_quick_files)
3231         $(BUILDPACKAGE)
3232 testing/quick/check: $(CHECK_DEPS)
3233         @$(CHECK)
3234 .PHONY: testing/quick/check
3236 @go_include@ unicode/utf16.lo.dep
3237 unicode/utf16.lo.dep: $(go_unicode_utf16_files)
3238         $(BUILDDEPS)
3239 unicode/utf16.lo: $(go_unicode_utf16_files)
3240         $(BUILDPACKAGE)
3241 unicode/utf16/check: $(CHECK_DEPS)
3242         @$(CHECK)
3243 .PHONY: unicode/utf16/check
3245 @go_include@ unicode/utf8.lo.dep
3246 unicode/utf8.lo.dep: $(go_unicode_utf8_files)
3247         $(BUILDDEPS)
3248 unicode/utf8.lo: $(go_unicode_utf8_files)
3249         $(BUILDPACKAGE)
3250 unicode/utf8/check: $(CHECK_DEPS)
3251         @$(CHECK)
3252 .PHONY: unicode/utf8/check
3254 @go_include@ syscall.lo.dep
3255 syscall.lo.dep: $(go_syscall_files)
3256         $(BUILDDEPS)
3257 syscall.lo: $(go_syscall_files)
3258         $(BUILDPACKAGE)
3259 syscall/errno.lo: go/syscall/errno.c
3260         @$(MKDIR_P) syscall
3261         $(LTCOMPILE) -c -o $@ $<
3262 syscall/signame.lo: go/syscall/signame.c
3263         @$(MKDIR_P) syscall
3264         $(LTCOMPILE) -c -o $@ $<
3265 syscall/wait.lo: go/syscall/wait.c
3266         @$(MKDIR_P) syscall
3267         $(LTCOMPILE) -c -o $@ $<
3268 syscall/check: $(CHECK_DEPS)
3269         @$(CHECK)
3270 .PHONY: syscall/check
3272 # How to build a .gox file from a .lo file.
3273 BUILDGOX = \
3274         f=`echo $< | sed -e 's/.lo$$/.o/'`; \
3275         $(OBJCOPY) -j .go_export $$f $@.tmp && mv -f $@.tmp $@
3277 bufio.gox: bufio.lo
3278         $(BUILDGOX)
3279 bytes.gox: bytes.lo
3280         $(BUILDGOX)
3281 crypto.gox: crypto.lo
3282         $(BUILDGOX)
3283 encoding.gox: encoding.lo
3284         $(BUILDGOX)
3285 errors.gox: errors.lo
3286         $(BUILDGOX)
3287 expvar.gox: expvar.lo
3288         $(BUILDGOX)
3289 flag.gox: flag.lo
3290         $(BUILDGOX)
3291 fmt.gox: fmt.lo
3292         $(BUILDGOX)
3293 hash.gox: hash.lo
3294         $(BUILDGOX)
3295 html.gox: html.lo
3296         $(BUILDGOX)
3297 image.gox: image.lo
3298         $(BUILDGOX)
3299 io.gox: io.lo
3300         $(BUILDGOX)
3301 log.gox: log.lo
3302         $(BUILDGOX)
3303 math.gox: math.lo
3304         $(BUILDGOX)
3305 mime.gox: mime.lo
3306         $(BUILDGOX)
3307 net.gox: net.lo
3308         $(BUILDGOX)
3309 os.gox: os.lo
3310         $(BUILDGOX)
3311 path.gox: path.lo
3312         $(BUILDGOX)
3313 reflect.gox: reflect-go.lo
3314         $(BUILDGOX)
3315 regexp.gox: regexp.lo
3316         $(BUILDGOX)
3317 runtime.gox: runtime-go.lo
3318         $(BUILDGOX)
3319 sort.gox: sort.lo
3320         $(BUILDGOX)
3321 strconv.gox: strconv.lo
3322         $(BUILDGOX)
3323 strings.gox: strings.lo
3324         $(BUILDGOX)
3325 sync.gox: sync.lo
3326         $(BUILDGOX)
3327 syscall.gox: syscall.lo
3328         $(BUILDGOX)
3329 testing.gox: testing.lo
3330         $(BUILDGOX)
3331 time.gox: time-go.lo
3332         $(BUILDGOX)
3333 unicode.gox: unicode.lo
3334         $(BUILDGOX)
3336 archive/tar.gox: archive/tar.lo
3337         $(BUILDGOX)
3338 archive/zip.gox: archive/zip.lo
3339         $(BUILDGOX)
3341 compress/bzip2.gox: compress/bzip2.lo
3342         $(BUILDGOX)
3343 compress/flate.gox: compress/flate.lo
3344         $(BUILDGOX)
3345 compress/gzip.gox: compress/gzip.lo
3346         $(BUILDGOX)
3347 compress/lzw.gox: compress/lzw.lo
3348         $(BUILDGOX)
3349 compress/zlib.gox: compress/zlib.lo
3350         $(BUILDGOX)
3352 container/heap.gox: container/heap.lo
3353         $(BUILDGOX)
3354 container/list.gox: container/list.lo
3355         $(BUILDGOX)
3356 container/ring.gox: container/ring.lo
3357         $(BUILDGOX)
3359 crypto/aes.gox: crypto/aes.lo
3360         $(BUILDGOX)
3361 crypto/cipher.gox: crypto/cipher.lo
3362         $(BUILDGOX)
3363 crypto/des.gox: crypto/des.lo
3364         $(BUILDGOX)
3365 crypto/dsa.gox: crypto/dsa.lo
3366         $(BUILDGOX)
3367 crypto/ecdsa.gox: crypto/ecdsa.lo       
3368         $(BUILDGOX)
3369 crypto/elliptic.gox: crypto/elliptic.lo
3370         $(BUILDGOX)
3371 crypto/hmac.gox: crypto/hmac.lo
3372         $(BUILDGOX)
3373 crypto/md5.gox: crypto/md5.lo
3374         $(BUILDGOX)
3375 crypto/rand.gox: crypto/rand.lo
3376         $(BUILDGOX)
3377 crypto/rc4.gox: crypto/rc4.lo
3378         $(BUILDGOX)
3379 crypto/rsa.gox: crypto/rsa.lo
3380         $(BUILDGOX)
3381 crypto/sha1.gox: crypto/sha1.lo
3382         $(BUILDGOX)
3383 crypto/sha256.gox: crypto/sha256.lo
3384         $(BUILDGOX)
3385 crypto/sha512.gox: crypto/sha512.lo
3386         $(BUILDGOX)
3387 crypto/subtle.gox: crypto/subtle.lo
3388         $(BUILDGOX)
3389 crypto/tls.gox: crypto/tls.lo
3390         $(BUILDGOX)
3391 crypto/x509.gox: crypto/x509.lo
3392         $(BUILDGOX)
3394 crypto/x509/pkix.gox: crypto/x509/pkix.lo
3395         $(BUILDGOX)
3397 database/sql.gox: database/sql.lo
3398         $(BUILDGOX)
3400 database/sql/driver.gox: database/sql/driver.lo
3401         $(BUILDGOX)
3403 debug/dwarf.gox: debug/dwarf.lo
3404         $(BUILDGOX)
3405 debug/elf.gox: debug/elf.lo
3406         $(BUILDGOX)
3407 debug/gosym.gox: debug/gosym.lo
3408         $(BUILDGOX)
3409 debug/macho.gox: debug/macho.lo
3410         $(BUILDGOX)
3411 debug/pe.gox: debug/pe.lo
3412         $(BUILDGOX)
3414 encoding/ascii85.gox: encoding/ascii85.lo
3415         $(BUILDGOX)
3416 encoding/asn1.gox: encoding/asn1.lo
3417         $(BUILDGOX)
3418 encoding/base32.gox: encoding/base32.lo
3419         $(BUILDGOX)
3420 encoding/base64.gox: encoding/base64.lo
3421         $(BUILDGOX)
3422 encoding/binary.gox: encoding/binary.lo
3423         $(BUILDGOX)
3424 encoding/csv.gox: encoding/csv.lo
3425         $(BUILDGOX)
3426 encoding/gob.gox: encoding/gob.lo
3427         $(BUILDGOX)
3428 encoding/hex.gox: encoding/hex.lo
3429         $(BUILDGOX)
3430 encoding/json.gox: encoding/json.lo
3431         $(BUILDGOX)
3432 encoding/pem.gox: encoding/pem.lo
3433         $(BUILDGOX)
3434 encoding/xml.gox: encoding/xml.lo
3435         $(BUILDGOX)
3437 exp/proxy.gox: exp/proxy.lo
3438         $(BUILDGOX)
3439 exp/terminal.gox: exp/terminal.lo
3440         $(BUILDGOX)
3442 html/template.gox: html/template.lo
3443         $(BUILDGOX)
3445 go/ast.gox: go/ast.lo
3446         $(BUILDGOX)
3447 go/build.gox: go/build.lo
3448         $(BUILDGOX)
3449 go/doc.gox: go/doc.lo
3450         $(BUILDGOX)
3451 go/format.gox: go/format.lo
3452         $(BUILDGOX)
3453 go/parser.gox: go/parser.lo
3454         $(BUILDGOX)
3455 go/printer.gox: go/printer.lo
3456         $(BUILDGOX)
3457 go/scanner.gox: go/scanner.lo
3458         $(BUILDGOX)
3459 go/token.gox: go/token.lo
3460         $(BUILDGOX)
3462 hash/adler32.gox: hash/adler32.lo
3463         $(BUILDGOX)
3464 hash/crc32.gox: hash/crc32.lo
3465         $(BUILDGOX)
3466 hash/crc64.gox: hash/crc64.lo
3467         $(BUILDGOX)
3468 hash/fnv.gox: hash/fnv.lo
3469         $(BUILDGOX)
3471 image/color.gox: image/color.lo
3472         $(BUILDGOX)
3473 image/draw.gox: image/draw.lo
3474         $(BUILDGOX)
3475 image/gif.gox: image/gif.lo
3476         $(BUILDGOX)
3477 image/jpeg.gox: image/jpeg.lo
3478         $(BUILDGOX)
3479 image/png.gox: image/png.lo
3480         $(BUILDGOX)
3482 image/color/palette.gox: image/color/palette.lo
3483         $(BUILDGOX)
3485 index/suffixarray.gox: index/suffixarray.lo
3486         $(BUILDGOX)
3488 io/ioutil.gox: io/ioutil.lo
3489         $(BUILDGOX)
3491 log/syslog.gox: log/syslog.lo
3492         $(BUILDGOX)
3494 math/big.gox: math/big.lo
3495         $(BUILDGOX)
3496 math/cmplx.gox: math/cmplx.lo
3497         $(BUILDGOX)
3498 math/rand.gox: math/rand.lo
3499         $(BUILDGOX)
3501 mime/multipart.gox: mime/multipart.lo
3502         $(BUILDGOX)
3504 net/http.gox: net/http.lo
3505         $(BUILDGOX)
3506 net/mail.gox: net/mail.lo
3507         $(BUILDGOX)
3508 net/rpc.gox: net/rpc.lo
3509         $(BUILDGOX)
3510 net/smtp.gox: net/smtp.lo
3511         $(BUILDGOX)
3512 net/textproto.gox: net/textproto.lo
3513         $(BUILDGOX)
3514 net/url.gox: net/url.lo
3515         $(BUILDGOX)
3517 net/http/cgi.gox: net/http/cgi.lo
3518         $(BUILDGOX)
3519 net/http/cookiejar.gox: net/http/cookiejar.lo
3520         $(BUILDGOX)
3521 net/http/fcgi.gox: net/http/fcgi.lo
3522         $(BUILDGOX)
3523 net/http/httptest.gox: net/http/httptest.lo
3524         $(BUILDGOX)
3525 net/http/httputil.gox: net/http/httputil.lo
3526         $(BUILDGOX)
3527 net/http/pprof.gox: net/http/pprof.lo
3528         $(BUILDGOX)
3530 net/rpc/jsonrpc.gox: net/rpc/jsonrpc.lo
3531         $(BUILDGOX)
3533 old/regexp.gox: old/regexp.lo
3534         $(BUILDGOX)
3535 old/template.gox: old/template.lo
3536         $(BUILDGOX)
3538 os/exec.gox: os/exec.lo
3539         $(BUILDGOX)
3540 os/signal.gox: os/signal.lo
3541         $(BUILDGOX)
3542 os/user.gox: os/user.lo
3543         $(BUILDGOX)
3545 path/filepath.gox: path/filepath.lo
3546         $(BUILDGOX)
3548 regexp/syntax.gox: regexp/syntax.lo
3549         $(BUILDGOX)
3551 runtime/debug.gox: runtime/debug.lo
3552         $(BUILDGOX)
3553 runtime/pprof.gox: runtime/pprof.lo
3554         $(BUILDGOX)
3556 sync/atomic.gox: sync/atomic.lo
3557         $(BUILDGOX)
3559 text/scanner.gox: text/scanner.lo
3560         $(BUILDGOX)
3561 text/tabwriter.gox: text/tabwriter.lo
3562         $(BUILDGOX)
3563 text/template.gox: text/template.lo
3564         $(BUILDGOX)
3565 text/template/parse.gox: text/template/parse.lo
3566         $(BUILDGOX)
3568 testing/iotest.gox: testing/iotest.lo
3569         $(BUILDGOX)
3570 testing/quick.gox: testing/quick.lo
3571         $(BUILDGOX)
3573 unicode/utf16.gox: unicode/utf16.lo
3574         $(BUILDGOX)
3575 unicode/utf8.gox: unicode/utf8.lo
3576         $(BUILDGOX)
3578 TEST_PACKAGES = \
3579         bufio/check \
3580         bytes/check \
3581         errors/check \
3582         expvar/check \
3583         flag/check \
3584         fmt/check \
3585         html/check \
3586         image/check \
3587         io/check \
3588         log/check \
3589         math/check \
3590         mime/check \
3591         net/check \
3592         os/check \
3593         path/check \
3594         reflect/check \
3595         regexp/check \
3596         runtime/check \
3597         sort/check \
3598         strconv/check \
3599         strings/check \
3600         sync/check \
3601         syscall/check \
3602         time/check \
3603         unicode/check \
3604         archive/tar/check \
3605         archive/zip/check \
3606         compress/bzip2/check \
3607         compress/flate/check \
3608         compress/gzip/check \
3609         compress/lzw/check \
3610         compress/zlib/check \
3611         container/heap/check \
3612         container/list/check \
3613         container/ring/check \
3614         crypto/aes/check \
3615         crypto/cipher/check \
3616         crypto/des/check \
3617         crypto/dsa/check \
3618         crypto/ecdsa/check \
3619         crypto/elliptic/check \
3620         crypto/hmac/check \
3621         crypto/md5/check \
3622         crypto/rand/check \
3623         crypto/rc4/check \
3624         crypto/rsa/check \
3625         crypto/sha1/check \
3626         crypto/sha256/check \
3627         crypto/sha512/check \
3628         crypto/subtle/check \
3629         crypto/tls/check \
3630         crypto/x509/check \
3631         database/sql/check \
3632         database/sql/driver/check \
3633         debug/dwarf/check \
3634         debug/elf/check \
3635         debug/macho/check \
3636         debug/pe/check \
3637         encoding/ascii85/check \
3638         encoding/asn1/check \
3639         encoding/base32/check \
3640         encoding/base64/check \
3641         encoding/binary/check \
3642         encoding/csv/check \
3643         encoding/gob/check \
3644         encoding/hex/check \
3645         encoding/json/check \
3646         encoding/pem/check \
3647         encoding/xml/check \
3648         exp/proxy/check \
3649         exp/terminal/check \
3650         html/template/check \
3651         go/ast/check \
3652         $(go_build_check_omitted_since_it_calls_6g) \
3653         go/doc/check \
3654         go/format/check \
3655         go/parser/check \
3656         go/printer/check \
3657         go/scanner/check \
3658         go/token/check \
3659         hash/adler32/check \
3660         hash/crc32/check \
3661         hash/crc64/check \
3662         hash/fnv/check \
3663         image/color/check \
3664         image/draw/check \
3665         image/jpeg/check \
3666         image/png/check \
3667         index/suffixarray/check \
3668         io/ioutil/check \
3669         log/syslog/check \
3670         math/big/check \
3671         math/cmplx/check \
3672         math/rand/check \
3673         mime/multipart/check \
3674         net/http/check \
3675         net/http/cgi/check \
3676         net/http/cookiejar/check \
3677         net/http/fcgi/check \
3678         net/http/httptest/check \
3679         net/http/httputil/check \
3680         net/mail/check \
3681         net/rpc/check \
3682         net/smtp/check \
3683         net/textproto/check \
3684         net/url/check \
3685         net/rpc/jsonrpc/check \
3686         old/regexp/check \
3687         old/template/check \
3688         os/exec/check \
3689         os/signal/check \
3690         os/user/check \
3691         path/filepath/check \
3692         regexp/syntax/check \
3693         runtime/pprof/check \
3694         sync/atomic/check \
3695         text/scanner/check \
3696         text/tabwriter/check \
3697         text/template/check \
3698         text/template/parse/check \
3699         testing/quick/check \
3700         unicode/utf16/check \
3701         unicode/utf8/check
3703 check: check-tail
3704 check-recursive: check-head
3706 check-head:
3707         @echo "Test Run By $${USER} on `date`" > libgo.head
3708         @echo "Native configuration is $(host_triplet)" >> libgo.head
3709         @echo >> libgo.head
3710         @echo "         === libgo tests ===" >> libgo.head
3711         @echo >> libgo.head
3713 check-tail: check-recursive check-multi
3714         @if test "$(USE_DEJAGNU)" = "yes"; then \
3715           exit 0; \
3716         fi; \
3717         lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
3718         for dir in . $(MULTIDIRS); do \
3719           mv ../$${dir}/$${lib}/libgo.sum ../$${dir}/$${lib}/libgo.sum.sep; \
3720           mv ../$${dir}/$${lib}/libgo.log ../$${dir}/$${lib}/libgo.log.sep; \
3721         done; \
3722         mv libgo.head libgo.sum; \
3723         cp libgo.sum libgo.log; \
3724         echo "Schedule of variations:" >> libgo.sum; \
3725         for dir in . $(MULTIDIRS); do \
3726           multidir=../$${dir}/$${lib}; \
3727           multivar=`cat $${multidir}/libgo.var`; \
3728           echo "    $${multivar}" >> libgo.sum; \
3729         done; \
3730         echo >> libgo.sum; \
3731         pass=0; fail=0; untested=0; \
3732         for dir in . $(MULTIDIRS); do \
3733           multidir=../$${dir}/$${lib}; \
3734           multivar=`cat $${multidir}/libgo.var`; \
3735           echo "Running target $${multivar}" >> libgo.sum; \
3736           echo "Running $(srcdir)/libgo.exp ..." >> libgo.sum; \
3737           cat $${multidir}/libgo.sum.sep >> libgo.sum; \
3738           cat $${multidir}/libgo.log.sep >> libgo.log; \
3739           if test -n "${MULTIDIRS}"; then \
3740             echo "              === libgo Summary for $${multivar} ===" >> libgo.sum; \
3741             echo >> libgo.sum; \
3742           fi; \
3743           p=`grep -c PASS $${multidir}/libgo.sum.sep`; \
3744           pass=`expr $$pass + $$p`; \
3745           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3746             echo "# of expected passes          $$p" >> libgo.sum; \
3747           fi; \
3748           p=`grep -c FAIL $${multidir}/libgo.sum.sep`; \
3749           fail=`expr $$fail + $$p`; \
3750           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3751             echo "# of unexpected failures      $$p" >> libgo.sum; \
3752           fi; \
3753           p=`grep -c UNTESTED $${multidir}/libgo.sum.sep`; \
3754           untested=`expr $$untested + $$p`; \
3755           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3756             echo "# of untested testcases               $$p" >> libgo.sum; \
3757           fi; \
3758         done; \
3759         echo >> libgo.sum; \
3760         echo "          === libgo Summary ===" >> libgo.sum; \
3761         echo >> libgo.sum; \
3762         if test "$$pass" -ne "0"; then \
3763           echo "# of expected passes            $$pass" >> libgo.sum; \
3764         fi; \
3765         if test "$$fail" -ne "0"; then \
3766           echo "# of unexpected failures        $$fail" >> libgo.sum; \
3767         fi; \
3768         if test "$$untested" -ne "0"; then \
3769           echo "# of untested testcases         $$untested" >> libgo.sum; \
3770         fi; \
3771         echo `echo $(GOC) | sed -e 's/ .*//'`  `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
3772         echo >> libgo.log; \
3773         echo "runtest completed at `date`" >> libgo.log; \
3774         if test "$$fail" -ne "0"; then \
3775           status=1; \
3776         else \
3777           status=0; \
3778         fi; \
3779         exit $$status
3781 check-am:
3782         @rm -f libgo.sum libgo.log libgo.tail
3783         @multivar="unix"; \
3784         [ -z "$(MULTIFLAGS)" ] || multivar="$${multivar}/$(MULTIFLAGS)"; \
3785         echo "$${multivar}" > libgo.var
3786         @for f in $(TEST_PACKAGES); do \
3787            rm -f $$f-testsum $$f-testlog; \
3788          done
3789         -@$(MAKE) -k $(TEST_PACKAGES)
3790         @for f in $(TEST_PACKAGES); do \
3791           if test -f $$f-testsum; then \
3792             cat $$f-testsum >> libgo.sum; \
3793           fi; \
3794           if test -f $$f-testlog; then \
3795             cat $$f-testlog >> libgo.log; \
3796           fi; \
3797         done
3799 check-multi:
3800         $(MULTIDO) $(AM_MAKEFLAGS) DO=check-am multi-do # $(MAKE)
3802 MOSTLYCLEAN_FILES = libgo.head libgo.sum.sep libgo.log.sep
3804 mostlyclean-local:
3805         find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
3806         find . -name '*.$(OBJEXT)' -print | xargs rm -f
3807         find . -name '*-testsum' -print | xargs rm -f
3808         find . -name '*-testlog' -print | xargs rm -f
3810 CLEANFILES = *.go *.gox goc2c *.c s-version libgo.sum libgo.log
3812 clean-local:
3813         find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
3814         find . -name '*.a' -print | xargs rm -f