Revert accidental checkin.
[official-gcc.git] / libgo / Makefile.am
blobc98a17637d30abd2b75c414524016d02f42dd9e3
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 if LIBGO_IS_IRIX
673 go_net_cgo_file = go/net/cgo_linux.go
674 go_net_sock_file = go/net/sock_linux.go
675 else
676 if LIBGO_IS_SOLARIS
677 go_net_cgo_file = go/net/cgo_linux.go
678 go_net_sock_file = go/net/sock_linux.go
679 else
680 go_net_cgo_file = go/net/cgo_bsd.go
681 go_net_sock_file = go/net/sock_bsd.go
682 endif
683 endif
684 endif
686 go_net_files = \
687         go/net/cgo_unix.go \
688         $(go_net_cgo_file) \
689         go/net/dial.go \
690         go/net/dnsclient.go \
691         go/net/dnsconfig.go \
692         go/net/dnsmsg.go \
693         $(go_net_newpollserver_file) \
694         go/net/fd.go \
695         $(go_net_fd_os_file) \
696         go/net/file.go \
697         go/net/hosts.go \
698         go/net/ip.go \
699         go/net/iprawsock.go \
700         go/net/ipsock.go \
701         go/net/lookup.go \
702         go/net/net.go \
703         go/net/parse.go \
704         go/net/pipe.go \
705         go/net/port.go \
706         go/net/sock.go \
707         $(go_net_sock_file) \
708         go/net/tcpsock.go \
709         go/net/udpsock.go \
710         go/net/unixsock.go
712 go_netchan_files = \
713         go/netchan/common.go \
714         go/netchan/export.go \
715         go/netchan/import.go
717 if LIBGO_IS_SOLARIS
718 if LIBGO_IS_386
719 go_os_dir_file = go/os/dir_largefile.go
720 else
721 if LIBGO_IS_SPARC
722 go_os_dir_file = go/os/dir_largefile.go
723 else
724 go_os_dir_file = go/os/dir_regfile.go
725 endif
726 endif
727 else
728 if LIBGO_IS_LINUX
729 go_os_dir_file = go/os/dir_largefile.go
730 else
731 go_os_dir_file = go/os/dir_regfile.go
732 endif
733 endif
735 if LIBGO_IS_LINUX
736 go_os_sys_file = go/os/sys_linux.go
737 else
738 if LIBGO_IS_SOLARIS
739 go_os_sys_file = go/os/sys_uname.go
740 else
741 if LIBGO_IS_IRIX
742 go_os_sys_file = go/os/sys_uname.go
743 else
744 if LIBGO_IS_RTEMS
745 go_os_sys_file = go/os/sys_uname.go
746 else
747 go_os_sys_file = go/os/sys_bsd.go
748 endif
749 endif
750 endif
751 endif
753 go_os_files = \
754         $(go_os_dir_file) \
755         go/os/dir.go \
756         go/os/env.go \
757         go/os/env_unix.go \
758         go/os/error.go \
759         go/os/error_posix.go \
760         go/os/exec.go \
761         go/os/exec_posix.go \
762         go/os/exec_unix.go \
763         go/os/file.go \
764         go/os/file_posix.go \
765         go/os/file_unix.go \
766         go/os/getwd.go \
767         go/os/path.go \
768         go/os/proc.go \
769         go/os/stat.go \
770         $(go_os_sys_file) \
771         go/os/time.go \
772         go/os/types.go
774 go_patch_files = \
775         go/patch/apply.go \
776         go/patch/git.go \
777         go/patch/patch.go \
778         go/patch/textdiff.go
780 go_path_files = \
781         go/path/match.go \
782         go/path/path.go
784 go_rand_files = \
785         go/rand/exp.go \
786         go/rand/normal.go \
787         go/rand/rand.go \
788         go/rand/rng.go \
789         go/rand/zipf.go
791 go_reflect_files = \
792         go/reflect/deepequal.go \
793         go/reflect/type.go \
794         go/reflect/value.go
796 go_regexp_files = \
797         go/regexp/regexp.go
799 go_rpc_files = \
800         go/rpc/client.go \
801         go/rpc/debug.go \
802         go/rpc/server.go
804 go_runtime_files = \
805         go/runtime/debug.go \
806         go/runtime/error.go \
807         go/runtime/extern.go \
808         go/runtime/mem.go \
809         go/runtime/sig.go \
810         go/runtime/softfloat64.go \
811         go/runtime/type.go \
812         version.go
814 version.go: s-version; @true
815 s-version: Makefile
816         rm -f version.go.tmp
817         echo "package runtime" > version.go.tmp
818         echo 'const defaultGoroot = "$(prefix)"' >> version.go.tmp
819         echo 'const theVersion = "'`$(CC) --version | sed 1q`'"' >> version.go.tmp
820         echo 'const theGoarch = "'$(GOARCH)'"' >> version.go.tmp
821         echo 'const theGoos = "'$(GOOS)'"' >> version.go.tmp
822         $(SHELL) $(srcdir)/../move-if-change version.go.tmp version.go
823         $(STAMP) $@
825 go_scanner_files = \
826         go/scanner/scanner.go
828 go_smtp_files = \
829         go/smtp/auth.go \
830         go/smtp/smtp.go
832 go_sort_files = \
833         go/sort/search.go \
834         go/sort/sort.go
836 go_strconv_files = \
837         go/strconv/atob.go \
838         go/strconv/atof.go \
839         go/strconv/atoi.go \
840         go/strconv/decimal.go \
841         go/strconv/ftoa.go \
842         go/strconv/itoa.go \
843         go/strconv/quote.go
845 go_strings_files = \
846         go/strings/reader.go \
847         go/strings/strings.go
849 go_sync_files = \
850         go/sync/cond.go \
851         go/sync/mutex.go \
852         go/sync/once.go \
853         go/sync/rwmutex.go \
854         go/sync/waitgroup.go
856 if LIBGO_IS_SOLARIS
857 go_syslog_file = go/syslog/syslog_libc.go
858 else
859 if LIBGO_IS_IRIX
860 go_syslog_file = go/syslog/syslog_libc.go
861 else
862 go_syslog_file = go/syslog/syslog_unix.go
863 endif
864 endif
866 go_syslog_files = \
867         go/syslog/syslog.go \
868         $(go_syslog_file)
869 go_syslog_c_files = \
870         go/syslog/syslog_c.c
872 go_tabwriter_files = \
873         go/tabwriter/tabwriter.go
875 go_template_files = \
876         go/template/format.go \
877         go/template/template.go
879 go_testing_files = \
880         go/testing/benchmark.go \
881         go/testing/testing.go
883 go_time_files = \
884         go/time/format.go \
885         go/time/sleep.go \
886         go/time/sys.go \
887         go/time/tick.go \
888         go/time/time.go \
889         go/time/zoneinfo_unix.go
891 go_try_files = \
892         go/try/try.go
894 go_unicode_files = \
895         go/unicode/casetables.go \
896         go/unicode/digit.go \
897         go/unicode/letter.go \
898         go/unicode/tables.go
900 go_utf16_files = \
901         go/utf16/utf16.go
903 go_utf8_files = \
904         go/utf8/string.go \
905         go/utf8/utf8.go
907 go_websocket_files = \
908         go/websocket/client.go \
909         go/websocket/server.go \
910         go/websocket/websocket.go
912 go_xml_files = \
913         go/xml/read.go \
914         go/xml/xml.go
916 go_archive_tar_files = \
917         go/archive/tar/common.go \
918         go/archive/tar/reader.go \
919         go/archive/tar/writer.go
921 go_archive_zip_files = \
922         go/archive/zip/reader.go \
923         go/archive/zip/struct.go
925 go_compress_bzip2_files = \
926         go/compress/bzip2/bit_reader.go \
927         go/compress/bzip2/bzip2.go \
928         go/compress/bzip2/huffman.go \
929         go/compress/bzip2/move_to_front.go
931 go_compress_flate_files = \
932         go/compress/flate/deflate.go \
933         go/compress/flate/huffman_bit_writer.go \
934         go/compress/flate/huffman_code.go \
935         go/compress/flate/inflate.go \
936         go/compress/flate/reverse_bits.go \
937         go/compress/flate/token.go \
938         go/compress/flate/util.go
940 go_compress_gzip_files = \
941         go/compress/gzip/gzip.go \
942         go/compress/gzip/gunzip.go
944 go_compress_lzw_files = \
945         go/compress/lzw/reader.go \
946         go/compress/lzw/writer.go
948 go_compress_zlib_files = \
949         go/compress/zlib/reader.go \
950         go/compress/zlib/writer.go
952 go_container_heap_files = \
953         go/container/heap/heap.go
955 go_container_list_files = \
956         go/container/list/list.go
958 go_container_ring_files = \
959         go/container/ring/ring.go
961 go_container_vector_files = \
962         go/container/vector/defs.go \
963         go/container/vector/intvector.go \
964         go/container/vector/stringvector.go \
965         go/container/vector/vector.go
967 go_crypto_aes_files = \
968         go/crypto/aes/block.go \
969         go/crypto/aes/cipher.go \
970         go/crypto/aes/const.go
971 go_crypto_blowfish_files = \
972         go/crypto/blowfish/block.go \
973         go/crypto/blowfish/const.go \
974         go/crypto/blowfish/cipher.go
975 go_crypto_cast5_files = \
976         go/crypto/cast5/cast5.go
977 go_crypto_cipher_files = \
978         go/crypto/cipher/cbc.go \
979         go/crypto/cipher/cfb.go \
980         go/crypto/cipher/cipher.go \
981         go/crypto/cipher/ctr.go \
982         go/crypto/cipher/io.go \
983         go/crypto/cipher/ocfb.go \
984         go/crypto/cipher/ofb.go
985 go_crypto_des_files = \
986         go/crypto/des/block.go \
987         go/crypto/des/cipher.go \
988         go/crypto/des/const.go
989 go_crypto_dsa_files = \
990         go/crypto/dsa/dsa.go
991 go_crypto_ecdsa_files = \
992         go/crypto/ecdsa/ecdsa.go
993 go_crypto_elliptic_files = \
994         go/crypto/elliptic/elliptic.go
995 go_crypto_hmac_files = \
996         go/crypto/hmac/hmac.go
997 go_crypto_md4_files = \
998         go/crypto/md4/md4.go \
999         go/crypto/md4/md4block.go
1000 go_crypto_md5_files = \
1001         go/crypto/md5/md5.go \
1002         go/crypto/md5/md5block.go
1003 go_crypto_ocsp_files = \
1004         go/crypto/ocsp/ocsp.go
1005 go_crypto_openpgp_files = \
1006         go/crypto/openpgp/canonical_text.go \
1007         go/crypto/openpgp/keys.go \
1008         go/crypto/openpgp/read.go \
1009         go/crypto/openpgp/write.go
1010 go_crypto_rand_files = \
1011         go/crypto/rand/rand.go \
1012         go/crypto/rand/rand_unix.go
1013 go_crypto_rc4_files = \
1014         go/crypto/rc4/rc4.go
1015 go_crypto_ripemd160_files = \
1016         go/crypto/ripemd160/ripemd160.go \
1017         go/crypto/ripemd160/ripemd160block.go
1018 go_crypto_rsa_files = \
1019         go/crypto/rsa/pkcs1v15.go \
1020         go/crypto/rsa/rsa.go
1021 go_crypto_sha1_files = \
1022         go/crypto/sha1/sha1.go \
1023         go/crypto/sha1/sha1block.go
1024 go_crypto_sha256_files = \
1025         go/crypto/sha256/sha256.go \
1026         go/crypto/sha256/sha256block.go
1027 go_crypto_sha512_files = \
1028         go/crypto/sha512/sha512.go \
1029         go/crypto/sha512/sha512block.go
1030 go_crypto_subtle_files = \
1031         go/crypto/subtle/constant_time.go
1032 go_crypto_tls_files = \
1033         go/crypto/tls/alert.go \
1034         go/crypto/tls/cipher_suites.go \
1035         go/crypto/tls/common.go \
1036         go/crypto/tls/conn.go \
1037         go/crypto/tls/handshake_client.go \
1038         go/crypto/tls/handshake_messages.go \
1039         go/crypto/tls/handshake_server.go \
1040         go/crypto/tls/key_agreement.go \
1041         go/crypto/tls/prf.go \
1042         go/crypto/tls/tls.go
1043 go_crypto_twofish_files = \
1044         go/crypto/twofish/twofish.go
1045 go_crypto_x509_files = \
1046         go/crypto/x509/cert_pool.go \
1047         go/crypto/x509/verify.go \
1048         go/crypto/x509/x509.go
1049 go_crypto_xtea_files = \
1050         go/crypto/xtea/block.go \
1051         go/crypto/xtea/cipher.go
1053 go_crypto_openpgp_armor_files = \
1054         go/crypto/openpgp/armor/armor.go \
1055         go/crypto/openpgp/armor/encode.go
1056 go_crypto_openpgp_error_files = \
1057         go/crypto/openpgp/error/error.go
1058 go_crypto_openpgp_packet_files = \
1059         go/crypto/openpgp/packet/compressed.go \
1060         go/crypto/openpgp/packet/encrypted_key.go \
1061         go/crypto/openpgp/packet/literal.go \
1062         go/crypto/openpgp/packet/one_pass_signature.go \
1063         go/crypto/openpgp/packet/packet.go \
1064         go/crypto/openpgp/packet/private_key.go \
1065         go/crypto/openpgp/packet/public_key.go \
1066         go/crypto/openpgp/packet/reader.go \
1067         go/crypto/openpgp/packet/signature.go \
1068         go/crypto/openpgp/packet/symmetric_key_encrypted.go \
1069         go/crypto/openpgp/packet/symmetrically_encrypted.go \
1070         go/crypto/openpgp/packet/userid.go
1071 go_crypto_openpgp_s2k_files = \
1072         go/crypto/openpgp/s2k/s2k.go
1074 go_debug_dwarf_files = \
1075         go/debug/dwarf/buf.go \
1076         go/debug/dwarf/const.go \
1077         go/debug/dwarf/entry.go \
1078         go/debug/dwarf/open.go \
1079         go/debug/dwarf/type.go \
1080         go/debug/dwarf/unit.go
1081 go_debug_elf_files = \
1082         go/debug/elf/elf.go \
1083         go/debug/elf/file.go
1084 go_debug_gosym_files = \
1085         go/debug/gosym/pclntab.go \
1086         go/debug/gosym/symtab.go
1087 go_debug_macho_files = \
1088         go/debug/macho/file.go \
1089         go/debug/macho/macho.go
1090 go_debug_pe_files = \
1091         go/debug/pe/file.go \
1092         go/debug/pe/pe.go
1094 go_debug_proc_files = \
1095         go/debug/proc/proc.go \
1096         go/debug/proc/proc_$(GOOS).go \
1097         $(GO_DEBUG_PROC_REGS_OS_ARCH_FILE)
1099 go_encoding_ascii85_files = \
1100         go/encoding/ascii85/ascii85.go
1101 go_encoding_base32_files = \
1102         go/encoding/base32/base32.go
1103 go_encoding_base64_files = \
1104         go/encoding/base64/base64.go
1105 go_encoding_binary_files = \
1106         go/encoding/binary/binary.go
1107 go_encoding_git85_files = \
1108         go/encoding/git85/git.go
1109 go_encoding_hex_files = \
1110         go/encoding/hex/hex.go
1111 go_encoding_line_files = \
1112         go/encoding/line/line.go
1113 go_encoding_pem_files = \
1114         go/encoding/pem/pem.go
1116 go_exp_datafmt_files = \
1117         go/exp/datafmt/datafmt.go \
1118         go/exp/datafmt/parser.go
1119 go_exp_draw_files = \
1120         go/exp/draw/draw.go \
1121         go/exp/draw/event.go
1122 go_exp_eval_files = \
1123         go/exp/eval/abort.go \
1124         go/exp/eval/bridge.go \
1125         go/exp/eval/compiler.go \
1126         go/exp/eval/expr.go \
1127         go/exp/eval/expr1.go \
1128         go/exp/eval/func.go \
1129         go/exp/eval/scope.go \
1130         go/exp/eval/stmt.go \
1131         go/exp/eval/type.go \
1132         go/exp/eval/typec.go \
1133         go/exp/eval/value.go \
1134         go/exp/eval/world.go
1136 go_go_ast_files = \
1137         go/go/ast/ast.go \
1138         go/go/ast/filter.go \
1139         go/go/ast/print.go \
1140         go/go/ast/resolve.go \
1141         go/go/ast/scope.go \
1142         go/go/ast/walk.go
1143 go_go_doc_files = \
1144         go/go/doc/comment.go \
1145         go/go/doc/doc.go
1146 go_go_parser_files = \
1147         go/go/parser/interface.go \
1148         go/go/parser/parser.go
1149 go_go_printer_files = \
1150         go/go/printer/nodes.go \
1151         go/go/printer/printer.go
1152 go_go_scanner_files = \
1153         go/go/scanner/errors.go \
1154         go/go/scanner/scanner.go
1155 go_go_token_files = \
1156         go/go/token/position.go \
1157         go/go/token/token.go
1158 go_go_typechecker_files = \
1159         go/go/typechecker/scope.go \
1160         go/go/typechecker/type.go \
1161         go/go/typechecker/typechecker.go \
1162         go/go/typechecker/universe.go
1163 go_go_types_files = \
1164         go/go/types/const.go \
1165         go/go/types/exportdata.go \
1166         go/go/types/gcimporter.go \
1167         go/go/types/types.go \
1168         go/go/types/universe.go
1170 go_hash_adler32_files = \
1171         go/hash/adler32/adler32.go
1172 go_hash_crc32_files = \
1173         go/hash/crc32/crc32.go
1174 go_hash_crc64_files = \
1175         go/hash/crc64/crc64.go
1176 go_hash_fnv_files = \
1177         go/hash/fnv/fnv.go
1179 go_http_cgi_files = \
1180         go/http/cgi/child.go \
1181         go/http/cgi/host.go
1182 go_http_fcgi_files = \
1183         go/http/fcgi/child.go \
1184         go/http/fcgi/fcgi.go
1185 go_http_httptest_files = \
1186         go/http/httptest/recorder.go \
1187         go/http/httptest/server.go
1188 go_http_pprof_files = \
1189         go/http/pprof/pprof.go
1190 go_http_spdy_files = \
1191         go/http/spdy/protocol.go
1193 go_image_gif_files = \
1194         go/image/gif/reader.go
1196 go_image_jpeg_files = \
1197         go/image/jpeg/fdct.go \
1198         go/image/jpeg/huffman.go \
1199         go/image/jpeg/idct.go \
1200         go/image/jpeg/reader.go \
1201         go/image/jpeg/writer.go
1203 go_image_png_files = \
1204         go/image/png/reader.go \
1205         go/image/png/writer.go
1207 go_image_tiff_files = \
1208         go/image/tiff/buffer.go \
1209         go/image/tiff/consts.go \
1210         go/image/tiff/reader.go
1212 go_image_ycbcr_files = \
1213         go/image/ycbcr/ycbcr.go
1215 go_index_suffixarray_files = \
1216         go/index/suffixarray/qsufsort.go \
1217         go/index/suffixarray/suffixarray.go
1219 go_io_ioutil_files = \
1220         go/io/ioutil/ioutil.go \
1221         go/io/ioutil/tempfile.go
1223 go_mime_multipart_files = \
1224         go/mime/multipart/formdata.go \
1225         go/mime/multipart/multipart.go
1227 go_net_dict_files = \
1228         go/net/dict/dict.go
1230 go_net_textproto_files = \
1231         go/net/textproto/header.go \
1232         go/net/textproto/pipeline.go \
1233         go/net/textproto/reader.go \
1234         go/net/textproto/textproto.go \
1235         go/net/textproto/writer.go
1237 go_os_inotify_files = \
1238         go/os/inotify/inotify_linux.go
1240 go_os_user_files = \
1241         go/os/user/user.go \
1242         go/os/user/lookup_unix.go
1244 go_os_signal_files = \
1245         go/os/signal/signal.go \
1246         unix.go
1248 go_path_filepath_files = \
1249         go/path/filepath/match.go \
1250         go/path/filepath/path.go \
1251         go/path/filepath/path_unix.go
1253 go_rpc_jsonrpc_files = \
1254         go/rpc/jsonrpc/client.go \
1255         go/rpc/jsonrpc/server.go
1257 go_runtime_debug_files = \
1258         go/runtime/debug/stack.go
1259 go_runtime_pprof_files = \
1260         go/runtime/pprof/pprof.go
1262 go_sync_atomic_files = \
1263         go/sync/atomic/doc.go
1264 go_sync_atomic_c_files = \
1265         go/sync/atomic/atomic.c
1267 go_testing_iotest_files = \
1268         go/testing/iotest/logger.go \
1269         go/testing/iotest/reader.go \
1270         go/testing/iotest/writer.go
1271 go_testing_quick_files = \
1272         go/testing/quick/quick.go
1273 go_testing_script_files = \
1274         go/testing/script/script.go
1276 # Define Syscall and Syscall6.
1277 if LIBGO_IS_RTEMS
1278 syscall_syscall_file = syscalls/syscall_stubs.go
1279 else
1280 syscall_syscall_file = syscalls/syscall.go
1281 endif
1283 # Declare libc functions that vary for largefile systems.
1284 if LIBGO_IS_LINUX
1285 # Always use lseek64 on GNU/Linux.
1286 syscall_filesize_file = syscalls/sysfile_largefile.go
1287 syscall_stat_file = syscalls/sysfile_stat_largefile.go
1288 else # !LIBGO_IS_LINUX
1289 if LIBGO_IS_SOLARIS
1290 if LIBGO_IS_386
1291 # Use lseek64 on 32-bit Solaris/x86.
1292 syscall_filesize_file = syscalls/sysfile_largefile.go
1293 syscall_stat_file = syscalls/sysfile_stat_largefile.go
1294 else # !LIBGO_IS_386
1295 if LIBGO_IS_SPARC
1296 # Use lseek64 on 32-bit Solaris/SPARC.
1297 syscall_filesize_file = syscalls/sysfile_largefile.go
1298 syscall_stat_file = syscalls/sysfile_stat_largefile.go
1299 else # !LIBGO_IS_386 && !LIBGO_IS_SPARC
1300 # Use lseek on 64-bit Solaris.
1301 syscall_filesize_file = syscalls/sysfile_regfile.go
1302 syscall_stat_file = syscalls/sysfile_stat_regfile.go
1303 endif # !LIBGO_IS_386 && !LIBGO_IS_SPARC
1304 endif # !LIBGO_IS_SOLARIS
1305 else # !LIBGO_IS_LINUX && !LIBGO_IS_SOLARIS
1306 # Use lseek by default.
1307 syscall_filesize_file = syscalls/sysfile_regfile.go
1308 syscall_stat_file = syscalls/sysfile_stat_regfile.go
1309 endif # !LIBGO_IS_SOLARIS
1310 endif # !LIBGO_IS_LINUX
1313 # Define ForkExec, PtraceForkExec, and Exec.
1314 if LIBGO_IS_RTEMS
1315 syscall_exec_os_file = syscalls/exec_stubs.go
1316 else
1317 syscall_exec_os_file = syscalls/exec.go
1318 endif
1320 # Define Wait4.
1321 if HAVE_WAIT4
1322 syscall_wait_file = syscalls/wait4.go
1323 else
1324 syscall_wait_file = syscalls/waitpid.go
1325 endif
1327 # Define Sleep.
1328 if LIBGO_IS_RTEMS
1329 syscall_sleep_file = syscalls/sleep_rtems.go
1330 else
1331 syscall_sleep_file = syscalls/sleep_select.go
1332 endif
1334 # Define Errstr.
1335 if LIBGO_IS_RTEMS
1336 syscall_errstr_file = syscalls/errstr_rtems.go
1337 else
1338 if HAVE_STRERROR_R
1339 syscall_errstr_file = syscalls/errstr.go
1340 else
1341 syscall_errstr_file = syscalls/errstr_nor.go
1342 endif
1343 endif
1345 # Declare libc_strerror_r which is the Go name for strerror_r.
1346 if LIBGO_IS_RTEMS
1347 # RTEMS uses newlib in which strerror_r returns char *.
1348 syscall_errstr_decl_file = syscalls/errstr_decl_rtems.go
1349 else
1350 if LIBGO_IS_LINUX
1351 # On GNU/Linux the POSIX strerror_r is called __xpg_strerror_r.
1352 syscall_errstr_decl_file = syscalls/errstr_decl_linux.go
1353 else
1354 # On other systems we hope strerror_r is just strerror_r.
1355 syscall_errstr_decl_file = syscalls/errstr_decl.go
1356 endif
1357 endif
1359 # Define socket sizes and types.
1360 if LIBGO_IS_LINUX
1361 syscall_socket_os_file = syscalls/socket_linux.go
1362 else
1363 if LIBGO_IS_SOLARIS
1364 syscall_socket_os_file = syscalls/socket_solaris.go
1365 else
1366 if LIBGO_IS_IRIX
1367 syscall_socket_os_file = syscalls/socket_irix.go
1368 else
1369 syscall_socket_os_file = syscalls/socket_bsd.go
1370 endif
1371 endif
1372 endif
1374 # Support for epoll.
1375 if LIBGO_IS_LINUX
1376 syscall_socket_epoll_file = syscalls/socket_epoll.go
1377 else
1378 syscall_socket_epoll_file =
1379 endif
1381 # Support for uname.
1382 if LIBGO_IS_SOLARIS
1383 if LIBGO_IS_386
1384 # 32-bit Solaris 2/x86 needs _nuname, handled in syscall_solaris_386.go.
1385 syscall_uname_file =
1386 else # !LIBGO_IS_386 && LIBGO_IS_SOLARIS
1387 syscall_uname_file = syscalls/syscall_uname.go
1388 endif
1389 else # !LIBGO_IS_SOLARIS
1390 syscall_uname_file = syscalls/syscall_uname.go
1391 endif
1393 syscall_arch.go: s-syscall_arch; @true
1394 s-syscall_arch: Makefile
1395         rm -f syscall_arch.go.tmp
1396         echo "package syscall" > syscall_arch.go.tmp
1397         echo 'const ARCH = "'$(GOARCH)'"' >> syscall_arch.go.tmp
1398         echo 'const OS = "'$(GOOS)'"' >> syscall_arch.go.tmp
1399         $(SHELL) $(srcdir)/../move-if-change syscall_arch.go.tmp syscall_arch.go
1400         $(STAMP) $@
1402 go_syscall_files = \
1403         $(syscall_errstr_file) \
1404         $(syscall_errstr_decl_file) \
1405         syscalls/exec_helpers.go \
1406         $(syscall_exec_os_file) \
1407         $(syscall_wait_file) \
1408         $(syscall_filesize_file) \
1409         $(syscall_stat_file) \
1410         $(syscall_sleep_file) \
1411         syscalls/socket.go \
1412         $(syscall_socket_os_file) \
1413         $(syscall_socket_epoll_file) \
1414         $(syscall_syscall_file) \
1415         $(syscall_uname_file) \
1416         syscalls/syscall_unix.go \
1417         syscalls/stringbyte.go \
1418         syscalls/syscall_$(GOOS).go \
1419         $(GO_SYSCALLS_SYSCALL_OS_ARCH_FILE) \
1420         syscalls/sysfile_posix.go \
1421         sysinfo.go \
1422         syscall_arch.go
1423 go_syscall_c_files = \
1424         syscalls/errno.c
1426 if LIBGO_IS_LINUX
1427 # os_lib_inotify_lo = os/inotify.lo
1428 os_lib_inotify_lo =
1429 else
1430 os_lib_inotify_lo =
1431 endif
1433 libgo_go_objs = \
1434         asn1/asn1.lo \
1435         big/big.lo \
1436         bufio/bufio.lo \
1437         bytes/bytes.lo \
1438         bytes/index.lo \
1439         cmath/cmath.lo \
1440         crypto/crypto.lo \
1441         ebnf/ebnf.lo \
1442         exec/exec.lo \
1443         expvar/expvar.lo \
1444         flag/flag.lo \
1445         fmt/fmt.lo \
1446         gob/gob.lo \
1447         hash/hash.lo \
1448         html/html.lo \
1449         http/http.lo \
1450         image/image.lo \
1451         io/io.lo \
1452         json/json.lo \
1453         log/log.lo \
1454         math/math.lo \
1455         mime/mime.lo \
1456         net/net.lo \
1457         netchan/netchan.lo \
1458         os/os.lo \
1459         patch/patch.lo \
1460         path/path.lo \
1461         rand/rand.lo \
1462         reflect/reflect.lo \
1463         regexp/regexp.lo \
1464         rpc/rpc.lo \
1465         runtime/runtime.lo \
1466         scanner/scanner.lo \
1467         smtp/smtp.lo \
1468         sort/sort.lo \
1469         strconv/strconv.lo \
1470         strings/strings.lo \
1471         sync/sync.lo \
1472         syslog/syslog.lo \
1473         syslog/syslog_c.lo \
1474         tabwriter/tabwriter.lo \
1475         template/template.lo \
1476         time/time.lo \
1477         try/try.lo \
1478         unicode/unicode.lo \
1479         utf16/utf16.lo \
1480         utf8/utf8.lo \
1481         websocket/websocket.lo \
1482         xml/xml.lo \
1483         archive/tar.lo \
1484         archive/zip.lo \
1485         compress/bzip2.lo \
1486         compress/flate.lo \
1487         compress/gzip.lo \
1488         compress/lzw.lo \
1489         compress/zlib.lo \
1490         container/heap.lo \
1491         container/list.lo \
1492         container/ring.lo \
1493         container/vector.lo \
1494         crypto/aes.lo \
1495         crypto/blowfish.lo \
1496         crypto/cast5.lo \
1497         crypto/cipher.lo \
1498         crypto/des.lo \
1499         crypto/dsa.lo \
1500         crypto/ecdsa.lo \
1501         crypto/elliptic.lo \
1502         crypto/hmac.lo \
1503         crypto/md4.lo \
1504         crypto/md5.lo \
1505         crypto/ocsp.lo \
1506         crypto/openpgp.lo \
1507         crypto/rand.lo \
1508         crypto/rc4.lo \
1509         crypto/ripemd160.lo \
1510         crypto/rsa.lo \
1511         crypto/sha1.lo \
1512         crypto/sha256.lo \
1513         crypto/sha512.lo \
1514         crypto/subtle.lo \
1515         crypto/tls.lo \
1516         crypto/twofish.lo \
1517         crypto/x509.lo \
1518         crypto/xtea.lo \
1519         crypto/openpgp/armor.lo \
1520         crypto/openpgp/error.lo \
1521         crypto/openpgp/packet.lo \
1522         crypto/openpgp/s2k.lo \
1523         debug/dwarf.lo \
1524         debug/elf.lo \
1525         debug/gosym.lo \
1526         debug/macho.lo \
1527         debug/pe.lo \
1528         debug/proc.lo \
1529         encoding/ascii85.lo \
1530         encoding/base32.lo \
1531         encoding/base64.lo \
1532         encoding/binary.lo \
1533         encoding/git85.lo \
1534         encoding/hex.lo \
1535         encoding/line.lo \
1536         encoding/pem.lo \
1537         exp/datafmt.lo \
1538         exp/draw.lo \
1539         exp/eval.lo \
1540         go/ast.lo \
1541         go/doc.lo \
1542         go/parser.lo \
1543         go/printer.lo \
1544         go/scanner.lo \
1545         go/token.lo \
1546         go/typechecker.lo \
1547         go/types.lo \
1548         hash/adler32.lo \
1549         hash/crc32.lo \
1550         hash/crc64.lo \
1551         hash/fnv.lo \
1552         http/cgi.lo \
1553         http/fcgi.lo \
1554         http/httptest.lo \
1555         http/pprof.lo \
1556         http/spdy.lo \
1557         image/gif.lo \
1558         image/jpeg.lo \
1559         image/png.lo \
1560         image/tiff.lo \
1561         image/ycbcr.lo \
1562         index/suffixarray.lo \
1563         io/ioutil.lo \
1564         mime/multipart.lo \
1565         net/dict.lo \
1566         net/textproto.lo \
1567         $(os_lib_inotify_lo) \
1568         os/user.lo \
1569         os/signal.lo \
1570         path/filepath.lo \
1571         rpc/jsonrpc.lo \
1572         runtime/debug.lo \
1573         runtime/pprof.lo \
1574         sync/atomic.lo \
1575         sync/atomic_c.lo \
1576         syscalls/syscall.lo \
1577         syscalls/errno.lo \
1578         testing/testing.lo \
1579         testing/iotest.lo \
1580         testing/quick.lo \
1581         testing/script.lo
1583 libgo_la_SOURCES = $(runtime_files)
1585 libgo_la_LDFLAGS = $(PTHREAD_CFLAGS) $(AM_LDFLAGS)
1587 libgo_la_LIBADD = \
1588         $(libgo_go_objs) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)
1590 libgobegin_a_SOURCES = \
1591         runtime/go-main.c
1593 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
1595 GOCFLAGS = $(CFLAGS)
1596 AM_GOCFLAGS = $(STRINGOPS_FLAG)
1597 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
1599 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
1600         $(AM_GOCFLAGS) $(GOCFLAGS)
1602 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
1603         $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
1605 # Build the .go files for a package, generating a .lo file.
1606 BUILDPACKAGE = \
1607         $(MKDIR_P) $(@D); \
1608         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
1609         $(LTGOCOMPILE) -I . -c -fgo-prefix="libgo_$(@D)" -o $@ $$files
1611 if LIBGO_IS_RTEMS
1612 use_dejagnu = yes
1613 else
1614 use_dejagnu = no
1615 endif
1617 GOTESTFLAGS =
1619 # Check a package.
1620 CHECK = \
1621         GC="$(GOC) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
1622         export GC; \
1623         RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
1624         export RUNTESTFLAGS; \
1625         MAKE="$(MAKE)"; \
1626         export MAKE; \
1627         libgccdir=`${GOC} -print-libgcc-file-name | sed -e 's|/[^/]*$$||'`; \
1628         LD_LIBRARY_PATH="`${PWD_COMMAND}`/.libs:$${libgccdir}:${LD_LIBRARY_PATH}"; \
1629         LD_LIBRARY_PATH=`echo $${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
1630         export LD_LIBRARY_PATH; \
1631         rm -f $@-testsum $@-testlog; \
1632         prefix=`if test "$(@D)" = "regexp"; then echo regexp-test; else dirname $(@D); fi`; \
1633         test "$${prefix}" != "." || prefix="$(@D)"; \
1634         if test "$(use_dejagnu)" = "yes"; then \
1635           $(SHELL) $(srcdir)/testsuite/gotest --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --testname="$(@D)" $(GOTESTFLAGS); \
1636         else \
1637           if $(SHELL) $(srcdir)/testsuite/gotest --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" $(GOTESTFLAGS) >>$@-testlog 2>&1; then \
1638             echo "PASS: $(@D)" >> $@-testlog; \
1639             echo "PASS: $(@D)"; \
1640             echo "PASS: $(@D)" > $@-testsum; \
1641           else \
1642             echo "FAIL: $(@D)" >> $@-testlog; \
1643             cat $@-testlog; \
1644             echo "FAIL: $(@D)" > $@-testsum; \
1645             exit 1; \
1646           fi; \
1647         fi
1649 # Check a package that is only tested if GCCGO_RUN_ALL_TESTS is set.
1650 CHECK_ON_REQUEST = \
1651         if test "$$GCCGO_RUN_ALL_TESTS" != ""; then \
1652           $(CHECK); \
1653         else \
1654           rm -f $@-testsum $@-testlog; \
1655           echo "Set GCCGO_RUN_ALL_TESTS in environment to run $(@D) test" > $@-testlog; \
1656           echo "UNTESTED: $(@D)" >> $@-testlog; \
1657           echo "UNTESTED: $(@D)"; \
1658           echo "UNTESTED: $(@D)" > $@-testsum; \
1659         fi
1661 # Build all packages before checking any.
1662 CHECK_DEPS = libgo.la libgobegin.a \
1663         $(toolexeclibgo_DATA) \
1664         $(toolexeclibgoarchive_DATA) \
1665         $(toolexeclibgocompress_DATA) \
1666         $(toolexeclibgocontainer_DATA) \
1667         $(toolexeclibgocrypto_DATA) \
1668         $(toolexeclibgocryptoopenpgp_DATA) \
1669         $(toolexeclibgodebug_DATA) \
1670         $(toolexeclibgoencoding_DATA) \
1671         $(toolexeclibgoexp_DATA) \
1672         $(toolexeclibgogo_DATA) \
1673         $(toolexeclibgohash_DATA) \
1674         $(toolexeclibgohttp_DATA) \
1675         $(toolexeclibgoimage_DATA) \
1676         $(toolexeclibgoindex_DATA) \
1677         $(toolexeclibgoio_DATA) \
1678         $(toolexeclibgomime_DATA) \
1679         $(toolexeclibgonet_DATA) \
1680         $(toolexeclibgoos_DATA) \
1681         $(toolexeclibgopath_DATA) \
1682         $(toolexeclibgorpc_DATA) \
1683         $(toolexeclibgoruntime_DATA) \
1684         $(toolexeclibgosync_DATA) \
1685         $(toolexeclibgotesting_DATA)
1687 asn1/asn1.lo: $(go_asn1_files) bytes.gox fmt.gox io.gox os.gox reflect.gox \
1688                 strconv.gox strings.gox time.gox
1689         $(BUILDPACKAGE)
1690 asn1/check: $(CHECK_DEPS)
1691         @$(CHECK)
1692 .PHONY: asn1/check
1694 big/big.lo: $(go_big_files) fmt.gox rand.gox strings.gox os.gox
1695         $(BUILDPACKAGE)
1696 big/check: $(CHECK_DEPS)
1697         @$(CHECK)
1698 .PHONY: big/check
1700 bufio/bufio.lo: $(go_bufio_files) bytes.gox io.gox os.gox strconv.gox utf8.gox
1701         $(BUILDPACKAGE)
1702 bufio/check: $(CHECK_DEPS)
1703         @$(CHECK)
1704 .PHONY: bufio/check
1706 bytes/bytes.lo: $(go_bytes_files) io.gox os.gox unicode.gox utf8.gox
1707         $(BUILDPACKAGE)
1708 bytes/index.lo: $(go_bytes_c_files) bytes/bytes.lo
1709         $(LTCOMPILE) -c -o bytes/index.lo $(srcdir)/go/bytes/indexbyte.c
1710 bytes/check: $(CHECK_DEPS)
1711         @$(CHECK)
1712 .PHONY: bytes/check
1714 cmath/cmath.lo: $(go_cmath_files) math.gox
1715         $(BUILDPACKAGE)
1716 cmath/check: $(CHECK_DEPS)
1717         @$(CHECK)
1718 .PHONY: cmath/check
1720 crypto/crypto.lo: $(go_crypto_files) hash.gox
1721         $(BUILDPACKAGE)
1722 crypto/check: $(CHECK_DEPS)
1723         @$(CHECK)
1724 .PHONY: crypto/check
1726 ebnf/ebnf.lo: $(go_ebnf_files) container/vector.gox go/scanner.gox \
1727                 go/token.gox os.gox strconv.gox unicode.gox utf8.gox
1728         $(BUILDPACKAGE)
1729 ebnf/check: $(CHECK_DEPS)
1730         @$(CHECK)
1731 .PHONY: ebnf/check
1733 exec/exec.lo: $(go_exec_files) os.gox strconv.gox strings.gox
1734         $(BUILDPACKAGE)
1735 exec/check: $(CHECK_DEPS)
1736         @$(CHECK)
1737 .PHONY: exec/check
1739 expvar/expvar.lo: $(go_expvar_files) bytes.gox fmt.gox http.gox json.gox \
1740                 log.gox os.gox runtime.gox strconv.gox sync.gox
1741         $(BUILDPACKAGE)
1742 expvar/check: $(CHECK_DEPS)
1743         @$(CHECK)
1744 .PHONY: expvar/check
1746 flag/flag.lo: $(go_flag_files) fmt.gox os.gox strconv.gox
1747         $(BUILDPACKAGE)
1748 flag/check: $(CHECK_DEPS)
1749         @$(CHECK)
1750 .PHONY: flag/check
1752 fmt/fmt.lo: $(go_fmt_files) bytes.gox io.gox math.gox os.gox reflect.gox \
1753                 strconv.gox strings.gox unicode.gox utf8.gox
1754         $(BUILDPACKAGE)
1755 fmt/check: $(CHECK_DEPS)
1756         @$(CHECK)
1757 .PHONY: fmt/check
1759 gob/gob.lo: $(go_gob_files) bufio.gox bytes.gox fmt.gox io.gox math.gox \
1760                 os.gox reflect.gox runtime.gox strings.gox sync.gox \
1761                 unicode.gox utf8.gox
1762         $(BUILDPACKAGE)
1763 gob/check: $(CHECK_DEPS)
1764         @$(CHECK)
1765 .PHONY: gob/check
1767 hash/hash.lo: $(go_hash_files) io.gox
1768         $(BUILDPACKAGE)
1769 hash/check: $(CHECK_DEPS)
1770         @$(CHECK)
1771 .PHONY: hash/check
1773 html/html.lo: $(go_html_files) bytes.gox io.gox os.gox strconv.gox strings.gox \
1774                 utf8.gox
1775         $(BUILDPACKAGE)
1776 html/check: $(CHECK_DEPS)
1777         @$(CHECK)
1778 .PHONY: html/check
1780 http/http.lo: $(go_http_files) bufio.gox bytes.gox compress/gzip.gox \
1781                 container/vector.gox crypto/rand.gox crypto/tls.gox \
1782                 encoding/base64.gox fmt.gox io.gox io/ioutil.gox log.gox \
1783                 mime.gox mime/multipart.gox net.gox net/textproto.gox os.gox \
1784                 path.gox path/filepath.gox sort.gox strconv.gox strings.gox \
1785                 sync.gox time.gox utf8.gox
1786         $(BUILDPACKAGE)
1787 http/check: $(CHECK_DEPS)
1788         @$(CHECK)
1789 .PHONY: http/check
1791 image/image.lo: $(go_image_files) bufio.gox io.gox os.gox strconv.gox
1792         $(BUILDPACKAGE)
1793 image/check: $(CHECK_DEPS)
1794         @$(CHECK)
1795 .PHONY: image/check
1797 io/io.lo: $(go_io_files) os.gox sync.gox
1798         $(BUILDPACKAGE)
1799 io/check: $(CHECK_DEPS)
1800         @$(CHECK)
1801 .PHONY: io/check
1803 json/json.lo: $(go_json_files) bytes.gox container/vector.gox \
1804                 encoding/base64.gox fmt.gox io.gox math.gox os.gox \
1805                 reflect.gox runtime.gox strconv.gox strings.gox unicode.gox \
1806                 utf16.gox utf8.gox
1807         $(BUILDPACKAGE)
1808 json/check: $(CHECK_DEPS)
1809         @$(CHECK)
1810 .PHONY: json/check
1812 log/log.lo: $(go_log_files) bytes.gox fmt.gox io.gox runtime.gox os.gox \
1813                 sync.gox time.gox
1814         $(BUILDPACKAGE)
1815 log/check: $(CHECK_DEPS)
1816         @$(CHECK)
1817 .PHONY: log/check
1819 math/math.lo: $(go_math_files)
1820         $(BUILDPACKAGE)
1821 math/check: $(CHECK_DEPS)
1822         @$(CHECK)
1823 .PHONY: math/check
1825 mime/mime.lo: $(go_mime_files) bufio.gox bytes.gox fmt.gox os.gox strings.gox \
1826                 sync.gox unicode.gox
1827         $(BUILDPACKAGE)
1828 mime/check: $(CHECK_DEPS)
1829         @$(CHECK)
1830 .PHONY: mime/check
1832 net/net.lo: $(go_net_files) bytes.gox fmt.gox io.gox os.gox rand.gox \
1833                 reflect.gox sort.gox strconv.gox strings.gox sync.gox \
1834                 syscall.gox time.gox
1835         $(BUILDPACKAGE)
1836 net/check: $(CHECK_DEPS)
1837         @$(CHECK_ON_REQUEST)
1838 .PHONY: net/check
1840 netchan/netchan.lo: $(go_netchan_files) gob.gox io.gox log.gox net.gox os.gox \
1841                 reflect.gox strconv.gox sync.gox time.gox
1842         $(BUILDPACKAGE)
1843 netchan/check: $(CHECK_DEPS)
1844         @$(CHECK)
1845 .PHONY: netchan/check
1847 os/os.lo: $(go_os_files) runtime.gox sync.gox syscall.gox
1848         $(BUILDPACKAGE)
1849 os/check: $(CHECK_DEPS)
1850         @$(CHECK)
1851 .PHONY: os/check
1853 patch/patch.lo: $(go_patch_files) bytes.gox compress/zlib.gox \
1854                 crypto/sha1.gox encoding/git85.gox fmt.gox io.gox os.gox \
1855                 path.gox strings.gox
1856         $(BUILDPACKAGE)
1857 patch/check: $(CHECK_DEPS)
1858         @$(CHECK)
1859 .PHONY: patch/check
1861 path/path.lo: $(go_path_files) os.gox strings.gox utf8.gox
1862         $(BUILDPACKAGE)
1863 path/check: $(CHECK_DEPS)
1864         @$(CHECK)
1865 .PHONY: path/check
1867 rand/rand.lo: $(go_rand_files) math.gox sync.gox
1868         $(BUILDPACKAGE)
1869 rand/check: $(CHECK_DEPS)
1870         @$(CHECK)
1871 .PHONY: rand/check
1873 reflect/reflect.lo: $(go_reflect_files) math.gox runtime.gox strconv.gox \
1874                 sync.gox
1875         $(BUILDPACKAGE)
1876 reflect/check: $(CHECK_DEPS)
1877         @$(CHECK)
1878 .PHONY: reflect/check
1880 regexp/regexp.lo: $(go_regexp_files) bytes.gox io.gox os.gox strings.gox \
1881                 utf8.gox
1882         $(BUILDPACKAGE)
1883 regexp/check: $(CHECK_DEPS)
1884         @$(CHECK)
1885 .PHONY: regexp/check
1887 rpc/rpc.lo: $(go_rpc_files) bufio.gox fmt.gox gob.gox http.gox io.gox log.gox \
1888                 net.gox os.gox reflect.gox sort.gox strings.gox strconv.gox \
1889                 sync.gox template.gox unicode.gox utf8.gox
1890         $(BUILDPACKAGE)
1891 rpc/check: $(CHECK_DEPS)
1892         @$(CHECK)
1893 .PHONY: rpc/check
1895 runtime/runtime.lo: $(go_runtime_files)
1896         $(BUILDPACKAGE)
1897 runtime/check: $(CHECK_DEPS)
1898         @$(CHECK)
1899 .PHONY: runtime/check
1901 scanner/scanner.lo: $(go_scanner_files) bytes.gox fmt.gox io.gox os.gox \
1902                 unicode.gox utf8.gox
1903         $(BUILDPACKAGE)
1904 scanner/check: $(CHECK_DEPS)
1905         @$(CHECK)
1906 .PHONY: scanner/check
1908 smtp/smtp.lo: $(go_smtp_files) crypto/tls.gox encoding/base64.gox io.gox \
1909                 net.gox net/textproto.gox os.gox strings.gox
1910         $(BUILDPACKAGE)
1911 smtp/check: $(CHECK_DEPS)
1912         @$(CHECK)
1913 .PHONY: smtp/check
1915 sort/sort.lo: $(go_sort_files)
1916         $(BUILDPACKAGE)
1917 sort/check: $(CHECK_DEPS)
1918         @$(CHECK)
1919 .PHONY: sort/check
1921 strconv/strconv.lo: $(go_strconv_files) bytes.gox math.gox os.gox strings.gox \
1922                 unicode.gox utf8.gox
1923         $(BUILDPACKAGE)
1924 strconv/check: $(CHECK_DEPS)
1925         @$(CHECK)
1926 .PHONY: strconv/check
1928 strings/strings.lo: $(go_strings_files) os.gox unicode.gox utf8.gox
1929         $(BUILDPACKAGE)
1930 strings/check: $(CHECK_DEPS)
1931         @$(CHECK)
1932 .PHONY: strings/check
1934 sync/sync.lo: $(go_sync_files) runtime.gox sync/atomic.gox
1935         $(BUILDPACKAGE)
1936 sync/check: $(CHECK_DEPS)
1937         @$(CHECK)
1938 .PHONY: sync/check
1940 syslog/syslog.lo: $(go_syslog_files) fmt.gox log.gox net.gox os.gox syscall.gox
1941         $(BUILDPACKAGE)
1942 syslog/syslog_c.lo: $(go_syslog_c_files) syslog/syslog.lo
1943         $(LTCOMPILE) -c -o $@ $(srcdir)/go/syslog/syslog_c.c
1944 syslog/check: $(CHECK_DEPS)
1945         @$(CHECK_ON_REQUEST)
1946 .PHONY: syslog/check
1948 tabwriter/tabwriter.lo: $(go_tabwriter_files) bytes.gox io.gox os.gox utf8.gox
1949         $(BUILDPACKAGE)
1950 tabwriter/check: $(CHECK_DEPS)
1951         @$(CHECK)
1952 .PHONY: tabwriter/check
1954 template/template.lo: $(go_template_files) bytes.gox fmt.gox io.gox os.gox \
1955                 reflect.gox runtime.gox strings.gox container/vector.gox
1956         $(BUILDPACKAGE)
1957 template/check: $(CHECK_DEPS)
1958         @$(CHECK)
1959 .PHONY: template/check
1961 testing/testing.lo: $(go_testing_files) flag.gox fmt.gox os.gox regexp.gox \
1962                 runtime.gox runtime/pprof.gox time.gox
1963         $(BUILDPACKAGE)
1964 testing/check: $(CHECK_DEPS)
1965         @$(CHECK)
1966 .PHONY: testing/check
1968 time/time.lo: $(go_time_files) bytes.gox container/heap.gox io/ioutil.gox \
1969                 os.gox strconv.gox sync.gox syscall.gox
1970         $(BUILDPACKAGE)
1971 time/check: $(CHECK_DEPS)
1972         @$(CHECK)
1973 .PHONY: time/check
1975 try/try.lo: $(go_try_files) fmt.gox io.gox os.gox reflect.gox unicode.gox
1976         $(BUILDPACKAGE)
1977 try/check: $(CHECK_DEPS)
1978         @$(CHECK)
1979 .PHONY: try/check
1981 unicode/unicode.lo: $(go_unicode_files)
1982         $(BUILDPACKAGE)
1983 unicode/check: $(CHECK_DEPS)
1984         @$(CHECK)
1985 .PHONY: unicode/check
1987 utf16/utf16.lo: $(go_utf16_files) unicode.gox
1988         $(BUILDPACKAGE)
1989 utf16/check: $(CHECK_DEPS)
1990         @$(CHECK)
1991 .PHONY: utf16/check
1993 utf8/utf8.lo: $(go_utf8_files) unicode.gox
1994         $(BUILDPACKAGE)
1995 utf8/check: $(CHECK_DEPS)
1996         @$(CHECK)
1997 .PHONY: utf8/check
1999 websocket/websocket.lo: $(go_websocket_files) bufio.gox bytes.gox \
2000                 container/vector.gox crypto/md5.gox crypto/tls.gox \
2001                 encoding/binary.gox fmt.gox http.gox io.gox net.gox os.gox \
2002                 rand.gox strings.gox
2003         $(BUILDPACKAGE)
2004 websocket/check: $(CHECK_DEPS)
2005         @$(CHECK)
2006 .PHONY: websocket/check
2008 xml/xml.lo: $(go_xml_files) bufio.gox bytes.gox fmt.gox io.gox os.gox \
2009                 reflect.gox strconv.gox strings.gox unicode.gox utf8.gox
2010         $(BUILDPACKAGE)
2011 xml/check: $(CHECK_DEPS)
2012         @$(CHECK)
2013 .PHONY: xml/check
2015 archive/tar.lo: $(go_archive_tar_files) bytes.gox io.gox io/ioutil.gox os.gox \
2016                 strconv.gox strings.gox
2017         $(BUILDPACKAGE)
2018 archive/tar/check: $(CHECK_DEPS)
2019         @$(MKDIR_P) archive/tar
2020         @$(CHECK)
2021 .PHONY: archive/tar/check
2023 archive/zip.lo: $(go_archive_zip_files) bufio.gox bytes.gox \
2024                 compress/flate.gox hash.gox hash/crc32.gox \
2025                 encoding/binary.gox io.gox io/ioutil.gox os.gox
2026         $(BUILDPACKAGE)
2027 archive/zip/check: $(CHECK_DEPS)
2028         @$(MKDIR_P) archive/zip
2029         @$(CHECK)
2030 .PHONY: archive/zip/check
2032 compress/bzip2.lo: $(go_compress_bzip2_files) bufio.gox io.gox os.gox sort.gox
2033         $(BUILDPACKAGE)
2034 compress/bzip2/check: $(CHECK_DEPS)
2035         @$(MKDIR_P) compress/bzip2
2036         @$(CHECK)
2037 .PHONY: compress/bzip2/check
2039 compress/flate.lo: $(go_compress_flate_files) bufio.gox io.gox math.gox \
2040                 os.gox sort.gox strconv.gox
2041         $(BUILDPACKAGE)
2042 compress/flate/check: $(CHECK_DEPS)
2043         @$(MKDIR_P) compress/flate
2044         @$(CHECK)
2045 .PHONY: compress/flate/check
2047 compress/gzip.lo: $(go_compress_gzip_files) bufio.gox compress/flate.gox \
2048                 hash.gox hash/crc32.gox io.gox os.gox
2049         $(BUILDPACKAGE)
2050 compress/gzip/check: $(CHECK_DEPS)
2051         @$(MKDIR_P) compress/gzip
2052         @$(CHECK)
2053 .PHONY: compress/gzip/check
2055 compress/lzw.lo: $(go_compress_lzw_files) bufio.gox fmt.gox io.gox os.gox
2056         $(BUILDPACKAGE)
2057 compress/lzw/check: $(CHECK_DEPS)
2058         @$(MKDIR_P) compress/lzw
2059         @$(CHECK)
2060 .PHONY: compress/lzw/check
2062 compress/zlib.lo: $(go_compress_zlib_files) bufio.gox compress/flate.gox \
2063                 hash.gox hash/adler32.gox io.gox os.gox
2064         $(BUILDPACKAGE)
2065 compress/zlib/check: $(CHECK_DEPS)
2066         @$(MKDIR_P) compress/zlib
2067         @$(CHECK)
2068 .PHONY: compress/zlib/check
2070 container/heap.lo: $(go_container_heap_files) sort.gox
2071         $(BUILDPACKAGE)
2072 container/heap/check: $(CHECK_DEPS)
2073         @$(MKDIR_P) container/heap
2074         @$(CHECK)
2075 .PHONY: container/heap/check
2077 container/list.lo: $(go_container_list_files)
2078         $(BUILDPACKAGE)
2079 container/list/check: $(CHECK_DEPS)
2080         @$(MKDIR_P) container/list
2081         @$(CHECK)
2082 .PHONY: container/list/check
2084 container/ring.lo: $(go_container_ring_files)
2085         $(BUILDPACKAGE)
2086 container/ring/check: $(CHECK_DEPS)
2087         @$(MKDIR_P) container/ring
2088         @$(CHECK)
2089 .PHONY: container/ring/check
2091 container/vector.lo: $(go_container_vector_files)
2092         $(BUILDPACKAGE)
2093 container/vector/check: $(CHECK_DEPS)
2094         @$(MKDIR_P) container/vector
2095         @$(CHECK)
2096 .PHONY: container/vector/check
2098 crypto/aes.lo: $(go_crypto_aes_files) os.gox strconv.gox
2099         $(BUILDPACKAGE)
2100 crypto/aes/check: $(CHECK_DEPS)
2101         @$(MKDIR_P) crypto/aes
2102         @$(CHECK)
2103 .PHONY: crypto/aes/check
2105 crypto/blowfish.lo: $(go_crypto_blowfish_files) os.gox strconv.gox
2106         $(BUILDPACKAGE)
2107 crypto/blowfish/check: $(CHECK_DEPS)
2108         @$(MKDIR_P) crypto/blowfish
2109         @$(CHECK)
2110 .PHONY: crypto/blowfish/check
2112 crypto/cast5.lo: $(go_crypto_cast5_files) os.gox
2113         $(BUILDPACKAGE)
2114 crypto/cast5/check: $(CHECK_DEPS)
2115         @$(MKDIR_P) crypto/cast5
2116         @$(CHECK)
2117 .PHONY: crypto/cast5/check
2119 crypto/cipher.lo: $(go_crypto_cipher_files) io.gox os.gox
2120         $(BUILDPACKAGE)
2121 crypto/cipher/check: $(CHECK_DEPS)
2122         @$(MKDIR_P) crypto/cipher
2123         @$(CHECK)
2124 .PHONY: crypto/cipher/check
2126 crypto/des.lo: $(go_crypto_des_files) encoding/binary.gox os.gox strconv.gox
2127         $(BUILDPACKAGE)
2128 crypto/des/check: $(CHECK_DEPS)
2129         @$(MKDIR_P) crypto/des
2130         @$(CHECK)
2131 .PHONY: crypto/des/check
2133 crypto/dsa.lo: $(go_crypto_dsa_files) big.gox io.gox os.gox
2134         $(BUILDPACKAGE)
2135 crypto/dsa/check: $(CHECK_DEPS)
2136         @$(MKDIR_P) crypto/dsa
2137         @$(CHECK)
2138 .PHONY: crypto/dsa/check
2140 crypto/ecdsa.lo: $(go_crypto_ecdsa_files) big.gox crypto/elliptic.gox io.gox \
2141                 os.gox
2142         $(BUILDPACKAGE)
2143 crypto/ecdsa/check: $(CHECK_DEPS)
2144         @$(MKDIR_P) crypto/ecdsa
2145         @$(CHECK)
2146 .PHONY: crypto/ecdsa/check
2148 crypto/elliptic.lo: $(go_crypto_elliptic_files) big.gox io.gox os.gox sync.gox
2149         $(BUILDPACKAGE)
2150 crypto/elliptic/check: $(CHECK_DEPS)
2151         @$(MKDIR_P) crypto/elliptic
2152         @$(CHECK)
2153 .PHONY: crypto/elliptic/check
2155 crypto/hmac.lo: $(go_crypto_hmac_files) crypto/md5.gox crypto/sha1.gox \
2156                 crypto/sha256.gox hash.gox os.gox
2157         $(BUILDPACKAGE)
2158 crypto/hmac/check: $(CHECK_DEPS)
2159         @$(MKDIR_P) crypto/hmac
2160         @$(CHECK)
2161 .PHONY: crypto/hmac/check
2163 crypto/md4.lo: $(go_crypto_md4_files) crypto.gox hash.gox os.gox
2164         $(BUILDPACKAGE)
2165 crypto/md4/check: $(CHECK_DEPS)
2166         @$(MKDIR_P) crypto/md4
2167         @$(CHECK)
2168 .PHONY: crypto/md4/check
2170 crypto/md5.lo: $(go_crypto_md5_files) crypto.gox hash.gox os.gox
2171         $(BUILDPACKAGE)
2172 crypto/md5/check: $(CHECK_DEPS)
2173         @$(MKDIR_P) crypto/md5
2174         @$(CHECK)
2175 .PHONY: crypto/md5/check
2177 crypto/ocsp.lo: $(go_crypto_ocsp_files) asn1.gox crypto.gox crypto/rsa.gox \
2178                 crypto/sha1.gox crypto/x509.gox os.gox time.gox
2179         $(BUILDPACKAGE)
2180 crypto/ocsp/check: $(CHECK_DEPS)
2181         @$(MKDIR_P) crypto/ocsp
2182         @$(CHECK)
2183 .PHONY: crypto/ocsp/check
2185 crypto/openpgp.lo: $(go_crypto_openpgp_files) crypto.gox crypto/dsa.gox \
2186                 crypto/openpgp/armor.gox crypto/openpgp/error.gox \
2187                 crypto/openpgp/packet.gox crypto/rsa.gox crypto/sha256.gox \
2188                 hash.gox io.gox os.gox strconv.gox time.gox
2189         $(BUILDPACKAGE)
2190 crypto/openpgp/check: $(CHECK_DEPS)
2191         @$(MKDIR_P) crypto/openpgp
2192         @$(CHECK)
2193 .PHONY: crypto/openpgp/check
2195 crypto/rand.lo: $(go_crypto_rand_files) bufio.gox crypto/aes.gox io.gox \
2196                 os.gox sync.gox time.gox
2197         $(BUILDPACKAGE)
2198 crypto/rand/check: $(CHECK_DEPS)
2199         @$(MKDIR_P) crypto/rand
2200         @$(CHECK)
2201 .PHONY: crypto/rand/check
2203 crypto/rc4.lo: $(go_crypto_rc4_files) os.gox strconv.gox
2204         $(BUILDPACKAGE)
2205 crypto/rc4/check: $(CHECK_DEPS)
2206         @$(MKDIR_P) crypto/rc4
2207         @$(CHECK)
2208 .PHONY: crypto/rc4/check
2210 crypto/ripemd160.lo: $(go_crypto_ripemd160_files) crypto.gox hash.gox os.gox
2211         $(BUILDPACKAGE)
2212 crypto/ripemd160/check: $(CHECK_DEPS)
2213         @$(MKDIR_P) crypto/ripemd160
2214         @$(CHECK)
2215 .PHONY: crypto/ripemd160/check
2217 crypto/rsa.lo: $(go_crypto_rsa_files) big.gox crypto.gox crypto/sha1.gox \
2218                 crypto/subtle.gox encoding/hex.gox hash.gox io.gox os.gox
2219         $(BUILDPACKAGE)
2220 crypto/rsa/check: $(CHECK_DEPS)
2221         @$(MKDIR_P) crypto/rsa
2222         @$(CHECK)
2223 .PHONY: crypto/rsa/check
2225 crypto/sha1.lo: $(go_crypto_sha1_files) crypto.gox hash.gox os.gox
2226         $(BUILDPACKAGE)
2227 crypto/sha1/check: $(CHECK_DEPS)
2228         @$(MKDIR_P) crypto/sha1
2229         @$(CHECK)
2230 .PHONY: crypto/sha1/check
2232 crypto/sha256.lo: $(go_crypto_sha256_files) crypto.gox hash.gox os.gox
2233         $(BUILDPACKAGE)
2234 crypto/sha256/check: $(CHECK_DEPS)
2235         @$(MKDIR_P) crypto/sha256
2236         @$(CHECK)
2237 .PHONY: crypto/sha256/check
2239 crypto/sha512.lo: $(go_crypto_sha512_files) crypto.gox hash.gox os.gox
2240         $(BUILDPACKAGE)
2241 crypto/sha512/check: $(CHECK_DEPS)
2242         @$(MKDIR_P) crypto/sha512
2243         @$(CHECK)
2244 .PHONY: crypto/sha512/check
2246 crypto/subtle.lo: $(go_crypto_subtle_files)
2247         $(BUILDPACKAGE)
2248 crypto/subtle/check: $(CHECK_DEPS)
2249         @$(MKDIR_P) crypto/subtle
2250         @$(CHECK)
2251 .PHONY: crypto/subtle/check
2253 crypto/tls.lo: $(go_crypto_tls_files) big.gox bytes.gox crypto.gox \
2254                 crypto/aes.gox crypto/cipher.gox crypto/elliptic.gox \
2255                 crypto/hmac.gox crypto/md5.gox crypto/rand.gox crypto/rc4.gox \
2256                 crypto/rsa.gox crypto/sha1.gox crypto/subtle.gox \
2257                 crypto/x509.gox encoding/pem.gox hash.gox io.gox \
2258                 io/ioutil.gox net.gox os.gox strconv.gox strings.gox sync.gox \
2259                 time.gox
2260         $(BUILDPACKAGE)
2261 crypto/tls/check: $(CHECK_DEPS)
2262         @$(MKDIR_P) crypto/tls
2263         @$(CHECK)
2264 .PHONY: crypto/tls/check
2266 crypto/twofish.lo: $(go_crypto_twofish_files) os.gox strconv.gox
2267         $(BUILDPACKAGE)
2268 crypto/twofish/check: $(CHECK_DEPS)
2269         @$(MKDIR_P) crypto/twofish
2270         @$(CHECK)
2271 .PHONY: crypto/twofish/check
2273 crypto/x509.lo: $(go_crypto_x509_files) asn1.gox big.gox bytes.gox \
2274                 container/vector.gox crypto.gox crypto/rsa.gox \
2275                 crypto/sha1.gox encoding/pem.gox hash.gox os.gox strings.gox \
2276                 time.gox
2277         $(BUILDPACKAGE)
2278 crypto/x509/check: $(CHECK_DEPS)
2279         @$(MKDIR_P) crypto/x509
2280         @$(CHECK)
2281 .PHONY: crypto/x509/check
2283 crypto/xtea.lo: $(go_crypto_xtea_files) os.gox strconv.gox
2284         $(BUILDPACKAGE)
2285 crypto/xtea/check: $(CHECK_DEPS)
2286         @$(MKDIR_P) crypto/xtea
2287         @$(CHECK)
2288 .PHONY: crypto/xtea/check
2290 crypto/openpgp/armor.lo: $(go_crypto_openpgp_armor_files) bufio.gox bytes.gox \
2291                 crypto/openpgp/error.gox encoding/base64.gox io.gox os.gox
2292         $(BUILDPACKAGE)
2293 crypto/openpgp/armor/check: $(CHECK_DEPS)
2294         @$(MKDIR_P) crypto/openpgp/armor
2295         @$(CHECK)
2296 .PHONY: crypto/openpgp/armor/check
2298 crypto/openpgp/error.lo: $(go_crypto_openpgp_error_files) strconv.gox
2299         $(BUILDPACKAGE)
2300 crypto/openpgp/error/check: $(CHECK_DEPS)
2301         @$(MKDIR_P) crypto/openpgp/error
2302         @$(CHECK)
2303 .PHONY: crypto/openpgp/error/check
2305 crypto/openpgp/packet.lo: $(go_crypto_openpgp_packet_files) big.gox bytes.gox \
2306                 compress/flate.gox compress/zlib.gox crypto.gox \
2307                 crypto/aes.gox crypto/cast5.gox crypto/cipher.gox \
2308                 crypto/dsa.gox crypto/openpgp/error.gox \
2309                 crypto/openpgp/s2k.gox crypto/rand.gox crypto/rsa.gox \
2310                 crypto/sha1.gox crypto/subtle.gox encoding/binary.gox fmt.gox \
2311                 hash.gox io.gox io/ioutil.gox os.gox strconv.gox strings.gox
2312         $(BUILDPACKAGE)
2313 crypto/openpgp/packet/check: $(CHECK_DEPS)
2314         @$(MKDIR_P) crypto/openpgp/packet
2315         @$(CHECK)
2316 .PHONY: crypto/openpgp/packet/check
2318 crypto/openpgp/s2k.lo: $(go_crypto_openpgp_s2k_files) crypto.gox \
2319                 crypto/md5.gox crypto/openpgp/error.gox crypto/ripemd160.gox \
2320                 crypto/sha1.gox crypto/sha256.gox crypto/sha512.gox hash.gox \
2321                 io.gox os.gox
2322         $(BUILDPACKAGE)
2323 crypto/openpgp/s2k/check: $(CHECK_DEPS)
2324         @$(MKDIR_P) crypto/openpgp/s2k
2325         @$(CHECK)
2326 .PHONY: crypto/openpgp/s2k/check
2328 debug/dwarf.lo: $(go_debug_dwarf_files) encoding/binary.gox os.gox strconv.gox
2329         $(BUILDPACKAGE)
2330 debug/dwarf/check: $(CHECK_DEPS)
2331         @$(MKDIR_P) debug/dwarf
2332         @$(CHECK)
2333 .PHONY: debug/dwarf/check
2335 debug/elf.lo: $(go_debug_elf_files) bytes.gox debug/dwarf.gox \
2336                 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
2337         $(BUILDPACKAGE)
2338 debug/elf/check: $(CHECK_DEPS)
2339         @$(MKDIR_P) debug/elf
2340         @$(CHECK)
2341 .PHONY: debug/elf/check
2343 debug/gosym.lo: $(go_debug_gosym_files) encoding/binary.gox fmt.gox os.gox \
2344                 strconv.gox strings.gox
2345         $(BUILDPACKAGE)
2346 debug/gosym/check: $(CHECK_DEPS)
2347         @$(MKDIR_P) debug/gosym
2348         @$(CHECK)
2349 .PHONY: debug/gosym/check
2351 debug/macho.lo: $(go_debug_macho_files) bytes.gox debug/dwarf.gox \
2352                 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
2353         $(BUILDPACKAGE)
2354 debug/macho/check: $(CHECK_DEPS)
2355         @$(MKDIR_P) debug/macho
2356         @$(CHECK)
2357 .PHONY: debug/macho/check
2359 debug/pe.lo: $(go_debug_pe_files) debug/dwarf.gox \
2360                 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
2361         $(BUILDPACKAGE)
2362 debug/pe/check: $(CHECK_DEPS)
2363         @$(MKDIR_P) debug/pe
2364         @$(CHECK)
2365 .PHONY: debug/pe/check
2367 debug/proc.lo: $(go_debug_proc_files) container/vector.gox fmt.gox \
2368                 io/ioutil.gox os.gox runtime.gox strconv.gox strings.gox \
2369                 sync.gox syscall.gox
2370         $(BUILDPACKAGE)
2371 debug/proc/check: $(CHECK_DEPS)
2372         @$(MKDIR_P) debug/proc
2373         @$(CHECK)
2374 .PHONY: debug/proc/check
2376 encoding/ascii85.lo: $(go_encoding_ascii85_files) io.gox os.gox strconv.gox
2377         $(BUILDPACKAGE)
2378 encoding/ascii85/check: $(CHECK_DEPS)
2379         @$(MKDIR_P) encoding/ascii85
2380         @$(CHECK)
2381 .PHONY: encoding/ascii85/check
2383 encoding/base32.lo: $(go_encoding_base32_files) io.gox os.gox strconv.gox
2384         $(BUILDPACKAGE)
2385 encoding/base32/check: $(CHECK_DEPS)
2386         @$(MKDIR_P) encoding/base32
2387         @$(CHECK)
2388 .PHONY: encoding/base32/check
2390 encoding/base64.lo: $(go_encoding_base64_files) io.gox os.gox strconv.gox
2391         $(BUILDPACKAGE)
2392 encoding/base64/check: $(CHECK_DEPS)
2393         @$(MKDIR_P) encoding/base64
2394         @$(CHECK)
2395 .PHONY: encoding/base64/check
2397 encoding/binary.lo: $(go_encoding_binary_files) io.gox math.gox os.gox \
2398                 reflect.gox
2399         $(BUILDPACKAGE)
2400 encoding/binary/check: $(CHECK_DEPS)
2401         @$(MKDIR_P) encoding/binary
2402         @$(CHECK)
2403 .PHONY: encoding/binary/check
2405 encoding/git85.lo: $(go_encoding_git85_files) bytes.gox io.gox os.gox \
2406                 strconv.gox
2407         $(BUILDPACKAGE)
2408 encoding/git85/check: $(CHECK_DEPS)
2409         @$(MKDIR_P) encoding/git85
2410         @$(CHECK)
2411 .PHONY: encoding/git85/check
2413 encoding/hex.lo: $(go_encoding_hex_files) os.gox strconv.gox
2414         $(BUILDPACKAGE)
2415 encoding/hex/check: $(CHECK_DEPS)
2416         @$(MKDIR_P) encoding/hex
2417         @$(CHECK)
2418 .PHONY: encoding/hex/check
2420 encoding/line.lo: $(go_encoding_line_files) io.gox os.gox
2421         $(BUILDPACKAGE)
2422 encoding/line/check: $(CHECK_DEPS)
2423         @$(MKDIR_P) encoding/line
2424         @$(CHECK)
2425 .PHONY: encoding/line/check
2427 encoding/pem.lo: $(go_encoding_pem_files) bytes.gox encoding/base64.gox
2428         $(BUILDPACKAGE)
2429 encoding/pem/check: $(CHECK_DEPS)
2430         @$(MKDIR_P) encoding/pem
2431         @$(CHECK)
2432 .PHONY: encoding/pem/check
2434 exp/datafmt.lo: $(go_exp_datafmt_files) bytes.gox container/vector.gox \
2435                 fmt.gox go/scanner.gox go/token.gox io.gox os.gox reflect.gox \
2436                 runtime.gox strconv.gox strings.gox
2437         $(BUILDPACKAGE)
2438 exp/datafmt/check: $(CHECK_DEPS)
2439         @$(MKDIR_P) exp/datafmt
2440         @$(CHECK)
2441 .PHONY: exp/datafmt/check
2443 exp/draw.lo: $(go_exp_draw_files) image.gox image/ycbcr.gox os.gox
2444         $(BUILDPACKAGE)
2445 exp/draw/check: $(CHECK_DEPS)
2446         @$(MKDIR_P) exp/draw
2447         @$(CHECK)
2448 .PHONY: exp/draw/check
2450 exp/eval.lo: $(go_exp_eval_files) big.gox go/ast.gox go/parser.gox \
2451                 go/scanner.gox go/token.gox fmt.gox log.gox strconv.gox \
2452                 strings.gox os.gox reflect.gox runtime.gox sort.gox template.gox
2453         $(BUILDPACKAGE)
2454 exp/eval/check: $(CHECK_DEPS)
2455         @$(MKDIR_P) exp/eval
2456         @$(CHECK)
2457 .PHONY: exp/eval/check
2459 go/ast.lo: $(go_go_ast_files) bytes.gox fmt.gox go/scanner.gox go/token.gox \
2460                 io.gox os.gox reflect.gox unicode.gox utf8.gox
2461         $(BUILDPACKAGE)
2462 go/ast/check: $(CHECK_DEPS)
2463         @$(MKDIR_P) go/ast
2464         @$(CHECK)
2465 .PHONY: go/ast/check
2467 go/doc.lo: $(go_go_doc_files) go/ast.gox go/token.gox io.gox regexp.gox \
2468                 sort.gox strings.gox template.gox
2469         $(BUILDPACKAGE)
2470 go/doc/check: $(CHECK_DEPS)
2471         @$(MKDIR_P) go/doc
2472         @$(CHECK)
2473 .PHONY: go/doc/check
2475 go/parser.lo: $(go_go_parser_files) bytes.gox fmt.gox go/ast.gox \
2476                 go/scanner.gox go/token.gox io.gox io/ioutil.gox os.gox \
2477                 path/filepath.gox strings.gox
2478         $(BUILDPACKAGE)
2479 go/parser/check: $(CHECK_DEPS)
2480         @$(MKDIR_P) go/parser
2481         @$(CHECK)
2482 .PHONY: go/parser/check
2484 go/printer.lo: $(go_go_printer_files) bytes.gox fmt.gox go/ast.gox \
2485                 go/token.gox io.gox os.gox path/filepath.gox reflect.gox \
2486                 runtime.gox strings.gox tabwriter.gox
2487         $(BUILDPACKAGE)
2488 go/printer/check: $(CHECK_DEPS)
2489         @$(MKDIR_P) go/printer
2490         @$(CHECK)
2491 .PHONY: go/printer/check
2493 go/scanner.lo: $(go_go_scanner_files) bytes.gox container/vector.gox fmt.gox \
2494                 go/token.gox io.gox os.gox path/filepath.gox sort.gox \
2495                 strconv.gox unicode.gox utf8.gox
2496         $(BUILDPACKAGE)
2497 go/scanner/check: $(CHECK_DEPS)
2498         @$(MKDIR_P) go/scanner
2499         @$(CHECK)
2500 .PHONY: go/scanner/check
2502 go/token.lo: $(go_go_token_files) fmt.gox strconv.gox
2503         $(BUILDPACKAGE)
2504 go/token/check: $(CHECK_DEPS)
2505         @$(MKDIR_P) go/token
2506         @$(CHECK)
2507 .PHONY: go/token/check
2509 go/typechecker.lo: $(go_go_typechecker_files) fmt.gox go/ast.gox go/token.gox \
2510                 go/scanner.gox os.gox
2511         $(BUILDPACKAGE)
2512 go/typechecker/check: $(CHECK_DEPS)
2513         @$(MKDIR_P) go/typechecker
2514         @$(CHECK)
2515 .PHONY: go/typechecker/check
2517 go/types.lo: $(go_go_types_files) big.gox bufio.gox fmt.gox go/ast.gox \
2518                 go/token.gox io.gox os.gox path/filepath.gox runtime.gox \
2519                 scanner.gox strconv.gox strings.gox
2520         $(BUILDPACKAGE)
2521 go/types/check: $(CHECK_DEPS)
2522         @$(MKDIR_P) go/types
2523         @$(CHECK)
2524 .PHONY: go/types/check
2526 hash/adler32.lo: $(go_hash_adler32_files) hash.gox os.gox
2527         $(BUILDPACKAGE)
2528 hash/adler32/check: $(CHECK_DEPS)
2529         @$(MKDIR_P) hash/adler32
2530         @$(CHECK)
2531 .PHONY: hash/adler32/check
2533 hash/crc32.lo: $(go_hash_crc32_files) hash.gox os.gox
2534         $(BUILDPACKAGE)
2535 hash/crc32/check: $(CHECK_DEPS)
2536         @$(MKDIR_P) hash/crc32
2537         @$(CHECK)
2538 .PHONY: hash/crc32/check
2540 hash/crc64.lo: $(go_hash_crc64_files) hash.gox os.gox
2541         $(BUILDPACKAGE)
2542 hash/crc64/check: $(CHECK_DEPS)
2543         @$(MKDIR_P) hash/crc64
2544         @$(CHECK)
2545 .PHONY: hash/crc64/check
2547 hash/fnv.lo: $(go_hash_fnv_files) encoding/binary.gox hash.gox os.gox
2548         $(BUILDPACKAGE)
2549 hash/fnv/check: $(CHECK_DEPS)
2550         @$(MKDIR_P) hash/fnv
2551         @$(CHECK)
2552 .PHONY: hash/fnv/check
2554 http/cgi.lo: $(go_http_cgi_files) bufio.gox bytes.gox crypto/tls.gox \
2555                 exec.gox fmt.gox http.gox net.gox io.gox io/ioutil.gox \
2556                 log.gox os.gox path/filepath.gox regexp.gox strconv.gox \
2557                 strings.gox
2558         $(BUILDPACKAGE)
2559 http/cgi/check: $(CHECK_DEPS)
2560         @$(MKDIR_P) http/cgi
2561         @$(CHECK)
2562 .PHONY: http/cgi/check
2564 http/fcgi.lo: $(go_http_fcgi_files) bufio.gox bytes.gox encoding/binary.gox \
2565                 fmt.gox http.gox http/cgi.gox io.gox net.gox os.gox sync.gox \
2566                 time.gox
2567         $(BUILDPACKAGE)
2568 http/fcgi/check: $(CHECK_DEPS)
2569         @$(MKDIR_P) http/fcgi
2570         @$(CHECK)
2571 .PHONY: http/fcgi/check
2573 http/httptest.lo: $(go_http_httptest_files) bytes.gox crypto/rand.gox \
2574                 crypto/tls.gox fmt.gox http.gox net.gox os.gox time.gox
2575         $(BUILDPACKAGE)
2576 http/httptest/check: $(CHECK_DEPS)
2577         @$(MKDIR_P) http/httptest
2578         @$(CHECK)
2579 .PHONY: http/httptest/check
2581 http/pprof.lo: $(go_http_pprof_files) bufio.gox bytes.gox fmt.gox http.gox \
2582                 os.gox runtime.gox runtime/pprof.gox strconv.gox strings.gox
2583         $(BUILDPACKAGE)
2584 http/pprof/check: $(CHECK_DEPS)
2585         @$(MKDIR_P) http/pprof
2586         @$(CHECK)
2587 .PHONY: http/pprof/check
2589 http/spdy.lo: $(go_http_spdy_files) bytes.gox compress/zlib.gox \
2590                 encoding/binary.gox http.gox io.gox os.gox strconv.gox \
2591                 strings.gox sync.gox
2592         $(BUILDPACKAGE)
2593 http/spdy/check: $(CHECK_DEPS)
2594         @$(MKDIR_P) http/spdy
2595         @$(CHECK)
2596 .PHONY: http/spdy/check
2598 image/gif.lo: $(go_image_gif_files) bufio.gox compress/lzw.gox fmt.gox \
2599                 image.gox io.gox os.gox
2600         $(BUILDPACKAGE)
2601 image/gif/check: $(CHECK_DEPS)
2602         @$(MKDIR_P) image/gif
2603         @$(CHECK)
2604 .PHONY: image/gif/check
2606 image/jpeg.lo: $(go_image_jpeg_files) bufio.gox image.gox image/ycbcr.gox \
2607                 io.gox os.gox
2608         $(BUILDPACKAGE)
2609 image/jpeg/check: $(CHECK_DEPS)
2610         @$(MKDIR_P) image/jpeg
2611         @$(CHECK)
2612 .PHONY: image/jpeg/check
2614 image/png.lo: $(go_image_png_files) bufio.gox compress/zlib.gox fmt.gox \
2615                 hash.gox hash/crc32.gox image.gox io.gox os.gox strconv.gox
2616         $(BUILDPACKAGE)
2617 image/png/check: $(CHECK_DEPS)
2618         @$(MKDIR_P) image/png
2619         @$(CHECK)
2620 .PHONY: image/png/check
2622 image/tiff.lo: $(go_image_tiff_files) compress/lzw.gox compress/zlib.gox \
2623                 encoding/binary.gox image.gox io.gox io/ioutil.gox os.gox
2624         $(BUILDPACKAGE)
2625 image/tiff/check: $(CHECK_DEPS)
2626         @$(MKDIR_P) image/tiff
2627         @$(CHECK)
2628 .PHONY: image/tiff/check
2630 image/ycbcr.lo: $(go_image_ycbcr_files) image.gox
2631         $(BUILDPACKAGE)
2632 image/ycbcr/check: $(CHECK_DEPS)
2633         @$(MKDIR_P) image/ycbcr
2634         @$(CHECK)
2635 .PHONY: image/ycbcr/check
2637 index/suffixarray.lo: $(go_index_suffixarray_files) bytes.gox regexp.gox \
2638                 sort.gox
2639         $(BUILDPACKAGE)
2640 index/suffixarray/check: $(CHECK_DEPS)
2641         @$(MKDIR_P) index/suffixarray
2642         @$(CHECK)
2643 .PHONY: index/suffixarray/check
2645 io/ioutil.lo: $(go_io_ioutil_files) bytes.gox io.gox os.gox path/filepath.gox \
2646                 sort.gox strconv.gox
2647         $(BUILDPACKAGE)
2648 io/ioutil/check: $(CHECK_DEPS)
2649         @$(MKDIR_P) io/ioutil
2650         @$(CHECK)
2651 .PHONY: io/ioutil/check
2653 mime/multipart.lo: $(go_mime_multipart_files) bufio.gox bytes.gox fmt.gox \
2654                 io.gox io/ioutil.gox mime.gox net/textproto.gox os.gox \
2655                 regexp.gox
2656         $(BUILDPACKAGE)
2657 mime/multipart/check: $(CHECK_DEPS)
2658         @$(MKDIR_P) mime/multipart
2659         @$(CHECK)
2660 .PHONY: mime/multipart/check
2662 net/dict.lo: $(go_net_dict_files) container/vector.gox net/textproto.gox \
2663                 os.gox strconv.gox strings.gox
2664         $(BUILDPACKAGE)
2666 net/textproto.lo: $(go_net_textproto_files) bufio.gox bytes.gox \
2667                 container/vector.gox fmt.gox io.gox io/ioutil.gox net.gox \
2668                 os.gox strconv.gox sync.gox
2669         $(BUILDPACKAGE)
2670 net/textproto/check: $(CHECK_DEPS)
2671         @$(MKDIR_P) net/textproto
2672         @$(CHECK)
2673 .PHONY: net/textproto/check
2675 os/inotify.lo: $(go_os_inotify_files) fmt.gox os.gox strings.gox syscall.gox
2676         $(BUILDPACKAGE)
2677 os/inotify/check: $(CHECK_DEPS)
2678         @$(MKDIR_P) os/inotify
2679         @$(CHECK)
2680 .PHONY: os/inotify/check
2682 os/user.lo: $(go_os_user_files) fmt.gox os.gox runtime.gox strconv.gox \
2683                 strings.gox syscall.gox
2684         $(BUILDPACKAGE)
2685 os/user/check: $(CHECK_DEPS)
2686         @$(MKDIR_P) os/user
2687         @$(CHECK)
2688 .PHONY: os/user/check
2690 os/signal.lo: $(go_os_signal_files) runtime.gox strconv.gox
2691         $(BUILDPACKAGE)
2692 os/signal/check: $(CHECK_DEPS)
2693         @$(MKDIR_P) os/signal
2694         @$(CHECK)
2695 .PHONY: os/signal/check
2697 unix.go: $(srcdir)/go/os/signal/mkunix.sh sysinfo.go
2698         $(SHELL) $(srcdir)/go/os/signal/mkunix.sh sysinfo.go > $@.tmp
2699         mv -f $@.tmp $@
2701 path/filepath.lo: $(go_path_filepath_files) bytes.gox os.gox sort.gox \
2702                 strings.gox utf8.gox
2703         $(BUILDPACKAGE)
2704 path/filepath/check: $(CHECK_DEPS)
2705         @$(MKDIR_P) path/filepath
2706         @$(CHECK)
2707 .PHONY: path/filepath/check
2709 rpc/jsonrpc.lo: $(go_rpc_jsonrpc_files) fmt.gox io.gox json.gox net.gox \
2710                 os.gox rpc.gox sync.gox
2711         $(BUILDPACKAGE)
2712 rpc/jsonrpc/check: $(CHECK_DEPS)
2713         @$(MKDIR_P) rpc/jsonrpc
2714         @$(CHECK)
2715 .PHONY: rpc/jsonrpc/check
2717 runtime/debug.lo: $(go_runtime_debug_files) bytes.gox fmt.gox io/ioutil.gox \
2718                 os.gox runtime.gox
2719         $(BUILDPACKAGE)
2720 runtime/debug/check: $(CHECK_DEPS)
2721         @$(MKDIR_P) runtime/debug
2722         @$(CHECK)
2723 .PHONY: runtime/debug/check
2725 runtime/pprof.lo: $(go_runtime_pprof_files) bufio.gox fmt.gox io.gox os.gox \
2726                 runtime.gox sync.gox
2727         $(BUILDPACKAGE)
2728 runtime/pprof/check: $(CHECK_DEPS)
2729         @$(MKDIR_P) runtime/pprof
2730         @$(CHECK)
2731 .PHONY: runtime/pprof/check
2733 sync/atomic.lo: $(go_sync_atomic_files)
2734         $(BUILDPACKAGE)
2735 sync/atomic_c.lo: $(go_sync_atomic_c_files) sync/atomic.lo
2736         $(LTCOMPILE) -c -o $@ $(srcdir)/go/sync/atomic/atomic.c
2737 sync/atomic/check: $(CHECK_DEPS)
2738         @$(MKDIR_P) sync/atomic
2739         @$(CHECK)
2740 .PHONY: sync/atomic/check
2742 testing/iotest.lo: $(go_testing_iotest_files) io.gox log.gox os.gox
2743         $(BUILDPACKAGE)
2744 testing/iotest/check: $(CHECK_DEPS)
2745         @$(MKDIR_P) testing/iotest
2746         @$(CHECK)
2747 .PHONY: testing/iotest/check
2749 testing/quick.lo: $(go_testing_quick_files) flag.gox fmt.gox math.gox os.gox \
2750                 rand.gox reflect.gox strings.gox
2751         $(BUILDPACKAGE)
2752 testing/quick/check: $(CHECK_DEPS)
2753         @$(MKDIR_P) testing/quick
2754         @$(CHECK)
2755 .PHONY: testing/quick/check
2757 testing/script.lo: $(go_testing_script_files) fmt.gox os.gox rand.gox \
2758                 reflect.gox strings.gox
2759         $(BUILDPACKAGE)
2760 testing/script/check: $(CHECK_DEPS)
2761         @$(MKDIR_P) testing/script
2762         @$(CHECK)
2763 .PHONY: testing/script/check
2765 sysinfo.go: s-sysinfo; @true
2766 s-sysinfo: $(srcdir)/mksysinfo.sh config.h
2767         CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS)" $(SHELL) $(srcdir)/mksysinfo.sh
2768         $(SHELL) $(srcdir)/../move-if-change tmp-sysinfo.go sysinfo.go
2769         $(STAMP) $@
2771 syscalls/syscall.lo: $(go_syscall_files) sync.gox
2772         $(BUILDPACKAGE)
2773 syscalls/errno.lo: $(go_syscall_c_files) syscalls/syscall.lo
2774         $(LTCOMPILE) -c -o $@ $(srcdir)/syscalls/errno.c
2776 # How to build a .gox file from a .lo file.
2777 BUILDGOX = \
2778         f=`echo $< | sed -e 's/.lo$$/.o/'`; \
2779         $(OBJCOPY) -j .go_export $$f $@.tmp && mv -f $@.tmp $@
2781 asn1.gox: asn1/asn1.lo
2782         $(BUILDGOX)
2783 big.gox: big/big.lo
2784         $(BUILDGOX)
2785 bufio.gox: bufio/bufio.lo
2786         $(BUILDGOX)
2787 bytes.gox: bytes/bytes.lo
2788         $(BUILDGOX)
2789 cmath.gox: cmath/cmath.lo
2790         $(BUILDGOX)
2791 crypto.gox: crypto/crypto.lo
2792         $(BUILDGOX)
2793 ebnf.gox: ebnf/ebnf.lo
2794         $(BUILDGOX)
2795 exec.gox: exec/exec.lo
2796         $(BUILDGOX)
2797 expvar.gox: expvar/expvar.lo
2798         $(BUILDGOX)
2799 flag.gox: flag/flag.lo
2800         $(BUILDGOX)
2801 fmt.gox: fmt/fmt.lo
2802         $(BUILDGOX)
2803 gob.gox: gob/gob.lo
2804         $(BUILDGOX)
2805 hash.gox: hash/hash.lo
2806         $(BUILDGOX)
2807 html.gox: html/html.lo
2808         $(BUILDGOX)
2809 http.gox: http/http.lo
2810         $(BUILDGOX)
2811 image.gox: image/image.lo
2812         $(BUILDGOX)
2813 io.gox: io/io.lo
2814         $(BUILDGOX)
2815 json.gox: json/json.lo
2816         $(BUILDGOX)
2817 log.gox: log/log.lo
2818         $(BUILDGOX)
2819 math.gox: math/math.lo
2820         $(BUILDGOX)
2821 mime.gox: mime/mime.lo
2822         $(BUILDGOX)
2823 net.gox: net/net.lo
2824         $(BUILDGOX)
2825 netchan.gox: netchan/netchan.lo
2826         $(BUILDGOX)
2827 os.gox: os/os.lo
2828         $(BUILDGOX)
2829 patch.gox: patch/patch.lo
2830         $(BUILDGOX)
2831 path.gox: path/path.lo
2832         $(BUILDGOX)
2833 rand.gox: rand/rand.lo
2834         $(BUILDGOX)
2835 reflect.gox: reflect/reflect.lo
2836         $(BUILDGOX)
2837 regexp.gox: regexp/regexp.lo
2838         $(BUILDGOX)
2839 rpc.gox: rpc/rpc.lo
2840         $(BUILDGOX)
2841 runtime.gox: runtime/runtime.lo
2842         $(BUILDGOX)
2843 scanner.gox: scanner/scanner.lo
2844         $(BUILDGOX)
2845 smtp.gox: smtp/smtp.lo
2846         $(BUILDGOX)
2847 sort.gox: sort/sort.lo
2848         $(BUILDGOX)
2849 strconv.gox: strconv/strconv.lo
2850         $(BUILDGOX)
2851 strings.gox: strings/strings.lo
2852         $(BUILDGOX)
2853 sync.gox: sync/sync.lo
2854         $(BUILDGOX)
2855 syslog.gox: syslog/syslog.lo
2856         $(BUILDGOX)
2857 syscall.gox: syscalls/syscall.lo
2858         $(BUILDGOX)
2859 tabwriter.gox: tabwriter/tabwriter.lo
2860         $(BUILDGOX)
2861 template.gox: template/template.lo
2862         $(BUILDGOX)
2863 testing.gox: testing/testing.lo
2864         $(BUILDGOX)
2865 time.gox: time/time.lo
2866         $(BUILDGOX)
2867 try.gox: try/try.lo
2868         $(BUILDGOX)
2869 unicode.gox: unicode/unicode.lo
2870         $(BUILDGOX)
2871 utf16.gox: utf16/utf16.lo
2872         $(BUILDGOX)
2873 utf8.gox: utf8/utf8.lo
2874         $(BUILDGOX)
2875 websocket.gox: websocket/websocket.lo
2876         $(BUILDGOX)
2877 xml.gox: xml/xml.lo
2878         $(BUILDGOX)
2880 archive/tar.gox: archive/tar.lo
2881         $(BUILDGOX)
2882 archive/zip.gox: archive/zip.lo
2883         $(BUILDGOX)
2885 compress/bzip2.gox: compress/bzip2.lo
2886         $(BUILDGOX)
2887 compress/flate.gox: compress/flate.lo
2888         $(BUILDGOX)
2889 compress/gzip.gox: compress/gzip.lo
2890         $(BUILDGOX)
2891 compress/lzw.gox: compress/lzw.lo
2892         $(BUILDGOX)
2893 compress/zlib.gox: compress/zlib.lo
2894         $(BUILDGOX)
2896 container/heap.gox: container/heap.lo
2897         $(BUILDGOX)
2898 container/list.gox: container/list.lo
2899         $(BUILDGOX)
2900 container/ring.gox: container/ring.lo
2901         $(BUILDGOX)
2902 container/vector.gox: container/vector.lo
2903         $(BUILDGOX)
2905 crypto/aes.gox: crypto/aes.lo
2906         $(BUILDGOX)
2907 crypto/blowfish.gox: crypto/blowfish.lo
2908         $(BUILDGOX)
2909 crypto/cast5.gox: crypto/cast5.lo
2910         $(BUILDGOX)
2911 crypto/cipher.gox: crypto/cipher.lo
2912         $(BUILDGOX)
2913 crypto/des.gox: crypto/des.lo
2914         $(BUILDGOX)
2915 crypto/dsa.gox: crypto/dsa.lo
2916         $(BUILDGOX)
2917 crypto/ecdsa.gox: crypto/ecdsa.lo       
2918         $(BUILDGOX)
2919 crypto/elliptic.gox: crypto/elliptic.lo
2920         $(BUILDGOX)
2921 crypto/hmac.gox: crypto/hmac.lo
2922         $(BUILDGOX)
2923 crypto/md4.gox: crypto/md4.lo
2924         $(BUILDGOX)
2925 crypto/md5.gox: crypto/md5.lo
2926         $(BUILDGOX)
2927 crypto/ocsp.gox: crypto/ocsp.lo
2928         $(BUILDGOX)
2929 crypto/openpgp.gox: crypto/openpgp.lo
2930         $(BUILDGOX)
2931 crypto/rand.gox: crypto/rand.lo
2932         $(BUILDGOX)
2933 crypto/rc4.gox: crypto/rc4.lo
2934         $(BUILDGOX)
2935 crypto/ripemd160.gox: crypto/ripemd160.lo
2936         $(BUILDGOX)
2937 crypto/rsa.gox: crypto/rsa.lo
2938         $(BUILDGOX)
2939 crypto/sha1.gox: crypto/sha1.lo
2940         $(BUILDGOX)
2941 crypto/sha256.gox: crypto/sha256.lo
2942         $(BUILDGOX)
2943 crypto/sha512.gox: crypto/sha512.lo
2944         $(BUILDGOX)
2945 crypto/subtle.gox: crypto/subtle.lo
2946         $(BUILDGOX)
2947 crypto/tls.gox: crypto/tls.lo
2948         $(BUILDGOX)
2949 crypto/twofish.gox: crypto/twofish.lo
2950         $(BUILDGOX)
2951 crypto/x509.gox: crypto/x509.lo
2952         $(BUILDGOX)
2953 crypto/xtea.gox: crypto/xtea.lo
2954         $(BUILDGOX)
2956 crypto/openpgp/armor.gox: crypto/openpgp/armor.lo
2957         $(BUILDGOX)
2958 crypto/openpgp/error.gox: crypto/openpgp/error.lo
2959         $(BUILDGOX)
2960 crypto/openpgp/packet.gox: crypto/openpgp/packet.lo
2961         $(BUILDGOX)
2962 crypto/openpgp/s2k.gox: crypto/openpgp/s2k.lo
2963         $(BUILDGOX)
2965 debug/dwarf.gox: debug/dwarf.lo
2966         $(BUILDGOX)
2967 debug/elf.gox: debug/elf.lo
2968         $(BUILDGOX)
2969 debug/gosym.gox: debug/gosym.lo
2970         $(BUILDGOX)
2971 debug/macho.gox: debug/macho.lo
2972         $(BUILDGOX)
2973 debug/pe.gox: debug/pe.lo
2974         $(BUILDGOX)
2975 debug/proc.gox: debug/proc.lo
2976         $(BUILDGOX)
2978 encoding/ascii85.gox: encoding/ascii85.lo
2979         $(BUILDGOX)
2980 encoding/base32.gox: encoding/base32.lo
2981         $(BUILDGOX)
2982 encoding/base64.gox: encoding/base64.lo
2983         $(BUILDGOX)
2984 encoding/binary.gox: encoding/binary.lo
2985         $(BUILDGOX)
2986 encoding/git85.gox: encoding/git85.lo
2987         $(BUILDGOX)
2988 encoding/hex.gox: encoding/hex.lo
2989         $(BUILDGOX)
2990 encoding/line.gox: encoding/line.lo
2991         $(BUILDGOX)
2992 encoding/pem.gox: encoding/pem.lo
2993         $(BUILDGOX)
2995 exp/datafmt.gox: exp/datafmt.lo
2996         $(BUILDGOX)
2997 exp/draw.gox: exp/draw.lo
2998         $(BUILDGOX)
2999 exp/eval.gox: exp/eval.lo
3000         $(BUILDGOX)
3002 go/ast.gox: go/ast.lo
3003         $(BUILDGOX)
3004 go/doc.gox: go/doc.lo
3005         $(BUILDGOX)
3006 go/parser.gox: go/parser.lo
3007         $(BUILDGOX)
3008 go/printer.gox: go/printer.lo
3009         $(BUILDGOX)
3010 go/scanner.gox: go/scanner.lo
3011         $(BUILDGOX)
3012 go/token.gox: go/token.lo
3013         $(BUILDGOX)
3014 go/typechecker.gox: go/typechecker.lo
3015         $(BUILDGOX)
3016 go/types.gox: go/types.lo
3017         $(BUILDGOX)
3019 hash/adler32.gox: hash/adler32.lo
3020         $(BUILDGOX)
3021 hash/crc32.gox: hash/crc32.lo
3022         $(BUILDGOX)
3023 hash/crc64.gox: hash/crc64.lo
3024         $(BUILDGOX)
3025 hash/fnv.gox: hash/fnv.lo
3026         $(BUILDGOX)
3028 http/cgi.gox: http/cgi.lo
3029         $(BUILDGOX)
3030 http/fcgi.gox: http/fcgi.lo
3031         $(BUILDGOX)
3032 http/httptest.gox: http/httptest.lo
3033         $(BUILDGOX)
3034 http/pprof.gox: http/pprof.lo
3035         $(BUILDGOX)
3036 http/spdy.gox: http/spdy.lo
3037         $(BUILDGOX)
3039 image/gif.gox: image/gif.lo
3040         $(BUILDGOX)
3041 image/jpeg.gox: image/jpeg.lo
3042         $(BUILDGOX)
3043 image/png.gox: image/png.lo
3044         $(BUILDGOX)
3045 image/tiff.gox: image/tiff.lo
3046         $(BUILDGOX)
3047 image/ycbcr.gox: image/ycbcr.lo
3048         $(BUILDGOX)
3050 index/suffixarray.gox: index/suffixarray.lo
3051         $(BUILDGOX)
3053 io/ioutil.gox: io/ioutil.lo
3054         $(BUILDGOX)
3056 mime/multipart.gox: mime/multipart.lo
3057         $(BUILDGOX)
3059 net/dict.gox: net/dict.lo
3060         $(BUILDGOX)
3061 net/textproto.gox: net/textproto.lo
3062         $(BUILDGOX)
3064 os/inotify.gox: os/inotify.lo
3065         $(BUILDGOX)
3066 os/user.gox: os/user.lo
3067         $(BUILDGOX)
3068 os/signal.gox: os/signal.lo
3069         $(BUILDGOX)
3071 path/filepath.gox: path/filepath.lo
3072         $(BUILDGOX)
3074 rpc/jsonrpc.gox: rpc/jsonrpc.lo
3075         $(BUILDGOX)
3077 runtime/debug.gox: runtime/debug.lo
3078         $(BUILDGOX)
3079 runtime/pprof.gox: runtime/pprof.lo
3080         $(BUILDGOX)
3082 sync/atomic.gox: sync/atomic.lo
3083         $(BUILDGOX)
3085 testing/iotest.gox: testing/iotest.lo
3086         $(BUILDGOX)
3087 testing/quick.gox: testing/quick.lo
3088         $(BUILDGOX)
3089 testing/script.gox: testing/script.lo
3090         $(BUILDGOX)
3092 if LIBGO_IS_LINUX
3093 # os_inotify_check = os/inotify/check
3094 os_inotify_check =
3095 else
3096 os_inotify_check =
3097 endif
3099 TEST_PACKAGES = \
3100         asn1/check \
3101         big/check \
3102         bufio/check \
3103         bytes/check \
3104         cmath/check \
3105         ebnf/check \
3106         exec/check \
3107         expvar/check \
3108         flag/check \
3109         fmt/check \
3110         gob/check \
3111         html/check \
3112         http/check \
3113         io/check \
3114         json/check \
3115         log/check \
3116         math/check \
3117         mime/check \
3118         net/check \
3119         netchan/check \
3120         os/check \
3121         patch/check \
3122         path/check \
3123         rand/check \
3124         reflect/check \
3125         regexp/check \
3126         rpc/check \
3127         runtime/check \
3128         scanner/check \
3129         smtp/check \
3130         sort/check \
3131         strconv/check \
3132         strings/check \
3133         sync/check \
3134         syslog/check \
3135         tabwriter/check \
3136         template/check \
3137         time/check \
3138         try/check \
3139         unicode/check \
3140         utf16/check \
3141         utf8/check \
3142         websocket/check \
3143         xml/check \
3144         archive/tar/check \
3145         archive/zip/check \
3146         compress/bzip2/check \
3147         compress/flate/check \
3148         compress/gzip/check \
3149         compress/lzw/check \
3150         compress/zlib/check \
3151         container/heap/check \
3152         container/list/check \
3153         container/ring/check \
3154         container/vector/check \
3155         crypto/aes/check \
3156         crypto/blowfish/check \
3157         crypto/cast5/check \
3158         crypto/cipher/check \
3159         crypto/des/check \
3160         crypto/dsa/check \
3161         crypto/ecdsa/check \
3162         crypto/elliptic/check \
3163         crypto/hmac/check \
3164         crypto/md4/check \
3165         crypto/md5/check \
3166         crypto/ocsp/check \
3167         crypto/openpgp/check \
3168         crypto/rand/check \
3169         crypto/rc4/check \
3170         crypto/ripemd160/check \
3171         crypto/rsa/check \
3172         crypto/sha1/check \
3173         crypto/sha256/check \
3174         crypto/sha512/check \
3175         crypto/subtle/check \
3176         crypto/tls/check \
3177         crypto/twofish/check \
3178         crypto/x509/check \
3179         crypto/xtea/check \
3180         crypto/openpgp/armor/check \
3181         crypto/openpgp/packet/check \
3182         crypto/openpgp/s2k/check \
3183         debug/dwarf/check \
3184         debug/elf/check \
3185         debug/macho/check \
3186         debug/pe/check \
3187         encoding/ascii85/check \
3188         encoding/base32/check \
3189         encoding/base64/check \
3190         encoding/binary/check \
3191         encoding/git85/check \
3192         encoding/hex/check \
3193         encoding/line/check \
3194         encoding/pem/check \
3195         exp/datafmt/check \
3196         exp/draw/check \
3197         exp/eval/check \
3198         go/ast/check \
3199         go/parser/check \
3200         go/printer/check \
3201         go/scanner/check \
3202         go/token/check \
3203         go/typechecker/check \
3204         $(go_types_check_omitted_since_it_calls_6g) \
3205         hash/adler32/check \
3206         hash/crc32/check \
3207         hash/crc64/check \
3208         hash/fnv/check \
3209         http/cgi/check \
3210         http/fcgi/check \
3211         http/spdy/check \
3212         image/jpeg/check \
3213         image/png/check \
3214         image/tiff/check \
3215         image/ycbcr/check \
3216         index/suffixarray/check \
3217         io/ioutil/check \
3218         mime/multipart/check \
3219         net/textproto/check \
3220         $(os_inotify_check) \
3221         os/user/check \
3222         os/signal/check \
3223         path/filepath/check \
3224         rpc/jsonrpc/check \
3225         sync/atomic/check \
3226         testing/quick/check \
3227         testing/script/check
3229 check: check-tail
3230 check-recursive: check-head
3232 check-head:
3233         @echo "Test Run By $${USER} on `date`" > libgo.head
3234         @echo "Native configuration is $(host_triplet)" >> libgo.head
3235         @echo >> libgo.head
3236         @echo "         === libgo tests ===" >> libgo.head
3237         @echo >> libgo.head
3239 check-tail: check-recursive check-multi
3240         @lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
3241         for dir in . $(MULTIDIRS); do \
3242           mv ../$${dir}/$${lib}/libgo.sum ../$${dir}/$${lib}/libgo.sum.sep; \
3243           mv ../$${dir}/$${lib}/libgo.log ../$${dir}/$${lib}/libgo.log.sep; \
3244         done; \
3245         mv libgo.head libgo.sum; \
3246         cp libgo.sum libgo.log; \
3247         echo "Schedule of variations:" >> libgo.sum; \
3248         for dir in . $(MULTIDIRS); do \
3249           multidir=../$${dir}/$${lib}; \
3250           multivar=`cat $${multidir}/libgo.var`; \
3251           echo "    $${multivar}" >> libgo.sum; \
3252         done; \
3253         echo >> libgo.sum; \
3254         pass=0; fail=0; untested=0; \
3255         for dir in . $(MULTIDIRS); do \
3256           multidir=../$${dir}/$${lib}; \
3257           multivar=`cat $${multidir}/libgo.var`; \
3258           echo "Running target $${multivar}" >> libgo.sum; \
3259           echo "Running $(srcdir)/libgo.exp ..." >> libgo.sum; \
3260           cat $${multidir}/libgo.sum.sep >> libgo.sum; \
3261           cat $${multidir}/libgo.log.sep >> libgo.log; \
3262           if test -n "${MULTIDIRS}"; then \
3263             echo "              === libgo Summary for $${multivar} ===" >> libgo.sum; \
3264             echo >> libgo.sum; \
3265           fi; \
3266           p=`grep -c PASS $${multidir}/libgo.sum.sep`; \
3267           pass=`expr $$pass + $$p`; \
3268           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3269             echo "# of expected passes          $$p" >> libgo.sum; \
3270           fi; \
3271           p=`grep -c FAIL $${multidir}/libgo.sum.sep`; \
3272           fail=`expr $$fail + $$p`; \
3273           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3274             echo "# of unexpected failures      $$p" >> libgo.sum; \
3275           fi; \
3276           p=`grep -c UNTESTED $${multidir}/libgo.sum.sep`; \
3277           untested=`expr $$untested + $$p`; \
3278           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3279             echo "# of untested testcases               $$p" >> libgo.sum; \
3280           fi; \
3281         done; \
3282         echo >> libgo.sum; \
3283         echo "          === libgo Summary ===" >> libgo.sum; \
3284         echo >> libgo.sum; \
3285         if test "$$pass" -ne "0"; then \
3286           echo "# of expected passes            $$pass" >> libgo.sum; \
3287         fi; \
3288         if test "$$fail" -ne "0"; then \
3289           echo "# of unexpected failures        $$fail" >> libgo.sum; \
3290         fi; \
3291         if test "$$untested" -ne "0"; then \
3292           echo "# of untested testcases         $$untested" >> libgo.sum; \
3293         fi; \
3294         echo `echo $(GOC) | sed -e 's/ .*//'`  `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
3295         echo >> libgo.log; \
3296         echo "runtest completed at `date`" >> libgo.log; \
3297         if test "$$fail" -ne "0"; then \
3298           status=1; \
3299         else \
3300           status=0; \
3301         fi; \
3302         exit $$status
3304 check-am:
3305         @rm -f libgo.sum libgo.log libgo.tail
3306         @multivar="unix"; \
3307         [ -z "$(MULTIFLAGS)" ] || multivar="$${multivar}/$(MULTIFLAGS)"; \
3308         echo "$${multivar}" > libgo.var
3309         @for f in $(TEST_PACKAGES); do \
3310            rm -f $$f-testsum $$f-testlog; \
3311          done
3312         -@$(MAKE) -k $(TEST_PACKAGES)
3313         @for f in $(TEST_PACKAGES); do \
3314           if test -f $$f-testsum; then \
3315             cat $$f-testsum >> libgo.sum; \
3316           fi; \
3317           if test -f $$f-testlog; then \
3318             cat $$f-testlog >> libgo.log; \
3319           fi; \
3320         done
3322 check-multi:
3323         $(MULTIDO) $(AM_MAKEFLAGS) DO=check-am multi-do # $(MAKE)
3325 MOSTLYCLEAN_FILES = libgo.head libgo.sum.sep libgo.log.sep
3327 mostlyclean-local:
3328         find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
3329         find . -name '*.$(OBJEXT)' -print | xargs rm -f
3330         find . -name '*-testsum' -print | xargs rm -f
3331         find . -name '*-testlog' -print | xargs rm -f
3333 CLEANFILES = *.go *.gox goc2c *.c s-version libgo.sum libgo.log
3335 clean-local:
3336         find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
3337         find . -name '*.a' -print | xargs rm -f