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