2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / libgo / Makefile.am
blob7801290d26361daade80829768c1603566f1e4c0
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         context.gox \
115         crypto.gox \
116         encoding.gox \
117         errors.gox \
118         expvar.gox \
119         flag.gox \
120         fmt.gox \
121         hash.gox \
122         html.gox \
123         image.gox \
124         io.gox \
125         log.gox \
126         math.gox \
127         mime.gox \
128         net.gox \
129         os.gox \
130         path.gox \
131         reflect.gox \
132         regexp.gox \
133         runtime.gox \
134         sort.gox \
135         strconv.gox \
136         strings.gox \
137         sync.gox \
138         syscall.gox \
139         testing.gox \
140         time.gox \
141         unicode.gox
143 toolexeclibgoarchivedir = $(toolexeclibgodir)/archive
145 toolexeclibgoarchive_DATA = \
146         archive/tar.gox \
147         archive/zip.gox
149 toolexeclibgocompressdir = $(toolexeclibgodir)/compress
151 toolexeclibgocompress_DATA = \
152         compress/bzip2.gox \
153         compress/flate.gox \
154         compress/gzip.gox \
155         compress/lzw.gox \
156         compress/zlib.gox
158 toolexeclibgocontainerdir = $(toolexeclibgodir)/container
160 toolexeclibgocontainer_DATA = \
161         container/heap.gox \
162         container/list.gox \
163         container/ring.gox
165 toolexeclibgocryptodir = $(toolexeclibgodir)/crypto
167 toolexeclibgocrypto_DATA = \
168         crypto/aes.gox \
169         crypto/cipher.gox \
170         crypto/des.gox \
171         crypto/dsa.gox \
172         crypto/ecdsa.gox \
173         crypto/elliptic.gox \
174         crypto/hmac.gox \
175         crypto/md5.gox \
176         crypto/rand.gox \
177         crypto/rc4.gox \
178         crypto/rsa.gox \
179         crypto/sha1.gox \
180         crypto/sha256.gox \
181         crypto/sha512.gox \
182         crypto/subtle.gox \
183         crypto/tls.gox \
184         crypto/x509.gox
186 toolexeclibgocryptox509dir = $(toolexeclibgocryptodir)/x509
188 toolexeclibgocryptox509_DATA = \
189         crypto/x509/pkix.gox
191 toolexeclibgodatabasedir = $(toolexeclibgodir)/database
193 toolexeclibgodatabase_DATA = \
194         database/sql.gox
196 toolexeclibgodatabasesqldir = $(toolexeclibgodatabasedir)/sql
198 toolexeclibgodatabasesql_DATA = \
199         database/sql/driver.gox
201 toolexeclibgodebugdir = $(toolexeclibgodir)/debug
203 toolexeclibgodebug_DATA = \
204         debug/dwarf.gox \
205         debug/elf.gox \
206         debug/gosym.gox \
207         debug/macho.gox \
208         debug/pe.gox \
209         debug/plan9obj.gox
211 toolexeclibgoencodingdir = $(toolexeclibgodir)/encoding
213 toolexeclibgoencoding_DATA = \
214         encoding/ascii85.gox \
215         encoding/asn1.gox \
216         encoding/base32.gox \
217         encoding/base64.gox \
218         encoding/binary.gox \
219         encoding/csv.gox \
220         encoding/gob.gox \
221         encoding/hex.gox \
222         encoding/json.gox \
223         encoding/pem.gox \
224         encoding/xml.gox
226 toolexeclibgoexpdir = $(toolexeclibgodir)/exp
228 toolexeclibgoexp_DATA = \
229         exp/proxy.gox \
230         exp/terminal.gox
232 toolexeclibgogodir = $(toolexeclibgodir)/go
234 toolexeclibgogo_DATA = \
235         go/ast.gox \
236         go/build.gox \
237         go/constant.gox \
238         go/doc.gox \
239         go/format.gox \
240         go/importer.gox \
241         go/parser.gox \
242         go/printer.gox \
243         go/scanner.gox \
244         go/token.gox \
245         go/types.gox
247 toolexeclibgohashdir = $(toolexeclibgodir)/hash
249 toolexeclibgohash_DATA = \
250         hash/adler32.gox \
251         hash/crc32.gox \
252         hash/crc64.gox \
253         hash/fnv.gox
255 toolexeclibgohtmldir = $(toolexeclibgodir)/html
257 toolexeclibgohtml_DATA = \
258         html/template.gox
260 toolexeclibgoimagedir = $(toolexeclibgodir)/image
262 toolexeclibgoimage_DATA = \
263         image/color.gox \
264         image/draw.gox \
265         image/gif.gox \
266         image/jpeg.gox \
267         image/png.gox
269 toolexeclibgoimagecolordir = $(toolexeclibgoimagedir)/color
271 toolexeclibgoimagecolor_DATA = \
272         image/color/palette.gox
274 toolexeclibgoindexdir = $(toolexeclibgodir)/index
276 toolexeclibgoindex_DATA = \
277         index/suffixarray.gox
279 toolexeclibgoiodir = $(toolexeclibgodir)/io
281 toolexeclibgoio_DATA = \
282         io/ioutil.gox
284 toolexeclibgologdir = $(toolexeclibgodir)/log
286 toolexeclibgolog_DATA = \
287         log/syslog.gox
289 toolexeclibgomathdir = $(toolexeclibgodir)/math
291 toolexeclibgomath_DATA = \
292         math/big.gox \
293         math/cmplx.gox \
294         math/rand.gox
296 toolexeclibgomimedir = $(toolexeclibgodir)/mime
298 toolexeclibgomime_DATA = \
299         mime/multipart.gox \
300         mime/quotedprintable.gox
302 toolexeclibgonetdir = $(toolexeclibgodir)/net
304 toolexeclibgonet_DATA = \
305         net/http.gox \
306         net/mail.gox \
307         net/rpc.gox \
308         net/smtp.gox \
309         net/textproto.gox \
310         net/url.gox
312 toolexeclibgonethttpdir = $(toolexeclibgonetdir)/http
314 toolexeclibgonethttp_DATA = \
315         net/http/cgi.gox \
316         net/http/cookiejar.gox \
317         net/http/fcgi.gox \
318         net/http/httptest.gox \
319         net/http/httptrace.gox \
320         net/http/httputil.gox \
321         net/http/pprof.gox
323 toolexeclibgonetrpcdir = $(toolexeclibgonetdir)/rpc
325 toolexeclibgonetrpc_DATA = \
326         net/rpc/jsonrpc.gox
328 toolexeclibgoolddir = $(toolexeclibgodir)/old
330 toolexeclibgoold_DATA = \
331         old/regexp.gox \
332         old/template.gox
334 toolexeclibgoosdir = $(toolexeclibgodir)/os
336 toolexeclibgoos_DATA = \
337         os/exec.gox \
338         os/signal.gox \
339         os/user.gox
341 toolexeclibgopathdir = $(toolexeclibgodir)/path
343 toolexeclibgopath_DATA = \
344         path/filepath.gox
346 toolexeclibgoregexpdir = $(toolexeclibgodir)/regexp
348 toolexeclibgoregexp_DATA = \
349         regexp/syntax.gox
351 toolexeclibgoruntimedir = $(toolexeclibgodir)/runtime
353 toolexeclibgoruntime_DATA = \
354         runtime/debug.gox \
355         runtime/pprof.gox
357 toolexeclibgosyncdir = $(toolexeclibgodir)/sync
359 toolexeclibgosync_DATA = \
360         sync/atomic.gox
362 toolexeclibgotestingdir = $(toolexeclibgodir)/testing
364 toolexeclibgotesting_DATA = \
365         testing/iotest.gox \
366         testing/quick.gox
368 toolexeclibgotextdir = $(toolexeclibgodir)/text
370 toolexeclibgotext_DATA = \
371         text/scanner.gox \
372         text/tabwriter.gox \
373         text/template.gox
375 toolexeclibgotexttemplatedir = $(toolexeclibgotextdir)/template
377 toolexeclibgotexttemplate_DATA = \
378         text/template/parse.gox
380 toolexeclibgounicodedir = $(toolexeclibgodir)/unicode
382 toolexeclibgounicode_DATA = \
383         unicode/utf16.gox \
384         unicode/utf8.gox
386 if HAVE_SYS_MMAN_H
387 runtime_mem_file = runtime/mem.c
388 else
389 runtime_mem_file = runtime/mem_posix_memalign.c
390 endif
392 if LIBGO_IS_RTEMS
393 rtems_task_variable_add_file = runtime/rtems-task-variable-add.c
394 else
395 rtems_task_variable_add_file =
396 endif
398 if LIBGO_IS_LINUX
399 runtime_lock_files = runtime/lock_futex.c runtime/thread-linux.c
400 else
401 runtime_lock_files = runtime/lock_sema.c runtime/thread-sema.c
402 endif
404 if LIBGO_IS_LINUX
405 runtime_getncpu_file = runtime/getncpu-linux.c
406 else
407 if LIBGO_IS_DARWIN
408 runtime_getncpu_file = runtime/getncpu-bsd.c
409 else
410 if LIBGO_IS_IRIX
411 runtime_getncpu_file = runtime/getncpu-irix.c
412 else
413 if LIBGO_IS_SOLARIS
414 runtime_getncpu_file = runtime/getncpu-solaris.c
415 else
416 if LIBGO_IS_FREEBSD
417 runtime_getncpu_file = runtime/getncpu-bsd.c
418 else
419 if LIBGO_IS_NETBSD
420 runtime_getncpu_file = runtime/getncpu-bsd.c
421 else
422 runtime_getncpu_file = runtime/getncpu-none.c
423 endif
424 endif
425 endif
426 endif
427 endif
428 endif
430 if LIBGO_IS_LINUX
431 runtime_netpoll_files = runtime/netpoll_epoll.c
432 else
433 if LIBGO_IS_SOLARIS
434 runtime_netpoll_files = runtime/netpoll_select.c
435 else
436 runtime_netpoll_files = runtime/netpoll_kqueue.c
437 endif
438 endif
440 runtime_files = \
441         runtime/go-append.c \
442         runtime/go-assert.c \
443         runtime/go-assert-interface.c \
444         runtime/go-byte-array-to-string.c \
445         runtime/go-breakpoint.c \
446         runtime/go-caller.c \
447         runtime/go-callers.c \
448         runtime/go-can-convert-interface.c \
449         runtime/go-cdiv.c \
450         runtime/go-cgo.c \
451         runtime/go-check-interface.c \
452         runtime/go-construct-map.c \
453         runtime/go-convert-interface.c \
454         runtime/go-copy.c \
455         runtime/go-defer.c \
456         runtime/go-deferred-recover.c \
457         runtime/go-eface-compare.c \
458         runtime/go-eface-val-compare.c \
459         runtime/go-ffi.c \
460         runtime/go-fieldtrack.c \
461         runtime/go-int-array-to-string.c \
462         runtime/go-int-to-string.c \
463         runtime/go-interface-compare.c \
464         runtime/go-interface-eface-compare.c \
465         runtime/go-interface-val-compare.c \
466         runtime/go-make-slice.c \
467         runtime/go-map-delete.c \
468         runtime/go-map-index.c \
469         runtime/go-map-len.c \
470         runtime/go-map-range.c \
471         runtime/go-matherr.c \
472         runtime/go-memcmp.c \
473         runtime/go-nanotime.c \
474         runtime/go-now.c \
475         runtime/go-new-map.c \
476         runtime/go-new.c \
477         runtime/go-nosys.c \
478         runtime/go-panic.c \
479         runtime/go-print.c \
480         runtime/go-recover.c \
481         runtime/go-reflect-call.c \
482         runtime/go-reflect-map.c \
483         runtime/go-rune.c \
484         runtime/go-runtime-error.c \
485         runtime/go-setenv.c \
486         runtime/go-signal.c \
487         runtime/go-strcmp.c \
488         runtime/go-string-to-byte-array.c \
489         runtime/go-string-to-int-array.c \
490         runtime/go-strplus.c \
491         runtime/go-strslice.c \
492         runtime/go-traceback.c \
493         runtime/go-type-complex.c \
494         runtime/go-type-eface.c \
495         runtime/go-type-error.c \
496         runtime/go-type-float.c \
497         runtime/go-type-identity.c \
498         runtime/go-type-interface.c \
499         runtime/go-type-string.c \
500         runtime/go-typedesc-equal.c \
501         runtime/go-unsafe-new.c \
502         runtime/go-unsafe-newarray.c \
503         runtime/go-unsafe-pointer.c \
504         runtime/go-unsetenv.c \
505         runtime/go-unwind.c \
506         runtime/go-varargs.c \
507         runtime/env_posix.c \
508         runtime/heapdump.c \
509         $(runtime_lock_files) \
510         runtime/mcache.c \
511         runtime/mcentral.c \
512         $(runtime_mem_file) \
513         runtime/mfixalloc.c \
514         runtime/mgc0.c \
515         runtime/mheap.c \
516         runtime/msize.c \
517         $(runtime_netpoll_files) \
518         runtime/panic.c \
519         runtime/parfor.c \
520         runtime/print.c \
521         runtime/proc.c \
522         runtime/runtime.c \
523         runtime/signal_unix.c \
524         runtime/thread.c \
525         runtime/yield.c \
526         $(rtems_task_variable_add_file) \
527         chan.c \
528         cpuprof.c \
529         go-iface.c \
530         lfstack.c \
531         malloc.c \
532         map.c \
533         mprof.c \
534         netpoll.c \
535         rdebug.c \
536         reflect.c \
537         runtime1.c \
538         sema.c \
539         sigqueue.c \
540         string.c \
541         time.c \
542         $(runtime_getncpu_file)
544 goc2c.$(OBJEXT): runtime/goc2c.c
545         $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
547 goc2c: goc2c.$(OBJEXT)
548         $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
550 malloc.c: $(srcdir)/runtime/malloc.goc goc2c
551         ./goc2c $< > $@.tmp
552         mv -f $@.tmp $@
554 mprof.c: $(srcdir)/runtime/mprof.goc goc2c
555         ./goc2c $< > $@.tmp
556         mv -f $@.tmp $@
558 netpoll.c: $(srcdir)/runtime/netpoll.goc goc2c
559         ./goc2c $< > $@.tmp
560         mv -f $@.tmp $@
562 reflect.c: $(srcdir)/runtime/reflect.goc goc2c
563         ./goc2c $< > $@.tmp
564         mv -f $@.tmp $@
566 runtime1.c: $(srcdir)/runtime/runtime1.goc goc2c
567         ./goc2c $< > $@.tmp
568         mv -f $@.tmp $@
570 sema.c: $(srcdir)/runtime/sema.goc goc2c
571         ./goc2c $< > $@.tmp
572         mv -f $@.tmp $@
574 sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
575         ./goc2c --go-pkgpath os_signal $< > $@.tmp
576         mv -f $@.tmp $@
578 time.c: $(srcdir)/runtime/time.goc goc2c
579         ./goc2c $< > $@.tmp
580         mv -f $@.tmp $@
582 %.c: $(srcdir)/runtime/%.goc goc2c
583         ./goc2c $< > $@.tmp
584         mv -f $@.tmp $@
586 go_bufio_files = \
587         go/bufio/bufio.go \
588         go/bufio/scan.go
590 go_bytes_files = \
591         go/bytes/buffer.go \
592         go/bytes/bytes.go \
593         go/bytes/bytes_decl.go \
594         go/bytes/reader.go
595 go_bytes_c_files = \
596         go/bytes/indexbyte.c
598 go_context_files = \
599         go/context/context.go
601 go_crypto_files = \
602         go/crypto/crypto.go
604 go_encoding_files = \
605         go/encoding/encoding.go
607 go_errors_files = \
608         go/errors/errors.go
610 go_expvar_files = \
611         go/expvar/expvar.go
613 go_flag_files = \
614         go/flag/flag.go
616 go_fmt_files = \
617         go/fmt/doc.go \
618         go/fmt/format.go \
619         go/fmt/print.go \
620         go/fmt/scan.go
622 go_hash_files = \
623         go/hash/hash.go
625 go_html_files = \
626         go/html/entity.go \
627         go/html/escape.go
629 go_image_files = \
630         go/image/format.go \
631         go/image/geom.go \
632         go/image/image.go \
633         go/image/names.go \
634         go/image/ycbcr.go
636 go_io_files = \
637         go/io/multi.go \
638         go/io/io.go \
639         go/io/pipe.go
641 go_log_files = \
642         go/log/log.go
644 go_math_files = \
645         go/math/abs.go \
646         go/math/acosh.go \
647         go/math/asin.go \
648         go/math/asinh.go \
649         go/math/atan.go \
650         go/math/atanh.go \
651         go/math/atan2.go \
652         go/math/bits.go \
653         go/math/cbrt.go \
654         go/math/const.go \
655         go/math/copysign.go \
656         go/math/dim.go \
657         go/math/erf.go \
658         go/math/exp.go \
659         go/math/expm1.go \
660         go/math/floor.go \
661         go/math/frexp.go \
662         go/math/gamma.go \
663         go/math/hypot.go \
664         go/math/j0.go \
665         go/math/j1.go \
666         go/math/jn.go \
667         go/math/ldexp.go \
668         go/math/lgamma.go \
669         go/math/log.go \
670         go/math/log1p.go \
671         go/math/log10.go \
672         go/math/logb.go \
673         go/math/mod.go \
674         go/math/modf.go \
675         go/math/nextafter.go \
676         go/math/pow.go \
677         go/math/pow10.go \
678         go/math/remainder.go \
679         go/math/signbit.go \
680         go/math/sin.go \
681         go/math/sincos.go \
682         go/math/sinh.go \
683         go/math/sqrt.go \
684         go/math/tan.go \
685         go/math/tanh.go \
686         go/math/unsafe.go
688 if LIBGO_IS_OPENBSD
689 go_mime_type_file = go/mime/type_openbsd.go
690 else
691 if LIBGO_IS_FREEBSD
692 go_mime_type_file = go/mime/type_freebsd.go
693 else
694 if LIBGO_IS_DRAGONFLY
695 go_mime_type_file = go/mime/type_dragonfly.go
696 else
697 go_mime_type_file =
698 endif
699 endif
700 endif
702 go_mime_files = \
703         go/mime/encodedword.go \
704         go/mime/grammar.go \
705         go/mime/mediatype.go \
706         go/mime/type.go \
707         go/mime/type_unix.go \
708         $(go_mime_type_file)
710 if LIBGO_IS_LINUX
711 go_net_cgo_file = go/net/cgo_linux.go
712 go_net_sock_file = go/net/sock_linux.go
713 go_net_sockopt_file = go/net/sockopt_linux.go
714 go_net_sockoptip_file = go/net/sockoptip_linux.go go/net/sockoptip_posix.go
715 go_net_cgo_sock_file = go/net/cgo_socknew.go
716 go_net_cgo_res_file = go/net/cgo_resnew.go
717 else
718 if LIBGO_IS_IRIX
719 go_net_cgo_file = go/net/cgo_linux.go
720 go_net_sock_file = go/net/sock_linux.go
721 go_net_sockopt_file = go/net/sockopt_linux.go
722 go_net_sockoptip_file = go/net/sockoptip_linux.go go/net/sockoptip_posix.go
723 go_net_cgo_sock_file = go/net/cgo_socknew.go
724 go_net_cgo_res_file = go/net/cgo_resnew.go
725 else
726 if LIBGO_IS_SOLARIS
727 go_net_cgo_file = go/net/cgo_solaris.go
728 go_net_sock_file = go/net/sock_stub.go
729 go_net_sockopt_file = go/net/sockopt_solaris.go
730 go_net_sockoptip_file = go/net/sockoptip_stub.go
731 go_net_cgo_sock_file = go/net/cgo_socknew.go
732 go_net_cgo_res_file = go/net/cgo_resnew.go
733 else
734 if LIBGO_IS_FREEBSD
735 go_net_cgo_file = go/net/cgo_bsd.go
736 go_net_sock_file = go/net/sock_bsd.go
737 go_net_sockopt_file = go/net/sockopt_bsd.go
738 go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
739 go_net_cgo_sock_file = go/net/cgo_sockold.go
740 go_net_cgo_res_file = go/net/cgo_resold.go
741 else
742 if LIBGO_IS_NETBSD
743 go_net_cgo_file = go/net/cgo_netbsd.go
744 go_net_sock_file = go/net/sock_bsd.go
745 go_net_sockopt_file = go/net/sockopt_bsd.go
746 go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
747 go_net_cgo_sock_file = go/net/cgo_sockold.go
748 go_net_cgo_res_file = go/net/cgo_resnew.go
749 else
750 go_net_cgo_file = go/net/cgo_bsd.go
751 go_net_sock_file = go/net/sock_bsd.go
752 go_net_sockopt_file = go/net/sockopt_bsd.go
753 go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
754 go_net_cgo_sock_file = go/net/cgo_sockold.go
755 go_net_cgo_res_file = go/net/cgo_resold.go
756 endif
757 endif
758 endif
759 endif
760 endif
762 if LIBGO_IS_LINUX
763 go_net_sendfile_file = go/net/sendfile_linux.go
764 else
765 if LIBGO_IS_FREEBSD
766 go_net_sendfile_file = go/net/sendfile_freebsd.go
767 else
768 if LIBGO_IS_DRAGONFLY
769 go_net_sendfile_file = go/net/sendfile_dragonfly.go
770 else
771 if LIBGO_IS_SOLARIS
772 go_net_sendfile_file = go/net/sendfile_solaris.go
773 else
774 go_net_sendfile_file = go/net/sendfile_stub.go
775 endif
776 endif
777 endif
778 endif
780 if LIBGO_IS_LINUX
781 go_net_interface_file = go/net/interface_linux.go
782 else
783 if LIBGO_IS_NETBSD
784 go_net_interface_file = go/net/interface_bsdvar.go
785 else
786 if LIBGO_IS_DRAGONFLY
787 go_net_interface_file = go/net/interface_bsdvar.go
788 else
789 if LIBGO_IS_OPENBSD
790 go_net_interface_file = go/net/interface_bsdvar.go
791 else
792 go_net_interface_file = go/net/interface_stub.go
793 endif
794 endif
795 endif
796 endif
798 if LIBGO_IS_LINUX
799 go_net_cloexec_file = go/net/sock_cloexec.go go/net/hook_cloexec.go
800 else
801 if LIBGO_IS_FREEBSD
802 go_net_cloexec_file = go/net/sock_cloexec.go go/net/hook_cloexec.go
803 else
804 go_net_cloexec_file = go/net/sys_cloexec.go
805 endif
806 endif
808 if LIBGO_IS_OPENBSD
809 go_net_tcpsockopt_file = go/net/tcpsockopt_openbsd.go
810 else
811 if LIBGO_IS_DARWIN
812 go_net_tcpsockopt_file = go/net/tcpsockopt_darwin.go
813 else
814 if LIBGO_IS_SOLARIS
815 go_net_tcpsockopt_file = go/net/tcpsockopt_solaris.go
816 else
817 if LIBGO_IS_DRAGONFLY
818 go_net_tcpsockopt_file = go/net/tcpsockopt_dragonfly.go
819 else
820 go_net_tcpsockopt_file = go/net/tcpsockopt_unix.go
821 endif
822 endif
823 endif
824 endif
826 go_net_common_files = \
827         go/net/addrselect.go \
828         $(go_net_cloexec_file) \
829         go/net/conf.go \
830         go/net/dial.go \
831         go/net/dnsclient.go \
832         go/net/dnsclient_unix.go \
833         go/net/dnsconfig_unix.go \
834         go/net/dnsmsg.go \
835         go/net/fd_mutex.go \
836         go/net/fd_posix.go \
837         go/net/fd_unix.go \
838         go/net/file.go \
839         go/net/file_unix.go \
840         go/net/hook.go \
841         go/net/hook_unix.go \
842         go/net/hosts.go \
843         go/net/interface.go \
844         $(go_net_interface_file) \
845         go/net/ip.go \
846         go/net/iprawsock.go \
847         go/net/iprawsock_posix.go \
848         go/net/ipsock.go \
849         go/net/ipsock_posix.go \
850         go/net/lookup.go \
851         go/net/lookup_unix.go \
852         go/net/mac.go \
853         go/net/net.go \
854         go/net/nss.go \
855         go/net/parse.go \
856         go/net/pipe.go \
857         go/net/port.go \
858         go/net/fd_poll_runtime.go \
859         go/net/port_unix.go \
860         $(go_net_sendfile_file) \
861         go/net/sock_posix.go \
862         $(go_net_sock_file) \
863         go/net/sockopt_posix.go \
864         $(go_net_sockopt_file) \
865         $(go_net_sockoptip_file) \
866         go/net/tcpsock.go \
867         go/net/tcpsock_posix.go \
868         go/net/tcpsockopt_posix.go \
869         $(go_net_tcpsockopt_file) \
870         go/net/udpsock.go \
871         go/net/udpsock_posix.go \
872         go/net/unixsock.go \
873         go/net/unixsock_posix.go
875 go_net_files = \
876         go/net/cgo_unix.go \
877         $(go_net_cgo_file) \
878         $(go_net_cgo_res_file) \
879         $(go_net_cgo_sock_file) \
880         $(go_net_common_files)
882 go_netgo_files = \
883         go/net/cgo_stub.go \
884         $(go_net_common_files)
886 if LIBGO_IS_SOLARIS
887 if LIBGO_IS_386
888 go_os_dir_file = go/os/dir_largefile.go
889 else
890 if LIBGO_IS_SPARC
891 go_os_dir_file = go/os/dir_largefile.go
892 else
893 go_os_dir_file = go/os/dir_regfile.go
894 endif
895 endif
896 else
897 if LIBGO_IS_LINUX
898 go_os_dir_file = go/os/dir_largefile.go
899 else
900 go_os_dir_file = go/os/dir_regfile.go
901 endif
902 endif
904 if LIBGO_IS_DARWIN
905 go_os_getwd_file = go/os/getwd_darwin.go
906 else
907 go_os_getwd_file =
908 endif
910 if LIBGO_IS_LINUX
911 go_os_sys_file = go/os/sys_linux.go
912 else
913 if LIBGO_IS_SOLARIS
914 go_os_sys_file = go/os/sys_uname.go
915 else
916 if LIBGO_IS_IRIX
917 go_os_sys_file = go/os/sys_uname.go
918 else
919 if LIBGO_IS_RTEMS
920 go_os_sys_file = go/os/sys_uname.go
921 else
922 go_os_sys_file = go/os/sys_bsd.go
923 endif
924 endif
925 endif
926 endif
928 if LIBGO_IS_FREEBSD
929 go_os_cloexec_file = go/os/sys_freebsd.go
930 else
931 if LIBGO_IS_DARWIN
932 go_os_cloexec_file = go/os/sys_darwin.go
933 else
934 go_os_cloexec_file = go/os/sys_unix.go
935 endif
936 endif
938 if LIBGO_IS_SOLARIS
939 if HAVE_STAT_TIMESPEC
940 go_os_stat_file = go/os/stat_atim.go
941 else
942 go_os_stat_file = go/os/stat_solaris.go
943 endif
944 else
945 if LIBGO_IS_LINUX
946 go_os_stat_file = go/os/stat_atim.go
947 else
948 if LIBGO_IS_OPENBSD
949 go_os_stat_file = go/os/stat_atim.go
950 else
951 if LIBGO_IS_DARWIN
952 go_os_stat_file = go/os/stat_atimespec.go
953 else
954 if LIBGO_IS_FREEBSD
955 go_os_stat_file = go/os/stat_atimespec.go
956 else
957 if LIBGO_IS_NETBSD
958 go_os_stat_file = go/os/stat_atimespec.go
959 else
960 if LIBGO_IS_DRAGONFLY
961 go_os_stat_file = go/os/stat_dragonfly.go
962 else
963 go_os_stat_file = go/os/stat.go
964 endif
965 endif
966 endif
967 endif
968 endif
969 endif
970 endif
972 if LIBGO_IS_LINUX
973 go_os_pipe_file = go/os/pipe_linux.go
974 else
975 go_os_pipe_file = go/os/pipe_bsd.go
976 endif
978 if LIBGO_IS_DARWIN
979 go_os_sticky_file = go/os/sticky_bsd.go
980 else
981 if LIBGO_IS_DRAGONFLY
982 go_os_sticky_file = go/os/sticky_bsd.go
983 else
984 if LIBGO_IS_FREEBSD
985 go_os_sticky_file = go/os/sticky_bsd.go
986 else
987 if LIBGO_IS_NETBSD
988 go_os_sticky_file = go/os/sticky_bsd.go
989 else
990 if LIBGO_IS_OPENBSD
991 go_os_sticky_file = go/os/sticky_bsd.go
992 else
993 if LIBGO_IS_SOLARIS
994 go_os_sticky_file = go/os/sticky_bsd.go
995 else
996 go_os_sticky_file = go/os/sticky_notbsd.go
997 endif
998 endif
999 endif
1000 endif
1001 endif
1002 endif
1004 if LIBGO_IS_LINUX
1005 go_os_wait_file = go/os/wait_waitid.go
1006 else
1007 if LIBGO_IS_DARWIN
1008 go_os_wait_file = go/os/wait_waitid.go
1009 else
1010 if LIBGO_IS_FREEBSD
1011 go_os_wait_file = go/os/wait_wait6.go
1012 else
1013 go_os_wait_file = go/os/wait_unimp.go
1014 endif
1015 endif
1016 endif
1018 go_os_files = \
1019         $(go_os_dir_file) \
1020         go/os/dir.go \
1021         go/os/doc.go \
1022         go/os/env.go \
1023         go/os/error.go \
1024         go/os/error_unix.go \
1025         go/os/exec.go \
1026         go/os/exec_posix.go \
1027         go/os/exec_unix.go \
1028         go/os/file.go \
1029         go/os/file_posix.go \
1030         go/os/file_unix.go \
1031         go/os/getwd.go \
1032         $(go_os_getwd_file) \
1033         go/os/path.go \
1034         go/os/path_unix.go \
1035         $(go_os_pipe_file) \
1036         go/os/proc.go \
1037         $(go_os_stat_file) \
1038         $(go_os_sticky_file) \
1039         go/os/str.go \
1040         $(go_os_sys_file) \
1041         $(go_os_cloexec_file) \
1042         go/os/types.go \
1043         go/os/types_unix.go \
1044         $(go_os_wait_file)
1046 go_path_files = \
1047         go/path/match.go \
1048         go/path/path.go
1050 go_reflect_files = \
1051         go/reflect/deepequal.go \
1052         go/reflect/makefunc.go \
1053         go/reflect/makefunc_ffi.go \
1054         go/reflect/type.go \
1055         go/reflect/value.go
1056 go_reflect_makefunc_c_file = \
1057         go/reflect/makefunc_ffi_c.c
1059 go_regexp_files = \
1060         go/regexp/backtrack.go \
1061         go/regexp/exec.go \
1062         go/regexp/onepass.go \
1063         go/regexp/regexp.go
1065 go_net_rpc_files = \
1066         go/net/rpc/client.go \
1067         go/net/rpc/debug.go \
1068         go/net/rpc/server.go
1070 go_runtime_files = \
1071         go/runtime/compiler.go \
1072         go/runtime/debug.go \
1073         go/runtime/error.go \
1074         go/runtime/extern.go \
1075         go/runtime/mem.go \
1076         go/runtime/symtab.go \
1077         version.go
1079 version.go: s-version; @true
1080 s-version: Makefile
1081         rm -f version.go.tmp
1082         echo "package runtime" > version.go.tmp
1083         echo 'const defaultGoroot = "$(prefix)"' >> version.go.tmp
1084         echo 'const theVersion = "'`cat $(srcdir)/VERSION | sed 1q`' '`$(GOC) --version | sed 1q`'"' >> version.go.tmp
1085         echo 'const theGoarch = "'$(GOARCH)'"' >> version.go.tmp
1086         echo 'const theGoos = "'$(GOOS)'"' >> version.go.tmp
1087         echo 'const theGccgoToolDir = "$(libexecsubdir)"' >> version.go.tmp
1088         $(SHELL) $(srcdir)/mvifdiff.sh version.go.tmp version.go
1089         $(STAMP) $@
1091 noinst_DATA = zstdpkglist.go
1093 # Generate the list of go std packages that were included in libgo
1094 zstdpkglist.go: s-zstdpkglist; @true
1095 s-zstdpkglist: Makefile
1096         rm -f zstdpkglist.go.tmp
1097         echo 'package main' > zstdpkglist.go.tmp
1098         echo "" >> zstdpkglist.go.tmp
1099         echo 'var stdpkg = map[string]bool{' >> zstdpkglist.go.tmp
1100         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
1101         echo '}' >> zstdpkglist.go.tmp
1102         $(SHELL) $(srcdir)/mvifdiff.sh zstdpkglist.go.tmp zstdpkglist.go
1103         $(STAMP) $@
1105 go_sort_files = \
1106         go/sort/search.go \
1107         go/sort/sort.go
1109 go_strconv_files = \
1110         go/strconv/atob.go \
1111         go/strconv/atof.go \
1112         go/strconv/atoi.go \
1113         go/strconv/decimal.go \
1114         go/strconv/doc.go \
1115         go/strconv/extfloat.go \
1116         go/strconv/ftoa.go \
1117         go/strconv/isprint.go \
1118         go/strconv/itoa.go \
1119         go/strconv/quote.go
1121 go_strings_files = \
1122         go/strings/compare.go \
1123         go/strings/reader.go \
1124         go/strings/replace.go \
1125         go/strings/search.go \
1126         go/strings/strings.go \
1127         go/strings/strings_decl.go \
1128         go/strings/strings_generic.go
1129 go_strings_c_files = \
1130         go/strings/indexbyte.c
1132 go_sync_files = \
1133         go/sync/cond.go \
1134         go/sync/mutex.go \
1135         go/sync/once.go \
1136         go/sync/pool.go \
1137         go/sync/runtime.go \
1138         go/sync/rwmutex.go \
1139         go/sync/waitgroup.go
1141 if LIBGO_IS_SOLARIS
1142 go_syslog_file = go/log/syslog/syslog_libc.go
1143 else
1144 if LIBGO_IS_IRIX
1145 go_syslog_file = go/log/syslog/syslog_libc.go
1146 else
1147 go_syslog_file = go/log/syslog/syslog_unix.go
1148 endif
1149 endif
1151 go_log_syslog_files = \
1152         go/log/syslog/doc.go \
1153         go/log/syslog/syslog.go \
1154         $(go_syslog_file)
1155 go_syslog_c_files = \
1156         go/log/syslog/syslog_c.c
1158 go_testing_files = \
1159         go/testing/allocs.go \
1160         go/testing/benchmark.go \
1161         go/testing/cover.go \
1162         go/testing/example.go \
1163         go/testing/match.go \
1164         go/testing/testing.go
1166 go_time_files = \
1167         go/time/format.go \
1168         go/time/sleep.go \
1169         go/time/sys_unix.go \
1170         go/time/tick.go \
1171         go/time/time.go \
1172         go/time/zoneinfo.go \
1173         go/time/zoneinfo_read.go \
1174         go/time/zoneinfo_unix.go
1176 go_unicode_files = \
1177         go/unicode/casetables.go \
1178         go/unicode/digit.go \
1179         go/unicode/graphic.go \
1180         go/unicode/letter.go \
1181         go/unicode/tables.go
1183 if LIBGO_IS_LINUX
1184 archive_tar_atim_file = go/archive/tar/stat_atim.go
1185 endif
1186 if LIBGO_IS_OPENBSD
1187 archive_tar_atim_file = go/archive/tar/stat_atim.go
1188 endif
1189 if LIBGO_IS_SOLARIS
1190 archive_tar_atim_file = go/archive/tar/stat_atim.go
1191 endif
1192 if LIBGO_IS_DARWIN
1193 archive_tar_atim_file = go/archive/tar/stat_atimespec.go
1194 endif
1195 if LIBGO_IS_FREEBSD
1196 archive_tar_atim_file = go/archive/tar/stat_atimespec.go
1197 endif
1198 if LIBGO_IS_NETBSD
1199 archive_tar_atim_file = go/archive/tar/stat_atimespec.go
1200 endif
1202 go_archive_tar_files = \
1203         go/archive/tar/common.go \
1204         go/archive/tar/format.go \
1205         go/archive/tar/reader.go \
1206         go/archive/tar/stat_unix.go \
1207         go/archive/tar/writer.go \
1208         $(archive_tar_atim_file)
1210 go_archive_zip_files = \
1211         go/archive/zip/reader.go \
1212         go/archive/zip/register.go \
1213         go/archive/zip/struct.go \
1214         go/archive/zip/writer.go
1216 go_compress_bzip2_files = \
1217         go/compress/bzip2/bit_reader.go \
1218         go/compress/bzip2/bzip2.go \
1219         go/compress/bzip2/huffman.go \
1220         go/compress/bzip2/move_to_front.go
1222 go_compress_flate_files = \
1223         go/compress/flate/deflate.go \
1224         go/compress/flate/deflatefast.go \
1225         go/compress/flate/dict_decoder.go \
1226         go/compress/flate/huffman_bit_writer.go \
1227         go/compress/flate/huffman_code.go \
1228         go/compress/flate/inflate.go \
1229         go/compress/flate/reverse_bits.go \
1230         go/compress/flate/token.go
1232 go_compress_gzip_files = \
1233         go/compress/gzip/gzip.go \
1234         go/compress/gzip/gunzip.go
1236 go_compress_lzw_files = \
1237         go/compress/lzw/reader.go \
1238         go/compress/lzw/writer.go
1240 go_compress_zlib_files = \
1241         go/compress/zlib/reader.go \
1242         go/compress/zlib/writer.go
1244 go_container_heap_files = \
1245         go/container/heap/heap.go
1247 go_container_list_files = \
1248         go/container/list/list.go
1250 go_container_ring_files = \
1251         go/container/ring/ring.go
1253 go_crypto_aes_files = \
1254         go/crypto/aes/block.go \
1255         go/crypto/aes/cipher.go \
1256         go/crypto/aes/cipher_generic.go \
1257         go/crypto/aes/const.go \
1258         go/crypto/aes/modes.go
1259 go_crypto_cipher_files = \
1260         go/crypto/cipher/cbc.go \
1261         go/crypto/cipher/cfb.go \
1262         go/crypto/cipher/cipher.go \
1263         go/crypto/cipher/ctr.go \
1264         go/crypto/cipher/gcm.go \
1265         go/crypto/cipher/io.go \
1266         go/crypto/cipher/ofb.go \
1267         go/crypto/cipher/xor.go
1268 go_crypto_des_files = \
1269         go/crypto/des/block.go \
1270         go/crypto/des/cipher.go \
1271         go/crypto/des/const.go
1272 go_crypto_dsa_files = \
1273         go/crypto/dsa/dsa.go
1274 go_crypto_ecdsa_files = \
1275         go/crypto/ecdsa/ecdsa.go
1276 go_crypto_elliptic_files = \
1277         go/crypto/elliptic/elliptic.go \
1278         go/crypto/elliptic/p224.go \
1279         go/crypto/elliptic/p256.go
1280 go_crypto_hmac_files = \
1281         go/crypto/hmac/hmac.go
1282 go_crypto_md5_files = \
1283         go/crypto/md5/md5.go \
1284         go/crypto/md5/md5block.go \
1285         go/crypto/md5/md5block_generic.go
1287 if LIBGO_IS_LINUX
1288 crypto_rand_file = go/crypto/rand/rand_linux.go
1289 else
1290 if LIBGO_IS_OPENBSD
1291 crypto_rand_file = go/crypto/rand/rand_openbsd.go
1292 else
1293 crypto_rand_file =
1294 endif
1295 endif
1297 go_crypto_rand_files = \
1298         go/crypto/rand/eagain.go \
1299         go/crypto/rand/rand.go \
1300         go/crypto/rand/rand_unix.go \
1301         $(crypto_rand_file) \
1302         go/crypto/rand/util.go
1304 go_crypto_rc4_files = \
1305         go/crypto/rc4/rc4.go \
1306         go/crypto/rc4/rc4_ref.go
1307 go_crypto_rsa_files = \
1308         go/crypto/rsa/pkcs1v15.go \
1309         go/crypto/rsa/pss.go \
1310         go/crypto/rsa/rsa.go
1311 go_crypto_sha1_files = \
1312         go/crypto/sha1/sha1.go \
1313         go/crypto/sha1/sha1block.go \
1314         go/crypto/sha1/sha1block_generic.go
1315 go_crypto_sha256_files = \
1316         go/crypto/sha256/sha256.go \
1317         go/crypto/sha256/sha256block.go \
1318         go/crypto/sha256/sha256block_generic.go
1319 go_crypto_sha512_files = \
1320         go/crypto/sha512/sha512.go \
1321         go/crypto/sha512/sha512block.go \
1322         go/crypto/sha512/sha512block_generic.go
1323 go_crypto_subtle_files = \
1324         go/crypto/subtle/constant_time.go
1325 go_crypto_tls_files = \
1326         go/crypto/tls/alert.go \
1327         go/crypto/tls/cipher_suites.go \
1328         go/crypto/tls/common.go \
1329         go/crypto/tls/conn.go \
1330         go/crypto/tls/handshake_client.go \
1331         go/crypto/tls/handshake_messages.go \
1332         go/crypto/tls/handshake_server.go \
1333         go/crypto/tls/key_agreement.go \
1334         go/crypto/tls/prf.go \
1335         go/crypto/tls/ticket.go \
1336         go/crypto/tls/tls.go
1338 if LIBGO_IS_LINUX
1339 go_crypto_x509_root_file = go/crypto/x509/root_linux.go
1340 else
1341 if LIBGO_IS_SOLARIS
1342 go_crypto_x509_root_file = go/crypto/x509/root_solaris.go
1343 else
1344 if LIBGO_IS_DRAGONFLY
1345 go_crypto_x509_root_file = go/crypto/x509/root_bsd.go
1346 else
1347 if LIBGO_IS_FREEBSD
1348 go_crypto_x509_root_file = go/crypto/x509/root_bsd.go
1349 else
1350 if LIBGO_IS_NETBSD
1351 go_crypto_x509_root_file = go/crypto/x509/root_bsd.go
1352 else
1353 if LIBGO_IS_OPENBSD
1354 go_crypto_x509_root_file = go/crypto/x509/root_bsd.go
1355 else
1356 if LIBGO_IS_DARWIN
1357 go_crypto_x509_root_file = go/crypto/x509/root_darwin.go
1358 else
1359 go_crypto_x509_root_file =
1360 endif
1361 endif
1362 endif
1363 endif
1364 endif
1365 endif
1366 endif
1368 go_crypto_x509_files = \
1369         go/crypto/x509/cert_pool.go \
1370         go/crypto/x509/pem_decrypt.go \
1371         go/crypto/x509/pkcs1.go \
1372         go/crypto/x509/pkcs8.go \
1373         go/crypto/x509/root.go \
1374         go/crypto/x509/root_unix.go \
1375         $(go_crypto_x509_root_file) \
1376         go/crypto/x509/sec1.go \
1377         go/crypto/x509/verify.go \
1378         go/crypto/x509/x509.go
1380 go_crypto_x509_pkix_files = \
1381         go/crypto/x509/pkix/pkix.go
1383 go_database_sql_files = \
1384         go/database/sql/convert.go \
1385         go/database/sql/sql.go
1387 go_database_sql_driver_files = \
1388         go/database/sql/driver/driver.go \
1389         go/database/sql/driver/types.go
1391 go_debug_dwarf_files = \
1392         go/debug/dwarf/buf.go \
1393         go/debug/dwarf/class_string.go \
1394         go/debug/dwarf/const.go \
1395         go/debug/dwarf/entry.go \
1396         go/debug/dwarf/line.go \
1397         go/debug/dwarf/open.go \
1398         go/debug/dwarf/type.go \
1399         go/debug/dwarf/typeunit.go \
1400         go/debug/dwarf/unit.go
1401 go_debug_elf_files = \
1402         go/debug/elf/elf.go \
1403         go/debug/elf/file.go \
1404         go/debug/elf/reader.go
1405 go_debug_gosym_files = \
1406         go/debug/gosym/pclntab.go \
1407         go/debug/gosym/symtab.go
1408 go_debug_macho_files = \
1409         go/debug/macho/fat.go \
1410         go/debug/macho/file.go \
1411         go/debug/macho/macho.go
1412 go_debug_pe_files = \
1413         go/debug/pe/file.go \
1414         go/debug/pe/pe.go \
1415         go/debug/pe/section.go \
1416         go/debug/pe/string.go \
1417         go/debug/pe/symbol.go
1418 go_debug_plan9obj_files = \
1419         go/debug/plan9obj/file.go \
1420         go/debug/plan9obj/plan9obj.go
1422 go_encoding_ascii85_files = \
1423         go/encoding/ascii85/ascii85.go
1424 go_encoding_asn1_files = \
1425         go/encoding/asn1/asn1.go \
1426         go/encoding/asn1/common.go \
1427         go/encoding/asn1/marshal.go
1428 go_encoding_base32_files = \
1429         go/encoding/base32/base32.go
1430 go_encoding_base64_files = \
1431         go/encoding/base64/base64.go
1432 go_encoding_binary_files = \
1433         go/encoding/binary/binary.go \
1434         go/encoding/binary/varint.go
1435 go_encoding_csv_files = \
1436         go/encoding/csv/reader.go \
1437         go/encoding/csv/writer.go
1438 go_encoding_gob_files = \
1439         go/encoding/gob/decode.go \
1440         go/encoding/gob/decoder.go \
1441         go/encoding/gob/dec_helpers.go \
1442         go/encoding/gob/doc.go \
1443         go/encoding/gob/encode.go \
1444         go/encoding/gob/encoder.go \
1445         go/encoding/gob/enc_helpers.go \
1446         go/encoding/gob/error.go \
1447         go/encoding/gob/type.go
1448 go_encoding_hex_files = \
1449         go/encoding/hex/hex.go
1450 go_encoding_json_files = \
1451         go/encoding/json/decode.go \
1452         go/encoding/json/encode.go \
1453         go/encoding/json/fold.go \
1454         go/encoding/json/indent.go \
1455         go/encoding/json/scanner.go \
1456         go/encoding/json/stream.go \
1457         go/encoding/json/tags.go
1458 go_encoding_pem_files = \
1459         go/encoding/pem/pem.go
1460 go_encoding_xml_files = \
1461         go/encoding/xml/marshal.go \
1462         go/encoding/xml/read.go \
1463         go/encoding/xml/typeinfo.go \
1464         go/encoding/xml/xml.go
1466 go_exp_proxy_files = \
1467         go/exp/proxy/direct.go \
1468         go/exp/proxy/per_host.go \
1469         go/exp/proxy/proxy.go \
1470         go/exp/proxy/socks5.go
1471 go_exp_terminal_files = \
1472         go/exp/terminal/terminal.go \
1473         go/exp/terminal/util.go
1475 go_go_ast_files = \
1476         go/go/ast/ast.go \
1477         go/go/ast/commentmap.go \
1478         go/go/ast/filter.go \
1479         go/go/ast/import.go \
1480         go/go/ast/print.go \
1481         go/go/ast/resolve.go \
1482         go/go/ast/scope.go \
1483         go/go/ast/walk.go
1484 go_go_build_files = \
1485         go/go/build/build.go \
1486         go/go/build/doc.go \
1487         go/go/build/read.go \
1488         go/go/build/syslist.go
1489 go_go_constant_files = \
1490         go/go/constant/value.go
1491 go_go_doc_files = \
1492         go/go/doc/comment.go \
1493         go/go/doc/doc.go \
1494         go/go/doc/example.go \
1495         go/go/doc/exports.go \
1496         go/go/doc/filter.go \
1497         go/go/doc/reader.go \
1498         go/go/doc/synopsis.go
1499 go_go_format_files = \
1500         go/go/format/format.go \
1501         go/go/format/internal.go
1502 go_go_importer_files = \
1503         go/go/importer/importer.go
1504 go_go_parser_files = \
1505         go/go/parser/interface.go \
1506         go/go/parser/parser.go
1507 go_go_printer_files = \
1508         go/go/printer/nodes.go \
1509         go/go/printer/printer.go
1510 go_go_scanner_files = \
1511         go/go/scanner/errors.go \
1512         go/go/scanner/scanner.go
1513 go_go_token_files = \
1514         go/go/token/position.go \
1515         go/go/token/serialize.go \
1516         go/go/token/token.go
1517 go_go_types_files = \
1518         go/go/types/api.go \
1519         go/go/types/assignments.go \
1520         go/go/types/builtins.go \
1521         go/go/types/call.go \
1522         go/go/types/check.go \
1523         go/go/types/conversions.go \
1524         go/go/types/decl.go \
1525         go/go/types/errors.go \
1526         go/go/types/eval.go \
1527         go/go/types/expr.go \
1528         go/go/types/exprstring.go \
1529         go/go/types/initorder.go \
1530         go/go/types/labels.go \
1531         go/go/types/lookup.go \
1532         go/go/types/methodset.go \
1533         go/go/types/object.go \
1534         go/go/types/objset.go \
1535         go/go/types/operand.go \
1536         go/go/types/ordering.go \
1537         go/go/types/package.go \
1538         go/go/types/predicates.go \
1539         go/go/types/resolver.go \
1540         go/go/types/return.go \
1541         go/go/types/scope.go \
1542         go/go/types/selection.go \
1543         go/go/types/stmt.go \
1544         go/go/types/sizes.go \
1545         go/go/types/type.go \
1546         go/go/types/typestring.go \
1547         go/go/types/typexpr.go \
1548         go/go/types/universe.go
1550 go_go_internal_gcimporter_files = \
1551         go/go/internal/gcimporter/bimport.go \
1552         go/go/internal/gcimporter/exportdata.go \
1553         go/go/internal/gcimporter/gcimporter.go
1554 go_go_internal_gccgoimporter_files = \
1555         go/go/internal/gccgoimporter/gccgoinstallation.go \
1556         go/go/internal/gccgoimporter/importer.go \
1557         go/go/internal/gccgoimporter/parser.go
1559 go_golang_org_x_net_http2_hpack_files = \
1560         go/golang_org/x/net/http2/hpack/encode.go \
1561         go/golang_org/x/net/http2/hpack/hpack.go \
1562         go/golang_org/x/net/http2/hpack/huffman.go \
1563         go/golang_org/x/net/http2/hpack/tables.go
1565 go_golang_org_x_net_lex_httplex_files = \
1566         go/golang_org/x/net/lex/httplex/httplex.go
1568 if LIBGO_IS_BSD
1570 if LIBGO_IS_DARWIN
1571 x_net_route_files =
1572         go/golang_org/x/net/route/interface_classic.go \
1573         go/golang_org/x/net/route/interface_multicast.go \
1574         go/golang_org/x/net/route/route_classic.go \
1575         go/golang_org/x/net/route/sys_darwin.go \
1576         go/golang_org/x/net/route/zsys_darwin.go
1577 endif
1578 if LIBGO_IS_DRAGONFLY
1579 x_net_route_files =
1580         go/golang_org/x/net/route/interface_announce.go \
1581         go/golang_org/x/net/route/interface_classic.go \
1582         go/golang_org/x/net/route/interface_multicast.go \
1583         go/golang_org/x/net/route/route_classic.go \
1584         go/golang_org/x/net/route/sys_dragonfly.go \
1585         go/golang_org/x/net/route/zsys_dragonfly.go
1586 endif
1587 if LIBGO_IS_FREEBSD
1588 if LIBGO_IS_386
1589 x_net_route_freebsd_file =
1590         go/golang_org/x/net/route/zsys_freebsd_386.go
1591 endif
1592 if LIBGO_IS_X86_64
1593 x_net_route_freebsd_file =
1594         go/golang_org/x/net/route/zsys_freebsd_amd64.go
1595 endif
1596 if LIBGO_IS_ARM
1597 x_net_route_freebsd_file =
1598         go/golang_org/x/net/route/zsys_freebsd_arm.go
1599 endif
1600 x_net_route_files =
1601         go/golang_org/x/net/route/interface_announce.go \
1602         go/golang_org/x/net/route/interface_freebsd.go \
1603         go/golang_org/x/net/route/interface_multicast.go \
1604         go/golang_org/x/net/route/route_classic.go \
1605         go/golang_org/x/net/route/sys_freebsd.go \
1606         $(x_net_route_freebsd_file)
1607 endif
1608 if LIBGO_IS_NETBSD
1609 x_net_route_files =
1610         go/golang_org/x/net/route/interface_announce.go \
1611         go/golang_org/x/net/route/interface_classic.go \
1612         go/golang_org/x/net/route/route_classic.go \
1613         go/golang_org/x/net/route/sys_netbsd.go \
1614         go/golang_org/x/net/route/zsys_netbsd.go
1615 endif
1616 if LIBGO_IS_OPENBSD
1617 x_net_route_files =
1618         go/golang_org/x/net/route/route_openbsd.go \
1619         go/golang_org/x/net/route/sys_openbsd.go \
1620         go/golang_org/x/net/route/zsys_openbsd.go
1621 endif
1623 go_golang_org_x_net_route_files = \
1624         go/golang_org/x/net/route/address.go \
1625         go/golang_org/x/net/route/binary.go \
1626         go/golang_org/x/net/route/interface.go \
1627         go/golang_org/x/net/route/message.go \
1628         go/golang_org/x/net/route/route.go \
1629         go/golang_org/x/net/route/syscall.go \
1630         go/golang_org/x/net/route/sys.go \
1631         $(x_net_route_files)
1633 golang_org_x_net_route_lo = \
1634         golang_org/x/net/route/route.lo
1635 golang_org_x_net_route_check = \
1636         golang_org/x/net/route/check
1638 endif
1640 go_hash_adler32_files = \
1641         go/hash/adler32/adler32.go
1642 go_hash_crc32_files = \
1643         go/hash/crc32/crc32.go \
1644         go/hash/crc32/crc32_generic.go
1645 go_hash_crc64_files = \
1646         go/hash/crc64/crc64.go
1647 go_hash_fnv_files = \
1648         go/hash/fnv/fnv.go
1650 go_html_template_files = \
1651         go/html/template/attr.go \
1652         go/html/template/content.go \
1653         go/html/template/context.go \
1654         go/html/template/css.go \
1655         go/html/template/doc.go \
1656         go/html/template/error.go \
1657         go/html/template/escape.go \
1658         go/html/template/html.go \
1659         go/html/template/js.go \
1660         go/html/template/template.go \
1661         go/html/template/transition.go \
1662         go/html/template/url.go
1664 go_image_color_files = \
1665         go/image/color/color.go \
1666         go/image/color/ycbcr.go
1668 go_image_color_palette_files = \
1669         go/image/color/palette/palette.go
1671 go_image_draw_files = \
1672         go/image/draw/draw.go
1674 go_image_gif_files = \
1675         go/image/gif/reader.go \
1676         go/image/gif/writer.go
1678 go_image_internal_imageutil_files = \
1679         go/image/internal/imageutil/imageutil.go \
1680         go/image/internal/imageutil/impl.go
1682 go_image_jpeg_files = \
1683         go/image/jpeg/fdct.go \
1684         go/image/jpeg/huffman.go \
1685         go/image/jpeg/idct.go \
1686         go/image/jpeg/reader.go \
1687         go/image/jpeg/scan.go \
1688         go/image/jpeg/writer.go
1690 go_image_png_files = \
1691         go/image/png/paeth.go \
1692         go/image/png/reader.go \
1693         go/image/png/writer.go
1695 go_index_suffixarray_files = \
1696         go/index/suffixarray/qsufsort.go \
1697         go/index/suffixarray/suffixarray.go
1699 go_internal_nettrace_files = \
1700         go/internal/nettrace/nettrace.go
1701 go_internal_race_files = \
1702         go/internal/race/doc.go \
1703         go/internal/race/norace.go
1704 go_internal_singleflight_files = \
1705         go/internal/singleflight/singleflight.go
1707 if LIBGO_IS_LINUX
1708 if LIBGO_IS_386
1709 internal_syscall_unix_getrandom_files = go/internal/syscall/unix/getrandom_linux.go go/internal/syscall/unix/getrandom_linux_386.go
1710 else
1711 if LIBGO_IS_X86_64
1712 internal_syscall_unix_getrandom_files = go/internal/syscall/unix/getrandom_linux.go go/internal/syscall/unix/getrandom_linux_amd64.go
1713 else
1714 if LIBGO_IS_ARM
1715 internal_syscall_unix_getrandom_files = go/internal/syscall/unix/getrandom_linux.go go/internal/syscall/unix/getrandom_linux_arm.go
1716 else
1717 if LIBGO_IS_PPC64
1718 internal_syscall_unix_getrandom_files = go/internal/syscall/unix/getrandom_linux.go go/internal/syscall/unix/getrandom_linux_ppc64x.go
1719 else
1720 if LIBGO_IS_MIPS64
1721 internal_syscall_unix_getrandom_files = go/internal/syscall/unix/getrandom_linux.go go/internal/syscall/unix/getrandom_linux_mips64x.go
1722 else
1723 if LIBGO_IS_S390X
1724 internal_syscall_unix_getrandom_files = go/internal/syscall/unix/getrandom_linux.go go/internal/syscall/unix/getrandom_linux_s390x.go
1725 else
1726 internal_syscall_unix_getrandom_files = go/internal/syscall/unix/getrandom_linux.go go/internal/syscall/unix/getrandom_linux_generic.go
1727 endif
1728 endif
1729 endif
1730 endif
1731 endif
1732 endif
1733 else
1734 if LIBGO_IS_OPENBSD
1735 internal_syscall_unix_getrandom_files = go/internal/syscall/unix/getentropy_openbsd.go
1736 else
1737 internal_syscall_unix_getrandom_files =
1738 endif
1739 endif
1741 go_internal_syscall_unix_files = \
1742         go/internal/syscall/unix/dummy.go \
1743         $(internal_syscall_unix_getrandom_files)
1745 go_internal_testenv_files = \
1746         go/internal/testenv/testenv.go
1747 go_internal_trace_files = \
1748         go/internal/trace/goroutines.go \
1749         go/internal/trace/order.go \
1750         go/internal/trace/parser.go
1752 go_io_ioutil_files = \
1753         go/io/ioutil/ioutil.go \
1754         go/io/ioutil/tempfile.go
1756 go_math_big_files = \
1757         go/math/big/accuracy_string.go \
1758         go/math/big/arith.go \
1759         go/math/big/arith_decl_pure.go \
1760         go/math/big/decimal.go \
1761         go/math/big/doc.go \
1762         go/math/big/float.go \
1763         go/math/big/floatconv.go \
1764         go/math/big/floatmarsh.go \
1765         go/math/big/ftoa.go \
1766         go/math/big/int.go \
1767         go/math/big/intmarsh.go \
1768         go/math/big/intconv.go \
1769         go/math/big/nat.go \
1770         go/math/big/natconv.go \
1771         go/math/big/rat.go \
1772         go/math/big/ratconv.go \
1773         go/math/big/ratmarsh.go \
1774         go/math/big/roundingmode_string.go
1775 go_math_cmplx_files = \
1776         go/math/cmplx/abs.go \
1777         go/math/cmplx/asin.go \
1778         go/math/cmplx/conj.go \
1779         go/math/cmplx/exp.go \
1780         go/math/cmplx/isinf.go \
1781         go/math/cmplx/isnan.go \
1782         go/math/cmplx/log.go \
1783         go/math/cmplx/phase.go \
1784         go/math/cmplx/polar.go \
1785         go/math/cmplx/pow.go \
1786         go/math/cmplx/rect.go \
1787         go/math/cmplx/sin.go \
1788         go/math/cmplx/sqrt.go \
1789         go/math/cmplx/tan.go
1790 go_math_rand_files = \
1791         go/math/rand/exp.go \
1792         go/math/rand/normal.go \
1793         go/math/rand/rand.go \
1794         go/math/rand/rng.go \
1795         go/math/rand/zipf.go
1797 go_mime_multipart_files = \
1798         go/mime/multipart/formdata.go \
1799         go/mime/multipart/multipart.go \
1800         go/mime/multipart/writer.go
1802 go_mime_quotedprintable_files = \
1803         go/mime/quotedprintable/reader.go \
1804         go/mime/quotedprintable/writer.go
1806 go_net_http_files = \
1807         go/net/http/client.go \
1808         go/net/http/cookie.go \
1809         go/net/http/filetransport.go \
1810         go/net/http/fs.go \
1811         go/net/http/h2_bundle.go \
1812         go/net/http/header.go \
1813         go/net/http/http.go \
1814         go/net/http/jar.go \
1815         go/net/http/method.go \
1816         go/net/http/request.go \
1817         go/net/http/response.go \
1818         go/net/http/server.go \
1819         go/net/http/sniff.go \
1820         go/net/http/status.go \
1821         go/net/http/transfer.go \
1822         go/net/http/transport.go
1823 go_net_mail_files = \
1824         go/net/mail/message.go
1825 go_net_smtp_files = \
1826         go/net/smtp/auth.go \
1827         go/net/smtp/smtp.go
1828 go_net_textproto_files = \
1829         go/net/textproto/header.go \
1830         go/net/textproto/pipeline.go \
1831         go/net/textproto/reader.go \
1832         go/net/textproto/textproto.go \
1833         go/net/textproto/writer.go
1834 go_net_url_files = \
1835         go/net/url/url.go
1837 go_net_http_cgi_files = \
1838         go/net/http/cgi/child.go \
1839         go/net/http/cgi/host.go
1840 go_net_http_cookiejar_files = \
1841         go/net/http/cookiejar/jar.go \
1842         go/net/http/cookiejar/punycode.go
1843 go_net_http_fcgi_files = \
1844         go/net/http/fcgi/child.go \
1845         go/net/http/fcgi/fcgi.go
1846 go_net_http_httptest_files = \
1847         go/net/http/httptest/httptest.go \
1848         go/net/http/httptest/recorder.go \
1849         go/net/http/httptest/server.go
1850 go_net_http_pprof_files = \
1851         go/net/http/pprof/pprof.go
1852 go_net_http_httptrace_files = \
1853         go/net/http/httptrace/trace.go
1854 go_net_http_httputil_files = \
1855         go/net/http/httputil/dump.go \
1856         go/net/http/httputil/httputil.go \
1857         go/net/http/httputil/persist.go \
1858         go/net/http/httputil/reverseproxy.go
1859 go_net_http_internal_files = \
1860         go/net/http/internal/chunked.go \
1861         go/net/http/internal/testcert.go
1863 if LIBGO_IS_LINUX
1864 go_net_internal_socktest_sys = go/net/internal/socktest/sys_cloexec.go
1865 else
1866 if LIBGO_IS_FREEBSD
1867 go_net_internal_socktest_sys = go/net/internal/socktest/sys_cloexec.go
1868 else
1869 go_net_internal_socktest_sys =
1870 endif
1871 endif
1873 go_net_internal_socktest_files = \
1874         go/net/internal/socktest/switch.go \
1875         go/net/internal/socktest/switch_posix.go \
1876         go/net/internal/socktest/switch_unix.go \
1877         go/net/internal/socktest/sys_unix.go \
1878         $(go_net_internal_socktest_sys)
1880 go_old_regexp_files = \
1881         go/old/regexp/regexp.go
1882 go_old_template_files = \
1883         go/old/template/doc.go \
1884         go/old/template/execute.go \
1885         go/old/template/format.go \
1886         go/old/template/parse.go
1888 go_os_exec_files = \
1889         go/os/exec/exec.go \
1890         go/os/exec/exec_posix.go \
1891         go/os/exec/lp_unix.go
1893 go_os_signal_files = \
1894         go/os/signal/doc.go \
1895         go/os/signal/signal.go \
1896         go/os/signal/signal_unix.go
1898 if LIBGO_IS_SOLARIS
1899 os_user_decls_file = go/os/user/decls_solaris.go
1900 os_user_listgroups_file = go/os/user/listgroups_solaris.go
1901 else
1902 os_user_decls_file = go/os/user/decls_unix.go
1903 os_user_listgroups_file = go/os/user/listgroups_unix.go
1904 endif
1906 go_os_user_files = \
1907         go/os/user/lookup.go \
1908         go/os/user/lookup_unix.go \
1909         go/os/user/user.go \
1910         $(os_user_decls_file) \
1911         $(os_user_listgroups_file)
1913 go_path_filepath_files = \
1914         go/path/filepath/match.go \
1915         go/path/filepath/path.go \
1916         go/path/filepath/path_unix.go \
1917         go/path/filepath/symlink.go \
1918         go/path/filepath/symlink_unix.go
1920 go_regexp_syntax_files = \
1921         go/regexp/syntax/compile.go \
1922         go/regexp/syntax/doc.go \
1923         go/regexp/syntax/parse.go \
1924         go/regexp/syntax/perl_groups.go \
1925         go/regexp/syntax/prog.go \
1926         go/regexp/syntax/regexp.go \
1927         go/regexp/syntax/simplify.go
1929 go_net_rpc_jsonrpc_files = \
1930         go/net/rpc/jsonrpc/client.go \
1931         go/net/rpc/jsonrpc/server.go
1933 go_runtime_debug_files = \
1934         go/runtime/debug/garbage.go \
1935         go/runtime/debug/stack.go
1936 go_runtime_pprof_files = \
1937         go/runtime/pprof/pprof.go
1939 go_text_tabwriter_files = \
1940         go/text/tabwriter/tabwriter.go
1941 go_text_template_files = \
1942         go/text/template/doc.go \
1943         go/text/template/exec.go \
1944         go/text/template/funcs.go \
1945         go/text/template/helper.go \
1946         go/text/template/option.go \
1947         go/text/template/template.go
1948 go_text_template_parse_files = \
1949         go/text/template/parse/lex.go \
1950         go/text/template/parse/node.go \
1951         go/text/template/parse/parse.go
1953 go_sync_atomic_files = \
1954         go/sync/atomic/doc.go \
1955         go/sync/atomic/value.go
1956 go_sync_atomic_c_files = \
1957         go/sync/atomic/atomic.c
1959 go_testing_iotest_files = \
1960         go/testing/iotest/logger.go \
1961         go/testing/iotest/reader.go \
1962         go/testing/iotest/writer.go
1963 go_testing_quick_files = \
1964         go/testing/quick/quick.go
1966 go_text_scanner_files = \
1967         go/text/scanner/scanner.go
1969 go_unicode_utf16_files = \
1970         go/unicode/utf16/utf16.go
1971 go_unicode_utf8_files = \
1972         go/unicode/utf8/utf8.go
1974 # Define Syscall and Syscall6.
1975 if LIBGO_IS_RTEMS
1976 syscall_syscall_file = go/syscall/syscall_stubs.go
1977 else
1978 syscall_syscall_file = go/syscall/syscall_unix.go
1979 endif
1981 # Define ForkExec and Exec.
1982 if LIBGO_IS_RTEMS
1983 syscall_exec_file = go/syscall/exec_stubs.go
1984 syscall_exec_os_file =
1985 else
1986 if LIBGO_IS_LINUX
1987 syscall_exec_file = go/syscall/exec_unix.go
1988 syscall_exec_os_file = go/syscall/exec_linux.go
1989 else
1990 syscall_exec_file = go/syscall/exec_unix.go
1991 syscall_exec_os_file = go/syscall/exec_bsd.go
1992 endif
1993 endif
1995 # Define Wait4.
1996 if LIBGO_IS_RTEMS
1997 syscall_wait_file =
1998 else
1999 if HAVE_WAIT4
2000 syscall_wait_file = go/syscall/libcall_wait4.go
2001 else
2002 syscall_wait_file = go/syscall/libcall_waitpid.go
2003 endif
2004 endif
2006 # Support for pulling apart wait status.
2007 if LIBGO_IS_RTEMS
2008 syscall_wait_c_file =
2009 else
2010 syscall_wait_c_file = go/syscall/wait.c
2011 endif
2013 # Define Sleep.
2014 if LIBGO_IS_RTEMS
2015 syscall_sleep_file = go/syscall/sleep_rtems.go
2016 else
2017 syscall_sleep_file = go/syscall/sleep_select.go
2018 endif
2020 # Define Errstr.
2021 if LIBGO_IS_LINUX
2022 syscall_errstr_file = go/syscall/errstr_linux.go
2023 else
2024 if LIBGO_IS_RTEMS
2025 syscall_errstr_file = go/syscall/errstr_linux.go
2026 else
2027 if HAVE_STRERROR_R
2028 syscall_errstr_file = go/syscall/errstr.go
2029 else
2030 syscall_errstr_file = go/syscall/errstr_nor.go
2031 endif
2032 endif
2033 endif
2035 # Declare libc functions that vary for largefile systems.
2036 if LIBGO_IS_LINUX
2037 # Always use lseek64 on GNU/Linux.
2038 syscall_size_file = go/syscall/libcall_posix_largefile.go
2039 else # !LIBGO_IS_LINUX
2040 if LIBGO_IS_SOLARIS
2041 if LIBGO_IS_386
2042 # Use lseek64 on 32-bit Solaris/x86.
2043 syscall_size_file = go/syscall/libcall_posix_largefile.go
2044 else # !LIBGO_IS_386
2045 if LIBGO_IS_SPARC
2046 # Use lseek64 on 32-bit Solaris/SPARC.
2047 syscall_size_file = go/syscall/libcall_posix_largefile.go
2048 else # !LIBGO_IS_386 && !LIBGO_IS_SPARC
2049 # Use lseek on 64-bit Solaris.
2050 syscall_size_file = go/syscall/libcall_posix_regfile.go
2051 endif # !LIBGO_IS_386 && !LIBGO_IS_SPARC
2052 endif # !LIBGO_IS_SOLARIS
2053 else # !LIBGO_IS_LINUX && !LIBGO_IS_SOLARIS
2054 # Use lseek by default.
2055 syscall_size_file = go/syscall/libcall_posix_regfile.go
2056 endif # !LIBGO_IS_SOLARIS
2057 endif # !LIBGO_IS_LINUX
2059 # Define socket sizes and types.
2060 if LIBGO_IS_LINUX
2061 syscall_socket_file = go/syscall/socket_linux.go epoll.go
2062 if LIBGO_IS_PPC64LE
2063 syscall_socket_type_file = go/syscall/socket_linux_ppc64x_type.go
2064 else
2065 if LIBGO_IS_PPC64
2066 syscall_socket_type_file = go/syscall/socket_linux_ppc64x_type.go
2067 else
2068 syscall_socket_type_file = go/syscall/socket_linux_type.go
2069 endif
2070 endif
2071 else
2072 syscall_socket_type_file =
2073 if LIBGO_IS_SOLARIS
2074 syscall_socket_file = go/syscall/socket_solaris.go
2075 else
2076 if LIBGO_IS_IRIX
2077 syscall_socket_file = go/syscall/socket_irix.go
2078 else
2079 syscall_socket_file = go/syscall/socket_bsd.go
2080 endif
2081 endif
2082 endif
2084 # Define socket functions.
2085 if LIBGO_IS_SOLARIS
2086 syscall_socket_os_file = go/syscall/socket_xnet.go
2087 else
2088 syscall_socket_os_file = go/syscall/socket_posix.go
2089 endif
2091 # Support for uname.
2092 if LIBGO_IS_SOLARIS
2093 if LIBGO_IS_386
2094 # 32-bit Solaris 2/x86 needs _nuname, handled in libcall_solaris_386.go.
2095 syscall_uname_file =
2096 else # !LIBGO_IS_386 && LIBGO_IS_SOLARIS
2097 syscall_uname_file = go/syscall/libcall_uname.go
2098 endif
2099 else # !LIBGO_IS_SOLARIS
2100 syscall_uname_file = go/syscall/libcall_uname.go
2101 endif
2103 # GNU/Linux specific socket control messages.
2104 if LIBGO_IS_LINUX
2105 syscall_sockcmsg_file = go/syscall/sockcmsg_linux.go
2106 else
2107 syscall_sockcmsg_file =
2108 endif
2110 # Support for netlink sockets and messages.
2111 if LIBGO_IS_LINUX
2112 syscall_netlink_file = go/syscall/netlink_linux.go
2113 else
2114 syscall_netlink_file =
2115 endif
2117 # GNU/Linux specific socket filters.
2118 if LIBGO_IS_LINUX
2119 syscall_lsf_file = go/syscall/lsf_linux.go
2120 else
2121 syscall_lsf_file =
2122 endif
2124 # GNU/Linux specific ustat support.
2125 if LIBGO_IS_LINUX
2126 if LIBGO_IS_ARM64
2127 syscall_ustat_file =
2128 else
2129 syscall_ustat_file = go/syscall/libcall_linux_ustat.go
2130 endif
2131 else
2132 syscall_ustat_file =
2133 endif
2135 # GNU/Linux specific utimesnano support.
2136 if LIBGO_IS_LINUX
2137 syscall_utimesnano_file = go/syscall/libcall_linux_utimesnano.go
2138 else
2139 syscall_utimesnano_file = go/syscall/libcall_posix_utimesnano.go
2140 endif
2142 # Test files.
2143 if LIBGO_IS_LINUX
2144 syscall_creds_test_file = go/syscall/creds_test.go
2145 else
2146 syscall_creds_test_file =
2147 endif
2149 if LIBGO_IS_LINUX
2150 syscall_exec_test_file = go/syscall/exec_linux_test.go go/syscall/syscall_linux_test.go
2151 else
2152 syscall_exec_test_file =
2153 endif
2155 if LIBGO_IS_LINUX
2156 syscall_os_file =
2157 else
2158 syscall_os_file = go/syscall/libcall_bsd.go
2159 endif
2161 go_base_syscall_files = \
2162         go/syscall/env_unix.go \
2163         go/syscall/syscall_errno.go \
2164         go/syscall/libcall_support.go \
2165         go/syscall/libcall_posix.go \
2166         go/syscall/msan0.go \
2167         go/syscall/socket.go \
2168         go/syscall/sockcmsg_unix.go \
2169         go/syscall/str.go \
2170         go/syscall/syscall.go \
2171         $(syscall_sockcmsg_file) \
2172         $(syscall_syscall_file) \
2173         $(syscall_exec_file) \
2174         $(syscall_exec_os_file) \
2175         $(syscall_wait_file) \
2176         $(syscall_sleep_file) \
2177         $(syscall_errstr_file) \
2178         $(syscall_size_file) \
2179         $(syscall_os_file) \
2180         $(syscall_socket_file) \
2181         $(syscall_socket_os_file) \
2182         $(syscall_socket_type_file) \
2183         $(syscall_uname_file) \
2184         $(syscall_netlink_file) \
2185         $(syscall_lsf_file) \
2186         $(syscall_ustat_file) \
2187         $(syscall_utimesnano_file) \
2188         $(GO_LIBCALL_OS_FILE) \
2189         $(GO_LIBCALL_OS_ARCH_FILE) \
2190         $(GO_SYSCALL_OS_FILE) \
2191         $(GO_SYSCALL_OS_ARCH_FILE)
2193 go_syscall_files = \
2194         $(go_base_syscall_files) \
2195         libcalls.go \
2196         sysinfo.go \
2197         syscall_arch.go
2198 go_syscall_c_files = \
2199         go/syscall/errno.c \
2200         go/syscall/signame.c \
2201         $(syscall_wait_c_file)
2203 go_syscall_test_files = \
2204         $(syscall_creds_test_file) \
2205         $(syscall_exec_test_file) \
2206         go/syscall/exec_unix_test.go \
2207         go/syscall/export_test.go \
2208         go/syscall/export_unix_test.go \
2209         go/syscall/mmap_unix_test.go \
2210         go/syscall/syscall_test.go \
2211         go/syscall/syscall_unix_test.go
2213 libcalls.go: s-libcalls; @true
2214 s-libcalls: libcalls-list go/syscall/mksyscall.awk $(go_base_syscall_files)
2215         rm -f libcalls.go.tmp
2216         files=`echo $^ | sed -e 's/libcalls-list//' -e 's|[^ ]*go/syscall/mksyscall.awk||'`; \
2217         $(AWK) -f $(srcdir)/go/syscall/mksyscall.awk $${files} > libcalls.go.tmp
2218         $(SHELL) $(srcdir)/mvifdiff.sh libcalls.go.tmp libcalls.go
2219         $(STAMP) $@
2221 libcalls-list: s-libcalls-list; @true
2222 s-libcalls-list: Makefile
2223         rm -f libcalls-list.tmp
2224         echo $(go_base_syscall_files) > libcalls-list.tmp
2225         $(SHELL) $(srcdir)/mvifdiff.sh libcalls-list.tmp libcalls-list
2226         $(STAMP) $@
2228 syscall_arch.go: s-syscall_arch; @true
2229 s-syscall_arch: Makefile
2230         rm -f syscall_arch.go.tmp
2231         echo "package syscall" > syscall_arch.go.tmp
2232         echo 'const ARCH = "'$(GOARCH)'"' >> syscall_arch.go.tmp
2233         echo 'const OS = "'$(GOOS)'"' >> syscall_arch.go.tmp
2234         $(SHELL) $(srcdir)/mvifdiff.sh syscall_arch.go.tmp syscall_arch.go
2235         $(STAMP) $@
2237 sysinfo.go: s-sysinfo; @true
2238 s-sysinfo: $(srcdir)/mksysinfo.sh config.h
2239         CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS) -O" $(SHELL) $(srcdir)/mksysinfo.sh
2240         $(SHELL) $(srcdir)/mvifdiff.sh tmp-sysinfo.go sysinfo.go
2241         $(STAMP) $@
2243 # The epoll struct has an embedded union and is packed on x86_64,
2244 # which is too complicated for mksysinfo.sh.  We find the offset of
2245 # the only field we care about in configure.ac, and generate the
2246 # struct here.
2247 epoll.go: s-epoll; @true
2248 s-epoll: Makefile
2249         rm -f epoll.go.tmp
2250         echo 'package syscall' > epoll.go.tmp
2251         echo 'type EpollEvent struct {' >> epoll.go.tmp
2252         echo '  Events uint32' >> epoll.go.tmp
2253         case "$(SIZEOF_STRUCT_EPOLL_EVENT),$(STRUCT_EPOLL_EVENT_FD_OFFSET)" in \
2254         0,0) echo 1>&2 "*** struct epoll_event data.fd offset unknown"; \
2255            exit 1; ;; \
2256         8,4) echo '     Fd int32' >> epoll.go.tmp; ;; \
2257         12,4) echo '    Fd int32' >> epoll.go.tmp; \
2258            echo '       Pad [4]byte' >> epoll.go.tmp; ;; \
2259         12,8) echo '    Pad [4]byte' >> epoll.go.tmp; \
2260            echo '       Fd int32' >> epoll.go.tmp; ;; \
2261         16,8) echo '    Pad [4]byte' >> epoll.go.tmp; \
2262            echo '       Fd int32' >> epoll.go.tmp; \
2263            echo '       Pad2 [4]byte' >> epoll.go.tmp; ;; \
2264         *) echo 1>&2 "*** struct epoll_event unsupported"; \
2265            exit 1; ;; \
2266         esac
2267         echo '}' >> epoll.go.tmp
2268         $(SHELL) $(srcdir)/mvifdiff.sh epoll.go.tmp epoll.go
2269         $(STAMP) $@
2271 if LIBGO_IS_LINUX
2272 # os_lib_inotify_lo = os/inotify.lo
2273 os_lib_inotify_lo =
2274 else
2275 os_lib_inotify_lo =
2276 endif
2278 libgo_go_objs = \
2279         bufio.lo \
2280         bytes.lo \
2281         bytes/index.lo \
2282         context.lo \
2283         crypto.lo \
2284         encoding.lo \
2285         errors.lo \
2286         expvar.lo \
2287         flag.lo \
2288         fmt.lo \
2289         hash.lo \
2290         html.lo \
2291         image.lo \
2292         io.lo \
2293         log.lo \
2294         math.lo \
2295         mime.lo \
2296         net.lo \
2297         os.lo \
2298         path.lo \
2299         reflect-go.lo \
2300         reflect/makefunc_ffi_c.lo \
2301         regexp.lo \
2302         runtime-go.lo \
2303         sort.lo \
2304         strconv.lo \
2305         strings.lo \
2306         strings/index.lo \
2307         sync.lo \
2308         syscall.lo \
2309         syscall/errno.lo \
2310         syscall/signame.lo \
2311         syscall/wait.lo \
2312         testing.lo \
2313         time-go.lo \
2314         unicode.lo \
2315         archive/tar.lo \
2316         archive/zip.lo \
2317         compress/bzip2.lo \
2318         compress/flate.lo \
2319         compress/gzip.lo \
2320         compress/lzw.lo \
2321         compress/zlib.lo \
2322         container/heap.lo \
2323         container/list.lo \
2324         container/ring.lo \
2325         crypto/aes.lo \
2326         crypto/cipher.lo \
2327         crypto/des.lo \
2328         crypto/dsa.lo \
2329         crypto/ecdsa.lo \
2330         crypto/elliptic.lo \
2331         crypto/hmac.lo \
2332         crypto/md5.lo \
2333         crypto/rand.lo \
2334         crypto/rc4.lo \
2335         crypto/rsa.lo \
2336         crypto/sha1.lo \
2337         crypto/sha256.lo \
2338         crypto/sha512.lo \
2339         crypto/subtle.lo \
2340         crypto/tls.lo \
2341         crypto/x509.lo \
2342         crypto/x509/pkix.lo \
2343         database/sql.lo \
2344         database/sql/driver.lo \
2345         debug/dwarf.lo \
2346         debug/elf.lo \
2347         debug/gosym.lo \
2348         debug/macho.lo \
2349         debug/pe.lo \
2350         debug/plan9obj.lo \
2351         encoding/ascii85.lo \
2352         encoding/asn1.lo \
2353         encoding/base32.lo \
2354         encoding/base64.lo \
2355         encoding/binary.lo \
2356         encoding/csv.lo \
2357         encoding/gob.lo \
2358         encoding/hex.lo \
2359         encoding/json.lo \
2360         encoding/pem.lo \
2361         encoding/xml.lo \
2362         exp/proxy.lo \
2363         exp/terminal.lo \
2364         html/template.lo \
2365         go/ast.lo \
2366         go/build.lo \
2367         go/constant.lo \
2368         go/doc.lo \
2369         go/format.lo \
2370         go/importer.lo \
2371         go/internal/gcimporter.lo \
2372         go/internal/gccgoimporter.lo \
2373         go/parser.lo \
2374         go/printer.lo \
2375         go/scanner.lo \
2376         go/token.lo \
2377         go/types.lo \
2378         golang_org/x/net/http2/hpack.lo \
2379         golang_org/x/net/lex/httplex.lo \
2380         $(golang_org_x_net_route_lo) \
2381         hash/adler32.lo \
2382         hash/crc32.lo \
2383         hash/crc64.lo \
2384         hash/fnv.lo \
2385         net/http/cgi.lo \
2386         net/http/cookiejar.lo \
2387         net/http/fcgi.lo \
2388         net/http/httptest.lo \
2389         net/http/httptrace.lo \
2390         net/http/httputil.lo \
2391         net/http/internal.lo \
2392         net/http/pprof.lo \
2393         image/color.lo \
2394         image/color/palette.lo \
2395         image/draw.lo \
2396         image/gif.lo \
2397         image/internal/imageutil.lo \
2398         image/jpeg.lo \
2399         image/png.lo \
2400         index/suffixarray.lo \
2401         internal/nettrace.lo \
2402         internal/race.lo \
2403         internal/singleflight.lo \
2404         internal/syscall/unix.lo \
2405         internal/testenv.lo \
2406         internal/trace.lo \
2407         io/ioutil.lo \
2408         log/syslog.lo \
2409         log/syslog/syslog_c.lo \
2410         math/big.lo \
2411         math/cmplx.lo \
2412         math/rand.lo \
2413         mime/multipart.lo \
2414         mime/quotedprintable.lo \
2415         net/http.lo \
2416         net/internal/socktest.lo \
2417         net/mail.lo \
2418         net/rpc.lo \
2419         net/smtp.lo \
2420         net/textproto.lo \
2421         net/url.lo \
2422         old/regexp.lo \
2423         old/template.lo \
2424         os/exec.lo \
2425         $(os_lib_inotify_lo) \
2426         os/signal.lo \
2427         os/user.lo \
2428         path/filepath.lo \
2429         regexp/syntax.lo \
2430         net/rpc/jsonrpc.lo \
2431         runtime/debug.lo \
2432         runtime/pprof.lo \
2433         sync/atomic.lo \
2434         sync/atomic_c.lo \
2435         text/scanner.lo \
2436         text/tabwriter.lo \
2437         text/template.lo \
2438         text/template/parse.lo \
2439         testing/iotest.lo \
2440         testing/quick.lo \
2441         unicode/utf16.lo \
2442         unicode/utf8.lo
2444 libgo_ldflags = \
2445         -version-info $(libtool_VERSION) $(PTHREAD_CFLAGS) $(AM_LDFLAGS)
2447 libgo_libadd = \
2448         $(libgo_go_objs) ../libbacktrace/libbacktrace.la \
2449         $(LIBATOMIC) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)
2451 libgo_la_SOURCES = $(runtime_files)
2452 libgo_la_LDFLAGS = $(libgo_ldflags)
2453 libgo_la_LIBADD = $(libgo_libadd)
2455 libgo_llgo_la_SOURCES = $(runtime_files)
2456 libgo_llgo_la_LDFLAGS = $(libgo_ldflags)
2457 libgo_llgo_la_LIBADD = $(libgo_libadd)
2459 libgobegin_a_SOURCES = \
2460         runtime/go-main.c
2462 libgobegin_llgo_a_SOURCES = \
2463         runtime/go-main.c
2465 # Use -fPIC for libgobegin so that it can be put in a PIE.
2466 libgobegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
2467 libgobegin_llgo_a_CFLAGS = $(AM_CFLAGS) -fPIC
2469 libgolibbegin_a_SOURCES = \
2470         runtime/go-libmain.c
2472 libgolibbegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
2474 libnetgo_a_SOURCES = $(go_netgo_files)
2475 libnetgo_a_LIBADD = netgo.o
2477 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
2479 GOCFLAGS = $(CFLAGS)
2480 AM_GOCFLAGS = $(STRINGOPS_FLAG) $(GO_SPLIT_STACK)
2481 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
2483 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
2484         $(AM_GOCFLAGS) $(GOCFLAGS)
2486 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
2487         $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
2489 # Build the dependencies for a Go package.
2490 BUILDDEPS = \
2491         $(MKDIR_P) $(@D); \
2492         $(SHELL) $(srcdir)/godeps.sh `echo $@ | sed -e 's/.dep$$//'` $^ > $@.tmp; \
2493         mv -f $@.tmp $@
2495 # Build the .go files for a package, generating a .lo file.
2496 BUILDPACKAGE = \
2497         $(MKDIR_P) $(@D); \
2498         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
2499         $(LTGOCOMPILE) -I . -c -fgo-pkgpath=`echo $@ | sed -e 's/.lo$$//' -e 's/-go$$//'` -o $@ $$files
2501 # Build netgo.o.
2502 BUILDNETGO = \
2503         $(MKDIR_P) $(@D); \
2504         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
2505         $(GOCOMPILE) -I . -c -fPIC -fgo-pkgpath=net -o $@ $$files
2507 GOTESTFLAGS =
2508 GOBENCH = 
2510 # Check a package.
2511 CHECK = \
2512         GC="$(GOC) $(GOCFLAGS) $($(subst /,_,$@)_GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
2513         export GC; \
2514         GOLIBS="$(MATH_LIBS) $(NET_LIBS) $(LIBS)"; \
2515         export GOLIBS; \
2516         RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
2517         export RUNTESTFLAGS; \
2518         MAKE="$(MAKE)"; \
2519         export MAKE; \
2520         libgccdir=`${GOC} -print-libgcc-file-name | sed -e 's|/[^/]*$$||'`; \
2521         LD_LIBRARY_PATH="`${PWD_COMMAND}`/.libs:$${libgccdir}:${LD_LIBRARY_PATH}"; \
2522         LD_LIBRARY_PATH=`echo $${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
2523         export LD_LIBRARY_PATH; \
2524         $(MKDIR_P) $(@D); \
2525         rm -f $@-testsum $@-testlog; \
2526         if test "$(USE_DEJAGNU)" = "yes"; then \
2527           $(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); \
2528         elif test "$(GOBENCH)" != ""; then \
2529           $(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); \
2530         else \
2531           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 \
2532             echo "PASS: $(@D)" >> $@-testlog; \
2533             echo "PASS: $(@D)"; \
2534             echo "PASS: $(@D)" > $@-testsum; \
2535           else \
2536             echo "FAIL: $(@D)" >> $@-testlog; \
2537             cat $@-testlog; \
2538             echo "FAIL: $(@D)" > $@-testsum; \
2539             exit 1; \
2540           fi; \
2541         fi
2543 # Build all packages before checking any.
2544 CHECK_DEPS = \
2545         $(toolexeclibgo_DATA) \
2546         $(toolexeclibgoarchive_DATA) \
2547         $(toolexeclibgocompress_DATA) \
2548         $(toolexeclibgocontainer_DATA) \
2549         $(toolexeclibgocrypto_DATA) \
2550         $(toolexeclibgodebug_DATA) \
2551         $(toolexeclibgoencoding_DATA) \
2552         $(toolexeclibgoexp_DATA) \
2553         $(toolexeclibgogo_DATA) \
2554         $(toolexeclibgohash_DATA) \
2555         $(toolexeclibgoimage_DATA) \
2556         $(toolexeclibgoindex_DATA) \
2557         $(toolexeclibgoio_DATA) \
2558         $(toolexeclibgolog_DATA) \
2559         $(toolexeclibgomath_DATA) \
2560         $(toolexeclibgomime_DATA) \
2561         $(toolexeclibgonet_DATA) \
2562         $(toolexeclibgonethttp_DATA) \
2563         $(toolexeclibgoos_DATA) \
2564         $(toolexeclibgopath_DATA) \
2565         $(toolexeclibgorpc_DATA) \
2566         $(toolexeclibgoruntime_DATA) \
2567         $(toolexeclibgosync_DATA) \
2568         $(toolexeclibgotesting_DATA) \
2569         $(toolexeclibgotext_DATA) \
2570         $(toolexeclibgotexttemplate_DATA) \
2571         $(toolexeclibgounicode_DATA)
2573 if GOC_IS_LLGO
2574 CHECK_DEPS += libgo-llgo.la libgobegin-llgo.a
2575 else
2576 CHECK_DEPS += libgo.la libgobegin.a
2577 endif
2579 @go_include@ bufio.lo.dep
2580 bufio.lo.dep: $(go_bufio_files)
2581         $(BUILDDEPS)
2582 bufio.lo: $(go_bufio_files)
2583         $(BUILDPACKAGE)
2584 bufio/check: $(CHECK_DEPS)
2585         @$(CHECK)
2586 .PHONY: bufio/check
2588 @go_include@ bytes.lo.dep
2589 bytes.lo.dep: $(go_bytes_files)
2590         $(BUILDDEPS)
2591 bytes.lo: $(go_bytes_files)
2592         $(BUILDPACKAGE)
2593 bytes/index.lo: $(go_bytes_c_files)
2594         @$(MKDIR_P) bytes
2595         $(LTCOMPILE) -c -o bytes/index.lo $(srcdir)/go/bytes/indexbyte.c
2596 bytes/check: $(CHECK_DEPS)
2597         @$(CHECK)
2598 .PHONY: bytes/check
2600 @go_include@ context.lo.dep
2601 context.lo.dep: $(go_context_files)
2602         $(BUILDDEPS)
2603 context.lo: $(go_context_files)
2604         $(BUILDPACKAGE)
2605 context/check: $(CHECK_DEPS)
2606         @$(CHECK)
2607 .PHONY: context/check
2609 @go_include@ crypto.lo.dep
2610 crypto.lo.dep: $(go_crypto_files)
2611         $(BUILDDEPS)
2612 crypto.lo: $(go_crypto_files)
2613         $(BUILDPACKAGE)
2614 crypto/check: $(CHECK_DEPS)
2615         @$(CHECK)
2616 .PHONY: crypto/check
2618 @go_include@ encoding.lo.dep
2619 encoding.lo.dep: $(go_encoding_files)
2620         $(BUILDDEPS)
2621 encoding.lo: $(go_encoding_files)
2622         $(BUILDPACKAGE)
2623 encoding/check: $(CHECK_DEPS)
2624         @$(CHECK)
2625 .PHONY: encoding/check
2627 @go_include@ errors.lo.dep
2628 errors.lo.dep: $(go_errors_files)
2629         $(BUILDDEPS)
2630 errors.lo: $(go_errors_files)
2631         $(BUILDPACKAGE)
2632 errors/check: $(CHECK_DEPS)
2633         @$(CHECK)
2634 .PHONY: errors/check
2636 @go_include@ expvar.lo.dep
2637 expvar.lo.dep: $(go_expvar_files)
2638         $(BUILDDEPS)
2639 expvar.lo: $(go_expvar_files)
2640         $(BUILDPACKAGE)
2641 expvar/check: $(CHECK_DEPS)
2642         @$(CHECK)
2643 .PHONY: expvar/check
2645 @go_include@ flag.lo.dep
2646 flag.lo.dep: $(go_flag_files)
2647         $(BUILDDEPS)
2648 flag.lo: $(go_flag_files)
2649         $(BUILDPACKAGE)
2650 flag/check: $(CHECK_DEPS)
2651         @$(CHECK)
2652 .PHONY: flag/check
2654 @go_include@ fmt.lo.dep
2655 fmt.lo.dep: $(go_fmt_files)
2656         $(BUILDDEPS)
2657 fmt.lo: $(go_fmt_files)
2658         $(BUILDPACKAGE)
2659 fmt/check: $(CHECK_DEPS)
2660         @$(CHECK)
2661 .PHONY: fmt/check
2663 @go_include@ hash.lo.dep
2664 hash.lo.dep: $(go_hash_files)
2665         $(BUILDDEPS)
2666 hash.lo: $(go_hash_files)
2667         $(BUILDPACKAGE)
2668 hash/check: $(CHECK_DEPS)
2669         @$(CHECK)
2670 .PHONY: hash/check
2672 @go_include@ html.lo.dep
2673 html.lo.dep: $(go_html_files)
2674         $(BUILDDEPS)
2675 html.lo: $(go_html_files)
2676         $(BUILDPACKAGE)
2677 html/check: $(CHECK_DEPS)
2678         @$(CHECK)
2679 .PHONY: html/check
2681 @go_include@ image.lo.dep
2682 image.lo.dep: $(go_image_files)
2683         $(BUILDDEPS)
2684 image.lo: $(go_image_files)
2685         $(BUILDPACKAGE)
2686 image/check: $(CHECK_DEPS)
2687         @$(CHECK)
2688 .PHONY: image/check
2690 @go_include@ io.lo.dep
2691 io.lo.dep: $(go_io_files)
2692         $(BUILDDEPS)
2693 io.lo: $(go_io_files)
2694         $(BUILDPACKAGE)
2695 io/check: $(CHECK_DEPS)
2696         @$(CHECK)
2697 .PHONY: io/check
2699 @go_include@ log.lo.dep
2700 log.lo.dep: $(go_log_files)
2701         $(BUILDDEPS)
2702 log.lo: $(go_log_files)
2703         $(BUILDPACKAGE)
2704 log/check: $(CHECK_DEPS)
2705         @$(CHECK)
2706 .PHONY: log/check
2708 @go_include@ math.lo.dep
2709 math.lo.dep: $(go_math_files)
2710         $(BUILDDEPS)
2711 math.lo: $(go_math_files)
2712         $(MKDIR_P) $(@D)
2713         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
2714         $(LTGOCOMPILE) $(MATH_FLAG) -I . -c -fgo-pkgpath=math -o $@ $$files
2715 math/check: $(CHECK_DEPS)
2716         @$(CHECK)
2717 .PHONY: math/check
2719 @go_include@ mime.lo.dep
2720 mime.lo.dep: $(go_mime_files)
2721         $(BUILDDEPS)
2722 mime.lo: $(go_mime_files)
2723         $(BUILDPACKAGE)
2724 mime/check: $(CHECK_DEPS)
2725         @$(CHECK)
2726 .PHONY: mime/check
2728 @go_include@ net.lo.dep
2729 net.lo.dep: $(go_net_files)
2730         $(BUILDDEPS)
2731 net.lo: $(go_net_files)
2732         $(BUILDPACKAGE)
2733 net/check: $(CHECK_DEPS)
2734         @$(CHECK)
2735 .PHONY: net/check
2737 @go_include@ netgo.o.dep
2738 netgo.o.dep: $(go_netgo_files)
2739         $(BUILDDEPS)
2740 netgo.o: $(go_netgo_files)
2741         $(BUILDNETGO)
2743 @go_include@ os.lo.dep
2744 os.lo.dep: $(go_os_files)
2745         $(BUILDDEPS)
2746 os.lo: $(go_os_files)
2747         $(BUILDPACKAGE)
2748 os/check: $(CHECK_DEPS)
2749         @$(CHECK)
2750 .PHONY: os/check
2752 @go_include@ path.lo.dep
2753 path.lo.dep: $(go_path_files)
2754         $(BUILDDEPS)
2755 path.lo: $(go_path_files)
2756         $(BUILDPACKAGE)
2757 path/check: $(CHECK_DEPS)
2758         @$(CHECK)
2759 .PHONY: path/check
2761 @go_include@ reflect-go.lo.dep
2762 reflect-go.lo.dep: $(go_reflect_files)
2763         $(BUILDDEPS)
2764 reflect-go.lo: $(go_reflect_files)
2765         $(BUILDPACKAGE)
2766 reflect/check: $(CHECK_DEPS)
2767         @$(CHECK)
2768 reflect/makefunc_ffi_c.lo: $(go_reflect_makefunc_c_file)
2769         @$(MKDIR_P) reflect
2770         $(LTCOMPILE) -c -o $@ $<
2771 .PHONY: reflect/check
2773 @go_include@ regexp.lo.dep
2774 regexp.lo.dep: $(go_regexp_files)
2775         $(BUILDDEPS)
2776 regexp.lo: $(go_regexp_files)
2777         $(BUILDPACKAGE)
2778 regexp/check: $(CHECK_DEPS)
2779         @$(CHECK)
2780 .PHONY: regexp/check
2782 @go_include@ runtime-go.lo.dep
2783 runtime-go.lo.dep: $(go_runtime_files)
2784         $(BUILDDEPS)
2785 runtime-go.lo: $(go_runtime_files)
2786         $(BUILDPACKAGE)
2787 runtime/check: $(CHECK_DEPS)
2788         @$(CHECK)
2789 .PHONY: runtime/check
2791 @go_include@ sort.lo.dep
2792 sort.lo.dep: $(go_sort_files)
2793         $(BUILDDEPS)
2794 sort.lo: $(go_sort_files)
2795         $(BUILDPACKAGE)
2796 sort/check: $(CHECK_DEPS)
2797         @$(CHECK)
2798 .PHONY: sort/check
2800 @go_include@ strconv.lo.dep
2801 strconv.lo.dep: $(go_strconv_files)
2802         $(BUILDDEPS)
2803 strconv.lo: $(go_strconv_files)
2804         $(BUILDPACKAGE)
2805 strconv/check: $(CHECK_DEPS)
2806         @$(CHECK)
2807 .PHONY: strconv/check
2809 @go_include@ strings.lo.dep
2810 strings.lo.dep: $(go_strings_files)
2811         $(BUILDDEPS)
2812 strings.lo: $(go_strings_files)
2813         $(BUILDPACKAGE)
2814 strings/index.lo: $(go_strings_c_files)
2815         @$(MKDIR_P) strings
2816         $(LTCOMPILE) -c -o strings/index.lo $(srcdir)/go/strings/indexbyte.c
2817 strings/check: $(CHECK_DEPS)
2818         @$(CHECK)
2819 .PHONY: strings/check
2821 @go_include@ sync.lo.dep
2822 sync.lo.dep: $(go_sync_files)
2823         $(BUILDDEPS)
2824 sync.lo: $(go_sync_files)
2825         $(BUILDPACKAGE)
2826 sync/check: $(CHECK_DEPS)
2827         @$(CHECK)
2828 .PHONY: sync/check
2830 @go_include@ testing.lo.dep
2831 testing.lo.dep: $(go_testing_files)
2832         $(BUILDDEPS)
2833 testing.lo: $(go_testing_files)
2834         $(BUILDPACKAGE)
2835 testing/check: $(CHECK_DEPS)
2836         @$(CHECK)
2837 .PHONY: testing/check
2839 @go_include@ time-go.lo.dep
2840 time-go.lo.dep: $(go_time_files)
2841         $(BUILDDEPS)
2842 time-go.lo: $(go_time_files)
2843         $(BUILDPACKAGE)
2844 time/check: $(CHECK_DEPS)
2845         @$(CHECK)
2846 .PHONY: time/check
2848 @go_include@ unicode.lo.dep
2849 unicode.lo.dep: $(go_unicode_files)
2850         $(BUILDDEPS)
2851 unicode.lo: $(go_unicode_files)
2852         $(BUILDPACKAGE)
2853 unicode/check: $(CHECK_DEPS)
2854         @$(CHECK)
2855 .PHONY: unicode/check
2857 @go_include@ archive/tar.lo.dep
2858 archive/tar.lo.dep: $(go_archive_tar_files)
2859         $(BUILDDEPS)
2860 archive/tar.lo: $(go_archive_tar_files)
2861         $(BUILDPACKAGE)
2862 archive/tar/check: $(CHECK_DEPS)
2863         @$(CHECK)
2864 .PHONY: archive/tar/check
2866 @go_include@ archive/zip.lo.dep
2867 archive/zip.lo.dep: $(go_archive_zip_files)
2868         $(BUILDDEPS)
2869 archive/zip.lo: $(go_archive_zip_files)
2870         $(BUILDPACKAGE)
2871 archive/zip/check: $(CHECK_DEPS)
2872         @$(CHECK)
2873 .PHONY: archive/zip/check
2875 @go_include@ compress/bzip2.lo.dep
2876 compress/bzip2.lo.dep: $(go_compress_bzip2_files)
2877         $(BUILDDEPS)
2878 compress/bzip2.lo: $(go_compress_bzip2_files)
2879         $(BUILDPACKAGE)
2880 compress/bzip2/check: $(CHECK_DEPS)
2881         @$(CHECK)
2882 .PHONY: compress/bzip2/check
2884 @go_include@ compress/flate.lo.dep
2885 compress/flate.lo.dep: $(go_compress_flate_files)
2886         $(BUILDDEPS)
2887 compress/flate.lo: $(go_compress_flate_files)
2888         $(BUILDPACKAGE)
2889 compress/flate/check: $(CHECK_DEPS)
2890         @$(CHECK)
2891 .PHONY: compress/flate/check
2893 @go_include@ compress/gzip.lo.dep
2894 compress/gzip.lo.dep: $(go_compress_gzip_files)
2895         $(BUILDDEPS)
2896 compress/gzip.lo: $(go_compress_gzip_files)
2897         $(BUILDPACKAGE)
2898 compress/gzip/check: $(CHECK_DEPS)
2899         @$(CHECK)
2900 .PHONY: compress/gzip/check
2902 @go_include@ compress/lzw.lo.dep
2903 compress/lzw.lo.dep: $(go_compress_lzw_files)
2904         $(BUILDDEPS)
2905 compress/lzw.lo: $(go_compress_lzw_files)
2906         $(BUILDPACKAGE)
2907 compress/lzw/check: $(CHECK_DEPS)
2908         @$(CHECK)
2909 .PHONY: compress/lzw/check
2911 @go_include@ compress/zlib.lo.dep
2912 compress/zlib.lo.dep: $(go_compress_zlib_files)
2913         $(BUILDDEPS)
2914 compress/zlib.lo: $(go_compress_zlib_files)
2915         $(BUILDPACKAGE)
2916 compress/zlib/check: $(CHECK_DEPS)
2917         @$(CHECK)
2918 .PHONY: compress/zlib/check
2920 @go_include@ container/heap.lo.dep
2921 container/heap.lo.dep: $(go_container_heap_files)
2922         $(BUILDDEPS)
2923 container/heap.lo: $(go_container_heap_files)
2924         $(BUILDPACKAGE)
2925 container/heap/check: $(CHECK_DEPS)
2926         @$(CHECK)
2927 .PHONY: container/heap/check
2929 @go_include@ container/list.lo.dep
2930 container/list.lo.dep: $(go_container_list_files)
2931         $(BUILDDEPS)
2932 container/list.lo: $(go_container_list_files)
2933         $(BUILDPACKAGE)
2934 container/list/check: $(CHECK_DEPS)
2935         @$(CHECK)
2936 .PHONY: container/list/check
2938 @go_include@ container/ring.lo.dep
2939 container/ring.lo.dep: $(go_container_ring_files)
2940         $(BUILDDEPS)
2941 container/ring.lo: $(go_container_ring_files)
2942         $(BUILDPACKAGE)
2943 container/ring/check: $(CHECK_DEPS)
2944         @$(CHECK)
2945 .PHONY: container/ring/check
2947 @go_include@ crypto/aes.lo.dep
2948 crypto/aes.lo.dep: $(go_crypto_aes_files)
2949         $(BUILDDEPS)
2950 crypto/aes.lo: $(go_crypto_aes_files)
2951         $(BUILDPACKAGE)
2952 crypto/aes/check: $(CHECK_DEPS)
2953         @$(CHECK)
2954 .PHONY: crypto/aes/check
2956 @go_include@ crypto/cipher.lo.dep
2957 crypto/cipher.lo.dep: $(go_crypto_cipher_files)
2958         $(BUILDDEPS)
2959 crypto/cipher.lo: $(go_crypto_cipher_files)
2960         $(BUILDPACKAGE)
2961 crypto/cipher/check: $(CHECK_DEPS)
2962         @$(CHECK)
2963 .PHONY: crypto/cipher/check
2965 @go_include@ crypto/des.lo.dep
2966 crypto/des.lo.dep: $(go_crypto_des_files)
2967         $(BUILDDEPS)
2968 crypto/des.lo: $(go_crypto_des_files)
2969         $(BUILDPACKAGE)
2970 crypto/des/check: $(CHECK_DEPS)
2971         @$(CHECK)
2972 .PHONY: crypto/des/check
2974 @go_include@ crypto/dsa.lo.dep
2975 crypto/dsa.lo.dep: $(go_crypto_dsa_files)
2976         $(BUILDDEPS)
2977 crypto/dsa.lo: $(go_crypto_dsa_files)
2978         $(BUILDPACKAGE)
2979 crypto/dsa/check: $(CHECK_DEPS)
2980         @$(CHECK)
2981 .PHONY: crypto/dsa/check
2983 @go_include@ crypto/ecdsa.lo.dep
2984 crypto/ecdsa.lo.dep: $(go_crypto_ecdsa_files)
2985         $(BUILDDEPS)
2986 crypto/ecdsa.lo: $(go_crypto_ecdsa_files)
2987         $(BUILDPACKAGE)
2988 crypto/ecdsa/check: $(CHECK_DEPS)
2989         @$(CHECK)
2990 .PHONY: crypto/ecdsa/check
2992 @go_include@ crypto/elliptic.lo.dep
2993 crypto/elliptic.lo.dep: $(go_crypto_elliptic_files)
2994         $(BUILDDEPS)
2995 crypto/elliptic.lo: $(go_crypto_elliptic_files)
2996         $(BUILDPACKAGE)
2997 crypto/elliptic/check: $(CHECK_DEPS)
2998         @$(CHECK)
2999 .PHONY: crypto/elliptic/check
3001 @go_include@ crypto/hmac.lo.dep
3002 crypto/hmac.lo.dep: $(go_crypto_hmac_files)
3003         $(BUILDDEPS)
3004 crypto/hmac.lo: $(go_crypto_hmac_files)
3005         $(BUILDPACKAGE)
3006 crypto/hmac/check: $(CHECK_DEPS)
3007         @$(CHECK)
3008 .PHONY: crypto/hmac/check
3010 @go_include@ crypto/md5.lo.dep
3011 crypto/md5.lo.dep: $(go_crypto_md5_files)
3012         $(BUILDDEPS)
3013 crypto/md5.lo: $(go_crypto_md5_files)
3014         $(BUILDPACKAGE)
3015 crypto/md5/check: $(CHECK_DEPS)
3016         @$(CHECK)
3017 .PHONY: crypto/md5/check
3019 @go_include@ crypto/rand.lo.dep
3020 crypto/rand.lo.dep: $(go_crypto_rand_files)
3021         $(BUILDDEPS)
3022 crypto/rand.lo: $(go_crypto_rand_files)
3023         $(BUILDPACKAGE)
3024 crypto/rand/check: $(CHECK_DEPS)
3025         @$(CHECK)
3026 .PHONY: crypto/rand/check
3028 @go_include@ crypto/rc4.lo.dep
3029 crypto/rc4.lo.dep: $(go_crypto_rc4_files)
3030         $(BUILDDEPS)
3031 crypto/rc4.lo: $(go_crypto_rc4_files)
3032         $(BUILDPACKAGE)
3033 crypto/rc4/check: $(CHECK_DEPS)
3034         @$(CHECK)
3035 .PHONY: crypto/rc4/check
3037 @go_include@ crypto/rsa.lo.dep
3038 crypto/rsa.lo.dep: $(go_crypto_rsa_files)
3039         $(BUILDDEPS)
3040 crypto/rsa.lo: $(go_crypto_rsa_files)
3041         $(BUILDPACKAGE)
3042 crypto/rsa/check: $(CHECK_DEPS)
3043         @$(CHECK)
3044 .PHONY: crypto/rsa/check
3046 @go_include@ crypto/sha1.lo.dep
3047 crypto/sha1.lo.dep: $(go_crypto_sha1_files)
3048         $(BUILDDEPS)
3049 crypto/sha1.lo: $(go_crypto_sha1_files)
3050         $(BUILDPACKAGE)
3051 crypto/sha1/check: $(CHECK_DEPS)
3052         @$(CHECK)
3053 .PHONY: crypto/sha1/check
3055 @go_include@ crypto/sha256.lo.dep
3056 crypto/sha256.lo.dep: $(go_crypto_sha256_files)
3057         $(BUILDDEPS)
3058 crypto/sha256.lo: $(go_crypto_sha256_files)
3059         $(BUILDPACKAGE)
3060 crypto/sha256/check: $(CHECK_DEPS)
3061         @$(CHECK)
3062 .PHONY: crypto/sha256/check
3064 @go_include@ crypto/sha512.lo.dep
3065 crypto/sha512.lo.dep: $(go_crypto_sha512_files)
3066         $(BUILDDEPS)
3067 crypto/sha512.lo: $(go_crypto_sha512_files)
3068         $(BUILDPACKAGE)
3069 crypto/sha512/check: $(CHECK_DEPS)
3070         @$(CHECK)
3071 .PHONY: crypto/sha512/check
3073 @go_include@ crypto/subtle.lo.dep
3074 crypto/subtle.lo.dep: $(go_crypto_subtle_files)
3075         $(BUILDDEPS)
3076 crypto/subtle.lo: $(go_crypto_subtle_files)
3077         $(BUILDPACKAGE)
3078 crypto/subtle/check: $(CHECK_DEPS)
3079         @$(CHECK)
3080 .PHONY: crypto/subtle/check
3082 @go_include@ crypto/tls.lo.dep
3083 crypto/tls.lo.dep: $(go_crypto_tls_files)
3084         $(BUILDDEPS)
3085 crypto/tls.lo: $(go_crypto_tls_files)
3086         $(BUILDPACKAGE)
3087 crypto/tls/check: $(CHECK_DEPS)
3088         @$(CHECK)
3089 .PHONY: crypto/tls/check
3091 @go_include@ crypto/x509.lo.dep
3092 crypto/x509.lo.dep: $(go_crypto_x509_files)
3093         $(BUILDDEPS)
3094 crypto/x509.lo: $(go_crypto_x509_files)
3095         $(BUILDPACKAGE)
3096 crypto/x509/check: $(CHECK_DEPS)
3097         @$(CHECK)
3098 .PHONY: crypto/x509/check
3100 @go_include@ crypto/x509/pkix.lo.dep
3101 crypto/x509/pkix.lo.dep: $(go_crypto_x509_pkix_files)
3102         $(BUILDDEPS)
3103 crypto/x509/pkix.lo: $(go_crypto_x509_pkix_files)
3104         $(BUILDPACKAGE)
3105 crypto/x509/pkix/check: $(CHECK_DEPS)
3106         @$(CHECK)
3107 .PHONY: crypto/x509/pkix/check
3109 @go_include@ database/sql.lo.dep
3110 database/sql.lo.dep: $(go_database_sql_files)
3111         $(BUILDDEPS)
3112 database/sql.lo: $(go_database_sql_files)
3113         $(BUILDPACKAGE)
3114 database/sql/check: $(CHECK_DEPS)
3115         @$(CHECK)
3116 .PHONY: database/sql/check
3118 @go_include@ database/sql/driver.lo.dep
3119 database/sql/driver.lo.dep: $(go_database_sql_driver_files)
3120         $(BUILDDEPS)
3121 database/sql/driver.lo: $(go_database_sql_driver_files)
3122         $(BUILDPACKAGE)
3123 database/sql/driver/check: $(CHECK_DEPS)
3124         @$(CHECK)
3125 .PHONY: database/sql/driver/check
3127 @go_include@ debug/dwarf.lo.dep
3128 debug/dwarf.lo.dep: $(go_debug_dwarf_files)
3129         $(BUILDDEPS)
3130 debug/dwarf.lo: $(go_debug_dwarf_files)
3131         $(BUILDPACKAGE)
3132 debug/dwarf/check: $(CHECK_DEPS)
3133         @$(CHECK)
3134 .PHONY: debug/dwarf/check
3136 @go_include@ debug/elf.lo.dep
3137 debug/elf.lo.dep: $(go_debug_elf_files)
3138         $(BUILDDEPS)
3139 debug/elf.lo: $(go_debug_elf_files)
3140         $(BUILDPACKAGE)
3141 debug/elf/check: $(CHECK_DEPS)
3142         @$(CHECK)
3143 .PHONY: debug/elf/check
3145 @go_include@ debug/gosym.lo.dep
3146 debug/gosym.lo.dep: $(go_debug_gosym_files)
3147         $(BUILDDEPS)
3148 debug/gosym.lo: $(go_debug_gosym_files)
3149         $(BUILDPACKAGE)
3150 debug/gosym/check: $(CHECK_DEPS)
3151         @$(CHECK)
3152 .PHONY: debug/gosym/check
3154 @go_include@ debug/macho.lo.dep
3155 debug/macho.lo.dep: $(go_debug_macho_files)
3156         $(BUILDDEPS)
3157 debug/macho.lo: $(go_debug_macho_files)
3158         $(BUILDPACKAGE)
3159 debug/macho/check: $(CHECK_DEPS)
3160         @$(CHECK)
3161 .PHONY: debug/macho/check
3163 @go_include@ debug/pe.lo.dep
3164 debug/pe.lo.dep: $(go_debug_pe_files)
3165         $(BUILDDEPS)
3166 debug/pe.lo: $(go_debug_pe_files)
3167         $(BUILDPACKAGE)
3168 debug/pe/check: $(CHECK_DEPS)
3169         @$(CHECK)
3170 .PHONY: debug/pe/check
3172 @go_include@ debug/plan9obj.lo.dep
3173 debug/plan9obj.lo.dep: $(go_debug_plan9obj_files)
3174         $(BUILDDEPS)
3175 debug/plan9obj.lo: $(go_debug_plan9obj_files)
3176         $(BUILDPACKAGE)
3177 debug/plan9obj/check: $(CHECK_DEPS)
3178         @$(CHECK)
3179 .PHONY: debug/plan9obj/check
3181 @go_include@ encoding/asn1.lo.dep
3182 encoding/asn1.lo.dep: $(go_encoding_asn1_files)
3183         $(BUILDDEPS)
3184 encoding/asn1.lo: $(go_encoding_asn1_files)
3185         $(BUILDPACKAGE)
3186 encoding/asn1/check: $(CHECK_DEPS)
3187         @$(CHECK)
3188 .PHONY: encoding/asn1/check
3190 @go_include@ encoding/ascii85.lo.dep
3191 encoding/ascii85.lo.dep: $(go_encoding_ascii85_files)
3192         $(BUILDDEPS)
3193 encoding/ascii85.lo: $(go_encoding_ascii85_files)
3194         $(BUILDPACKAGE)
3195 encoding/ascii85/check: $(CHECK_DEPS)
3196         @$(CHECK)
3197 .PHONY: encoding/ascii85/check
3199 @go_include@ encoding/base32.lo.dep
3200 encoding/base32.lo.dep: $(go_encoding_base32_files)
3201         $(BUILDDEPS)
3202 encoding/base32.lo: $(go_encoding_base32_files)
3203         $(BUILDPACKAGE)
3204 encoding/base32/check: $(CHECK_DEPS)
3205         @$(CHECK)
3206 .PHONY: encoding/base32/check
3208 @go_include@ encoding/base64.lo.dep
3209 encoding/base64.lo.dep: $(go_encoding_base64_files)
3210         $(BUILDDEPS)
3211 encoding/base64.lo: $(go_encoding_base64_files)
3212         $(BUILDPACKAGE)
3213 encoding/base64/check: $(CHECK_DEPS)
3214         @$(CHECK)
3215 .PHONY: encoding/base64/check
3217 @go_include@ encoding/binary.lo.dep
3218 encoding/binary.lo.dep: $(go_encoding_binary_files)
3219         $(BUILDDEPS)
3220 encoding/binary.lo: $(go_encoding_binary_files)
3221         $(BUILDPACKAGE)
3222 encoding/binary/check: $(CHECK_DEPS)
3223         @$(CHECK)
3224 .PHONY: encoding/binary/check
3226 @go_include@ encoding/csv.lo.dep
3227 encoding/csv.lo.dep: $(go_encoding_csv_files)
3228         $(BUILDDEPS)
3229 encoding/csv.lo: $(go_encoding_csv_files)
3230         $(BUILDPACKAGE)
3231 encoding/csv/check: $(CHECK_DEPS)
3232         @$(CHECK)
3233 .PHONY: encoding/csv/check
3235 @go_include@ encoding/gob.lo.dep
3236 encoding/gob.lo.dep: $(go_encoding_gob_files)
3237         $(BUILDDEPS)
3238 encoding/gob.lo: $(go_encoding_gob_files)
3239         $(BUILDPACKAGE)
3240 encoding/gob/check: $(CHECK_DEPS)
3241         @$(CHECK)
3242 .PHONY: encoding/gob/check
3244 @go_include@ encoding/hex.lo.dep
3245 encoding/hex.lo.dep: $(go_encoding_hex_files)
3246         $(BUILDDEPS)
3247 encoding/hex.lo: $(go_encoding_hex_files)
3248         $(BUILDPACKAGE)
3249 encoding/hex/check: $(CHECK_DEPS)
3250         @$(CHECK)
3251 .PHONY: encoding/hex/check
3253 @go_include@ encoding/json.lo.dep
3254 encoding/json.lo.dep: $(go_encoding_json_files)
3255         $(BUILDDEPS)
3256 encoding/json.lo: $(go_encoding_json_files)
3257         $(BUILDPACKAGE)
3258 encoding/json/check: $(CHECK_DEPS)
3259         @$(CHECK)
3260 .PHONY: encoding/json/check
3262 @go_include@ encoding/pem.lo.dep
3263 encoding/pem.lo.dep: $(go_encoding_pem_files)
3264         $(BUILDDEPS)
3265 encoding/pem.lo: $(go_encoding_pem_files)
3266         $(BUILDPACKAGE)
3267 encoding/pem/check: $(CHECK_DEPS)
3268         @$(CHECK)
3269 .PHONY: encoding/pem/check
3271 @go_include@ encoding/xml.lo.dep
3272 encoding/xml.lo.dep: $(go_encoding_xml_files)
3273         $(BUILDDEPS)
3274 encoding/xml.lo: $(go_encoding_xml_files)
3275         $(BUILDPACKAGE)
3276 encoding/xml/check: $(CHECK_DEPS)
3277         @$(CHECK)
3278 .PHONY: encoding/xml/check
3280 @go_include@ exp/proxy.lo.dep
3281 exp/proxy.lo.dep: $(go_exp_proxy_files)
3282         $(BUILDDEPS)
3283 exp/proxy.lo: $(go_exp_proxy_files)
3284         $(BUILDPACKAGE)
3285 exp/proxy/check: $(CHECK_DEPS)
3286         @$(CHECK)
3287 .PHONY: exp/proxy/check
3289 @go_include@ exp/terminal.lo.dep
3290 exp/terminal.lo.dep: $(go_exp_terminal_files)
3291         $(BUILDDEPS)
3292 exp/terminal.lo: $(go_exp_terminal_files)
3293         $(BUILDPACKAGE)
3294 exp/terminal/check: $(CHECK_DEPS)
3295         @$(CHECK)
3296 .PHONY: exp/terminal/check
3298 @go_include@ html/template.lo.dep
3299 html/template.lo.dep: $(go_html_template_files)
3300         $(BUILDDEPS)
3301 html/template.lo: $(go_html_template_files)
3302         $(BUILDPACKAGE)
3303 html/template/check: $(CHECK_DEPS)
3304         @$(CHECK)
3305 .PHONY: html/template/check
3307 @go_include@ go/ast.lo.dep
3308 go/ast.lo.dep: $(go_go_ast_files)
3309         $(BUILDDEPS)
3310 go/ast.lo: $(go_go_ast_files)
3311         $(BUILDPACKAGE)
3312 go/ast/check: $(CHECK_DEPS)
3313         @$(CHECK)
3314 .PHONY: go/ast/check
3316 @go_include@ go/build.lo.dep
3317 go/build.lo.dep: $(go_go_build_files)
3318         $(BUILDDEPS)
3319 go/build.lo: $(go_go_build_files)
3320         $(BUILDPACKAGE)
3321 go/build/check: $(CHECK_DEPS)
3322         @$(CHECK)
3323 .PHONY: go/build/check
3325 @go_include@ go/constant.lo.dep
3326 go/constant.lo.dep: $(go_go_constant_files)
3327         $(BUILDDEPS)
3328 go/constant.lo: $(go_go_constant_files)
3329         $(BUILDPACKAGE)
3330 go/constant/check: $(CHECK_DEPS)
3331         @$(CHECK)
3332 .PHONY: go/constant/check
3334 @go_include@ go/doc.lo.dep
3335 go/doc.lo.dep: $(go_go_doc_files)
3336         $(BUILDDEPS)
3337 go/doc.lo: $(go_go_doc_files)
3338         $(BUILDPACKAGE)
3339 go/doc/check: $(CHECK_DEPS)
3340         @$(CHECK)
3341 .PHONY: go/doc/check
3343 @go_include@ go/format.lo.dep
3344 go/format.lo.dep: $(go_go_format_files)
3345         $(BUILDDEPS)
3346 go/format.lo: $(go_go_format_files)
3347         $(BUILDPACKAGE)
3348 go/format/check: $(CHECK_DEPS)
3349         @$(CHECK)
3350 .PHONY: go/format/check
3352 @go_include@ go/importer.lo.dep
3353 go/importer.lo.dep: $(go_go_importer_files)
3354         $(BUILDDEPS)
3355 go/importer.lo: $(go_go_importer_files)
3356         $(BUILDPACKAGE)
3357 go/importer/check: $(CHECK_DEPS)
3358         @$(CHECK)
3359 .PHONY: go/importer/check
3361 @go_include@ go/parser.lo.dep
3362 go/parser.lo.dep: $(go_go_parser_files)
3363         $(BUILDDEPS)
3364 go/parser.lo: $(go_go_parser_files)
3365         $(BUILDPACKAGE)
3366 go/parser/check: $(CHECK_DEPS)
3367         @$(CHECK)
3368 .PHONY: go/parser/check
3370 @go_include@ go/printer.lo.dep
3371 go/printer.lo.dep: $(go_go_printer_files)
3372         $(BUILDDEPS)
3373 go/printer.lo: $(go_go_printer_files)
3374         $(BUILDPACKAGE)
3375 go/printer/check: $(CHECK_DEPS)
3376         @$(CHECK)
3377 .PHONY: go/printer/check
3379 @go_include@ go/scanner.lo.dep
3380 go/scanner.lo.dep: $(go_go_scanner_files)
3381         $(BUILDDEPS)
3382 go/scanner.lo: $(go_go_scanner_files)
3383         $(BUILDPACKAGE)
3384 go/scanner/check: $(CHECK_DEPS)
3385         @$(CHECK)
3386 .PHONY: go/scanner/check
3388 @go_include@ go/token.lo.dep
3389 go/token.lo.dep: $(go_go_token_files)
3390         $(BUILDDEPS)
3391 go/token.lo: $(go_go_token_files)
3392         $(BUILDPACKAGE)
3393 go/token/check: $(CHECK_DEPS)
3394         @$(CHECK)
3395 .PHONY: go/token/check
3397 @go_include@ go/types.lo.dep
3398 go/types.lo.dep: $(go_go_types_files)
3399         $(BUILDDEPS)
3400 go/types.lo: $(go_go_types_files)
3401         $(BUILDPACKAGE)
3402 go/types/check: $(CHECK_DEPS)
3403         @$(CHECK)
3404 .PHONY: go/types/check
3406 @go_include@ go/internal/gcimporter.lo.dep
3407 go/internal/gcimporter.lo.dep: $(go_go_internal_gcimporter_files)
3408         $(BUILDDEPS)
3409 go/internal/gcimporter.lo: $(go_go_internal_gcimporter_files)
3410         $(BUILDPACKAGE)
3411 go/internal/gcimporter/check: $(CHECK_DEPS)
3412         @$(CHECK)
3413 .PHONY: go/internal/gcimporter/check
3415 @go_include@ go/internal/gccgoimporter.lo.dep
3416 go/internal/gccgoimporter.lo.dep: $(go_go_internal_gccgoimporter_files)
3417         $(BUILDDEPS)
3418 go/internal/gccgoimporter.lo: $(go_go_internal_gccgoimporter_files)
3419         $(BUILDPACKAGE)
3420 go/internal/gccgoimporter/check: $(CHECK_DEPS)
3421         @$(CHECK)
3422 .PHONY: go/internal/gccgoimporter/check
3424 @go_include@ golang_org/x/net/http2/hpack.lo.dep
3425 golang_org/x/net/http2/hpack.lo.dep: $(go_golang_org_x_net_http2_hpack_files)
3426         $(BUILDDEPS)
3427 golang_org/x/net/http2/hpack.lo: $(go_golang_org_x_net_http2_hpack_files)
3428         $(BUILDPACKAGE)
3429 golang_org/x/net/http2/hpack/check: $(CHECK_DEPS)
3430         @$(CHECK)
3431 .PHONY: golang_org/x/net/http2/hpack/check
3433 @go_include@ golang_org/x/net/lex/httplex.lo.dep
3434 golang_org/x/net/lex/httplex.lo.dep: $(go_golang_org_x_net_lex_httplex_files)
3435         $(BUILDDEPS)
3436 golang_org/x/net/lex/httplex.lo: $(go_golang_org_x_net_lex_httplex_files)
3437         $(BUILDPACKAGE)
3438 golang_org/x/net/lex/httplex/check: $(CHECK_DEPS)
3439         @$(CHECK)
3440 .PHONY: golang_org/x/net/lex/httplex/check
3442 if LIBGO_IS_BSD
3443 @go_include@ golang_org/x/net/route.lo.dep
3444 golang_org/x/net/route.lo.dep: $(go_golang_org_x_net_route_files)
3445         $(BUILDDEPS)
3446 golang_org/x/net/route.lo: $(go_golang_org_x_net_route_files)
3447         $(BUILDPACKAGE)
3448 golang_org/x/net/route/check: $(CHECK_DEPS)
3449         @$(CHECK)
3450 endif
3451 .PHONY: golang_org/x/net/route/check
3453 @go_include@ hash/adler32.lo.dep
3454 hash/adler32.lo.dep: $(go_hash_adler32_files)
3455         $(BUILDDEPS)
3456 hash/adler32.lo: $(go_hash_adler32_files)
3457         $(BUILDPACKAGE)
3458 hash/adler32/check: $(CHECK_DEPS)
3459         @$(CHECK)
3460 .PHONY: hash/adler32/check
3462 @go_include@ hash/crc32.lo.dep
3463 hash/crc32.lo.dep: $(go_hash_crc32_files)
3464         $(BUILDDEPS)
3465 hash/crc32.lo: $(go_hash_crc32_files)
3466         $(BUILDPACKAGE)
3467 hash/crc32/check: $(CHECK_DEPS)
3468         @$(CHECK)
3469 .PHONY: hash/crc32/check
3471 @go_include@ hash/crc64.lo.dep
3472 hash/crc64.lo.dep: $(go_hash_crc64_files)
3473         $(BUILDDEPS)
3474 hash/crc64.lo: $(go_hash_crc64_files)
3475         $(BUILDPACKAGE)
3476 hash/crc64/check: $(CHECK_DEPS)
3477         @$(CHECK)
3478 .PHONY: hash/crc64/check
3480 @go_include@ hash/fnv.lo.dep
3481 hash/fnv.lo.dep: $(go_hash_fnv_files)
3482         $(BUILDDEPS)
3483 hash/fnv.lo: $(go_hash_fnv_files)
3484         $(BUILDPACKAGE)
3485 hash/fnv/check: $(CHECK_DEPS)
3486         @$(CHECK)
3487 .PHONY: hash/fnv/check
3489 @go_include@ image/color.lo.dep
3490 image/color.lo.dep: $(go_image_color_files)
3491         $(BUILDDEPS)
3492 image/color.lo: $(go_image_color_files)
3493         $(BUILDPACKAGE)
3494 image/color/check: $(CHECK_DEPS)
3495         @$(CHECK)
3496 .PHONY: image/color/check
3498 @go_include@ image/color/palette.lo.dep
3499 image/color/palette.lo.dep: $(go_image_color_palette_files)
3500         $(BUILDDEPS)
3501 image/color/palette.lo: $(go_image_color_palette_files)
3502         $(BUILDPACKAGE)
3503 image/color/palette/check: $(CHECK_DEPS)
3504         @$(CHECK)
3505 .PHONY: image/color/palette/check
3507 @go_include@ image/draw.lo.dep
3508 image/draw.lo.dep: $(go_image_draw_files)
3509         $(BUILDDEPS)
3510 image/draw.lo: $(go_image_draw_files)
3511         $(BUILDPACKAGE)
3512 image/draw/check: $(CHECK_DEPS)
3513         @$(CHECK)
3514 .PHONY: image/draw/check
3516 @go_include@ image/gif.lo.dep
3517 image/gif.lo.dep: $(go_image_gif_files)
3518         $(BUILDDEPS)
3519 image/gif.lo: $(go_image_gif_files)
3520         $(BUILDPACKAGE)
3521 image/gif/check: $(CHECK_DEPS)
3522         @$(CHECK)
3523 .PHONY: image/gif/check
3525 @go_include@ image/internal/imageutil.lo.dep
3526 image/internal/imageutil.lo.dep: $(go_image_internal_imageutil_files)
3527         $(BUILDDEPS)
3528 image/internal/imageutil.lo: $(go_image_internal_imageutil_files)
3529         $(BUILDPACKAGE)
3530 image/internal/imageutil/check: $(CHECK_DEPS)
3531         @$(CHECK)
3532 .PHONY: image/internal/imageutil/check
3534 @go_include@ image/jpeg.lo.dep
3535 image/jpeg.lo.dep: $(go_image_jpeg_files)
3536         $(BUILDDEPS)
3537 image/jpeg.lo: $(go_image_jpeg_files)
3538         $(BUILDPACKAGE)
3539 image/jpeg/check: $(CHECK_DEPS)
3540         @$(CHECK)
3541 .PHONY: image/jpeg/check
3543 @go_include@ image/png.lo.dep
3544 image/png.lo.dep: $(go_image_png_files)
3545         $(BUILDDEPS)
3546 image/png.lo: $(go_image_png_files)
3547         $(BUILDPACKAGE)
3548 image/png/check: $(CHECK_DEPS)
3549         @$(CHECK)
3550 .PHONY: image/png/check
3552 @go_include@ index/suffixarray.lo.dep
3553 index/suffixarray.lo.dep: $(go_index_suffixarray_files)
3554         $(BUILDDEPS)
3555 index/suffixarray.lo: $(go_index_suffixarray_files)
3556         $(BUILDPACKAGE)
3557 index/suffixarray/check: $(CHECK_DEPS)
3558         @$(CHECK)
3559 .PHONY: index/suffixarray/check
3561 @go_include@ internal/nettrace.lo.dep
3562 internal/nettrace.lo.dep: $(go_internal_nettrace_files)
3563         $(BUILDDEPS)
3564 internal/nettrace.lo: $(go_internal_nettrace_files)
3565         $(BUILDPACKAGE)
3566 internal/nettrace/check: $(CHECK_DEPS)
3567         @$(CHECK)
3568 .PHONY: internal/nettrace/check
3570 @go_include@ internal/race.lo.dep
3571 internal/race.lo.dep: $(go_internal_race_files)
3572         $(BUILDDEPS)
3573 internal/race.lo: $(go_internal_race_files)
3574         $(BUILDPACKAGE)
3575 internal/race/check: $(CHECK_DEPS)
3576         @$(CHECK)
3577 .PHONY: internal/race/check
3579 @go_include@ internal/singleflight.lo.dep
3580 internal/singleflight.lo.dep: $(go_internal_singleflight_files)
3581         $(BUILDDEPS)
3582 internal/singleflight.lo: $(go_internal_singleflight_files)
3583         $(BUILDPACKAGE)
3584 internal/singleflight/check: $(CHECK_DEPS)
3585         @$(CHECK)
3586 .PHONY: internal/singleflight/check
3588 @go_include@ internal/syscall/unix.lo.dep
3589 internal/syscall/unix.lo.dep: $(go_internal_syscall_unix_files)
3590         $(BUILDDEPS)
3591 internal/syscall/unix.lo: $(go_internal_syscall_unix_files)
3592         $(BUILDPACKAGE)
3593 internal/syscall/unix/check: $(CHECK_DEPS)
3594         @$(CHECK)
3595 .PHONY: internal/syscall/unix/check
3597 @go_include@ internal/testenv.lo.dep
3598 internal/testenv.lo.dep: $(go_internal_testenv_files)
3599         $(BUILDDEPS)
3600 internal/testenv.lo: $(go_internal_testenv_files)
3601         $(BUILDPACKAGE)
3602 internal/testenv/check: $(CHECK_DEPS)
3603         @$(CHECK)
3604 .PHONY: internal/testenv/check
3606 @go_include@ internal/trace.lo.dep
3607 internal/trace.lo.dep: $(go_internal_trace_files)
3608         $(BUILDDEPS)
3609 internal/trace.lo: $(go_internal_trace_files)
3610         $(BUILDPACKAGE)
3611 internal/trace/check: $(CHECK_DEPS)
3612         @$(CHECK)
3613 .PHONY: internal/trace/check
3615 @go_include@ io/ioutil.lo.dep
3616 io/ioutil.lo.dep: $(go_io_ioutil_files)
3617         $(BUILDDEPS)
3618 io/ioutil.lo: $(go_io_ioutil_files)
3619         $(BUILDPACKAGE)
3620 io/ioutil/check: $(CHECK_DEPS)
3621         @$(CHECK)
3622 .PHONY: io/ioutil/check
3624 @go_include@ log/syslog.lo.dep
3625 log/syslog.lo.dep: $(go_log_syslog_files)
3626         $(BUILDDEPS)
3627 log/syslog.lo: $(go_log_syslog_files)
3628         $(BUILDPACKAGE)
3629 log/syslog/syslog_c.lo: $(go_syslog_c_files) log/syslog.lo
3630         @$(MKDIR_P) log/syslog
3631         $(LTCOMPILE) -c -o $@ $(srcdir)/go/log/syslog/syslog_c.c
3632 log/syslog/check: $(CHECK_DEPS)
3633         @$(CHECK)
3634 .PHONY: log/syslog/check
3636 @go_include@ math/big.lo.dep
3637 math/big.lo.dep: $(go_math_big_files)
3638         $(BUILDDEPS)
3639 math/big.lo: $(go_math_big_files)
3640         $(BUILDPACKAGE)
3641 math/big/check: $(CHECK_DEPS)
3642         @$(CHECK)
3643 .PHONY: math/big/check
3645 @go_include@ math/cmplx.lo.dep
3646 math/cmplx.lo.dep: $(go_math_cmplx_files)
3647         $(BUILDDEPS)
3648 math/cmplx.lo: $(go_math_cmplx_files)
3649         $(BUILDPACKAGE)
3650 math/cmplx/check: $(CHECK_DEPS)
3651         @$(CHECK)
3652 .PHONY: math/cmplx/check
3654 @go_include@ math/rand.lo.dep
3655 math/rand.lo.dep: $(go_math_rand_files)
3656         $(BUILDDEPS)
3657 math/rand.lo: $(go_math_rand_files)
3658         $(BUILDPACKAGE)
3659 math/rand/check: $(CHECK_DEPS)
3660         @$(CHECK)
3661 .PHONY: math/rand/check
3663 @go_include@ mime/multipart.lo.dep
3664 mime/multipart.lo.dep: $(go_mime_multipart_files)
3665         $(BUILDDEPS)
3666 mime/multipart.lo: $(go_mime_multipart_files)
3667         $(BUILDPACKAGE)
3668 mime/multipart/check: $(CHECK_DEPS)
3669         @$(CHECK)
3670 .PHONY: mime/multipart/check
3672 @go_include@ mime/quotedprintable.lo.dep
3673 mime/quotedprintable.lo.dep: $(go_mime_quotedprintable_files)
3674         $(BUILDDEPS)
3675 mime/quotedprintable.lo: $(go_mime_quotedprintable_files)
3676         $(BUILDPACKAGE)
3677 mime/quotedprintable/check: $(CHECK_DEPS)
3678         @$(CHECK)
3679 .PHONY: mime/quotedprintable/check
3681 @go_include@ net/http.lo.dep
3682 net/http.lo.dep: $(go_net_http_files)
3683         $(BUILDDEPS)
3684 net/http.lo: $(go_net_http_files)
3685         $(BUILDPACKAGE)
3686 net/http/check: $(CHECK_DEPS)
3687         @$(CHECK)
3688 .PHONY: net/http/check
3690 @go_include@ net/mail.lo.dep
3691 net/mail.lo.dep: $(go_net_mail_files)
3692         $(BUILDDEPS)
3693 net/mail.lo: $(go_net_mail_files)
3694         $(BUILDPACKAGE)
3695 net/mail/check: $(CHECK_DEPS)
3696         @$(CHECK)
3697 .PHONY: net/mail/check
3699 @go_include@ net/rpc.lo.dep
3700 net/rpc.lo.dep: $(go_net_rpc_files)
3701         $(BUILDDEPS)
3702 net/rpc.lo: $(go_net_rpc_files)
3703         $(BUILDPACKAGE)
3704 net/rpc/check: $(CHECK_DEPS)
3705         @$(CHECK)
3706 .PHONY: net/rpc/check
3708 @go_include@ net/smtp.lo.dep
3709 net/smtp.lo.dep: $(go_net_smtp_files)
3710         $(BUILDDEPS)
3711 net/smtp.lo: $(go_net_smtp_files)
3712         $(BUILDPACKAGE)
3713 net/smtp/check: $(CHECK_DEPS)
3714         @$(CHECK)
3715 .PHONY: net/smtp/check
3717 @go_include@ net/url.lo.dep
3718 net/url.lo.dep: $(go_net_url_files)
3719         $(BUILDDEPS)
3720 net/url.lo: $(go_net_url_files)
3721         $(BUILDPACKAGE)
3722 net/url/check: $(CHECK_DEPS)
3723         @$(CHECK)
3724 .PHONY: net/url/check
3726 @go_include@ net/textproto.lo.dep
3727 net/textproto.lo.dep: $(go_net_textproto_files)
3728         $(BUILDDEPS)
3729 net/textproto.lo: $(go_net_textproto_files)
3730         $(BUILDPACKAGE)
3731 net/textproto/check: $(CHECK_DEPS)
3732         @$(CHECK)
3733 .PHONY: net/textproto/check
3735 @go_include@ net/http/cgi.lo.dep
3736 net/http/cgi.lo.dep: $(go_net_http_cgi_files)
3737         $(BUILDDEPS)
3738 net/http/cgi.lo: $(go_net_http_cgi_files)
3739         $(BUILDPACKAGE)
3740 net/http/cgi/check: $(CHECK_DEPS)
3741         @$(CHECK)
3742 .PHONY: net/http/cgi/check
3744 @go_include@ net/http/cookiejar.lo.dep
3745 net/http/cookiejar.lo.dep: $(go_net_http_cookiejar_files)
3746         $(BUILDDEPS)
3747 net/http/cookiejar.lo: $(go_net_http_cookiejar_files)
3748         $(BUILDPACKAGE)
3749 net/http/cookiejar/check: $(CHECK_DEPS)
3750         @$(CHECK)
3751 .PHONY: net/http/cookiejar/check
3753 @go_include@ net/http/fcgi.lo.dep
3754 net/http/fcgi.lo.dep: $(go_net_http_fcgi_files)
3755         $(BUILDDEPS)
3756 net/http/fcgi.lo: $(go_net_http_fcgi_files)
3757         $(BUILDPACKAGE)
3758 net/http/fcgi/check: $(CHECK_DEPS)
3759         @$(CHECK)
3760 .PHONY: net/http/fcgi/check
3762 @go_include@ net/http/httptest.lo.dep
3763 net/http/httptest.lo.dep: $(go_net_http_httptest_files)
3764         $(BUILDDEPS)
3765 net/http/httptest.lo: $(go_net_http_httptest_files)
3766         $(BUILDPACKAGE)
3767 net/http/httptest/check: $(check_deps)
3768         @$(CHECK)
3769 .PHONY: net/http/httptest/check
3771 @go_include@ net/http/httptrace.lo.dep
3772 net/http/httptrace.lo.dep: $(go_net_http_httptrace_files)
3773         $(BUILDDEPS)
3774 net/http/httptrace.lo: $(go_net_http_httptrace_files)
3775         $(BUILDPACKAGE)
3776 net/http/httptrace/check: $(check_deps)
3777         @$(CHECK)
3778 .PHONY: net/http/httptrace/check
3780 @go_include@ net/http/httputil.lo.dep
3781 net/http/httputil.lo.dep: $(go_net_http_httputil_files)
3782         $(BUILDDEPS)
3783 net/http/httputil.lo: $(go_net_http_httputil_files)
3784         $(BUILDPACKAGE)
3785 net/http/httputil/check: $(check_deps)
3786         @$(CHECK)
3787 .PHONY: net/http/httputil/check
3789 @go_include@ net/http/internal.lo.dep
3790 net/http/internal.lo.dep: $(go_net_http_internal_files)
3791         $(BUILDDEPS)
3792 net/http/internal.lo: $(go_net_http_internal_files)
3793         $(BUILDPACKAGE)
3794 net/http/internal/check: $(CHECK_DEPS)
3795         @$(CHECK)
3796 .PHONY: net/http/internal/check
3798 @go_include@ net/http/pprof.lo.dep
3799 net/http/pprof.lo.dep: $(go_net_http_pprof_files)
3800         $(BUILDDEPS)
3801 net/http/pprof.lo: $(go_net_http_pprof_files)
3802         $(BUILDPACKAGE)
3803 net/http/pprof/check: $(CHECK_DEPS)
3804         @$(CHECK)
3805 .PHONY: net/http/pprof/check
3807 @go_include@ net/internal/socktest.lo.dep
3808 net/internal/socktest.lo.dep: $(go_net_internal_socktest_files)
3809         $(BUILDDEPS)
3810 net/internal/socktest.lo: $(go_net_internal_socktest_files)
3811         $(BUILDPACKAGE)
3812 net/internal/socktest/check: $(CHECK_DEPS)
3813         @$(CHECK)
3814 .PHONY: net/internal/socktest/check
3816 @go_include@ net/rpc/jsonrpc.lo.dep
3817 net/rpc/jsonrpc.lo.dep: $(go_net_rpc_jsonrpc_files)
3818         $(BUILDDEPS)
3819 net/rpc/jsonrpc.lo: $(go_net_rpc_jsonrpc_files)
3820         $(BUILDPACKAGE)
3821 net/rpc/jsonrpc/check: $(CHECK_DEPS)
3822         @$(CHECK)
3823 .PHONY: net/rpc/jsonrpc/check
3825 @go_include@ old/regexp.lo.dep
3826 old/regexp.lo.dep: $(go_old_regexp_files)
3827         $(BUILDDEPS)
3828 old/regexp.lo: $(go_old_regexp_files)
3829         $(BUILDPACKAGE)
3830 old/regexp/check: $(CHECK_DEPS)
3831         @$(CHECK)
3832 .PHONY: old/regexp/check
3834 @go_include@ old/template.lo.dep
3835 old/template.lo.dep: $(go_old_template_files)
3836         $(BUILDDEPS)
3837 old/template.lo: $(go_old_template_files)
3838         $(BUILDPACKAGE)
3839 old/template/check: $(CHECK_DEPS)
3840         @$(CHECK)
3841 .PHONY: old/template/check
3843 @go_include@ os/exec.lo.dep
3844 os/exec.lo.dep: $(go_os_exec_files)
3845         $(BUILDDEPS)
3846 os/exec.lo: $(go_os_exec_files)
3847         $(BUILDPACKAGE)
3848 os/exec/check: $(CHECK_DEPS)
3849         @$(CHECK)
3850 .PHONY: os/exec/check
3852 @go_include@ os/signal.lo.dep
3853 os/signal.lo.dep: $(go_os_signal_files)
3854         $(BUILDDEPS)
3855 os/signal.lo: $(go_os_signal_files)
3856         $(BUILDPACKAGE)
3857 os/signal/check: $(CHECK_DEPS)
3858         @$(CHECK)
3859 .PHONY: os/signal/check
3861 @go_include@ os/user.lo.dep
3862 os/user.lo.dep: $(go_os_user_files)
3863         $(BUILDDEPS)
3864 os/user.lo: $(go_os_user_files)
3865         $(BUILDPACKAGE)
3866 os/user/check: $(CHECK_DEPS)
3867         @$(CHECK)
3868 .PHONY: os/user/check
3870 @go_include@ path/filepath.lo.dep
3871 path/filepath.lo.dep: $(go_path_filepath_files)
3872         $(BUILDDEPS)
3873 path/filepath.lo: $(go_path_filepath_files)
3874         $(BUILDPACKAGE)
3875 path/filepath/check: $(CHECK_DEPS)
3876         @$(CHECK)
3877 .PHONY: path/filepath/check
3879 @go_include@ regexp/syntax.lo.dep
3880 regexp/syntax.lo.dep: $(go_regexp_syntax_files)
3881         $(BUILDDEPS)
3882 regexp/syntax.lo: $(go_regexp_syntax_files)
3883         $(BUILDPACKAGE)
3884 regexp/syntax/check: $(CHECK_DEPS)
3885         @$(CHECK)
3886 .PHONY: regexp/syntax/check
3888 @go_include@ runtime/debug.lo.dep
3889 runtime/debug.lo.dep: $(go_runtime_debug_files)
3890         $(BUILDDEPS)
3891 runtime/debug.lo: $(go_runtime_debug_files)
3892         $(BUILDPACKAGE)
3893 runtime/debug/check: $(CHECK_DEPS)
3894         @$(CHECK)
3895 .PHONY: runtime/debug/check
3897 @go_include@ runtime/pprof.lo.dep
3898 runtime/pprof.lo.dep: $(go_runtime_pprof_files)
3899         $(BUILDDEPS)
3900 runtime/pprof.lo: $(go_runtime_pprof_files)
3901         $(BUILDPACKAGE)
3902 runtime/pprof/check: $(CHECK_DEPS)
3903         @$(CHECK)
3904 .PHONY: runtime/pprof/check
3905 # At least for now, we need -static-libgo for this test, because
3906 # otherwise we can't get the line numbers.
3907 # Also use -fno-inline to get better results from the memory profiler.
3908 runtime_pprof_check_GOCFLAGS = -static-libgo -fno-inline
3910 @go_include@ sync/atomic.lo.dep
3911 sync/atomic.lo.dep: $(go_sync_atomic_files)
3912         $(BUILDDEPS)
3913 sync/atomic.lo: $(go_sync_atomic_files)
3914         $(BUILDPACKAGE)
3915 sync/atomic_c.lo: $(go_sync_atomic_c_files) sync/atomic.lo
3916         $(LTCOMPILE) -c -o $@ $(srcdir)/go/sync/atomic/atomic.c
3917 sync/atomic/check: $(CHECK_DEPS)
3918         @$(CHECK)
3919 .PHONY: sync/atomic/check
3921 @go_include@ text/scanner.lo.dep
3922 text/scanner.lo.dep: $(go_text_scanner_files)
3923         $(BUILDDEPS)
3924 text/scanner.lo: $(go_text_scanner_files)
3925         $(BUILDPACKAGE)
3926 text/scanner/check: $(CHECK_DEPS)
3927         @$(CHECK)
3928 .PHONY: text/scanner/check
3930 @go_include@ text/tabwriter.lo.dep
3931 text/tabwriter.lo.dep: $(go_text_tabwriter_files)
3932         $(BUILDDEPS)
3933 text/tabwriter.lo: $(go_text_tabwriter_files)
3934         $(BUILDPACKAGE)
3935 text/tabwriter/check: $(CHECK_DEPS)
3936         @$(CHECK)
3937 .PHONY: text/tabwriter/check
3939 @go_include@ text/template.lo.dep
3940 text/template.lo.dep: $(go_text_template_files)
3941         $(BUILDDEPS)
3942 text/template.lo: $(go_text_template_files)
3943         $(BUILDPACKAGE)
3944 text/template/check: $(CHECK_DEPS)
3945         @$(CHECK)
3946 .PHONY: text/template/check
3948 @go_include@ text/template/parse.lo.dep
3949 text/template/parse.lo.dep: $(go_text_template_parse_files)
3950         $(BUILDDEPS)
3951 text/template/parse.lo: $(go_text_template_parse_files)
3952         $(BUILDPACKAGE)
3953 text/template/parse/check: $(CHECK_DEPS)
3954         @$(CHECK)
3955 .PHONY: text/template/parse/check
3957 @go_include@ testing/iotest.lo.dep
3958 testing/iotest.lo.dep: $(go_testing_iotest_files)
3959         $(BUILDDEPS)
3960 testing/iotest.lo: $(go_testing_iotest_files)
3961         $(BUILDPACKAGE)
3962 testing/iotest/check: $(CHECK_DEPS)
3963         @$(CHECK)
3964 .PHONY: testing/iotest/check
3966 @go_include@ testing/quick.lo.dep
3967 testing/quick.lo.dep: $(go_testing_quick_files)
3968         $(BUILDDEPS)
3969 testing/quick.lo: $(go_testing_quick_files)
3970         $(BUILDPACKAGE)
3971 testing/quick/check: $(CHECK_DEPS)
3972         @$(CHECK)
3973 .PHONY: testing/quick/check
3975 @go_include@ unicode/utf16.lo.dep
3976 unicode/utf16.lo.dep: $(go_unicode_utf16_files)
3977         $(BUILDDEPS)
3978 unicode/utf16.lo: $(go_unicode_utf16_files)
3979         $(BUILDPACKAGE)
3980 unicode/utf16/check: $(CHECK_DEPS)
3981         @$(CHECK)
3982 .PHONY: unicode/utf16/check
3984 @go_include@ unicode/utf8.lo.dep
3985 unicode/utf8.lo.dep: $(go_unicode_utf8_files)
3986         $(BUILDDEPS)
3987 unicode/utf8.lo: $(go_unicode_utf8_files)
3988         $(BUILDPACKAGE)
3989 unicode/utf8/check: $(CHECK_DEPS)
3990         @$(CHECK)
3991 .PHONY: unicode/utf8/check
3993 @go_include@ syscall.lo.dep
3994 syscall.lo.dep: $(go_syscall_files)
3995         $(BUILDDEPS)
3996 syscall.lo: $(go_syscall_files)
3997         $(BUILDPACKAGE)
3998 syscall/errno.lo: go/syscall/errno.c
3999         @$(MKDIR_P) syscall
4000         $(LTCOMPILE) -c -o $@ $<
4001 syscall/signame.lo: go/syscall/signame.c
4002         @$(MKDIR_P) syscall
4003         $(LTCOMPILE) -c -o $@ $<
4004 syscall/wait.lo: go/syscall/wait.c
4005         @$(MKDIR_P) syscall
4006         $(LTCOMPILE) -c -o $@ $<
4007 syscall/check: $(CHECK_DEPS)
4008         @$(CHECK)
4009 .PHONY: syscall/check
4011 # How to build a .gox file from a .lo file.
4012 BUILDGOX = \
4013         f=`echo $< | sed -e 's/.lo$$/.o/'`; \
4014         $(OBJCOPY) -j .go_export $$f $@.tmp && mv -f $@.tmp $@
4016 bufio.gox: bufio.lo
4017         $(BUILDGOX)
4018 bytes.gox: bytes.lo
4019         $(BUILDGOX)
4020 context.gox: context.lo
4021         $(BUILDGOX)
4022 crypto.gox: crypto.lo
4023         $(BUILDGOX)
4024 encoding.gox: encoding.lo
4025         $(BUILDGOX)
4026 errors.gox: errors.lo
4027         $(BUILDGOX)
4028 expvar.gox: expvar.lo
4029         $(BUILDGOX)
4030 flag.gox: flag.lo
4031         $(BUILDGOX)
4032 fmt.gox: fmt.lo
4033         $(BUILDGOX)
4034 hash.gox: hash.lo
4035         $(BUILDGOX)
4036 html.gox: html.lo
4037         $(BUILDGOX)
4038 image.gox: image.lo
4039         $(BUILDGOX)
4040 io.gox: io.lo
4041         $(BUILDGOX)
4042 log.gox: log.lo
4043         $(BUILDGOX)
4044 math.gox: math.lo
4045         $(BUILDGOX)
4046 mime.gox: mime.lo
4047         $(BUILDGOX)
4048 net.gox: net.lo
4049         $(BUILDGOX)
4050 os.gox: os.lo
4051         $(BUILDGOX)
4052 path.gox: path.lo
4053         $(BUILDGOX)
4054 reflect.gox: reflect-go.lo
4055         $(BUILDGOX)
4056 regexp.gox: regexp.lo
4057         $(BUILDGOX)
4058 runtime.gox: runtime-go.lo
4059         $(BUILDGOX)
4060 sort.gox: sort.lo
4061         $(BUILDGOX)
4062 strconv.gox: strconv.lo
4063         $(BUILDGOX)
4064 strings.gox: strings.lo
4065         $(BUILDGOX)
4066 sync.gox: sync.lo
4067         $(BUILDGOX)
4068 syscall.gox: syscall.lo
4069         $(BUILDGOX)
4070 testing.gox: testing.lo
4071         $(BUILDGOX)
4072 time.gox: time-go.lo
4073         $(BUILDGOX)
4074 unicode.gox: unicode.lo
4075         $(BUILDGOX)
4077 archive/tar.gox: archive/tar.lo
4078         $(BUILDGOX)
4079 archive/zip.gox: archive/zip.lo
4080         $(BUILDGOX)
4082 compress/bzip2.gox: compress/bzip2.lo
4083         $(BUILDGOX)
4084 compress/flate.gox: compress/flate.lo
4085         $(BUILDGOX)
4086 compress/gzip.gox: compress/gzip.lo
4087         $(BUILDGOX)
4088 compress/lzw.gox: compress/lzw.lo
4089         $(BUILDGOX)
4090 compress/zlib.gox: compress/zlib.lo
4091         $(BUILDGOX)
4093 container/heap.gox: container/heap.lo
4094         $(BUILDGOX)
4095 container/list.gox: container/list.lo
4096         $(BUILDGOX)
4097 container/ring.gox: container/ring.lo
4098         $(BUILDGOX)
4100 crypto/aes.gox: crypto/aes.lo
4101         $(BUILDGOX)
4102 crypto/cipher.gox: crypto/cipher.lo
4103         $(BUILDGOX)
4104 crypto/des.gox: crypto/des.lo
4105         $(BUILDGOX)
4106 crypto/dsa.gox: crypto/dsa.lo
4107         $(BUILDGOX)
4108 crypto/ecdsa.gox: crypto/ecdsa.lo       
4109         $(BUILDGOX)
4110 crypto/elliptic.gox: crypto/elliptic.lo
4111         $(BUILDGOX)
4112 crypto/hmac.gox: crypto/hmac.lo
4113         $(BUILDGOX)
4114 crypto/md5.gox: crypto/md5.lo
4115         $(BUILDGOX)
4116 crypto/rand.gox: crypto/rand.lo
4117         $(BUILDGOX)
4118 crypto/rc4.gox: crypto/rc4.lo
4119         $(BUILDGOX)
4120 crypto/rsa.gox: crypto/rsa.lo
4121         $(BUILDGOX)
4122 crypto/sha1.gox: crypto/sha1.lo
4123         $(BUILDGOX)
4124 crypto/sha256.gox: crypto/sha256.lo
4125         $(BUILDGOX)
4126 crypto/sha512.gox: crypto/sha512.lo
4127         $(BUILDGOX)
4128 crypto/subtle.gox: crypto/subtle.lo
4129         $(BUILDGOX)
4130 crypto/tls.gox: crypto/tls.lo
4131         $(BUILDGOX)
4132 crypto/x509.gox: crypto/x509.lo
4133         $(BUILDGOX)
4135 crypto/x509/pkix.gox: crypto/x509/pkix.lo
4136         $(BUILDGOX)
4138 database/sql.gox: database/sql.lo
4139         $(BUILDGOX)
4141 database/sql/driver.gox: database/sql/driver.lo
4142         $(BUILDGOX)
4144 debug/dwarf.gox: debug/dwarf.lo
4145         $(BUILDGOX)
4146 debug/elf.gox: debug/elf.lo
4147         $(BUILDGOX)
4148 debug/gosym.gox: debug/gosym.lo
4149         $(BUILDGOX)
4150 debug/macho.gox: debug/macho.lo
4151         $(BUILDGOX)
4152 debug/pe.gox: debug/pe.lo
4153         $(BUILDGOX)
4154 debug/plan9obj.gox: debug/plan9obj.lo
4155         $(BUILDGOX)
4157 encoding/ascii85.gox: encoding/ascii85.lo
4158         $(BUILDGOX)
4159 encoding/asn1.gox: encoding/asn1.lo
4160         $(BUILDGOX)
4161 encoding/base32.gox: encoding/base32.lo
4162         $(BUILDGOX)
4163 encoding/base64.gox: encoding/base64.lo
4164         $(BUILDGOX)
4165 encoding/binary.gox: encoding/binary.lo
4166         $(BUILDGOX)
4167 encoding/csv.gox: encoding/csv.lo
4168         $(BUILDGOX)
4169 encoding/gob.gox: encoding/gob.lo
4170         $(BUILDGOX)
4171 encoding/hex.gox: encoding/hex.lo
4172         $(BUILDGOX)
4173 encoding/json.gox: encoding/json.lo
4174         $(BUILDGOX)
4175 encoding/pem.gox: encoding/pem.lo
4176         $(BUILDGOX)
4177 encoding/xml.gox: encoding/xml.lo
4178         $(BUILDGOX)
4180 exp/proxy.gox: exp/proxy.lo
4181         $(BUILDGOX)
4182 exp/terminal.gox: exp/terminal.lo
4183         $(BUILDGOX)
4185 html/template.gox: html/template.lo
4186         $(BUILDGOX)
4188 go/ast.gox: go/ast.lo
4189         $(BUILDGOX)
4190 go/build.gox: go/build.lo
4191         $(BUILDGOX)
4192 go/constant.gox: go/constant.lo
4193         $(BUILDGOX)
4194 go/doc.gox: go/doc.lo
4195         $(BUILDGOX)
4196 go/format.gox: go/format.lo
4197         $(BUILDGOX)
4198 go/importer.gox: go/importer.lo
4199         $(BUILDGOX)
4200 go/parser.gox: go/parser.lo
4201         $(BUILDGOX)
4202 go/printer.gox: go/printer.lo
4203         $(BUILDGOX)
4204 go/scanner.gox: go/scanner.lo
4205         $(BUILDGOX)
4206 go/token.gox: go/token.lo
4207         $(BUILDGOX)
4208 go/types.gox: go/types.lo
4209         $(BUILDGOX)
4211 go/internal/gcimporter.gox: go/internal/gcimporter.lo
4212         $(BUILDGOX)
4213 go/internal/gccgoimporter.gox: go/internal/gccgoimporter.lo
4214         $(BUILDGOX)
4216 golang_org/x/net/http2/hpack.gox: golang_org/x/net/http2/hpack.lo
4217         $(BUILDGOX)
4219 golang_org/x/net/lex/httplex.gox: golang_org/x/net/lex/httplex.lo
4220         $(BUILDGOX)
4222 if LIBGO_IS_BSD
4223 golang_org/x/net/route.gox: golang_org/x/net/route.lo
4224         $(BUILDGOX)
4225 endif
4227 hash/adler32.gox: hash/adler32.lo
4228         $(BUILDGOX)
4229 hash/crc32.gox: hash/crc32.lo
4230         $(BUILDGOX)
4231 hash/crc64.gox: hash/crc64.lo
4232         $(BUILDGOX)
4233 hash/fnv.gox: hash/fnv.lo
4234         $(BUILDGOX)
4236 image/color.gox: image/color.lo
4237         $(BUILDGOX)
4238 image/draw.gox: image/draw.lo
4239         $(BUILDGOX)
4240 image/gif.gox: image/gif.lo
4241         $(BUILDGOX)
4242 image/internal/imageutil.gox: image/internal/imageutil.lo
4243         $(BUILDGOX)
4244 image/jpeg.gox: image/jpeg.lo
4245         $(BUILDGOX)
4246 image/png.gox: image/png.lo
4247         $(BUILDGOX)
4249 image/color/palette.gox: image/color/palette.lo
4250         $(BUILDGOX)
4252 index/suffixarray.gox: index/suffixarray.lo
4253         $(BUILDGOX)
4255 internal/nettrace.gox: internal/nettrace.lo
4256         $(BUILDGOX)
4257 internal/race.gox: internal/race.lo
4258         $(BUILDGOX)
4259 internal/singleflight.gox: internal/singleflight.lo
4260         $(BUILDGOX)
4261 internal/syscall/unix.gox: internal/syscall/unix.lo
4262         $(BUILDGOX)
4263 internal/testenv.gox: internal/testenv.lo
4264         $(BUILDGOX)
4265 internal/trace.gox: internal/trace.lo
4266         $(BUILDGOX)
4268 io/ioutil.gox: io/ioutil.lo
4269         $(BUILDGOX)
4271 log/syslog.gox: log/syslog.lo
4272         $(BUILDGOX)
4274 math/big.gox: math/big.lo
4275         $(BUILDGOX)
4276 math/cmplx.gox: math/cmplx.lo
4277         $(BUILDGOX)
4278 math/rand.gox: math/rand.lo
4279         $(BUILDGOX)
4281 mime/multipart.gox: mime/multipart.lo
4282         $(BUILDGOX)
4283 mime/quotedprintable.gox: mime/quotedprintable.lo
4284         $(BUILDGOX)
4286 net/http.gox: net/http.lo
4287         $(BUILDGOX)
4288 net/mail.gox: net/mail.lo
4289         $(BUILDGOX)
4290 net/rpc.gox: net/rpc.lo
4291         $(BUILDGOX)
4292 net/smtp.gox: net/smtp.lo
4293         $(BUILDGOX)
4294 net/textproto.gox: net/textproto.lo
4295         $(BUILDGOX)
4296 net/url.gox: net/url.lo
4297         $(BUILDGOX)
4299 net/http/cgi.gox: net/http/cgi.lo
4300         $(BUILDGOX)
4301 net/http/cookiejar.gox: net/http/cookiejar.lo
4302         $(BUILDGOX)
4303 net/http/fcgi.gox: net/http/fcgi.lo
4304         $(BUILDGOX)
4305 net/http/httptest.gox: net/http/httptest.lo
4306         $(BUILDGOX)
4307 net/http/httptrace.gox: net/http/httptrace.lo
4308         $(BUILDGOX)
4309 net/http/httputil.gox: net/http/httputil.lo
4310         $(BUILDGOX)
4311 net/http/pprof.gox: net/http/pprof.lo
4312         $(BUILDGOX)
4314 net/http/internal.gox: net/http/internal.lo
4315         $(BUILDGOX)
4317 net/internal/socktest.gox: net/internal/socktest.lo
4318         $(BUILDGOX)
4320 net/rpc/jsonrpc.gox: net/rpc/jsonrpc.lo
4321         $(BUILDGOX)
4323 old/regexp.gox: old/regexp.lo
4324         $(BUILDGOX)
4325 old/template.gox: old/template.lo
4326         $(BUILDGOX)
4328 os/exec.gox: os/exec.lo
4329         $(BUILDGOX)
4330 os/signal.gox: os/signal.lo
4331         $(BUILDGOX)
4332 os/user.gox: os/user.lo
4333         $(BUILDGOX)
4335 path/filepath.gox: path/filepath.lo
4336         $(BUILDGOX)
4338 regexp/syntax.gox: regexp/syntax.lo
4339         $(BUILDGOX)
4341 runtime/debug.gox: runtime/debug.lo
4342         $(BUILDGOX)
4343 runtime/pprof.gox: runtime/pprof.lo
4344         $(BUILDGOX)
4346 sync/atomic.gox: sync/atomic.lo
4347         $(BUILDGOX)
4349 text/scanner.gox: text/scanner.lo
4350         $(BUILDGOX)
4351 text/tabwriter.gox: text/tabwriter.lo
4352         $(BUILDGOX)
4353 text/template.gox: text/template.lo
4354         $(BUILDGOX)
4355 text/template/parse.gox: text/template/parse.lo
4356         $(BUILDGOX)
4358 testing/iotest.gox: testing/iotest.lo
4359         $(BUILDGOX)
4360 testing/quick.gox: testing/quick.lo
4361         $(BUILDGOX)
4363 unicode/utf16.gox: unicode/utf16.lo
4364         $(BUILDGOX)
4365 unicode/utf8.gox: unicode/utf8.lo
4366         $(BUILDGOX)
4368 TEST_PACKAGES = \
4369         bufio/check \
4370         bytes/check \
4371         context/check \
4372         errors/check \
4373         expvar/check \
4374         flag/check \
4375         fmt/check \
4376         html/check \
4377         image/check \
4378         io/check \
4379         log/check \
4380         math/check \
4381         mime/check \
4382         net/check \
4383         os/check \
4384         path/check \
4385         reflect/check \
4386         regexp/check \
4387         runtime/check \
4388         sort/check \
4389         strconv/check \
4390         strings/check \
4391         sync/check \
4392         syscall/check \
4393         time/check \
4394         unicode/check \
4395         archive/tar/check \
4396         archive/zip/check \
4397         compress/bzip2/check \
4398         compress/flate/check \
4399         compress/gzip/check \
4400         compress/lzw/check \
4401         compress/zlib/check \
4402         container/heap/check \
4403         container/list/check \
4404         container/ring/check \
4405         crypto/aes/check \
4406         crypto/cipher/check \
4407         crypto/des/check \
4408         crypto/dsa/check \
4409         crypto/ecdsa/check \
4410         crypto/elliptic/check \
4411         crypto/hmac/check \
4412         crypto/md5/check \
4413         crypto/rand/check \
4414         crypto/rc4/check \
4415         crypto/rsa/check \
4416         crypto/sha1/check \
4417         crypto/sha256/check \
4418         crypto/sha512/check \
4419         crypto/subtle/check \
4420         crypto/tls/check \
4421         crypto/x509/check \
4422         database/sql/check \
4423         database/sql/driver/check \
4424         debug/dwarf/check \
4425         debug/elf/check \
4426         debug/macho/check \
4427         debug/pe/check \
4428         debug/plan9obj/check \
4429         encoding/ascii85/check \
4430         encoding/asn1/check \
4431         encoding/base32/check \
4432         encoding/base64/check \
4433         encoding/binary/check \
4434         encoding/csv/check \
4435         encoding/gob/check \
4436         encoding/hex/check \
4437         encoding/json/check \
4438         encoding/pem/check \
4439         encoding/xml/check \
4440         exp/proxy/check \
4441         exp/terminal/check \
4442         html/template/check \
4443         go/ast/check \
4444         go/build/check \
4445         go/constant/check \
4446         go/doc/check \
4447         go/format/check \
4448         go/internal/gcimporter/check \
4449         go/internal/gccgoimporter/check \
4450         go/parser/check \
4451         go/printer/check \
4452         go/scanner/check \
4453         go/token/check \
4454         go/types/check \
4455         golang_org/x/net/http2/hpack/check \
4456         golang_org/x/net/lex/httplex/check \
4457         $(golang_org_x_net_route_check) \
4458         hash/adler32/check \
4459         hash/crc32/check \
4460         hash/crc64/check \
4461         hash/fnv/check \
4462         image/color/check \
4463         image/draw/check \
4464         image/jpeg/check \
4465         image/png/check \
4466         index/suffixarray/check \
4467         internal/singleflight/check \
4468         internal/trace/check \
4469         io/ioutil/check \
4470         log/syslog/check \
4471         math/big/check \
4472         math/cmplx/check \
4473         math/rand/check \
4474         mime/multipart/check \
4475         mime/quotedprintable/check \
4476         net/http/check \
4477         net/http/cgi/check \
4478         net/http/cookiejar/check \
4479         net/http/fcgi/check \
4480         net/http/httptest/check \
4481         net/http/httptrace/check \
4482         net/http/httputil/check \
4483         net/http/internal/check \
4484         net/internal/socktest/check \
4485         net/mail/check \
4486         net/rpc/check \
4487         net/smtp/check \
4488         net/textproto/check \
4489         net/url/check \
4490         net/rpc/jsonrpc/check \
4491         old/regexp/check \
4492         old/template/check \
4493         os/exec/check \
4494         os/signal/check \
4495         os/user/check \
4496         path/filepath/check \
4497         regexp/syntax/check \
4498         runtime/pprof/check \
4499         sync/atomic/check \
4500         text/scanner/check \
4501         text/tabwriter/check \
4502         text/template/check \
4503         text/template/parse/check \
4504         testing/quick/check \
4505         unicode/utf16/check \
4506         unicode/utf8/check
4508 check: check-tail
4509 check-recursive: check-head
4511 check-head:
4512         @echo "Test Run By $${USER} on `date`" > libgo.head
4513         @echo "Native configuration is $(host_triplet)" >> libgo.head
4514         @echo >> libgo.head
4515         @echo "         === libgo tests ===" >> libgo.head
4516         @echo >> libgo.head
4518 check-tail: check-recursive check-multi
4519         @if test "$(USE_DEJAGNU)" = "yes"; then \
4520           exit 0; \
4521         fi; \
4522         lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
4523         for dir in . $(MULTIDIRS); do \
4524           mv ../$${dir}/$${lib}/libgo.sum ../$${dir}/$${lib}/libgo.sum.sep; \
4525           mv ../$${dir}/$${lib}/libgo.log ../$${dir}/$${lib}/libgo.log.sep; \
4526         done; \
4527         mv libgo.head libgo.sum; \
4528         cp libgo.sum libgo.log; \
4529         echo "Schedule of variations:" >> libgo.sum; \
4530         for dir in . $(MULTIDIRS); do \
4531           multidir=../$${dir}/$${lib}; \
4532           multivar=`cat $${multidir}/libgo.var`; \
4533           echo "    $${multivar}" >> libgo.sum; \
4534         done; \
4535         echo >> libgo.sum; \
4536         pass=0; fail=0; untested=0; \
4537         for dir in . $(MULTIDIRS); do \
4538           multidir=../$${dir}/$${lib}; \
4539           multivar=`cat $${multidir}/libgo.var`; \
4540           echo "Running target $${multivar}" >> libgo.sum; \
4541           echo "Running $(srcdir)/libgo.exp ..." >> libgo.sum; \
4542           cat $${multidir}/libgo.sum.sep >> libgo.sum; \
4543           cat $${multidir}/libgo.log.sep >> libgo.log; \
4544           if test -n "${MULTIDIRS}"; then \
4545             echo "              === libgo Summary for $${multivar} ===" >> libgo.sum; \
4546             echo >> libgo.sum; \
4547           fi; \
4548           p=`grep -c PASS $${multidir}/libgo.sum.sep`; \
4549           pass=`expr $$pass + $$p`; \
4550           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
4551             echo "# of expected passes          $$p" >> libgo.sum; \
4552           fi; \
4553           p=`grep -c FAIL $${multidir}/libgo.sum.sep`; \
4554           fail=`expr $$fail + $$p`; \
4555           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
4556             echo "# of unexpected failures      $$p" >> libgo.sum; \
4557           fi; \
4558           p=`grep -c UNTESTED $${multidir}/libgo.sum.sep`; \
4559           untested=`expr $$untested + $$p`; \
4560           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
4561             echo "# of untested testcases               $$p" >> libgo.sum; \
4562           fi; \
4563         done; \
4564         echo >> libgo.sum; \
4565         echo "          === libgo Summary ===" >> libgo.sum; \
4566         echo >> libgo.sum; \
4567         if test "$$pass" -ne "0"; then \
4568           echo "# of expected passes            $$pass" >> libgo.sum; \
4569         fi; \
4570         if test "$$fail" -ne "0"; then \
4571           echo "# of unexpected failures        $$fail" >> libgo.sum; \
4572         fi; \
4573         if test "$$untested" -ne "0"; then \
4574           echo "# of untested testcases         $$untested" >> libgo.sum; \
4575         fi; \
4576         echo `echo $(GOC) | sed -e 's/ .*//'`  `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
4577         echo >> libgo.log; \
4578         echo "runtest completed at `date`" >> libgo.log; \
4579         if test "$$fail" -ne "0"; then \
4580           status=1; \
4581         else \
4582           status=0; \
4583         fi; \
4584         exit $$status
4586 check-am:
4587         @rm -f libgo.sum libgo.log libgo.tail
4588         @multivar="unix"; \
4589         [ -z "$(MULTIFLAGS)" ] || multivar="$${multivar}/$(MULTIFLAGS)"; \
4590         echo "$${multivar}" > libgo.var
4591         @for f in $(TEST_PACKAGES); do \
4592            rm -f $$f-testsum $$f-testlog; \
4593          done
4594         -@$(MAKE) -k $(TEST_PACKAGES)
4595         @for f in $(TEST_PACKAGES); do \
4596           if test -f $$f-testsum; then \
4597             cat $$f-testsum >> libgo.sum; \
4598           fi; \
4599           if test -f $$f-testlog; then \
4600             cat $$f-testlog >> libgo.log; \
4601           fi; \
4602         done
4604 check-multi:
4605         $(MULTIDO) $(AM_MAKEFLAGS) DO=check-am multi-do # $(MAKE)
4607 bench:
4608         -@$(MAKE) -k $(TEST_PACKAGES) GOBENCH=.
4610 MOSTLYCLEAN_FILES = libgo.head libgo.sum.sep libgo.log.sep
4612 mostlyclean-local:
4613         find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
4614         find . -name '*.$(OBJEXT)' -print | xargs rm -f
4615         find . -name '*-testsum' -print | xargs rm -f
4616         find . -name '*-testlog' -print | xargs rm -f
4618 CLEANFILES = *.go *.gox goc2c *.c s-version libgo.sum libgo.log
4620 clean-local:
4621         find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
4622         find . -name '*.a' -print | xargs rm -f