OSDN Git Service

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