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