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