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