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