OSDN Git Service

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