* godump.c (go_define): Don't accept a string immediately after
[official-gcc.git] / libgo / Makefile.am
blobae6848f0932038f51221b0c4c1dcdf82711e546b
1 # Makefile.am -- Go library Makefile.
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.
7 # Process this file with autoreconf to produce Makefile.in.
9 # Go support.
10 SUFFIXES = .c .go .gox .o .obj .lo .a
12 if LIBGO_IS_RTEMS
13 subdirs = testsuite
14 endif
16 SUBDIRS = ${subdirs}
18 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
20 MAINT_CHARSET = latin1
22 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
23 PWD_COMMAND = $${PWDCMD-pwd}
24 STAMP = echo timestamp >
26 toolexecdir = $(glibgo_toolexecdir)
27 toolexeclibdir = $(glibgo_toolexeclibdir)
29 LIBFFI = @LIBFFI@
30 LIBFFIINCS = @LIBFFIINCS@
32 WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
34 # -I/-D flags to pass when compiling.
35 AM_CPPFLAGS = -I $(srcdir)/runtime $(LIBFFIINCS) $(PTHREAD_CFLAGS)
37 ACLOCAL_AMFLAGS = -I ./config -I ../config
39 AM_CFLAGS = -fexceptions -fplan9-extensions $(SPLIT_STACK) $(WARN_CFLAGS) \
40         $(STRINGOPS_FLAG) \
41         -I $(srcdir)/../gcc -I $(MULTIBUILDTOP)../../gcc/include
43 if USING_SPLIT_STACK
44 AM_LDFLAGS = -XCClinker $(SPLIT_STACK)
45 endif
47 # Multilib support.
48 MAKEOVERRIDES=
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)"
94 # Subdir rules rely on $(FLAGS_TO_PASS)
95 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
97 toolexeclib_LTLIBRARIES = libgo.la
98 toolexeclib_LIBRARIES = libgobegin.a
100 toolexeclibgodir = $(toolexeclibdir)/go/$(gcc_version)/$(target_alias)
102 toolexeclibgo_DATA = \
103         asn1.gox \
104         big.gox \
105         bufio.gox \
106         bytes.gox \
107         cmath.gox \
108         crypto.gox \
109         ebnf.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         mime.gox \
124         net.gox \
125         netchan.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         try.gox \
147         unicode.gox \
148         utf16.gox \
149         utf8.gox \
150         websocket.gox \
151         xml.gox
153 toolexeclibgoarchivedir = $(toolexeclibgodir)/archive
155 toolexeclibgoarchive_DATA = \
156         archive/tar.gox \
157         archive/zip.gox
159 toolexeclibgocompressdir = $(toolexeclibgodir)/compress
161 toolexeclibgocompress_DATA = \
162         compress/bzip2.gox \
163         compress/flate.gox \
164         compress/gzip.gox \
165         compress/lzw.gox \
166         compress/zlib.gox
168 toolexeclibgocontainerdir = $(toolexeclibgodir)/container
170 toolexeclibgocontainer_DATA = \
171         container/heap.gox \
172         container/list.gox \
173         container/ring.gox \
174         container/vector.gox
176 toolexeclibgocryptodir = $(toolexeclibgodir)/crypto
178 toolexeclibgocrypto_DATA = \
179         crypto/aes.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
205 toolexeclibgocryptoopenpgpdir = $(toolexeclibgocryptodir)/openpgp
207 toolexeclibgocryptoopenpgp_DATA = \
208         crypto/openpgp/armor.gox \
209         crypto/openpgp/error.gox \
210         crypto/openpgp/packet.gox \
211         crypto/openpgp/s2k.gox
213 toolexeclibgodebugdir = $(toolexeclibgodir)/debug
215 toolexeclibgodebug_DATA = \
216         debug/dwarf.gox \
217         debug/elf.gox \
218         debug/gosym.gox \
219         debug/macho.gox \
220         debug/pe.gox \
221         debug/proc.gox
223 toolexeclibgoencodingdir = $(toolexeclibgodir)/encoding
225 toolexeclibgoencoding_DATA = \
226         encoding/ascii85.gox \
227         encoding/base32.gox \
228         encoding/base64.gox \
229         encoding/binary.gox \
230         encoding/line.gox \
231         encoding/git85.gox \
232         encoding/hex.gox \
233         encoding/pem.gox
235 toolexeclibgoexpdir = $(toolexeclibgodir)/exp
237 toolexeclibgoexp_DATA = \
238         exp/datafmt.gox \
239         exp/draw.gox \
240         exp/eval.gox
242 toolexeclibgogodir = $(toolexeclibgodir)/go
244 toolexeclibgogo_DATA = \
245         go/ast.gox \
246         go/doc.gox \
247         go/parser.gox \
248         go/printer.gox \
249         go/scanner.gox \
250         go/token.gox \
251         go/typechecker.gox \
252         go/types.gox
254 toolexeclibgohashdir = $(toolexeclibgodir)/hash
256 toolexeclibgohash_DATA = \
257         hash/adler32.gox \
258         hash/crc32.gox \
259         hash/crc64.gox \
260         hash/fnv.gox
262 toolexeclibgohttpdir = $(toolexeclibgodir)/http
264 toolexeclibgohttp_DATA = \
265         http/cgi.gox \
266         http/fcgi.gox \
267         http/httptest.gox \
268         http/pprof.gox \
269         http/spdy.gox
271 toolexeclibgoimagedir = $(toolexeclibgodir)/image
273 toolexeclibgoimage_DATA = \
274         image/gif.gox \
275         image/jpeg.gox \
276         image/png.gox \
277         image/tiff.gox \
278         image/ycbcr.gox
280 toolexeclibgoindexdir = $(toolexeclibgodir)/index
282 toolexeclibgoindex_DATA = \
283         index/suffixarray.gox
285 toolexeclibgoiodir = $(toolexeclibgodir)/io
287 toolexeclibgoio_DATA = \
288         io/ioutil.gox
290 toolexeclibgomimedir = $(toolexeclibgodir)/mime
292 toolexeclibgomime_DATA = \
293         mime/multipart.gox
295 toolexeclibgonetdir = $(toolexeclibgodir)/net
297 toolexeclibgonet_DATA = \
298         net/dict.gox \
299         net/textproto.gox
301 toolexeclibgoosdir = $(toolexeclibgodir)/os
303 if LIBGO_IS_LINUX
304 # os_inotify_gox = os/inotify.gox
305 os_inotify_gox =
306 else
307 os_inotify_gox =
308 endif
310 toolexeclibgoos_DATA = \
311         $(os_inotify_gox) \
312         os/user.gox \
313         os/signal.gox
315 toolexeclibgopathdir = $(toolexeclibgodir)/path
317 toolexeclibgopath_DATA = \
318         path/filepath.gox
320 toolexeclibgorpcdir = $(toolexeclibgodir)/rpc
322 toolexeclibgorpc_DATA = \
323         rpc/jsonrpc.gox
325 toolexeclibgoruntimedir = $(toolexeclibgodir)/runtime
327 toolexeclibgoruntime_DATA = \
328         runtime/debug.gox \
329         runtime/pprof.gox
331 toolexeclibgosyncdir = $(toolexeclibgodir)/sync
333 toolexeclibgosync_DATA = \
334         sync/atomic.gox
336 toolexeclibgotestingdir = $(toolexeclibgodir)/testing
338 toolexeclibgotesting_DATA = \
339         testing/iotest.gox \
340         testing/quick.gox \
341         testing/script.gox
343 if HAVE_SYS_MMAN_H
344 runtime_mem_file = runtime/mem.c
345 else
346 runtime_mem_file = runtime/mem_posix_memalign.c
347 endif
349 if LIBGO_IS_RTEMS
350 rtems_task_variable_add_file = runtime/rtems-task-variable-add.c
351 else
352 rtems_task_variable_add_file =
353 endif
355 runtime_files = \
356         runtime/go-append.c \
357         runtime/go-assert.c \
358         runtime/go-assert-interface.c \
359         runtime/go-byte-array-to-string.c \
360         runtime/go-breakpoint.c \
361         runtime/go-caller.c \
362         runtime/go-can-convert-interface.c \
363         runtime/go-cgo.c \
364         runtime/go-chan-cap.c \
365         runtime/go-chan-len.c \
366         runtime/go-check-interface.c \
367         runtime/go-close.c \
368         runtime/go-construct-map.c \
369         runtime/go-convert-interface.c \
370         runtime/go-copy.c \
371         runtime/go-defer.c \
372         runtime/go-deferred-recover.c \
373         runtime/go-eface-compare.c \
374         runtime/go-eface-val-compare.c \
375         runtime/go-getgoroot.c \
376         runtime/go-go.c \
377         runtime/go-gomaxprocs.c \
378         runtime/go-int-array-to-string.c \
379         runtime/go-int-to-string.c \
380         runtime/go-interface-compare.c \
381         runtime/go-interface-eface-compare.c \
382         runtime/go-interface-val-compare.c \
383         runtime/go-lock-os-thread.c \
384         runtime/go-map-delete.c \
385         runtime/go-map-index.c \
386         runtime/go-map-len.c \
387         runtime/go-map-range.c \
388         runtime/go-nanotime.c \
389         runtime/go-new-channel.c \
390         runtime/go-new-map.c \
391         runtime/go-new.c \
392         runtime/go-note.c \
393         runtime/go-panic.c \
394         runtime/go-panic-defer.c \
395         runtime/go-print.c \
396         runtime/go-rec-big.c \
397         runtime/go-rec-nb-big.c \
398         runtime/go-rec-nb-small.c \
399         runtime/go-rec-small.c \
400         runtime/go-recover.c \
401         runtime/go-reflect.c \
402         runtime/go-reflect-call.c \
403         runtime/go-reflect-chan.c \
404         runtime/go-reflect-map.c \
405         runtime/go-rune.c \
406         runtime/go-runtime-error.c \
407         runtime/go-sched.c \
408         runtime/go-select.c \
409         runtime/go-semacquire.c \
410         runtime/go-send-big.c \
411         runtime/go-send-nb-big.c \
412         runtime/go-send-nb-small.c \
413         runtime/go-send-small.c \
414         runtime/go-setenv.c \
415         runtime/go-signal.c \
416         runtime/go-strcmp.c \
417         runtime/go-string-to-byte-array.c \
418         runtime/go-string-to-int-array.c \
419         runtime/go-strplus.c \
420         runtime/go-strslice.c \
421         runtime/go-trampoline.c \
422         runtime/go-type-eface.c \
423         runtime/go-type-error.c \
424         runtime/go-type-identity.c \
425         runtime/go-type-interface.c \
426         runtime/go-type-string.c \
427         runtime/go-typedesc-equal.c \
428         runtime/go-typestring.c \
429         runtime/go-unreflect.c \
430         runtime/go-unsafe-new.c \
431         runtime/go-unsafe-newarray.c \
432         runtime/go-unsafe-pointer.c \
433         runtime/go-unwind.c \
434         runtime/cpuprof.c \
435         runtime/mcache.c \
436         runtime/mcentral.c \
437         $(runtime_mem_file) \
438         runtime/mfinal.c \
439         runtime/mfixalloc.c \
440         runtime/mgc0.c \
441         runtime/mheap.c \
442         runtime/msize.c \
443         runtime/proc.c \
444         runtime/thread.c \
445         $(rtems_task_variable_add_file) \
446         chan.c \
447         iface.c \
448         malloc.c \
449         map.c \
450         mprof.c \
451         reflect.c \
452         sigqueue.c \
453         string.c
455 goc2c.$(OBJEXT): runtime/goc2c.c
456         $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
458 goc2c: goc2c.$(OBJEXT)
459         $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
461 malloc.c: $(srcdir)/runtime/malloc.goc goc2c
462         ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
463         mv -f $@.tmp $@
465 mprof.c: $(srcdir)/runtime/mprof.goc goc2c
466         ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
467         mv -f $@.tmp $@
469 reflect.c: $(srcdir)/runtime/reflect.goc goc2c
470         ./goc2c --gcc --go-prefix libgo_reflect $< > $@.tmp
471         mv -f $@.tmp $@
473 sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
474         ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
475         mv -f $@.tmp $@
477 %.c: $(srcdir)/runtime/%.goc goc2c
478         ./goc2c --gcc $< > $@.tmp
479         mv -f $@.tmp $@
481 go_asn1_files = \
482         go/asn1/asn1.go \
483         go/asn1/common.go \
484         go/asn1/marshal.go
486 go_big_files = \
487         go/big/arith.go \
488         go/big/int.go \
489         go/big/nat.go \
490         go/big/rat.go
492 go_bufio_files = \
493         go/bufio/bufio.go
495 go_bytes_files = \
496         go/bytes/buffer.go \
497         go/bytes/bytes.go \
498         go/bytes/bytes_decl.go
499 go_bytes_c_files = \
500         go/bytes/indexbyte.c
502 go_cmath_files = \
503         go/cmath/abs.go \
504         go/cmath/asin.go \
505         go/cmath/conj.go \
506         go/cmath/exp.go \
507         go/cmath/isinf.go \
508         go/cmath/isnan.go \
509         go/cmath/log.go \
510         go/cmath/phase.go \
511         go/cmath/polar.go \
512         go/cmath/pow.go \
513         go/cmath/rect.go \
514         go/cmath/sin.go \
515         go/cmath/sqrt.go \
516         go/cmath/tan.go
518 go_crypto_files = \
519         go/crypto/crypto.go
521 go_ebnf_files = \
522         go/ebnf/ebnf.go \
523         go/ebnf/parser.go
525 go_exec_files = \
526         go/exec/exec.go \
527         go/exec/lp_unix.go
529 go_expvar_files = \
530         go/expvar/expvar.go
532 go_flag_files = \
533         go/flag/flag.go
535 go_fmt_files = \
536         go/fmt/doc.go \
537         go/fmt/format.go \
538         go/fmt/print.go \
539         go/fmt/scan.go
541 go_gob_files = \
542         go/gob/decode.go \
543         go/gob/decoder.go \
544         go/gob/doc.go \
545         go/gob/encode.go \
546         go/gob/encoder.go \
547         go/gob/error.go \
548         go/gob/type.go
550 go_hash_files = \
551         go/hash/hash.go
553 go_html_files = \
554         go/html/doc.go \
555         go/html/entity.go \
556         go/html/escape.go \
557         go/html/parse.go \
558         go/html/token.go
560 go_http_files = \
561         go/http/chunked.go \
562         go/http/client.go \
563         go/http/cookie.go \
564         go/http/dump.go \
565         go/http/fs.go \
566         go/http/header.go \
567         go/http/lex.go \
568         go/http/persist.go \
569         go/http/request.go \
570         go/http/response.go \
571         go/http/reverseproxy.go \
572         go/http/server.go \
573         go/http/status.go \
574         go/http/transfer.go \
575         go/http/transport.go \
576         go/http/url.go
578 go_image_files = \
579         go/image/color.go \
580         go/image/format.go \
581         go/image/geom.go \
582         go/image/image.go \
583         go/image/names.go
585 go_io_files = \
586         go/io/multi.go \
587         go/io/io.go \
588         go/io/pipe.go
590 go_json_files = \
591         go/json/decode.go \
592         go/json/encode.go \
593         go/json/indent.go \
594         go/json/scanner.go \
595         go/json/stream.go
597 go_log_files = \
598         go/log/log.go
600 go_math_files = \
601         go/math/acosh.go \
602         go/math/asin.go \
603         go/math/asinh.go \
604         go/math/atan.go \
605         go/math/atanh.go \
606         go/math/atan2.go \
607         go/math/bits.go \
608         go/math/cbrt.go \
609         go/math/const.go \
610         go/math/copysign.go \
611         go/math/erf.go \
612         go/math/exp.go \
613         go/math/exp_port.go \
614         go/math/exp2.go \
615         go/math/expm1.go \
616         go/math/fabs.go \
617         go/math/fdim.go \
618         go/math/floor.go \
619         go/math/fmod.go \
620         go/math/frexp.go \
621         go/math/gamma.go \
622         go/math/hypot.go \
623         go/math/hypot_port.go \
624         go/math/j0.go \
625         go/math/j1.go \
626         go/math/jn.go \
627         go/math/ldexp.go \
628         go/math/lgamma.go \
629         go/math/log.go \
630         go/math/log1p.go \
631         go/math/log10.go \
632         go/math/logb.go \
633         go/math/modf.go \
634         go/math/nextafter.go \
635         go/math/pow.go \
636         go/math/pow10.go \
637         go/math/remainder.go \
638         go/math/signbit.go \
639         go/math/sin.go \
640         go/math/sincos.go \
641         go/math/sinh.go \
642         go/math/sqrt.go \
643         go/math/sqrt_port.go \
644         go/math/tan.go \
645         go/math/tanh.go \
646         go/math/unsafe.go
648 go_mime_files = \
649         go/mime/grammar.go \
650         go/mime/mediatype.go \
651         go/mime/type.go
653 if LIBGO_IS_RTEMS
654 go_net_fd_os_file = go/net/fd_select.go
655 go_net_newpollserver_file = go/net/newpollserver_rtems.go
656 else # !LIBGO_IS_RTEMS
657 if LIBGO_IS_LINUX
658 go_net_fd_os_file = go/net/fd_linux.go
659 go_net_newpollserver_file = go/net/newpollserver.go
660 else # !LIBGO_IS_LINUX && !LIBGO_IS_RTEMS
661 # By default use select with pipes.  Most systems should have
662 # something better.
663 go_net_fd_os_file = go/net/fd_select.go
664 go_net_newpollserver_file = go/net/newpollserver.go
665 endif # !LIBGO_IS_LINUX
666 endif # !LIBGO_IS_RTEMS
668 if LIBGO_IS_LINUX
669 go_net_cgo_file = go/net/cgo_linux.go
670 go_net_sock_file = go/net/sock_linux.go
671 else
672 go_net_cgo_file = go/net/cgo_bsd.go
673 go_net_sock_file = go/net/sock_bsd.go
674 endif
676 go_net_files = \
677         go/net/cgo_unix.go \
678         $(go_net_cgo_file) \
679         go/net/dial.go \
680         go/net/dnsclient.go \
681         go/net/dnsconfig.go \
682         go/net/dnsmsg.go \
683         $(go_net_newpollserver_file) \
684         go/net/fd.go \
685         $(go_net_fd_os_file) \
686         go/net/file.go \
687         go/net/hosts.go \
688         go/net/ip.go \
689         go/net/iprawsock.go \
690         go/net/ipsock.go \
691         go/net/lookup.go \
692         go/net/net.go \
693         go/net/parse.go \
694         go/net/pipe.go \
695         go/net/port.go \
696         go/net/sock.go \
697         $(go_net_sock_file) \
698         go/net/tcpsock.go \
699         go/net/udpsock.go \
700         go/net/unixsock.go
702 go_netchan_files = \
703         go/netchan/common.go \
704         go/netchan/export.go \
705         go/netchan/import.go
707 if LIBGO_IS_SOLARIS
708 if LIBGO_IS_386
709 go_os_dir_file = go/os/dir_largefile.go
710 else
711 if LIBGO_IS_SPARC
712 go_os_dir_file = go/os/dir_largefile.go
713 else
714 go_os_dir_file = go/os/dir_regfile.go
715 endif
716 endif
717 else
718 if LIBGO_IS_LINUX
719 go_os_dir_file = go/os/dir_largefile.go
720 else
721 go_os_dir_file = go/os/dir_regfile.go
722 endif
723 endif
725 if LIBGO_IS_LINUX
726 go_os_sys_file = go/os/sys_linux.go
727 else
728 if LIBGO_IS_SOLARIS
729 go_os_sys_file = go/os/sys_uname.go
730 else
731 if LIBGO_IS_IRIX
732 go_os_sys_file = go/os/sys_uname.go
733 else
734 if LIBGO_IS_RTEMS
735 go_os_sys_file = go/os/sys_uname.go
736 else
737 go_os_sys_file = go/os/sys_bsd.go
738 endif
739 endif
740 endif
741 endif
743 go_os_files = \
744         $(go_os_dir_file) \
745         go/os/dir.go \
746         go/os/env.go \
747         go/os/env_unix.go \
748         go/os/error.go \
749         go/os/error_posix.go \
750         go/os/exec.go \
751         go/os/exec_posix.go \
752         go/os/exec_unix.go \
753         go/os/file.go \
754         go/os/file_posix.go \
755         go/os/file_unix.go \
756         go/os/getwd.go \
757         go/os/path.go \
758         go/os/proc.go \
759         go/os/stat.go \
760         $(go_os_sys_file) \
761         go/os/time.go \
762         go/os/types.go
764 go_patch_files = \
765         go/patch/apply.go \
766         go/patch/git.go \
767         go/patch/patch.go \
768         go/patch/textdiff.go
770 go_path_files = \
771         go/path/match.go \
772         go/path/path.go
774 go_rand_files = \
775         go/rand/exp.go \
776         go/rand/normal.go \
777         go/rand/rand.go \
778         go/rand/rng.go \
779         go/rand/zipf.go
781 go_reflect_files = \
782         go/reflect/deepequal.go \
783         go/reflect/type.go \
784         go/reflect/value.go
786 go_regexp_files = \
787         go/regexp/regexp.go
789 go_rpc_files = \
790         go/rpc/client.go \
791         go/rpc/debug.go \
792         go/rpc/server.go
794 go_runtime_files = \
795         go/runtime/debug.go \
796         go/runtime/error.go \
797         go/runtime/extern.go \
798         go/runtime/mem.go \
799         go/runtime/sig.go \
800         go/runtime/softfloat64.go \
801         go/runtime/type.go \
802         version.go
804 version.go: s-version; @true
805 s-version: Makefile
806         rm -f version.go.tmp
807         echo "package runtime" > version.go.tmp
808         echo 'const defaultGoroot = "$(prefix)"' >> version.go.tmp
809         echo 'const theVersion = "'`$(CC) --version | sed 1q`'"' >> version.go.tmp
810         echo 'const theGoarch = "'$(GOARCH)'"' >> version.go.tmp
811         echo 'const theGoos = "'$(GOOS)'"' >> version.go.tmp
812         $(SHELL) $(srcdir)/../move-if-change version.go.tmp version.go
813         $(STAMP) $@
815 go_scanner_files = \
816         go/scanner/scanner.go
818 go_smtp_files = \
819         go/smtp/auth.go \
820         go/smtp/smtp.go
822 go_sort_files = \
823         go/sort/search.go \
824         go/sort/sort.go
826 go_strconv_files = \
827         go/strconv/atob.go \
828         go/strconv/atof.go \
829         go/strconv/atoi.go \
830         go/strconv/decimal.go \
831         go/strconv/ftoa.go \
832         go/strconv/itoa.go \
833         go/strconv/quote.go
835 go_strings_files = \
836         go/strings/reader.go \
837         go/strings/strings.go
839 go_sync_files = \
840         go/sync/cond.go \
841         go/sync/mutex.go \
842         go/sync/once.go \
843         go/sync/rwmutex.go \
844         go/sync/waitgroup.go
846 if LIBGO_IS_SOLARIS
847 go_syslog_file = go/syslog/syslog_libc.go
848 else
849 if LIBGO_IS_IRIX
850 go_syslog_file = go/syslog/syslog_libc.go
851 else
852 go_syslog_file = go/syslog/syslog_unix.go
853 endif
854 endif
856 go_syslog_files = \
857         go/syslog/syslog.go \
858         $(go_syslog_file)
859 go_syslog_c_files = \
860         go/syslog/syslog_c.c
862 go_tabwriter_files = \
863         go/tabwriter/tabwriter.go
865 go_template_files = \
866         go/template/format.go \
867         go/template/template.go
869 go_testing_files = \
870         go/testing/benchmark.go \
871         go/testing/testing.go
873 go_time_files = \
874         go/time/format.go \
875         go/time/sleep.go \
876         go/time/sys.go \
877         go/time/tick.go \
878         go/time/time.go \
879         go/time/zoneinfo_unix.go
881 go_try_files = \
882         go/try/try.go
884 go_unicode_files = \
885         go/unicode/casetables.go \
886         go/unicode/digit.go \
887         go/unicode/letter.go \
888         go/unicode/tables.go
890 go_utf16_files = \
891         go/utf16/utf16.go
893 go_utf8_files = \
894         go/utf8/string.go \
895         go/utf8/utf8.go
897 go_websocket_files = \
898         go/websocket/client.go \
899         go/websocket/server.go \
900         go/websocket/websocket.go
902 go_xml_files = \
903         go/xml/read.go \
904         go/xml/xml.go
906 go_archive_tar_files = \
907         go/archive/tar/common.go \
908         go/archive/tar/reader.go \
909         go/archive/tar/writer.go
911 go_archive_zip_files = \
912         go/archive/zip/reader.go \
913         go/archive/zip/struct.go
915 go_compress_bzip2_files = \
916         go/compress/bzip2/bit_reader.go \
917         go/compress/bzip2/bzip2.go \
918         go/compress/bzip2/huffman.go \
919         go/compress/bzip2/move_to_front.go
921 go_compress_flate_files = \
922         go/compress/flate/deflate.go \
923         go/compress/flate/huffman_bit_writer.go \
924         go/compress/flate/huffman_code.go \
925         go/compress/flate/inflate.go \
926         go/compress/flate/reverse_bits.go \
927         go/compress/flate/token.go \
928         go/compress/flate/util.go
930 go_compress_gzip_files = \
931         go/compress/gzip/gzip.go \
932         go/compress/gzip/gunzip.go
934 go_compress_lzw_files = \
935         go/compress/lzw/reader.go \
936         go/compress/lzw/writer.go
938 go_compress_zlib_files = \
939         go/compress/zlib/reader.go \
940         go/compress/zlib/writer.go
942 go_container_heap_files = \
943         go/container/heap/heap.go
945 go_container_list_files = \
946         go/container/list/list.go
948 go_container_ring_files = \
949         go/container/ring/ring.go
951 go_container_vector_files = \
952         go/container/vector/defs.go \
953         go/container/vector/intvector.go \
954         go/container/vector/stringvector.go \
955         go/container/vector/vector.go
957 go_crypto_aes_files = \
958         go/crypto/aes/block.go \
959         go/crypto/aes/cipher.go \
960         go/crypto/aes/const.go
961 go_crypto_blowfish_files = \
962         go/crypto/blowfish/block.go \
963         go/crypto/blowfish/const.go \
964         go/crypto/blowfish/cipher.go
965 go_crypto_cast5_files = \
966         go/crypto/cast5/cast5.go
967 go_crypto_cipher_files = \
968         go/crypto/cipher/cbc.go \
969         go/crypto/cipher/cfb.go \
970         go/crypto/cipher/cipher.go \
971         go/crypto/cipher/ctr.go \
972         go/crypto/cipher/io.go \
973         go/crypto/cipher/ocfb.go \
974         go/crypto/cipher/ofb.go
975 go_crypto_des_files = \
976         go/crypto/des/block.go \
977         go/crypto/des/cipher.go \
978         go/crypto/des/const.go
979 go_crypto_dsa_files = \
980         go/crypto/dsa/dsa.go
981 go_crypto_ecdsa_files = \
982         go/crypto/ecdsa/ecdsa.go
983 go_crypto_elliptic_files = \
984         go/crypto/elliptic/elliptic.go
985 go_crypto_hmac_files = \
986         go/crypto/hmac/hmac.go
987 go_crypto_md4_files = \
988         go/crypto/md4/md4.go \
989         go/crypto/md4/md4block.go
990 go_crypto_md5_files = \
991         go/crypto/md5/md5.go \
992         go/crypto/md5/md5block.go
993 go_crypto_ocsp_files = \
994         go/crypto/ocsp/ocsp.go
995 go_crypto_openpgp_files = \
996         go/crypto/openpgp/canonical_text.go \
997         go/crypto/openpgp/keys.go \
998         go/crypto/openpgp/read.go \
999         go/crypto/openpgp/write.go
1000 go_crypto_rand_files = \
1001         go/crypto/rand/rand.go \
1002         go/crypto/rand/rand_unix.go
1003 go_crypto_rc4_files = \
1004         go/crypto/rc4/rc4.go
1005 go_crypto_ripemd160_files = \
1006         go/crypto/ripemd160/ripemd160.go \
1007         go/crypto/ripemd160/ripemd160block.go
1008 go_crypto_rsa_files = \
1009         go/crypto/rsa/pkcs1v15.go \
1010         go/crypto/rsa/rsa.go
1011 go_crypto_sha1_files = \
1012         go/crypto/sha1/sha1.go \
1013         go/crypto/sha1/sha1block.go
1014 go_crypto_sha256_files = \
1015         go/crypto/sha256/sha256.go \
1016         go/crypto/sha256/sha256block.go
1017 go_crypto_sha512_files = \
1018         go/crypto/sha512/sha512.go \
1019         go/crypto/sha512/sha512block.go
1020 go_crypto_subtle_files = \
1021         go/crypto/subtle/constant_time.go
1022 go_crypto_tls_files = \
1023         go/crypto/tls/alert.go \
1024         go/crypto/tls/cipher_suites.go \
1025         go/crypto/tls/common.go \
1026         go/crypto/tls/conn.go \
1027         go/crypto/tls/handshake_client.go \
1028         go/crypto/tls/handshake_messages.go \
1029         go/crypto/tls/handshake_server.go \
1030         go/crypto/tls/key_agreement.go \
1031         go/crypto/tls/prf.go \
1032         go/crypto/tls/tls.go
1033 go_crypto_twofish_files = \
1034         go/crypto/twofish/twofish.go
1035 go_crypto_x509_files = \
1036         go/crypto/x509/cert_pool.go \
1037         go/crypto/x509/verify.go \
1038         go/crypto/x509/x509.go
1039 go_crypto_xtea_files = \
1040         go/crypto/xtea/block.go \
1041         go/crypto/xtea/cipher.go
1043 go_crypto_openpgp_armor_files = \
1044         go/crypto/openpgp/armor/armor.go \
1045         go/crypto/openpgp/armor/encode.go
1046 go_crypto_openpgp_error_files = \
1047         go/crypto/openpgp/error/error.go
1048 go_crypto_openpgp_packet_files = \
1049         go/crypto/openpgp/packet/compressed.go \
1050         go/crypto/openpgp/packet/encrypted_key.go \
1051         go/crypto/openpgp/packet/literal.go \
1052         go/crypto/openpgp/packet/one_pass_signature.go \
1053         go/crypto/openpgp/packet/packet.go \
1054         go/crypto/openpgp/packet/private_key.go \
1055         go/crypto/openpgp/packet/public_key.go \
1056         go/crypto/openpgp/packet/reader.go \
1057         go/crypto/openpgp/packet/signature.go \
1058         go/crypto/openpgp/packet/symmetric_key_encrypted.go \
1059         go/crypto/openpgp/packet/symmetrically_encrypted.go \
1060         go/crypto/openpgp/packet/userid.go
1061 go_crypto_openpgp_s2k_files = \
1062         go/crypto/openpgp/s2k/s2k.go
1064 go_debug_dwarf_files = \
1065         go/debug/dwarf/buf.go \
1066         go/debug/dwarf/const.go \
1067         go/debug/dwarf/entry.go \
1068         go/debug/dwarf/open.go \
1069         go/debug/dwarf/type.go \
1070         go/debug/dwarf/unit.go
1071 go_debug_elf_files = \
1072         go/debug/elf/elf.go \
1073         go/debug/elf/file.go
1074 go_debug_gosym_files = \
1075         go/debug/gosym/pclntab.go \
1076         go/debug/gosym/symtab.go
1077 go_debug_macho_files = \
1078         go/debug/macho/file.go \
1079         go/debug/macho/macho.go
1080 go_debug_pe_files = \
1081         go/debug/pe/file.go \
1082         go/debug/pe/pe.go
1084 go_debug_proc_files = \
1085         go/debug/proc/proc.go \
1086         go/debug/proc/proc_$(GOOS).go \
1087         $(GO_DEBUG_PROC_REGS_OS_ARCH_FILE)
1089 go_encoding_ascii85_files = \
1090         go/encoding/ascii85/ascii85.go
1091 go_encoding_base32_files = \
1092         go/encoding/base32/base32.go
1093 go_encoding_base64_files = \
1094         go/encoding/base64/base64.go
1095 go_encoding_binary_files = \
1096         go/encoding/binary/binary.go
1097 go_encoding_git85_files = \
1098         go/encoding/git85/git.go
1099 go_encoding_hex_files = \
1100         go/encoding/hex/hex.go
1101 go_encoding_line_files = \
1102         go/encoding/line/line.go
1103 go_encoding_pem_files = \
1104         go/encoding/pem/pem.go
1106 go_exp_datafmt_files = \
1107         go/exp/datafmt/datafmt.go \
1108         go/exp/datafmt/parser.go
1109 go_exp_draw_files = \
1110         go/exp/draw/draw.go \
1111         go/exp/draw/event.go
1112 go_exp_eval_files = \
1113         go/exp/eval/abort.go \
1114         go/exp/eval/bridge.go \
1115         go/exp/eval/compiler.go \
1116         go/exp/eval/expr.go \
1117         go/exp/eval/expr1.go \
1118         go/exp/eval/func.go \
1119         go/exp/eval/scope.go \
1120         go/exp/eval/stmt.go \
1121         go/exp/eval/type.go \
1122         go/exp/eval/typec.go \
1123         go/exp/eval/value.go \
1124         go/exp/eval/world.go
1126 go_go_ast_files = \
1127         go/go/ast/ast.go \
1128         go/go/ast/filter.go \
1129         go/go/ast/print.go \
1130         go/go/ast/resolve.go \
1131         go/go/ast/scope.go \
1132         go/go/ast/walk.go
1133 go_go_doc_files = \
1134         go/go/doc/comment.go \
1135         go/go/doc/doc.go
1136 go_go_parser_files = \
1137         go/go/parser/interface.go \
1138         go/go/parser/parser.go
1139 go_go_printer_files = \
1140         go/go/printer/nodes.go \
1141         go/go/printer/printer.go
1142 go_go_scanner_files = \
1143         go/go/scanner/errors.go \
1144         go/go/scanner/scanner.go
1145 go_go_token_files = \
1146         go/go/token/position.go \
1147         go/go/token/token.go
1148 go_go_typechecker_files = \
1149         go/go/typechecker/scope.go \
1150         go/go/typechecker/type.go \
1151         go/go/typechecker/typechecker.go \
1152         go/go/typechecker/universe.go
1153 go_go_types_files = \
1154         go/go/types/const.go \
1155         go/go/types/exportdata.go \
1156         go/go/types/gcimporter.go \
1157         go/go/types/types.go \
1158         go/go/types/universe.go
1160 go_hash_adler32_files = \
1161         go/hash/adler32/adler32.go
1162 go_hash_crc32_files = \
1163         go/hash/crc32/crc32.go
1164 go_hash_crc64_files = \
1165         go/hash/crc64/crc64.go
1166 go_hash_fnv_files = \
1167         go/hash/fnv/fnv.go
1169 go_http_cgi_files = \
1170         go/http/cgi/child.go \
1171         go/http/cgi/host.go
1172 go_http_fcgi_files = \
1173         go/http/fcgi/child.go \
1174         go/http/fcgi/fcgi.go
1175 go_http_httptest_files = \
1176         go/http/httptest/recorder.go \
1177         go/http/httptest/server.go
1178 go_http_pprof_files = \
1179         go/http/pprof/pprof.go
1180 go_http_spdy_files = \
1181         go/http/spdy/protocol.go
1183 go_image_gif_files = \
1184         go/image/gif/reader.go
1186 go_image_jpeg_files = \
1187         go/image/jpeg/fdct.go \
1188         go/image/jpeg/huffman.go \
1189         go/image/jpeg/idct.go \
1190         go/image/jpeg/reader.go \
1191         go/image/jpeg/writer.go
1193 go_image_png_files = \
1194         go/image/png/reader.go \
1195         go/image/png/writer.go
1197 go_image_tiff_files = \
1198         go/image/tiff/buffer.go \
1199         go/image/tiff/consts.go \
1200         go/image/tiff/reader.go
1202 go_image_ycbcr_files = \
1203         go/image/ycbcr/ycbcr.go
1205 go_index_suffixarray_files = \
1206         go/index/suffixarray/qsufsort.go \
1207         go/index/suffixarray/suffixarray.go
1209 go_io_ioutil_files = \
1210         go/io/ioutil/ioutil.go \
1211         go/io/ioutil/tempfile.go
1213 go_mime_multipart_files = \
1214         go/mime/multipart/formdata.go \
1215         go/mime/multipart/multipart.go
1217 go_net_dict_files = \
1218         go/net/dict/dict.go
1220 go_net_textproto_files = \
1221         go/net/textproto/header.go \
1222         go/net/textproto/pipeline.go \
1223         go/net/textproto/reader.go \
1224         go/net/textproto/textproto.go \
1225         go/net/textproto/writer.go
1227 go_os_inotify_files = \
1228         go/os/inotify/inotify_linux.go
1230 go_os_user_files = \
1231         go/os/user/user.go \
1232         go/os/user/lookup_unix.go
1234 go_os_signal_files = \
1235         go/os/signal/signal.go \
1236         unix.go
1238 go_path_filepath_files = \
1239         go/path/filepath/match.go \
1240         go/path/filepath/path.go \
1241         go/path/filepath/path_unix.go
1243 go_rpc_jsonrpc_files = \
1244         go/rpc/jsonrpc/client.go \
1245         go/rpc/jsonrpc/server.go
1247 go_runtime_debug_files = \
1248         go/runtime/debug/stack.go
1249 go_runtime_pprof_files = \
1250         go/runtime/pprof/pprof.go
1252 go_sync_atomic_files = \
1253         go/sync/atomic/doc.go
1254 go_sync_atomic_c_files = \
1255         go/sync/atomic/atomic.c
1257 go_testing_iotest_files = \
1258         go/testing/iotest/logger.go \
1259         go/testing/iotest/reader.go \
1260         go/testing/iotest/writer.go
1261 go_testing_quick_files = \
1262         go/testing/quick/quick.go
1263 go_testing_script_files = \
1264         go/testing/script/script.go
1266 # Define Syscall and Syscall6.
1267 if LIBGO_IS_RTEMS
1268 syscall_syscall_file = syscalls/syscall_stubs.go
1269 else
1270 syscall_syscall_file = syscalls/syscall.go
1271 endif
1273 # Declare libc functions that vary for largefile systems.
1274 if LIBGO_IS_LINUX
1275 # Always use lseek64 on GNU/Linux.
1276 syscall_filesize_file = syscalls/sysfile_largefile.go
1277 syscall_stat_file = syscalls/sysfile_stat_largefile.go
1278 else # !LIBGO_IS_LINUX
1279 if LIBGO_IS_SOLARIS
1280 if LIBGO_IS_386
1281 # Use lseek64 on 32-bit Solaris/x86.
1282 syscall_filesize_file = syscalls/sysfile_largefile.go
1283 syscall_stat_file = syscalls/sysfile_stat_largefile.go
1284 else # !LIBGO_IS_386
1285 if LIBGO_IS_SPARC
1286 # Use lseek64 on 32-bit Solaris/SPARC.
1287 syscall_filesize_file = syscalls/sysfile_largefile.go
1288 syscall_stat_file = syscalls/sysfile_stat_largefile.go
1289 else # !LIBGO_IS_386 && !LIBGO_IS_SPARC
1290 # Use lseek on 64-bit Solaris.
1291 syscall_filesize_file = syscalls/sysfile_regfile.go
1292 syscall_stat_file = syscalls/sysfile_stat_regfile.go
1293 endif # !LIBGO_IS_386 && !LIBGO_IS_SPARC
1294 endif # !LIBGO_IS_SOLARIS
1295 else # !LIBGO_IS_LINUX && !LIBGO_IS_SOLARIS
1296 # Use lseek by default.
1297 syscall_filesize_file = syscalls/sysfile_regfile.go
1298 syscall_stat_file = syscalls/sysfile_stat_regfile.go
1299 endif # !LIBGO_IS_SOLARIS
1300 endif # !LIBGO_IS_LINUX
1303 # Define ForkExec, PtraceForkExec, and Exec.
1304 if LIBGO_IS_RTEMS
1305 syscall_exec_os_file = syscalls/exec_stubs.go
1306 else
1307 syscall_exec_os_file = syscalls/exec.go
1308 endif
1310 # Define Wait4.
1311 if HAVE_WAIT4
1312 syscall_wait_file = syscalls/wait4.go
1313 else
1314 syscall_wait_file = syscalls/waitpid.go
1315 endif
1317 # Define Sleep.
1318 if LIBGO_IS_RTEMS
1319 syscall_sleep_file = syscalls/sleep_rtems.go
1320 else
1321 syscall_sleep_file = syscalls/sleep_select.go
1322 endif
1324 # Define Errstr.
1325 if LIBGO_IS_RTEMS
1326 syscall_errstr_file = syscalls/errstr_rtems.go
1327 else
1328 if HAVE_STRERROR_R
1329 syscall_errstr_file = syscalls/errstr.go
1330 else
1331 syscall_errstr_file = syscalls/errstr_nor.go
1332 endif
1333 endif
1335 # Declare libc_strerror_r which is the Go name for strerror_r.
1336 if LIBGO_IS_RTEMS
1337 # RTEMS uses newlib in which strerror_r returns char *.
1338 syscall_errstr_decl_file = syscalls/errstr_decl_rtems.go
1339 else
1340 if LIBGO_IS_LINUX
1341 # On GNU/Linux the POSIX strerror_r is called __xpg_strerror_r.
1342 syscall_errstr_decl_file = syscalls/errstr_decl_linux.go
1343 else
1344 # On other systems we hope strerror_r is just strerror_r.
1345 syscall_errstr_decl_file = syscalls/errstr_decl.go
1346 endif
1347 endif
1349 # Define socket sizes and types.
1350 if LIBGO_IS_LINUX
1351 syscall_socket_os_file = syscalls/socket_linux.go
1352 else
1353 if LIBGO_IS_SOLARIS
1354 syscall_socket_os_file = syscalls/socket_solaris.go
1355 else
1356 if LIBGO_IS_IRIX
1357 syscall_socket_os_file = syscalls/socket_irix.go
1358 else
1359 syscall_socket_os_file = syscalls/socket_bsd.go
1360 endif
1361 endif
1362 endif
1364 # Support for epoll.
1365 if LIBGO_IS_LINUX
1366 syscall_socket_epoll_file = syscalls/socket_epoll.go
1367 else
1368 syscall_socket_epoll_file =
1369 endif
1371 # Support for uname.
1372 if LIBGO_IS_SOLARIS
1373 if LIBGO_IS_386
1374 # 32-bit Solaris 2/x86 needs _nuname, handled in syscall_solaris_386.go.
1375 syscall_uname_file =
1376 else # !LIBGO_IS_386 && LIBGO_IS_SOLARIS
1377 syscall_uname_file = syscalls/syscall_uname.go
1378 endif
1379 else # !LIBGO_IS_SOLARIS
1380 syscall_uname_file = syscalls/syscall_uname.go
1381 endif
1383 syscall_arch.go: s-syscall_arch; @true
1384 s-syscall_arch: Makefile
1385         rm -f syscall_arch.go.tmp
1386         echo "package syscall" > syscall_arch.go.tmp
1387         echo 'const ARCH = "'$(GOARCH)'"' >> syscall_arch.go.tmp
1388         echo 'const OS = "'$(GOOS)'"' >> syscall_arch.go.tmp
1389         $(SHELL) $(srcdir)/../move-if-change syscall_arch.go.tmp syscall_arch.go
1390         $(STAMP) $@
1392 go_syscall_files = \
1393         $(syscall_errstr_file) \
1394         $(syscall_errstr_decl_file) \
1395         syscalls/exec_helpers.go \
1396         $(syscall_exec_os_file) \
1397         $(syscall_wait_file) \
1398         $(syscall_filesize_file) \
1399         $(syscall_stat_file) \
1400         $(syscall_sleep_file) \
1401         syscalls/socket.go \
1402         $(syscall_socket_os_file) \
1403         $(syscall_socket_epoll_file) \
1404         $(syscall_syscall_file) \
1405         $(syscall_uname_file) \
1406         syscalls/syscall_unix.go \
1407         syscalls/stringbyte.go \
1408         syscalls/syscall_$(GOOS).go \
1409         $(GO_SYSCALLS_SYSCALL_OS_ARCH_FILE) \
1410         syscalls/sysfile_posix.go \
1411         sysinfo.go \
1412         syscall_arch.go
1413 go_syscall_c_files = \
1414         syscalls/errno.c
1416 if LIBGO_IS_LINUX
1417 # os_lib_inotify_lo = os/inotify.lo
1418 os_lib_inotify_lo =
1419 else
1420 os_lib_inotify_lo =
1421 endif
1423 libgo_go_objs = \
1424         asn1/asn1.lo \
1425         big/big.lo \
1426         bufio/bufio.lo \
1427         bytes/bytes.lo \
1428         bytes/index.lo \
1429         cmath/cmath.lo \
1430         crypto/crypto.lo \
1431         ebnf/ebnf.lo \
1432         exec/exec.lo \
1433         expvar/expvar.lo \
1434         flag/flag.lo \
1435         fmt/fmt.lo \
1436         gob/gob.lo \
1437         hash/hash.lo \
1438         html/html.lo \
1439         http/http.lo \
1440         image/image.lo \
1441         io/io.lo \
1442         json/json.lo \
1443         log/log.lo \
1444         math/math.lo \
1445         mime/mime.lo \
1446         net/net.lo \
1447         netchan/netchan.lo \
1448         os/os.lo \
1449         patch/patch.lo \
1450         path/path.lo \
1451         rand/rand.lo \
1452         reflect/reflect.lo \
1453         regexp/regexp.lo \
1454         rpc/rpc.lo \
1455         runtime/runtime.lo \
1456         scanner/scanner.lo \
1457         smtp/smtp.lo \
1458         sort/sort.lo \
1459         strconv/strconv.lo \
1460         strings/strings.lo \
1461         sync/sync.lo \
1462         syslog/syslog.lo \
1463         syslog/syslog_c.lo \
1464         tabwriter/tabwriter.lo \
1465         template/template.lo \
1466         time/time.lo \
1467         try/try.lo \
1468         unicode/unicode.lo \
1469         utf16/utf16.lo \
1470         utf8/utf8.lo \
1471         websocket/websocket.lo \
1472         xml/xml.lo \
1473         archive/tar.lo \
1474         archive/zip.lo \
1475         compress/bzip2.lo \
1476         compress/flate.lo \
1477         compress/gzip.lo \
1478         compress/lzw.lo \
1479         compress/zlib.lo \
1480         container/heap.lo \
1481         container/list.lo \
1482         container/ring.lo \
1483         container/vector.lo \
1484         crypto/aes.lo \
1485         crypto/blowfish.lo \
1486         crypto/cast5.lo \
1487         crypto/cipher.lo \
1488         crypto/des.lo \
1489         crypto/dsa.lo \
1490         crypto/ecdsa.lo \
1491         crypto/elliptic.lo \
1492         crypto/hmac.lo \
1493         crypto/md4.lo \
1494         crypto/md5.lo \
1495         crypto/ocsp.lo \
1496         crypto/openpgp.lo \
1497         crypto/rand.lo \
1498         crypto/rc4.lo \
1499         crypto/ripemd160.lo \
1500         crypto/rsa.lo \
1501         crypto/sha1.lo \
1502         crypto/sha256.lo \
1503         crypto/sha512.lo \
1504         crypto/subtle.lo \
1505         crypto/tls.lo \
1506         crypto/twofish.lo \
1507         crypto/x509.lo \
1508         crypto/xtea.lo \
1509         crypto/openpgp/armor.lo \
1510         crypto/openpgp/error.lo \
1511         crypto/openpgp/packet.lo \
1512         crypto/openpgp/s2k.lo \
1513         debug/dwarf.lo \
1514         debug/elf.lo \
1515         debug/gosym.lo \
1516         debug/macho.lo \
1517         debug/pe.lo \
1518         debug/proc.lo \
1519         encoding/ascii85.lo \
1520         encoding/base32.lo \
1521         encoding/base64.lo \
1522         encoding/binary.lo \
1523         encoding/git85.lo \
1524         encoding/hex.lo \
1525         encoding/line.lo \
1526         encoding/pem.lo \
1527         exp/datafmt.lo \
1528         exp/draw.lo \
1529         exp/eval.lo \
1530         go/ast.lo \
1531         go/doc.lo \
1532         go/parser.lo \
1533         go/printer.lo \
1534         go/scanner.lo \
1535         go/token.lo \
1536         go/typechecker.lo \
1537         go/types.lo \
1538         hash/adler32.lo \
1539         hash/crc32.lo \
1540         hash/crc64.lo \
1541         hash/fnv.lo \
1542         http/cgi.lo \
1543         http/fcgi.lo \
1544         http/httptest.lo \
1545         http/pprof.lo \
1546         http/spdy.lo \
1547         image/gif.lo \
1548         image/jpeg.lo \
1549         image/png.lo \
1550         image/tiff.lo \
1551         image/ycbcr.lo \
1552         index/suffixarray.lo \
1553         io/ioutil.lo \
1554         mime/multipart.lo \
1555         net/dict.lo \
1556         net/textproto.lo \
1557         $(os_lib_inotify_lo) \
1558         os/user.lo \
1559         os/signal.lo \
1560         path/filepath.lo \
1561         rpc/jsonrpc.lo \
1562         runtime/debug.lo \
1563         runtime/pprof.lo \
1564         sync/atomic.lo \
1565         sync/atomic_c.lo \
1566         syscalls/syscall.lo \
1567         syscalls/errno.lo \
1568         testing/testing.lo \
1569         testing/iotest.lo \
1570         testing/quick.lo \
1571         testing/script.lo
1573 libgo_la_SOURCES = $(runtime_files)
1575 libgo_la_LDFLAGS = $(PTHREAD_CFLAGS) $(AM_LDFLAGS)
1577 libgo_la_LIBADD = \
1578         $(libgo_go_objs) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)
1580 libgobegin_a_SOURCES = \
1581         runtime/go-main.c
1583 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
1585 GOCFLAGS = $(CFLAGS)
1586 AM_GOCFLAGS = $(STRINGOPS_FLAG)
1587 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
1589 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
1590         $(AM_GOCFLAGS) $(GOCFLAGS)
1592 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
1593         $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
1595 # Build the .go files for a package, generating a .lo file.
1596 BUILDPACKAGE = \
1597         $(MKDIR_P) $(@D); \
1598         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
1599         $(LTGOCOMPILE) -I . -c -fgo-prefix="libgo_$(@D)" -o $@ $$files
1601 if LIBGO_IS_RTEMS
1602 use_dejagnu = yes
1603 else
1604 use_dejagnu = no
1605 endif
1607 GOTESTFLAGS =
1609 # Check a package.
1610 CHECK = \
1611         GC="$(GOC) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
1612         export GC; \
1613         RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
1614         export RUNTESTFLAGS; \
1615         MAKE="$(MAKE)"; \
1616         export MAKE; \
1617         libgccdir=`${GOC} -print-libgcc-file-name | sed -e 's|/[^/]*$$||'`; \
1618         LD_LIBRARY_PATH="`${PWD_COMMAND}`/.libs:$${libgccdir}:${LD_LIBRARY_PATH}"; \
1619         LD_LIBRARY_PATH=`echo $${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
1620         export LD_LIBRARY_PATH; \
1621         rm -f $@-testsum $@-testlog; \
1622         prefix=`if test "$(@D)" = "regexp"; then echo regexp-test; else dirname $(@D); fi`; \
1623         test "$${prefix}" != "." || prefix="$(@D)"; \
1624         if test "$(use_dejagnu)" = "yes"; then \
1625           $(SHELL) $(srcdir)/testsuite/gotest --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --testname="$(@D)" $(GOTESTFLAGS); \
1626         else \
1627           if $(SHELL) $(srcdir)/testsuite/gotest --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" $(GOTESTFLAGS) >>$@-testlog 2>&1; then \
1628             echo "PASS: $(@D)" >> $@-testlog; \
1629             echo "PASS: $(@D)"; \
1630             echo "PASS: $(@D)" > $@-testsum; \
1631           else \
1632             echo "FAIL: $(@D)" >> $@-testlog; \
1633             cat $@-testlog; \
1634             echo "FAIL: $(@D)" > $@-testsum; \
1635             exit 1; \
1636           fi; \
1637         fi
1639 # Check a package that is only tested if GCCGO_RUN_ALL_TESTS is set.
1640 CHECK_ON_REQUEST = \
1641         if test "$$GCCGO_RUN_ALL_TESTS" != ""; then \
1642           $(CHECK); \
1643         else \
1644           rm -f $@-testsum $@-testlog; \
1645           echo "Set GCCGO_RUN_ALL_TESTS in environment to run $(@D) test" > $@-testlog; \
1646           echo "UNTESTED: $(@D)" >> $@-testlog; \
1647           echo "UNTESTED: $(@D)"; \
1648           echo "UNTESTED: $(@D)" > $@-testsum; \
1649         fi
1651 # Build all packages before checking any.
1652 CHECK_DEPS = libgo.la libgobegin.a \
1653         $(toolexeclibgo_DATA) \
1654         $(toolexeclibgoarchive_DATA) \
1655         $(toolexeclibgocompress_DATA) \
1656         $(toolexeclibgocontainer_DATA) \
1657         $(toolexeclibgocrypto_DATA) \
1658         $(toolexeclibgocryptoopenpgp_DATA) \
1659         $(toolexeclibgodebug_DATA) \
1660         $(toolexeclibgoencoding_DATA) \
1661         $(toolexeclibgoexp_DATA) \
1662         $(toolexeclibgogo_DATA) \
1663         $(toolexeclibgohash_DATA) \
1664         $(toolexeclibgohttp_DATA) \
1665         $(toolexeclibgoimage_DATA) \
1666         $(toolexeclibgoindex_DATA) \
1667         $(toolexeclibgoio_DATA) \
1668         $(toolexeclibgomime_DATA) \
1669         $(toolexeclibgonet_DATA) \
1670         $(toolexeclibgoos_DATA) \
1671         $(toolexeclibgopath_DATA) \
1672         $(toolexeclibgorpc_DATA) \
1673         $(toolexeclibgoruntime_DATA) \
1674         $(toolexeclibgosync_DATA) \
1675         $(toolexeclibgotesting_DATA)
1677 asn1/asn1.lo: $(go_asn1_files) bytes.gox fmt.gox io.gox os.gox reflect.gox \
1678                 strconv.gox strings.gox time.gox
1679         $(BUILDPACKAGE)
1680 asn1/check: $(CHECK_DEPS)
1681         @$(CHECK)
1682 .PHONY: asn1/check
1684 big/big.lo: $(go_big_files) fmt.gox rand.gox strings.gox os.gox
1685         $(BUILDPACKAGE)
1686 big/check: $(CHECK_DEPS)
1687         @$(CHECK)
1688 .PHONY: big/check
1690 bufio/bufio.lo: $(go_bufio_files) bytes.gox io.gox os.gox strconv.gox utf8.gox
1691         $(BUILDPACKAGE)
1692 bufio/check: $(CHECK_DEPS)
1693         @$(CHECK)
1694 .PHONY: bufio/check
1696 bytes/bytes.lo: $(go_bytes_files) io.gox os.gox unicode.gox utf8.gox
1697         $(BUILDPACKAGE)
1698 bytes/index.lo: $(go_bytes_c_files) bytes/bytes.lo
1699         $(LTCOMPILE) -c -o bytes/index.lo $(srcdir)/go/bytes/indexbyte.c
1700 bytes/check: $(CHECK_DEPS)
1701         @$(CHECK)
1702 .PHONY: bytes/check
1704 cmath/cmath.lo: $(go_cmath_files) math.gox
1705         $(BUILDPACKAGE)
1706 cmath/check: $(CHECK_DEPS)
1707         @$(CHECK)
1708 .PHONY: cmath/check
1710 crypto/crypto.lo: $(go_crypto_files) hash.gox
1711         $(BUILDPACKAGE)
1712 crypto/check: $(CHECK_DEPS)
1713         @$(CHECK)
1714 .PHONY: crypto/check
1716 ebnf/ebnf.lo: $(go_ebnf_files) container/vector.gox go/scanner.gox \
1717                 go/token.gox os.gox strconv.gox unicode.gox utf8.gox
1718         $(BUILDPACKAGE)
1719 ebnf/check: $(CHECK_DEPS)
1720         @$(CHECK)
1721 .PHONY: ebnf/check
1723 exec/exec.lo: $(go_exec_files) os.gox strconv.gox strings.gox
1724         $(BUILDPACKAGE)
1725 exec/check: $(CHECK_DEPS)
1726         @$(CHECK)
1727 .PHONY: exec/check
1729 expvar/expvar.lo: $(go_expvar_files) bytes.gox fmt.gox http.gox json.gox \
1730                 log.gox os.gox runtime.gox strconv.gox sync.gox
1731         $(BUILDPACKAGE)
1732 expvar/check: $(CHECK_DEPS)
1733         @$(CHECK)
1734 .PHONY: expvar/check
1736 flag/flag.lo: $(go_flag_files) fmt.gox os.gox strconv.gox
1737         $(BUILDPACKAGE)
1738 flag/check: $(CHECK_DEPS)
1739         @$(CHECK)
1740 .PHONY: flag/check
1742 fmt/fmt.lo: $(go_fmt_files) bytes.gox io.gox math.gox os.gox reflect.gox \
1743                 strconv.gox strings.gox unicode.gox utf8.gox
1744         $(BUILDPACKAGE)
1745 fmt/check: $(CHECK_DEPS)
1746         @$(CHECK)
1747 .PHONY: fmt/check
1749 gob/gob.lo: $(go_gob_files) bufio.gox bytes.gox fmt.gox io.gox math.gox \
1750                 os.gox reflect.gox runtime.gox strings.gox sync.gox \
1751                 unicode.gox utf8.gox
1752         $(BUILDPACKAGE)
1753 gob/check: $(CHECK_DEPS)
1754         @$(CHECK)
1755 .PHONY: gob/check
1757 hash/hash.lo: $(go_hash_files) io.gox
1758         $(BUILDPACKAGE)
1759 hash/check: $(CHECK_DEPS)
1760         @$(CHECK)
1761 .PHONY: hash/check
1763 html/html.lo: $(go_html_files) bytes.gox io.gox os.gox strconv.gox strings.gox \
1764                 utf8.gox
1765         $(BUILDPACKAGE)
1766 html/check: $(CHECK_DEPS)
1767         @$(CHECK)
1768 .PHONY: html/check
1770 http/http.lo: $(go_http_files) bufio.gox bytes.gox compress/gzip.gox \
1771                 container/vector.gox crypto/rand.gox crypto/tls.gox \
1772                 encoding/base64.gox fmt.gox io.gox io/ioutil.gox log.gox \
1773                 mime.gox mime/multipart.gox net.gox net/textproto.gox os.gox \
1774                 path.gox path/filepath.gox sort.gox strconv.gox strings.gox \
1775                 sync.gox time.gox utf8.gox
1776         $(BUILDPACKAGE)
1777 http/check: $(CHECK_DEPS)
1778         @$(CHECK)
1779 .PHONY: http/check
1781 image/image.lo: $(go_image_files) bufio.gox io.gox os.gox strconv.gox
1782         $(BUILDPACKAGE)
1783 image/check: $(CHECK_DEPS)
1784         @$(CHECK)
1785 .PHONY: image/check
1787 io/io.lo: $(go_io_files) os.gox sync.gox
1788         $(BUILDPACKAGE)
1789 io/check: $(CHECK_DEPS)
1790         @$(CHECK)
1791 .PHONY: io/check
1793 json/json.lo: $(go_json_files) bytes.gox container/vector.gox \
1794                 encoding/base64.gox fmt.gox io.gox math.gox os.gox \
1795                 reflect.gox runtime.gox strconv.gox strings.gox unicode.gox \
1796                 utf16.gox utf8.gox
1797         $(BUILDPACKAGE)
1798 json/check: $(CHECK_DEPS)
1799         @$(CHECK)
1800 .PHONY: json/check
1802 log/log.lo: $(go_log_files) bytes.gox fmt.gox io.gox runtime.gox os.gox \
1803                 sync.gox time.gox
1804         $(BUILDPACKAGE)
1805 log/check: $(CHECK_DEPS)
1806         @$(CHECK)
1807 .PHONY: log/check
1809 math/math.lo: $(go_math_files)
1810         $(BUILDPACKAGE)
1811 math/check: $(CHECK_DEPS)
1812         @$(CHECK)
1813 .PHONY: math/check
1815 mime/mime.lo: $(go_mime_files) bufio.gox bytes.gox fmt.gox os.gox strings.gox \
1816                 sync.gox unicode.gox
1817         $(BUILDPACKAGE)
1818 mime/check: $(CHECK_DEPS)
1819         @$(CHECK)
1820 .PHONY: mime/check
1822 net/net.lo: $(go_net_files) bytes.gox fmt.gox io.gox os.gox rand.gox \
1823                 reflect.gox sort.gox strconv.gox strings.gox sync.gox \
1824                 syscall.gox time.gox
1825         $(BUILDPACKAGE)
1826 net/check: $(CHECK_DEPS)
1827         @$(CHECK_ON_REQUEST)
1828 .PHONY: net/check
1830 netchan/netchan.lo: $(go_netchan_files) gob.gox io.gox log.gox net.gox os.gox \
1831                 reflect.gox strconv.gox sync.gox time.gox
1832         $(BUILDPACKAGE)
1833 netchan/check: $(CHECK_DEPS)
1834         @$(CHECK)
1835 .PHONY: netchan/check
1837 os/os.lo: $(go_os_files) runtime.gox sync.gox syscall.gox
1838         $(BUILDPACKAGE)
1839 os/check: $(CHECK_DEPS)
1840         @$(CHECK)
1841 .PHONY: os/check
1843 patch/patch.lo: $(go_patch_files) bytes.gox compress/zlib.gox \
1844                 crypto/sha1.gox encoding/git85.gox fmt.gox io.gox os.gox \
1845                 path.gox strings.gox
1846         $(BUILDPACKAGE)
1847 patch/check: $(CHECK_DEPS)
1848         @$(CHECK)
1849 .PHONY: patch/check
1851 path/path.lo: $(go_path_files) os.gox strings.gox utf8.gox
1852         $(BUILDPACKAGE)
1853 path/check: $(CHECK_DEPS)
1854         @$(CHECK)
1855 .PHONY: path/check
1857 rand/rand.lo: $(go_rand_files) math.gox sync.gox
1858         $(BUILDPACKAGE)
1859 rand/check: $(CHECK_DEPS)
1860         @$(CHECK)
1861 .PHONY: rand/check
1863 reflect/reflect.lo: $(go_reflect_files) math.gox runtime.gox strconv.gox \
1864                 sync.gox
1865         $(BUILDPACKAGE)
1866 reflect/check: $(CHECK_DEPS)
1867         @$(CHECK)
1868 .PHONY: reflect/check
1870 regexp/regexp.lo: $(go_regexp_files) bytes.gox io.gox os.gox strings.gox \
1871                 utf8.gox
1872         $(BUILDPACKAGE)
1873 regexp/check: $(CHECK_DEPS)
1874         @$(CHECK)
1875 .PHONY: regexp/check
1877 rpc/rpc.lo: $(go_rpc_files) bufio.gox fmt.gox gob.gox http.gox io.gox log.gox \
1878                 net.gox os.gox reflect.gox sort.gox strings.gox strconv.gox \
1879                 sync.gox template.gox unicode.gox utf8.gox
1880         $(BUILDPACKAGE)
1881 rpc/check: $(CHECK_DEPS)
1882         @$(CHECK)
1883 .PHONY: rpc/check
1885 runtime/runtime.lo: $(go_runtime_files)
1886         $(BUILDPACKAGE)
1887 runtime/check: $(CHECK_DEPS)
1888         @$(CHECK)
1889 .PHONY: runtime/check
1891 scanner/scanner.lo: $(go_scanner_files) bytes.gox fmt.gox io.gox os.gox \
1892                 unicode.gox utf8.gox
1893         $(BUILDPACKAGE)
1894 scanner/check: $(CHECK_DEPS)
1895         @$(CHECK)
1896 .PHONY: scanner/check
1898 smtp/smtp.lo: $(go_smtp_files) crypto/tls.gox encoding/base64.gox io.gox \
1899                 net.gox net/textproto.gox os.gox strings.gox
1900         $(BUILDPACKAGE)
1901 smtp/check: $(CHECK_DEPS)
1902         @$(CHECK)
1903 .PHONY: smtp/check
1905 sort/sort.lo: $(go_sort_files)
1906         $(BUILDPACKAGE)
1907 sort/check: $(CHECK_DEPS)
1908         @$(CHECK)
1909 .PHONY: sort/check
1911 strconv/strconv.lo: $(go_strconv_files) bytes.gox math.gox os.gox strings.gox \
1912                 unicode.gox utf8.gox
1913         $(BUILDPACKAGE)
1914 strconv/check: $(CHECK_DEPS)
1915         @$(CHECK)
1916 .PHONY: strconv/check
1918 strings/strings.lo: $(go_strings_files) os.gox unicode.gox utf8.gox
1919         $(BUILDPACKAGE)
1920 strings/check: $(CHECK_DEPS)
1921         @$(CHECK)
1922 .PHONY: strings/check
1924 sync/sync.lo: $(go_sync_files) runtime.gox sync/atomic.gox
1925         $(BUILDPACKAGE)
1926 sync/check: $(CHECK_DEPS)
1927         @$(CHECK)
1928 .PHONY: sync/check
1930 syslog/syslog.lo: $(go_syslog_files) fmt.gox log.gox net.gox os.gox syscall.gox
1931         $(BUILDPACKAGE)
1932 syslog/syslog_c.lo: $(go_syslog_c_files) syslog/syslog.lo
1933         $(LTCOMPILE) -c -o $@ $(srcdir)/go/syslog/syslog_c.c
1934 syslog/check: $(CHECK_DEPS)
1935         @$(CHECK_ON_REQUEST)
1936 .PHONY: syslog/check
1938 tabwriter/tabwriter.lo: $(go_tabwriter_files) bytes.gox io.gox os.gox utf8.gox
1939         $(BUILDPACKAGE)
1940 tabwriter/check: $(CHECK_DEPS)
1941         @$(CHECK)
1942 .PHONY: tabwriter/check
1944 template/template.lo: $(go_template_files) bytes.gox fmt.gox io.gox os.gox \
1945                 reflect.gox runtime.gox strings.gox container/vector.gox
1946         $(BUILDPACKAGE)
1947 template/check: $(CHECK_DEPS)
1948         @$(CHECK)
1949 .PHONY: template/check
1951 testing/testing.lo: $(go_testing_files) flag.gox fmt.gox os.gox regexp.gox \
1952                 runtime.gox runtime/pprof.gox time.gox
1953         $(BUILDPACKAGE)
1954 testing/check: $(CHECK_DEPS)
1955         @$(CHECK)
1956 .PHONY: testing/check
1958 time/time.lo: $(go_time_files) bytes.gox container/heap.gox io/ioutil.gox \
1959                 os.gox strconv.gox sync.gox syscall.gox
1960         $(BUILDPACKAGE)
1961 time/check: $(CHECK_DEPS)
1962         @$(CHECK)
1963 .PHONY: time/check
1965 try/try.lo: $(go_try_files) fmt.gox io.gox os.gox reflect.gox unicode.gox
1966         $(BUILDPACKAGE)
1967 try/check: $(CHECK_DEPS)
1968         @$(CHECK)
1969 .PHONY: try/check
1971 unicode/unicode.lo: $(go_unicode_files)
1972         $(BUILDPACKAGE)
1973 unicode/check: $(CHECK_DEPS)
1974         @$(CHECK)
1975 .PHONY: unicode/check
1977 utf16/utf16.lo: $(go_utf16_files) unicode.gox
1978         $(BUILDPACKAGE)
1979 utf16/check: $(CHECK_DEPS)
1980         @$(CHECK)
1981 .PHONY: utf16/check
1983 utf8/utf8.lo: $(go_utf8_files) unicode.gox
1984         $(BUILDPACKAGE)
1985 utf8/check: $(CHECK_DEPS)
1986         @$(CHECK)
1987 .PHONY: utf8/check
1989 websocket/websocket.lo: $(go_websocket_files) bufio.gox bytes.gox \
1990                 container/vector.gox crypto/md5.gox crypto/tls.gox \
1991                 encoding/binary.gox fmt.gox http.gox io.gox net.gox os.gox \
1992                 rand.gox strings.gox
1993         $(BUILDPACKAGE)
1994 websocket/check: $(CHECK_DEPS)
1995         @$(CHECK)
1996 .PHONY: websocket/check
1998 xml/xml.lo: $(go_xml_files) bufio.gox bytes.gox fmt.gox io.gox os.gox \
1999                 reflect.gox strconv.gox strings.gox unicode.gox utf8.gox
2000         $(BUILDPACKAGE)
2001 xml/check: $(CHECK_DEPS)
2002         @$(CHECK)
2003 .PHONY: xml/check
2005 archive/tar.lo: $(go_archive_tar_files) bytes.gox io.gox io/ioutil.gox os.gox \
2006                 strconv.gox strings.gox
2007         $(BUILDPACKAGE)
2008 archive/tar/check: $(CHECK_DEPS)
2009         @$(MKDIR_P) archive/tar
2010         @$(CHECK)
2011 .PHONY: archive/tar/check
2013 archive/zip.lo: $(go_archive_zip_files) bufio.gox bytes.gox \
2014                 compress/flate.gox hash.gox hash/crc32.gox \
2015                 encoding/binary.gox io.gox io/ioutil.gox os.gox
2016         $(BUILDPACKAGE)
2017 archive/zip/check: $(CHECK_DEPS)
2018         @$(MKDIR_P) archive/zip
2019         @$(CHECK)
2020 .PHONY: archive/zip/check
2022 compress/bzip2.lo: $(go_compress_bzip2_files) bufio.gox io.gox os.gox sort.gox
2023         $(BUILDPACKAGE)
2024 compress/bzip2/check: $(CHECK_DEPS)
2025         @$(MKDIR_P) compress/bzip2
2026         @$(CHECK)
2027 .PHONY: compress/bzip2/check
2029 compress/flate.lo: $(go_compress_flate_files) bufio.gox io.gox math.gox \
2030                 os.gox sort.gox strconv.gox
2031         $(BUILDPACKAGE)
2032 compress/flate/check: $(CHECK_DEPS)
2033         @$(MKDIR_P) compress/flate
2034         @$(CHECK)
2035 .PHONY: compress/flate/check
2037 compress/gzip.lo: $(go_compress_gzip_files) bufio.gox compress/flate.gox \
2038                 hash.gox hash/crc32.gox io.gox os.gox
2039         $(BUILDPACKAGE)
2040 compress/gzip/check: $(CHECK_DEPS)
2041         @$(MKDIR_P) compress/gzip
2042         @$(CHECK)
2043 .PHONY: compress/gzip/check
2045 compress/lzw.lo: $(go_compress_lzw_files) bufio.gox fmt.gox io.gox os.gox
2046         $(BUILDPACKAGE)
2047 compress/lzw/check: $(CHECK_DEPS)
2048         @$(MKDIR_P) compress/lzw
2049         @$(CHECK)
2050 .PHONY: compress/lzw/check
2052 compress/zlib.lo: $(go_compress_zlib_files) bufio.gox compress/flate.gox \
2053                 hash.gox hash/adler32.gox io.gox os.gox
2054         $(BUILDPACKAGE)
2055 compress/zlib/check: $(CHECK_DEPS)
2056         @$(MKDIR_P) compress/zlib
2057         @$(CHECK)
2058 .PHONY: compress/zlib/check
2060 container/heap.lo: $(go_container_heap_files) sort.gox
2061         $(BUILDPACKAGE)
2062 container/heap/check: $(CHECK_DEPS)
2063         @$(MKDIR_P) container/heap
2064         @$(CHECK)
2065 .PHONY: container/heap/check
2067 container/list.lo: $(go_container_list_files)
2068         $(BUILDPACKAGE)
2069 container/list/check: $(CHECK_DEPS)
2070         @$(MKDIR_P) container/list
2071         @$(CHECK)
2072 .PHONY: container/list/check
2074 container/ring.lo: $(go_container_ring_files)
2075         $(BUILDPACKAGE)
2076 container/ring/check: $(CHECK_DEPS)
2077         @$(MKDIR_P) container/ring
2078         @$(CHECK)
2079 .PHONY: container/ring/check
2081 container/vector.lo: $(go_container_vector_files)
2082         $(BUILDPACKAGE)
2083 container/vector/check: $(CHECK_DEPS)
2084         @$(MKDIR_P) container/vector
2085         @$(CHECK)
2086 .PHONY: container/vector/check
2088 crypto/aes.lo: $(go_crypto_aes_files) os.gox strconv.gox
2089         $(BUILDPACKAGE)
2090 crypto/aes/check: $(CHECK_DEPS)
2091         @$(MKDIR_P) crypto/aes
2092         @$(CHECK)
2093 .PHONY: crypto/aes/check
2095 crypto/blowfish.lo: $(go_crypto_blowfish_files) os.gox strconv.gox
2096         $(BUILDPACKAGE)
2097 crypto/blowfish/check: $(CHECK_DEPS)
2098         @$(MKDIR_P) crypto/blowfish
2099         @$(CHECK)
2100 .PHONY: crypto/blowfish/check
2102 crypto/cast5.lo: $(go_crypto_cast5_files) os.gox
2103         $(BUILDPACKAGE)
2104 crypto/cast5/check: $(CHECK_DEPS)
2105         @$(MKDIR_P) crypto/cast5
2106         @$(CHECK)
2107 .PHONY: crypto/cast5/check
2109 crypto/cipher.lo: $(go_crypto_cipher_files) io.gox os.gox
2110         $(BUILDPACKAGE)
2111 crypto/cipher/check: $(CHECK_DEPS)
2112         @$(MKDIR_P) crypto/cipher
2113         @$(CHECK)
2114 .PHONY: crypto/cipher/check
2116 crypto/des.lo: $(go_crypto_des_files) encoding/binary.gox os.gox strconv.gox
2117         $(BUILDPACKAGE)
2118 crypto/des/check: $(CHECK_DEPS)
2119         @$(MKDIR_P) crypto/des
2120         @$(CHECK)
2121 .PHONY: crypto/des/check
2123 crypto/dsa.lo: $(go_crypto_dsa_files) big.gox io.gox os.gox
2124         $(BUILDPACKAGE)
2125 crypto/dsa/check: $(CHECK_DEPS)
2126         @$(MKDIR_P) crypto/dsa
2127         @$(CHECK)
2128 .PHONY: crypto/dsa/check
2130 crypto/ecdsa.lo: $(go_crypto_ecdsa_files) big.gox crypto/elliptic.gox io.gox \
2131                 os.gox
2132         $(BUILDPACKAGE)
2133 crypto/ecdsa/check: $(CHECK_DEPS)
2134         @$(MKDIR_P) crypto/ecdsa
2135         @$(CHECK)
2136 .PHONY: crypto/ecdsa/check
2138 crypto/elliptic.lo: $(go_crypto_elliptic_files) big.gox io.gox os.gox sync.gox
2139         $(BUILDPACKAGE)
2140 crypto/elliptic/check: $(CHECK_DEPS)
2141         @$(MKDIR_P) crypto/elliptic
2142         @$(CHECK)
2143 .PHONY: crypto/elliptic/check
2145 crypto/hmac.lo: $(go_crypto_hmac_files) crypto/md5.gox crypto/sha1.gox \
2146                 crypto/sha256.gox hash.gox os.gox
2147         $(BUILDPACKAGE)
2148 crypto/hmac/check: $(CHECK_DEPS)
2149         @$(MKDIR_P) crypto/hmac
2150         @$(CHECK)
2151 .PHONY: crypto/hmac/check
2153 crypto/md4.lo: $(go_crypto_md4_files) crypto.gox hash.gox os.gox
2154         $(BUILDPACKAGE)
2155 crypto/md4/check: $(CHECK_DEPS)
2156         @$(MKDIR_P) crypto/md4
2157         @$(CHECK)
2158 .PHONY: crypto/md4/check
2160 crypto/md5.lo: $(go_crypto_md5_files) crypto.gox hash.gox os.gox
2161         $(BUILDPACKAGE)
2162 crypto/md5/check: $(CHECK_DEPS)
2163         @$(MKDIR_P) crypto/md5
2164         @$(CHECK)
2165 .PHONY: crypto/md5/check
2167 crypto/ocsp.lo: $(go_crypto_ocsp_files) asn1.gox crypto.gox crypto/rsa.gox \
2168                 crypto/sha1.gox crypto/x509.gox os.gox time.gox
2169         $(BUILDPACKAGE)
2170 crypto/ocsp/check: $(CHECK_DEPS)
2171         @$(MKDIR_P) crypto/ocsp
2172         @$(CHECK)
2173 .PHONY: crypto/ocsp/check
2175 crypto/openpgp.lo: $(go_crypto_openpgp_files) crypto.gox crypto/dsa.gox \
2176                 crypto/openpgp/armor.gox crypto/openpgp/error.gox \
2177                 crypto/openpgp/packet.gox crypto/rsa.gox crypto/sha256.gox \
2178                 hash.gox io.gox os.gox strconv.gox time.gox
2179         $(BUILDPACKAGE)
2180 crypto/openpgp/check: $(CHECK_DEPS)
2181         @$(MKDIR_P) crypto/openpgp
2182         @$(CHECK)
2183 .PHONY: crypto/openpgp/check
2185 crypto/rand.lo: $(go_crypto_rand_files) bufio.gox crypto/aes.gox io.gox \
2186                 os.gox sync.gox time.gox
2187         $(BUILDPACKAGE)
2188 crypto/rand/check: $(CHECK_DEPS)
2189         @$(MKDIR_P) crypto/rand
2190         @$(CHECK)
2191 .PHONY: crypto/rand/check
2193 crypto/rc4.lo: $(go_crypto_rc4_files) os.gox strconv.gox
2194         $(BUILDPACKAGE)
2195 crypto/rc4/check: $(CHECK_DEPS)
2196         @$(MKDIR_P) crypto/rc4
2197         @$(CHECK)
2198 .PHONY: crypto/rc4/check
2200 crypto/ripemd160.lo: $(go_crypto_ripemd160_files) crypto.gox hash.gox os.gox
2201         $(BUILDPACKAGE)
2202 crypto/ripemd160/check: $(CHECK_DEPS)
2203         @$(MKDIR_P) crypto/ripemd160
2204         @$(CHECK)
2205 .PHONY: crypto/ripemd160/check
2207 crypto/rsa.lo: $(go_crypto_rsa_files) big.gox crypto.gox crypto/sha1.gox \
2208                 crypto/subtle.gox encoding/hex.gox hash.gox io.gox os.gox
2209         $(BUILDPACKAGE)
2210 crypto/rsa/check: $(CHECK_DEPS)
2211         @$(MKDIR_P) crypto/rsa
2212         @$(CHECK)
2213 .PHONY: crypto/rsa/check
2215 crypto/sha1.lo: $(go_crypto_sha1_files) crypto.gox hash.gox os.gox
2216         $(BUILDPACKAGE)
2217 crypto/sha1/check: $(CHECK_DEPS)
2218         @$(MKDIR_P) crypto/sha1
2219         @$(CHECK)
2220 .PHONY: crypto/sha1/check
2222 crypto/sha256.lo: $(go_crypto_sha256_files) crypto.gox hash.gox os.gox
2223         $(BUILDPACKAGE)
2224 crypto/sha256/check: $(CHECK_DEPS)
2225         @$(MKDIR_P) crypto/sha256
2226         @$(CHECK)
2227 .PHONY: crypto/sha256/check
2229 crypto/sha512.lo: $(go_crypto_sha512_files) crypto.gox hash.gox os.gox
2230         $(BUILDPACKAGE)
2231 crypto/sha512/check: $(CHECK_DEPS)
2232         @$(MKDIR_P) crypto/sha512
2233         @$(CHECK)
2234 .PHONY: crypto/sha512/check
2236 crypto/subtle.lo: $(go_crypto_subtle_files)
2237         $(BUILDPACKAGE)
2238 crypto/subtle/check: $(CHECK_DEPS)
2239         @$(MKDIR_P) crypto/subtle
2240         @$(CHECK)
2241 .PHONY: crypto/subtle/check
2243 crypto/tls.lo: $(go_crypto_tls_files) big.gox bytes.gox crypto.gox \
2244                 crypto/aes.gox crypto/cipher.gox crypto/elliptic.gox \
2245                 crypto/hmac.gox crypto/md5.gox crypto/rand.gox crypto/rc4.gox \
2246                 crypto/rsa.gox crypto/sha1.gox crypto/subtle.gox \
2247                 crypto/x509.gox encoding/pem.gox hash.gox io.gox \
2248                 io/ioutil.gox net.gox os.gox strconv.gox strings.gox sync.gox \
2249                 time.gox
2250         $(BUILDPACKAGE)
2251 crypto/tls/check: $(CHECK_DEPS)
2252         @$(MKDIR_P) crypto/tls
2253         @$(CHECK)
2254 .PHONY: crypto/tls/check
2256 crypto/twofish.lo: $(go_crypto_twofish_files) os.gox strconv.gox
2257         $(BUILDPACKAGE)
2258 crypto/twofish/check: $(CHECK_DEPS)
2259         @$(MKDIR_P) crypto/twofish
2260         @$(CHECK)
2261 .PHONY: crypto/twofish/check
2263 crypto/x509.lo: $(go_crypto_x509_files) asn1.gox big.gox bytes.gox \
2264                 container/vector.gox crypto.gox crypto/rsa.gox \
2265                 crypto/sha1.gox encoding/pem.gox hash.gox os.gox strings.gox \
2266                 time.gox
2267         $(BUILDPACKAGE)
2268 crypto/x509/check: $(CHECK_DEPS)
2269         @$(MKDIR_P) crypto/x509
2270         @$(CHECK)
2271 .PHONY: crypto/x509/check
2273 crypto/xtea.lo: $(go_crypto_xtea_files) os.gox strconv.gox
2274         $(BUILDPACKAGE)
2275 crypto/xtea/check: $(CHECK_DEPS)
2276         @$(MKDIR_P) crypto/xtea
2277         @$(CHECK)
2278 .PHONY: crypto/xtea/check
2280 crypto/openpgp/armor.lo: $(go_crypto_openpgp_armor_files) bufio.gox bytes.gox \
2281                 crypto/openpgp/error.gox encoding/base64.gox io.gox os.gox
2282         $(BUILDPACKAGE)
2283 crypto/openpgp/armor/check: $(CHECK_DEPS)
2284         @$(MKDIR_P) crypto/openpgp/armor
2285         @$(CHECK)
2286 .PHONY: crypto/openpgp/armor/check
2288 crypto/openpgp/error.lo: $(go_crypto_openpgp_error_files) strconv.gox
2289         $(BUILDPACKAGE)
2290 crypto/openpgp/error/check: $(CHECK_DEPS)
2291         @$(MKDIR_P) crypto/openpgp/error
2292         @$(CHECK)
2293 .PHONY: crypto/openpgp/error/check
2295 crypto/openpgp/packet.lo: $(go_crypto_openpgp_packet_files) big.gox bytes.gox \
2296                 compress/flate.gox compress/zlib.gox crypto.gox \
2297                 crypto/aes.gox crypto/cast5.gox crypto/cipher.gox \
2298                 crypto/dsa.gox crypto/openpgp/error.gox \
2299                 crypto/openpgp/s2k.gox crypto/rand.gox crypto/rsa.gox \
2300                 crypto/sha1.gox crypto/subtle.gox encoding/binary.gox fmt.gox \
2301                 hash.gox io.gox io/ioutil.gox os.gox strconv.gox strings.gox
2302         $(BUILDPACKAGE)
2303 crypto/openpgp/packet/check: $(CHECK_DEPS)
2304         @$(MKDIR_P) crypto/openpgp/packet
2305         @$(CHECK)
2306 .PHONY: crypto/openpgp/packet/check
2308 crypto/openpgp/s2k.lo: $(go_crypto_openpgp_s2k_files) crypto.gox \
2309                 crypto/md5.gox crypto/openpgp/error.gox crypto/ripemd160.gox \
2310                 crypto/sha1.gox crypto/sha256.gox crypto/sha512.gox hash.gox \
2311                 io.gox os.gox
2312         $(BUILDPACKAGE)
2313 crypto/openpgp/s2k/check: $(CHECK_DEPS)
2314         @$(MKDIR_P) crypto/openpgp/s2k
2315         @$(CHECK)
2316 .PHONY: crypto/openpgp/s2k/check
2318 debug/dwarf.lo: $(go_debug_dwarf_files) encoding/binary.gox os.gox strconv.gox
2319         $(BUILDPACKAGE)
2320 debug/dwarf/check: $(CHECK_DEPS)
2321         @$(MKDIR_P) debug/dwarf
2322         @$(CHECK)
2323 .PHONY: debug/dwarf/check
2325 debug/elf.lo: $(go_debug_elf_files) bytes.gox debug/dwarf.gox \
2326                 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
2327         $(BUILDPACKAGE)
2328 debug/elf/check: $(CHECK_DEPS)
2329         @$(MKDIR_P) debug/elf
2330         @$(CHECK)
2331 .PHONY: debug/elf/check
2333 debug/gosym.lo: $(go_debug_gosym_files) encoding/binary.gox fmt.gox os.gox \
2334                 strconv.gox strings.gox
2335         $(BUILDPACKAGE)
2336 debug/gosym/check: $(CHECK_DEPS)
2337         @$(MKDIR_P) debug/gosym
2338         @$(CHECK)
2339 .PHONY: debug/gosym/check
2341 debug/macho.lo: $(go_debug_macho_files) bytes.gox debug/dwarf.gox \
2342                 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
2343         $(BUILDPACKAGE)
2344 debug/macho/check: $(CHECK_DEPS)
2345         @$(MKDIR_P) debug/macho
2346         @$(CHECK)
2347 .PHONY: debug/macho/check
2349 debug/pe.lo: $(go_debug_pe_files) debug/dwarf.gox \
2350                 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
2351         $(BUILDPACKAGE)
2352 debug/pe/check: $(CHECK_DEPS)
2353         @$(MKDIR_P) debug/pe
2354         @$(CHECK)
2355 .PHONY: debug/pe/check
2357 debug/proc.lo: $(go_debug_proc_files) container/vector.gox fmt.gox \
2358                 io/ioutil.gox os.gox runtime.gox strconv.gox strings.gox \
2359                 sync.gox syscall.gox
2360         $(BUILDPACKAGE)
2361 debug/proc/check: $(CHECK_DEPS)
2362         @$(MKDIR_P) debug/proc
2363         @$(CHECK)
2364 .PHONY: debug/proc/check
2366 encoding/ascii85.lo: $(go_encoding_ascii85_files) io.gox os.gox strconv.gox
2367         $(BUILDPACKAGE)
2368 encoding/ascii85/check: $(CHECK_DEPS)
2369         @$(MKDIR_P) encoding/ascii85
2370         @$(CHECK)
2371 .PHONY: encoding/ascii85/check
2373 encoding/base32.lo: $(go_encoding_base32_files) io.gox os.gox strconv.gox
2374         $(BUILDPACKAGE)
2375 encoding/base32/check: $(CHECK_DEPS)
2376         @$(MKDIR_P) encoding/base32
2377         @$(CHECK)
2378 .PHONY: encoding/base32/check
2380 encoding/base64.lo: $(go_encoding_base64_files) io.gox os.gox strconv.gox
2381         $(BUILDPACKAGE)
2382 encoding/base64/check: $(CHECK_DEPS)
2383         @$(MKDIR_P) encoding/base64
2384         @$(CHECK)
2385 .PHONY: encoding/base64/check
2387 encoding/binary.lo: $(go_encoding_binary_files) io.gox math.gox os.gox \
2388                 reflect.gox
2389         $(BUILDPACKAGE)
2390 encoding/binary/check: $(CHECK_DEPS)
2391         @$(MKDIR_P) encoding/binary
2392         @$(CHECK)
2393 .PHONY: encoding/binary/check
2395 encoding/git85.lo: $(go_encoding_git85_files) bytes.gox io.gox os.gox \
2396                 strconv.gox
2397         $(BUILDPACKAGE)
2398 encoding/git85/check: $(CHECK_DEPS)
2399         @$(MKDIR_P) encoding/git85
2400         @$(CHECK)
2401 .PHONY: encoding/git85/check
2403 encoding/hex.lo: $(go_encoding_hex_files) os.gox strconv.gox
2404         $(BUILDPACKAGE)
2405 encoding/hex/check: $(CHECK_DEPS)
2406         @$(MKDIR_P) encoding/hex
2407         @$(CHECK)
2408 .PHONY: encoding/hex/check
2410 encoding/line.lo: $(go_encoding_line_files) io.gox os.gox
2411         $(BUILDPACKAGE)
2412 encoding/line/check: $(CHECK_DEPS)
2413         @$(MKDIR_P) encoding/line
2414         @$(CHECK)
2415 .PHONY: encoding/line/check
2417 encoding/pem.lo: $(go_encoding_pem_files) bytes.gox encoding/base64.gox
2418         $(BUILDPACKAGE)
2419 encoding/pem/check: $(CHECK_DEPS)
2420         @$(MKDIR_P) encoding/pem
2421         @$(CHECK)
2422 .PHONY: encoding/pem/check
2424 exp/datafmt.lo: $(go_exp_datafmt_files) bytes.gox container/vector.gox \
2425                 fmt.gox go/scanner.gox go/token.gox io.gox os.gox reflect.gox \
2426                 runtime.gox strconv.gox strings.gox
2427         $(BUILDPACKAGE)
2428 exp/datafmt/check: $(CHECK_DEPS)
2429         @$(MKDIR_P) exp/datafmt
2430         @$(CHECK)
2431 .PHONY: exp/datafmt/check
2433 exp/draw.lo: $(go_exp_draw_files) image.gox image/ycbcr.gox os.gox
2434         $(BUILDPACKAGE)
2435 exp/draw/check: $(CHECK_DEPS)
2436         @$(MKDIR_P) exp/draw
2437         @$(CHECK)
2438 .PHONY: exp/draw/check
2440 exp/eval.lo: $(go_exp_eval_files) big.gox go/ast.gox go/parser.gox \
2441                 go/scanner.gox go/token.gox fmt.gox log.gox strconv.gox \
2442                 strings.gox os.gox reflect.gox runtime.gox sort.gox template.gox
2443         $(BUILDPACKAGE)
2444 exp/eval/check: $(CHECK_DEPS)
2445         @$(MKDIR_P) exp/eval
2446         @$(CHECK)
2447 .PHONY: exp/eval/check
2449 go/ast.lo: $(go_go_ast_files) bytes.gox fmt.gox go/scanner.gox go/token.gox \
2450                 io.gox os.gox reflect.gox unicode.gox utf8.gox
2451         $(BUILDPACKAGE)
2452 go/ast/check: $(CHECK_DEPS)
2453         @$(MKDIR_P) go/ast
2454         @$(CHECK)
2455 .PHONY: go/ast/check
2457 go/doc.lo: $(go_go_doc_files) go/ast.gox go/token.gox io.gox regexp.gox \
2458                 sort.gox strings.gox template.gox
2459         $(BUILDPACKAGE)
2460 go/doc/check: $(CHECK_DEPS)
2461         @$(MKDIR_P) go/doc
2462         @$(CHECK)
2463 .PHONY: go/doc/check
2465 go/parser.lo: $(go_go_parser_files) bytes.gox fmt.gox go/ast.gox \
2466                 go/scanner.gox go/token.gox io.gox io/ioutil.gox os.gox \
2467                 path/filepath.gox strings.gox
2468         $(BUILDPACKAGE)
2469 go/parser/check: $(CHECK_DEPS)
2470         @$(MKDIR_P) go/parser
2471         @$(CHECK)
2472 .PHONY: go/parser/check
2474 go/printer.lo: $(go_go_printer_files) bytes.gox fmt.gox go/ast.gox \
2475                 go/token.gox io.gox os.gox path/filepath.gox reflect.gox \
2476                 runtime.gox strings.gox tabwriter.gox
2477         $(BUILDPACKAGE)
2478 go/printer/check: $(CHECK_DEPS)
2479         @$(MKDIR_P) go/printer
2480         @$(CHECK)
2481 .PHONY: go/printer/check
2483 go/scanner.lo: $(go_go_scanner_files) bytes.gox container/vector.gox fmt.gox \
2484                 go/token.gox io.gox os.gox path/filepath.gox sort.gox \
2485                 strconv.gox unicode.gox utf8.gox
2486         $(BUILDPACKAGE)
2487 go/scanner/check: $(CHECK_DEPS)
2488         @$(MKDIR_P) go/scanner
2489         @$(CHECK)
2490 .PHONY: go/scanner/check
2492 go/token.lo: $(go_go_token_files) fmt.gox strconv.gox
2493         $(BUILDPACKAGE)
2494 go/token/check: $(CHECK_DEPS)
2495         @$(MKDIR_P) go/token
2496         @$(CHECK)
2497 .PHONY: go/token/check
2499 go/typechecker.lo: $(go_go_typechecker_files) fmt.gox go/ast.gox go/token.gox \
2500                 go/scanner.gox os.gox
2501         $(BUILDPACKAGE)
2502 go/typechecker/check: $(CHECK_DEPS)
2503         @$(MKDIR_P) go/typechecker
2504         @$(CHECK)
2505 .PHONY: go/typechecker/check
2507 go/types.lo: $(go_go_types_files) big.gox bufio.gox fmt.gox go/ast.gox \
2508                 go/token.gox io.gox os.gox path/filepath.gox runtime.gox \
2509                 scanner.gox strconv.gox strings.gox
2510         $(BUILDPACKAGE)
2511 go/types/check: $(CHECK_DEPS)
2512         @$(MKDIR_P) go/types
2513         @$(CHECK)
2514 .PHONY: go/types/check
2516 hash/adler32.lo: $(go_hash_adler32_files) hash.gox os.gox
2517         $(BUILDPACKAGE)
2518 hash/adler32/check: $(CHECK_DEPS)
2519         @$(MKDIR_P) hash/adler32
2520         @$(CHECK)
2521 .PHONY: hash/adler32/check
2523 hash/crc32.lo: $(go_hash_crc32_files) hash.gox os.gox
2524         $(BUILDPACKAGE)
2525 hash/crc32/check: $(CHECK_DEPS)
2526         @$(MKDIR_P) hash/crc32
2527         @$(CHECK)
2528 .PHONY: hash/crc32/check
2530 hash/crc64.lo: $(go_hash_crc64_files) hash.gox os.gox
2531         $(BUILDPACKAGE)
2532 hash/crc64/check: $(CHECK_DEPS)
2533         @$(MKDIR_P) hash/crc64
2534         @$(CHECK)
2535 .PHONY: hash/crc64/check
2537 hash/fnv.lo: $(go_hash_fnv_files) encoding/binary.gox hash.gox os.gox
2538         $(BUILDPACKAGE)
2539 hash/fnv/check: $(CHECK_DEPS)
2540         @$(MKDIR_P) hash/fnv
2541         @$(CHECK)
2542 .PHONY: hash/fnv/check
2544 http/cgi.lo: $(go_http_cgi_files) bufio.gox bytes.gox crypto/tls.gox \
2545                 exec.gox fmt.gox http.gox net.gox io.gox io/ioutil.gox \
2546                 log.gox os.gox path/filepath.gox regexp.gox strconv.gox \
2547                 strings.gox
2548         $(BUILDPACKAGE)
2549 http/cgi/check: $(CHECK_DEPS)
2550         @$(MKDIR_P) http/cgi
2551         @$(CHECK)
2552 .PHONY: http/cgi/check
2554 http/fcgi.lo: $(go_http_fcgi_files) bufio.gox bytes.gox encoding/binary.gox \
2555                 fmt.gox http.gox http/cgi.gox io.gox net.gox os.gox sync.gox \
2556                 time.gox
2557         $(BUILDPACKAGE)
2558 http/fcgi/check: $(CHECK_DEPS)
2559         @$(MKDIR_P) http/fcgi
2560         @$(CHECK)
2561 .PHONY: http/fcgi/check
2563 http/httptest.lo: $(go_http_httptest_files) bytes.gox crypto/rand.gox \
2564                 crypto/tls.gox fmt.gox http.gox net.gox os.gox time.gox
2565         $(BUILDPACKAGE)
2566 http/httptest/check: $(CHECK_DEPS)
2567         @$(MKDIR_P) http/httptest
2568         @$(CHECK)
2569 .PHONY: http/httptest/check
2571 http/pprof.lo: $(go_http_pprof_files) bufio.gox bytes.gox fmt.gox http.gox \
2572                 os.gox runtime.gox runtime/pprof.gox strconv.gox strings.gox
2573         $(BUILDPACKAGE)
2574 http/pprof/check: $(CHECK_DEPS)
2575         @$(MKDIR_P) http/pprof
2576         @$(CHECK)
2577 .PHONY: http/pprof/check
2579 http/spdy.lo: $(go_http_spdy_files) bytes.gox compress/zlib.gox \
2580                 encoding/binary.gox http.gox io.gox os.gox strconv.gox \
2581                 strings.gox sync.gox
2582         $(BUILDPACKAGE)
2583 http/spdy/check: $(CHECK_DEPS)
2584         @$(MKDIR_P) http/spdy
2585         @$(CHECK)
2586 .PHONY: http/spdy/check
2588 image/gif.lo: $(go_image_gif_files) bufio.gox compress/lzw.gox fmt.gox \
2589                 image.gox io.gox os.gox
2590         $(BUILDPACKAGE)
2591 image/gif/check: $(CHECK_DEPS)
2592         @$(MKDIR_P) image/gif
2593         @$(CHECK)
2594 .PHONY: image/gif/check
2596 image/jpeg.lo: $(go_image_jpeg_files) bufio.gox image.gox image/ycbcr.gox \
2597                 io.gox os.gox
2598         $(BUILDPACKAGE)
2599 image/jpeg/check: $(CHECK_DEPS)
2600         @$(MKDIR_P) image/jpeg
2601         @$(CHECK)
2602 .PHONY: image/jpeg/check
2604 image/png.lo: $(go_image_png_files) bufio.gox compress/zlib.gox fmt.gox \
2605                 hash.gox hash/crc32.gox image.gox io.gox os.gox strconv.gox
2606         $(BUILDPACKAGE)
2607 image/png/check: $(CHECK_DEPS)
2608         @$(MKDIR_P) image/png
2609         @$(CHECK)
2610 .PHONY: image/png/check
2612 image/tiff.lo: $(go_image_tiff_files) compress/lzw.gox compress/zlib.gox \
2613                 encoding/binary.gox image.gox io.gox io/ioutil.gox os.gox
2614         $(BUILDPACKAGE)
2615 image/tiff/check: $(CHECK_DEPS)
2616         @$(MKDIR_P) image/tiff
2617         @$(CHECK)
2618 .PHONY: image/tiff/check
2620 image/ycbcr.lo: $(go_image_ycbcr_files) image.gox
2621         $(BUILDPACKAGE)
2622 image/ycbcr/check: $(CHECK_DEPS)
2623         @$(MKDIR_P) image/ycbcr
2624         @$(CHECK)
2625 .PHONY: image/ycbcr/check
2627 index/suffixarray.lo: $(go_index_suffixarray_files) bytes.gox regexp.gox \
2628                 sort.gox
2629         $(BUILDPACKAGE)
2630 index/suffixarray/check: $(CHECK_DEPS)
2631         @$(MKDIR_P) index/suffixarray
2632         @$(CHECK)
2633 .PHONY: index/suffixarray/check
2635 io/ioutil.lo: $(go_io_ioutil_files) bytes.gox io.gox os.gox path/filepath.gox \
2636                 sort.gox strconv.gox
2637         $(BUILDPACKAGE)
2638 io/ioutil/check: $(CHECK_DEPS)
2639         @$(MKDIR_P) io/ioutil
2640         @$(CHECK)
2641 .PHONY: io/ioutil/check
2643 mime/multipart.lo: $(go_mime_multipart_files) bufio.gox bytes.gox fmt.gox \
2644                 io.gox io/ioutil.gox mime.gox net/textproto.gox os.gox \
2645                 regexp.gox
2646         $(BUILDPACKAGE)
2647 mime/multipart/check: $(CHECK_DEPS)
2648         @$(MKDIR_P) mime/multipart
2649         @$(CHECK)
2650 .PHONY: mime/multipart/check
2652 net/dict.lo: $(go_net_dict_files) container/vector.gox net/textproto.gox \
2653                 os.gox strconv.gox strings.gox
2654         $(BUILDPACKAGE)
2656 net/textproto.lo: $(go_net_textproto_files) bufio.gox bytes.gox \
2657                 container/vector.gox fmt.gox io.gox io/ioutil.gox net.gox \
2658                 os.gox strconv.gox sync.gox
2659         $(BUILDPACKAGE)
2660 net/textproto/check: $(CHECK_DEPS)
2661         @$(MKDIR_P) net/textproto
2662         @$(CHECK)
2663 .PHONY: net/textproto/check
2665 os/inotify.lo: $(go_os_inotify_files) fmt.gox os.gox strings.gox syscall.gox
2666         $(BUILDPACKAGE)
2667 os/inotify/check: $(CHECK_DEPS)
2668         @$(MKDIR_P) os/inotify
2669         @$(CHECK)
2670 .PHONY: os/inotify/check
2672 os/user.lo: $(go_os_user_files) fmt.gox os.gox runtime.gox strconv.gox \
2673                 strings.gox syscall.gox
2674         $(BUILDPACKAGE)
2675 os/user/check: $(CHECK_DEPS)
2676         @$(MKDIR_P) os/user
2677         @$(CHECK)
2678 .PHONY: os/user/check
2680 os/signal.lo: $(go_os_signal_files) runtime.gox strconv.gox
2681         $(BUILDPACKAGE)
2682 os/signal/check: $(CHECK_DEPS)
2683         @$(MKDIR_P) os/signal
2684         @$(CHECK)
2685 .PHONY: os/signal/check
2687 unix.go: $(srcdir)/go/os/signal/mkunix.sh sysinfo.go
2688         $(SHELL) $(srcdir)/go/os/signal/mkunix.sh sysinfo.go > $@.tmp
2689         mv -f $@.tmp $@
2691 path/filepath.lo: $(go_path_filepath_files) bytes.gox os.gox sort.gox \
2692                 strings.gox utf8.gox
2693         $(BUILDPACKAGE)
2694 path/filepath/check: $(CHECK_DEPS)
2695         @$(MKDIR_P) path/filepath
2696         @$(CHECK)
2697 .PHONY: path/filepath/check
2699 rpc/jsonrpc.lo: $(go_rpc_jsonrpc_files) fmt.gox io.gox json.gox net.gox \
2700                 os.gox rpc.gox sync.gox
2701         $(BUILDPACKAGE)
2702 rpc/jsonrpc/check: $(CHECK_DEPS)
2703         @$(MKDIR_P) rpc/jsonrpc
2704         @$(CHECK)
2705 .PHONY: rpc/jsonrpc/check
2707 runtime/debug.lo: $(go_runtime_debug_files) bytes.gox fmt.gox io/ioutil.gox \
2708                 os.gox runtime.gox
2709         $(BUILDPACKAGE)
2710 runtime/debug/check: $(CHECK_DEPS)
2711         @$(MKDIR_P) runtime/debug
2712         @$(CHECK)
2713 .PHONY: runtime/debug/check
2715 runtime/pprof.lo: $(go_runtime_pprof_files) bufio.gox fmt.gox io.gox os.gox \
2716                 runtime.gox sync.gox
2717         $(BUILDPACKAGE)
2718 runtime/pprof/check: $(CHECK_DEPS)
2719         @$(MKDIR_P) runtime/pprof
2720         @$(CHECK)
2721 .PHONY: runtime/pprof/check
2723 sync/atomic.lo: $(go_sync_atomic_files)
2724         $(BUILDPACKAGE)
2725 sync/atomic_c.lo: $(go_sync_atomic_c_files) sync/atomic.lo
2726         $(LTCOMPILE) -c -o $@ $(srcdir)/go/sync/atomic/atomic.c
2727 sync/atomic/check: $(CHECK_DEPS)
2728         @$(MKDIR_P) sync/atomic
2729         @$(CHECK)
2730 .PHONY: sync/atomic/check
2732 testing/iotest.lo: $(go_testing_iotest_files) io.gox log.gox os.gox
2733         $(BUILDPACKAGE)
2734 testing/iotest/check: $(CHECK_DEPS)
2735         @$(MKDIR_P) testing/iotest
2736         @$(CHECK)
2737 .PHONY: testing/iotest/check
2739 testing/quick.lo: $(go_testing_quick_files) flag.gox fmt.gox math.gox os.gox \
2740                 rand.gox reflect.gox strings.gox
2741         $(BUILDPACKAGE)
2742 testing/quick/check: $(CHECK_DEPS)
2743         @$(MKDIR_P) testing/quick
2744         @$(CHECK)
2745 .PHONY: testing/quick/check
2747 testing/script.lo: $(go_testing_script_files) fmt.gox os.gox rand.gox \
2748                 reflect.gox strings.gox
2749         $(BUILDPACKAGE)
2750 testing/script/check: $(CHECK_DEPS)
2751         @$(MKDIR_P) testing/script
2752         @$(CHECK)
2753 .PHONY: testing/script/check
2755 sysinfo.go: s-sysinfo; @true
2756 s-sysinfo: $(srcdir)/mksysinfo.sh config.h
2757         CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS)" $(SHELL) $(srcdir)/mksysinfo.sh
2758         $(SHELL) $(srcdir)/../move-if-change tmp-sysinfo.go sysinfo.go
2759         $(STAMP) $@
2761 syscalls/syscall.lo: $(go_syscall_files) sync.gox
2762         $(BUILDPACKAGE)
2763 syscalls/errno.lo: $(go_syscall_c_files) syscalls/syscall.lo
2764         $(LTCOMPILE) -c -o $@ $(srcdir)/syscalls/errno.c
2766 # How to build a .gox file from a .lo file.
2767 BUILDGOX = \
2768         f=`echo $< | sed -e 's/.lo$$/.o/'`; \
2769         $(OBJCOPY) -j .go_export $$f $@.tmp && mv -f $@.tmp $@
2771 asn1.gox: asn1/asn1.lo
2772         $(BUILDGOX)
2773 big.gox: big/big.lo
2774         $(BUILDGOX)
2775 bufio.gox: bufio/bufio.lo
2776         $(BUILDGOX)
2777 bytes.gox: bytes/bytes.lo
2778         $(BUILDGOX)
2779 cmath.gox: cmath/cmath.lo
2780         $(BUILDGOX)
2781 crypto.gox: crypto/crypto.lo
2782         $(BUILDGOX)
2783 ebnf.gox: ebnf/ebnf.lo
2784         $(BUILDGOX)
2785 exec.gox: exec/exec.lo
2786         $(BUILDGOX)
2787 expvar.gox: expvar/expvar.lo
2788         $(BUILDGOX)
2789 flag.gox: flag/flag.lo
2790         $(BUILDGOX)
2791 fmt.gox: fmt/fmt.lo
2792         $(BUILDGOX)
2793 gob.gox: gob/gob.lo
2794         $(BUILDGOX)
2795 hash.gox: hash/hash.lo
2796         $(BUILDGOX)
2797 html.gox: html/html.lo
2798         $(BUILDGOX)
2799 http.gox: http/http.lo
2800         $(BUILDGOX)
2801 image.gox: image/image.lo
2802         $(BUILDGOX)
2803 io.gox: io/io.lo
2804         $(BUILDGOX)
2805 json.gox: json/json.lo
2806         $(BUILDGOX)
2807 log.gox: log/log.lo
2808         $(BUILDGOX)
2809 math.gox: math/math.lo
2810         $(BUILDGOX)
2811 mime.gox: mime/mime.lo
2812         $(BUILDGOX)
2813 net.gox: net/net.lo
2814         $(BUILDGOX)
2815 netchan.gox: netchan/netchan.lo
2816         $(BUILDGOX)
2817 os.gox: os/os.lo
2818         $(BUILDGOX)
2819 patch.gox: patch/patch.lo
2820         $(BUILDGOX)
2821 path.gox: path/path.lo
2822         $(BUILDGOX)
2823 rand.gox: rand/rand.lo
2824         $(BUILDGOX)
2825 reflect.gox: reflect/reflect.lo
2826         $(BUILDGOX)
2827 regexp.gox: regexp/regexp.lo
2828         $(BUILDGOX)
2829 rpc.gox: rpc/rpc.lo
2830         $(BUILDGOX)
2831 runtime.gox: runtime/runtime.lo
2832         $(BUILDGOX)
2833 scanner.gox: scanner/scanner.lo
2834         $(BUILDGOX)
2835 smtp.gox: smtp/smtp.lo
2836         $(BUILDGOX)
2837 sort.gox: sort/sort.lo
2838         $(BUILDGOX)
2839 strconv.gox: strconv/strconv.lo
2840         $(BUILDGOX)
2841 strings.gox: strings/strings.lo
2842         $(BUILDGOX)
2843 sync.gox: sync/sync.lo
2844         $(BUILDGOX)
2845 syslog.gox: syslog/syslog.lo
2846         $(BUILDGOX)
2847 syscall.gox: syscalls/syscall.lo
2848         $(BUILDGOX)
2849 tabwriter.gox: tabwriter/tabwriter.lo
2850         $(BUILDGOX)
2851 template.gox: template/template.lo
2852         $(BUILDGOX)
2853 testing.gox: testing/testing.lo
2854         $(BUILDGOX)
2855 time.gox: time/time.lo
2856         $(BUILDGOX)
2857 try.gox: try/try.lo
2858         $(BUILDGOX)
2859 unicode.gox: unicode/unicode.lo
2860         $(BUILDGOX)
2861 utf16.gox: utf16/utf16.lo
2862         $(BUILDGOX)
2863 utf8.gox: utf8/utf8.lo
2864         $(BUILDGOX)
2865 websocket.gox: websocket/websocket.lo
2866         $(BUILDGOX)
2867 xml.gox: xml/xml.lo
2868         $(BUILDGOX)
2870 archive/tar.gox: archive/tar.lo
2871         $(BUILDGOX)
2872 archive/zip.gox: archive/zip.lo
2873         $(BUILDGOX)
2875 compress/bzip2.gox: compress/bzip2.lo
2876         $(BUILDGOX)
2877 compress/flate.gox: compress/flate.lo
2878         $(BUILDGOX)
2879 compress/gzip.gox: compress/gzip.lo
2880         $(BUILDGOX)
2881 compress/lzw.gox: compress/lzw.lo
2882         $(BUILDGOX)
2883 compress/zlib.gox: compress/zlib.lo
2884         $(BUILDGOX)
2886 container/heap.gox: container/heap.lo
2887         $(BUILDGOX)
2888 container/list.gox: container/list.lo
2889         $(BUILDGOX)
2890 container/ring.gox: container/ring.lo
2891         $(BUILDGOX)
2892 container/vector.gox: container/vector.lo
2893         $(BUILDGOX)
2895 crypto/aes.gox: crypto/aes.lo
2896         $(BUILDGOX)
2897 crypto/blowfish.gox: crypto/blowfish.lo
2898         $(BUILDGOX)
2899 crypto/cast5.gox: crypto/cast5.lo
2900         $(BUILDGOX)
2901 crypto/cipher.gox: crypto/cipher.lo
2902         $(BUILDGOX)
2903 crypto/des.gox: crypto/des.lo
2904         $(BUILDGOX)
2905 crypto/dsa.gox: crypto/dsa.lo
2906         $(BUILDGOX)
2907 crypto/ecdsa.gox: crypto/ecdsa.lo       
2908         $(BUILDGOX)
2909 crypto/elliptic.gox: crypto/elliptic.lo
2910         $(BUILDGOX)
2911 crypto/hmac.gox: crypto/hmac.lo
2912         $(BUILDGOX)
2913 crypto/md4.gox: crypto/md4.lo
2914         $(BUILDGOX)
2915 crypto/md5.gox: crypto/md5.lo
2916         $(BUILDGOX)
2917 crypto/ocsp.gox: crypto/ocsp.lo
2918         $(BUILDGOX)
2919 crypto/openpgp.gox: crypto/openpgp.lo
2920         $(BUILDGOX)
2921 crypto/rand.gox: crypto/rand.lo
2922         $(BUILDGOX)
2923 crypto/rc4.gox: crypto/rc4.lo
2924         $(BUILDGOX)
2925 crypto/ripemd160.gox: crypto/ripemd160.lo
2926         $(BUILDGOX)
2927 crypto/rsa.gox: crypto/rsa.lo
2928         $(BUILDGOX)
2929 crypto/sha1.gox: crypto/sha1.lo
2930         $(BUILDGOX)
2931 crypto/sha256.gox: crypto/sha256.lo
2932         $(BUILDGOX)
2933 crypto/sha512.gox: crypto/sha512.lo
2934         $(BUILDGOX)
2935 crypto/subtle.gox: crypto/subtle.lo
2936         $(BUILDGOX)
2937 crypto/tls.gox: crypto/tls.lo
2938         $(BUILDGOX)
2939 crypto/twofish.gox: crypto/twofish.lo
2940         $(BUILDGOX)
2941 crypto/x509.gox: crypto/x509.lo
2942         $(BUILDGOX)
2943 crypto/xtea.gox: crypto/xtea.lo
2944         $(BUILDGOX)
2946 crypto/openpgp/armor.gox: crypto/openpgp/armor.lo
2947         $(BUILDGOX)
2948 crypto/openpgp/error.gox: crypto/openpgp/error.lo
2949         $(BUILDGOX)
2950 crypto/openpgp/packet.gox: crypto/openpgp/packet.lo
2951         $(BUILDGOX)
2952 crypto/openpgp/s2k.gox: crypto/openpgp/s2k.lo
2953         $(BUILDGOX)
2955 debug/dwarf.gox: debug/dwarf.lo
2956         $(BUILDGOX)
2957 debug/elf.gox: debug/elf.lo
2958         $(BUILDGOX)
2959 debug/gosym.gox: debug/gosym.lo
2960         $(BUILDGOX)
2961 debug/macho.gox: debug/macho.lo
2962         $(BUILDGOX)
2963 debug/pe.gox: debug/pe.lo
2964         $(BUILDGOX)
2965 debug/proc.gox: debug/proc.lo
2966         $(BUILDGOX)
2968 encoding/ascii85.gox: encoding/ascii85.lo
2969         $(BUILDGOX)
2970 encoding/base32.gox: encoding/base32.lo
2971         $(BUILDGOX)
2972 encoding/base64.gox: encoding/base64.lo
2973         $(BUILDGOX)
2974 encoding/binary.gox: encoding/binary.lo
2975         $(BUILDGOX)
2976 encoding/git85.gox: encoding/git85.lo
2977         $(BUILDGOX)
2978 encoding/hex.gox: encoding/hex.lo
2979         $(BUILDGOX)
2980 encoding/line.gox: encoding/line.lo
2981         $(BUILDGOX)
2982 encoding/pem.gox: encoding/pem.lo
2983         $(BUILDGOX)
2985 exp/datafmt.gox: exp/datafmt.lo
2986         $(BUILDGOX)
2987 exp/draw.gox: exp/draw.lo
2988         $(BUILDGOX)
2989 exp/eval.gox: exp/eval.lo
2990         $(BUILDGOX)
2992 go/ast.gox: go/ast.lo
2993         $(BUILDGOX)
2994 go/doc.gox: go/doc.lo
2995         $(BUILDGOX)
2996 go/parser.gox: go/parser.lo
2997         $(BUILDGOX)
2998 go/printer.gox: go/printer.lo
2999         $(BUILDGOX)
3000 go/scanner.gox: go/scanner.lo
3001         $(BUILDGOX)
3002 go/token.gox: go/token.lo
3003         $(BUILDGOX)
3004 go/typechecker.gox: go/typechecker.lo
3005         $(BUILDGOX)
3006 go/types.gox: go/types.lo
3007         $(BUILDGOX)
3009 hash/adler32.gox: hash/adler32.lo
3010         $(BUILDGOX)
3011 hash/crc32.gox: hash/crc32.lo
3012         $(BUILDGOX)
3013 hash/crc64.gox: hash/crc64.lo
3014         $(BUILDGOX)
3015 hash/fnv.gox: hash/fnv.lo
3016         $(BUILDGOX)
3018 http/cgi.gox: http/cgi.lo
3019         $(BUILDGOX)
3020 http/fcgi.gox: http/fcgi.lo
3021         $(BUILDGOX)
3022 http/httptest.gox: http/httptest.lo
3023         $(BUILDGOX)
3024 http/pprof.gox: http/pprof.lo
3025         $(BUILDGOX)
3026 http/spdy.gox: http/spdy.lo
3027         $(BUILDGOX)
3029 image/gif.gox: image/gif.lo
3030         $(BUILDGOX)
3031 image/jpeg.gox: image/jpeg.lo
3032         $(BUILDGOX)
3033 image/png.gox: image/png.lo
3034         $(BUILDGOX)
3035 image/tiff.gox: image/tiff.lo
3036         $(BUILDGOX)
3037 image/ycbcr.gox: image/ycbcr.lo
3038         $(BUILDGOX)
3040 index/suffixarray.gox: index/suffixarray.lo
3041         $(BUILDGOX)
3043 io/ioutil.gox: io/ioutil.lo
3044         $(BUILDGOX)
3046 mime/multipart.gox: mime/multipart.lo
3047         $(BUILDGOX)
3049 net/dict.gox: net/dict.lo
3050         $(BUILDGOX)
3051 net/textproto.gox: net/textproto.lo
3052         $(BUILDGOX)
3054 os/inotify.gox: os/inotify.lo
3055         $(BUILDGOX)
3056 os/user.gox: os/user.lo
3057         $(BUILDGOX)
3058 os/signal.gox: os/signal.lo
3059         $(BUILDGOX)
3061 path/filepath.gox: path/filepath.lo
3062         $(BUILDGOX)
3064 rpc/jsonrpc.gox: rpc/jsonrpc.lo
3065         $(BUILDGOX)
3067 runtime/debug.gox: runtime/debug.lo
3068         $(BUILDGOX)
3069 runtime/pprof.gox: runtime/pprof.lo
3070         $(BUILDGOX)
3072 sync/atomic.gox: sync/atomic.lo
3073         $(BUILDGOX)
3075 testing/iotest.gox: testing/iotest.lo
3076         $(BUILDGOX)
3077 testing/quick.gox: testing/quick.lo
3078         $(BUILDGOX)
3079 testing/script.gox: testing/script.lo
3080         $(BUILDGOX)
3082 if LIBGO_IS_LINUX
3083 # os_inotify_check = os/inotify/check
3084 os_inotify_check =
3085 else
3086 os_inotify_check =
3087 endif
3089 TEST_PACKAGES = \
3090         asn1/check \
3091         big/check \
3092         bufio/check \
3093         bytes/check \
3094         cmath/check \
3095         ebnf/check \
3096         exec/check \
3097         expvar/check \
3098         flag/check \
3099         fmt/check \
3100         gob/check \
3101         html/check \
3102         http/check \
3103         io/check \
3104         json/check \
3105         log/check \
3106         math/check \
3107         mime/check \
3108         net/check \
3109         netchan/check \
3110         os/check \
3111         patch/check \
3112         path/check \
3113         rand/check \
3114         reflect/check \
3115         regexp/check \
3116         rpc/check \
3117         runtime/check \
3118         scanner/check \
3119         smtp/check \
3120         sort/check \
3121         strconv/check \
3122         strings/check \
3123         sync/check \
3124         syslog/check \
3125         tabwriter/check \
3126         template/check \
3127         time/check \
3128         try/check \
3129         unicode/check \
3130         utf16/check \
3131         utf8/check \
3132         websocket/check \
3133         xml/check \
3134         archive/tar/check \
3135         archive/zip/check \
3136         compress/bzip2/check \
3137         compress/flate/check \
3138         compress/gzip/check \
3139         compress/lzw/check \
3140         compress/zlib/check \
3141         container/heap/check \
3142         container/list/check \
3143         container/ring/check \
3144         container/vector/check \
3145         crypto/aes/check \
3146         crypto/blowfish/check \
3147         crypto/cast5/check \
3148         crypto/cipher/check \
3149         crypto/des/check \
3150         crypto/dsa/check \
3151         crypto/ecdsa/check \
3152         crypto/elliptic/check \
3153         crypto/hmac/check \
3154         crypto/md4/check \
3155         crypto/md5/check \
3156         crypto/ocsp/check \
3157         crypto/openpgp/check \
3158         crypto/rand/check \
3159         crypto/rc4/check \
3160         crypto/ripemd160/check \
3161         crypto/rsa/check \
3162         crypto/sha1/check \
3163         crypto/sha256/check \
3164         crypto/sha512/check \
3165         crypto/subtle/check \
3166         crypto/tls/check \
3167         crypto/twofish/check \
3168         crypto/x509/check \
3169         crypto/xtea/check \
3170         crypto/openpgp/armor/check \
3171         crypto/openpgp/packet/check \
3172         crypto/openpgp/s2k/check \
3173         debug/dwarf/check \
3174         debug/elf/check \
3175         debug/macho/check \
3176         debug/pe/check \
3177         encoding/ascii85/check \
3178         encoding/base32/check \
3179         encoding/base64/check \
3180         encoding/binary/check \
3181         encoding/git85/check \
3182         encoding/hex/check \
3183         encoding/line/check \
3184         encoding/pem/check \
3185         exp/datafmt/check \
3186         exp/draw/check \
3187         exp/eval/check \
3188         go/ast/check \
3189         go/parser/check \
3190         go/printer/check \
3191         go/scanner/check \
3192         go/token/check \
3193         go/typechecker/check \
3194         $(go_types_check_omitted_since_it_calls_6g) \
3195         hash/adler32/check \
3196         hash/crc32/check \
3197         hash/crc64/check \
3198         hash/fnv/check \
3199         http/cgi/check \
3200         http/fcgi/check \
3201         http/spdy/check \
3202         image/jpeg/check \
3203         image/png/check \
3204         image/tiff/check \
3205         image/ycbcr/check \
3206         index/suffixarray/check \
3207         io/ioutil/check \
3208         mime/multipart/check \
3209         net/textproto/check \
3210         $(os_inotify_check) \
3211         os/user/check \
3212         os/signal/check \
3213         path/filepath/check \
3214         rpc/jsonrpc/check \
3215         sync/atomic/check \
3216         testing/quick/check \
3217         testing/script/check
3219 check: check-tail
3220 check-recursive: check-head
3222 check-head:
3223         @echo "Test Run By $${USER} on `date`" > libgo.head
3224         @echo "Native configuration is $(host_triplet)" >> libgo.head
3225         @echo >> libgo.head
3226         @echo "         === libgo tests ===" >> libgo.head
3227         @echo >> libgo.head
3229 check-tail: check-recursive check-multi
3230         @lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
3231         for dir in . $(MULTIDIRS); do \
3232           mv ../$${dir}/$${lib}/libgo.sum ../$${dir}/$${lib}/libgo.sum.sep; \
3233           mv ../$${dir}/$${lib}/libgo.log ../$${dir}/$${lib}/libgo.log.sep; \
3234         done; \
3235         mv libgo.head libgo.sum; \
3236         cp libgo.sum libgo.log; \
3237         echo "Schedule of variations:" >> libgo.sum; \
3238         for dir in . $(MULTIDIRS); do \
3239           multidir=../$${dir}/$${lib}; \
3240           multivar=`cat $${multidir}/libgo.var`; \
3241           echo "    $${multivar}" >> libgo.sum; \
3242         done; \
3243         echo >> libgo.sum; \
3244         pass=0; fail=0; untested=0; \
3245         for dir in . $(MULTIDIRS); do \
3246           multidir=../$${dir}/$${lib}; \
3247           multivar=`cat $${multidir}/libgo.var`; \
3248           echo "Running target $${multivar}" >> libgo.sum; \
3249           echo "Running $(srcdir)/libgo.exp ..." >> libgo.sum; \
3250           cat $${multidir}/libgo.sum.sep >> libgo.sum; \
3251           cat $${multidir}/libgo.log.sep >> libgo.log; \
3252           if test -n "${MULTIDIRS}"; then \
3253             echo "              === libgo Summary for $${multivar} ===" >> libgo.sum; \
3254             echo >> libgo.sum; \
3255           fi; \
3256           p=`grep -c PASS $${multidir}/libgo.sum.sep`; \
3257           pass=`expr $$pass + $$p`; \
3258           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3259             echo "# of expected passes          $$p" >> libgo.sum; \
3260           fi; \
3261           p=`grep -c FAIL $${multidir}/libgo.sum.sep`; \
3262           fail=`expr $$fail + $$p`; \
3263           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3264             echo "# of unexpected failures      $$p" >> libgo.sum; \
3265           fi; \
3266           p=`grep -c UNTESTED $${multidir}/libgo.sum.sep`; \
3267           untested=`expr $$untested + $$p`; \
3268           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3269             echo "# of untested testcases               $$p" >> libgo.sum; \
3270           fi; \
3271         done; \
3272         echo >> libgo.sum; \
3273         echo "          === libgo Summary ===" >> libgo.sum; \
3274         echo >> libgo.sum; \
3275         if test "$$pass" -ne "0"; then \
3276           echo "# of expected passes            $$pass" >> libgo.sum; \
3277         fi; \
3278         if test "$$fail" -ne "0"; then \
3279           echo "# of unexpected failures        $$fail" >> libgo.sum; \
3280         fi; \
3281         if test "$$untested" -ne "0"; then \
3282           echo "# of untested testcases         $$untested" >> libgo.sum; \
3283         fi; \
3284         echo `echo $(GOC) | sed -e 's/ .*//'`  `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
3285         echo >> libgo.log; \
3286         echo "runtest completed at `date`" >> libgo.log; \
3287         if test "$$fail" -ne "0"; then \
3288           status=1; \
3289         else \
3290           status=0; \
3291         fi; \
3292         exit $$status
3294 check-am:
3295         @rm -f libgo.sum libgo.log libgo.tail
3296         @multivar="unix"; \
3297         [ -z "$(MULTIFLAGS)" ] || multivar="$${multivar}/$(MULTIFLAGS)"; \
3298         echo "$${multivar}" > libgo.var
3299         @for f in $(TEST_PACKAGES); do \
3300            rm -f $$f-testsum $$f-testlog; \
3301          done
3302         -@$(MAKE) -k $(TEST_PACKAGES)
3303         @for f in $(TEST_PACKAGES); do \
3304           if test -f $$f-testsum; then \
3305             cat $$f-testsum >> libgo.sum; \
3306           fi; \
3307           if test -f $$f-testlog; then \
3308             cat $$f-testlog >> libgo.log; \
3309           fi; \
3310         done
3312 check-multi:
3313         $(MULTIDO) $(AM_MAKEFLAGS) DO=check-am multi-do # $(MAKE)
3315 MOSTLYCLEAN_FILES = libgo.head libgo.sum.sep libgo.log.sep
3317 mostlyclean-local:
3318         find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
3319         find . -name '*.$(OBJEXT)' -print | xargs rm -f
3320         find . -name '*-testsum' -print | xargs rm -f
3321         find . -name '*-testlog' -print | xargs rm -f
3323 CLEANFILES = *.go *.gox goc2c *.c s-version libgo.sum libgo.log
3325 clean-local:
3326         find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
3327         find . -name '*.a' -print | xargs rm -f