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