OSDN Git Service

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