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