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