OSDN Git Service

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