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