OSDN Git Service

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