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