* sh.c (sh_can_use_simple_return_p): Return false for SHmedia
[official-gcc.git] / libgo / Makefile.am
blobb2eb39e5972b5dbd0a83b1f495cbcc7f76f0d7d8
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/net_posix.go \
747         go/net/parse.go \
748         go/net/pipe.go \
749         go/net/port.go \
750         $(go_net_sendfile_file) \
751         go/net/sock.go \
752         $(go_net_sock_file) \
753         go/net/sockopt.go \
754         $(go_net_sockopt_file) \
755         go/net/sockoptip.go \
756         $(go_net_sockoptip_file) \
757         go/net/tcpsock.go \
758         go/net/tcpsock_posix.go \
759         go/net/udpsock.go \
760         go/net/udpsock_posix.go \
761         go/net/unixsock.go \
762         go/net/unixsock_posix.go
764 if LIBGO_IS_SOLARIS
765 if LIBGO_IS_386
766 go_os_dir_file = go/os/dir_largefile.go
767 else
768 if LIBGO_IS_SPARC
769 go_os_dir_file = go/os/dir_largefile.go
770 else
771 go_os_dir_file = go/os/dir_regfile.go
772 endif
773 endif
774 else
775 if LIBGO_IS_LINUX
776 go_os_dir_file = go/os/dir_largefile.go
777 else
778 go_os_dir_file = go/os/dir_regfile.go
779 endif
780 endif
782 if LIBGO_IS_LINUX
783 go_os_sys_file = go/os/sys_linux.go
784 else
785 if LIBGO_IS_SOLARIS
786 go_os_sys_file = go/os/sys_uname.go
787 else
788 if LIBGO_IS_IRIX
789 go_os_sys_file = go/os/sys_uname.go
790 else
791 if LIBGO_IS_RTEMS
792 go_os_sys_file = go/os/sys_uname.go
793 else
794 go_os_sys_file = go/os/sys_bsd.go
795 endif
796 endif
797 endif
798 endif
800 if LIBGO_IS_SOLARIS
801 go_os_stat_file = go/os/stat_solaris.go
802 else
803 go_os_stat_file = go/os/stat.go
804 endif
806 go_os_files = \
807         $(go_os_dir_file) \
808         go/os/dir.go \
809         go/os/doc.go \
810         go/os/env.go \
811         go/os/error.go \
812         go/os/error_posix.go \
813         go/os/exec.go \
814         go/os/exec_posix.go \
815         go/os/exec_unix.go \
816         go/os/file.go \
817         go/os/file_posix.go \
818         go/os/file_unix.go \
819         go/os/getwd.go \
820         go/os/path.go \
821         go/os/path_unix.go \
822         go/os/proc.go \
823         $(go_os_stat_file) \
824         go/os/str.go \
825         $(go_os_sys_file) \
826         go/os/types.go
828 go_path_files = \
829         go/path/match.go \
830         go/path/path.go
832 go_reflect_files = \
833         go/reflect/deepequal.go \
834         go/reflect/type.go \
835         go/reflect/value.go
837 go_regexp_files = \
838         go/regexp/exec.go \
839         go/regexp/regexp.go
841 go_net_rpc_files = \
842         go/net/rpc/client.go \
843         go/net/rpc/debug.go \
844         go/net/rpc/server.go
846 go_runtime_files = \
847         go/runtime/compiler.go \
848         go/runtime/debug.go \
849         go/runtime/error.go \
850         go/runtime/extern.go \
851         go/runtime/mem.go \
852         go/runtime/softfloat64.go \
853         go/runtime/type.go \
854         version.go
856 version.go: s-version; @true
857 s-version: Makefile
858         rm -f version.go.tmp
859         echo "package runtime" > version.go.tmp
860         echo 'const defaultGoroot = "$(prefix)"' >> version.go.tmp
861         echo 'const theVersion = "'`$(CC) --version | sed 1q`'"' >> version.go.tmp
862         echo 'const theGoarch = "'$(GOARCH)'"' >> version.go.tmp
863         echo 'const theGoos = "'$(GOOS)'"' >> version.go.tmp
864         $(SHELL) $(srcdir)/../move-if-change version.go.tmp version.go
865         $(STAMP) $@
867 go_sort_files = \
868         go/sort/search.go \
869         go/sort/sort.go
871 go_strconv_files = \
872         go/strconv/atob.go \
873         go/strconv/atof.go \
874         go/strconv/atoi.go \
875         go/strconv/decimal.go \
876         go/strconv/extfloat.go \
877         go/strconv/ftoa.go \
878         go/strconv/isprint.go \
879         go/strconv/itoa.go \
880         go/strconv/quote.go
882 go_strings_files = \
883         go/strings/reader.go \
884         go/strings/replace.go \
885         go/strings/strings.go
887 go_sync_files = \
888         go/sync/cond.go \
889         go/sync/mutex.go \
890         go/sync/once.go \
891         go/sync/runtime.go \
892         go/sync/rwmutex.go \
893         go/sync/waitgroup.go
895 if LIBGO_IS_SOLARIS
896 go_syslog_file = go/log/syslog/syslog_libc.go
897 else
898 if LIBGO_IS_IRIX
899 go_syslog_file = go/log/syslog/syslog_libc.go
900 else
901 go_syslog_file = go/log/syslog/syslog_unix.go
902 endif
903 endif
905 go_log_syslog_files = \
906         go/log/syslog/syslog.go \
907         $(go_syslog_file)
908 go_syslog_c_files = \
909         go/log/syslog/syslog_c.c
911 go_testing_files = \
912         go/testing/benchmark.go \
913         go/testing/example.go \
914         go/testing/testing.go
916 go_time_files = \
917         go/time/format.go \
918         go/time/sleep.go \
919         go/time/sys_unix.go \
920         go/time/tick.go \
921         go/time/time.go \
922         go/time/zoneinfo.go \
923         go/time/zoneinfo_read.go \
924         go/time/zoneinfo_unix.go
926 go_unicode_files = \
927         go/unicode/casetables.go \
928         go/unicode/digit.go \
929         go/unicode/graphic.go \
930         go/unicode/letter.go \
931         go/unicode/tables.go
934 go_archive_tar_files = \
935         go/archive/tar/common.go \
936         go/archive/tar/reader.go \
937         go/archive/tar/writer.go
939 go_archive_zip_files = \
940         go/archive/zip/reader.go \
941         go/archive/zip/struct.go \
942         go/archive/zip/writer.go
944 go_compress_bzip2_files = \
945         go/compress/bzip2/bit_reader.go \
946         go/compress/bzip2/bzip2.go \
947         go/compress/bzip2/huffman.go \
948         go/compress/bzip2/move_to_front.go
950 go_compress_flate_files = \
951         go/compress/flate/deflate.go \
952         go/compress/flate/huffman_bit_writer.go \
953         go/compress/flate/huffman_code.go \
954         go/compress/flate/inflate.go \
955         go/compress/flate/reverse_bits.go \
956         go/compress/flate/token.go
958 go_compress_gzip_files = \
959         go/compress/gzip/gzip.go \
960         go/compress/gzip/gunzip.go
962 go_compress_lzw_files = \
963         go/compress/lzw/reader.go \
964         go/compress/lzw/writer.go
966 go_compress_zlib_files = \
967         go/compress/zlib/reader.go \
968         go/compress/zlib/writer.go
970 go_container_heap_files = \
971         go/container/heap/heap.go
973 go_container_list_files = \
974         go/container/list/list.go
976 go_container_ring_files = \
977         go/container/ring/ring.go
979 go_crypto_aes_files = \
980         go/crypto/aes/block.go \
981         go/crypto/aes/cipher.go \
982         go/crypto/aes/const.go
983 go_crypto_cipher_files = \
984         go/crypto/cipher/cbc.go \
985         go/crypto/cipher/cfb.go \
986         go/crypto/cipher/cipher.go \
987         go/crypto/cipher/ctr.go \
988         go/crypto/cipher/io.go \
989         go/crypto/cipher/ofb.go
990 go_crypto_des_files = \
991         go/crypto/des/block.go \
992         go/crypto/des/cipher.go \
993         go/crypto/des/const.go
994 go_crypto_dsa_files = \
995         go/crypto/dsa/dsa.go
996 go_crypto_ecdsa_files = \
997         go/crypto/ecdsa/ecdsa.go
998 go_crypto_elliptic_files = \
999         go/crypto/elliptic/elliptic.go \
1000         go/crypto/elliptic/p224.go
1001 go_crypto_hmac_files = \
1002         go/crypto/hmac/hmac.go
1003 go_crypto_md5_files = \
1004         go/crypto/md5/md5.go \
1005         go/crypto/md5/md5block.go
1006 go_crypto_rand_files = \
1007         go/crypto/rand/rand.go \
1008         go/crypto/rand/rand_unix.go \
1009         go/crypto/rand/util.go
1010 go_crypto_rc4_files = \
1011         go/crypto/rc4/rc4.go
1012 go_crypto_rsa_files = \
1013         go/crypto/rsa/pkcs1v15.go \
1014         go/crypto/rsa/rsa.go
1015 go_crypto_sha1_files = \
1016         go/crypto/sha1/sha1.go \
1017         go/crypto/sha1/sha1block.go
1018 go_crypto_sha256_files = \
1019         go/crypto/sha256/sha256.go \
1020         go/crypto/sha256/sha256block.go
1021 go_crypto_sha512_files = \
1022         go/crypto/sha512/sha512.go \
1023         go/crypto/sha512/sha512block.go
1024 go_crypto_subtle_files = \
1025         go/crypto/subtle/constant_time.go
1026 go_crypto_tls_files = \
1027         go/crypto/tls/alert.go \
1028         go/crypto/tls/cipher_suites.go \
1029         go/crypto/tls/common.go \
1030         go/crypto/tls/conn.go \
1031         go/crypto/tls/handshake_client.go \
1032         go/crypto/tls/handshake_messages.go \
1033         go/crypto/tls/handshake_server.go \
1034         go/crypto/tls/key_agreement.go \
1035         go/crypto/tls/prf.go \
1036         go/crypto/tls/tls.go
1037 go_crypto_x509_files = \
1038         go/crypto/x509/cert_pool.go \
1039         go/crypto/x509/pkcs1.go \
1040         go/crypto/x509/pkcs8.go \
1041         go/crypto/x509/root.go \
1042         go/crypto/x509/root_unix.go \
1043         go/crypto/x509/verify.go \
1044         go/crypto/x509/x509.go
1046 go_crypto_x509_pkix_files = \
1047         go/crypto/x509/pkix/pkix.go
1049 go_database_sql_files = \
1050         go/database/sql/convert.go \
1051         go/database/sql/sql.go
1053 go_database_sql_driver_files = \
1054         go/database/sql/driver/driver.go \
1055         go/database/sql/driver/types.go
1057 go_debug_dwarf_files = \
1058         go/debug/dwarf/buf.go \
1059         go/debug/dwarf/const.go \
1060         go/debug/dwarf/entry.go \
1061         go/debug/dwarf/line.go \
1062         go/debug/dwarf/open.go \
1063         go/debug/dwarf/type.go \
1064         go/debug/dwarf/unit.go
1065 go_debug_elf_files = \
1066         go/debug/elf/elf.go \
1067         go/debug/elf/file.go
1068 go_debug_gosym_files = \
1069         go/debug/gosym/pclntab.go \
1070         go/debug/gosym/symtab.go
1071 go_debug_macho_files = \
1072         go/debug/macho/file.go \
1073         go/debug/macho/macho.go
1074 go_debug_pe_files = \
1075         go/debug/pe/file.go \
1076         go/debug/pe/pe.go
1078 go_encoding_ascii85_files = \
1079         go/encoding/ascii85/ascii85.go
1080 go_encoding_asn1_files = \
1081         go/encoding/asn1/asn1.go \
1082         go/encoding/asn1/common.go \
1083         go/encoding/asn1/marshal.go
1084 go_encoding_base32_files = \
1085         go/encoding/base32/base32.go
1086 go_encoding_base64_files = \
1087         go/encoding/base64/base64.go
1088 go_encoding_binary_files = \
1089         go/encoding/binary/binary.go \
1090         go/encoding/binary/varint.go
1091 go_encoding_csv_files = \
1092         go/encoding/csv/reader.go \
1093         go/encoding/csv/writer.go
1094 go_encoding_gob_files = \
1095         go/encoding/gob/decode.go \
1096         go/encoding/gob/decoder.go \
1097         go/encoding/gob/doc.go \
1098         go/encoding/gob/encode.go \
1099         go/encoding/gob/encoder.go \
1100         go/encoding/gob/error.go \
1101         go/encoding/gob/type.go
1102 go_encoding_hex_files = \
1103         go/encoding/hex/hex.go
1104 go_encoding_json_files = \
1105         go/encoding/json/decode.go \
1106         go/encoding/json/encode.go \
1107         go/encoding/json/indent.go \
1108         go/encoding/json/scanner.go \
1109         go/encoding/json/stream.go \
1110         go/encoding/json/tags.go
1111 go_encoding_pem_files = \
1112         go/encoding/pem/pem.go
1113 go_encoding_xml_files = \
1114         go/encoding/xml/marshal.go \
1115         go/encoding/xml/read.go \
1116         go/encoding/xml/typeinfo.go \
1117         go/encoding/xml/xml.go
1119 go_exp_ebnf_files = \
1120         go/exp/ebnf/ebnf.go \
1121         go/exp/ebnf/parser.go
1122 go_exp_html_files = \
1123         go/exp/html/const.go \
1124         go/exp/html/doc.go \
1125         go/exp/html/doctype.go \
1126         go/exp/html/entity.go \
1127         go/exp/html/escape.go \
1128         go/exp/html/foreign.go \
1129         go/exp/html/node.go \
1130         go/exp/html/parse.go \
1131         go/exp/html/render.go \
1132         go/exp/html/token.go
1133 go_exp_inotify_files = \
1134         go/exp/inotify/inotify_linux.go
1135 go_exp_norm_files = \
1136         go/exp/norm/composition.go \
1137         go/exp/norm/forminfo.go \
1138         go/exp/norm/input.go \
1139         go/exp/norm/iter.go \
1140         go/exp/norm/normalize.go \
1141         go/exp/norm/readwriter.go \
1142         go/exp/norm/tables.go \
1143         go/exp/norm/trie.go
1144 go_exp_proxy_files = \
1145         go/exp/proxy/direct.go \
1146         go/exp/proxy/per_host.go \
1147         go/exp/proxy/proxy.go \
1148         go/exp/proxy/socks5.go
1149 go_exp_terminal_files = \
1150         go/exp/terminal/terminal.go \
1151         go/exp/terminal/util.go
1152 go_exp_types_files = \
1153         go/exp/types/check.go \
1154         go/exp/types/const.go \
1155         go/exp/types/exportdata.go \
1156         go/exp/types/gcimporter.go \
1157         go/exp/types/types.go \
1158         go/exp/types/universe.go
1159 go_exp_utf8string_files = \
1160         go/exp/utf8string/string.go
1162 go_go_ast_files = \
1163         go/go/ast/ast.go \
1164         go/go/ast/filter.go \
1165         go/go/ast/import.go \
1166         go/go/ast/print.go \
1167         go/go/ast/resolve.go \
1168         go/go/ast/scope.go \
1169         go/go/ast/walk.go
1170 go_go_build_files = \
1171         go/go/build/build.go \
1172         go/go/build/doc.go \
1173         syslist.go
1174 go_go_doc_files = \
1175         go/go/doc/comment.go \
1176         go/go/doc/doc.go \
1177         go/go/doc/example.go \
1178         go/go/doc/exports.go \
1179         go/go/doc/filter.go \
1180         go/go/doc/reader.go \
1181         go/go/doc/synopsis.go
1182 go_go_parser_files = \
1183         go/go/parser/interface.go \
1184         go/go/parser/parser.go
1185 go_go_printer_files = \
1186         go/go/printer/nodes.go \
1187         go/go/printer/printer.go
1188 go_go_scanner_files = \
1189         go/go/scanner/errors.go \
1190         go/go/scanner/scanner.go
1191 go_go_token_files = \
1192         go/go/token/position.go \
1193         go/go/token/serialize.go \
1194         go/go/token/token.go
1196 go_hash_adler32_files = \
1197         go/hash/adler32/adler32.go
1198 go_hash_crc32_files = \
1199         go/hash/crc32/crc32.go \
1200         go/hash/crc32/crc32_generic.go
1201 go_hash_crc64_files = \
1202         go/hash/crc64/crc64.go
1203 go_hash_fnv_files = \
1204         go/hash/fnv/fnv.go
1206 go_html_template_files = \
1207         go/html/template/attr.go \
1208         go/html/template/content.go \
1209         go/html/template/context.go \
1210         go/html/template/css.go \
1211         go/html/template/doc.go \
1212         go/html/template/error.go \
1213         go/html/template/escape.go \
1214         go/html/template/html.go \
1215         go/html/template/js.go \
1216         go/html/template/template.go \
1217         go/html/template/transition.go \
1218         go/html/template/url.go
1220 go_image_color_files = \
1221         go/image/color/color.go \
1222         go/image/color/ycbcr.go
1224 go_image_draw_files = \
1225         go/image/draw/draw.go
1227 go_image_gif_files = \
1228         go/image/gif/reader.go
1230 go_image_jpeg_files = \
1231         go/image/jpeg/fdct.go \
1232         go/image/jpeg/huffman.go \
1233         go/image/jpeg/idct.go \
1234         go/image/jpeg/reader.go \
1235         go/image/jpeg/writer.go
1237 go_image_png_files = \
1238         go/image/png/reader.go \
1239         go/image/png/writer.go
1241 go_index_suffixarray_files = \
1242         go/index/suffixarray/qsufsort.go \
1243         go/index/suffixarray/suffixarray.go
1245 go_io_ioutil_files = \
1246         go/io/ioutil/ioutil.go \
1247         go/io/ioutil/tempfile.go
1249 go_math_big_files = \
1250         go/math/big/arith.go \
1251         go/math/big/int.go \
1252         go/math/big/nat.go \
1253         go/math/big/rat.go
1254 go_math_cmplx_files = \
1255         go/math/cmplx/abs.go \
1256         go/math/cmplx/asin.go \
1257         go/math/cmplx/conj.go \
1258         go/math/cmplx/exp.go \
1259         go/math/cmplx/isinf.go \
1260         go/math/cmplx/isnan.go \
1261         go/math/cmplx/log.go \
1262         go/math/cmplx/phase.go \
1263         go/math/cmplx/polar.go \
1264         go/math/cmplx/pow.go \
1265         go/math/cmplx/rect.go \
1266         go/math/cmplx/sin.go \
1267         go/math/cmplx/sqrt.go \
1268         go/math/cmplx/tan.go
1269 go_math_rand_files = \
1270         go/math/rand/exp.go \
1271         go/math/rand/normal.go \
1272         go/math/rand/rand.go \
1273         go/math/rand/rng.go \
1274         go/math/rand/zipf.go
1276 go_mime_multipart_files = \
1277         go/mime/multipart/formdata.go \
1278         go/mime/multipart/multipart.go \
1279         go/mime/multipart/writer.go
1281 go_net_http_files = \
1282         go/net/http/chunked.go \
1283         go/net/http/client.go \
1284         go/net/http/cookie.go \
1285         go/net/http/filetransport.go \
1286         go/net/http/fs.go \
1287         go/net/http/header.go \
1288         go/net/http/jar.go \
1289         go/net/http/lex.go \
1290         go/net/http/request.go \
1291         go/net/http/response.go \
1292         go/net/http/server.go \
1293         go/net/http/sniff.go \
1294         go/net/http/status.go \
1295         go/net/http/transfer.go \
1296         go/net/http/transport.go
1297 go_net_mail_files = \
1298         go/net/mail/message.go
1299 go_net_smtp_files = \
1300         go/net/smtp/auth.go \
1301         go/net/smtp/smtp.go
1302 go_net_textproto_files = \
1303         go/net/textproto/header.go \
1304         go/net/textproto/pipeline.go \
1305         go/net/textproto/reader.go \
1306         go/net/textproto/textproto.go \
1307         go/net/textproto/writer.go
1308 go_net_url_files = \
1309         go/net/url/url.go
1311 go_net_http_cgi_files = \
1312         go/net/http/cgi/child.go \
1313         go/net/http/cgi/host.go
1314 go_net_http_fcgi_files = \
1315         go/net/http/fcgi/child.go \
1316         go/net/http/fcgi/fcgi.go
1317 go_net_http_httptest_files = \
1318         go/net/http/httptest/recorder.go \
1319         go/net/http/httptest/server.go
1320 go_net_http_pprof_files = \
1321         go/net/http/pprof/pprof.go
1322 go_net_http_httputil_files = \
1323         go/net/http/httputil/chunked.go \
1324         go/net/http/httputil/dump.go \
1325         go/net/http/httputil/persist.go \
1326         go/net/http/httputil/reverseproxy.go
1329 go_old_netchan_files = \
1330         go/old/netchan/common.go \
1331         go/old/netchan/export.go \
1332         go/old/netchan/import.go
1333 go_old_regexp_files = \
1334         go/old/regexp/regexp.go
1335 go_old_template_files = \
1336         go/old/template/doc.go \
1337         go/old/template/execute.go \
1338         go/old/template/format.go \
1339         go/old/template/parse.go
1341 go_os_exec_files = \
1342         go/os/exec/exec.go \
1343         go/os/exec/lp_unix.go
1345 go_os_signal_files = \
1346         go/os/signal/signal.go \
1347         go/os/signal/signal_unix.go
1349 go_os_user_files = \
1350         go/os/user/user.go \
1351         go/os/user/lookup_unix.go
1353 go_path_filepath_files = \
1354         go/path/filepath/match.go \
1355         go/path/filepath/path.go \
1356         go/path/filepath/path_unix.go \
1357         go/path/filepath/symlink.go
1359 go_regexp_syntax_files = \
1360         go/regexp/syntax/compile.go \
1361         go/regexp/syntax/parse.go \
1362         go/regexp/syntax/perl_groups.go \
1363         go/regexp/syntax/prog.go \
1364         go/regexp/syntax/regexp.go \
1365         go/regexp/syntax/simplify.go
1367 go_net_rpc_jsonrpc_files = \
1368         go/net/rpc/jsonrpc/client.go \
1369         go/net/rpc/jsonrpc/server.go
1371 go_runtime_debug_files = \
1372         go/runtime/debug/stack.go
1373 go_runtime_pprof_files = \
1374         go/runtime/pprof/pprof.go
1376 go_text_tabwriter_files = \
1377         go/text/tabwriter/tabwriter.go
1378 go_text_template_files = \
1379         go/text/template/doc.go \
1380         go/text/template/exec.go \
1381         go/text/template/funcs.go \
1382         go/text/template/helper.go \
1383         go/text/template/template.go
1384 go_text_template_parse_files = \
1385         go/text/template/parse/lex.go \
1386         go/text/template/parse/node.go \
1387         go/text/template/parse/parse.go
1389 go_sync_atomic_files = \
1390         go/sync/atomic/doc.go
1391 go_sync_atomic_c_files = \
1392         go/sync/atomic/atomic.c
1394 go_testing_iotest_files = \
1395         go/testing/iotest/logger.go \
1396         go/testing/iotest/reader.go \
1397         go/testing/iotest/writer.go
1398 go_testing_quick_files = \
1399         go/testing/quick/quick.go
1401 go_text_scanner_files = \
1402         go/text/scanner/scanner.go
1404 go_unicode_utf16_files = \
1405         go/unicode/utf16/utf16.go
1406 go_unicode_utf8_files = \
1407         go/unicode/utf8/utf8.go
1409 # Define Syscall and Syscall6.
1410 if LIBGO_IS_RTEMS
1411 syscall_syscall_file = go/syscall/syscall_stubs.go
1412 else
1413 syscall_syscall_file = go/syscall/syscall_unix.go
1414 endif
1416 # Define ForkExec and Exec.
1417 if LIBGO_IS_RTEMS
1418 syscall_exec_file = go/syscall/exec_stubs.go
1419 syscall_exec_os_file =
1420 else
1421 if LIBGO_IS_LINUX
1422 syscall_exec_file = go/syscall/exec_unix.go
1423 syscall_exec_os_file = go/syscall/exec_linux.go
1424 else
1425 syscall_exec_file = go/syscall/exec_unix.go
1426 syscall_exec_os_file = go/syscall/exec_bsd.go
1427 endif
1428 endif
1430 # Define Wait4.
1431 if LIBGO_IS_RTEMS
1432 syscall_wait_file =
1433 else
1434 if HAVE_WAIT4
1435 syscall_wait_file = go/syscall/libcall_wait4.go
1436 else
1437 syscall_wait_file = go/syscall/libcall_waitpid.go
1438 endif
1439 endif
1441 # Support for pulling apart wait status.
1442 if LIBGO_IS_RTEMS
1443 syscall_wait_c_file =
1444 else
1445 syscall_wait_c_file = go/syscall/wait.c
1446 endif
1448 # Define Sleep.
1449 if LIBGO_IS_RTEMS
1450 syscall_sleep_file = go/syscall/sleep_rtems.go
1451 else
1452 syscall_sleep_file = go/syscall/sleep_select.go
1453 endif
1455 # Define Errstr.
1456 if LIBGO_IS_LINUX
1457 syscall_errstr_file = go/syscall/errstr_linux.go
1458 else
1459 if LIBGO_IS_RTEMS
1460 syscall_errstr_file = go/syscall/errstr_linux.go
1461 else
1462 if HAVE_STRERROR_R
1463 syscall_errstr_file = go/syscall/errstr.go
1464 else
1465 syscall_errstr_file = go/syscall/errstr_nor.go
1466 endif
1467 endif
1468 endif
1470 # Declare libc functions that vary for largefile systems.
1471 if LIBGO_IS_LINUX
1472 # Always use lseek64 on GNU/Linux.
1473 syscall_size_file = go/syscall/libcall_posix_largefile.go
1474 else # !LIBGO_IS_LINUX
1475 if LIBGO_IS_SOLARIS
1476 if LIBGO_IS_386
1477 # Use lseek64 on 32-bit Solaris/x86.
1478 syscall_size_file = go/syscall/libcall_posix_largefile.go
1479 else # !LIBGO_IS_386
1480 if LIBGO_IS_SPARC
1481 # Use lseek64 on 32-bit Solaris/SPARC.
1482 syscall_size_file = go/syscall/libcall_posix_largefile.go
1483 else # !LIBGO_IS_386 && !LIBGO_IS_SPARC
1484 # Use lseek on 64-bit Solaris.
1485 syscall_size_file = go/syscall/libcall_posix_regfile.go
1486 endif # !LIBGO_IS_386 && !LIBGO_IS_SPARC
1487 endif # !LIBGO_IS_SOLARIS
1488 else # !LIBGO_IS_LINUX && !LIBGO_IS_SOLARIS
1489 # Use lseek by default.
1490 syscall_size_file = go/syscall/libcall_posix_regfile.go
1491 endif # !LIBGO_IS_SOLARIS
1492 endif # !LIBGO_IS_LINUX
1494 # Define socket sizes and types.
1495 if LIBGO_IS_LINUX
1496 syscall_socket_file = go/syscall/socket_linux.go epoll.go
1497 else
1498 if LIBGO_IS_SOLARIS
1499 syscall_socket_file = go/syscall/socket_solaris.go
1500 else
1501 if LIBGO_IS_IRIX
1502 syscall_socket_file = go/syscall/socket_irix.go
1503 else
1504 syscall_socket_file = go/syscall/socket_bsd.go
1505 endif
1506 endif
1507 endif
1509 # Support for uname.
1510 if LIBGO_IS_SOLARIS
1511 if LIBGO_IS_386
1512 # 32-bit Solaris 2/x86 needs _nuname, handled in libcall_solaris_386.go.
1513 syscall_uname_file =
1514 else # !LIBGO_IS_386 && LIBGO_IS_SOLARIS
1515 syscall_uname_file = go/syscall/libcall_uname.go
1516 endif
1517 else # !LIBGO_IS_SOLARIS
1518 syscall_uname_file = go/syscall/libcall_uname.go
1519 endif
1521 # GNU/Linux specific socket control messages.
1522 if LIBGO_IS_LINUX
1523 syscall_sockcmsg_file = go/syscall/sockcmsg_linux.go
1524 else
1525 syscall_sockcmsg_file =
1526 endif
1528 # Support for netlink sockets and messages.
1529 if LIBGO_IS_LINUX
1530 syscall_netlink_file = go/syscall/netlink_linux.go
1531 else
1532 syscall_netlink_file =
1533 endif
1535 # GNU/Linux specific socket filters.
1536 if LIBGO_IS_LINUX
1537 syscall_lsf_file = go/syscall/lsf_linux.go
1538 else
1539 syscall_lsf_file =
1540 endif
1542 go_base_syscall_files = \
1543         go/syscall/env_unix.go \
1544         go/syscall/syscall_errno.go \
1545         go/syscall/libcall_support.go \
1546         go/syscall/libcall_posix.go \
1547         go/syscall/socket.go \
1548         go/syscall/sockcmsg_unix.go \
1549         go/syscall/str.go \
1550         go/syscall/syscall.go \
1551         $(syscall_sockcmsg_file) \
1552         $(syscall_syscall_file) \
1553         $(syscall_exec_file) \
1554         $(syscall_exec_os_file) \
1555         $(syscall_wait_file) \
1556         $(syscall_sleep_file) \
1557         $(syscall_errstr_file) \
1558         $(syscall_size_file) \
1559         $(syscall_socket_file) \
1560         $(syscall_uname_file) \
1561         $(syscall_netlink_file) \
1562         $(syscall_lsf_file) \
1563         $(GO_LIBCALL_OS_FILE) \
1564         $(GO_LIBCALL_OS_ARCH_FILE) \
1565         $(GO_SYSCALL_OS_FILE) \
1566         $(GO_SYSCALL_OS_ARCH_FILE)
1568 go_syscall_files = \
1569         $(go_base_syscall_files) \
1570         libcalls.go \
1571         sysinfo.go \
1572         syscall_arch.go
1573 go_syscall_c_files = \
1574         go/syscall/errno.c \
1575         go/syscall/signame.c \
1576         $(syscall_wait_c_file)
1578 libcalls.go: s-libcalls; @true
1579 s-libcalls: Makefile go/syscall/mksyscall.awk $(go_base_syscall_files)
1580         rm -f libcalls.go.tmp
1581         files=`echo $^ | sed -e 's/Makefile//' -e 's|[^ ]*go/syscall/mksyscall.awk||'`; \
1582         $(AWK) -f $(srcdir)/go/syscall/mksyscall.awk $${files} > libcalls.go.tmp
1583         $(SHELL) $(srcdir)/../move-if-change libcalls.go.tmp libcalls.go
1584         $(STAMP) $@
1586 syscall_arch.go: s-syscall_arch; @true
1587 s-syscall_arch: Makefile
1588         rm -f syscall_arch.go.tmp
1589         echo "package syscall" > syscall_arch.go.tmp
1590         echo 'const ARCH = "'$(GOARCH)'"' >> syscall_arch.go.tmp
1591         echo 'const OS = "'$(GOOS)'"' >> syscall_arch.go.tmp
1592         $(SHELL) $(srcdir)/../move-if-change syscall_arch.go.tmp syscall_arch.go
1593         $(STAMP) $@
1595 sysinfo.go: s-sysinfo; @true
1596 s-sysinfo: $(srcdir)/mksysinfo.sh config.h
1597         CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS)" $(SHELL) $(srcdir)/mksysinfo.sh
1598         $(SHELL) $(srcdir)/../move-if-change tmp-sysinfo.go sysinfo.go
1599         $(STAMP) $@
1601 # The epoll struct has an embedded union and is packed on x86_64,
1602 # which is too complicated for mksysinfo.sh.  We find the offset of
1603 # the only field we care about in configure.ac, and generate the
1604 # struct here.
1605 epoll.go: s-epoll; @true
1606 s-epoll: Makefile
1607         rm -f epoll.go.tmp
1608         echo 'package syscall' > epoll.go.tmp
1609         echo 'type EpollEvent struct {' >> epoll.go.tmp
1610         echo '  Events uint32' >> epoll.go.tmp
1611         case "$(SIZEOF_STRUCT_EPOLL_EVENT),$(STRUCT_EPOLL_EVENT_FD_OFFSET)" in \
1612         0,0) echo 1>&2 "*** struct epoll_event data.fd offset unknown"; \
1613            exit 1; ;; \
1614         8,4) echo '     Fd int32' >> epoll.go.tmp; ;; \
1615         12,4) echo '    Fd int32' >> epoll.go.tmp; \
1616            echo '       Pad [4]byte' >> epoll.go.tmp; ;; \
1617         12,8) echo '    Pad [4]byte' >> epoll.go.tmp; \
1618            echo '       Fd int32' >> epoll.go.tmp; ;; \
1619         16,8) echo '    Pad [4]byte' >> epoll.go.tmp; \
1620            echo '       Fd int32' >> epoll.go.tmp; \
1621            echo '       Pad2 [4]byte' >> epoll.go.tmp; ;; \
1622         *) echo 1>&2 "*** struct epoll_event unsupported"; \
1623            exit 1; ;; \
1624         esac
1625         echo '}' >> epoll.go.tmp
1626         $(SHELL) $(srcdir)/../move-if-change epoll.go.tmp epoll.go
1627         $(STAMP) $@
1629 if LIBGO_IS_LINUX
1630 # os_lib_inotify_lo = os/inotify.lo
1631 os_lib_inotify_lo =
1632 else
1633 os_lib_inotify_lo =
1634 endif
1636 libgo_go_objs = \
1637         bufio.lo \
1638         bytes.lo \
1639         bytes/index.lo \
1640         crypto.lo \
1641         errors.lo \
1642         expvar.lo \
1643         flag.lo \
1644         fmt.lo \
1645         hash.lo \
1646         html.lo \
1647         image.lo \
1648         io.lo \
1649         log.lo \
1650         math.lo \
1651         mime.lo \
1652         net.lo \
1653         os.lo \
1654         path.lo \
1655         reflect-go.lo \
1656         regexp.lo \
1657         runtime-go.lo \
1658         sort.lo \
1659         strconv.lo \
1660         strings.lo \
1661         sync.lo \
1662         syscall.lo \
1663         syscall/errno.lo \
1664         syscall/signame.lo \
1665         syscall/wait.lo \
1666         testing.lo \
1667         time-go.lo \
1668         unicode.lo \
1669         archive/tar.lo \
1670         archive/zip.lo \
1671         compress/bzip2.lo \
1672         compress/flate.lo \
1673         compress/gzip.lo \
1674         compress/lzw.lo \
1675         compress/zlib.lo \
1676         container/heap.lo \
1677         container/list.lo \
1678         container/ring.lo \
1679         crypto/aes.lo \
1680         crypto/cipher.lo \
1681         crypto/des.lo \
1682         crypto/dsa.lo \
1683         crypto/ecdsa.lo \
1684         crypto/elliptic.lo \
1685         crypto/hmac.lo \
1686         crypto/md5.lo \
1687         crypto/rand.lo \
1688         crypto/rc4.lo \
1689         crypto/rsa.lo \
1690         crypto/sha1.lo \
1691         crypto/sha256.lo \
1692         crypto/sha512.lo \
1693         crypto/subtle.lo \
1694         crypto/tls.lo \
1695         crypto/x509.lo \
1696         crypto/x509/pkix.lo \
1697         database/sql.lo \
1698         database/sql/driver.lo \
1699         debug/dwarf.lo \
1700         debug/elf.lo \
1701         debug/gosym.lo \
1702         debug/macho.lo \
1703         debug/pe.lo \
1704         encoding/ascii85.lo \
1705         encoding/asn1.lo \
1706         encoding/base32.lo \
1707         encoding/base64.lo \
1708         encoding/binary.lo \
1709         encoding/csv.lo \
1710         encoding/gob.lo \
1711         encoding/hex.lo \
1712         encoding/json.lo \
1713         encoding/pem.lo \
1714         encoding/xml.lo \
1715         exp/ebnf.lo \
1716         exp/html.lo \
1717         exp/norm.lo \
1718         exp/proxy.lo \
1719         exp/terminal.lo \
1720         exp/types.lo \
1721         exp/utf8string.lo \
1722         html/template.lo \
1723         go/ast.lo \
1724         go/build.lo \
1725         go/doc.lo \
1726         go/parser.lo \
1727         go/printer.lo \
1728         go/scanner.lo \
1729         go/token.lo \
1730         hash/adler32.lo \
1731         hash/crc32.lo \
1732         hash/crc64.lo \
1733         hash/fnv.lo \
1734         net/http/cgi.lo \
1735         net/http/fcgi.lo \
1736         net/http/httptest.lo \
1737         net/http/httputil.lo \
1738         net/http/pprof.lo \
1739         image/color.lo \
1740         image/draw.lo \
1741         image/gif.lo \
1742         image/jpeg.lo \
1743         image/png.lo \
1744         index/suffixarray.lo \
1745         io/ioutil.lo \
1746         log/syslog.lo \
1747         log/syslog/syslog_c.lo \
1748         math/big.lo \
1749         math/cmplx.lo \
1750         math/rand.lo \
1751         mime/multipart.lo \
1752         net/http.lo \
1753         net/mail.lo \
1754         net/rpc.lo \
1755         net/smtp.lo \
1756         net/textproto.lo \
1757         net/url.lo \
1758         old/netchan.lo \
1759         old/regexp.lo \
1760         old/template.lo \
1761         os/exec.lo \
1762         $(os_lib_inotify_lo) \
1763         os/signal.lo \
1764         os/user.lo \
1765         path/filepath.lo \
1766         regexp/syntax.lo \
1767         net/rpc/jsonrpc.lo \
1768         runtime/debug.lo \
1769         runtime/pprof.lo \
1770         sync/atomic.lo \
1771         sync/atomic_c.lo \
1772         text/scanner.lo \
1773         text/tabwriter.lo \
1774         text/template.lo \
1775         text/template/parse.lo \
1776         testing/iotest.lo \
1777         testing/quick.lo \
1778         unicode/utf16.lo \
1779         unicode/utf8.lo
1781 libgo_la_SOURCES = $(runtime_files)
1783 libgo_la_LDFLAGS = $(PTHREAD_CFLAGS) $(AM_LDFLAGS)
1785 libgo_la_LIBADD = \
1786         $(libgo_go_objs) ../libbacktrace/libbacktrace.la \
1787         $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)
1789 libgobegin_a_SOURCES = \
1790         runtime/go-main.c
1792 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
1794 GOCFLAGS = $(CFLAGS)
1795 AM_GOCFLAGS = $(STRINGOPS_FLAG)
1796 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
1798 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
1799         $(AM_GOCFLAGS) $(GOCFLAGS)
1801 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
1802         $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
1804 # Build the dependencies for a Go package.
1805 BUILDDEPS = \
1806         $(MKDIR_P) $(@D); \
1807         $(SHELL) $(srcdir)/godeps.sh `echo $@ | sed -e 's/.dep$$//'` $^ > $@.tmp; \
1808         mv -f $@.tmp $@
1810 # Build the .go files for a package, generating a .lo file.
1811 BUILDPACKAGE = \
1812         $(MKDIR_P) $(@D); \
1813         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
1814         $(LTGOCOMPILE) -I . -c -fgo-pkgpath=`echo $@ | sed -e 's/.lo$$//' -e 's/-go$$//'` -o $@ $$files
1816 if LIBGO_IS_RTEMS
1817 use_dejagnu = yes
1818 else
1819 use_dejagnu = no
1820 endif
1822 GOTESTFLAGS =
1824 # Check a package.
1825 CHECK = \
1826         GC="$(GOC) $(GOCFLAGS) $($(subst /,_,$@)_GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
1827         export GC; \
1828         GOLIBS="$(MATH_LIBS) $(NET_LIBS)"; \
1829         export GOLIBS; \
1830         RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
1831         export RUNTESTFLAGS; \
1832         MAKE="$(MAKE)"; \
1833         export MAKE; \
1834         libgccdir=`${GOC} -print-libgcc-file-name | sed -e 's|/[^/]*$$||'`; \
1835         LD_LIBRARY_PATH="`${PWD_COMMAND}`/.libs:$${libgccdir}:${LD_LIBRARY_PATH}"; \
1836         LD_LIBRARY_PATH=`echo $${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
1837         export LD_LIBRARY_PATH; \
1838         $(MKDIR_P) $(@D); \
1839         rm -f $@-testsum $@-testlog; \
1840         if test "$(use_dejagnu)" = "yes"; then \
1841           $(SHELL) $(srcdir)/testsuite/gotest --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --testname="$(@D)" --goarch="$(GOARCH)" $(GOTESTFLAGS); \
1842         else \
1843           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 \
1844             echo "PASS: $(@D)" >> $@-testlog; \
1845             echo "PASS: $(@D)"; \
1846             echo "PASS: $(@D)" > $@-testsum; \
1847           else \
1848             echo "FAIL: $(@D)" >> $@-testlog; \
1849             cat $@-testlog; \
1850             echo "FAIL: $(@D)" > $@-testsum; \
1851             exit 1; \
1852           fi; \
1853         fi
1855 # Build all packages before checking any.
1856 CHECK_DEPS = libgo.la libgobegin.a \
1857         $(toolexeclibgo_DATA) \
1858         $(toolexeclibgoarchive_DATA) \
1859         $(toolexeclibgocompress_DATA) \
1860         $(toolexeclibgocontainer_DATA) \
1861         $(toolexeclibgocrypto_DATA) \
1862         $(toolexeclibgodebug_DATA) \
1863         $(toolexeclibgoencoding_DATA) \
1864         $(toolexeclibgoexp_DATA) \
1865         $(toolexeclibgogo_DATA) \
1866         $(toolexeclibgohash_DATA) \
1867         $(toolexeclibgoimage_DATA) \
1868         $(toolexeclibgoindex_DATA) \
1869         $(toolexeclibgoio_DATA) \
1870         $(toolexeclibgolog_DATA) \
1871         $(toolexeclibgomath_DATA) \
1872         $(toolexeclibgomime_DATA) \
1873         $(toolexeclibgonet_DATA) \
1874         $(toolexeclibgonethttp_DATA) \
1875         $(toolexeclibgoos_DATA) \
1876         $(toolexeclibgopath_DATA) \
1877         $(toolexeclibgorpc_DATA) \
1878         $(toolexeclibgoruntime_DATA) \
1879         $(toolexeclibgosync_DATA) \
1880         $(toolexeclibgotesting_DATA) \
1881         $(toolexeclibgotext_DATA) \
1882         $(toolexeclibgotexttemplate_DATA) \
1883         $(toolexeclibgounicode_DATA)
1885 @go_include@ bufio.lo.dep
1886 bufio.lo.dep: $(go_bufio_files)
1887         $(BUILDDEPS)
1888 bufio.lo: $(go_bufio_files)
1889         $(BUILDPACKAGE)
1890 bufio/check: $(CHECK_DEPS)
1891         @$(CHECK)
1892 .PHONY: bufio/check
1894 @go_include@ bytes.lo.dep
1895 bytes.lo.dep: $(go_bytes_files)
1896         $(BUILDDEPS)
1897 bytes.lo: $(go_bytes_files)
1898         $(BUILDPACKAGE)
1899 bytes/index.lo: $(go_bytes_c_files)
1900         @$(MKDIR_P) bytes
1901         $(LTCOMPILE) -c -o bytes/index.lo $(srcdir)/go/bytes/indexbyte.c
1902 bytes/check: $(CHECK_DEPS)
1903         @$(CHECK)
1904 .PHONY: bytes/check
1906 @go_include@ crypto.lo.dep
1907 crypto.lo.dep: $(go_crypto_files)
1908         $(BUILDDEPS)
1909 crypto.lo: $(go_crypto_files)
1910         $(BUILDPACKAGE)
1911 crypto/check: $(CHECK_DEPS)
1912         @$(CHECK)
1913 .PHONY: crypto/check
1915 @go_include@ errors.lo.dep
1916 errors.lo.dep: $(go_errors_files)
1917         $(BUILDDEPS)
1918 errors.lo: $(go_errors_files)
1919         $(BUILDPACKAGE)
1920 errors/check: $(CHECK_DEPS)
1921         @$(CHECK)
1922 .PHONY: errors/check
1924 @go_include@ expvar.lo.dep
1925 expvar.lo.dep: $(go_expvar_files)
1926         $(BUILDDEPS)
1927 expvar.lo: $(go_expvar_files)
1928         $(BUILDPACKAGE)
1929 expvar/check: $(CHECK_DEPS)
1930         @$(CHECK)
1931 .PHONY: expvar/check
1933 @go_include@ flag.lo.dep
1934 flag.lo.dep: $(go_flag_files)
1935         $(BUILDDEPS)
1936 flag.lo: $(go_flag_files)
1937         $(BUILDPACKAGE)
1938 flag/check: $(CHECK_DEPS)
1939         @$(CHECK)
1940 .PHONY: flag/check
1942 @go_include@ fmt.lo.dep
1943 fmt.lo.dep: $(go_fmt_files)
1944         $(BUILDDEPS)
1945 fmt.lo: $(go_fmt_files)
1946         $(BUILDPACKAGE)
1947 fmt/check: $(CHECK_DEPS)
1948         @$(CHECK)
1949 .PHONY: fmt/check
1951 @go_include@ hash.lo.dep
1952 hash.lo.dep: $(go_hash_files)
1953         $(BUILDDEPS)
1954 hash.lo: $(go_hash_files)
1955         $(BUILDPACKAGE)
1956 hash/check: $(CHECK_DEPS)
1957         @$(CHECK)
1958 .PHONY: hash/check
1960 @go_include@ html.lo.dep
1961 html.lo.dep: $(go_html_files)
1962         $(BUILDDEPS)
1963 html.lo: $(go_html_files)
1964         $(BUILDPACKAGE)
1965 html/check: $(CHECK_DEPS)
1966         @$(CHECK)
1967 .PHONY: html/check
1969 @go_include@ image.lo.dep
1970 image.lo.dep: $(go_image_files)
1971         $(BUILDDEPS)
1972 image.lo: $(go_image_files)
1973         $(BUILDPACKAGE)
1974 image/check: $(CHECK_DEPS)
1975         @$(CHECK)
1976 .PHONY: image/check
1978 @go_include@ io.lo.dep
1979 io.lo.dep: $(go_io_files)
1980         $(BUILDDEPS)
1981 io.lo: $(go_io_files)
1982         $(BUILDPACKAGE)
1983 io/check: $(CHECK_DEPS)
1984         @$(CHECK)
1985 .PHONY: io/check
1987 @go_include@ log.lo.dep
1988 log.lo.dep: $(go_log_files)
1989         $(BUILDDEPS)
1990 log.lo: $(go_log_files)
1991         $(BUILDPACKAGE)
1992 log/check: $(CHECK_DEPS)
1993         @$(CHECK)
1994 .PHONY: log/check
1996 @go_include@ math.lo.dep
1997 math.lo.dep: $(go_math_files)
1998         $(BUILDDEPS)
1999 math.lo: $(go_math_files)
2000         $(MKDIR_P) $(@D)
2001         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
2002         $(LTGOCOMPILE) $(MATH_FLAG) -I . -c -fgo-pkgpath=math -o $@ $$files
2003 math/check: $(CHECK_DEPS)
2004         @$(CHECK)
2005 .PHONY: math/check
2007 @go_include@ mime.lo.dep
2008 mime.lo.dep: $(go_mime_files)
2009         $(BUILDDEPS)
2010 mime.lo: $(go_mime_files)
2011         $(BUILDPACKAGE)
2012 mime/check: $(CHECK_DEPS)
2013         @$(CHECK)
2014 .PHONY: mime/check
2016 @go_include@ net.lo.dep
2017 net.lo.dep: $(go_net_files)
2018         $(BUILDDEPS)
2019 net.lo: $(go_net_files)
2020         $(BUILDPACKAGE)
2021 net/check: $(CHECK_DEPS)
2022         @$(CHECK)
2023 .PHONY: net/check
2025 @go_include@ os.lo.dep
2026 os.lo.dep: $(go_os_files)
2027         $(BUILDDEPS)
2028 os.lo: $(go_os_files)
2029         $(BUILDPACKAGE)
2030 os/check: $(CHECK_DEPS)
2031         @$(CHECK)
2032 .PHONY: os/check
2034 @go_include@ path.lo.dep
2035 path.lo.dep: $(go_path_files)
2036         $(BUILDDEPS)
2037 path.lo: $(go_path_files)
2038         $(BUILDPACKAGE)
2039 path/check: $(CHECK_DEPS)
2040         @$(CHECK)
2041 .PHONY: path/check
2043 @go_include@ reflect-go.lo.dep
2044 reflect-go.lo.dep: $(go_reflect_files)
2045         $(BUILDDEPS)
2046 reflect-go.lo: $(go_reflect_files)
2047         $(BUILDPACKAGE)
2048 reflect/check: $(CHECK_DEPS)
2049         @$(CHECK)
2050 .PHONY: reflect/check
2052 @go_include@ regexp.lo.dep
2053 regexp.lo.dep: $(go_regexp_files)
2054         $(BUILDDEPS)
2055 regexp.lo: $(go_regexp_files)
2056         $(BUILDPACKAGE)
2057 regexp/check: $(CHECK_DEPS)
2058         @$(CHECK)
2059 .PHONY: regexp/check
2061 @go_include@ runtime-go.lo.dep
2062 runtime-go.lo.dep: $(go_runtime_files)
2063         $(BUILDDEPS)
2064 runtime-go.lo: $(go_runtime_files)
2065         $(BUILDPACKAGE)
2066 runtime/check: $(CHECK_DEPS)
2067         @$(CHECK)
2068 .PHONY: runtime/check
2070 @go_include@ sort.lo.dep
2071 sort.lo.dep: $(go_sort_files)
2072         $(BUILDDEPS)
2073 sort.lo: $(go_sort_files)
2074         $(BUILDPACKAGE)
2075 sort/check: $(CHECK_DEPS)
2076         @$(CHECK)
2077 .PHONY: sort/check
2079 @go_include@ strconv.lo.dep
2080 strconv.lo.dep: $(go_strconv_files)
2081         $(BUILDDEPS)
2082 strconv.lo: $(go_strconv_files)
2083         $(BUILDPACKAGE)
2084 strconv/check: $(CHECK_DEPS)
2085         @$(CHECK)
2086 .PHONY: strconv/check
2088 @go_include@ strings.lo.dep
2089 strings.lo.dep: $(go_strings_files)
2090         $(BUILDDEPS)
2091 strings.lo: $(go_strings_files)
2092         $(BUILDPACKAGE)
2093 strings/check: $(CHECK_DEPS)
2094         @$(CHECK)
2095 .PHONY: strings/check
2097 @go_include@ sync.lo.dep
2098 sync.lo.dep: $(go_sync_files)
2099         $(BUILDDEPS)
2100 sync.lo: $(go_sync_files)
2101         $(BUILDPACKAGE)
2102 sync/check: $(CHECK_DEPS)
2103         @$(CHECK)
2104 .PHONY: sync/check
2106 @go_include@ testing.lo.dep
2107 testing.lo.dep: $(go_testing_files)
2108         $(BUILDDEPS)
2109 testing.lo: $(go_testing_files)
2110         $(BUILDPACKAGE)
2111 testing/check: $(CHECK_DEPS)
2112         @$(CHECK)
2113 .PHONY: testing/check
2115 @go_include@ time-go.lo.dep
2116 time-go.lo.dep: $(go_time_files)
2117         $(BUILDDEPS)
2118 time-go.lo: $(go_time_files)
2119         $(BUILDPACKAGE)
2120 time/check: $(CHECK_DEPS)
2121         @$(CHECK)
2122 .PHONY: time/check
2124 @go_include@ unicode.lo.dep
2125 unicode.lo.dep: $(go_unicode_files)
2126         $(BUILDDEPS)
2127 unicode.lo: $(go_unicode_files)
2128         $(BUILDPACKAGE)
2129 unicode/check: $(CHECK_DEPS)
2130         @$(CHECK)
2131 .PHONY: unicode/check
2133 @go_include@ archive/tar.lo.dep
2134 archive/tar.lo.dep: $(go_archive_tar_files)
2135         $(BUILDDEPS)
2136 archive/tar.lo: $(go_archive_tar_files)
2137         $(BUILDPACKAGE)
2138 archive/tar/check: $(CHECK_DEPS)
2139         @$(CHECK)
2140 .PHONY: archive/tar/check
2142 @go_include@ archive/zip.lo.dep
2143 archive/zip.lo.dep: $(go_archive_zip_files)
2144         $(BUILDDEPS)
2145 archive/zip.lo: $(go_archive_zip_files)
2146         $(BUILDPACKAGE)
2147 archive/zip/check: $(CHECK_DEPS)
2148         @$(CHECK)
2149 .PHONY: archive/zip/check
2151 @go_include@ compress/bzip2.lo.dep
2152 compress/bzip2.lo.dep: $(go_compress_bzip2_files)
2153         $(BUILDDEPS)
2154 compress/bzip2.lo: $(go_compress_bzip2_files)
2155         $(BUILDPACKAGE)
2156 compress/bzip2/check: $(CHECK_DEPS)
2157         @$(CHECK)
2158 .PHONY: compress/bzip2/check
2160 @go_include@ compress/flate.lo.dep
2161 compress/flate.lo.dep: $(go_compress_flate_files)
2162         $(BUILDDEPS)
2163 compress/flate.lo: $(go_compress_flate_files)
2164         $(BUILDPACKAGE)
2165 compress/flate/check: $(CHECK_DEPS)
2166         @$(CHECK)
2167 .PHONY: compress/flate/check
2169 @go_include@ compress/gzip.lo.dep
2170 compress/gzip.lo.dep: $(go_compress_gzip_files)
2171         $(BUILDDEPS)
2172 compress/gzip.lo: $(go_compress_gzip_files)
2173         $(BUILDPACKAGE)
2174 compress/gzip/check: $(CHECK_DEPS)
2175         @$(CHECK)
2176 .PHONY: compress/gzip/check
2178 @go_include@ compress/lzw.lo.dep
2179 compress/lzw.lo.dep: $(go_compress_lzw_files)
2180         $(BUILDDEPS)
2181 compress/lzw.lo: $(go_compress_lzw_files)
2182         $(BUILDPACKAGE)
2183 compress/lzw/check: $(CHECK_DEPS)
2184         @$(CHECK)
2185 .PHONY: compress/lzw/check
2187 @go_include@ compress/zlib.lo.dep
2188 compress/zlib.lo.dep: $(go_compress_zlib_files)
2189         $(BUILDDEPS)
2190 compress/zlib.lo: $(go_compress_zlib_files)
2191         $(BUILDPACKAGE)
2192 compress/zlib/check: $(CHECK_DEPS)
2193         @$(CHECK)
2194 .PHONY: compress/zlib/check
2196 @go_include@ container/heap.lo.dep
2197 container/heap.lo.dep: $(go_container_heap_files)
2198         $(BUILDDEPS)
2199 container/heap.lo: $(go_container_heap_files)
2200         $(BUILDPACKAGE)
2201 container/heap/check: $(CHECK_DEPS)
2202         @$(CHECK)
2203 .PHONY: container/heap/check
2205 @go_include@ container/list.lo.dep
2206 container/list.lo.dep: $(go_container_list_files)
2207         $(BUILDDEPS)
2208 container/list.lo: $(go_container_list_files)
2209         $(BUILDPACKAGE)
2210 container/list/check: $(CHECK_DEPS)
2211         @$(CHECK)
2212 .PHONY: container/list/check
2214 @go_include@ container/ring.lo.dep
2215 container/ring.lo.dep: $(go_container_ring_files)
2216         $(BUILDDEPS)
2217 container/ring.lo: $(go_container_ring_files)
2218         $(BUILDPACKAGE)
2219 container/ring/check: $(CHECK_DEPS)
2220         @$(CHECK)
2221 .PHONY: container/ring/check
2223 @go_include@ crypto/aes.lo.dep
2224 crypto/aes.lo.dep: $(go_crypto_aes_files)
2225         $(BUILDDEPS)
2226 crypto/aes.lo: $(go_crypto_aes_files)
2227         $(BUILDPACKAGE)
2228 crypto/aes/check: $(CHECK_DEPS)
2229         @$(CHECK)
2230 .PHONY: crypto/aes/check
2232 @go_include@ crypto/cipher.lo.dep
2233 crypto/cipher.lo.dep: $(go_crypto_cipher_files)
2234         $(BUILDDEPS)
2235 crypto/cipher.lo: $(go_crypto_cipher_files)
2236         $(BUILDPACKAGE)
2237 crypto/cipher/check: $(CHECK_DEPS)
2238         @$(CHECK)
2239 .PHONY: crypto/cipher/check
2241 @go_include@ crypto/des.lo.dep
2242 crypto/des.lo.dep: $(go_crypto_des_files)
2243         $(BUILDDEPS)
2244 crypto/des.lo: $(go_crypto_des_files)
2245         $(BUILDPACKAGE)
2246 crypto/des/check: $(CHECK_DEPS)
2247         @$(CHECK)
2248 .PHONY: crypto/des/check
2250 @go_include@ crypto/dsa.lo.dep
2251 crypto/dsa.lo.dep: $(go_crypto_dsa_files)
2252         $(BUILDDEPS)
2253 crypto/dsa.lo: $(go_crypto_dsa_files)
2254         $(BUILDPACKAGE)
2255 crypto/dsa/check: $(CHECK_DEPS)
2256         @$(CHECK)
2257 .PHONY: crypto/dsa/check
2259 @go_include@ crypto/ecdsa.lo.dep
2260 crypto/ecdsa.lo.dep: $(go_crypto_ecdsa_files)
2261         $(BUILDDEPS)
2262 crypto/ecdsa.lo: $(go_crypto_ecdsa_files)
2263         $(BUILDPACKAGE)
2264 crypto/ecdsa/check: $(CHECK_DEPS)
2265         @$(CHECK)
2266 .PHONY: crypto/ecdsa/check
2268 @go_include@ crypto/elliptic.lo.dep
2269 crypto/elliptic.lo.dep: $(go_crypto_elliptic_files)
2270         $(BUILDDEPS)
2271 crypto/elliptic.lo: $(go_crypto_elliptic_files)
2272         $(BUILDPACKAGE)
2273 crypto/elliptic/check: $(CHECK_DEPS)
2274         @$(CHECK)
2275 .PHONY: crypto/elliptic/check
2277 @go_include@ crypto/hmac.lo.dep
2278 crypto/hmac.lo.dep: $(go_crypto_hmac_files)
2279         $(BUILDDEPS)
2280 crypto/hmac.lo: $(go_crypto_hmac_files)
2281         $(BUILDPACKAGE)
2282 crypto/hmac/check: $(CHECK_DEPS)
2283         @$(CHECK)
2284 .PHONY: crypto/hmac/check
2286 @go_include@ crypto/md5.lo.dep
2287 crypto/md5.lo.dep: $(go_crypto_md5_files)
2288         $(BUILDDEPS)
2289 crypto/md5.lo: $(go_crypto_md5_files)
2290         $(BUILDPACKAGE)
2291 crypto/md5/check: $(CHECK_DEPS)
2292         @$(CHECK)
2293 .PHONY: crypto/md5/check
2295 @go_include@ crypto/rand.lo.dep
2296 crypto/rand.lo.dep: $(go_crypto_rand_files)
2297         $(BUILDDEPS)
2298 crypto/rand.lo: $(go_crypto_rand_files)
2299         $(BUILDPACKAGE)
2300 crypto/rand/check: $(CHECK_DEPS)
2301         @$(CHECK)
2302 .PHONY: crypto/rand/check
2304 @go_include@ crypto/rc4.lo.dep
2305 crypto/rc4.lo.dep: $(go_crypto_rc4_files)
2306         $(BUILDDEPS)
2307 crypto/rc4.lo: $(go_crypto_rc4_files)
2308         $(BUILDPACKAGE)
2309 crypto/rc4/check: $(CHECK_DEPS)
2310         @$(CHECK)
2311 .PHONY: crypto/rc4/check
2313 @go_include@ crypto/rsa.lo.dep
2314 crypto/rsa.lo.dep: $(go_crypto_rsa_files)
2315         $(BUILDDEPS)
2316 crypto/rsa.lo: $(go_crypto_rsa_files)
2317         $(BUILDPACKAGE)
2318 crypto/rsa/check: $(CHECK_DEPS)
2319         @$(CHECK)
2320 .PHONY: crypto/rsa/check
2322 @go_include@ crypto/sha1.lo.dep
2323 crypto/sha1.lo.dep: $(go_crypto_sha1_files)
2324         $(BUILDDEPS)
2325 crypto/sha1.lo: $(go_crypto_sha1_files)
2326         $(BUILDPACKAGE)
2327 crypto/sha1/check: $(CHECK_DEPS)
2328         @$(CHECK)
2329 .PHONY: crypto/sha1/check
2331 @go_include@ crypto/sha256.lo.dep
2332 crypto/sha256.lo.dep: $(go_crypto_sha256_files)
2333         $(BUILDDEPS)
2334 crypto/sha256.lo: $(go_crypto_sha256_files)
2335         $(BUILDPACKAGE)
2336 crypto/sha256/check: $(CHECK_DEPS)
2337         @$(CHECK)
2338 .PHONY: crypto/sha256/check
2340 @go_include@ crypto/sha512.lo.dep
2341 crypto/sha512.lo.dep: $(go_crypto_sha512_files)
2342         $(BUILDDEPS)
2343 crypto/sha512.lo: $(go_crypto_sha512_files)
2344         $(BUILDPACKAGE)
2345 crypto/sha512/check: $(CHECK_DEPS)
2346         @$(CHECK)
2347 .PHONY: crypto/sha512/check
2349 @go_include@ crypto/subtle.lo.dep
2350 crypto/subtle.lo.dep: $(go_crypto_subtle_files)
2351         $(BUILDDEPS)
2352 crypto/subtle.lo: $(go_crypto_subtle_files)
2353         $(BUILDPACKAGE)
2354 crypto/subtle/check: $(CHECK_DEPS)
2355         @$(CHECK)
2356 .PHONY: crypto/subtle/check
2358 @go_include@ crypto/tls.lo.dep
2359 crypto/tls.lo.dep: $(go_crypto_tls_files)
2360         $(BUILDDEPS)
2361 crypto/tls.lo: $(go_crypto_tls_files)
2362         $(BUILDPACKAGE)
2363 crypto/tls/check: $(CHECK_DEPS)
2364         @$(CHECK)
2365 .PHONY: crypto/tls/check
2367 @go_include@ crypto/x509.lo.dep
2368 crypto/x509.lo.dep: $(go_crypto_x509_files)
2369         $(BUILDDEPS)
2370 crypto/x509.lo: $(go_crypto_x509_files)
2371         $(BUILDPACKAGE)
2372 crypto/x509/check: $(CHECK_DEPS)
2373         @$(CHECK)
2374 .PHONY: crypto/x509/check
2376 @go_include@ crypto/x509/pkix.lo.dep
2377 crypto/x509/pkix.lo.dep: $(go_crypto_x509_pkix_files)
2378         $(BUILDDEPS)
2379 crypto/x509/pkix.lo: $(go_crypto_x509_pkix_files)
2380         $(BUILDPACKAGE)
2381 crypto/x509/pkix/check: $(CHECK_DEPS)
2382         @$(CHECK)
2383 .PHONY: crypto/x509/pkix/check
2385 @go_include@ database/sql.lo.dep
2386 database/sql.lo.dep: $(go_database_sql_files)
2387         $(BUILDDEPS)
2388 database/sql.lo: $(go_database_sql_files)
2389         $(BUILDPACKAGE)
2390 database/sql/check: $(CHECK_DEPS)
2391         @$(CHECK)
2392 .PHONY: database/sql/check
2394 @go_include@ database/sql/driver.lo.dep
2395 database/sql/driver.lo.dep: $(go_database_sql_driver_files)
2396         $(BUILDDEPS)
2397 database/sql/driver.lo: $(go_database_sql_driver_files)
2398         $(BUILDPACKAGE)
2399 database/sql/driver/check: $(CHECK_DEPS)
2400         @$(CHECK)
2401 .PHONY: database/sql/driver/check
2403 @go_include@ debug/dwarf.lo.dep
2404 debug/dwarf.lo.dep: $(go_debug_dwarf_files)
2405         $(BUILDDEPS)
2406 debug/dwarf.lo: $(go_debug_dwarf_files)
2407         $(BUILDPACKAGE)
2408 debug/dwarf/check: $(CHECK_DEPS)
2409         @$(CHECK)
2410 .PHONY: debug/dwarf/check
2412 @go_include@ debug/elf.lo.dep
2413 debug/elf.lo.dep: $(go_debug_elf_files)
2414         $(BUILDDEPS)
2415 debug/elf.lo: $(go_debug_elf_files)
2416         $(BUILDPACKAGE)
2417 debug/elf/check: $(CHECK_DEPS)
2418         @$(CHECK)
2419 .PHONY: debug/elf/check
2421 @go_include@ debug/gosym.lo.dep
2422 debug/gosym.lo.dep: $(go_debug_gosym_files)
2423         $(BUILDDEPS)
2424 debug/gosym.lo: $(go_debug_gosym_files)
2425         $(BUILDPACKAGE)
2426 debug/gosym/check: $(CHECK_DEPS)
2427         @$(CHECK)
2428 .PHONY: debug/gosym/check
2430 @go_include@ debug/macho.lo.dep
2431 debug/macho.lo.dep: $(go_debug_macho_files)
2432         $(BUILDDEPS)
2433 debug/macho.lo: $(go_debug_macho_files)
2434         $(BUILDPACKAGE)
2435 debug/macho/check: $(CHECK_DEPS)
2436         @$(CHECK)
2437 .PHONY: debug/macho/check
2439 @go_include@ debug/pe.lo.dep
2440 debug/pe.lo.dep: $(go_debug_pe_files)
2441         $(BUILDDEPS)
2442 debug/pe.lo: $(go_debug_pe_files)
2443         $(BUILDPACKAGE)
2444 debug/pe/check: $(CHECK_DEPS)
2445         @$(CHECK)
2446 .PHONY: debug/pe/check
2448 @go_include@ encoding/asn1.lo.dep
2449 encoding/asn1.lo.dep: $(go_encoding_asn1_files)
2450         $(BUILDDEPS)
2451 encoding/asn1.lo: $(go_encoding_asn1_files)
2452         $(BUILDPACKAGE)
2453 encoding/asn1/check: $(CHECK_DEPS)
2454         @$(CHECK)
2455 .PHONY: encoding/asn1/check
2457 @go_include@ encoding/ascii85.lo.dep
2458 encoding/ascii85.lo.dep: $(go_encoding_ascii85_files)
2459         $(BUILDDEPS)
2460 encoding/ascii85.lo: $(go_encoding_ascii85_files)
2461         $(BUILDPACKAGE)
2462 encoding/ascii85/check: $(CHECK_DEPS)
2463         @$(CHECK)
2464 .PHONY: encoding/ascii85/check
2466 @go_include@ encoding/base32.lo.dep
2467 encoding/base32.lo.dep: $(go_encoding_base32_files)
2468         $(BUILDDEPS)
2469 encoding/base32.lo: $(go_encoding_base32_files)
2470         $(BUILDPACKAGE)
2471 encoding/base32/check: $(CHECK_DEPS)
2472         @$(CHECK)
2473 .PHONY: encoding/base32/check
2475 @go_include@ encoding/base64.lo.dep
2476 encoding/base64.lo.dep: $(go_encoding_base64_files)
2477         $(BUILDDEPS)
2478 encoding/base64.lo: $(go_encoding_base64_files)
2479         $(BUILDPACKAGE)
2480 encoding/base64/check: $(CHECK_DEPS)
2481         @$(CHECK)
2482 .PHONY: encoding/base64/check
2484 @go_include@ encoding/binary.lo.dep
2485 encoding/binary.lo.dep: $(go_encoding_binary_files)
2486         $(BUILDDEPS)
2487 encoding/binary.lo: $(go_encoding_binary_files)
2488         $(BUILDPACKAGE)
2489 encoding/binary/check: $(CHECK_DEPS)
2490         @$(CHECK)
2491 .PHONY: encoding/binary/check
2493 @go_include@ encoding/csv.lo.dep
2494 encoding/csv.lo.dep: $(go_encoding_csv_files)
2495         $(BUILDDEPS)
2496 encoding/csv.lo: $(go_encoding_csv_files)
2497         $(BUILDPACKAGE)
2498 encoding/csv/check: $(CHECK_DEPS)
2499         @$(CHECK)
2500 .PHONY: encoding/csv/check
2502 @go_include@ encoding/gob.lo.dep
2503 encoding/gob.lo.dep: $(go_encoding_gob_files)
2504         $(BUILDDEPS)
2505 encoding/gob.lo: $(go_encoding_gob_files)
2506         $(BUILDPACKAGE)
2507 encoding/gob/check: $(CHECK_DEPS)
2508         @$(CHECK)
2509 .PHONY: encoding/gob/check
2511 @go_include@ encoding/hex.lo.dep
2512 encoding/hex.lo.dep: $(go_encoding_hex_files)
2513         $(BUILDDEPS)
2514 encoding/hex.lo: $(go_encoding_hex_files)
2515         $(BUILDPACKAGE)
2516 encoding/hex/check: $(CHECK_DEPS)
2517         @$(CHECK)
2518 .PHONY: encoding/hex/check
2520 @go_include@ encoding/json.lo.dep
2521 encoding/json.lo.dep: $(go_encoding_json_files)
2522         $(BUILDDEPS)
2523 encoding/json.lo: $(go_encoding_json_files)
2524         $(BUILDPACKAGE)
2525 encoding/json/check: $(CHECK_DEPS)
2526         @$(CHECK)
2527 .PHONY: encoding/json/check
2529 @go_include@ encoding/pem.lo.dep
2530 encoding/pem.lo.dep: $(go_encoding_pem_files)
2531         $(BUILDDEPS)
2532 encoding/pem.lo: $(go_encoding_pem_files)
2533         $(BUILDPACKAGE)
2534 encoding/pem/check: $(CHECK_DEPS)
2535         @$(CHECK)
2536 .PHONY: encoding/pem/check
2538 @go_include@ encoding/xml.lo.dep
2539 encoding/xml.lo.dep: $(go_encoding_xml_files)
2540         $(BUILDDEPS)
2541 encoding/xml.lo: $(go_encoding_xml_files)
2542         $(BUILDPACKAGE)
2543 encoding/xml/check: $(CHECK_DEPS)
2544         @$(CHECK)
2545 .PHONY: encoding/xml/check
2547 @go_include@ exp/ebnf.lo.dep
2548 exp/ebnf.lo.dep: $(go_exp_ebnf_files)
2549         $(BUILDDEPS)
2550 exp/ebnf.lo: $(go_exp_ebnf_files)
2551         $(BUILDPACKAGE)
2552 exp/ebnf/check: $(CHECK_DEPS)
2553         @$(CHECK)
2554 .PHONY: exp/ebnf/check
2556 @go_include@ exp/html.lo.dep
2557 exp/html.lo.dep: $(go_exp_html_files)
2558         $(BUILDDEPS)
2559 exp/html.lo: $(go_exp_html_files)
2560         $(BUILDPACKAGE)
2561 exp/html/check: $(CHECK_DEPS)
2562         @$(CHECK)
2563 .PHONY: exp/html/check
2565 @go_include@ exp/norm.lo.dep
2566 exp/norm.lo.dep: $(go_exp_norm_files)
2567         $(BUILDDEPS)
2568 exp/norm.lo: $(go_exp_norm_files)
2569         $(BUILDPACKAGE)
2570 exp/norm/check: $(CHECK_DEPS)
2571         @$(CHECK)
2572 .PHONY: exp/norm/check
2574 @go_include@ exp/proxy.lo.dep
2575 exp/proxy.lo.dep: $(go_exp_proxy_files)
2576         $(BUILDDEPS)
2577 exp/proxy.lo: $(go_exp_proxy_files)
2578         $(BUILDPACKAGE)
2579 exp/proxy/check: $(CHECK_DEPS)
2580         @$(CHECK)
2581 .PHONY: exp/proxy/check
2583 @go_include@ exp/terminal.lo.dep
2584 exp/terminal.lo.dep: $(go_exp_terminal_files)
2585         $(BUILDDEPS)
2586 exp/terminal.lo: $(go_exp_terminal_files)
2587         $(BUILDPACKAGE)
2588 exp/terminal/check: $(CHECK_DEPS)
2589         @$(CHECK)
2590 .PHONY: exp/terminal/check
2592 @go_include@ exp/types.lo.dep
2593 exp/types.lo.dep: $(go_exp_types_files)
2594         $(BUILDDEPS)
2595 exp/types.lo: $(go_exp_types_files)
2596         $(BUILDPACKAGE)
2597 exp/types/check: $(CHECK_DEPS)
2598         @$(CHECK)
2599 .PHONY: exp/types/check
2601 @go_include@ exp/utf8string.lo.dep
2602 exp/utf8string.lo.dep: $(go_exp_utf8string_files)
2603         $(BUILDDEPS)
2604 exp/utf8string.lo: $(go_exp_utf8string_files)
2605         $(BUILDPACKAGE)
2606 exp/utf8string/check: $(CHECK_DEPS)
2607         @$(CHECK)
2608 .PHONY: exp/utf8string/check
2610 @go_include@ exp/inotify.lo.dep
2611 exp/inotify.lo.dep: $(go_exp_inotify_files)
2612         $(BUILDDEPS)
2613 exp/inotify.lo: $(go_exp_inotify_files)
2614         $(BUILDPACKAGE)
2615 exp/inotify/check: $(CHECK_DEPS)
2616         @$(CHECK)
2617 .PHONY: exp/inotify/check
2619 @go_include@ html/template.lo.dep
2620 html/template.lo.dep: $(go_html_template_files)
2621         $(BUILDDEPS)
2622 html/template.lo: $(go_html_template_files)
2623         $(BUILDPACKAGE)
2624 html/template/check: $(CHECK_DEPS)
2625         @$(CHECK)
2626 .PHONY: html/template/check
2628 @go_include@ go/ast.lo.dep
2629 go/ast.lo.dep: $(go_go_ast_files)
2630         $(BUILDDEPS)
2631 go/ast.lo: $(go_go_ast_files)
2632         $(BUILDPACKAGE)
2633 go/ast/check: $(CHECK_DEPS)
2634         @$(CHECK)
2635 .PHONY: go/ast/check
2637 @go_include@ go/build.lo.dep
2638 go/build.lo.dep: $(go_go_build_files)
2639         $(BUILDDEPS)
2640 go/build.lo: $(go_go_build_files)
2641         $(BUILDPACKAGE)
2642 go/build/check: $(CHECK_DEPS)
2643         @$(CHECK)
2644 .PHONY: go/build/check
2646 syslist.go: s-syslist; @true
2647 s-syslist: Makefile
2648         echo '// Generated automatically by make.' >syslist.go.tmp
2649         echo 'package build' >>syslist.go.tmp
2650         echo 'const goosList = "$(GOOS)"' >>syslist.go.tmp
2651         echo 'const goarchList = "$(GOARCH)"' >>syslist.go.tmp
2652         $(SHELL) $(srcdir)/../move-if-change syslist.go.tmp syslist.go
2653         $(STAMP) $@
2655 @go_include@ go/doc.lo.dep
2656 go/doc.lo.dep: $(go_go_doc_files)
2657         $(BUILDDEPS)
2658 go/doc.lo: $(go_go_doc_files)
2659         $(BUILDPACKAGE)
2660 go/doc/check: $(CHECK_DEPS)
2661         @$(CHECK)
2662 .PHONY: go/doc/check
2664 @go_include@ go/parser.lo.dep
2665 go/parser.lo.dep: $(go_go_parser_files)
2666         $(BUILDDEPS)
2667 go/parser.lo: $(go_go_parser_files)
2668         $(BUILDPACKAGE)
2669 go/parser/check: $(CHECK_DEPS)
2670         @$(CHECK)
2671 .PHONY: go/parser/check
2673 @go_include@ go/printer.lo.dep
2674 go/printer.lo.dep: $(go_go_printer_files)
2675         $(BUILDDEPS)
2676 go/printer.lo: $(go_go_printer_files)
2677         $(BUILDPACKAGE)
2678 go/printer/check: $(CHECK_DEPS)
2679         @$(CHECK)
2680 .PHONY: go/printer/check
2682 @go_include@ go/scanner.lo.dep
2683 go/scanner.lo.dep: $(go_go_scanner_files)
2684         $(BUILDDEPS)
2685 go/scanner.lo: $(go_go_scanner_files)
2686         $(BUILDPACKAGE)
2687 go/scanner/check: $(CHECK_DEPS)
2688         @$(CHECK)
2689 .PHONY: go/scanner/check
2691 @go_include@ go/token.lo.dep
2692 go/token.lo.dep: $(go_go_token_files)
2693         $(BUILDDEPS)
2694 go/token.lo: $(go_go_token_files)
2695         $(BUILDPACKAGE)
2696 go/token/check: $(CHECK_DEPS)
2697         @$(CHECK)
2698 .PHONY: go/token/check
2700 @go_include@ hash/adler32.lo.dep
2701 hash/adler32.lo.dep: $(go_hash_adler32_files)
2702         $(BUILDDEPS)
2703 hash/adler32.lo: $(go_hash_adler32_files)
2704         $(BUILDPACKAGE)
2705 hash/adler32/check: $(CHECK_DEPS)
2706         @$(CHECK)
2707 .PHONY: hash/adler32/check
2709 @go_include@ hash/crc32.lo.dep
2710 hash/crc32.lo.dep: $(go_hash_crc32_files)
2711         $(BUILDDEPS)
2712 hash/crc32.lo: $(go_hash_crc32_files)
2713         $(BUILDPACKAGE)
2714 hash/crc32/check: $(CHECK_DEPS)
2715         @$(CHECK)
2716 .PHONY: hash/crc32/check
2718 @go_include@ hash/crc64.lo.dep
2719 hash/crc64.lo.dep: $(go_hash_crc64_files)
2720         $(BUILDDEPS)
2721 hash/crc64.lo: $(go_hash_crc64_files)
2722         $(BUILDPACKAGE)
2723 hash/crc64/check: $(CHECK_DEPS)
2724         @$(CHECK)
2725 .PHONY: hash/crc64/check
2727 @go_include@ hash/fnv.lo.dep
2728 hash/fnv.lo.dep: $(go_hash_fnv_files)
2729         $(BUILDDEPS)
2730 hash/fnv.lo: $(go_hash_fnv_files)
2731         $(BUILDPACKAGE)
2732 hash/fnv/check: $(CHECK_DEPS)
2733         @$(CHECK)
2734 .PHONY: hash/fnv/check
2736 @go_include@ image/color.lo.dep
2737 image/color.lo.dep: $(go_image_color_files)
2738         $(BUILDDEPS)
2739 image/color.lo: $(go_image_color_files)
2740         $(BUILDPACKAGE)
2741 image/color/check: $(CHECK_DEPS)
2742         @$(CHECK)
2743 .PHONY: image/color/check
2745 @go_include@ image/draw.lo.dep
2746 image/draw.lo.dep: $(go_image_draw_files)
2747         $(BUILDDEPS)
2748 image/draw.lo: $(go_image_draw_files)
2749         $(BUILDPACKAGE)
2750 image/draw/check: $(CHECK_DEPS)
2751         @$(CHECK)
2752 .PHONY: image/draw/check
2754 @go_include@ image/gif.lo.dep
2755 image/gif.lo.dep: $(go_image_gif_files)
2756         $(BUILDDEPS)
2757 image/gif.lo: $(go_image_gif_files)
2758         $(BUILDPACKAGE)
2759 image/gif/check: $(CHECK_DEPS)
2760         @$(CHECK)
2761 .PHONY: image/gif/check
2763 @go_include@ image/jpeg.lo.dep
2764 image/jpeg.lo.dep: $(go_image_jpeg_files)
2765         $(BUILDDEPS)
2766 image/jpeg.lo: $(go_image_jpeg_files)
2767         $(BUILDPACKAGE)
2768 image/jpeg/check: $(CHECK_DEPS)
2769         @$(CHECK)
2770 .PHONY: image/jpeg/check
2772 @go_include@ image/png.lo.dep
2773 image/png.lo.dep: $(go_image_png_files)
2774         $(BUILDDEPS)
2775 image/png.lo: $(go_image_png_files)
2776         $(BUILDPACKAGE)
2777 image/png/check: $(CHECK_DEPS)
2778         @$(CHECK)
2779 .PHONY: image/png/check
2781 @go_include@ index/suffixarray.lo.dep
2782 index/suffixarray.lo.dep: $(go_index_suffixarray_files)
2783         $(BUILDDEPS)
2784 index/suffixarray.lo: $(go_index_suffixarray_files)
2785         $(BUILDPACKAGE)
2786 index/suffixarray/check: $(CHECK_DEPS)
2787         @$(CHECK)
2788 .PHONY: index/suffixarray/check
2790 @go_include@ io/ioutil.lo.dep
2791 io/ioutil.lo.dep: $(go_io_ioutil_files)
2792         $(BUILDDEPS)
2793 io/ioutil.lo: $(go_io_ioutil_files)
2794         $(BUILDPACKAGE)
2795 io/ioutil/check: $(CHECK_DEPS)
2796         @$(CHECK)
2797 .PHONY: io/ioutil/check
2799 @go_include@ log/syslog.lo.dep
2800 log/syslog.lo.dep: $(go_log_syslog_files)
2801         $(BUILDDEPS)
2802 log/syslog.lo: $(go_log_syslog_files)
2803         $(BUILDPACKAGE)
2804 log/syslog/syslog_c.lo: $(go_syslog_c_files) log/syslog.lo
2805         @$(MKDIR_P) log/syslog
2806         $(LTCOMPILE) -c -o $@ $(srcdir)/go/log/syslog/syslog_c.c
2807 log/syslog/check: $(CHECK_DEPS)
2808         @$(CHECK)
2809 .PHONY: log/syslog/check
2811 @go_include@ math/big.lo.dep
2812 math/big.lo.dep: $(go_math_big_files)
2813         $(BUILDDEPS)
2814 math/big.lo: $(go_math_big_files)
2815         $(BUILDPACKAGE)
2816 math/big/check: $(CHECK_DEPS)
2817         @$(CHECK)
2818 .PHONY: math/big/check
2820 @go_include@ math/cmplx.lo.dep
2821 math/cmplx.lo.dep: $(go_math_cmplx_files)
2822         $(BUILDDEPS)
2823 math/cmplx.lo: $(go_math_cmplx_files)
2824         $(BUILDPACKAGE)
2825 math/cmplx/check: $(CHECK_DEPS)
2826         @$(CHECK)
2827 .PHONY: math/cmplx/check
2829 @go_include@ math/rand.lo.dep
2830 math/rand.lo.dep: $(go_math_rand_files)
2831         $(BUILDDEPS)
2832 math/rand.lo: $(go_math_rand_files)
2833         $(BUILDPACKAGE)
2834 math/rand/check: $(CHECK_DEPS)
2835         @$(CHECK)
2836 .PHONY: math/rand/check
2838 @go_include@ mime/multipart.lo.dep
2839 mime/multipart.lo.dep: $(go_mime_multipart_files)
2840         $(BUILDDEPS)
2841 mime/multipart.lo: $(go_mime_multipart_files)
2842         $(BUILDPACKAGE)
2843 mime/multipart/check: $(CHECK_DEPS)
2844         @$(CHECK)
2845 .PHONY: mime/multipart/check
2847 @go_include@ net/http.lo.dep
2848 net/http.lo.dep: $(go_net_http_files)
2849         $(BUILDDEPS)
2850 net/http.lo: $(go_net_http_files)
2851         $(BUILDPACKAGE)
2852 net/http/check: $(CHECK_DEPS)
2853         @$(CHECK)
2854 .PHONY: net/http/check
2856 @go_include@ net/mail.lo.dep
2857 net/mail.lo.dep: $(go_net_mail_files)
2858         $(BUILDDEPS)
2859 net/mail.lo: $(go_net_mail_files)
2860         $(BUILDPACKAGE)
2861 net/mail/check: $(CHECK_DEPS)
2862         @$(CHECK)
2863 .PHONY: net/mail/check
2865 @go_include@ net/rpc.lo.dep
2866 net/rpc.lo.dep: $(go_net_rpc_files)
2867         $(BUILDDEPS)
2868 net/rpc.lo: $(go_net_rpc_files)
2869         $(BUILDPACKAGE)
2870 net/rpc/check: $(CHECK_DEPS)
2871         @$(CHECK)
2872 .PHONY: net/rpc/check
2874 @go_include@ net/smtp.lo.dep
2875 net/smtp.lo.dep: $(go_net_smtp_files)
2876         $(BUILDDEPS)
2877 net/smtp.lo: $(go_net_smtp_files)
2878         $(BUILDPACKAGE)
2879 net/smtp/check: $(CHECK_DEPS)
2880         @$(CHECK)
2881 .PHONY: net/smtp/check
2883 @go_include@ net/url.lo.dep
2884 net/url.lo.dep: $(go_net_url_files)
2885         $(BUILDDEPS)
2886 net/url.lo: $(go_net_url_files)
2887         $(BUILDPACKAGE)
2888 net/url/check: $(CHECK_DEPS)
2889         @$(CHECK)
2890 .PHONY: net/url/check
2892 @go_include@ net/textproto.lo.dep
2893 net/textproto.lo.dep: $(go_net_textproto_files)
2894         $(BUILDDEPS)
2895 net/textproto.lo: $(go_net_textproto_files)
2896         $(BUILDPACKAGE)
2897 net/textproto/check: $(CHECK_DEPS)
2898         @$(CHECK)
2899 .PHONY: net/textproto/check
2901 @go_include@ net/http/cgi.lo.dep
2902 net/http/cgi.lo.dep: $(go_net_http_cgi_files)
2903         $(BUILDDEPS)
2904 net/http/cgi.lo: $(go_net_http_cgi_files)
2905         $(BUILDPACKAGE)
2906 net/http/cgi/check: $(CHECK_DEPS)
2907         @$(CHECK)
2908 .PHONY: net/http/cgi/check
2910 @go_include@ net/http/fcgi.lo.dep
2911 net/http/fcgi.lo.dep: $(go_net_http_fcgi_files)
2912         $(BUILDDEPS)
2913 net/http/fcgi.lo: $(go_net_http_fcgi_files)
2914         $(BUILDPACKAGE)
2915 net/http/fcgi/check: $(CHECK_DEPS)
2916         @$(CHECK)
2917 .PHONY: net/http/fcgi/check
2919 @go_include@ net/http/httptest.lo.dep
2920 net/http/httptest.lo.dep: $(go_net_http_httptest_files)
2921         $(BUILDDEPS)
2922 net/http/httptest.lo: $(go_net_http_httptest_files)
2923         $(BUILDPACKAGE)
2924 net/http/httptest/check: $(check_deps)
2925         @$(CHECK)
2926 .PHONY: net/http/httptest/check
2928 @go_include@ net/http/httputil.lo.dep
2929 net/http/httputil.lo.dep: $(go_net_http_httputil_files)
2930         $(BUILDDEPS)
2931 net/http/httputil.lo: $(go_net_http_httputil_files)
2932         $(BUILDPACKAGE)
2933 net/http/httputil/check: $(check_deps)
2934         @$(CHECK)
2935 .PHONY: net/http/httputil/check
2937 @go_include@ net/http/pprof.lo.dep
2938 net/http/pprof.lo.dep: $(go_net_http_pprof_files)
2939         $(BUILDDEPS)
2940 net/http/pprof.lo: $(go_net_http_pprof_files)
2941         $(BUILDPACKAGE)
2942 net/http/pprof/check: $(CHECK_DEPS)
2943         @$(CHECK)
2944 .PHONY: net/http/pprof/check
2946 @go_include@ net/rpc/jsonrpc.lo.dep
2947 net/rpc/jsonrpc.lo.dep: $(go_net_rpc_jsonrpc_files)
2948         $(BUILDDEPS)
2949 net/rpc/jsonrpc.lo: $(go_net_rpc_jsonrpc_files)
2950         $(BUILDPACKAGE)
2951 net/rpc/jsonrpc/check: $(CHECK_DEPS)
2952         @$(CHECK)
2953 .PHONY: net/rpc/jsonrpc/check
2955 @go_include@ old/netchan.lo.dep
2956 old/netchan.lo.dep: $(go_old_netchan_files)
2957         $(BUILDDEPS)
2958 old/netchan.lo: $(go_old_netchan_files)
2959         $(BUILDPACKAGE)
2960 old/netchan/check: $(CHECK_DEPS)
2961         @$(CHECK)
2962 .PHONY: old/netchan/check
2964 @go_include@ old/regexp.lo.dep
2965 old/regexp.lo.dep: $(go_old_regexp_files)
2966         $(BUILDDEPS)
2967 old/regexp.lo: $(go_old_regexp_files)
2968         $(BUILDPACKAGE)
2969 old/regexp/check: $(CHECK_DEPS)
2970         @$(CHECK)
2971 .PHONY: old/regexp/check
2973 @go_include@ old/template.lo.dep
2974 old/template.lo.dep: $(go_old_template_files)
2975         $(BUILDDEPS)
2976 old/template.lo: $(go_old_template_files)
2977         $(BUILDPACKAGE)
2978 old/template/check: $(CHECK_DEPS)
2979         @$(CHECK)
2980 .PHONY: old/template/check
2982 @go_include@ os/exec.lo.dep
2983 os/exec.lo.dep: $(go_os_exec_files)
2984         $(BUILDDEPS)
2985 os/exec.lo: $(go_os_exec_files)
2986         $(BUILDPACKAGE)
2987 os/exec/check: $(CHECK_DEPS)
2988         @$(CHECK)
2989 .PHONY: os/exec/check
2991 @go_include@ os/signal.lo.dep
2992 os/signal.lo.dep: $(go_os_signal_files)
2993         $(BUILDDEPS)
2994 os/signal.lo: $(go_os_signal_files)
2995         $(BUILDPACKAGE)
2996 os/signal/check: $(CHECK_DEPS)
2997         @$(CHECK)
2998 .PHONY: os/signal/check
3000 @go_include@ os/user.lo.dep
3001 os/user.lo.dep: $(go_os_user_files)
3002         $(BUILDDEPS)
3003 os/user.lo: $(go_os_user_files)
3004         $(BUILDPACKAGE)
3005 os/user/check: $(CHECK_DEPS)
3006         @$(CHECK)
3007 .PHONY: os/user/check
3009 @go_include@ path/filepath.lo.dep
3010 path/filepath.lo.dep: $(go_path_filepath_files)
3011         $(BUILDDEPS)
3012 path/filepath.lo: $(go_path_filepath_files)
3013         $(BUILDPACKAGE)
3014 path/filepath/check: $(CHECK_DEPS)
3015         @$(CHECK)
3016 .PHONY: path/filepath/check
3018 @go_include@ regexp/syntax.lo.dep
3019 regexp/syntax.lo.dep: $(go_regexp_syntax_files)
3020         $(BUILDDEPS)
3021 regexp/syntax.lo: $(go_regexp_syntax_files)
3022         $(BUILDPACKAGE)
3023 regexp/syntax/check: $(CHECK_DEPS)
3024         @$(CHECK)
3025 .PHONY: regexp/syntax/check
3027 @go_include@ runtime/debug.lo.dep
3028 runtime/debug.lo.dep: $(go_runtime_debug_files)
3029         $(BUILDDEPS)
3030 runtime/debug.lo: $(go_runtime_debug_files)
3031         $(BUILDPACKAGE)
3032 runtime/debug/check: $(CHECK_DEPS)
3033         @$(CHECK)
3034 .PHONY: runtime/debug/check
3036 @go_include@ runtime/pprof.lo.dep
3037 runtime/pprof.lo.dep: $(go_runtime_pprof_files)
3038         $(BUILDDEPS)
3039 runtime/pprof.lo: $(go_runtime_pprof_files)
3040         $(BUILDPACKAGE)
3041 runtime/pprof/check: $(CHECK_DEPS)
3042         @$(CHECK)
3043 .PHONY: runtime/pprof/check
3044 # At least for now, we need -static-libgo for this test, because
3045 # otherwise we can't get the line numbers.
3046 runtime_pprof_check_GOCFLAGS = -static-libgo
3048 @go_include@ sync/atomic.lo.dep
3049 sync/atomic.lo.dep: $(go_sync_atomic_files)
3050         $(BUILDDEPS)
3051 sync/atomic.lo: $(go_sync_atomic_files)
3052         $(BUILDPACKAGE)
3053 sync/atomic_c.lo: $(go_sync_atomic_c_files) sync/atomic.lo
3054         $(LTCOMPILE) -c -o $@ $(srcdir)/go/sync/atomic/atomic.c
3055 sync/atomic/check: $(CHECK_DEPS)
3056         @$(CHECK)
3057 .PHONY: sync/atomic/check
3059 @go_include@ text/scanner.lo.dep
3060 text/scanner.lo.dep: $(go_text_scanner_files)
3061         $(BUILDDEPS)
3062 text/scanner.lo: $(go_text_scanner_files)
3063         $(BUILDPACKAGE)
3064 text/scanner/check: $(CHECK_DEPS)
3065         @$(CHECK)
3066 .PHONY: text/scanner/check
3068 @go_include@ text/tabwriter.lo.dep
3069 text/tabwriter.lo.dep: $(go_text_tabwriter_files)
3070         $(BUILDDEPS)
3071 text/tabwriter.lo: $(go_text_tabwriter_files)
3072         $(BUILDPACKAGE)
3073 text/tabwriter/check: $(CHECK_DEPS)
3074         @$(CHECK)
3075 .PHONY: text/tabwriter/check
3077 @go_include@ text/template.lo.dep
3078 text/template.lo.dep: $(go_text_template_files)
3079         $(BUILDDEPS)
3080 text/template.lo: $(go_text_template_files)
3081         $(BUILDPACKAGE)
3082 text/template/check: $(CHECK_DEPS)
3083         @$(CHECK)
3084 .PHONY: text/template/check
3086 @go_include@ text/template/parse.lo.dep
3087 text/template/parse.lo.dep: $(go_text_template_parse_files)
3088         $(BUILDDEPS)
3089 text/template/parse.lo: $(go_text_template_parse_files)
3090         $(BUILDPACKAGE)
3091 text/template/parse/check: $(CHECK_DEPS)
3092         @$(CHECK)
3093 .PHONY: text/template/parse/check
3095 @go_include@ testing/iotest.lo.dep
3096 testing/iotest.lo.dep: $(go_testing_iotest_files)
3097         $(BUILDDEPS)
3098 testing/iotest.lo: $(go_testing_iotest_files)
3099         $(BUILDPACKAGE)
3100 testing/iotest/check: $(CHECK_DEPS)
3101         @$(CHECK)
3102 .PHONY: testing/iotest/check
3104 @go_include@ testing/quick.lo.dep
3105 testing/quick.lo.dep: $(go_testing_quick_files)
3106         $(BUILDDEPS)
3107 testing/quick.lo: $(go_testing_quick_files)
3108         $(BUILDPACKAGE)
3109 testing/quick/check: $(CHECK_DEPS)
3110         @$(CHECK)
3111 .PHONY: testing/quick/check
3113 @go_include@ unicode/utf16.lo.dep
3114 unicode/utf16.lo.dep: $(go_unicode_utf16_files)
3115         $(BUILDDEPS)
3116 unicode/utf16.lo: $(go_unicode_utf16_files)
3117         $(BUILDPACKAGE)
3118 unicode/utf16/check: $(CHECK_DEPS)
3119         @$(CHECK)
3120 .PHONY: unicode/utf16/check
3122 @go_include@ unicode/utf8.lo.dep
3123 unicode/utf8.lo.dep: $(go_unicode_utf8_files)
3124         $(BUILDDEPS)
3125 unicode/utf8.lo: $(go_unicode_utf8_files)
3126         $(BUILDPACKAGE)
3127 unicode/utf8/check: $(CHECK_DEPS)
3128         @$(CHECK)
3129 .PHONY: unicode/utf8/check
3131 @go_include@ syscall.lo.dep
3132 syscall.lo.dep: $(go_syscall_files)
3133         $(BUILDDEPS)
3134 syscall.lo: $(go_syscall_files)
3135         $(BUILDPACKAGE)
3136 syscall/errno.lo: go/syscall/errno.c
3137         @$(MKDIR_P) syscall
3138         $(LTCOMPILE) -c -o $@ $<
3139 syscall/signame.lo: go/syscall/signame.c
3140         @$(MKDIR_P) syscall
3141         $(LTCOMPILE) -c -o $@ $<
3142 syscall/wait.lo: go/syscall/wait.c
3143         @$(MKDIR_P) syscall
3144         $(LTCOMPILE) -c -o $@ $<
3146 # How to build a .gox file from a .lo file.
3147 BUILDGOX = \
3148         f=`echo $< | sed -e 's/.lo$$/.o/'`; \
3149         $(OBJCOPY) -j .go_export $$f $@.tmp && mv -f $@.tmp $@
3151 bufio.gox: bufio.lo
3152         $(BUILDGOX)
3153 bytes.gox: bytes.lo
3154         $(BUILDGOX)
3155 crypto.gox: crypto.lo
3156         $(BUILDGOX)
3157 errors.gox: errors.lo
3158         $(BUILDGOX)
3159 expvar.gox: expvar.lo
3160         $(BUILDGOX)
3161 flag.gox: flag.lo
3162         $(BUILDGOX)
3163 fmt.gox: fmt.lo
3164         $(BUILDGOX)
3165 hash.gox: hash.lo
3166         $(BUILDGOX)
3167 html.gox: html.lo
3168         $(BUILDGOX)
3169 image.gox: image.lo
3170         $(BUILDGOX)
3171 io.gox: io.lo
3172         $(BUILDGOX)
3173 log.gox: log.lo
3174         $(BUILDGOX)
3175 math.gox: math.lo
3176         $(BUILDGOX)
3177 mime.gox: mime.lo
3178         $(BUILDGOX)
3179 net.gox: net.lo
3180         $(BUILDGOX)
3181 os.gox: os.lo
3182         $(BUILDGOX)
3183 path.gox: path.lo
3184         $(BUILDGOX)
3185 reflect.gox: reflect-go.lo
3186         $(BUILDGOX)
3187 regexp.gox: regexp.lo
3188         $(BUILDGOX)
3189 runtime.gox: runtime-go.lo
3190         $(BUILDGOX)
3191 sort.gox: sort.lo
3192         $(BUILDGOX)
3193 strconv.gox: strconv.lo
3194         $(BUILDGOX)
3195 strings.gox: strings.lo
3196         $(BUILDGOX)
3197 sync.gox: sync.lo
3198         $(BUILDGOX)
3199 syscall.gox: syscall.lo
3200         $(BUILDGOX)
3201 testing.gox: testing.lo
3202         $(BUILDGOX)
3203 time.gox: time-go.lo
3204         $(BUILDGOX)
3205 unicode.gox: unicode.lo
3206         $(BUILDGOX)
3208 archive/tar.gox: archive/tar.lo
3209         $(BUILDGOX)
3210 archive/zip.gox: archive/zip.lo
3211         $(BUILDGOX)
3213 compress/bzip2.gox: compress/bzip2.lo
3214         $(BUILDGOX)
3215 compress/flate.gox: compress/flate.lo
3216         $(BUILDGOX)
3217 compress/gzip.gox: compress/gzip.lo
3218         $(BUILDGOX)
3219 compress/lzw.gox: compress/lzw.lo
3220         $(BUILDGOX)
3221 compress/zlib.gox: compress/zlib.lo
3222         $(BUILDGOX)
3224 container/heap.gox: container/heap.lo
3225         $(BUILDGOX)
3226 container/list.gox: container/list.lo
3227         $(BUILDGOX)
3228 container/ring.gox: container/ring.lo
3229         $(BUILDGOX)
3231 crypto/aes.gox: crypto/aes.lo
3232         $(BUILDGOX)
3233 crypto/cipher.gox: crypto/cipher.lo
3234         $(BUILDGOX)
3235 crypto/des.gox: crypto/des.lo
3236         $(BUILDGOX)
3237 crypto/dsa.gox: crypto/dsa.lo
3238         $(BUILDGOX)
3239 crypto/ecdsa.gox: crypto/ecdsa.lo       
3240         $(BUILDGOX)
3241 crypto/elliptic.gox: crypto/elliptic.lo
3242         $(BUILDGOX)
3243 crypto/hmac.gox: crypto/hmac.lo
3244         $(BUILDGOX)
3245 crypto/md5.gox: crypto/md5.lo
3246         $(BUILDGOX)
3247 crypto/rand.gox: crypto/rand.lo
3248         $(BUILDGOX)
3249 crypto/rc4.gox: crypto/rc4.lo
3250         $(BUILDGOX)
3251 crypto/rsa.gox: crypto/rsa.lo
3252         $(BUILDGOX)
3253 crypto/sha1.gox: crypto/sha1.lo
3254         $(BUILDGOX)
3255 crypto/sha256.gox: crypto/sha256.lo
3256         $(BUILDGOX)
3257 crypto/sha512.gox: crypto/sha512.lo
3258         $(BUILDGOX)
3259 crypto/subtle.gox: crypto/subtle.lo
3260         $(BUILDGOX)
3261 crypto/tls.gox: crypto/tls.lo
3262         $(BUILDGOX)
3263 crypto/x509.gox: crypto/x509.lo
3264         $(BUILDGOX)
3266 crypto/x509/pkix.gox: crypto/x509/pkix.lo
3267         $(BUILDGOX)
3269 database/sql.gox: database/sql.lo
3270         $(BUILDGOX)
3272 database/sql/driver.gox: database/sql/driver.lo
3273         $(BUILDGOX)
3275 debug/dwarf.gox: debug/dwarf.lo
3276         $(BUILDGOX)
3277 debug/elf.gox: debug/elf.lo
3278         $(BUILDGOX)
3279 debug/gosym.gox: debug/gosym.lo
3280         $(BUILDGOX)
3281 debug/macho.gox: debug/macho.lo
3282         $(BUILDGOX)
3283 debug/pe.gox: debug/pe.lo
3284         $(BUILDGOX)
3286 encoding/ascii85.gox: encoding/ascii85.lo
3287         $(BUILDGOX)
3288 encoding/asn1.gox: encoding/asn1.lo
3289         $(BUILDGOX)
3290 encoding/base32.gox: encoding/base32.lo
3291         $(BUILDGOX)
3292 encoding/base64.gox: encoding/base64.lo
3293         $(BUILDGOX)
3294 encoding/binary.gox: encoding/binary.lo
3295         $(BUILDGOX)
3296 encoding/csv.gox: encoding/csv.lo
3297         $(BUILDGOX)
3298 encoding/gob.gox: encoding/gob.lo
3299         $(BUILDGOX)
3300 encoding/hex.gox: encoding/hex.lo
3301         $(BUILDGOX)
3302 encoding/json.gox: encoding/json.lo
3303         $(BUILDGOX)
3304 encoding/pem.gox: encoding/pem.lo
3305         $(BUILDGOX)
3306 encoding/xml.gox: encoding/xml.lo
3307         $(BUILDGOX)
3309 exp/ebnf.gox: exp/ebnf.lo
3310         $(BUILDGOX)
3311 exp/html.gox: exp/html.lo
3312         $(BUILDGOX)
3313 exp/inotify.gox: exp/inotify.lo
3314         $(BUILDGOX)
3315 exp/norm.gox: exp/norm.lo
3316         $(BUILDGOX)
3317 exp/proxy.gox: exp/proxy.lo
3318         $(BUILDGOX)
3319 exp/terminal.gox: exp/terminal.lo
3320         $(BUILDGOX)
3321 exp/types.gox: exp/types.lo
3322         $(BUILDGOX)
3323 exp/utf8string.gox: exp/utf8string.lo   
3324         $(BUILDGOX)
3326 html/template.gox: html/template.lo
3327         $(BUILDGOX)
3329 go/ast.gox: go/ast.lo
3330         $(BUILDGOX)
3331 go/build.gox: go/build.lo
3332         $(BUILDGOX)
3333 go/doc.gox: go/doc.lo
3334         $(BUILDGOX)
3335 go/parser.gox: go/parser.lo
3336         $(BUILDGOX)
3337 go/printer.gox: go/printer.lo
3338         $(BUILDGOX)
3339 go/scanner.gox: go/scanner.lo
3340         $(BUILDGOX)
3341 go/token.gox: go/token.lo
3342         $(BUILDGOX)
3344 hash/adler32.gox: hash/adler32.lo
3345         $(BUILDGOX)
3346 hash/crc32.gox: hash/crc32.lo
3347         $(BUILDGOX)
3348 hash/crc64.gox: hash/crc64.lo
3349         $(BUILDGOX)
3350 hash/fnv.gox: hash/fnv.lo
3351         $(BUILDGOX)
3353 image/color.gox: image/color.lo
3354         $(BUILDGOX)
3355 image/draw.gox: image/draw.lo
3356         $(BUILDGOX)
3357 image/gif.gox: image/gif.lo
3358         $(BUILDGOX)
3359 image/jpeg.gox: image/jpeg.lo
3360         $(BUILDGOX)
3361 image/png.gox: image/png.lo
3362         $(BUILDGOX)
3364 index/suffixarray.gox: index/suffixarray.lo
3365         $(BUILDGOX)
3367 io/ioutil.gox: io/ioutil.lo
3368         $(BUILDGOX)
3370 log/syslog.gox: log/syslog.lo
3371         $(BUILDGOX)
3373 math/big.gox: math/big.lo
3374         $(BUILDGOX)
3375 math/cmplx.gox: math/cmplx.lo
3376         $(BUILDGOX)
3377 math/rand.gox: math/rand.lo
3378         $(BUILDGOX)
3380 mime/multipart.gox: mime/multipart.lo
3381         $(BUILDGOX)
3383 net/http.gox: net/http.lo
3384         $(BUILDGOX)
3385 net/mail.gox: net/mail.lo
3386         $(BUILDGOX)
3387 net/rpc.gox: net/rpc.lo
3388         $(BUILDGOX)
3389 net/smtp.gox: net/smtp.lo
3390         $(BUILDGOX)
3391 net/textproto.gox: net/textproto.lo
3392         $(BUILDGOX)
3393 net/url.gox: net/url.lo
3394         $(BUILDGOX)
3396 net/http/cgi.gox: net/http/cgi.lo
3397         $(BUILDGOX)
3398 net/http/fcgi.gox: net/http/fcgi.lo
3399         $(BUILDGOX)
3400 net/http/httptest.gox: net/http/httptest.lo
3401         $(BUILDGOX)
3402 net/http/httputil.gox: net/http/httputil.lo
3403         $(BUILDGOX)
3404 net/http/pprof.gox: net/http/pprof.lo
3405         $(BUILDGOX)
3407 net/rpc/jsonrpc.gox: net/rpc/jsonrpc.lo
3408         $(BUILDGOX)
3410 old/netchan.gox: old/netchan.lo
3411         $(BUILDGOX)
3412 old/regexp.gox: old/regexp.lo
3413         $(BUILDGOX)
3414 old/template.gox: old/template.lo
3415         $(BUILDGOX)
3417 os/exec.gox: os/exec.lo
3418         $(BUILDGOX)
3419 os/signal.gox: os/signal.lo
3420         $(BUILDGOX)
3421 os/user.gox: os/user.lo
3422         $(BUILDGOX)
3424 path/filepath.gox: path/filepath.lo
3425         $(BUILDGOX)
3427 regexp/syntax.gox: regexp/syntax.lo
3428         $(BUILDGOX)
3430 runtime/debug.gox: runtime/debug.lo
3431         $(BUILDGOX)
3432 runtime/pprof.gox: runtime/pprof.lo
3433         $(BUILDGOX)
3435 sync/atomic.gox: sync/atomic.lo
3436         $(BUILDGOX)
3438 text/scanner.gox: text/scanner.lo
3439         $(BUILDGOX)
3440 text/tabwriter.gox: text/tabwriter.lo
3441         $(BUILDGOX)
3442 text/template.gox: text/template.lo
3443         $(BUILDGOX)
3444 text/template/parse.gox: text/template/parse.lo
3445         $(BUILDGOX)
3447 testing/iotest.gox: testing/iotest.lo
3448         $(BUILDGOX)
3449 testing/quick.gox: testing/quick.lo
3450         $(BUILDGOX)
3452 unicode/utf16.gox: unicode/utf16.lo
3453         $(BUILDGOX)
3454 unicode/utf8.gox: unicode/utf8.lo
3455         $(BUILDGOX)
3457 if LIBGO_IS_LINUX
3458 # exp_inotify_check = exp/inotify/check
3459 exp_inotify_check =
3460 else
3461 exp_inotify_check =
3462 endif
3464 TEST_PACKAGES = \
3465         bufio/check \
3466         bytes/check \
3467         errors/check \
3468         expvar/check \
3469         flag/check \
3470         fmt/check \
3471         html/check \
3472         image/check \
3473         io/check \
3474         log/check \
3475         math/check \
3476         mime/check \
3477         net/check \
3478         os/check \
3479         path/check \
3480         reflect/check \
3481         regexp/check \
3482         runtime/check \
3483         sort/check \
3484         strconv/check \
3485         strings/check \
3486         sync/check \
3487         time/check \
3488         unicode/check \
3489         archive/tar/check \
3490         archive/zip/check \
3491         compress/bzip2/check \
3492         compress/flate/check \
3493         compress/gzip/check \
3494         compress/lzw/check \
3495         compress/zlib/check \
3496         container/heap/check \
3497         container/list/check \
3498         container/ring/check \
3499         crypto/aes/check \
3500         crypto/cipher/check \
3501         crypto/des/check \
3502         crypto/dsa/check \
3503         crypto/ecdsa/check \
3504         crypto/elliptic/check \
3505         crypto/hmac/check \
3506         crypto/md5/check \
3507         crypto/rand/check \
3508         crypto/rc4/check \
3509         crypto/rsa/check \
3510         crypto/sha1/check \
3511         crypto/sha256/check \
3512         crypto/sha512/check \
3513         crypto/subtle/check \
3514         crypto/tls/check \
3515         crypto/x509/check \
3516         database/sql/check \
3517         database/sql/driver/check \
3518         debug/dwarf/check \
3519         debug/elf/check \
3520         debug/macho/check \
3521         debug/pe/check \
3522         encoding/ascii85/check \
3523         encoding/asn1/check \
3524         encoding/base32/check \
3525         encoding/base64/check \
3526         encoding/binary/check \
3527         encoding/csv/check \
3528         encoding/gob/check \
3529         encoding/hex/check \
3530         encoding/json/check \
3531         encoding/pem/check \
3532         encoding/xml/check \
3533         exp/ebnf/check \
3534         exp/html/check \
3535         $(exp_inotify_check) \
3536         exp/norm/check \
3537         exp/proxy/check \
3538         exp/terminal/check \
3539         exp/utf8string/check \
3540         html/template/check \
3541         go/ast/check \
3542         $(go_build_check_omitted_since_it_calls_6g) \
3543         go/doc/check \
3544         go/parser/check \
3545         go/printer/check \
3546         go/scanner/check \
3547         go/token/check \
3548         $(go_types_check_omitted_since_it_calls_6g) \
3549         hash/adler32/check \
3550         hash/crc32/check \
3551         hash/crc64/check \
3552         hash/fnv/check \
3553         image/color/check \
3554         image/draw/check \
3555         image/jpeg/check \
3556         image/png/check \
3557         index/suffixarray/check \
3558         io/ioutil/check \
3559         log/syslog/check \
3560         math/big/check \
3561         math/cmplx/check \
3562         math/rand/check \
3563         mime/multipart/check \
3564         net/http/check \
3565         net/http/cgi/check \
3566         net/http/fcgi/check \
3567         net/http/httptest/check \
3568         net/http/httputil/check \
3569         net/mail/check \
3570         net/rpc/check \
3571         net/smtp/check \
3572         net/textproto/check \
3573         net/url/check \
3574         net/rpc/jsonrpc/check \
3575         old/netchan/check \
3576         old/regexp/check \
3577         old/template/check \
3578         os/exec/check \
3579         os/signal/check \
3580         os/user/check \
3581         path/filepath/check \
3582         regexp/syntax/check \
3583         runtime/pprof/check \
3584         sync/atomic/check \
3585         text/scanner/check \
3586         text/tabwriter/check \
3587         text/template/check \
3588         text/template/parse/check \
3589         testing/quick/check \
3590         unicode/utf16/check \
3591         unicode/utf8/check
3593 check: check-tail
3594 check-recursive: check-head
3596 check-head:
3597         @echo "Test Run By $${USER} on `date`" > libgo.head
3598         @echo "Native configuration is $(host_triplet)" >> libgo.head
3599         @echo >> libgo.head
3600         @echo "         === libgo tests ===" >> libgo.head
3601         @echo >> libgo.head
3603 check-tail: check-recursive check-multi
3604         @lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
3605         for dir in . $(MULTIDIRS); do \
3606           mv ../$${dir}/$${lib}/libgo.sum ../$${dir}/$${lib}/libgo.sum.sep; \
3607           mv ../$${dir}/$${lib}/libgo.log ../$${dir}/$${lib}/libgo.log.sep; \
3608         done; \
3609         mv libgo.head libgo.sum; \
3610         cp libgo.sum libgo.log; \
3611         echo "Schedule of variations:" >> libgo.sum; \
3612         for dir in . $(MULTIDIRS); do \
3613           multidir=../$${dir}/$${lib}; \
3614           multivar=`cat $${multidir}/libgo.var`; \
3615           echo "    $${multivar}" >> libgo.sum; \
3616         done; \
3617         echo >> libgo.sum; \
3618         pass=0; fail=0; untested=0; \
3619         for dir in . $(MULTIDIRS); do \
3620           multidir=../$${dir}/$${lib}; \
3621           multivar=`cat $${multidir}/libgo.var`; \
3622           echo "Running target $${multivar}" >> libgo.sum; \
3623           echo "Running $(srcdir)/libgo.exp ..." >> libgo.sum; \
3624           cat $${multidir}/libgo.sum.sep >> libgo.sum; \
3625           cat $${multidir}/libgo.log.sep >> libgo.log; \
3626           if test -n "${MULTIDIRS}"; then \
3627             echo "              === libgo Summary for $${multivar} ===" >> libgo.sum; \
3628             echo >> libgo.sum; \
3629           fi; \
3630           p=`grep -c PASS $${multidir}/libgo.sum.sep`; \
3631           pass=`expr $$pass + $$p`; \
3632           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3633             echo "# of expected passes          $$p" >> libgo.sum; \
3634           fi; \
3635           p=`grep -c FAIL $${multidir}/libgo.sum.sep`; \
3636           fail=`expr $$fail + $$p`; \
3637           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3638             echo "# of unexpected failures      $$p" >> libgo.sum; \
3639           fi; \
3640           p=`grep -c UNTESTED $${multidir}/libgo.sum.sep`; \
3641           untested=`expr $$untested + $$p`; \
3642           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3643             echo "# of untested testcases               $$p" >> libgo.sum; \
3644           fi; \
3645         done; \
3646         echo >> libgo.sum; \
3647         echo "          === libgo Summary ===" >> libgo.sum; \
3648         echo >> libgo.sum; \
3649         if test "$$pass" -ne "0"; then \
3650           echo "# of expected passes            $$pass" >> libgo.sum; \
3651         fi; \
3652         if test "$$fail" -ne "0"; then \
3653           echo "# of unexpected failures        $$fail" >> libgo.sum; \
3654         fi; \
3655         if test "$$untested" -ne "0"; then \
3656           echo "# of untested testcases         $$untested" >> libgo.sum; \
3657         fi; \
3658         echo `echo $(GOC) | sed -e 's/ .*//'`  `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
3659         echo >> libgo.log; \
3660         echo "runtest completed at `date`" >> libgo.log; \
3661         if test "$$fail" -ne "0"; then \
3662           status=1; \
3663         else \
3664           status=0; \
3665         fi; \
3666         exit $$status
3668 check-am:
3669         @rm -f libgo.sum libgo.log libgo.tail
3670         @multivar="unix"; \
3671         [ -z "$(MULTIFLAGS)" ] || multivar="$${multivar}/$(MULTIFLAGS)"; \
3672         echo "$${multivar}" > libgo.var
3673         @for f in $(TEST_PACKAGES); do \
3674            rm -f $$f-testsum $$f-testlog; \
3675          done
3676         -@$(MAKE) -k $(TEST_PACKAGES)
3677         @for f in $(TEST_PACKAGES); do \
3678           if test -f $$f-testsum; then \
3679             cat $$f-testsum >> libgo.sum; \
3680           fi; \
3681           if test -f $$f-testlog; then \
3682             cat $$f-testlog >> libgo.log; \
3683           fi; \
3684         done
3686 check-multi:
3687         $(MULTIDO) $(AM_MAKEFLAGS) DO=check-am multi-do # $(MAKE)
3689 MOSTLYCLEAN_FILES = libgo.head libgo.sum.sep libgo.log.sep
3691 mostlyclean-local:
3692         find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
3693         find . -name '*.$(OBJEXT)' -print | xargs rm -f
3694         find . -name '*-testsum' -print | xargs rm -f
3695         find . -name '*-testlog' -print | xargs rm -f
3697 CLEANFILES = *.go *.gox goc2c *.c s-version libgo.sum libgo.log
3699 clean-local:
3700         find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
3701         find . -name '*.a' -print | xargs rm -f