OSDN Git Service

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