sh.h (PREFERRED_RELOAD_CLASS): Remove.
[official-gcc.git] / libgo / Makefile.am
blobcddcd2439e7f7643a1afb474f13abed5dbc3876b
1 # Makefile.am -- Go library Makefile.
3 # Copyright 2009, 2010 The Go Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style
5 # license that can be found in the LICENSE file.
7 # Process this file with autoreconf to produce Makefile.in.
9 # Go support.
10 SUFFIXES = .c .go .gox .o .obj .lo .a
12 if LIBGO_IS_RTEMS
13 subdirs = testsuite
14 endif
16 SUBDIRS = ${subdirs}
18 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
20 MAINT_CHARSET = latin1
22 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
23 PWD_COMMAND = $${PWDCMD-pwd}
24 STAMP = echo timestamp >
26 toolexecdir = $(glibgo_toolexecdir)
27 toolexeclibdir = $(glibgo_toolexeclibdir)
29 LIBFFI = @LIBFFI@
30 LIBFFIINCS = @LIBFFIINCS@
32 WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
34 # -I/-D flags to pass when compiling.
35 AM_CPPFLAGS = -I $(srcdir)/runtime $(LIBFFIINCS) $(PTHREAD_CFLAGS)
37 ACLOCAL_AMFLAGS = -I ./config -I ../config
39 AM_CFLAGS = -fexceptions -fplan9-extensions $(SPLIT_STACK) $(WARN_CFLAGS) \
40         $(STRINGOPS_FLAG) \
41         -I $(srcdir)/../gcc -I $(MULTIBUILDTOP)../../gcc/include
43 if USING_SPLIT_STACK
44 AM_LDFLAGS = -XCClinker $(SPLIT_STACK)
45 endif
47 # Multilib support.
48 MAKEOVERRIDES=
50 # Work around what appears to be a GNU make  handling MAKEFLAGS
51 # values defined in terms of make variables, as is the case for CC and
52 # friends when we are called from the top level Makefile.
53 AM_MAKEFLAGS = \
54         "AR_FLAGS=$(AR_FLAGS)" \
55         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
56         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
57         "CFLAGS=$(CFLAGS)" \
58         "CXXFLAGS=$(CXXFLAGS)" \
59         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
60         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
61         "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
62         "GOC=$(GOC)" \
63         "GOCFLAGS=$(GOCFLAGS)" \
64         "INSTALL=$(INSTALL)" \
65         "INSTALL_DATA=$(INSTALL_DATA)" \
66         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
67         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
68         "LDFLAGS=$(LDFLAGS)" \
69         "LIBCFLAGS=$(LIBCFLAGS)" \
70         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
71         "MAKE=$(MAKE)" \
72         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
73         "PICFLAG=$(PICFLAG)" \
74         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
75         "SHELL=$(SHELL)" \
76         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
77         "exec_prefix=$(exec_prefix)" \
78         "infodir=$(infodir)" \
79         "libdir=$(libdir)" \
80         "includedir=$(includedir)" \
81         "prefix=$(prefix)" \
82         "tooldir=$(tooldir)" \
83         "gxx_include_dir=$(gxx_include_dir)" \
84         "AR=$(AR)" \
85         "AS=$(AS)" \
86         "LD=$(LD)" \
87         "RANLIB=$(RANLIB)" \
88         "NM=$(NM)" \
89         "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
90         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
91         "DESTDIR=$(DESTDIR)" \
92         "WERROR=$(WERROR)"
94 # Subdir rules rely on $(FLAGS_TO_PASS)
95 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
97 toolexeclib_LTLIBRARIES = libgo.la
98 toolexeclib_LIBRARIES = libgobegin.a
100 toolexeclibgodir = $(toolexeclibdir)/go/$(gcc_version)/$(target_alias)
102 toolexeclibgo_DATA = \
103         asn1.gox \
104         big.gox \
105         bufio.gox \
106         bytes.gox \
107         cmath.gox \
108         ebnf.gox \
109         exec.gox \
110         expvar.gox \
111         flag.gox \
112         fmt.gox \
113         gob.gox \
114         hash.gox \
115         html.gox \
116         http.gox \
117         image.gox \
118         io.gox \
119         json.gox \
120         log.gox \
121         math.gox \
122         mime.gox \
123         net.gox \
124         netchan.gox \
125         os.gox \
126         patch.gox \
127         path.gox \
128         rand.gox \
129         reflect.gox \
130         regexp.gox \
131         rpc.gox \
132         runtime.gox \
133         scanner.gox \
134         smtp.gox \
135         sort.gox \
136         strconv.gox \
137         strings.gox \
138         sync.gox \
139         syscall.gox \
140         syslog.gox \
141         tabwriter.gox \
142         template.gox \
143         testing.gox \
144         time.gox \
145         try.gox \
146         unicode.gox \
147         utf16.gox \
148         utf8.gox \
149         websocket.gox \
150         xml.gox
152 toolexeclibgoarchivedir = $(toolexeclibgodir)/archive
154 toolexeclibgoarchive_DATA = \
155         archive/tar.gox \
156         archive/zip.gox
158 toolexeclibgocompressdir = $(toolexeclibgodir)/compress
160 toolexeclibgocompress_DATA = \
161         compress/flate.gox \
162         compress/gzip.gox \
163         compress/zlib.gox
165 toolexeclibgocontainerdir = $(toolexeclibgodir)/container
167 toolexeclibgocontainer_DATA = \
168         container/heap.gox \
169         container/list.gox \
170         container/ring.gox \
171         container/vector.gox
173 toolexeclibgocryptodir = $(toolexeclibgodir)/crypto
175 toolexeclibgocrypto_DATA = \
176         crypto/aes.gox \
177         crypto/block.gox \
178         crypto/blowfish.gox \
179         crypto/cast5.gox \
180         crypto/hmac.gox \
181         crypto/md4.gox \
182         crypto/md5.gox \
183         crypto/ocsp.gox \
184         crypto/rand.gox \
185         crypto/rc4.gox \
186         crypto/ripemd160.gox \
187         crypto/rsa.gox \
188         crypto/sha1.gox \
189         crypto/sha256.gox \
190         crypto/sha512.gox \
191         crypto/subtle.gox \
192         crypto/tls.gox \
193         crypto/x509.gox \
194         crypto/xtea.gox
196 toolexeclibgodebugdir = $(toolexeclibgodir)/debug
198 toolexeclibgodebug_DATA = \
199         debug/dwarf.gox \
200         debug/elf.gox \
201         debug/gosym.gox \
202         debug/macho.gox \
203         debug/pe.gox \
204         debug/proc.gox
206 toolexeclibgoencodingdir = $(toolexeclibgodir)/encoding
208 toolexeclibgoencoding_DATA = \
209         encoding/ascii85.gox \
210         encoding/base64.gox \
211         encoding/binary.gox \
212         encoding/git85.gox \
213         encoding/hex.gox \
214         encoding/pem.gox
216 toolexeclibgoexpdir = $(toolexeclibgodir)/exp
218 toolexeclibgoexp_DATA = \
219         exp/datafmt.gox \
220         exp/draw.gox \
221         exp/eval.gox
223 toolexeclibgogodir = $(toolexeclibgodir)/go
225 toolexeclibgogo_DATA = \
226         go/ast.gox \
227         go/doc.gox \
228         go/parser.gox \
229         go/printer.gox \
230         go/scanner.gox \
231         go/token.gox \
232         go/typechecker.gox
234 toolexeclibgohashdir = $(toolexeclibgodir)/hash
236 toolexeclibgohash_DATA = \
237         hash/adler32.gox \
238         hash/crc32.gox \
239         hash/crc64.gox
241 toolexeclibgohttpdir = $(toolexeclibgodir)/http
243 toolexeclibgohttp_DATA = \
244         http/pprof.gox
246 toolexeclibgoimagedir = $(toolexeclibgodir)/image
248 toolexeclibgoimage_DATA = \
249         image/jpeg.gox \
250         image/png.gox
252 toolexeclibgoindexdir = $(toolexeclibgodir)/index
254 toolexeclibgoindex_DATA = \
255         index/suffixarray.gox
257 toolexeclibgoiodir = $(toolexeclibgodir)/io
259 toolexeclibgoio_DATA = \
260         io/ioutil.gox
262 toolexeclibgomimedir = $(toolexeclibgodir)/mime
264 toolexeclibgomime_DATA = \
265         mime/multipart.gox
267 toolexeclibgonetdir = $(toolexeclibgodir)/net
269 toolexeclibgonet_DATA = \
270         net/dict.gox \
271         net/textproto.gox
273 toolexeclibgoosdir = $(toolexeclibgodir)/os
275 toolexeclibgoos_DATA = \
276         os/signal.gox
278 toolexeclibgorpcdir = $(toolexeclibgodir)/rpc
280 toolexeclibgorpc_DATA = \
281         rpc/jsonrpc.gox
283 toolexeclibgoruntimedir = $(toolexeclibgodir)/runtime
285 toolexeclibgoruntime_DATA = \
286         runtime/pprof.gox
288 toolexeclibgotestingdir = $(toolexeclibgodir)/testing
290 toolexeclibgotesting_DATA = \
291         testing/iotest.gox \
292         testing/quick.gox \
293         testing/script.gox
295 if HAVE_SYS_MMAN_H
296 runtime_mem_file = runtime/mem.c
297 else
298 runtime_mem_file = runtime/mem_posix_memalign.c
299 endif
301 if LIBGO_IS_RTEMS
302 rtems_task_variable_add_file = runtime/rtems-task-variable-add.c
303 else
304 rtems_task_variable_add_file =
305 endif
307 runtime_files = \
308         runtime/go-append.c \
309         runtime/go-assert.c \
310         runtime/go-assert-interface.c \
311         runtime/go-byte-array-to-string.c \
312         runtime/go-breakpoint.c \
313         runtime/go-caller.c \
314         runtime/go-can-convert-interface.c \
315         runtime/go-chan-cap.c \
316         runtime/go-chan-len.c \
317         runtime/go-check-interface.c \
318         runtime/go-close.c \
319         runtime/go-closed.c \
320         runtime/go-construct-map.c \
321         runtime/go-convert-interface.c \
322         runtime/go-copy.c \
323         runtime/go-defer.c \
324         runtime/go-deferred-recover.c \
325         runtime/go-eface-compare.c \
326         runtime/go-eface-val-compare.c \
327         runtime/go-getgoroot.c \
328         runtime/go-go.c \
329         runtime/go-gomaxprocs.c \
330         runtime/go-int-array-to-string.c \
331         runtime/go-int-to-string.c \
332         runtime/go-interface-compare.c \
333         runtime/go-interface-val-compare.c \
334         runtime/go-lock-os-thread.c \
335         runtime/go-map-delete.c \
336         runtime/go-map-index.c \
337         runtime/go-map-len.c \
338         runtime/go-map-range.c \
339         runtime/go-nanotime.c \
340         runtime/go-new-channel.c \
341         runtime/go-new-map.c \
342         runtime/go-new.c \
343         runtime/go-note.c \
344         runtime/go-panic.c \
345         runtime/go-panic-defer.c \
346         runtime/go-print.c \
347         runtime/go-rec-big.c \
348         runtime/go-rec-nb-big.c \
349         runtime/go-rec-nb-small.c \
350         runtime/go-rec-small.c \
351         runtime/go-recover.c \
352         runtime/go-reflect.c \
353         runtime/go-reflect-call.c \
354         runtime/go-reflect-chan.c \
355         runtime/go-reflect-map.c \
356         runtime/go-rune.c \
357         runtime/go-runtime-error.c \
358         runtime/go-sched.c \
359         runtime/go-select.c \
360         runtime/go-semacquire.c \
361         runtime/go-send-big.c \
362         runtime/go-send-nb-big.c \
363         runtime/go-send-nb-small.c \
364         runtime/go-send-small.c \
365         runtime/go-signal.c \
366         runtime/go-strcmp.c \
367         runtime/go-string-to-byte-array.c \
368         runtime/go-string-to-int-array.c \
369         runtime/go-strplus.c \
370         runtime/go-strslice.c \
371         runtime/go-trampoline.c \
372         runtime/go-type-eface.c \
373         runtime/go-type-error.c \
374         runtime/go-type-identity.c \
375         runtime/go-type-interface.c \
376         runtime/go-type-string.c \
377         runtime/go-typedesc-equal.c \
378         runtime/go-typestring.c \
379         runtime/go-unreflect.c \
380         runtime/go-unsafe-new.c \
381         runtime/go-unsafe-newarray.c \
382         runtime/go-unsafe-pointer.c \
383         runtime/go-unwind.c \
384         runtime/mcache.c \
385         runtime/mcentral.c \
386         $(runtime_mem_file) \
387         runtime/mfinal.c \
388         runtime/mfixalloc.c \
389         runtime/mgc0.c \
390         runtime/mheap.c \
391         runtime/mheapmap32.c \
392         runtime/mheapmap64.c \
393         runtime/msize.c \
394         runtime/proc.c \
395         runtime/thread.c \
396         $(rtems_task_variable_add_file) \
397         chan.c \
398         iface.c \
399         malloc.c \
400         map.c \
401         mprof.c \
402         reflect.c \
403         sigqueue.c \
404         string.c
406 goc2c.$(OBJEXT): runtime/goc2c.c
407         $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
409 goc2c: goc2c.$(OBJEXT)
410         $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
412 malloc.c: $(srcdir)/runtime/malloc.goc goc2c
413         ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
414         mv -f $@.tmp $@
416 mprof.c: $(srcdir)/runtime/mprof.goc goc2c
417         ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
418         mv -f $@.tmp $@
420 reflect.c: $(srcdir)/runtime/reflect.goc goc2c
421         ./goc2c --gcc --go-prefix libgo_reflect $< > $@.tmp
422         mv -f $@.tmp $@
424 sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
425         ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
426         mv -f $@.tmp $@
428 %.c: $(srcdir)/runtime/%.goc goc2c
429         ./goc2c --gcc $< > $@.tmp
430         mv -f $@.tmp $@
432 go_asn1_files = \
433         go/asn1/asn1.go \
434         go/asn1/common.go \
435         go/asn1/marshal.go
437 go_big_files = \
438         go/big/arith.go \
439         go/big/int.go \
440         go/big/nat.go \
441         go/big/rat.go
443 go_bufio_files = \
444         go/bufio/bufio.go
446 go_bytes_files = \
447         go/bytes/buffer.go \
448         go/bytes/bytes.go \
449         go/bytes/bytes_decl.go
450 go_bytes_c_files = \
451         go/bytes/indexbyte.c
453 go_cmath_files = \
454         go/cmath/abs.go \
455         go/cmath/asin.go \
456         go/cmath/conj.go \
457         go/cmath/exp.go \
458         go/cmath/isinf.go \
459         go/cmath/isnan.go \
460         go/cmath/log.go \
461         go/cmath/phase.go \
462         go/cmath/polar.go \
463         go/cmath/pow.go \
464         go/cmath/rect.go \
465         go/cmath/sin.go \
466         go/cmath/sqrt.go \
467         go/cmath/tan.go
469 go_ebnf_files = \
470         go/ebnf/ebnf.go \
471         go/ebnf/parser.go
473 go_exec_files = \
474         go/exec/exec.go \
475         go/exec/lp_unix.go
477 go_expvar_files = \
478         go/expvar/expvar.go
480 go_flag_files = \
481         go/flag/flag.go
483 go_fmt_files = \
484         go/fmt/doc.go \
485         go/fmt/format.go \
486         go/fmt/print.go \
487         go/fmt/scan.go
489 go_gob_files = \
490         go/gob/decode.go \
491         go/gob/decoder.go \
492         go/gob/doc.go \
493         go/gob/encode.go \
494         go/gob/encoder.go \
495         go/gob/error.go \
496         go/gob/type.go
498 go_hash_files = \
499         go/hash/hash.go
501 go_html_files = \
502         go/html/doc.go \
503         go/html/entity.go \
504         go/html/escape.go \
505         go/html/token.go
507 go_http_files = \
508         go/http/chunked.go \
509         go/http/client.go \
510         go/http/dump.go \
511         go/http/fs.go \
512         go/http/lex.go \
513         go/http/persist.go \
514         go/http/request.go \
515         go/http/response.go \
516         go/http/server.go \
517         go/http/status.go \
518         go/http/transfer.go \
519         go/http/url.go
521 go_image_files = \
522         go/image/color.go \
523         go/image/format.go \
524         go/image/geom.go \
525         go/image/image.go \
526         go/image/names.go
528 go_io_files = \
529         go/io/multi.go \
530         go/io/io.go \
531         go/io/pipe.go
533 go_json_files = \
534         go/json/decode.go \
535         go/json/encode.go \
536         go/json/indent.go \
537         go/json/scanner.go \
538         go/json/stream.go
540 go_log_files = \
541         go/log/log.go
543 go_math_files = \
544         go/math/acosh.go \
545         go/math/asin.go \
546         go/math/asinh.go \
547         go/math/atan.go \
548         go/math/atanh.go \
549         go/math/atan2.go \
550         go/math/bits.go \
551         go/math/cbrt.go \
552         go/math/const.go \
553         go/math/copysign.go \
554         go/math/erf.go \
555         go/math/exp.go \
556         go/math/exp2.go \
557         go/math/expm1.go \
558         go/math/fabs.go \
559         go/math/fdim.go \
560         go/math/floor.go \
561         go/math/fmod.go \
562         go/math/frexp.go \
563         go/math/gamma.go \
564         go/math/hypot.go \
565         go/math/hypot_port.go \
566         go/math/j0.go \
567         go/math/j1.go \
568         go/math/jn.go \
569         go/math/ldexp.go \
570         go/math/lgamma.go \
571         go/math/log.go \
572         go/math/log1p.go \
573         go/math/log10.go \
574         go/math/logb.go \
575         go/math/modf.go \
576         go/math/nextafter.go \
577         go/math/pow.go \
578         go/math/pow10.go \
579         go/math/remainder.go \
580         go/math/signbit.go \
581         go/math/sin.go \
582         go/math/sincos.go \
583         go/math/sinh.go \
584         go/math/sqrt.go \
585         go/math/sqrt_port.go \
586         go/math/tan.go \
587         go/math/tanh.go \
588         go/math/unsafe.go
590 go_mime_files = \
591         go/mime/grammar.go \
592         go/mime/mediatype.go \
593         go/mime/type.go
595 if LIBGO_IS_RTEMS
596 go_net_fd_os_file = go/net/fd_rtems.go
597 go_net_newpollserver_file = go/net/newpollserver_rtems.go
598 else
599 go_net_fd_os_file = go/net/fd_linux.go
600 go_net_newpollserver_file = go/net/newpollserver.go
601 endif
603 go_net_files = \
604         go/net/dial.go \
605         go/net/dnsclient.go \
606         go/net/dnsconfig.go \
607         go/net/dnsmsg.go \
608         $(go_net_newpollserver_file) \
609         go/net/fd.go \
610         $(go_net_fd_os_file) \
611         go/net/hosts.go \
612         go/net/ip.go \
613         go/net/iprawsock.go \
614         go/net/ipsock.go \
615         go/net/net.go \
616         go/net/parse.go \
617         go/net/pipe.go \
618         go/net/port.go \
619         go/net/sock.go \
620         go/net/tcpsock.go \
621         go/net/udpsock.go \
622         go/net/unixsock.go
624 go_netchan_files = \
625         go/netchan/common.go \
626         go/netchan/export.go \
627         go/netchan/import.go
629 go_os_files = \
630         go/os/dir.go \
631         go/os/env.go \
632         go/os/env_unix.go \
633         go/os/error.go \
634         go/os/exec.go \
635         go/os/file.go \
636         go/os/file_unix.go \
637         go/os/getwd.go \
638         go/os/path.go \
639         go/os/proc.go \
640         go/os/stat.go \
641         go/os/sys_linux.go \
642         go/os/time.go \
643         go/os/types.go
645 go_patch_files = \
646         go/patch/apply.go \
647         go/patch/git.go \
648         go/patch/patch.go \
649         go/patch/textdiff.go
651 go_path_files = \
652         go/path/match.go \
653         go/path/path.go
655 go_rand_files = \
656         go/rand/exp.go \
657         go/rand/normal.go \
658         go/rand/rand.go \
659         go/rand/rng.go \
660         go/rand/zipf.go
662 go_reflect_files = \
663         go/reflect/deepequal.go \
664         go/reflect/type.go \
665         go/reflect/value.go
667 go_regexp_files = \
668         go/regexp/regexp.go
670 go_rpc_files = \
671         go/rpc/client.go \
672         go/rpc/debug.go \
673         go/rpc/server.go
675 go_runtime_files = \
676         go/runtime/debug.go \
677         go/runtime/error.go \
678         go/runtime/extern.go \
679         go/runtime/sig.go \
680         go/runtime/softfloat64.go \
681         go/runtime/type.go \
682         version.go
684 if LIBGO_IS_386
685 GOARCH = 386
686 else
687 if LIBGO_IS_X86_64
688 GOARCH = amd64
689 else
690 if LIBGO_IS_ARM
691 GOARCH = arm
692 else
693 GOARCH = unknown
694 endif
695 endif
696 endif
698 if LIBGO_IS_LINUX
699 GOOS = linux
700 else
701 if LIBGO_IS_DARWIN
702 GOOS = darwin
703 else
704 if LIBGO_IS_FREEBSD
705 GOOS = freebsd
706 else
707 if LIBGO_IS_RTEMS
708 GOOS = rtems
709 else
710 GOOS = unknown
711 endif
712 endif
713 endif
714 endif
716 version.go: s-version; @true
717 s-version: Makefile
718         rm -f version.go.tmp
719         echo "package runtime" > version.go.tmp
720         echo 'const defaultGoroot = "$(prefix)"' >> version.go.tmp
721         echo 'const theVersion = "'`$(CC) --version | sed 1q`'"' >> version.go.tmp
722         echo 'const theGoarch = "'$(GOARCH)'"' >> version.go.tmp
723         echo 'const theGoos = "'$(GOOS)'"' >> version.go.tmp
724         $(SHELL) $(srcdir)/../move-if-change version.go.tmp version.go
725         $(STAMP) $@
727 go_scanner_files = \
728         go/scanner/scanner.go
730 go_smtp_files = \
731         go/smtp/auth.go \
732         go/smtp/smtp.go
734 go_sort_files = \
735         go/sort/sort.go
737 go_strconv_files = \
738         go/strconv/atob.go \
739         go/strconv/atof.go \
740         go/strconv/atoi.go \
741         go/strconv/decimal.go \
742         go/strconv/ftoa.go \
743         go/strconv/itoa.go \
744         go/strconv/quote.go
746 go_strings_files = \
747         go/strings/reader.go \
748         go/strings/strings.go
750 go_sync_files = \
751         go/sync/mutex.go \
752         go/sync/once.go \
753         go/sync/rwmutex.go
754 go_sync_c_files = \
755         go/sync/cas.c
757 go_syslog_files = \
758         go/syslog/syslog.go
760 go_tabwriter_files = \
761         go/tabwriter/tabwriter.go
763 go_template_files = \
764         go/template/format.go \
765         go/template/template.go
767 go_testing_files = \
768         go/testing/benchmark.go \
769         go/testing/testing.go
771 go_time_files = \
772         go/time/format.go \
773         go/time/sleep.go \
774         go/time/tick.go \
775         go/time/time.go \
776         go/time/zoneinfo_unix.go
778 go_try_files = \
779         go/try/try.go
781 go_unicode_files = \
782         go/unicode/casetables.go \
783         go/unicode/digit.go \
784         go/unicode/letter.go \
785         go/unicode/tables.go
787 go_utf16_files = \
788         go/utf16/utf16.go
790 go_utf8_files = \
791         go/utf8/string.go \
792         go/utf8/utf8.go
794 go_websocket_files = \
795         go/websocket/client.go \
796         go/websocket/server.go \
797         go/websocket/websocket.go
799 go_xml_files = \
800         go/xml/read.go \
801         go/xml/xml.go
803 go_archive_tar_files = \
804         go/archive/tar/common.go \
805         go/archive/tar/reader.go \
806         go/archive/tar/writer.go
808 go_archive_zip_files = \
809         go/archive/zip/reader.go \
810         go/archive/zip/struct.go
812 go_compress_flate_files = \
813         go/compress/flate/deflate.go \
814         go/compress/flate/huffman_bit_writer.go \
815         go/compress/flate/huffman_code.go \
816         go/compress/flate/inflate.go \
817         go/compress/flate/reverse_bits.go \
818         go/compress/flate/token.go \
819         go/compress/flate/util.go
821 go_compress_gzip_files = \
822         go/compress/gzip/gzip.go \
823         go/compress/gzip/gunzip.go
825 go_compress_zlib_files = \
826         go/compress/zlib/reader.go \
827         go/compress/zlib/writer.go
829 go_container_heap_files = \
830         go/container/heap/heap.go
832 go_container_list_files = \
833         go/container/list/list.go
835 go_container_ring_files = \
836         go/container/ring/ring.go
838 go_container_vector_files = \
839         go/container/vector/defs.go \
840         go/container/vector/intvector.go \
841         go/container/vector/stringvector.go \
842         go/container/vector/vector.go
844 go_crypto_aes_files = \
845         go/crypto/aes/block.go \
846         go/crypto/aes/cipher.go \
847         go/crypto/aes/const.go
848 go_crypto_block_files = \
849         go/crypto/block/cbc.go \
850         go/crypto/block/cfb.go \
851         go/crypto/block/cmac.go \
852         go/crypto/block/cipher.go \
853         go/crypto/block/ctr.go \
854         go/crypto/block/eax.go \
855         go/crypto/block/ecb.go \
856         go/crypto/block/ofb.go \
857         go/crypto/block/xor.go
858 go_crypto_blowfish_files = \
859         go/crypto/blowfish/block.go \
860         go/crypto/blowfish/const.go \
861         go/crypto/blowfish/cipher.go
862 go_crypto_cast5_files = \
863         go/crypto/cast5/cast5.go
864 go_crypto_hmac_files = \
865         go/crypto/hmac/hmac.go
866 go_crypto_md4_files = \
867         go/crypto/md4/md4.go \
868         go/crypto/md4/md4block.go
869 go_crypto_md5_files = \
870         go/crypto/md5/md5.go \
871         go/crypto/md5/md5block.go
872 go_crypto_ocsp_files = \
873         go/crypto/ocsp/ocsp.go
874 go_crypto_rand_files = \
875         go/crypto/rand/rand.go \
876         go/crypto/rand/rand_unix.go
877 go_crypto_rc4_files = \
878         go/crypto/rc4/rc4.go
879 go_crypto_ripemd160_files = \
880         go/crypto/ripemd160/ripemd160.go \
881         go/crypto/ripemd160/ripemd160block.go
882 go_crypto_rsa_files = \
883         go/crypto/rsa/pkcs1v15.go \
884         go/crypto/rsa/rsa.go
885 go_crypto_sha1_files = \
886         go/crypto/sha1/sha1.go \
887         go/crypto/sha1/sha1block.go
888 go_crypto_sha256_files = \
889         go/crypto/sha256/sha256.go \
890         go/crypto/sha256/sha256block.go
891 go_crypto_sha512_files = \
892         go/crypto/sha512/sha512.go \
893         go/crypto/sha512/sha512block.go
894 go_crypto_subtle_files = \
895         go/crypto/subtle/constant_time.go
896 go_crypto_tls_files = \
897         go/crypto/tls/alert.go \
898         go/crypto/tls/ca_set.go \
899         go/crypto/tls/common.go \
900         go/crypto/tls/conn.go \
901         go/crypto/tls/handshake_client.go \
902         go/crypto/tls/handshake_messages.go \
903         go/crypto/tls/handshake_server.go \
904         go/crypto/tls/prf.go \
905         go/crypto/tls/tls.go
906 go_crypto_x509_files = \
907         go/crypto/x509/x509.go
908 go_crypto_xtea_files = \
909         go/crypto/xtea/block.go \
910         go/crypto/xtea/cipher.go
912 go_debug_dwarf_files = \
913         go/debug/dwarf/buf.go \
914         go/debug/dwarf/const.go \
915         go/debug/dwarf/entry.go \
916         go/debug/dwarf/open.go \
917         go/debug/dwarf/type.go \
918         go/debug/dwarf/unit.go
919 go_debug_elf_files = \
920         go/debug/elf/elf.go \
921         go/debug/elf/file.go
922 go_debug_gosym_files = \
923         go/debug/gosym/pclntab.go \
924         go/debug/gosym/symtab.go
925 go_debug_macho_files = \
926         go/debug/macho/file.go \
927         go/debug/macho/macho.go
928 go_debug_pe_files = \
929         go/debug/pe/file.go \
930         go/debug/pe/pe.go
932 if LIBGO_IS_LINUX
933 proc_file = go/debug/proc/proc_linux.go
934 if LIBGO_IS_386
935 regs_file = go/debug/proc/regs_linux_386.go
936 else
937 if LIBGO_IS_X86_64
938 regs_file = go/debug/proc/regs_linux_amd64.go
939 else
940 regs_file =
941 endif
942 endif
943 else
944 if LIBGO_IS_DARWIN
945 proc_file = go/debug/proc/proc_darwin.go
946 if LIBGO_IS_386
947 regs_file = go/debug/proc/regs_darwin_386.go
948 else
949 if LIBGO_IS_X86_64
950 regs_file = go/debug/proc/regs_darwin_amd64.go
951 else
952 regs_file =
953 endif
954 endif
955 else
956 if LIBGO_IS_FREEBSD
957 proc_file = go/debug/proc/proc_freebsd.go
958 if LIBGO_IS_386
959 regs_file = go/debug/proc/regs_freebsd_386.go
960 else
961 if LIBGO_IS_X86_64
962 regs_file = go/debug/proc/regs_freebsd_amd64.go
963 else
964 regs_file =
965 endif
966 endif
967 else
968 proc_file =
969 regs_file =
970 endif
971 endif
972 endif
974 go_debug_proc_files = \
975         go/debug/proc/proc.go \
976         $(proc_file) \
977         $(regs_file)
979 go_encoding_ascii85_files = \
980         go/encoding/ascii85/ascii85.go
981 go_encoding_base64_files = \
982         go/encoding/base64/base64.go
983 go_encoding_binary_files = \
984         go/encoding/binary/binary.go
985 go_encoding_git85_files = \
986         go/encoding/git85/git.go
987 go_encoding_hex_files = \
988         go/encoding/hex/hex.go
989 go_encoding_pem_files = \
990         go/encoding/pem/pem.go
992 go_exp_datafmt_files = \
993         go/exp/datafmt/datafmt.go \
994         go/exp/datafmt/parser.go
995 go_exp_draw_files = \
996         go/exp/draw/draw.go \
997         go/exp/draw/event.go
998 go_exp_eval_files = \
999         go/exp/eval/abort.go \
1000         go/exp/eval/bridge.go \
1001         go/exp/eval/compiler.go \
1002         go/exp/eval/expr.go \
1003         go/exp/eval/expr1.go \
1004         go/exp/eval/func.go \
1005         go/exp/eval/scope.go \
1006         go/exp/eval/stmt.go \
1007         go/exp/eval/type.go \
1008         go/exp/eval/typec.go \
1009         go/exp/eval/value.go \
1010         go/exp/eval/world.go
1012 go_go_ast_files = \
1013         go/go/ast/ast.go \
1014         go/go/ast/filter.go \
1015         go/go/ast/print.go \
1016         go/go/ast/scope.go \
1017         go/go/ast/walk.go
1018 go_go_doc_files = \
1019         go/go/doc/comment.go \
1020         go/go/doc/doc.go
1021 go_go_parser_files = \
1022         go/go/parser/interface.go \
1023         go/go/parser/parser.go
1024 go_go_printer_files = \
1025         go/go/printer/nodes.go \
1026         go/go/printer/printer.go
1027 go_go_scanner_files = \
1028         go/go/scanner/errors.go \
1029         go/go/scanner/scanner.go
1030 go_go_token_files = \
1031         go/go/token/token.go
1032 go_go_typechecker_files = \
1033         go/go/typechecker/scope.go \
1034         go/go/typechecker/typechecker.go \
1035         go/go/typechecker/universe.go
1037 go_hash_adler32_files = \
1038         go/hash/adler32/adler32.go
1039 go_hash_crc32_files = \
1040         go/hash/crc32/crc32.go
1041 go_hash_crc64_files = \
1042         go/hash/crc64/crc64.go
1044 go_http_pprof_files = \
1045         go/http/pprof/pprof.go
1047 go_image_jpeg_files = \
1048         go/image/jpeg/huffman.go \
1049         go/image/jpeg/idct.go \
1050         go/image/jpeg/reader.go
1052 go_image_png_files = \
1053         go/image/png/reader.go \
1054         go/image/png/writer.go
1056 go_index_suffixarray_files = \
1057         go/index/suffixarray/suffixarray.go
1059 go_io_ioutil_files = \
1060         go/io/ioutil/ioutil.go \
1061         go/io/ioutil/tempfile.go
1063 go_mime_multipart_files = \
1064         go/mime/multipart/multipart.go
1066 go_net_dict_files = \
1067         go/net/dict/dict.go
1069 go_net_textproto_files = \
1070         go/net/textproto/pipeline.go \
1071         go/net/textproto/reader.go \
1072         go/net/textproto/textproto.go \
1073         go/net/textproto/writer.go
1075 go_os_signal_files = \
1076         go/os/signal/signal.go \
1077         unix.go
1079 go_rpc_jsonrpc_files = \
1080         go/rpc/jsonrpc/client.go \
1081         go/rpc/jsonrpc/server.go
1083 go_runtime_pprof_files = \
1084         go/runtime/pprof/pprof.go
1086 go_testing_iotest_files = \
1087         go/testing/iotest/logger.go \
1088         go/testing/iotest/reader.go \
1089         go/testing/iotest/writer.go
1090 go_testing_quick_files = \
1091         go/testing/quick/quick.go
1092 go_testing_script_files = \
1093         go/testing/script/script.go
1095 if LIBGO_IS_LINUX
1096 syscall_os_file = syscalls/syscall_linux.go
1097 if LIBGO_IS_386
1098 syscall_arch_file = syscalls/syscall_linux_386.go
1099 else
1100 if LIBGO_IS_X86_64
1101 syscall_arch_file = syscalls/syscall_linux_amd64.go
1102 else
1103 syscall_arch_file =
1104 endif
1105 endif
1106 else
1107 syscall_os_file =
1108 syscall_arch_file =
1109 endif
1111 if LIBGO_IS_RTEMS
1112 syscall_exec_os_file = syscalls/exec_stubs.go
1113 syscall_socket_os_file = syscalls/socket_bsd.go
1114 syscall_socket_epoll_file=
1115 syscall_sysfile_os_file = syscalls/sysfile_rtems.go
1116 syscall_syscall_file = syscalls/syscall_stubs.go
1117 syscall_errstr_file = syscalls/errstr_rtems.go
1118 syscall_errstr_decl_file = syscalls/errstr_decl_rtems.go
1119 else
1120 syscall_exec_os_file = syscalls/exec.go
1121 syscall_socket_os_file = syscalls/socket_linux.go
1122 syscall_socket_epoll_file = syscalls/socket_epoll.go
1123 syscall_sysfile_os_file = syscalls/sysfile_linux.go
1124 syscall_syscall_file = syscalls/syscall.go
1125 syscall_errstr_file = syscalls/errstr.go
1126 if LIBGO_IS_LINUX
1127 syscall_errstr_decl_file = syscalls/errstr_decl_linux.go
1128 else
1129 syscall_errstr_decl_file = syscalls/errstr_decl.go
1130 endif
1131 endif
1133 go_syscall_files = \
1134         $(syscall_errstr_file) \
1135         $(syscall_errstr_decl_file) \
1136         syscalls/exec_helpers.go \
1137         $(syscall_exec_os_file) \
1138         syscalls/socket.go \
1139         $(syscall_socket_os_file) \
1140         $(syscall_socket_epoll_file) \
1141         $(syscall_syscall_file) \
1142         syscalls/syscall_unix.go \
1143         syscalls/stringbyte.go \
1144         $(syscall_os_file) \
1145         $(syscall_arch_file) \
1146         syscalls/sysfile_posix.go \
1147         $(syscall_sysfile_os_file) \
1148         sysinfo.go
1149 go_syscall_c_files = \
1150         syscalls/errno.c
1152 libgo_go_objs = \
1153         asn1/libasn1.la \
1154         big/libbig.la \
1155         bufio/libbufio.la \
1156         bytes/libbytes.la \
1157         cmath/libcmath.la \
1158         ebnf/libebnf.la \
1159         exec/libexec.la \
1160         expvar/libexpvar.la \
1161         flag/libflag.la \
1162         fmt/libfmt.la \
1163         gob/libgob.la \
1164         hash/libhash.la \
1165         html/libhtml.la \
1166         http/libhttp.la \
1167         image/libimage.la \
1168         io/libio.la \
1169         json/libjson.la \
1170         log/liblog.la \
1171         math/libmath.la \
1172         mime/libmime.la \
1173         net/libnet.la \
1174         netchan/libnetchan.la \
1175         os/libos.la \
1176         patch/libpatch.la \
1177         path/libpath.la \
1178         rand/librand.la \
1179         reflect/libreflect.la \
1180         regexp/libregexp.la \
1181         rpc/librpc.la \
1182         runtime/libruntime.la \
1183         scanner/libscanner.la \
1184         smtp/libsmtp.la \
1185         sort/libsort.la \
1186         strconv/libstrconv.la \
1187         strings/libstrings.la \
1188         sync/libsync.la \
1189         syslog/libsyslog.la \
1190         tabwriter/libtabwriter.la \
1191         template/libtemplate.la \
1192         time/libtime.la \
1193         try/libtry.la \
1194         unicode/libunicode.la \
1195         utf16/libutf16.la \
1196         utf8/libutf8.la \
1197         websocket/libwebsocket.la \
1198         xml/libxml.la \
1199         archive/libtar.la \
1200         archive/libzip.la \
1201         compress/libflate.la \
1202         compress/libgzip.la \
1203         compress/libzlib.la \
1204         container/libheap.la \
1205         container/liblist.la \
1206         container/libring.la \
1207         container/libvector.la \
1208         crypto/libaes.la \
1209         crypto/libblock.la \
1210         crypto/libblowfish.la \
1211         crypto/libcast5.la \
1212         crypto/libhmac.la \
1213         crypto/libmd4.la \
1214         crypto/libmd5.la \
1215         crypto/libocsp.la \
1216         crypto/librand.la \
1217         crypto/librc4.la \
1218         crypto/libripemd160.la \
1219         crypto/librsa.la \
1220         crypto/libsha1.la \
1221         crypto/libsha256.la \
1222         crypto/libsha512.la \
1223         crypto/libsubtle.la \
1224         crypto/libtls.la \
1225         crypto/libx509.la \
1226         crypto/libxtea.la \
1227         debug/libdwarf.la \
1228         debug/libelf.la \
1229         debug/libgosym.la \
1230         debug/libmacho.la \
1231         debug/libpe.la \
1232         debug/libproc.la \
1233         encoding/libascii85.la \
1234         encoding/libbase64.la \
1235         encoding/libbinary.la \
1236         encoding/libgit85.la \
1237         encoding/libhex.la \
1238         encoding/libpem.la \
1239         exp/libdatafmt.la \
1240         exp/libdraw.la \
1241         exp/libeval.la \
1242         go/libast.la \
1243         go/libdoc.la \
1244         go/libparser.la \
1245         go/libprinter.la \
1246         go/libscanner.la \
1247         go/libtoken.la \
1248         go/libtypechecker.la \
1249         hash/libadler32.la \
1250         hash/libcrc32.la \
1251         hash/libcrc64.la \
1252         http/libpprof.la \
1253         image/libjpeg.la \
1254         image/libpng.la \
1255         index/libsuffixarray.la \
1256         io/libioutil.la \
1257         mime/libmultipart.la \
1258         net/libdict.la \
1259         net/libtextproto.la \
1260         os/libsignal.la \
1261         rpc/libjsonrpc.la \
1262         runtime/libpprof.la \
1263         syscalls/libsyscall.la \
1264         testing/libtesting.la \
1265         testing/libiotest.la \
1266         testing/libquick.la \
1267         testing/libscript.la
1269 libgo_la_SOURCES = $(runtime_files)
1271 libgo_la_LIBADD = $(libgo_go_objs) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS)
1273 libgobegin_a_SOURCES = \
1274         runtime/go-main.c
1276 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
1278 GOCFLAGS = $(CFLAGS)
1279 AM_GOCFLAGS = $(STRINGOPS_FLAG)
1280 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
1282 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
1283         $(AM_GOCFLAGS) $(GOCFLAGS)
1285 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
1286         $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) \
1287         $(PTHREAD_LIBS) $(MATH_LIBS) -o $@
1289 # Build a package.
1290 BUILDARCHIVE = \
1291         rm -f `echo $@ | sed -e 's|/lib|/|' -e 's/\.a/.gox/'`; \
1292         test -d $(@D) || $(MKDIR_P) $(@D); \
1293         rm -f $@; \
1294         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
1295         if $(LTGOCOMPILE) -I . -c -fgo-prefix="libgo_$(@D)" -o $@.$(OBJEXT) $$files; then \
1296           $(AR) rc $@ $@.$(OBJEXT); \
1297         else exit 1; fi
1299 # Build a .la file from a .a file.
1300 .a.la:
1301         $(LINK) $<.lo
1303 if LIBGO_IS_RTEMS
1304 use_dejagnu = yes
1305 else
1306 use_dejagnu = no
1307 endif
1309 # Check a package.
1310 CHECK = \
1311         @GC="$(GOC) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs -Wl,-R,`${PWD_COMMAND}`/.libs"; \
1312         export GC; \
1313         RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
1314         export RUNTESTFLAGS; \
1315         MAKE="$(MAKE)"; \
1316         export MAKE; \
1317         rm -f $@-log; \
1318         echo -n "$(@D) " >$@-log 2>&1; \
1319         prefix=`if test "$(@D)" = "regexp"; then echo regexp-test; else dirname $(@D); fi`; \
1320         test "$${prefix}" != "." || prefix="$(@D)"; \
1321         $(srcdir)/testsuite/gotest --dejagnu=$(use_dejagnu) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" >>$@-log 2>&1; \
1322         x=$$?; \
1323         cat $@-log; \
1324         exit $$x
1326 # Build all packages before checking any.
1327 CHECK_DEPS = libgo.la libgobegin.a \
1328         $(toolexeclib_DATA) \
1329         $(toolexeclibarchive_DATA) \
1330         $(toolexeclibcompress_DATA) \
1331         $(toolexeclibcontainer_DATA) \
1332         $(toolexeclibcrypto_DATA) \
1333         $(toolexeclibdebug_DATA) \
1334         $(toolexeclibencoding_DATA) \
1335         $(toolexeclibexp_DATA) \
1336         $(toolexeclibgo_DATA) \
1337         $(toolexeclibhash_DATA) \
1338         $(toolexeclibhttp_DATA) \
1339         $(toolexeclibimage_DATA) \
1340         $(toolexeclibio_DATA) \
1341         $(toolexeclibos_DATA) \
1342         $(toolexeclibrpc_DATA) \
1343         $(toolexeclibruntime_DATA) \
1344         $(toolexeclibtesting_DATA)
1346 asn1/libasn1.a: $(go_asn1_files) bytes.gox fmt.gox io.gox os.gox reflect.gox \
1347                 strconv.gox strings.gox time.gox
1348         $(BUILDARCHIVE)
1349 asn1/libasn1.la: asn1/libasn1.a
1350 asn1/check: $(CHECK_DEPS)
1351         $(CHECK)
1352 .PHONY: asn1/check
1354 big/libbig.a: $(go_big_files) fmt.gox rand.gox strings.gox
1355         $(BUILDARCHIVE)
1356 big/libbig.la: big/libbig.a
1357 big/check: $(CHECK_DEPS)
1358         $(CHECK)
1359 .PHONY: big/check
1361 bufio/libbufio.a: $(go_bufio_files) bytes.gox io.gox os.gox strconv.gox \
1362                 utf8.gox
1363         $(BUILDARCHIVE)
1364 bufio/libbufio.la: bufio/libbufio.a
1365 bufio/check: $(CHECK_DEPS)
1366         $(CHECK)
1367 .PHONY: bufio/check
1369 bytes/libbytes.a: $(go_bytes_files) $(go_bytes_c_files) io.gox os.gox utf8.gox
1370         test -d bytes || $(MKDIR_P) bytes
1371         $(LTGOCOMPILE) -c -o bytes/bytes.$(OBJEXT) -fgo-prefix=libgo_bytes $(srcdir)/go/bytes/buffer.go $(srcdir)/go/bytes/bytes.go $(srcdir)/go/bytes/bytes_decl.go
1372         $(LTCOMPILE) -c -o bytes/index.$(OBJEXT) $(srcdir)/go/bytes/indexbyte.c
1373         rm -f $@
1374         $(AR) rc $@ bytes/bytes.$(OBJEXT) bytes/index.$(OBJEXT)
1375 bytes/libbytes.la: bytes/libbytes.a
1376         $(LINK) bytes/bytes.lo bytes/index.lo
1377 bytes/check: $(CHECK_DEPS)
1378         $(CHECK)
1379 .PHONY: bytes/check
1381 cmath/libcmath.a: $(go_cmath_files) math.gox
1382         $(BUILDARCHIVE)
1383 cmath/libcmath.la: cmath/libcmath.a
1384 cmath/check: $(CHECK_DEPS)
1385         $(CHECK)
1386 .PHONY: cmath/check
1388 ebnf/libebnf.a: $(go_ebnf_files) container/vector.gox go/scanner.gox \
1389                 go/token.gox os.gox strconv.gox unicode.gox utf8.gox
1390         $(BUILDARCHIVE)
1391 ebnf/libebnf.la: ebnf/libebnf.a
1392 ebnf/check: $(CHECK_DEPS)
1393         $(CHECK)
1394 .PHONY: ebnf/check
1396 exec/libexec.a: $(go_exec_files) os.gox strings.gox
1397         $(BUILDARCHIVE)
1398 exec/libexec.la: exec/libexec.a
1399 exec/check: $(CHECK_DEPS)
1400         $(CHECK)
1401 .PHONY: exec/check
1403 expvar/libexpvar.a: $(go_expvar_files) bytes.gox fmt.gox http.gox json.gox \
1404                 log.gox os.gox runtime.gox strconv.gox sync.gox
1405         $(BUILDARCHIVE)
1406 expvar/libexpvar.la: expvar/libexpvar.a
1407 expvar/check: $(CHECK_DEPS)
1408         $(CHECK)
1409 .PHONY: expvar/check
1411 flag/libflag.a: $(go_flag_files) fmt.gox os.gox strconv.gox
1412         $(BUILDARCHIVE)
1413 flag/libflag.la: flag/libflag.a
1414 flag/check: $(CHECK_DEPS)
1415         $(CHECK)
1416 .PHONY: flag/check
1418 fmt/libfmt.a: $(go_fmt_files) bytes.gox io.gox os.gox reflect.gox strconv.gox \
1419                 strings.gox unicode.gox utf8.gox
1420         $(BUILDARCHIVE)
1421 fmt/libfmt.la: fmt/libfmt.a
1422 fmt/check: $(CHECK_DEPS)
1423         $(CHECK)
1424 .PHONY: fmt/check
1426 gob/libgob.a: $(go_gob_files) bytes.gox fmt.gox io.gox math.gox os.gox \
1427                 reflect.gox runtime.gox strings.gox sync.gox unicode.gox
1428         $(BUILDARCHIVE)
1429 gob/libgob.la: gob/libgob.a
1430 gob/check: $(CHECK_DEPS)
1431         $(CHECK)
1432 .PHONY: gob/check
1434 hash/libhash.a: $(go_hash_files) io.gox
1435         $(BUILDARCHIVE)
1436 hash/libhash.la: hash/libhash.a
1437 hash/check: $(CHECK_DEPS)
1438         $(CHECK)
1439 .PHONY: hash/check
1441 html/libhtml.a: $(go_html_files) bytes.gox io.gox os.gox strconv.gox \
1442                 strings.gox utf8.gox
1443         $(BUILDARCHIVE)
1444 html/libhtml.la: html/libhtml.a
1445 html/check: $(CHECK_DEPS)
1446         $(CHECK)
1447 .PHONY: html/check
1449 http/libhttp.a: $(go_http_files) bufio.gox bytes.gox container/list.gox \
1450                 container/vector.gox crypto/rand.gox crypto/tls.gox \
1451                 encoding/base64.gox fmt.gox io.gox io/ioutil.gox log.gox \
1452                 mime.gox mime/multipart.gox net.gox os.gox path.gox sort.gox \
1453                 strconv.gox strings.gox sync.gox time.gox utf8.gox
1454         $(BUILDARCHIVE)
1455 http/libhttp.la: http/libhttp.a
1456 http/check: $(CHECK_DEPS)
1457         $(CHECK)
1458 .PHONY: http/check
1460 image/libimage.a: $(go_image_files) bufio.gox io.gox os.gox strconv.gox
1461         $(BUILDARCHIVE)
1462 image/libimage.la: image/libimage.a
1463 image/check: $(CHECK_DEPS)
1464         $(CHECK)
1465 .PHONY: image/check
1467 io/libio.a: $(go_io_files) os.gox runtime.gox sync.gox
1468         $(BUILDARCHIVE)
1469 io/libio.la: io/libio.a
1470 io/check: $(CHECK_DEPS)
1471         $(CHECK)
1472 .PHONY: io/check
1474 json/libjson.a: $(go_json_files) bytes.gox container/vector.gox fmt.gox \
1475                 io.gox math.gox os.gox reflect.gox runtime.gox strconv.gox \
1476                 strings.gox unicode.gox utf16.gox utf8.gox
1477         $(BUILDARCHIVE)
1478 json/libjson.la: json/libjson.a
1479 json/check: $(CHECK_DEPS)
1480         $(CHECK)
1481 .PHONY: json/check
1483 log/liblog.a: $(go_log_files) bytes.gox fmt.gox io.gox runtime.gox os.gox \
1484                 time.gox
1485         $(BUILDARCHIVE)
1486 log/liblog.la: log/liblog.a
1487 log/check: $(CHECK_DEPS)
1488         $(CHECK)
1489 .PHONY: log/check
1491 math/libmath.a: $(go_math_files)
1492         $(BUILDARCHIVE)
1493 math/libmath.la: math/libmath.a
1494 math/check: $(CHECK_DEPS)
1495         $(CHECK)
1496 .PHONY: math/check
1498 mime/libmime.a: $(go_mime_files) bufio.gox bytes.gox os.gox strings.gox \
1499                 sync.gox unicode.gox
1500         $(BUILDARCHIVE)
1501 mime/libmime.la: mime/libmime.a
1502 mime/check: $(CHECK_DEPS)
1503         $(CHECK)
1504 .PHONY: mime/check
1506 net/libnet.a: $(go_net_files) fmt.gox io.gox os.gox reflect.gox strconv.gox \
1507                 strings.gox sync.gox syscall.gox
1508         $(BUILDARCHIVE)
1509 net/libnet.la: net/libnet.a
1510 net/check: $(CHECK_DEPS)
1511         $(CHECK)
1512 .PHONY: net/check
1514 netchan/libnetchan.a: $(go_netchan_files) gob.gox log.gox net.gox os.gox \
1515                 reflect.gox sync.gox time.gox
1516         $(BUILDARCHIVE)
1517 netchan/libnetchan.la: netchan/libnetchan.a
1518 netchan/check: $(CHECK_DEPS)
1519         $(CHECK)
1520 .PHONY: netchan/check
1522 os/libos.a: $(go_os_files) sync.gox syscall.gox
1523         $(BUILDARCHIVE)
1524 os/libos.la: os/libos.a
1525 os/check: $(CHECK_DEPS)
1526         $(CHECK)
1527 .PHONY: os/check
1529 patch/libpatch.a: $(go_patch_files) bytes.gox compress/zlib.gox \
1530                 crypto/sha1.gox encoding/git85.gox fmt.gox io.gox os.gox \
1531                 path.gox strings.gox
1532         $(BUILDARCHIVE)
1533 patch/libpatch.la: patch/libpatch.a
1534 patch/check: $(CHECK_DEPS)
1535         $(CHECK)
1536 .PHONY: patch/check
1538 path/libpath.a: $(go_path_files) io/ioutil.gox os.gox sort.gox strings.gox \
1539                 utf8.gox
1540         $(BUILDARCHIVE)
1541 path/libpath.la: path/libpath.a
1542 path/check: $(CHECK_DEPS)
1543         $(CHECK)
1544 .PHONY: path/check
1546 rand/librand.a: $(go_rand_files) math.gox sync.gox
1547         $(BUILDARCHIVE)
1548 rand/librand.la: rand/librand.a
1549 rand/check: $(CHECK_DEPS)
1550         $(CHECK)
1551 .PHONY: rand/check
1553 reflect/libreflect.a: $(go_reflect_files) math.gox runtime.gox strconv.gox \
1554                 sync.gox
1555         $(BUILDARCHIVE)
1556 reflect/libreflect.la: reflect/libreflect.a
1557 reflect/check: $(CHECK_DEPS)
1558         $(CHECK)
1559 .PHONY: reflect/check
1561 regexp/libregexp.a: $(go_regexp_files) bytes.gox io.gox os.gox strings.gox \
1562                 utf8.gox
1563         $(BUILDARCHIVE)
1564 regexp/libregexp.la: regexp/libregexp.a
1565 regexp/check: $(CHECK_DEPS)
1566         $(CHECK)
1567 .PHONY: regexp/check
1569 rpc/librpc.a: $(go_rpc_files) bufio.gox fmt.gox gob.gox http.gox io.gox \
1570                 log.gox net.gox os.gox reflect.gox sort.gox strings.gox \
1571                 strconv.gox sync.gox template.gox unicode.gox utf8.gox
1572         $(BUILDARCHIVE)
1573 rpc/librpc.la: rpc/librpc.a
1574 rpc/check: $(CHECK_DEPS)
1575         $(CHECK)
1576 .PHONY: rpc/check
1578 runtime/libruntime.a: $(go_runtime_files)
1579         $(BUILDARCHIVE)
1580 runtime/libruntime.la: runtime/libruntime.a
1581 runtime/check: $(CHECK_DEPS)
1582         $(CHECK)
1583 .PHONY: runtime/check
1585 scanner/libscanner.a: $(go_scanner_files) bytes.gox fmt.gox io.gox os.gox \
1586                 unicode.gox utf8.gox
1587         $(BUILDARCHIVE)
1588 scanner/libscanner.la: scanner/libscanner.a
1589 scanner/check: $(CHECK_DEPS)
1590         $(CHECK)
1591 .PHONY: scanner/check
1593 smtp/libsmtp.a: $(go_smtp_files) crypto/tls.gox encoding/base64.gox io.gox \
1594                 net.gox net/textproto.gox os.gox strings.gox
1595         $(BUILDARCHIVE)
1596 smtp/libsmtp.la: smtp/libsmtp.a
1597 smtp/check: $(CHECK_DEPS)
1598         $(CHECK)
1599 .PHONY: smtp/check
1601 sort/libsort.a: $(go_sort_files)
1602         $(BUILDARCHIVE)
1603 sort/libsort.la: sort/libsort.a
1604 sort/check: $(CHECK_DEPS)
1605         $(CHECK)
1606 .PHONY: sort/check
1608 strconv/libstrconv.a: $(go_strconv_files) bytes.gox math.gox os.gox \
1609                 strings.gox unicode.gox utf8.gox
1610         $(BUILDARCHIVE)
1611 strconv/libstrconv.la: strconv/libstrconv.a
1612 strconv/check: $(CHECK_DEPS)
1613         $(CHECK)
1614 .PHONY: strconv/check
1616 strings/libstrings.a: $(go_strings_files) os.gox unicode.gox utf8.gox
1617         $(BUILDARCHIVE)
1618 strings/libstrings.la: strings/libstrings.a
1619 strings/check: $(CHECK_DEPS)
1620         $(CHECK)
1621 .PHONY: strings/check
1623 sync/libsync.a: $(go_sync_files) $(go_sync_c_files) runtime.gox
1624         test -d sync || $(MKDIR_P) sync
1625         $(LTGOCOMPILE) -c -o sync/mutex.$(OBJEXT) -fgo-prefix=libgo_sync $(srcdir)/go/sync/mutex.go $(srcdir)/go/sync/once.go $(srcdir)/go/sync/rwmutex.go
1626         $(LTCOMPILE) -c -o sync/cas.$(OBJEXT) $(srcdir)/go/sync/cas.c
1627         rm -f $@
1628         $(AR) rc $@ sync/mutex.$(OBJEXT) sync/cas.$(OBJEXT)
1629 sync/libsync.la: sync/libsync.a
1630         $(LINK) sync/mutex.lo sync/cas.lo
1631 sync/check: $(CHECK_DEPS)
1632         $(CHECK)
1633 .PHONY: sync/check
1635 syslog/libsyslog.a: $(go_syslog_files) fmt.gox log.gox net.gox os.gox
1636         $(BUILDARCHIVE)
1637 syslog/libsyslog.la: syslog/libsyslog.a
1638 syslog/check: $(CHECK_DEPS)
1639         $(CHECK)
1640 .PHONY: syslog/check
1642 tabwriter/libtabwriter.a: $(go_tabwriter_files) bytes.gox io.gox os.gox \
1643                 utf8.gox
1644         $(BUILDARCHIVE)
1645 tabwriter/libtabwriter.la: tabwriter/libtabwriter.a
1646 tabwriter/check: $(CHECK_DEPS)
1647         $(CHECK)
1648 .PHONY: tabwriter/check
1650 template/libtemplate.a: $(go_template_files) bytes.gox fmt.gox io.gox os.gox \
1651                 reflect.gox runtime.gox strings.gox container/vector.gox
1652         $(BUILDARCHIVE)
1653 template/libtemplate.la: template/libtemplate.a
1654 template/check: $(CHECK_DEPS)
1655         $(CHECK)
1656 .PHONY: template/check
1658 testing/libtesting.a: $(go_testing_files) flag.gox fmt.gox os.gox regexp.gox \
1659                 runtime.gox time.gox
1660         $(BUILDARCHIVE)
1661 testing/libtesting.la: testing/libtesting.a
1662 testing/check: $(CHECK_DEPS)
1663         $(CHECK)
1664 .PHONY: testing/check
1666 time/libtime.a: $(go_time_files) bytes.gox io/ioutil.gox os.gox strconv.gox \
1667                 sync.gox syscall.gox
1668         $(BUILDARCHIVE)
1669 time/libtime.la: time/libtime.a
1670 time/check: $(CHECK_DEPS)
1671         $(CHECK)
1672 .PHONY: time/check
1674 try/libtry.a: $(go_try_files) fmt.gox io.gox os.gox reflect.gox unicode.gox
1675         $(BUILDARCHIVE)
1676 try/libtry.la: try/libtry.a
1677 try/check: $(CHECK_DEPS)
1678         $(CHECK)
1679 .PHONY: try/check
1681 unicode/libunicode.a: $(go_unicode_files)
1682         $(BUILDARCHIVE)
1683 unicode/libunicode.la: unicode/libunicode.a
1684 unicode/check: $(CHECK_DEPS)
1685         $(CHECK)
1686 .PHONY: unicode/check
1688 utf16/libutf16.a: $(go_utf16_files) unicode.gox
1689         $(BUILDARCHIVE)
1690 utf16/libutf16.la: utf16/libutf16.a
1691 utf16/check: $(CHECK_DEPS)
1692         $(CHECK)
1693 .PHONY: utf16/check
1695 utf8/libutf8.a: $(go_utf8_files) unicode.gox
1696         $(BUILDARCHIVE)
1697 utf8/libutf8.la: utf8/libutf8.a
1698 utf8/check: $(CHECK_DEPS)
1699         $(CHECK)
1700 .PHONY: utf8/check
1702 websocket/libwebsocket.a: $(go_websocket_files) bufio.gox bytes.gox \
1703                 container/vector.gox crypto/md5.gox crypto/tls.gox \
1704                 encoding/binary.gox fmt.gox http.gox io.gox net.gox os.gox \
1705                 rand.gox strings.gox
1706         $(BUILDARCHIVE)
1707 websocket/libwebsocket.la: websocket/libwebsocket.a
1708 websocket/check: $(CHECK_DEPS)
1709         $(CHECK)
1710 .PHONY: websocket/check
1712 xml/libxml.a: $(go_xml_files) bufio.gox bytes.gox io.gox os.gox reflect.gox \
1713                 strconv.gox strings.gox unicode.gox utf8.gox
1714         $(BUILDARCHIVE)
1715 xml/libxml.la: xml/libxml.a
1716 xml/check: $(CHECK_DEPS)
1717         $(CHECK)
1718 .PHONY: xml/check
1720 archive/libtar.a: $(go_archive_tar_files) bytes.gox io.gox os.gox strconv.gox \
1721                 strings.gox
1722         $(BUILDARCHIVE)
1723 archive/libtar.la: archive/libtar.a
1724 archive/tar/check: $(CHECK_DEPS)
1725         @$(MKDIR_P) archive/tar
1726         $(CHECK)
1727 .PHONY: archive/tar/check
1729 archive/libzip.a: $(go_archive_zip_files) bufio.gox bytes.gox \
1730                 compress/flate.gox hash.gox hash/crc32.gox \
1731                 encoding/binary.gox io.gox os.gox
1732         $(BUILDARCHIVE)
1733 archive/libzip.la: archive/libzip.a
1734 archive/zip/check: $(CHECK_DEPS)
1735         @$(MKDIR_P) archive/zip
1736         $(CHECK)
1737 .PHONY: archive/zip/check
1739 compress/libflate.a: $(go_compress_flate_files) bufio.gox io.gox math.gox \
1740                 os.gox sort.gox strconv.gox
1741         $(BUILDARCHIVE)
1742 compress/libflate.la: compress/libflate.a
1743 compress/flate/check: $(CHECK_DEPS)
1744         @$(MKDIR_P) compress/flate
1745         $(CHECK)
1746 .PHONY: compress/flate/check
1748 compress/libgzip.a: $(go_compress_gzip_files) bufio.gox compress/flate.gox \
1749                 hash.gox hash/crc32.gox io.gox os.gox
1750         $(BUILDARCHIVE)
1751 compress/libgzip.la: compress/libgzip.a
1752 compress/gzip/check: $(CHECK_DEPS)
1753         @$(MKDIR_P) compress/gzip
1754         $(CHECK)
1755 .PHONY: compress/gzip/check
1757 compress/libzlib.a: $(go_compress_zlib_files) bufio.gox compress/flate.gox \
1758                 hash.gox hash/adler32.gox io.gox os.gox
1759         $(BUILDARCHIVE)
1760 compress/libzlib.la: compress/libzlib.a
1761 compress/zlib/check: $(CHECK_DEPS)
1762         @$(MKDIR_P) compress/zlib
1763         $(CHECK)
1764 .PHONY: compress/zlib/check
1766 container/libheap.a: $(go_container_heap_files) sort.gox
1767         $(BUILDARCHIVE)
1768 container/libheap.la: container/libheap.a
1769 container/heap/check: $(CHECK_DEPS)
1770         @$(MKDIR_P) container/heap
1771         $(CHECK)
1772 .PHONY: container/heap/check
1774 container/liblist.a: $(go_container_list_files)
1775         $(BUILDARCHIVE)
1776 container/liblist.la: container/liblist.a
1777 container/list/check: $(CHECK_DEPS)
1778         @$(MKDIR_P) container/list
1779         $(CHECK)
1780 .PHONY: container/list/check
1782 container/libring.a: $(go_container_ring_files)
1783         $(BUILDARCHIVE)
1784 container/libring.la: container/libring.a
1785 container/ring/check: $(CHECK_DEPS)
1786         @$(MKDIR_P) container/ring
1787         $(CHECK)
1788 .PHONY: container/ring/check
1790 container/libvector.a: $(go_container_vector_files)
1791         $(BUILDARCHIVE)
1792 container/libvector.la: container/libvector.a
1793 container/vector/check: $(CHECK_DEPS)
1794         @$(MKDIR_P) container/vector
1795         $(CHECK)
1796 .PHONY: container/vector/check
1798 crypto/libaes.a: $(go_crypto_aes_files) os.gox strconv.gox
1799         $(BUILDARCHIVE)
1800 crypto/libaes.la: crypto/libaes.a
1801 crypto/aes/check: $(CHECK_DEPS)
1802         @$(MKDIR_P) crypto/aes
1803         $(CHECK)
1804 .PHONY: crypto/aes/check
1806 crypto/libblock.a: $(go_crypto_block_files) fmt.gox io.gox os.gox strconv.gox
1807         $(BUILDARCHIVE)
1808 crypto/libblock.la: crypto/libblock.a
1809 crypto/block/check: $(CHECK_DEPS)
1810         @$(MKDIR_P) crypto/block
1811         $(CHECK)
1812 .PHONY: crypto/block/check
1814 crypto/libblowfish.a: $(go_crypto_blowfish_files) os.gox strconv.gox
1815         $(BUILDARCHIVE)
1816 crypto/libblowfish.la: crypto/libblowfish.a
1817 crypto/blowfish/check: $(CHECK_DEPS)
1818         @$(MKDIR_P) crypto/blowfish
1819         $(CHECK)
1820 .PHONY: crypto/blowfish/check
1822 crypto/libcast5.a: $(go_crypto_cast5_files) os.gox
1823         $(BUILDARCHIVE)
1824 crypto/libcast5.la: crypto/libcast5.a
1825 crypt/cast5/check: $(CHECK_DEPS)
1826         @$(MKDIR_P) crypto/cast5
1827         $(CHECK)
1828 .PHONY: crypto/cast5/check
1830 crypto/libhmac.a: $(go_crypto_hmac_files) crypto/md5.gox crypto/sha1.gox \
1831                 hash.gox os.gox
1832         $(BUILDARCHIVE)
1833 crypto/libhmac.la: crypto/libhmac.a
1834 crypto/hmac/check: $(CHECK_DEPS)
1835         @$(MKDIR_P) crypto/hmac
1836         $(CHECK)
1837 .PHONY: crypto/hmac/check
1839 crypto/libmd4.a: $(go_crypto_md4_files) hash.gox os.gox
1840         $(BUILDARCHIVE)
1841 crypto/libmd4.la: crypto/libmd4.a
1842 crypto/md4/check: $(CHECK_DEPS)
1843         @$(MKDIR_P) crypto/md4
1844         $(CHECK)
1845 .PHONY: crypto/md4/check
1847 crypto/libmd5.a: $(go_crypto_md5_files) hash.gox os.gox
1848         $(BUILDARCHIVE)
1849 crypto/libmd5.la: crypto/libmd5.a
1850 crypto/md5/check: $(CHECK_DEPS)
1851         @$(MKDIR_P) crypto/md5
1852         $(CHECK)
1853 .PHONY: crypto/md5/check
1855 crypto/libocsp.a: $(go_crypto_ocsp_files) asn1.gox crypto/rsa.gox \
1856                 crypto/sha1.gox crypto/x509.gox os.gox time.gox
1857         $(BUILDARCHIVE)
1858 crypto/libocsp.la: crypto/libocsp.a
1859 crypto/ocsp/check: $(CHECK_DEPS)
1860         @$(MKDIR_P) crypto/ocsp
1861         $(CHECK)
1862 .PHONY: crypto/ocsp/check
1864 crypto/librand.a: $(go_crypto_rand_files) crypto/aes.gox io.gox os.gox \
1865                 sync.gox time.gox
1866         $(BUILDARCHIVE)
1867 crypto/librand.la: crypto/librand.a
1868 crypto/rand/check: $(CHECK_DEPS)
1869         @$(MKDIR_P) crypto/rand
1870         $(CHECK)
1871 .PHONY: crypto/rand/check
1873 crypto/librc4.a: $(go_crypto_rc4_files) os.gox strconv.gox
1874         $(BUILDARCHIVE)
1875 crypto/librc4.la: crypto/librc4.a
1876 crypto/rc4/check: $(CHECK_DEPS)
1877         @$(MKDIR_P) crypto/rc4
1878         $(CHECK)
1879 .PHONY: crypto/rc4/check
1881 crypto/libripemd160.a: $(go_crypto_ripemd160_files) hash.gox os.gox
1882         $(BUILDARCHIVE)
1883 crypto/libripemd160.la: crypto/libripemd160.a
1884 crypto/ripemd160/check: $(CHECK_DEPS)
1885         @$(MKDIR_P) crypto/ripemd160
1886         $(CHECK)
1887 .PHONY: crypto/ripemd160/check
1889 crypto/librsa.a: $(go_crypto_rsa_files) big.gox crypto/sha1.gox \
1890                 crypto/subtle.gox encoding/hex.gox hash.gox io.gox os.gox
1891         $(BUILDARCHIVE)
1892 crypto/librsa.la: crypto/librsa.a
1893 crypto/rsa/check: $(CHECK_DEPS)
1894         @$(MKDIR_P) crypto/rsa
1895         $(CHECK)
1896 .PHONY: crypto/rsa/check
1898 crypto/libsha1.a: $(go_crypto_sha1_files) hash.gox os.gox
1899         $(BUILDARCHIVE)
1900 crypto/libsha1.la: crypto/libsha1.a
1901 crypto/sha1/check: $(CHECK_DEPS)
1902         @$(MKDIR_P) crypto/sha1
1903         $(CHECK)
1904 .PHONY: crypto/sha1/check
1906 crypto/libsha256.a: $(go_crypto_sha256_files) hash.gox os.gox
1907         $(BUILDARCHIVE)
1908 crypto/libsha256.la: crypto/libsha256.a
1909 crypto/sha256/check: $(CHECK_DEPS)
1910         @$(MKDIR_P) crypto/sha256
1911         $(CHECK)
1912 .PHONY: crypto/sha256/check
1914 crypto/libsha512.a: $(go_crypto_sha512_files) hash.gox os.gox
1915         $(BUILDARCHIVE)
1916 crypto/libsha512.la: crypto/libsha512.a
1917 crypto/sha512/check: $(CHECK_DEPS)
1918         @$(MKDIR_P) crypto/sha512
1919         $(CHECK)
1920 .PHONY: crypto/sha512/check
1922 crypto/libsubtle.a: $(go_crypto_subtle_files)
1923         $(BUILDARCHIVE)
1924 crypto/libsubtle.la: crypto/libsubtle.a
1925 crypto/subtle/check: $(CHECK_DEPS)
1926         @$(MKDIR_P) crypto/subtle
1927         $(CHECK)
1928 .PHONY: crypto/subtle/check
1930 crypto/libtls.a: $(go_crypto_tls_files) bufio.gox bytes.gox container/list.gox \
1931                 crypto/hmac.gox crypto/md5.gox crypto/rc4.gox crypto/rand.gox \
1932                 crypto/rsa.gox crypto/sha1.gox crypto/subtle.gox \
1933                 crypto/rsa.gox crypto/x509.gox encoding/pem.gox fmt.gox \
1934                 hash.gox io.gox io/ioutil.gox net.gox os.gox strings.gox \
1935                 sync.gox time.gox
1936         $(BUILDARCHIVE)
1937 crypto/libtls.la: crypto/libtls.a
1938 crypto/tls/check: $(CHECK_DEPS)
1939         @$(MKDIR_P) crypto/tls
1940         $(CHECK)
1941 .PHONY: crypto/tls/check
1943 crypto/libx509.a: $(go_crypto_x509_files) asn1.gox big.gox \
1944                 container/vector.gox crypto/rsa.gox crypto/sha1.gox hash.gox \
1945                 os.gox strings.gox time.gox
1946         $(BUILDARCHIVE)
1947 crypto/libx509.la: crypto/libx509.a
1948 crypto/x509/check: $(CHECK_DEPS)
1949         @$(MKDIR_P) crypto/x509
1950         $(CHECK)
1951 .PHONY: crypto/x509/check
1953 crypto/libxtea.a: $(go_crypto_xtea_files) os.gox strconv.gox
1954         $(BUILDARCHIVE)
1955 crypto/libxtea.la: crypto/libxtea.a
1956 crypto/xtea/check: $(CHECK_DEPS)
1957         @$(MKDIR_P) crypto/xtea
1958         $(CHECK)
1959 .PHONY: crypto/xtea/check
1961 debug/libdwarf.a: $(go_debug_dwarf_files) encoding/binary.gox os.gox \
1962                 strconv.gox
1963         $(BUILDARCHIVE)
1964 debug/libdwarf.la: debug/libdwarf.a
1965 debug/dwarf/check: $(CHECK_DEPS)
1966         @$(MKDIR_P) debug/dwarf
1967         $(CHECK)
1968 .PHONY: debug/dwarf/check
1970 debug/libelf.a: $(go_debug_elf_files) bytes.gox debug/dwarf.gox \
1971                 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
1972         $(BUILDARCHIVE)
1973 debug/libelf.la: debug/libelf.a
1974 debug/elf/check: $(CHECK_DEPS)
1975         @$(MKDIR_P) debug/elf
1976         $(CHECK)
1977 .PHONY: debug/elf/check
1979 debug/libgosym.a: $(go_debug_gosym_files) encoding/binary.gox fmt.gox os.gox \
1980                 strconv.gox strings.gox
1981         $(BUILDARCHIVE)
1982 debug/libgosym.la: debug/libgosym.a
1983 debug/gosym/check: $(CHECK_DEPS)
1984         @$(MKDIR_P) debug/gosym
1985         $(CHECK)
1986 .PHONY: debug/gosym/check
1988 debug/libmacho.a: $(go_debug_macho_files) bytes.gox debug/dwarf.gox \
1989                 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
1990         $(BUILDARCHIVE)
1991 debug/libmacho.la: debug/libmacho.a
1992 debug/macho/check: $(CHECK_DEPS)
1993         @$(MKDIR_P) debug/macho
1994         $(CHECK)
1995 .PHONY: debug/macho/check
1997 debug/libpe.a: $(go_debug_pe_files) debug/dwarf.gox encoding/binary.gox \
1998                 fmt.gox io.gox os.gox strconv.gox
1999         $(BUILDARCHIVE)
2000 debug/libpe.la: debug/libpe.a
2001 debug/pe/check: $(CHECK_DEPS)
2002         @$(MKDIR_P) debug/pe
2003         $(CHECK)
2004 .PHONY: debug/pe/check
2006 debug/libproc.a: $(go_debug_proc_files) container/vector.gox fmt.gox \
2007                 io/ioutil.gox os.gox runtime.gox strconv.gox strings.gox \
2008                 sync.gox syscall.gox
2009         $(BUILDARCHIVE)
2010 debug/libproc.la: debug/libproc.a
2011 debug/proc/check: $(CHECK_DEPS)
2012         @$(MKDIR_P) debug/proc
2013         $(CHECK)
2014 .PHONY: debug/proc/check
2016 encoding/libascii85.a: $(go_encoding_ascii85_files) io.gox os.gox strconv.gox
2017         $(BUILDARCHIVE)
2018 encoding/libascii85.la: encoding/libascii85.a
2019 encoding/ascii85/check: $(CHECK_DEPS)
2020         @$(MKDIR_P) encoding/ascii85
2021         $(CHECK)
2022 .PHONY: encoding/ascii85/check
2024 encoding/libbase64.a: $(go_encoding_base64_files) io.gox os.gox strconv.gox
2025         $(BUILDARCHIVE)
2026 encoding/libbase64.la: encoding/libbase64.a
2027 encoding/base64/check: $(CHECK_DEPS)
2028         @$(MKDIR_P) encoding/base64
2029         $(CHECK)
2030 .PHONY: encoding/base64/check
2032 encoding/libbinary.a: $(go_encoding_binary_files) io.gox math.gox os.gox \
2033                 reflect.gox
2034         $(BUILDARCHIVE)
2035 encoding/libbinary.la: encoding/libbinary.a
2036 encoding/binary/check: $(CHECK_DEPS)
2037         @$(MKDIR_P) encoding/binary
2038         $(CHECK)
2039 .PHONY: encoding/binary/check
2041 encoding/libgit85.a: $(go_encoding_git85_files) bytes.gox io.gox os.gox \
2042                 strconv.gox
2043         $(BUILDARCHIVE)
2044 encoding/libgit85.la: encoding/libgit85.a
2045 encoding/git85/check: $(CHECK_DEPS)
2046         @$(MKDIR_P) encoding/git85
2047         $(CHECK)
2048 .PHONY: encoding/git85/check
2050 encoding/libhex.a: $(go_encoding_hex_files) os.gox strconv.gox
2051         $(BUILDARCHIVE)
2052 encoding/libhex.la: encoding/libhex.a
2053 encoding/hex/check: $(CHECK_DEPS)
2054         @$(MKDIR_P) encoding/hex
2055         $(CHECK)
2056 .PHONY: encoding/hex/check
2058 encoding/libpem.a: $(go_encoding_pem_files) bytes.gox encoding/base64.gox
2059         $(BUILDARCHIVE)
2060 encoding/libpem.la: encoding/libpem.a
2061 encoding/pem/check: $(CHECK_DEPS)
2062         @$(MKDIR_P) encoding/pem
2063         $(CHECK)
2064 .PHONY: encoding/pem/check
2066 exp/libdatafmt.a: $(go_exp_datafmt_files) bytes.gox container/vector.gox \
2067                 fmt.gox go/scanner.gox go/token.gox io.gox os.gox reflect.gox \
2068                 runtime.gox strconv.gox strings.gox
2069         $(BUILDARCHIVE)
2070 exp/libdatafmt.la: exp/libdatafmt.a
2071 exp/datafmt/check: $(CHECK_DEPS)
2072         @$(MKDIR_P) exp/datafmt
2073         $(CHECK)
2074 .PHONY: exp/datafmt/check
2076 exp/libdraw.a: $(go_exp_draw_files) image.gox os.gox
2077         $(BUILDARCHIVE)
2078 exp/libdraw.la: exp/libdraw.a
2079 exp/draw/check: $(CHECK_DEPS)
2080         @$(MKDIR_P) exp/draw
2081         $(CHECK)
2082 .PHONY: exp/draw/check
2084 exp/libeval.a: $(go_exp_eval_files) big.gox go/ast.gox go/parser.gox \
2085                 go/scanner.gox go/token.gox fmt.gox log.gox strconv.gox \
2086                 strings.gox os.gox reflect.gox runtime.gox sort.gox template.gox
2087         $(BUILDARCHIVE)
2088 exp/libeval.la: exp/libeval.a
2089 exp/eval/check: $(CHECK_DEPS)
2090         @$(MKDIR_P) exp/eval
2091         $(CHECK)
2092 .PHONY: exp/eval/check
2094 go/libast.a: $(go_go_ast_files) fmt.gox go/token.gox io.gox os.gox \
2095                 reflect.gox unicode.gox utf8.gox
2096         $(BUILDARCHIVE)
2097 go/libast.la: go/libast.a
2098 go/ast/check: $(CHECK_DEPS)
2099         @$(MKDIR_P) go/ast
2100         $(CHECK)
2101 .PHONY: go/ast/check
2103 go/libdoc.a: $(go_go_doc_files) go/ast.gox go/token.gox io.gox regexp.gox \
2104                 sort.gox strings.gox template.gox
2105         $(BUILDARCHIVE)
2106 go/libdoc.la: go/libdoc.a
2107 go/doc/check: $(CHECK_DEPS)
2108         @$(MKDIR_P) go/doc
2109         $(CHECK)
2110 .PHONY: go/doc/check
2112 go/libparser.a: $(go_go_parser_files) bytes.gox fmt.gox go/ast.gox \
2113                 go/scanner.gox go/token.gox io.gox io/ioutil.gox os.gox \
2114                 path.gox strings.gox
2115         $(BUILDARCHIVE)
2116 go/libparser.la: go/libparser.a
2117 go/parser/check: $(CHECK_DEPS)
2118         @$(MKDIR_P) go/parser
2119         $(CHECK)
2120 .PHONY: go/parser/check
2122 go/libprinter.a: $(go_go_printer_files) bytes.gox fmt.gox go/ast.gox \
2123                 go/token.gox io.gox os.gox reflect.gox runtime.gox \
2124                 strings.gox tabwriter.gox
2125         $(BUILDARCHIVE)
2126 go/libprinter.la: go/libprinter.a
2127 go/printer/check: $(CHECK_DEPS)
2128         @$(MKDIR_P) go/printer
2129         $(CHECK)
2130 .PHONY: go/printer/check
2132 go/libscanner.a: $(go_go_scanner_files) bytes.gox container/vector.gox fmt.gox \
2133                 go/token.gox io.gox os.gox sort.gox strconv.gox unicode.gox \
2134                 utf8.gox
2135         $(BUILDARCHIVE)
2136 go/libscanner.la: go/libscanner.a
2137 go/scanner/check: $(CHECK_DEPS)
2138         @$(MKDIR_P) go/scanner
2139         $(CHECK)
2140 .PHONY: go/scanner/check
2142 go/libtoken.a: $(go_go_token_files) fmt.gox strconv.gox
2143         $(BUILDARCHIVE)
2144 go/libtoken.la: go/libtoken.a
2145 go/token/check: $(CHECK_DEPS)
2146         @$(MKDIR_P) go/token
2147         $(CHECK)
2148 .PHONY: go/token/check
2150 go/libtypechecker.a: $(go_go_typechecker_files) fmt.gox go/ast.gox \
2151                 go/token.gox go/scanner.gox os.gox
2152         $(BUILDARCHIVE)
2153 go/libtypechecker.la: go/libtypechecker.a
2154 go/typechecker/check: $(CHECK_DEPS)
2155         @$(MKDIR_P) go/typechecker
2156         $(CHECK)
2157 .PHONY: go/typechecker/check
2159 hash/libadler32.a: $(go_hash_adler32_files) hash.gox os.gox
2160         $(BUILDARCHIVE)
2161 hash/libadler32.la: hash/libadler32.a
2162 hash/adler32/check: $(CHECK_DEPS)
2163         @$(MKDIR_P) hash/adler32
2164         $(CHECK)
2165 .PHONY: hash/adler32/check
2167 hash/libcrc32.a: $(go_hash_crc32_files) hash.gox os.gox
2168         $(BUILDARCHIVE)
2169 hash/libcrc32.la: hash/libcrc32.a
2170 hash/crc32/check: $(CHECK_DEPS)
2171         @$(MKDIR_P) hash/crc32
2172         $(CHECK)
2173 .PHONY: hash/crc32/check
2175 hash/libcrc64.a: $(go_hash_crc64_files) hash.gox os.gox
2176         $(BUILDARCHIVE)
2177 hash/libcrc64.la: hash/libcrc64.a
2178 hash/crc64/check: $(CHECK_DEPS)
2179         @$(MKDIR_P) hash/crc64
2180         $(CHECK)
2181 .PHONY: hash/crc64/check
2183 http/libpprof.a: $(go_http_pprof_files) bufio.gox fmt.gox http.gox os.gox \
2184                 runtime.gox runtime/pprof.gox strconv.gox strings.gox
2185         $(BUILDARCHIVE)
2186 http/libpprof.la: http/libpprof.a
2187 http/pprof/check: $(CHECK_DEPS)
2188         @$(MKDIR_P) http/pprof
2189         $(CHECK)
2190 .PHONY: http/pprof/check
2192 image/libjpeg.a: $(go_image_jpeg_files) bufio.gox image.gox io.gox os.gox
2193         $(BUILDARCHIVE)
2194 image/libjpeg.la: image/libjpeg.a
2195 image/jpeg/check: $(CHECK_DEPS)
2196         @$(MKDIR_P) image/jpeg
2197         $(CHECK)
2198 .PHONY: image/jpeg/check
2200 image/libpng.a: $(go_image_png_files) bufio.gox compress/zlib.gox fmt.gox \
2201                 hash.gox hash/crc32.gox image.gox io.gox os.gox strconv.gox
2202         $(BUILDARCHIVE)
2203 image/libpng.la: image/libpng.a
2204 image/png/check: $(CHECK_DEPS)
2205         @$(MKDIR_P) image/png
2206         $(CHECK)
2207 .PHONY: image/png/check
2209 index/libsuffixarray.a: $(go_index_suffixarray_files) bytes.gox \
2210                 container/vector.gox sort.gox
2211         $(BUILDARCHIVE)
2212 index/libsuffixarray.la: index/libsuffixarray.a
2213 index/suffixarray/check: $(CHECK_DEPS)
2214         @$(MKDIR_P) index/suffixarray
2215         $(CHECK)
2216 .PHONY: index/suffixarray/check
2218 io/libioutil.a: $(go_io_ioutil_files) bytes.gox io.gox os.gox sort.gox \
2219                 strconv.gox
2220         $(BUILDARCHIVE)
2221 io/libioutil.la: io/libioutil.a
2222 io/ioutil/check: $(CHECK_DEPS)
2223         @$(MKDIR_P) io/ioutil
2224         $(CHECK)
2225 .PHONY: io/ioutil/check
2227 mime/libmultipart.a: $(go_mime_multipart_files) bufio.gox bytes.gox io.gox \
2228                 mime.gox os.gox regexp.gox strings.gox
2229         $(BUILDARCHIVE)
2230 mime/libmultipart.la: mime/libmultipart.a
2231 mime/multipart/check: $(CHECK_DEPS)
2232         @$(MKDIR_P) mime/multipart
2233         $(CHECK)
2234 .PHONY: mime/multipart/check
2236 net/libdict.a: $(go_net_dict_files) container/vector.gox net/textproto.gox \
2237                 os.gox strconv.gox strings.gox
2238         $(BUILDARCHIVE)
2239 net/libdict.la: net/libdict.a
2241 net/libtextproto.a: $(go_net_textproto_files) bufio.gox bytes.gox \
2242                 container/vector.gox fmt.gox io.gox io/ioutil.gox net.gox \
2243                 os.gox strconv.gox sync.gox
2244         $(BUILDARCHIVE)
2245 net/libtextproto.la: net/libtextproto.a
2246 net/textproto/check: $(CHECK_DEPS)
2247         @$(MKDIR_P) net/textproto
2248         $(CHECK)
2249 .PHONY: net/textproto/check
2251 os/libsignal.a: $(go_os_signal_files) runtime.gox strconv.gox
2252         $(BUILDARCHIVE)
2253 os/libsignal.la: os/libsignal.a
2254 os/signal/check: $(CHECK_DEPS)
2255         @$(MKDIR_P) os/signal
2256         $(CHECK)
2257 .PHONY: os/signal/check
2259 unix.go: $(srcdir)/go/os/signal/mkunix.sh sysinfo.go
2260         $(SHELL) $(srcdir)/go/os/signal/mkunix.sh sysinfo.go > $@.tmp
2261         mv -f $@.tmp $@
2263 rpc/libjsonrpc.a: $(go_rpc_jsonrpc_files) fmt.gox io.gox json.gox net.gox \
2264                 os.gox rpc.gox sync.gox
2265         $(BUILDARCHIVE)
2266 rpc/libjsonrpc.la: rpc/libjsonrpc.a
2267 rpc/jsonrpc/check: $(CHECK_DEPS)
2268         @$(MKDIR_P) rpc/jsonrpc
2269         $(CHECK)
2270 .PHONY: rpc/jsonrpc/check
2272 runtime/libpprof.a: $(go_runtime_pprof_files) bufio.gox fmt.gox io.gox os.gox \
2273                 runtime.gox
2274         $(BUILDARCHIVE)
2275 runtime/libpprof.la: runtime/libpprof.a
2276 runtime/pprof/check: $(CHECK_DEPS)
2277         @$(MKDIR_P) runtime/pprof
2278         $(CHECK)
2279 .PHONY: runtime/pprof/check
2281 testing/libiotest.a: $(go_testing_iotest_files) io.gox log.gox os.gox
2282         $(BUILDARCHIVE)
2283 testing/libiotest.la: testing/libiotest.a
2284 testing/iotest/check: $(CHECK_DEPS)
2285         @$(MKDIR_P) testing/iotest
2286         $(CHECK)
2287 .PHONY: testing/iotest/check
2289 testing/libquick.a: $(go_testing_quick_files) flag.gox fmt.gox math.gox \
2290                 os.gox rand.gox reflect.gox strings.gox
2291         $(BUILDARCHIVE)
2292 testing/libquick.la: testing/libquick.a
2293 testing/quick/check: $(CHECK_DEPS)
2294         @$(MKDIR_P) testing/quick
2295         $(CHECK)
2296 .PHONY: testing/quick/check
2298 testing/libscript.a: $(go_testing_script_files) fmt.gox os.gox rand.gox \
2299                 reflect.gox strings.gox
2300         $(BUILDARCHIVE)
2301 testing/libscript.la: testing/libscript.a
2302 testing/script/check: $(CHECK_DEPS)
2303         @$(MKDIR_P) testing/script
2304         $(CHECK)
2305 .PHONY: testing/script/check
2307 sysinfo.go: $(srcdir)/mksysinfo.sh config.h
2308         $(SHELL) $(srcdir)/mksysinfo.sh
2309 syscalls/libsyscall.a: $(go_syscall_files) $(go_syscall_c_files) sync.gox
2310         rm -f syscall.gox syscalls/libsyscall.a
2311         test -d syscalls || $(MKDIR_P) syscalls
2312         files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e's/[^ ]*\.c//g'`; \
2313         $(LTGOCOMPILE) -c -fgo-prefix="libgo_syscalls" -o syscalls/syscall.$(OBJEXT) $$files
2314         $(LTCOMPILE) -c -o syscalls/errno.$(OBJEXT) $(srcdir)/syscalls/errno.c
2315         $(AR) rc syscalls/libsyscall.a syscalls/syscall.$(OBJEXT) syscalls/errno.$(OBJEXT)
2316 syscalls/libsyscall.la: syscalls/libsyscall.a
2317         $(LINK) syscalls/syscall.lo syscalls/errno.lo
2319 # How to build a .gox file from a .a file.
2320 BUILDGOX = \
2321         set -e; \
2322         rm -f $@.$(OBJEXT); \
2323         $(CC) -r -nostdlib -o $@.$(OBJEXT) -Wl,--whole-archive $<; \
2324         $(OBJCOPY) -j .go_export $@.$(OBJEXT) $@.tmp; \
2325         mv -f $@.tmp $@; \
2326         rm -f $@.$(OBJEXT)
2328 asn1.gox: asn1/libasn1.a
2329         $(BUILDGOX)
2330 big.gox: big/libbig.a
2331         $(BUILDGOX)
2332 bufio.gox: bufio/libbufio.a
2333         $(BUILDGOX)
2334 bytes.gox: bytes/libbytes.a
2335         $(BUILDGOX)
2336 cmath.gox: cmath/libcmath.a
2337         $(BUILDGOX)
2338 ebnf.gox: ebnf/libebnf.a
2339         $(BUILDGOX)
2340 exec.gox: exec/libexec.a
2341         $(BUILDGOX)
2342 expvar.gox: expvar/libexpvar.a
2343         $(BUILDGOX)
2344 flag.gox: flag/libflag.a
2345         $(BUILDGOX)
2346 fmt.gox: fmt/libfmt.a
2347         $(BUILDGOX)
2348 gob.gox: gob/libgob.a
2349         $(BUILDGOX)
2350 hash.gox: hash/libhash.a
2351         $(BUILDGOX)
2352 html.gox: html/libhtml.a
2353         $(BUILDGOX)
2354 http.gox: http/libhttp.a
2355         $(BUILDGOX)
2356 image.gox: image/libimage.a
2357         $(BUILDGOX)
2358 io.gox: io/libio.a
2359         $(BUILDGOX)
2360 json.gox: json/libjson.a
2361         $(BUILDGOX)
2362 log.gox: log/liblog.a
2363         $(BUILDGOX)
2364 math.gox: math/libmath.a
2365         $(BUILDGOX)
2366 mime.gox: mime/libmime.a
2367         $(BUILDGOX)
2368 net.gox: net/libnet.a
2369         $(BUILDGOX)
2370 netchan.gox: netchan/libnetchan.a
2371         $(BUILDGOX)
2372 os.gox: os/libos.a
2373         $(BUILDGOX)
2374 patch.gox: patch/libpatch.a
2375         $(BUILDGOX)
2376 path.gox: path/libpath.a
2377         $(BUILDGOX)
2378 rand.gox: rand/librand.a
2379         $(BUILDGOX)
2380 reflect.gox: reflect/libreflect.a
2381         $(BUILDGOX)
2382 regexp.gox: regexp/libregexp.a
2383         $(BUILDGOX)
2384 rpc.gox: rpc/librpc.a
2385         $(BUILDGOX)
2386 runtime.gox: runtime/libruntime.a
2387         $(BUILDGOX)
2388 scanner.gox: scanner/libscanner.a
2389         $(BUILDGOX)
2390 smtp.gox: smtp/libsmtp.a
2391         $(BUILDGOX)
2392 sort.gox: sort/libsort.a
2393         $(BUILDGOX)
2394 strconv.gox: strconv/libstrconv.a
2395         $(BUILDGOX)
2396 strings.gox: strings/libstrings.a
2397         $(BUILDGOX)
2398 sync.gox: sync/libsync.a
2399         $(BUILDGOX)
2400 syslog.gox: syslog/libsyslog.a
2401         $(BUILDGOX)
2402 syscall.gox: syscalls/libsyscall.a
2403         $(BUILDGOX)
2404 tabwriter.gox: tabwriter/libtabwriter.a
2405         $(BUILDGOX)
2406 template.gox: template/libtemplate.a
2407         $(BUILDGOX)
2408 testing.gox: testing/libtesting.a
2409         $(BUILDGOX)
2410 time.gox: time/libtime.a
2411         $(BUILDGOX)
2412 try.gox: try/libtry.a
2413         $(BUILDGOX)
2414 unicode.gox: unicode/libunicode.a
2415         $(BUILDGOX)
2416 utf16.gox: utf16/libutf16.a
2417         $(BUILDGOX)
2418 utf8.gox: utf8/libutf8.a
2419         $(BUILDGOX)
2420 websocket.gox: websocket/libwebsocket.a
2421         $(BUILDGOX)
2422 xml.gox: xml/libxml.a
2423         $(BUILDGOX)
2425 archive/tar.gox: archive/libtar.a
2426         $(BUILDGOX)
2427 archive/zip.gox: archive/libzip.a
2428         $(BUILDGOX)
2430 compress/flate.gox: compress/libflate.a
2431         $(BUILDGOX)
2432 compress/gzip.gox: compress/libgzip.a
2433         $(BUILDGOX)
2434 compress/zlib.gox: compress/libzlib.a
2435         $(BUILDGOX)
2437 container/heap.gox: container/libheap.a
2438         $(BUILDGOX)
2439 container/list.gox: container/liblist.a
2440         $(BUILDGOX)
2441 container/ring.gox: container/libring.a
2442         $(BUILDGOX)
2443 container/vector.gox: container/libvector.a
2444         $(BUILDGOX)
2446 crypto/aes.gox: crypto/libaes.a
2447         $(BUILDGOX)
2448 crypto/block.gox: crypto/libblock.a
2449         $(BUILDGOX)
2450 crypto/blowfish.gox: crypto/libblowfish.a
2451         $(BUILDGOX)
2452 crypto/cast5.gox: crypto/libcast5.a
2453         $(BUILDGOX)
2454 crypto/hmac.gox: crypto/libhmac.a
2455         $(BUILDGOX)
2456 crypto/md4.gox: crypto/libmd4.a
2457         $(BUILDGOX)
2458 crypto/md5.gox: crypto/libmd5.a
2459         $(BUILDGOX)
2460 crypto/ocsp.gox: crypto/libocsp.a
2461         $(BUILDGOX)
2462 crypto/rand.gox: crypto/librand.a
2463         $(BUILDGOX)
2464 crypto/rc4.gox: crypto/librc4.a
2465         $(BUILDGOX)
2466 crypto/ripemd160.gox: crypto/libripemd160.a
2467         $(BUILDGOX)
2468 crypto/rsa.gox: crypto/librsa.a
2469         $(BUILDGOX)
2470 crypto/sha1.gox: crypto/libsha1.a
2471         $(BUILDGOX)
2472 crypto/sha256.gox: crypto/libsha256.a
2473         $(BUILDGOX)
2474 crypto/sha512.gox: crypto/libsha512.a
2475         $(BUILDGOX)
2476 crypto/subtle.gox: crypto/libsubtle.a
2477         $(BUILDGOX)
2478 crypto/tls.gox: crypto/libtls.a
2479         $(BUILDGOX)
2480 crypto/x509.gox: crypto/libx509.a
2481         $(BUILDGOX)
2482 crypto/xtea.gox: crypto/libxtea.a
2483         $(BUILDGOX)
2485 debug/dwarf.gox: debug/libdwarf.a
2486         $(BUILDGOX)
2487 debug/elf.gox: debug/libelf.a
2488         $(BUILDGOX)
2489 debug/gosym.gox: debug/libgosym.a
2490         $(BUILDGOX)
2491 debug/macho.gox: debug/libmacho.a
2492         $(BUILDGOX)
2493 debug/pe.gox: debug/libpe.a
2494         $(BUILDGOX)
2495 debug/proc.gox: debug/libproc.a
2496         $(BUILDGOX)
2498 encoding/ascii85.gox: encoding/libascii85.a
2499         $(BUILDGOX)
2500 encoding/base64.gox: encoding/libbase64.a
2501         $(BUILDGOX)
2502 encoding/binary.gox: encoding/libbinary.a
2503         $(BUILDGOX)
2504 encoding/git85.gox: encoding/libgit85.a
2505         $(BUILDGOX)
2506 encoding/hex.gox: encoding/libhex.a
2507         $(BUILDGOX)
2508 encoding/pem.gox: encoding/libpem.a
2509         $(BUILDGOX)
2511 exp/datafmt.gox: exp/libdatafmt.a
2512         $(BUILDGOX)
2513 exp/draw.gox: exp/libdraw.a
2514         $(BUILDGOX)
2515 exp/eval.gox: exp/libeval.a
2516         $(BUILDGOX)
2518 go/ast.gox: go/libast.a
2519         $(BUILDGOX)
2520 go/doc.gox: go/libdoc.a
2521         $(BUILDGOX)
2522 go/parser.gox: go/libparser.a
2523         $(BUILDGOX)
2524 go/printer.gox: go/libprinter.a
2525         $(BUILDGOX)
2526 go/scanner.gox: go/libscanner.a
2527         $(BUILDGOX)
2528 go/token.gox: go/libtoken.a
2529         $(BUILDGOX)
2530 go/typechecker.gox: go/libtypechecker.a
2531         $(BUILDGOX)
2533 hash/adler32.gox: hash/libadler32.a
2534         $(BUILDGOX)
2535 hash/crc32.gox: hash/libcrc32.a
2536         $(BUILDGOX)
2537 hash/crc64.gox: hash/libcrc64.a
2538         $(BUILDGOX)
2540 http/pprof.gox: http/libpprof.a
2541         $(BUILDGOX)
2543 image/jpeg.gox: image/libjpeg.a
2544         $(BUILDGOX)
2545 image/png.gox: image/libpng.a
2546         $(BUILDGOX)
2548 index/suffixarray.gox: index/libsuffixarray.a
2549         $(BUILDGOX)
2551 io/ioutil.gox: io/libioutil.a
2552         $(BUILDGOX)
2554 mime/multipart.gox: mime/libmultipart.a
2555         $(BUILDGOX)
2557 net/dict.gox: net/libdict.a
2558         $(BUILDGOX)
2559 net/textproto.gox: net/libtextproto.a
2560         $(BUILDGOX)
2562 os/signal.gox: os/libsignal.a
2563         $(BUILDGOX)
2565 rpc/jsonrpc.gox: rpc/libjsonrpc.a
2566         $(BUILDGOX)
2568 runtime/pprof.gox: runtime/libpprof.a
2569         $(BUILDGOX)
2571 testing/iotest.gox: testing/libiotest.a
2572         $(BUILDGOX)
2573 testing/quick.gox: testing/libquick.a
2574         $(BUILDGOX)
2575 testing/script.gox: testing/libscript.a
2576         $(BUILDGOX)
2578 TEST_PACKAGES = \
2579         asn1/check \
2580         big/check \
2581         bufio/check \
2582         bytes/check \
2583         cmath/check \
2584         ebnf/check \
2585         exec/check \
2586         expvar/check \
2587         flag/check \
2588         fmt/check \
2589         gob/check \
2590         html/check \
2591         http/check \
2592         io/check \
2593         json/check \
2594         log/check \
2595         math/check \
2596         mime/check \
2597         net/check \
2598         netchan/check \
2599         os/check \
2600         patch/check \
2601         path/check \
2602         rand/check \
2603         reflect/check \
2604         regexp/check \
2605         rpc/check \
2606         runtime/check \
2607         scanner/check \
2608         smtp/check \
2609         sort/check \
2610         strconv/check \
2611         strings/check \
2612         sync/check \
2613         syslog/check \
2614         tabwriter/check \
2615         template/check \
2616         time/check \
2617         try/check \
2618         unicode/check \
2619         utf16/check \
2620         utf8/check \
2621         websocket/check \
2622         xml/check \
2623         archive/tar/check \
2624         archive/zip/check \
2625         compress/flate/check \
2626         compress/gzip/check \
2627         compress/zlib/check \
2628         container/heap/check \
2629         container/list/check \
2630         container/ring/check \
2631         container/vector/check \
2632         crypto/aes/check \
2633         crypto/block/check \
2634         crypto/blowfish/check \
2635         crypto/cast5/check \
2636         crypto/hmac/check \
2637         crypto/md4/check \
2638         crypto/md5/check \
2639         crypto/ocsp/check \
2640         crypto/rand/check \
2641         crypto/rc4/check \
2642         crypto/ripemd160/check \
2643         crypto/rsa/check \
2644         crypto/sha1/check \
2645         crypto/sha256/check \
2646         crypto/sha512/check \
2647         crypto/subtle/check \
2648         crypto/tls/check \
2649         crypto/x509/check \
2650         crypto/xtea/check \
2651         debug/dwarf/check \
2652         debug/elf/check \
2653         debug/macho/check \
2654         debug/pe/check \
2655         encoding/ascii85/check \
2656         encoding/base64/check \
2657         encoding/binary/check \
2658         encoding/git85/check \
2659         encoding/hex/check \
2660         encoding/pem/check \
2661         exp/datafmt/check \
2662         exp/draw/check \
2663         exp/eval/check \
2664         go/parser/check \
2665         go/printer/check \
2666         go/scanner/check \
2667         go/typechecker/check \
2668         hash/adler32/check \
2669         hash/crc32/check \
2670         hash/crc64/check \
2671         image/png/check \
2672         index/suffixarray/check \
2673         io/ioutil/check \
2674         mime/multipart/check \
2675         net/textproto/check \
2676         os/signal/check \
2677         rpc/jsonrpc/check \
2678         testing/quick/check \
2679         testing/script/check
2681 check-recursive: $(TEST_PACKAGES)
2683 mostlyclean-local:
2684         find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
2685         find . -name '*.$(OBJEXT)' -print | xargs rm -f
2687 clean-local:
2688         find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
2689         find . -name '*.a' -print | xargs rm -f
2691 CLEANFILES = *.go *.gox goc2c *.c s-version