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