OSDN Git Service

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