OSDN Git Service

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