OSDN Git Service

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