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