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