OSDN Git Service

libgo: Pass compiler flags to mksysinfo.sh.
[pf3gnuchains/gcc-fork.git] / libgo / Makefile.am
1 # Makefile.am -- Go library Makefile.
2
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.
6
7 # Process this file with autoreconf to produce Makefile.in.
8
9 # Go support.
10 SUFFIXES = .c .go .gox .o .obj .lo .a
11
12 if LIBGO_IS_RTEMS
13 subdirs = testsuite
14 endif
15
16 SUBDIRS = ${subdirs}
17
18 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
19
20 MAINT_CHARSET = latin1
21
22 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
23 PWD_COMMAND = $${PWDCMD-pwd}
24 STAMP = echo timestamp >
25
26 toolexecdir = $(glibgo_toolexecdir)
27 toolexeclibdir = $(glibgo_toolexeclibdir)
28
29 LIBFFI = @LIBFFI@
30 LIBFFIINCS = @LIBFFIINCS@
31
32 WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
33
34 # -I/-D flags to pass when compiling.
35 AM_CPPFLAGS = -I $(srcdir)/runtime $(LIBFFIINCS) $(PTHREAD_CFLAGS)
36
37 ACLOCAL_AMFLAGS = -I ./config -I ../config
38
39 AM_CFLAGS = -fexceptions -fplan9-extensions $(SPLIT_STACK) $(WARN_CFLAGS) \
40         $(STRINGOPS_FLAG) \
41         -I $(srcdir)/../gcc -I $(MULTIBUILDTOP)../../gcc/include
42
43 if USING_SPLIT_STACK
44 AM_LDFLAGS = -XCClinker $(SPLIT_STACK)
45 endif
46
47 # Multilib support.
48 MAKEOVERRIDES=
49
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)"
93
94 # Subdir rules rely on $(FLAGS_TO_PASS)
95 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
96
97 toolexeclib_LTLIBRARIES = libgo.la
98 toolexeclib_LIBRARIES = libgobegin.a
99
100 toolexeclibgodir = $(toolexeclibdir)/go/$(gcc_version)/$(target_alias)
101
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
151
152 toolexeclibgoarchivedir = $(toolexeclibgodir)/archive
153
154 toolexeclibgoarchive_DATA = \
155         archive/tar.gox \
156         archive/zip.gox
157
158 toolexeclibgocompressdir = $(toolexeclibgodir)/compress
159
160 toolexeclibgocompress_DATA = \
161         compress/flate.gox \
162         compress/gzip.gox \
163         compress/zlib.gox
164
165 toolexeclibgocontainerdir = $(toolexeclibgodir)/container
166
167 toolexeclibgocontainer_DATA = \
168         container/heap.gox \
169         container/list.gox \
170         container/ring.gox \
171         container/vector.gox
172
173 toolexeclibgocryptodir = $(toolexeclibgodir)/crypto
174
175 toolexeclibgocrypto_DATA = \
176         crypto/aes.gox \
177         crypto/block.gox \
178         crypto/blowfish.gox \
179         crypto/cast5.gox \
180         crypto/cipher.gox \
181         crypto/elliptic.gox \
182         crypto/hmac.gox \
183         crypto/md4.gox \
184         crypto/md5.gox \
185         crypto/ocsp.gox \
186         crypto/rand.gox \
187         crypto/rc4.gox \
188         crypto/ripemd160.gox \
189         crypto/rsa.gox \
190         crypto/sha1.gox \
191         crypto/sha256.gox \
192         crypto/sha512.gox \
193         crypto/subtle.gox \
194         crypto/tls.gox \
195         crypto/twofish.gox \
196         crypto/x509.gox \
197         crypto/xtea.gox
198
199 toolexeclibgocryptoopenpgpdir = $(toolexeclibgocryptodir)/openpgp
200
201 toolexeclibgocryptoopenpgp_DATA = \
202         crypto/openpgp/armor.gox \
203         crypto/openpgp/error.gox \
204         crypto/openpgp/s2k.gox
205
206 toolexeclibgodebugdir = $(toolexeclibgodir)/debug
207
208 toolexeclibgodebug_DATA = \
209         debug/dwarf.gox \
210         debug/elf.gox \
211         debug/gosym.gox \
212         debug/macho.gox \
213         debug/pe.gox \
214         debug/proc.gox
215
216 toolexeclibgoencodingdir = $(toolexeclibgodir)/encoding
217
218 toolexeclibgoencoding_DATA = \
219         encoding/ascii85.gox \
220         encoding/base32.gox \
221         encoding/base64.gox \
222         encoding/binary.gox \
223         encoding/line.gox \
224         encoding/git85.gox \
225         encoding/hex.gox \
226         encoding/pem.gox
227
228 toolexeclibgoexpdir = $(toolexeclibgodir)/exp
229
230 toolexeclibgoexp_DATA = \
231         exp/datafmt.gox \
232         exp/draw.gox \
233         exp/eval.gox
234
235 toolexeclibgogodir = $(toolexeclibgodir)/go
236
237 toolexeclibgogo_DATA = \
238         go/ast.gox \
239         go/doc.gox \
240         go/parser.gox \
241         go/printer.gox \
242         go/scanner.gox \
243         go/token.gox \
244         go/typechecker.gox
245
246 toolexeclibgohashdir = $(toolexeclibgodir)/hash
247
248 toolexeclibgohash_DATA = \
249         hash/adler32.gox \
250         hash/crc32.gox \
251         hash/crc64.gox
252
253 toolexeclibgohttpdir = $(toolexeclibgodir)/http
254
255 toolexeclibgohttp_DATA = \
256         http/pprof.gox
257
258 toolexeclibgoimagedir = $(toolexeclibgodir)/image
259
260 toolexeclibgoimage_DATA = \
261         image/jpeg.gox \
262         image/png.gox
263
264 toolexeclibgoindexdir = $(toolexeclibgodir)/index
265
266 toolexeclibgoindex_DATA = \
267         index/suffixarray.gox
268
269 toolexeclibgoiodir = $(toolexeclibgodir)/io
270
271 toolexeclibgoio_DATA = \
272         io/ioutil.gox
273
274 toolexeclibgomimedir = $(toolexeclibgodir)/mime
275
276 toolexeclibgomime_DATA = \
277         mime/multipart.gox
278
279 toolexeclibgonetdir = $(toolexeclibgodir)/net
280
281 toolexeclibgonet_DATA = \
282         net/dict.gox \
283         net/textproto.gox
284
285 toolexeclibgoosdir = $(toolexeclibgodir)/os
286
287 if LIBGO_IS_LINUX
288 # os_inotify_gox = os/inotify.gox
289 os_inotify_gox =
290 else
291 os_inotify_gox =
292 endif
293
294 toolexeclibgoos_DATA = \
295         $(os_inotify_gox) \
296         os/signal.gox
297
298 toolexeclibgorpcdir = $(toolexeclibgodir)/rpc
299
300 toolexeclibgorpc_DATA = \
301         rpc/jsonrpc.gox
302
303 toolexeclibgoruntimedir = $(toolexeclibgodir)/runtime
304
305 toolexeclibgoruntime_DATA = \
306         runtime/debug.gox \
307         runtime/pprof.gox
308
309 toolexeclibgotestingdir = $(toolexeclibgodir)/testing
310
311 toolexeclibgotesting_DATA = \
312         testing/iotest.gox \
313         testing/quick.gox \
314         testing/script.gox
315
316 if HAVE_SYS_MMAN_H
317 runtime_mem_file = runtime/mem.c
318 else
319 runtime_mem_file = runtime/mem_posix_memalign.c
320 endif
321
322 if LIBGO_IS_RTEMS
323 rtems_task_variable_add_file = runtime/rtems-task-variable-add.c
324 else
325 rtems_task_variable_add_file =
326 endif
327
328 runtime_files = \
329         runtime/go-append.c \
330         runtime/go-assert.c \
331         runtime/go-assert-interface.c \
332         runtime/go-byte-array-to-string.c \
333         runtime/go-breakpoint.c \
334         runtime/go-caller.c \
335         runtime/go-can-convert-interface.c \
336         runtime/go-cgo.c \
337         runtime/go-chan-cap.c \
338         runtime/go-chan-len.c \
339         runtime/go-check-interface.c \
340         runtime/go-close.c \
341         runtime/go-closed.c \
342         runtime/go-construct-map.c \
343         runtime/go-convert-interface.c \
344         runtime/go-copy.c \
345         runtime/go-defer.c \
346         runtime/go-deferred-recover.c \
347         runtime/go-eface-compare.c \
348         runtime/go-eface-val-compare.c \
349         runtime/go-getgoroot.c \
350         runtime/go-go.c \
351         runtime/go-gomaxprocs.c \
352         runtime/go-int-array-to-string.c \
353         runtime/go-int-to-string.c \
354         runtime/go-interface-compare.c \
355         runtime/go-interface-val-compare.c \
356         runtime/go-lock-os-thread.c \
357         runtime/go-map-delete.c \
358         runtime/go-map-index.c \
359         runtime/go-map-len.c \
360         runtime/go-map-range.c \
361         runtime/go-nanotime.c \
362         runtime/go-new-channel.c \
363         runtime/go-new-map.c \
364         runtime/go-new.c \
365         runtime/go-note.c \
366         runtime/go-panic.c \
367         runtime/go-panic-defer.c \
368         runtime/go-print.c \
369         runtime/go-rec-big.c \
370         runtime/go-rec-nb-big.c \
371         runtime/go-rec-nb-small.c \
372         runtime/go-rec-small.c \
373         runtime/go-recover.c \
374         runtime/go-reflect.c \
375         runtime/go-reflect-call.c \
376         runtime/go-reflect-chan.c \
377         runtime/go-reflect-map.c \
378         runtime/go-rune.c \
379         runtime/go-runtime-error.c \
380         runtime/go-sched.c \
381         runtime/go-select.c \
382         runtime/go-semacquire.c \
383         runtime/go-send-big.c \
384         runtime/go-send-nb-big.c \
385         runtime/go-send-nb-small.c \
386         runtime/go-send-small.c \
387         runtime/go-signal.c \
388         runtime/go-strcmp.c \
389         runtime/go-string-to-byte-array.c \
390         runtime/go-string-to-int-array.c \
391         runtime/go-strplus.c \
392         runtime/go-strslice.c \
393         runtime/go-trampoline.c \
394         runtime/go-type-eface.c \
395         runtime/go-type-error.c \
396         runtime/go-type-identity.c \
397         runtime/go-type-interface.c \
398         runtime/go-type-string.c \
399         runtime/go-typedesc-equal.c \
400         runtime/go-typestring.c \
401         runtime/go-unreflect.c \
402         runtime/go-unsafe-new.c \
403         runtime/go-unsafe-newarray.c \
404         runtime/go-unsafe-pointer.c \
405         runtime/go-unwind.c \
406         runtime/mcache.c \
407         runtime/mcentral.c \
408         $(runtime_mem_file) \
409         runtime/mfinal.c \
410         runtime/mfixalloc.c \
411         runtime/mgc0.c \
412         runtime/mheap.c \
413         runtime/mheapmap32.c \
414         runtime/mheapmap64.c \
415         runtime/msize.c \
416         runtime/proc.c \
417         runtime/thread.c \
418         $(rtems_task_variable_add_file) \
419         chan.c \
420         iface.c \
421         malloc.c \
422         map.c \
423         mprof.c \
424         reflect.c \
425         sigqueue.c \
426         string.c
427
428 goc2c.$(OBJEXT): runtime/goc2c.c
429         $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
430
431 goc2c: goc2c.$(OBJEXT)
432         $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
433
434 malloc.c: $(srcdir)/runtime/malloc.goc goc2c
435         ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
436         mv -f $@.tmp $@
437
438 mprof.c: $(srcdir)/runtime/mprof.goc goc2c
439         ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
440         mv -f $@.tmp $@
441
442 reflect.c: $(srcdir)/runtime/reflect.goc goc2c
443         ./goc2c --gcc --go-prefix libgo_reflect $< > $@.tmp
444         mv -f $@.tmp $@
445
446 sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
447         ./goc2c --gcc --go-prefix libgo_runtime $< > $@.tmp
448         mv -f $@.tmp $@
449
450 %.c: $(srcdir)/runtime/%.goc goc2c
451         ./goc2c --gcc $< > $@.tmp
452         mv -f $@.tmp $@
453
454 go_asn1_files = \
455         go/asn1/asn1.go \
456         go/asn1/common.go \
457         go/asn1/marshal.go
458
459 go_big_files = \
460         go/big/arith.go \
461         go/big/int.go \
462         go/big/nat.go \
463         go/big/rat.go
464
465 go_bufio_files = \
466         go/bufio/bufio.go
467
468 go_bytes_files = \
469         go/bytes/buffer.go \
470         go/bytes/bytes.go \
471         go/bytes/bytes_decl.go
472 go_bytes_c_files = \
473         go/bytes/indexbyte.c
474
475 go_cmath_files = \
476         go/cmath/abs.go \
477         go/cmath/asin.go \
478         go/cmath/conj.go \
479         go/cmath/exp.go \
480         go/cmath/isinf.go \
481         go/cmath/isnan.go \
482         go/cmath/log.go \
483         go/cmath/phase.go \
484         go/cmath/polar.go \
485         go/cmath/pow.go \
486         go/cmath/rect.go \
487         go/cmath/sin.go \
488         go/cmath/sqrt.go \
489         go/cmath/tan.go
490
491 go_ebnf_files = \
492         go/ebnf/ebnf.go \
493         go/ebnf/parser.go
494
495 go_exec_files = \
496         go/exec/exec.go \
497         go/exec/lp_unix.go
498
499 go_expvar_files = \
500         go/expvar/expvar.go
501
502 go_flag_files = \
503         go/flag/flag.go
504
505 go_fmt_files = \
506         go/fmt/doc.go \
507         go/fmt/format.go \
508         go/fmt/print.go \
509         go/fmt/scan.go
510
511 go_gob_files = \
512         go/gob/decode.go \
513         go/gob/decoder.go \
514         go/gob/doc.go \
515         go/gob/encode.go \
516         go/gob/encoder.go \
517         go/gob/error.go \
518         go/gob/type.go
519
520 go_hash_files = \
521         go/hash/hash.go
522
523 go_html_files = \
524         go/html/doc.go \
525         go/html/entity.go \
526         go/html/escape.go \
527         go/html/parse.go \
528         go/html/token.go
529
530 go_http_files = \
531         go/http/chunked.go \
532         go/http/client.go \
533         go/http/dump.go \
534         go/http/fs.go \
535         go/http/lex.go \
536         go/http/persist.go \
537         go/http/request.go \
538         go/http/response.go \
539         go/http/server.go \
540         go/http/status.go \
541         go/http/transfer.go \
542         go/http/url.go
543
544 go_image_files = \
545         go/image/color.go \
546         go/image/format.go \
547         go/image/geom.go \
548         go/image/image.go \
549         go/image/names.go
550
551 go_io_files = \
552         go/io/multi.go \
553         go/io/io.go \
554         go/io/pipe.go
555
556 go_json_files = \
557         go/json/decode.go \
558         go/json/encode.go \
559         go/json/indent.go \
560         go/json/scanner.go \
561         go/json/stream.go
562
563 go_log_files = \
564         go/log/log.go
565
566 go_math_files = \
567         go/math/acosh.go \
568         go/math/asin.go \
569         go/math/asinh.go \
570         go/math/atan.go \
571         go/math/atanh.go \
572         go/math/atan2.go \
573         go/math/bits.go \
574         go/math/cbrt.go \
575         go/math/const.go \
576         go/math/copysign.go \
577         go/math/erf.go \
578         go/math/exp.go \
579         go/math/exp_port.go \
580         go/math/exp2.go \
581         go/math/expm1.go \
582         go/math/fabs.go \
583         go/math/fdim.go \
584         go/math/floor.go \
585         go/math/fmod.go \
586         go/math/frexp.go \
587         go/math/gamma.go \
588         go/math/hypot.go \
589         go/math/hypot_port.go \
590         go/math/j0.go \
591         go/math/j1.go \
592         go/math/jn.go \
593         go/math/ldexp.go \
594         go/math/lgamma.go \
595         go/math/log.go \
596         go/math/log1p.go \
597         go/math/log10.go \
598         go/math/logb.go \
599         go/math/modf.go \
600         go/math/nextafter.go \
601         go/math/pow.go \
602         go/math/pow10.go \
603         go/math/remainder.go \
604         go/math/signbit.go \
605         go/math/sin.go \
606         go/math/sincos.go \
607         go/math/sinh.go \
608         go/math/sqrt.go \
609         go/math/sqrt_port.go \
610         go/math/tan.go \
611         go/math/tanh.go \
612         go/math/unsafe.go
613
614 go_mime_files = \
615         go/mime/grammar.go \
616         go/mime/mediatype.go \
617         go/mime/type.go
618
619 if LIBGO_IS_RTEMS
620 go_net_fd_os_file = go/net/fd_rtems.go
621 go_net_newpollserver_file = go/net/newpollserver_rtems.go
622 else # !LIBGO_IS_RTEMS
623 if LIBGO_IS_LINUX
624 go_net_fd_os_file = go/net/fd_linux.go
625 go_net_newpollserver_file = go/net/newpollserver.go
626 else # !LIBGO_IS_LINUX && !LIBGO_IS_RTEMS
627 # By default use select with pipes.  Most systems should have
628 # something better.
629 go_net_fd_os_file = go/net/fd_rtems.go
630 go_net_newpollserver_file = go/net/newpollserver.go
631 endif # !LIBGO_IS_LINUX
632 endif # !LIBGO_IS_RTEMS
633
634 go_net_files = \
635         go/net/dial.go \
636         go/net/dnsclient.go \
637         go/net/dnsconfig.go \
638         go/net/dnsmsg.go \
639         $(go_net_newpollserver_file) \
640         go/net/fd.go \
641         $(go_net_fd_os_file) \
642         go/net/hosts.go \
643         go/net/ip.go \
644         go/net/iprawsock.go \
645         go/net/ipsock.go \
646         go/net/net.go \
647         go/net/parse.go \
648         go/net/pipe.go \
649         go/net/port.go \
650         go/net/sock.go \
651         go/net/tcpsock.go \
652         go/net/udpsock.go \
653         go/net/unixsock.go
654
655 go_netchan_files = \
656         go/netchan/common.go \
657         go/netchan/export.go \
658         go/netchan/import.go
659
660 if LIBGO_IS_LINUX
661 go_os_sys_file = go/os/sys_linux.go
662 else
663 if LIBGO_IS_SOLARIS
664 go_os_sys_file = go/os/sys_uname.go
665 else
666 if LIBGO_IS_RTEMS
667 go_os_sys_file = go/os/sys_uname.go
668 else
669 go_os_sys_file = go/os/sys_bsd.go
670 endif
671 endif
672 endif
673
674 go_os_files = \
675         go/os/dir.go \
676         go/os/env.go \
677         go/os/env_unix.go \
678         go/os/error.go \
679         go/os/exec.go \
680         go/os/file.go \
681         go/os/file_unix.go \
682         go/os/getwd.go \
683         go/os/path.go \
684         go/os/proc.go \
685         go/os/stat.go \
686         $(go_os_sys_file) \
687         go/os/time.go \
688         go/os/types.go
689
690 go_patch_files = \
691         go/patch/apply.go \
692         go/patch/git.go \
693         go/patch/patch.go \
694         go/patch/textdiff.go
695
696 go_path_files = \
697         go/path/match.go \
698         go/path/path.go \
699         go/path/path_unix.go
700
701 go_rand_files = \
702         go/rand/exp.go \
703         go/rand/normal.go \
704         go/rand/rand.go \
705         go/rand/rng.go \
706         go/rand/zipf.go
707
708 go_reflect_files = \
709         go/reflect/deepequal.go \
710         go/reflect/type.go \
711         go/reflect/value.go
712
713 go_regexp_files = \
714         go/regexp/regexp.go
715
716 go_rpc_files = \
717         go/rpc/client.go \
718         go/rpc/debug.go \
719         go/rpc/server.go
720
721 go_runtime_files = \
722         go/runtime/debug.go \
723         go/runtime/error.go \
724         go/runtime/extern.go \
725         go/runtime/malloc_defs.go \
726         go/runtime/runtime_defs.go \
727         go/runtime/sig.go \
728         go/runtime/softfloat64.go \
729         go/runtime/type.go \
730         version.go
731
732 version.go: s-version; @true
733 s-version: Makefile
734         rm -f version.go.tmp
735         echo "package runtime" > version.go.tmp
736         echo 'const defaultGoroot = "$(prefix)"' >> version.go.tmp
737         echo 'const theVersion = "'`$(CC) --version | sed 1q`'"' >> version.go.tmp
738         echo 'const theGoarch = "'$(GOARCH)'"' >> version.go.tmp
739         echo 'const theGoos = "'$(GOOS)'"' >> version.go.tmp
740         $(SHELL) $(srcdir)/../move-if-change version.go.tmp version.go
741         $(STAMP) $@
742
743 go_scanner_files = \
744         go/scanner/scanner.go
745
746 go_smtp_files = \
747         go/smtp/auth.go \
748         go/smtp/smtp.go
749
750 go_sort_files = \
751         go/sort/search.go \
752         go/sort/sort.go
753
754 go_strconv_files = \
755         go/strconv/atob.go \
756         go/strconv/atof.go \
757         go/strconv/atoi.go \
758         go/strconv/decimal.go \
759         go/strconv/ftoa.go \
760         go/strconv/itoa.go \
761         go/strconv/quote.go
762
763 go_strings_files = \
764         go/strings/reader.go \
765         go/strings/strings.go
766
767 go_sync_files = \
768         go/sync/mutex.go \
769         go/sync/once.go \
770         go/sync/rwmutex.go
771 go_sync_c_files = \
772         go/sync/cas.c
773
774 go_syslog_files = \
775         go/syslog/syslog.go
776
777 go_tabwriter_files = \
778         go/tabwriter/tabwriter.go
779
780 go_template_files = \
781         go/template/format.go \
782         go/template/template.go
783
784 go_testing_files = \
785         go/testing/benchmark.go \
786         go/testing/testing.go
787
788 go_time_files = \
789         go/time/format.go \
790         go/time/sleep.go \
791         go/time/tick.go \
792         go/time/time.go \
793         go/time/zoneinfo_unix.go
794
795 go_try_files = \
796         go/try/try.go
797
798 go_unicode_files = \
799         go/unicode/casetables.go \
800         go/unicode/digit.go \
801         go/unicode/letter.go \
802         go/unicode/tables.go
803
804 go_utf16_files = \
805         go/utf16/utf16.go
806
807 go_utf8_files = \
808         go/utf8/string.go \
809         go/utf8/utf8.go
810
811 go_websocket_files = \
812         go/websocket/client.go \
813         go/websocket/server.go \
814         go/websocket/websocket.go
815
816 go_xml_files = \
817         go/xml/read.go \
818         go/xml/xml.go
819
820 go_archive_tar_files = \
821         go/archive/tar/common.go \
822         go/archive/tar/reader.go \
823         go/archive/tar/writer.go
824
825 go_archive_zip_files = \
826         go/archive/zip/reader.go \
827         go/archive/zip/struct.go
828
829 go_compress_flate_files = \
830         go/compress/flate/deflate.go \
831         go/compress/flate/huffman_bit_writer.go \
832         go/compress/flate/huffman_code.go \
833         go/compress/flate/inflate.go \
834         go/compress/flate/reverse_bits.go \
835         go/compress/flate/token.go \
836         go/compress/flate/util.go
837
838 go_compress_gzip_files = \
839         go/compress/gzip/gzip.go \
840         go/compress/gzip/gunzip.go
841
842 go_compress_zlib_files = \
843         go/compress/zlib/reader.go \
844         go/compress/zlib/writer.go
845
846 go_container_heap_files = \
847         go/container/heap/heap.go
848
849 go_container_list_files = \
850         go/container/list/list.go
851
852 go_container_ring_files = \
853         go/container/ring/ring.go
854
855 go_container_vector_files = \
856         go/container/vector/defs.go \
857         go/container/vector/intvector.go \
858         go/container/vector/stringvector.go \
859         go/container/vector/vector.go
860
861 go_crypto_aes_files = \
862         go/crypto/aes/block.go \
863         go/crypto/aes/cipher.go \
864         go/crypto/aes/const.go
865 go_crypto_block_files = \
866         go/crypto/block/cbc.go \
867         go/crypto/block/cfb.go \
868         go/crypto/block/cmac.go \
869         go/crypto/block/cipher.go \
870         go/crypto/block/ctr.go \
871         go/crypto/block/eax.go \
872         go/crypto/block/ecb.go \
873         go/crypto/block/ofb.go \
874         go/crypto/block/xor.go
875 go_crypto_blowfish_files = \
876         go/crypto/blowfish/block.go \
877         go/crypto/blowfish/const.go \
878         go/crypto/blowfish/cipher.go
879 go_crypto_cast5_files = \
880         go/crypto/cast5/cast5.go
881 go_crypto_cipher_files = \
882         go/crypto/cipher/cbc.go \
883         go/crypto/cipher/cfb.go \
884         go/crypto/cipher/cipher.go \
885         go/crypto/cipher/ctr.go \
886         go/crypto/cipher/io.go \
887         go/crypto/cipher/ocfb.go \
888         go/crypto/cipher/ofb.go
889 go_crypto_elliptic_files = \
890         go/crypto/elliptic/elliptic.go
891 go_crypto_hmac_files = \
892         go/crypto/hmac/hmac.go
893 go_crypto_md4_files = \
894         go/crypto/md4/md4.go \
895         go/crypto/md4/md4block.go
896 go_crypto_md5_files = \
897         go/crypto/md5/md5.go \
898         go/crypto/md5/md5block.go
899 go_crypto_ocsp_files = \
900         go/crypto/ocsp/ocsp.go
901 go_crypto_rand_files = \
902         go/crypto/rand/rand.go \
903         go/crypto/rand/rand_unix.go
904 go_crypto_rc4_files = \
905         go/crypto/rc4/rc4.go
906 go_crypto_ripemd160_files = \
907         go/crypto/ripemd160/ripemd160.go \
908         go/crypto/ripemd160/ripemd160block.go
909 go_crypto_rsa_files = \
910         go/crypto/rsa/pkcs1v15.go \
911         go/crypto/rsa/rsa.go
912 go_crypto_sha1_files = \
913         go/crypto/sha1/sha1.go \
914         go/crypto/sha1/sha1block.go
915 go_crypto_sha256_files = \
916         go/crypto/sha256/sha256.go \
917         go/crypto/sha256/sha256block.go
918 go_crypto_sha512_files = \
919         go/crypto/sha512/sha512.go \
920         go/crypto/sha512/sha512block.go
921 go_crypto_subtle_files = \
922         go/crypto/subtle/constant_time.go
923 go_crypto_tls_files = \
924         go/crypto/tls/alert.go \
925         go/crypto/tls/ca_set.go \
926         go/crypto/tls/cipher_suites.go \
927         go/crypto/tls/common.go \
928         go/crypto/tls/conn.go \
929         go/crypto/tls/handshake_client.go \
930         go/crypto/tls/handshake_messages.go \
931         go/crypto/tls/handshake_server.go \
932         go/crypto/tls/key_agreement.go \
933         go/crypto/tls/prf.go \
934         go/crypto/tls/tls.go
935 go_crypto_twofish_files = \
936         go/crypto/twofish/twofish.go
937 go_crypto_x509_files = \
938         go/crypto/x509/x509.go
939 go_crypto_xtea_files = \
940         go/crypto/xtea/block.go \
941         go/crypto/xtea/cipher.go
942
943 go_crypto_openpgp_armor_files = \
944         go/crypto/openpgp/armor/armor.go \
945         go/crypto/openpgp/armor/encode.go
946 go_crypto_openpgp_error_files = \
947         go/crypto/openpgp/error/error.go
948 go_crypto_openpgp_s2k_files = \
949         go/crypto/openpgp/s2k/s2k.go
950
951 go_debug_dwarf_files = \
952         go/debug/dwarf/buf.go \
953         go/debug/dwarf/const.go \
954         go/debug/dwarf/entry.go \
955         go/debug/dwarf/open.go \
956         go/debug/dwarf/type.go \
957         go/debug/dwarf/unit.go
958 go_debug_elf_files = \
959         go/debug/elf/elf.go \
960         go/debug/elf/file.go
961 go_debug_gosym_files = \
962         go/debug/gosym/pclntab.go \
963         go/debug/gosym/symtab.go
964 go_debug_macho_files = \
965         go/debug/macho/file.go \
966         go/debug/macho/macho.go
967 go_debug_pe_files = \
968         go/debug/pe/file.go \
969         go/debug/pe/pe.go
970
971 go_debug_proc_files = \
972         go/debug/proc/proc.go \
973         go/debug/proc/proc_$(GOOS).go \
974         $(GO_DEBUG_PROC_REGS_OS_ARCH_FILE)
975
976 go_encoding_ascii85_files = \
977         go/encoding/ascii85/ascii85.go
978 go_encoding_base32_files = \
979         go/encoding/base32/base32.go
980 go_encoding_base64_files = \
981         go/encoding/base64/base64.go
982 go_encoding_binary_files = \
983         go/encoding/binary/binary.go
984 go_encoding_git85_files = \
985         go/encoding/git85/git.go
986 go_encoding_hex_files = \
987         go/encoding/hex/hex.go
988 go_encoding_line_files = \
989         go/encoding/line/line.go
990 go_encoding_pem_files = \
991         go/encoding/pem/pem.go
992
993 go_exp_datafmt_files = \
994         go/exp/datafmt/datafmt.go \
995         go/exp/datafmt/parser.go
996 go_exp_draw_files = \
997         go/exp/draw/draw.go \
998         go/exp/draw/event.go
999 go_exp_eval_files = \
1000         go/exp/eval/abort.go \
1001         go/exp/eval/bridge.go \
1002         go/exp/eval/compiler.go \
1003         go/exp/eval/expr.go \
1004         go/exp/eval/expr1.go \
1005         go/exp/eval/func.go \
1006         go/exp/eval/scope.go \
1007         go/exp/eval/stmt.go \
1008         go/exp/eval/type.go \
1009         go/exp/eval/typec.go \
1010         go/exp/eval/value.go \
1011         go/exp/eval/world.go
1012
1013 go_go_ast_files = \
1014         go/go/ast/ast.go \
1015         go/go/ast/filter.go \
1016         go/go/ast/print.go \
1017         go/go/ast/scope.go \
1018         go/go/ast/walk.go
1019 go_go_doc_files = \
1020         go/go/doc/comment.go \
1021         go/go/doc/doc.go
1022 go_go_parser_files = \
1023         go/go/parser/interface.go \
1024         go/go/parser/parser.go
1025 go_go_printer_files = \
1026         go/go/printer/nodes.go \
1027         go/go/printer/printer.go
1028 go_go_scanner_files = \
1029         go/go/scanner/errors.go \
1030         go/go/scanner/scanner.go
1031 go_go_token_files = \
1032         go/go/token/position.go \
1033         go/go/token/token.go
1034 go_go_typechecker_files = \
1035         go/go/typechecker/scope.go \
1036         go/go/typechecker/typechecker.go \
1037         go/go/typechecker/universe.go
1038
1039 go_hash_adler32_files = \
1040         go/hash/adler32/adler32.go
1041 go_hash_crc32_files = \
1042         go/hash/crc32/crc32.go
1043 go_hash_crc64_files = \
1044         go/hash/crc64/crc64.go
1045
1046 go_http_pprof_files = \
1047         go/http/pprof/pprof.go
1048
1049 go_image_jpeg_files = \
1050         go/image/jpeg/huffman.go \
1051         go/image/jpeg/idct.go \
1052         go/image/jpeg/reader.go
1053
1054 go_image_png_files = \
1055         go/image/png/reader.go \
1056         go/image/png/writer.go
1057
1058 go_index_suffixarray_files = \
1059         go/index/suffixarray/qsufsort.go \
1060         go/index/suffixarray/suffixarray.go
1061
1062 go_io_ioutil_files = \
1063         go/io/ioutil/ioutil.go \
1064         go/io/ioutil/tempfile.go
1065
1066 go_mime_multipart_files = \
1067         go/mime/multipart/multipart.go
1068
1069 go_net_dict_files = \
1070         go/net/dict/dict.go
1071
1072 go_net_textproto_files = \
1073         go/net/textproto/pipeline.go \
1074         go/net/textproto/reader.go \
1075         go/net/textproto/textproto.go \
1076         go/net/textproto/writer.go
1077
1078 go_os_inotify_files = \
1079         go/os/inotify/inotify_linux.go
1080
1081 go_os_signal_files = \
1082         go/os/signal/signal.go \
1083         unix.go
1084
1085 go_rpc_jsonrpc_files = \
1086         go/rpc/jsonrpc/client.go \
1087         go/rpc/jsonrpc/server.go
1088
1089 go_runtime_debug_files = \
1090         go/runtime/debug/stack.go
1091 go_runtime_pprof_files = \
1092         go/runtime/pprof/pprof.go
1093
1094 go_testing_iotest_files = \
1095         go/testing/iotest/logger.go \
1096         go/testing/iotest/reader.go \
1097         go/testing/iotest/writer.go
1098 go_testing_quick_files = \
1099         go/testing/quick/quick.go
1100 go_testing_script_files = \
1101         go/testing/script/script.go
1102
1103 # Define Syscall and Syscall6.
1104 if LIBGO_IS_RTEMS
1105 syscall_syscall_file = syscalls/syscall_stubs.go
1106 else
1107 syscall_syscall_file = syscalls/syscall.go
1108 endif
1109
1110 # Declare libc functions that vary for largefile systems.
1111 if LIBGO_IS_LINUX
1112 # Always use lseek64 on GNU/Linux.
1113 syscall_filesize_file = syscalls/sysfile_largefile.go
1114 else # !LIBGO_IS_LINUX
1115 if LIBGO_IS_SOLARIS
1116 if LIBGO_IS_386
1117 # Use lseek64 on 386 Solaris.
1118 syscall_filesize_file = syscalls/sysfile_largefile.go
1119 else # !LIBGO_IS_LINUX && LIBGO_IS_SOLARIS && !LIBGO_IS_386
1120 # Use lseek on amd64 Solaris.
1121 syscall_filesize_file = syscalls/sysfile_regfile.go
1122 endif # !LIBGO_IS_386
1123 else # !LIBGO_IS_LINUX && !LIBGO_IS_SOLARIS
1124 # Use lseek by default.
1125 syscall_filesize_file = syscalls/sysfile_regfile.go
1126 endif # !LIBGO_IS_SOLARIS
1127 endif # !LIBGO_IS_LINUX
1128
1129
1130 # Define ForkExec, PtraceForkExec, Exec, and Wait4.
1131 if LIBGO_IS_RTEMS
1132 syscall_exec_os_file = syscalls/exec_stubs.go
1133 else
1134 syscall_exec_os_file = syscalls/exec.go
1135 endif
1136
1137 # Define Sleep.
1138 if LIBGO_IS_RTEMS
1139 syscall_sleep_file = syscalls/sleep_rtems.go
1140 else
1141 syscall_sleep_file = syscalls/sleep_select.go
1142 endif
1143
1144 # Define Errstr.
1145 if LIBGO_IS_RTEMS
1146 syscall_errstr_file = syscalls/errstr_rtems.go
1147 else
1148 syscall_errstr_file = syscalls/errstr.go
1149 endif
1150
1151 # Declare libc_strerror_r which is the Go name for strerror_r.
1152 if LIBGO_IS_RTEMS
1153 # RTEMS uses newlib in which strerror_r returns char *.
1154 syscall_errstr_decl_file = syscalls/errstr_decl_rtems.go
1155 else
1156 if LIBGO_IS_LINUX
1157 # In Linux the POSIX strerror_r is called __xpg_strerror_r.
1158 syscall_errstr_decl_file = syscalls/errstr_decl_linux.go
1159 else
1160 # On other systems we hope strerror_r is just strerror_r.
1161 syscall_errstr_decl_file = syscalls/errstr_decl.go
1162 endif
1163 endif
1164
1165 # Define socket sizes and types.
1166 if LIBGO_IS_LINUX
1167 syscall_socket_os_file = syscalls/socket_linux.go
1168 else
1169 if LIBGO_IS_SOLARIS
1170 syscall_socket_os_file = syscalls/socket_solaris.go
1171 else
1172 syscall_socket_os_file = syscalls/socket_bsd.go
1173 endif
1174 endif
1175
1176 # Support for epoll.
1177 if LIBGO_IS_LINUX
1178 syscall_socket_epoll_file = syscalls/socket_epoll.go
1179 else
1180 syscall_socket_epoll_file =
1181 endif
1182
1183 syscall_arch.go: s-syscall_arch; @true
1184 s-syscall_arch: Makefile
1185         rm -f syscall_arch.go.tmp
1186         echo "package syscall" > syscall_arch.go.tmp
1187         echo 'const ARCH = "'$(GOARCH)'"' >> syscall_arch.go.tmp
1188         echo 'const OS = "'$(GOOS)'"' >> syscall_arch.go.tmp
1189         $(SHELL) $(srcdir)/../move-if-change syscall_arch.go.tmp syscall_arch.go
1190         $(STAMP) $@
1191
1192 go_syscall_files = \
1193         $(syscall_errstr_file) \
1194         $(syscall_errstr_decl_file) \
1195         syscalls/exec_helpers.go \
1196         $(syscall_exec_os_file) \
1197         $(syscall_filesize_file) \
1198         $(syscall_sleep_file) \
1199         syscalls/socket.go \
1200         $(syscall_socket_os_file) \
1201         $(syscall_socket_epoll_file) \
1202         $(syscall_syscall_file) \
1203         syscalls/syscall_unix.go \
1204         syscalls/stringbyte.go \
1205         syscalls/syscall_$(GOOS).go \
1206         $(GO_SYSCALLS_SYSCALL_OS_ARCH_FILE) \
1207         syscalls/sysfile_posix.go \
1208         sysinfo.go \
1209         syscall_arch.go
1210 go_syscall_c_files = \
1211         syscalls/errno.c
1212
1213 if LIBGO_IS_LINUX
1214 # os_lib_inotify_la = os/libinotify.la
1215 os_lib_inotify_la =
1216 else
1217 os_lib_inotify_la =
1218 endif
1219
1220 libgo_go_objs = \
1221         asn1/libasn1.la \
1222         big/libbig.la \
1223         bufio/libbufio.la \
1224         bytes/libbytes.la \
1225         cmath/libcmath.la \
1226         ebnf/libebnf.la \
1227         exec/libexec.la \
1228         expvar/libexpvar.la \
1229         flag/libflag.la \
1230         fmt/libfmt.la \
1231         gob/libgob.la \
1232         hash/libhash.la \
1233         html/libhtml.la \
1234         http/libhttp.la \
1235         image/libimage.la \
1236         io/libio.la \
1237         json/libjson.la \
1238         log/liblog.la \
1239         math/libmath.la \
1240         mime/libmime.la \
1241         net/libnet.la \
1242         netchan/libnetchan.la \
1243         os/libos.la \
1244         patch/libpatch.la \
1245         path/libpath.la \
1246         rand/librand.la \
1247         reflect/libreflect.la \
1248         regexp/libregexp.la \
1249         rpc/librpc.la \
1250         runtime/libruntime.la \
1251         scanner/libscanner.la \
1252         smtp/libsmtp.la \
1253         sort/libsort.la \
1254         strconv/libstrconv.la \
1255         strings/libstrings.la \
1256         sync/libsync.la \
1257         syslog/libsyslog.la \
1258         tabwriter/libtabwriter.la \
1259         template/libtemplate.la \
1260         time/libtime.la \
1261         try/libtry.la \
1262         unicode/libunicode.la \
1263         utf16/libutf16.la \
1264         utf8/libutf8.la \
1265         websocket/libwebsocket.la \
1266         xml/libxml.la \
1267         archive/libtar.la \
1268         archive/libzip.la \
1269         compress/libflate.la \
1270         compress/libgzip.la \
1271         compress/libzlib.la \
1272         container/libheap.la \
1273         container/liblist.la \
1274         container/libring.la \
1275         container/libvector.la \
1276         crypto/libaes.la \
1277         crypto/libblock.la \
1278         crypto/libblowfish.la \
1279         crypto/libcast5.la \
1280         crypto/libcipher.la \
1281         crypto/libelliptic.la \
1282         crypto/libhmac.la \
1283         crypto/libmd4.la \
1284         crypto/libmd5.la \
1285         crypto/libocsp.la \
1286         crypto/librand.la \
1287         crypto/librc4.la \
1288         crypto/libripemd160.la \
1289         crypto/librsa.la \
1290         crypto/libsha1.la \
1291         crypto/libsha256.la \
1292         crypto/libsha512.la \
1293         crypto/libsubtle.la \
1294         crypto/libtls.la \
1295         crypto/libtwofish.la \
1296         crypto/libx509.la \
1297         crypto/libxtea.la \
1298         crypto/openpgp/libarmor.la \
1299         crypto/openpgp/liberror.la \
1300         crypto/openpgp/libs2k.la \
1301         debug/libdwarf.la \
1302         debug/libelf.la \
1303         debug/libgosym.la \
1304         debug/libmacho.la \
1305         debug/libpe.la \
1306         debug/libproc.la \
1307         encoding/libascii85.la \
1308         encoding/libbase32.la \
1309         encoding/libbase64.la \
1310         encoding/libbinary.la \
1311         encoding/libgit85.la \
1312         encoding/libhex.la \
1313         encoding/libline.la \
1314         encoding/libpem.la \
1315         exp/libdatafmt.la \
1316         exp/libdraw.la \
1317         exp/libeval.la \
1318         go/libast.la \
1319         go/libdoc.la \
1320         go/libparser.la \
1321         go/libprinter.la \
1322         go/libscanner.la \
1323         go/libtoken.la \
1324         go/libtypechecker.la \
1325         hash/libadler32.la \
1326         hash/libcrc32.la \
1327         hash/libcrc64.la \
1328         http/libpprof.la \
1329         image/libjpeg.la \
1330         image/libpng.la \
1331         index/libsuffixarray.la \
1332         io/libioutil.la \
1333         mime/libmultipart.la \
1334         net/libdict.la \
1335         net/libtextproto.la \
1336         $(os_lib_inotify_la) \
1337         os/libsignal.la \
1338         rpc/libjsonrpc.la \
1339         runtime/libdebug.la \
1340         runtime/libpprof.la \
1341         syscalls/libsyscall.la \
1342         testing/libtesting.la \
1343         testing/libiotest.la \
1344         testing/libquick.la \
1345         testing/libscript.la
1346
1347 libgo_la_SOURCES = $(runtime_files)
1348
1349 libgo_la_LIBADD = \
1350         $(libgo_go_objs) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)
1351
1352 libgobegin_a_SOURCES = \
1353         runtime/go-main.c
1354
1355 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
1356
1357 GOCFLAGS = $(CFLAGS)
1358 AM_GOCFLAGS = $(STRINGOPS_FLAG)
1359 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
1360
1361 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
1362         $(AM_GOCFLAGS) $(GOCFLAGS)
1363
1364 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
1365         $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
1366
1367 # Build a package.  This builds a .o and a .lo.
1368 BUILDPACKAGE = \
1369         rm -f `echo $@ | sed -e 's|/lib|/|' -e 's/\.a/.gox/'`; \
1370         test -d $(@D) || $(MKDIR_P) $(@D); \
1371         rm -f $@; \
1372         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
1373         $(LTGOCOMPILE) -I . -c -fgo-prefix="libgo_$(@D)" -o $@ $$files
1374
1375 # Build a .la file from a .lo file.
1376 .lo.la:
1377         $(LINK) $<
1378
1379 if LIBGO_IS_RTEMS
1380 use_dejagnu = yes
1381 else
1382 use_dejagnu = no
1383 endif
1384
1385 # Check a package.
1386 CHECK = \
1387         @GC="$(GOC) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs -Wl,-R,`${PWD_COMMAND}`/.libs"; \
1388         export GC; \
1389         RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
1390         export RUNTESTFLAGS; \
1391         MAKE="$(MAKE)"; \
1392         export MAKE; \
1393         rm -f $@-log; \
1394         prefix=`if test "$(@D)" = "regexp"; then echo regexp-test; else dirname $(@D); fi`; \
1395         test "$${prefix}" != "." || prefix="$(@D)"; \
1396         if test "$(use_dejagnu)" = "yes"; then \
1397           $(SHELL) $(srcdir)/testsuite/gotest --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)"; \
1398         else \
1399           if $(SHELL) $(srcdir)/testsuite/gotest --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" >>$@-log 2>&1; then \
1400             echo "PASS: $(@D)"; \
1401           else \
1402             echo "FAIL: $(@D)"; \
1403             cat $@-log; \
1404             exit 1; \
1405           fi; \
1406         fi
1407
1408 # Build all packages before checking any.
1409 CHECK_DEPS = libgo.la libgobegin.a \
1410         $(toolexeclib_DATA) \
1411         $(toolexeclibarchive_DATA) \
1412         $(toolexeclibcompress_DATA) \
1413         $(toolexeclibcontainer_DATA) \
1414         $(toolexeclibcrypto_DATA) \
1415         $(toolexeclibdebug_DATA) \
1416         $(toolexeclibencoding_DATA) \
1417         $(toolexeclibexp_DATA) \
1418         $(toolexeclibgo_DATA) \
1419         $(toolexeclibhash_DATA) \
1420         $(toolexeclibhttp_DATA) \
1421         $(toolexeclibimage_DATA) \
1422         $(toolexeclibio_DATA) \
1423         $(toolexeclibos_DATA) \
1424         $(toolexeclibrpc_DATA) \
1425         $(toolexeclibruntime_DATA) \
1426         $(toolexeclibtesting_DATA)
1427
1428 asn1/libasn1.$(OBJEXT): $(go_asn1_files) bytes.gox fmt.gox io.gox os.gox \
1429                 reflect.gox strconv.gox strings.gox time.gox
1430         $(BUILDPACKAGE)
1431 asn1/libasn1.lo: asn1/libasn1.$(OBJEXT)
1432 asn1/libasn1.la: asn1/libasn1.lo
1433 asn1/check: $(CHECK_DEPS)
1434         $(CHECK)
1435 .PHONY: asn1/check
1436
1437 big/libbig.$(OBJEXT): $(go_big_files) fmt.gox rand.gox strings.gox
1438         $(BUILDPACKAGE)
1439 big/libbig.lo: big/libbig.$(OBJEXT)
1440 big/libbig.la: big/libbig.lo
1441 big/check: $(CHECK_DEPS)
1442         $(CHECK)
1443 .PHONY: big/check
1444
1445 bufio/libbufio.$(OBJEXT): $(go_bufio_files) bytes.gox io.gox os.gox \
1446                 strconv.gox utf8.gox
1447         $(BUILDPACKAGE)
1448 bufio/libbufio.lo: bufio/libbufio.$(OBJEXT)
1449 bufio/libbufio.la: bufio/libbufio.lo
1450 bufio/check: $(CHECK_DEPS)
1451         $(CHECK)
1452 .PHONY: bufio/check
1453
1454 bytes/bytes.$(OBJEXT): $(go_bytes_files) $(go_bytes_c_files) io.gox os.gox \
1455                 unicode.gox utf8.gox
1456         test -d bytes || $(MKDIR_P) bytes
1457         $(LTGOCOMPILE) -I . -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
1458 bytes/index.$(OBJEXT): go/bytes/indexbyte.c bytes/bytes.$(OBJEXT)
1459         $(LTCOMPILE) -c -o bytes/index.$(OBJEXT) $(srcdir)/go/bytes/indexbyte.c
1460 bytes/libbytes.la: bytes/bytes.$(OBJEXT) bytes/index.$(OBJEXT)
1461         $(LINK) bytes/bytes.lo bytes/index.lo
1462 bytes/check: $(CHECK_DEPS)
1463         $(CHECK)
1464 .PHONY: bytes/check
1465
1466 cmath/libcmath.$(OBJEXT): $(go_cmath_files) math.gox
1467         $(BUILDPACKAGE)
1468 cmath/libcmath.lo: cmath/libcmath.$(OBJEXT)
1469 cmath/libcmath.la: cmath/libcmath.lo
1470 cmath/check: $(CHECK_DEPS)
1471         $(CHECK)
1472 .PHONY: cmath/check
1473
1474 ebnf/libebnf.$(OBJEXT): $(go_ebnf_files) container/vector.gox go/scanner.gox \
1475                 go/token.gox os.gox strconv.gox unicode.gox utf8.gox
1476         $(BUILDPACKAGE)
1477 ebnf/libebnf.lo: ebnf/libebnf.$(OBJEXT)
1478 ebnf/libebnf.la: ebnf/libebnf.lo
1479 ebnf/check: $(CHECK_DEPS)
1480         $(CHECK)
1481 .PHONY: ebnf/check
1482
1483 exec/libexec.$(OBJEXT): $(go_exec_files) os.gox strings.gox
1484         $(BUILDPACKAGE)
1485 exec/libexec.lo: exec/libexec.$(OBJEXT)
1486 exec/libexec.la: exec/libexec.lo
1487 exec/check: $(CHECK_DEPS)
1488         $(CHECK)
1489 .PHONY: exec/check
1490
1491 expvar/libexpvar.$(OBJEXT): $(go_expvar_files) bytes.gox fmt.gox http.gox \
1492                 json.gox log.gox os.gox runtime.gox strconv.gox sync.gox
1493         $(BUILDPACKAGE)
1494 expvar/libexpvar.lo: expvar/libexpvar.$(OBJEXT)
1495 expvar/libexpvar.la: expvar/libexpvar.lo
1496 expvar/check: $(CHECK_DEPS)
1497         $(CHECK)
1498 .PHONY: expvar/check
1499
1500 flag/libflag.$(OBJEXT): $(go_flag_files) fmt.gox os.gox strconv.gox
1501         $(BUILDPACKAGE)
1502 flag/libflag.lo: flag/libflag.$(OBJEXT)
1503 flag/libflag.la: flag/libflag.lo
1504 flag/check: $(CHECK_DEPS)
1505         $(CHECK)
1506 .PHONY: flag/check
1507
1508 fmt/libfmt.$(OBJEXT): $(go_fmt_files) bytes.gox io.gox os.gox reflect.gox \
1509                 strconv.gox strings.gox unicode.gox utf8.gox
1510         $(BUILDPACKAGE)
1511 fmt/libfmt.lo: fmt/libfmt.$(OBJEXT)
1512 fmt/libfmt.la: fmt/libfmt.lo
1513 fmt/check: $(CHECK_DEPS)
1514         $(CHECK)
1515 .PHONY: fmt/check
1516
1517 gob/libgob.$(OBJEXT): $(go_gob_files) bytes.gox fmt.gox io.gox math.gox \
1518                 os.gox reflect.gox runtime.gox strings.gox sync.gox \
1519                 unicode.gox utf8.gox
1520         $(BUILDPACKAGE)
1521 gob/libgob.lo: gob/libgob.$(OBJEXT)
1522 gob/libgob.la: gob/libgob.lo
1523 gob/check: $(CHECK_DEPS)
1524         $(CHECK)
1525 .PHONY: gob/check
1526
1527 hash/libhash.$(OBJEXT): $(go_hash_files) io.gox
1528         $(BUILDPACKAGE)
1529 hash/libhash.lo: hash/libhash.$(OBJEXT)
1530 hash/libhash.la: hash/libhash.lo
1531 hash/check: $(CHECK_DEPS)
1532         $(CHECK)
1533 .PHONY: hash/check
1534
1535 html/libhtml.$(OBJEXT): $(go_html_files) bytes.gox io.gox os.gox strconv.gox \
1536                 strings.gox utf8.gox
1537         $(BUILDPACKAGE)
1538 html/libhtml.lo: html/libhtml.$(OBJEXT)
1539 html/libhtml.la: html/libhtml.lo
1540 html/check: $(CHECK_DEPS)
1541         $(CHECK)
1542 .PHONY: html/check
1543
1544 http/libhttp.$(OBJEXT): $(go_http_files) bufio.gox bytes.gox \
1545                 container/list.gox container/vector.gox crypto/rand.gox \
1546                 crypto/tls.gox encoding/base64.gox fmt.gox io.gox \
1547                 io/ioutil.gox log.gox mime.gox mime/multipart.gox net.gox \
1548                 os.gox path.gox sort.gox strconv.gox strings.gox sync.gox \
1549                 time.gox utf8.gox
1550         $(BUILDPACKAGE)
1551 http/libhttp.lo: http/libhttp.$(OBJEXT)
1552 http/libhttp.la: http/libhttp.lo
1553 http/check: $(CHECK_DEPS)
1554         $(CHECK)
1555 .PHONY: http/check
1556
1557 image/libimage.$(OBJEXT): $(go_image_files) bufio.gox io.gox os.gox strconv.gox
1558         $(BUILDPACKAGE)
1559 image/libimage.lo: image/libimage.$(OBJEXT)
1560 image/libimage.la: image/libimage.lo
1561 image/check: $(CHECK_DEPS)
1562         $(CHECK)
1563 .PHONY: image/check
1564
1565 io/libio.$(OBJEXT): $(go_io_files) os.gox runtime.gox sync.gox
1566         $(BUILDPACKAGE)
1567 io/libio.lo: io/libio.$(OBJEXT)
1568 io/libio.la: io/libio.lo
1569 io/check: $(CHECK_DEPS)
1570         $(CHECK)
1571 .PHONY: io/check
1572
1573 json/libjson.$(OBJEXT): $(go_json_files) bytes.gox container/vector.gox \
1574                 fmt.gox io.gox math.gox os.gox reflect.gox runtime.gox \
1575                 strconv.gox strings.gox unicode.gox utf16.gox utf8.gox
1576         $(BUILDPACKAGE)
1577 json/libjson.lo: json/libjson.$(OBJEXT)
1578 json/libjson.la: json/libjson.lo
1579 json/check: $(CHECK_DEPS)
1580         $(CHECK)
1581 .PHONY: json/check
1582
1583 log/liblog.$(OBJEXT): $(go_log_files) bytes.gox fmt.gox io.gox runtime.gox \
1584                 os.gox sync.gox time.gox
1585         $(BUILDPACKAGE)
1586 log/liblog.lo: log/liblog.$(OBJEXT)
1587 log/liblog.la: log/liblog.lo
1588 log/check: $(CHECK_DEPS)
1589         $(CHECK)
1590 .PHONY: log/check
1591
1592 math/libmath.$(OBJEXT): $(go_math_files)
1593         $(BUILDPACKAGE)
1594 math/libmath.lo: math/libmath.$(OBJEXT)
1595 math/libmath.la: math/libmath.lo
1596 math/check: $(CHECK_DEPS)
1597         $(CHECK)
1598 .PHONY: math/check
1599
1600 mime/libmime.$(OBJEXT): $(go_mime_files) bufio.gox bytes.gox os.gox \
1601                 strings.gox sync.gox unicode.gox
1602         $(BUILDPACKAGE)
1603 mime/libmime.lo: mime/libmime.$(OBJEXT)
1604 mime/libmime.la: mime/libmime.lo
1605 mime/check: $(CHECK_DEPS)
1606         $(CHECK)
1607 .PHONY: mime/check
1608
1609 net/libnet.$(OBJEXT): $(go_net_files) bytes.gox fmt.gox io.gox os.gox \
1610                 reflect.gox strconv.gox strings.gox sync.gox syscall.gox
1611         $(BUILDPACKAGE)
1612 net/libnet.lo: net/libnet.$(OBJEXT)
1613 net/libnet.la: net/libnet.lo
1614 net/check: $(CHECK_DEPS)
1615         $(CHECK)
1616 .PHONY: net/check
1617
1618 netchan/libnetchan.$(OBJEXT): $(go_netchan_files) gob.gox log.gox net.gox \
1619                 os.gox reflect.gox strconv.gox sync.gox time.gox
1620         $(BUILDPACKAGE)
1621 netchan/libnetchan.lo: netchan/libnetchan.$(OBJEXT)
1622 netchan/libnetchan.la: netchan/libnetchan.lo
1623 netchan/check: $(CHECK_DEPS)
1624         $(CHECK)
1625 .PHONY: netchan/check
1626
1627 os/libos.$(OBJEXT): $(go_os_files) sync.gox syscall.gox
1628         $(BUILDPACKAGE)
1629 os/libos.lo: os/libos.$(OBJEXT)
1630 os/libos.la: os/libos.lo
1631 os/check: $(CHECK_DEPS)
1632         $(CHECK)
1633 .PHONY: os/check
1634
1635 patch/libpatch.$(OBJEXT): $(go_patch_files) bytes.gox compress/zlib.gox \
1636                 crypto/sha1.gox encoding/git85.gox fmt.gox io.gox os.gox \
1637                 path.gox strings.gox
1638         $(BUILDPACKAGE)
1639 patch/libpatch.lo: patch/libpatch.$(OBJEXT)
1640 patch/libpatch.la: patch/libpatch.lo
1641 patch/check: $(CHECK_DEPS)
1642         $(CHECK)
1643 .PHONY: patch/check
1644
1645 path/libpath.$(OBJEXT): $(go_path_files) io/ioutil.gox os.gox sort.gox \
1646                 strings.gox utf8.gox
1647         $(BUILDPACKAGE)
1648 path/libpath.lo: path/libpath.$(OBJEXT)
1649 path/libpath.la: path/libpath.lo
1650 path/check: $(CHECK_DEPS)
1651         $(CHECK)
1652 .PHONY: path/check
1653
1654 rand/librand.$(OBJEXT): $(go_rand_files) math.gox sync.gox
1655         $(BUILDPACKAGE)
1656 rand/librand.lo: rand/librand.$(OBJEXT)
1657 rand/librand.la: rand/librand.lo
1658 rand/check: $(CHECK_DEPS)
1659         $(CHECK)
1660 .PHONY: rand/check
1661
1662 reflect/libreflect.$(OBJEXT): $(go_reflect_files) math.gox runtime.gox \
1663                 strconv.gox sync.gox
1664         $(BUILDPACKAGE)
1665 reflect/libreflect.lo: reflect/libreflect.$(OBJEXT)
1666 reflect/libreflect.la: reflect/libreflect.lo
1667 reflect/check: $(CHECK_DEPS)
1668         $(CHECK)
1669 .PHONY: reflect/check
1670
1671 regexp/libregexp.$(OBJEXT): $(go_regexp_files) bytes.gox io.gox os.gox \
1672                 strings.gox utf8.gox
1673         $(BUILDPACKAGE)
1674 regexp/libregexp.lo: regexp/libregexp.$(OBJEXT)
1675 regexp/libregexp.la: regexp/libregexp.lo
1676 regexp/check: $(CHECK_DEPS)
1677         $(CHECK)
1678 .PHONY: regexp/check
1679
1680 rpc/librpc.$(OBJEXT): $(go_rpc_files) bufio.gox fmt.gox gob.gox http.gox \
1681                 io.gox log.gox net.gox os.gox reflect.gox sort.gox \
1682                 strings.gox strconv.gox sync.gox template.gox unicode.gox \
1683                 utf8.gox
1684         $(BUILDPACKAGE)
1685 rpc/librpc.lo: rpc/librpc.$(OBJEXT)
1686 rpc/librpc.la: rpc/librpc.lo
1687 rpc/check: $(CHECK_DEPS)
1688         $(CHECK)
1689 .PHONY: rpc/check
1690
1691 runtime/libruntime.$(OBJEXT): $(go_runtime_files)
1692         $(BUILDPACKAGE)
1693 runtime/libruntime.lo: runtime/libruntime.$(OBJEXT)
1694 runtime/libruntime.la: runtime/libruntime.lo
1695 runtime/check: $(CHECK_DEPS)
1696         $(CHECK)
1697 .PHONY: runtime/check
1698
1699 scanner/libscanner.$(OBJEXT): $(go_scanner_files) bytes.gox fmt.gox io.gox \
1700                 os.gox unicode.gox utf8.gox
1701         $(BUILDPACKAGE)
1702 scanner/libscanner.lo: scanner/libscanner.$(OBJEXT)
1703 scanner/libscanner.la: scanner/libscanner.lo
1704 scanner/check: $(CHECK_DEPS)
1705         $(CHECK)
1706 .PHONY: scanner/check
1707
1708 smtp/libsmtp.$(OBJEXT): $(go_smtp_files) crypto/tls.gox encoding/base64.gox \
1709                 io.gox net.gox net/textproto.gox os.gox strings.gox
1710         $(BUILDPACKAGE)
1711 smtp/libsmtp.lo: smtp/libsmtp.$(OBJEXT)
1712 smtp/libsmtp.la: smtp/libsmtp.lo
1713 smtp/check: $(CHECK_DEPS)
1714         $(CHECK)
1715 .PHONY: smtp/check
1716
1717 sort/libsort.$(OBJEXT): $(go_sort_files)
1718         $(BUILDPACKAGE)
1719 sort/libsort.lo: sort/libsort.$(OBJEXT)
1720 sort/libsort.la: sort/libsort.lo
1721 sort/check: $(CHECK_DEPS)
1722         $(CHECK)
1723 .PHONY: sort/check
1724
1725 strconv/libstrconv.$(OBJEXT): $(go_strconv_files) bytes.gox math.gox os.gox \
1726                 strings.gox unicode.gox utf8.gox
1727         $(BUILDPACKAGE)
1728 strconv/libstrconv.lo: strconv/libstrconv.$(OBJEXT)
1729 strconv/libstrconv.la: strconv/libstrconv.lo
1730 strconv/check: $(CHECK_DEPS)
1731         $(CHECK)
1732 .PHONY: strconv/check
1733
1734 strings/libstrings.$(OBJEXT): $(go_strings_files) os.gox unicode.gox utf8.gox
1735         $(BUILDPACKAGE)
1736 strings/libstrings.lo: strings/libstrings.$(OBJEXT)
1737 strings/libstrings.la: strings/libstrings.lo
1738 strings/check: $(CHECK_DEPS)
1739         $(CHECK)
1740 .PHONY: strings/check
1741
1742 sync/mutex.$(OBJEXT): $(go_sync_files) $(go_sync_c_files) runtime.gox
1743         test -d sync || $(MKDIR_P) sync
1744         $(LTGOCOMPILE) -I . -c -o sync/mutex.$(OBJEXT) -fgo-prefix=libgo_sync $(srcdir)/go/sync/mutex.go $(srcdir)/go/sync/once.go $(srcdir)/go/sync/rwmutex.go
1745 sync/cas.$(OBJEXT): $(srcdir)/go/sync/cas.c sync/mutex.$(OBJEXT)
1746         $(LTCOMPILE) -c -o sync/cas.$(OBJEXT) $(srcdir)/go/sync/cas.c
1747 sync/libsync.la: sync/mutex.$(OBJEXT) sync/cas.$(OBJEXT)
1748         $(LINK) sync/mutex.lo sync/cas.lo
1749 sync/check: $(CHECK_DEPS)
1750         $(CHECK)
1751 .PHONY: sync/check
1752
1753 syslog/libsyslog.$(OBJEXT): $(go_syslog_files) fmt.gox log.gox net.gox os.gox
1754         $(BUILDPACKAGE)
1755 syslog/libsyslog.lo: syslog/libsyslog.$(OBJEXT)
1756 syslog/libsyslog.la: syslog/libsyslog.lo
1757 syslog/check: $(CHECK_DEPS)
1758         $(CHECK)
1759 .PHONY: syslog/check
1760
1761 tabwriter/libtabwriter.$(OBJEXT): $(go_tabwriter_files) bytes.gox io.gox \
1762                 os.gox utf8.gox
1763         $(BUILDPACKAGE)
1764 tabwriter/libtabwriter.lo: tabwriter/libtabwriter.$(OBJEXT)
1765 tabwriter/libtabwriter.la: tabwriter/libtabwriter.lo
1766 tabwriter/check: $(CHECK_DEPS)
1767         $(CHECK)
1768 .PHONY: tabwriter/check
1769
1770 template/libtemplate.$(OBJEXT): $(go_template_files) bytes.gox fmt.gox io.gox \
1771                 os.gox reflect.gox runtime.gox strings.gox container/vector.gox
1772         $(BUILDPACKAGE)
1773 template/libtemplate.lo: template/libtemplate.$(OBJEXT)
1774 template/libtemplate.la: template/libtemplate.lo
1775 template/check: $(CHECK_DEPS)
1776         $(CHECK)
1777 .PHONY: template/check
1778
1779 testing/libtesting.$(OBJEXT): $(go_testing_files) flag.gox fmt.gox os.gox \
1780                 regexp.gox runtime.gox time.gox
1781         $(BUILDPACKAGE)
1782 testing/libtesting.lo: testing/libtesting.$(OBJEXT)
1783 testing/libtesting.la: testing/libtesting.lo
1784 testing/check: $(CHECK_DEPS)
1785         $(CHECK)
1786 .PHONY: testing/check
1787
1788 time/libtime.$(OBJEXT): $(go_time_files) bytes.gox container/heap.gox \
1789                 io/ioutil.gox os.gox strconv.gox sync.gox syscall.gox
1790         $(BUILDPACKAGE)
1791 time/libtime.lo: time/libtime.$(OBJEXT)
1792 time/libtime.la: time/libtime.lo
1793 time/check: $(CHECK_DEPS)
1794         $(CHECK)
1795 .PHONY: time/check
1796
1797 try/libtry.$(OBJEXT): $(go_try_files) fmt.gox io.gox os.gox reflect.gox \
1798                 unicode.gox
1799         $(BUILDPACKAGE)
1800 try/libtry.lo: try/libtry.$(OBJEXT)
1801 try/libtry.la: try/libtry.lo
1802 try/check: $(CHECK_DEPS)
1803         $(CHECK)
1804 .PHONY: try/check
1805
1806 unicode/libunicode.$(OBJEXT): $(go_unicode_files)
1807         $(BUILDPACKAGE)
1808 unicode/libunicode.lo: unicode/libunicode.$(OBJEXT)
1809 unicode/libunicode.la: unicode/libunicode.lo
1810 unicode/check: $(CHECK_DEPS)
1811         $(CHECK)
1812 .PHONY: unicode/check
1813
1814 utf16/libutf16.$(OBJEXT): $(go_utf16_files) unicode.gox
1815         $(BUILDPACKAGE)
1816 utf16/libutf16.lo: utf16/libutf16.$(OBJEXT)
1817 utf16/libutf16.la: utf16/libutf16.lo
1818 utf16/check: $(CHECK_DEPS)
1819         $(CHECK)
1820 .PHONY: utf16/check
1821
1822 utf8/libutf8.$(OBJEXT): $(go_utf8_files) unicode.gox
1823         $(BUILDPACKAGE)
1824 utf8/libutf8.lo: utf8/libutf8.$(OBJEXT)
1825 utf8/libutf8.la: utf8/libutf8.lo
1826 utf8/check: $(CHECK_DEPS)
1827         $(CHECK)
1828 .PHONY: utf8/check
1829
1830 websocket/libwebsocket.$(OBJEXT): $(go_websocket_files) bufio.gox bytes.gox \
1831                 container/vector.gox crypto/md5.gox crypto/tls.gox \
1832                 encoding/binary.gox fmt.gox http.gox io.gox net.gox os.gox \
1833                 rand.gox strings.gox
1834         $(BUILDPACKAGE)
1835 websocket/libwebsocket.lo: websocket/libwebsocket.$(OBJEXT)
1836 websocket/libwebsocket.la: websocket/libwebsocket.lo
1837 websocket/check: $(CHECK_DEPS)
1838         $(CHECK)
1839 .PHONY: websocket/check
1840
1841 xml/libxml.$(OBJEXT): $(go_xml_files) bufio.gox bytes.gox fmt.gox io.gox \
1842                 os.gox reflect.gox strconv.gox strings.gox unicode.gox utf8.gox
1843         $(BUILDPACKAGE)
1844 xml/libxml.lo: xml/libxml.$(OBJEXT)
1845 xml/libxml.la: xml/libxml.lo
1846 xml/check: $(CHECK_DEPS)
1847         $(CHECK)
1848 .PHONY: xml/check
1849
1850 archive/libtar.$(OBJEXT): $(go_archive_tar_files) bytes.gox io.gox os.gox \
1851                 strconv.gox strings.gox
1852         $(BUILDPACKAGE)
1853 archive/libtar.lo: archive/libtar.$(OBJEXT)
1854 archive/libtar.la: archive/libtar.lo
1855 archive/tar/check: $(CHECK_DEPS)
1856         @$(MKDIR_P) archive/tar
1857         $(CHECK)
1858 .PHONY: archive/tar/check
1859
1860 archive/libzip.$(OBJEXT): $(go_archive_zip_files) bufio.gox bytes.gox \
1861                 compress/flate.gox hash.gox hash/crc32.gox \
1862                 encoding/binary.gox io.gox os.gox
1863         $(BUILDPACKAGE)
1864 archive/libzip.lo: archive/libzip.$(OBJEXT)
1865 archive/libzip.la: archive/libzip.lo
1866 archive/zip/check: $(CHECK_DEPS)
1867         @$(MKDIR_P) archive/zip
1868         $(CHECK)
1869 .PHONY: archive/zip/check
1870
1871 compress/libflate.$(OBJEXT): $(go_compress_flate_files) bufio.gox io.gox \
1872                 math.gox os.gox sort.gox strconv.gox
1873         $(BUILDPACKAGE)
1874 compress/libflate.lo: compress/libflate.$(OBJEXT)
1875 compress/libflate.la: compress/libflate.lo
1876 compress/flate/check: $(CHECK_DEPS)
1877         @$(MKDIR_P) compress/flate
1878         $(CHECK)
1879 .PHONY: compress/flate/check
1880
1881 compress/libgzip.$(OBJEXT): $(go_compress_gzip_files) bufio.gox \
1882                 compress/flate.gox hash.gox hash/crc32.gox io.gox os.gox
1883         $(BUILDPACKAGE)
1884 compress/libgzip.lo: compress/libgzip.$(OBJEXT)
1885 compress/libgzip.la: compress/libgzip.lo
1886 compress/gzip/check: $(CHECK_DEPS)
1887         @$(MKDIR_P) compress/gzip
1888         $(CHECK)
1889 .PHONY: compress/gzip/check
1890
1891 compress/libzlib.$(OBJEXT): $(go_compress_zlib_files) bufio.gox \
1892                 compress/flate.gox hash.gox hash/adler32.gox io.gox os.gox
1893         $(BUILDPACKAGE)
1894 compress/libzlib.lo: compress/libzlib.$(OBJEXT)
1895 compress/libzlib.la: compress/libzlib.lo
1896 compress/zlib/check: $(CHECK_DEPS)
1897         @$(MKDIR_P) compress/zlib
1898         $(CHECK)
1899 .PHONY: compress/zlib/check
1900
1901 container/libheap.$(OBJEXT): $(go_container_heap_files) sort.gox
1902         $(BUILDPACKAGE)
1903 container/libheap.lo: container/libheap.$(OBJEXT)
1904 container/libheap.la: container/libheap.lo
1905 container/heap/check: $(CHECK_DEPS)
1906         @$(MKDIR_P) container/heap
1907         $(CHECK)
1908 .PHONY: container/heap/check
1909
1910 container/liblist.$(OBJEXT): $(go_container_list_files)
1911         $(BUILDPACKAGE)
1912 container/liblist.lo: container/liblist.$(OBJEXT)
1913 container/liblist.la: container/liblist.lo
1914 container/list/check: $(CHECK_DEPS)
1915         @$(MKDIR_P) container/list
1916         $(CHECK)
1917 .PHONY: container/list/check
1918
1919 container/libring.$(OBJEXT): $(go_container_ring_files)
1920         $(BUILDPACKAGE)
1921 container/libring.lo: container/libring.$(OBJEXT)
1922 container/libring.la: container/libring.lo
1923 container/ring/check: $(CHECK_DEPS)
1924         @$(MKDIR_P) container/ring
1925         $(CHECK)
1926 .PHONY: container/ring/check
1927
1928 container/libvector.$(OBJEXT): $(go_container_vector_files)
1929         $(BUILDPACKAGE)
1930 container/libvector.lo: container/libvector.$(OBJEXT)
1931 container/libvector.la: container/libvector.lo
1932 container/vector/check: $(CHECK_DEPS)
1933         @$(MKDIR_P) container/vector
1934         $(CHECK)
1935 .PHONY: container/vector/check
1936
1937 crypto/libaes.$(OBJEXT): $(go_crypto_aes_files) os.gox strconv.gox
1938         $(BUILDPACKAGE)
1939 crypto/libaes.lo: crypto/libaes.$(OBJEXT)
1940 crypto/libaes.la: crypto/libaes.lo
1941 crypto/aes/check: $(CHECK_DEPS)
1942         @$(MKDIR_P) crypto/aes
1943         $(CHECK)
1944 .PHONY: crypto/aes/check
1945
1946 crypto/libblock.$(OBJEXT): $(go_crypto_block_files) fmt.gox io.gox os.gox \
1947                 strconv.gox
1948         $(BUILDPACKAGE)
1949 crypto/libblock.lo: crypto/libblock.$(OBJEXT)
1950 crypto/libblock.la: crypto/libblock.lo
1951 crypto/block/check: $(CHECK_DEPS)
1952         @$(MKDIR_P) crypto/block
1953         $(CHECK)
1954 .PHONY: crypto/block/check
1955
1956 crypto/libblowfish.$(OBJEXT): $(go_crypto_blowfish_files) os.gox strconv.gox
1957         $(BUILDPACKAGE)
1958 crypto/libblowfish.lo: crypto/libblowfish.$(OBJEXT)
1959 crypto/libblowfish.la: crypto/libblowfish.lo
1960 crypto/blowfish/check: $(CHECK_DEPS)
1961         @$(MKDIR_P) crypto/blowfish
1962         $(CHECK)
1963 .PHONY: crypto/blowfish/check
1964
1965 crypto/libcast5.$(OBJEXT): $(go_crypto_cast5_files) os.gox
1966         $(BUILDPACKAGE)
1967 crypto/libcast5.lo: crypto/libcast5.$(OBJEXT)
1968 crypto/libcast5.la: crypto/libcast5.lo
1969 crypt/cast5/check: $(CHECK_DEPS)
1970         @$(MKDIR_P) crypto/cast5
1971         $(CHECK)
1972 .PHONY: crypto/cast5/check
1973
1974 crypto/libcipher.$(OBJEXT): $(go_crypto_cipher_files) io.gox os.gox
1975         $(BUILDPACKAGE)
1976 crypto/libcipher.lo: crypto/libcipher.$(OBJEXT)
1977 crypto/libcipher.la: crypto/libcipher.lo
1978 crypto/cipher/check: $(CHECK_DEPS)
1979         @$(MKDIR_P) crypto/cipher
1980         $(CHECK)
1981 .PHONY: crypto/cipher/check
1982
1983 crypto/libelliptic.$(OBJEXT): $(go_crypto_elliptic_files) big.gox io.gox \
1984                 os.gox sync.gox
1985         $(BUILDPACKAGE)
1986 crypto/libelliptic.lo: crypto/libelliptic.$(OBJEXT)
1987 crypto/libelliptic.la: crypto/libelliptic.lo
1988 crypto/elliptic/check: $(CHECK_DEPS)
1989         @$(MKDIR_P) crypto/elliptic
1990         $(CHECK)
1991 .PHONY: crypto/elliptic/check
1992
1993 crypto/libhmac.$(OBJEXT): $(go_crypto_hmac_files) crypto/md5.gox \
1994                 crypto/sha1.gox crypto/sha256.gox hash.gox os.gox
1995         $(BUILDPACKAGE)
1996 crypto/libhmac.lo: crypto/libhmac.$(OBJEXT)
1997 crypto/libhmac.la: crypto/libhmac.lo
1998 crypto/hmac/check: $(CHECK_DEPS)
1999         @$(MKDIR_P) crypto/hmac
2000         $(CHECK)
2001 .PHONY: crypto/hmac/check
2002
2003 crypto/libmd4.$(OBJEXT): $(go_crypto_md4_files) hash.gox os.gox
2004         $(BUILDPACKAGE)
2005 crypto/libmd4.lo: crypto/libmd4.$(OBJEXT)
2006 crypto/libmd4.la: crypto/libmd4.lo
2007 crypto/md4/check: $(CHECK_DEPS)
2008         @$(MKDIR_P) crypto/md4
2009         $(CHECK)
2010 .PHONY: crypto/md4/check
2011
2012 crypto/libmd5.$(OBJEXT): $(go_crypto_md5_files) hash.gox os.gox
2013         $(BUILDPACKAGE)
2014 crypto/libmd5.lo: crypto/libmd5.$(OBJEXT)
2015 crypto/libmd5.la: crypto/libmd5.lo
2016 crypto/md5/check: $(CHECK_DEPS)
2017         @$(MKDIR_P) crypto/md5
2018         $(CHECK)
2019 .PHONY: crypto/md5/check
2020
2021 crypto/libocsp.$(OBJEXT): $(go_crypto_ocsp_files) asn1.gox crypto/rsa.gox \
2022                 crypto/sha1.gox crypto/x509.gox os.gox time.gox
2023         $(BUILDPACKAGE)
2024 crypto/libocsp.lo: crypto/libocsp.$(OBJEXT)
2025 crypto/libocsp.la: crypto/libocsp.lo
2026 crypto/ocsp/check: $(CHECK_DEPS)
2027         @$(MKDIR_P) crypto/ocsp
2028         $(CHECK)
2029 .PHONY: crypto/ocsp/check
2030
2031 crypto/librand.$(OBJEXT): $(go_crypto_rand_files) crypto/aes.gox io.gox os.gox \
2032                 sync.gox time.gox
2033         $(BUILDPACKAGE)
2034 crypto/librand.lo: crypto/librand.$(OBJEXT)
2035 crypto/librand.la: crypto/librand.lo
2036 crypto/rand/check: $(CHECK_DEPS)
2037         @$(MKDIR_P) crypto/rand
2038         $(CHECK)
2039 .PHONY: crypto/rand/check
2040
2041 crypto/librc4.$(OBJEXT): $(go_crypto_rc4_files) os.gox strconv.gox
2042         $(BUILDPACKAGE)
2043 crypto/librc4.lo: crypto/librc4.$(OBJEXT)
2044 crypto/librc4.la: crypto/librc4.lo
2045 crypto/rc4/check: $(CHECK_DEPS)
2046         @$(MKDIR_P) crypto/rc4
2047         $(CHECK)
2048 .PHONY: crypto/rc4/check
2049
2050 crypto/libripemd160.$(OBJEXT): $(go_crypto_ripemd160_files) hash.gox os.gox
2051         $(BUILDPACKAGE)
2052 crypto/libripemd160.lo: crypto/libripemd160.$(OBJEXT)
2053 crypto/libripemd160.la: crypto/libripemd160.lo
2054 crypto/ripemd160/check: $(CHECK_DEPS)
2055         @$(MKDIR_P) crypto/ripemd160
2056         $(CHECK)
2057 .PHONY: crypto/ripemd160/check
2058
2059 crypto/librsa.$(OBJEXT): $(go_crypto_rsa_files) big.gox crypto/sha1.gox \
2060                 crypto/subtle.gox encoding/hex.gox hash.gox io.gox os.gox
2061         $(BUILDPACKAGE)
2062 crypto/librsa.lo: crypto/librsa.$(OBJEXT)
2063 crypto/librsa.la: crypto/librsa.lo
2064 crypto/rsa/check: $(CHECK_DEPS)
2065         @$(MKDIR_P) crypto/rsa
2066         $(CHECK)
2067 .PHONY: crypto/rsa/check
2068
2069 crypto/libsha1.$(OBJEXT): $(go_crypto_sha1_files) hash.gox os.gox
2070         $(BUILDPACKAGE)
2071 crypto/libsha1.lo: crypto/libsha1.$(OBJEXT)
2072 crypto/libsha1.la: crypto/libsha1.lo
2073 crypto/sha1/check: $(CHECK_DEPS)
2074         @$(MKDIR_P) crypto/sha1
2075         $(CHECK)
2076 .PHONY: crypto/sha1/check
2077
2078 crypto/libsha256.$(OBJEXT): $(go_crypto_sha256_files) hash.gox os.gox
2079         $(BUILDPACKAGE)
2080 crypto/libsha256.lo: crypto/libsha256.$(OBJEXT)
2081 crypto/libsha256.la: crypto/libsha256.lo
2082 crypto/sha256/check: $(CHECK_DEPS)
2083         @$(MKDIR_P) crypto/sha256
2084         $(CHECK)
2085 .PHONY: crypto/sha256/check
2086
2087 crypto/libsha512.$(OBJEXT): $(go_crypto_sha512_files) hash.gox os.gox
2088         $(BUILDPACKAGE)
2089 crypto/libsha512.lo: crypto/libsha512.$(OBJEXT)
2090 crypto/libsha512.la: crypto/libsha512.lo
2091 crypto/sha512/check: $(CHECK_DEPS)
2092         @$(MKDIR_P) crypto/sha512
2093         $(CHECK)
2094 .PHONY: crypto/sha512/check
2095
2096 crypto/libsubtle.$(OBJEXT): $(go_crypto_subtle_files)
2097         $(BUILDPACKAGE)
2098 crypto/libsubtle.lo: crypto/libsubtle.$(OBJEXT)
2099 crypto/libsubtle.la: crypto/libsubtle.lo
2100 crypto/subtle/check: $(CHECK_DEPS)
2101         @$(MKDIR_P) crypto/subtle
2102         $(CHECK)
2103 .PHONY: crypto/subtle/check
2104
2105 crypto/libtls.$(OBJEXT): $(go_crypto_tls_files) big.gox bufio.gox bytes.gox \
2106                 container/list.gox crypto/aes.gox crypto/cipher.gox \
2107                 crypto/elliptic.gox crypto/hmac.gox crypto/md5.gox \
2108                 crypto/rc4.gox crypto/rand.gox crypto/rsa.gox crypto/sha1.gox \
2109                 crypto/subtle.gox crypto/rsa.gox crypto/sha1.gox \
2110                 crypto/x509.gox encoding/pem.gox fmt.gox hash.gox io.gox \
2111                 io/ioutil.gox net.gox os.gox strings.gox sync.gox time.gox
2112         $(BUILDPACKAGE)
2113 crypto/libtls.lo: crypto/libtls.$(OBJEXT)
2114 crypto/libtls.la: crypto/libtls.lo
2115 crypto/tls/check: $(CHECK_DEPS)
2116         @$(MKDIR_P) crypto/tls
2117         $(CHECK)
2118 .PHONY: crypto/tls/check
2119
2120 crypto/libtwofish.$(OBJEXT): $(go_crypto_twofish_files) os.gox strconv.gox
2121         $(BUILDPACKAGE)
2122 crypto/libtwofish.lo: crypto/libtwofish.$(OBJEXT)
2123 crypto/libtwofish.la: crypto/libtwofish.lo
2124 crypto/twofish/check: $(CHECK_DEPS)
2125         @$(MKDIR_P) crypto/twofish
2126         $(CHECK)
2127 .PHONY: crypto/twofish/check
2128
2129 crypto/libx509.$(OBJEXT): $(go_crypto_x509_files) asn1.gox big.gox \
2130                 container/vector.gox crypto/rsa.gox crypto/sha1.gox hash.gox \
2131                 os.gox strings.gox time.gox
2132         $(BUILDPACKAGE)
2133 crypto/libx509.lo: crypto/libx509.$(OBJEXT)
2134 crypto/libx509.la: crypto/libx509.lo
2135 crypto/x509/check: $(CHECK_DEPS)
2136         @$(MKDIR_P) crypto/x509
2137         $(CHECK)
2138 .PHONY: crypto/x509/check
2139
2140 crypto/libxtea.$(OBJEXT): $(go_crypto_xtea_files) os.gox strconv.gox
2141         $(BUILDPACKAGE)
2142 crypto/libxtea.lo: crypto/libxtea.$(OBJEXT)
2143 crypto/libxtea.la: crypto/libxtea.lo
2144 crypto/xtea/check: $(CHECK_DEPS)
2145         @$(MKDIR_P) crypto/xtea
2146         $(CHECK)
2147 .PHONY: crypto/xtea/check
2148
2149 crypto/openpgp/libarmor.$(OBJEXT): $(go_crypto_openpgp_armor_files) bytes.gox \
2150                 crypto/openpgp/error.gox encoding/base64.gox \
2151                 encoding/line.gox io.gox os.gox
2152         $(BUILDPACKAGE)
2153 crypto/openpgp/libarmor.lo: crypto/openpgp/libarmor.$(OBJEXT)
2154 crypto/openpgp/libarmor.la: crypto/openpgp/libarmor.lo
2155 crypto/openpgp/armor/check: $(CHECK_DEPS)
2156         @$(MKDIR_P) crypto/openpgp/armor
2157         $(CHECK)
2158 .PHONY: crypto/openpgp/armor/check
2159
2160 crypto/openpgp/liberror.$(OBJEXT): $(go_crypto_openpgp_error_files)
2161         $(BUILDPACKAGE)
2162 crypto/openpgp/liberror.lo: crypto/openpgp/liberror.$(OBJEXT)
2163 crypto/openpgp/liberror.la: crypto/openpgp/liberror.lo
2164 crypto/openpgp/error/check: $(CHECK_DEPS)
2165         @$(MKDIR_P) crypto/openpgp/error
2166         $(CHECK)
2167 .PHONY: crypto/openpgp/error/check
2168
2169 crypto/openpgp/libs2k.$(OBJEXT): $(go_crypto_openpgp_s2k_files) crypto/md5.gox \
2170                 crypto/openpgp/error.gox crypto/ripemd160.gox crypto/sha1.gox \
2171                 crypto/sha256.gox crypto/sha512.gox hash.gox io.gox os.gox
2172         $(BUILDPACKAGE)
2173 crypto/openpgp/libs2k.lo: crypto/openpgp/libs2k.$(OBJEXT)
2174 crypto/openpgp/libs2k.la: crypto/openpgp/libs2k.lo
2175 crypto/openpgp/s2k/check: $(CHECK_DEPS)
2176         @$(MKDIR_P) crypto/openpgp/s2k
2177         $(CHECK)
2178 .PHONY: crypto/openpgp/s2k/check
2179
2180 debug/libdwarf.$(OBJEXT): $(go_debug_dwarf_files) encoding/binary.gox os.gox \
2181                 strconv.gox
2182         $(BUILDPACKAGE)
2183 debug/libdwarf.lo: debug/libdwarf.$(OBJEXT)
2184 debug/libdwarf.la: debug/libdwarf.lo
2185 debug/dwarf/check: $(CHECK_DEPS)
2186         @$(MKDIR_P) debug/dwarf
2187         $(CHECK)
2188 .PHONY: debug/dwarf/check
2189
2190 debug/libelf.$(OBJEXT): $(go_debug_elf_files) bytes.gox debug/dwarf.gox \
2191                 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
2192         $(BUILDPACKAGE)
2193 debug/libelf.lo: debug/libelf.$(OBJEXT)
2194 debug/libelf.la: debug/libelf.lo
2195 debug/elf/check: $(CHECK_DEPS)
2196         @$(MKDIR_P) debug/elf
2197         $(CHECK)
2198 .PHONY: debug/elf/check
2199
2200 debug/libgosym.$(OBJEXT): $(go_debug_gosym_files) encoding/binary.gox fmt.gox \
2201                 os.gox strconv.gox strings.gox
2202         $(BUILDPACKAGE)
2203 debug/libgosym.lo: debug/libgosym.$(OBJEXT)
2204 debug/libgosym.la: debug/libgosym.lo
2205 debug/gosym/check: $(CHECK_DEPS)
2206         @$(MKDIR_P) debug/gosym
2207         $(CHECK)
2208 .PHONY: debug/gosym/check
2209
2210 debug/libmacho.$(OBJEXT): $(go_debug_macho_files) bytes.gox debug/dwarf.gox \
2211                 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
2212         $(BUILDPACKAGE)
2213 debug/libmacho.lo: debug/libmacho.$(OBJEXT)
2214 debug/libmacho.la: debug/libmacho.lo
2215 debug/macho/check: $(CHECK_DEPS)
2216         @$(MKDIR_P) debug/macho
2217         $(CHECK)
2218 .PHONY: debug/macho/check
2219
2220 debug/libpe.$(OBJEXT): $(go_debug_pe_files) debug/dwarf.gox \
2221                 encoding/binary.gox fmt.gox io.gox os.gox strconv.gox
2222         $(BUILDPACKAGE)
2223 debug/libpe.lo: debug/libpe.$(OBJEXT)
2224 debug/libpe.la: debug/libpe.lo
2225 debug/pe/check: $(CHECK_DEPS)
2226         @$(MKDIR_P) debug/pe
2227         $(CHECK)
2228 .PHONY: debug/pe/check
2229
2230 debug/libproc.$(OBJEXT): $(go_debug_proc_files) container/vector.gox fmt.gox \
2231                 io/ioutil.gox os.gox runtime.gox strconv.gox strings.gox \
2232                 sync.gox syscall.gox
2233         $(BUILDPACKAGE)
2234 debug/libproc.lo: debug/libproc.$(OBJEXT)
2235 debug/libproc.la: debug/libproc.lo
2236 debug/proc/check: $(CHECK_DEPS)
2237         @$(MKDIR_P) debug/proc
2238         $(CHECK)
2239 .PHONY: debug/proc/check
2240
2241 encoding/libascii85.$(OBJEXT): $(go_encoding_ascii85_files) io.gox os.gox \
2242                 strconv.gox
2243         $(BUILDPACKAGE)
2244 encoding/libascii85.lo: encoding/libascii85.$(OBJEXT)
2245 encoding/libascii85.la: encoding/libascii85.lo
2246 encoding/ascii85/check: $(CHECK_DEPS)
2247         @$(MKDIR_P) encoding/ascii85
2248         $(CHECK)
2249 .PHONY: encoding/ascii85/check
2250
2251 encoding/libbase32.$(OBJEXT): $(go_encoding_base32_files) io.gox os.gox \
2252                 strconv.gox
2253         $(BUILDPACKAGE)
2254 encoding/libbase32.lo: encoding/libbase32.$(OBJEXT)
2255 encoding/libbase32.la: encoding/libbase32.lo
2256 encoding/base32/check: $(CHECK_DEPS)
2257         @$(MKDIR_P) encoding/base32
2258         $(CHECK)
2259 .PHONY: encoding/base32/check
2260
2261 encoding/libbase64.$(OBJEXT): $(go_encoding_base64_files) io.gox os.gox \
2262                 strconv.gox
2263         $(BUILDPACKAGE)
2264 encoding/libbase64.lo: encoding/libbase64.$(OBJEXT)
2265 encoding/libbase64.la: encoding/libbase64.lo
2266 encoding/base64/check: $(CHECK_DEPS)
2267         @$(MKDIR_P) encoding/base64
2268         $(CHECK)
2269 .PHONY: encoding/base64/check
2270
2271 encoding/libbinary.$(OBJEXT): $(go_encoding_binary_files) io.gox math.gox \
2272                 os.gox reflect.gox
2273         $(BUILDPACKAGE)
2274 encoding/libbinary.lo: encoding/libbinary.$(OBJEXT)
2275 encoding/libbinary.la: encoding/libbinary.lo
2276 encoding/binary/check: $(CHECK_DEPS)
2277         @$(MKDIR_P) encoding/binary
2278         $(CHECK)
2279 .PHONY: encoding/binary/check
2280
2281 encoding/libgit85.$(OBJEXT): $(go_encoding_git85_files) bytes.gox io.gox \
2282                 os.gox strconv.gox
2283         $(BUILDPACKAGE)
2284 encoding/libgit85.lo: encoding/libgit85.$(OBJEXT)
2285 encoding/libgit85.la: encoding/libgit85.lo
2286 encoding/git85/check: $(CHECK_DEPS)
2287         @$(MKDIR_P) encoding/git85
2288         $(CHECK)
2289 .PHONY: encoding/git85/check
2290
2291 encoding/libhex.$(OBJEXT): $(go_encoding_hex_files) os.gox strconv.gox
2292         $(BUILDPACKAGE)
2293 encoding/libhex.lo: encoding/libhex.$(OBJEXT)
2294 encoding/libhex.la: encoding/libhex.lo
2295 encoding/hex/check: $(CHECK_DEPS)
2296         @$(MKDIR_P) encoding/hex
2297         $(CHECK)
2298 .PHONY: encoding/hex/check
2299
2300 encoding/libline.$(OBJEXT): $(go_encoding_line_files) io.gox os.gox
2301         $(BUILDPACKAGE)
2302 encoding/libline.lo: encoding/libline.$(OBJEXT)
2303 encoding/libline.la: encoding/libline.lo
2304 encoding/line/check: $(CHECK_DEPS)
2305         @$(MKDIR_P) encoding/line
2306         $(CHECK)
2307 .PHONY: encoding/line/check
2308
2309 encoding/libpem.$(OBJEXT): $(go_encoding_pem_files) bytes.gox \
2310                 encoding/base64.gox
2311         $(BUILDPACKAGE)
2312 encoding/libpem.lo: encoding/libpem.$(OBJEXT)
2313 encoding/libpem.la: encoding/libpem.lo
2314 encoding/pem/check: $(CHECK_DEPS)
2315         @$(MKDIR_P) encoding/pem
2316         $(CHECK)
2317 .PHONY: encoding/pem/check
2318
2319 exp/libdatafmt.$(OBJEXT): $(go_exp_datafmt_files) bytes.gox \
2320                 container/vector.gox fmt.gox go/scanner.gox go/token.gox \
2321                 io.gox os.gox reflect.gox runtime.gox strconv.gox strings.gox
2322         $(BUILDPACKAGE)
2323 exp/libdatafmt.lo: exp/libdatafmt.$(OBJEXT)
2324 exp/libdatafmt.la: exp/libdatafmt.lo
2325 exp/datafmt/check: $(CHECK_DEPS)
2326         @$(MKDIR_P) exp/datafmt
2327         $(CHECK)
2328 .PHONY: exp/datafmt/check
2329
2330 exp/libdraw.$(OBJEXT): $(go_exp_draw_files) image.gox os.gox
2331         $(BUILDPACKAGE)
2332 exp/libdraw.lo: exp/libdraw.$(OBJEXT)
2333 exp/libdraw.la: exp/libdraw.lo
2334 exp/draw/check: $(CHECK_DEPS)
2335         @$(MKDIR_P) exp/draw
2336         $(CHECK)
2337 .PHONY: exp/draw/check
2338
2339 exp/libeval.$(OBJEXT): $(go_exp_eval_files) big.gox go/ast.gox go/parser.gox \
2340                 go/scanner.gox go/token.gox fmt.gox log.gox strconv.gox \
2341                 strings.gox os.gox reflect.gox runtime.gox sort.gox template.gox
2342         $(BUILDPACKAGE)
2343 exp/libeval.lo: exp/libeval.$(OBJEXT)
2344 exp/libeval.la: exp/libeval.lo
2345 exp/eval/check: $(CHECK_DEPS)
2346         @$(MKDIR_P) exp/eval
2347         $(CHECK)
2348 .PHONY: exp/eval/check
2349
2350 go/libast.$(OBJEXT): $(go_go_ast_files) fmt.gox go/token.gox io.gox os.gox \
2351                 reflect.gox unicode.gox utf8.gox
2352         $(BUILDPACKAGE)
2353 go/libast.lo: go/libast.$(OBJEXT)
2354 go/libast.la: go/libast.lo
2355 go/ast/check: $(CHECK_DEPS)
2356         @$(MKDIR_P) go/ast
2357         $(CHECK)
2358 .PHONY: go/ast/check
2359
2360 go/libdoc.$(OBJEXT): $(go_go_doc_files) go/ast.gox go/token.gox io.gox \
2361                 regexp.gox sort.gox strings.gox template.gox
2362         $(BUILDPACKAGE)
2363 go/libdoc.lo: go/libdoc.$(OBJEXT)
2364 go/libdoc.la: go/libdoc.lo
2365 go/doc/check: $(CHECK_DEPS)
2366         @$(MKDIR_P) go/doc
2367         $(CHECK)
2368 .PHONY: go/doc/check
2369
2370 go/libparser.$(OBJEXT): $(go_go_parser_files) bytes.gox fmt.gox go/ast.gox \
2371                 go/scanner.gox go/token.gox io.gox io/ioutil.gox os.gox \
2372                 path.gox strings.gox
2373         $(BUILDPACKAGE)
2374 go/libparser.lo: go/libparser.$(OBJEXT)
2375 go/libparser.la: go/libparser.lo
2376 go/parser/check: $(CHECK_DEPS)
2377         @$(MKDIR_P) go/parser
2378         $(CHECK)
2379 .PHONY: go/parser/check
2380
2381 go/libprinter.$(OBJEXT): $(go_go_printer_files) bytes.gox fmt.gox go/ast.gox \
2382                 go/token.gox io.gox os.gox reflect.gox runtime.gox \
2383                 strings.gox tabwriter.gox
2384         $(BUILDPACKAGE)
2385 go/libprinter.lo: go/libprinter.$(OBJEXT)
2386 go/libprinter.la: go/libprinter.lo
2387 go/printer/check: $(CHECK_DEPS)
2388         @$(MKDIR_P) go/printer
2389         $(CHECK)
2390 .PHONY: go/printer/check
2391
2392 go/libscanner.$(OBJEXT): $(go_go_scanner_files) bytes.gox \
2393                 container/vector.gox fmt.gox go/token.gox io.gox os.gox \
2394                 path.gox sort.gox strconv.gox unicode.gox utf8.gox
2395         $(BUILDPACKAGE)
2396 go/libscanner.lo: go/libscanner.$(OBJEXT)
2397 go/libscanner.la: go/libscanner.lo
2398 go/scanner/check: $(CHECK_DEPS)
2399         @$(MKDIR_P) go/scanner
2400         $(CHECK)
2401 .PHONY: go/scanner/check
2402
2403 go/libtoken.$(OBJEXT): $(go_go_token_files) fmt.gox strconv.gox
2404         $(BUILDPACKAGE)
2405 go/libtoken.lo: go/libtoken.$(OBJEXT)
2406 go/libtoken.la: go/libtoken.lo
2407 go/token/check: $(CHECK_DEPS)
2408         @$(MKDIR_P) go/token
2409         $(CHECK)
2410 .PHONY: go/token/check
2411
2412 go/libtypechecker.$(OBJEXT): $(go_go_typechecker_files) fmt.gox go/ast.gox \
2413                 go/token.gox go/scanner.gox os.gox
2414         $(BUILDPACKAGE)
2415 go/libtypechecker.lo: go/libtypechecker.$(OBJEXT)
2416 go/libtypechecker.la: go/libtypechecker.lo
2417 go/typechecker/check: $(CHECK_DEPS)
2418         @$(MKDIR_P) go/typechecker
2419         $(CHECK)
2420 .PHONY: go/typechecker/check
2421
2422 hash/libadler32.$(OBJEXT): $(go_hash_adler32_files) hash.gox os.gox
2423         $(BUILDPACKAGE)
2424 hash/libadler32.lo: hash/libadler32.$(OBJEXT)
2425 hash/libadler32.la: hash/libadler32.lo
2426 hash/adler32/check: $(CHECK_DEPS)
2427         @$(MKDIR_P) hash/adler32
2428         $(CHECK)
2429 .PHONY: hash/adler32/check
2430
2431 hash/libcrc32.$(OBJEXT): $(go_hash_crc32_files) hash.gox os.gox
2432         $(BUILDPACKAGE)
2433 hash/libcrc32.lo: hash/libcrc32.$(OBJEXT)
2434 hash/libcrc32.la: hash/libcrc32.lo
2435 hash/crc32/check: $(CHECK_DEPS)
2436         @$(MKDIR_P) hash/crc32
2437         $(CHECK)
2438 .PHONY: hash/crc32/check
2439
2440 hash/libcrc64.$(OBJEXT): $(go_hash_crc64_files) hash.gox os.gox
2441         $(BUILDPACKAGE)
2442 hash/libcrc64.lo: hash/libcrc64.$(OBJEXT)
2443 hash/libcrc64.la: hash/libcrc64.lo
2444 hash/crc64/check: $(CHECK_DEPS)
2445         @$(MKDIR_P) hash/crc64
2446         $(CHECK)
2447 .PHONY: hash/crc64/check
2448
2449 http/libpprof.$(OBJEXT): $(go_http_pprof_files) bufio.gox fmt.gox http.gox \
2450                 os.gox runtime.gox runtime/pprof.gox strconv.gox strings.gox
2451         $(BUILDPACKAGE)
2452 http/libpprof.lo: http/libpprof.$(OBJEXT)
2453 http/libpprof.la: http/libpprof.lo
2454 http/pprof/check: $(CHECK_DEPS)
2455         @$(MKDIR_P) http/pprof
2456         $(CHECK)
2457 .PHONY: http/pprof/check
2458
2459 image/libjpeg.$(OBJEXT): $(go_image_jpeg_files) bufio.gox image.gox io.gox \
2460                 os.gox
2461         $(BUILDPACKAGE)
2462 image/libjpeg.lo: image/libjpeg.$(OBJEXT)
2463 image/libjpeg.la: image/libjpeg.lo
2464 image/jpeg/check: $(CHECK_DEPS)
2465         @$(MKDIR_P) image/jpeg
2466         $(CHECK)
2467 .PHONY: image/jpeg/check
2468
2469 image/libpng.$(OBJEXT): $(go_image_png_files) bufio.gox compress/zlib.gox \
2470                 fmt.gox hash.gox hash/crc32.gox image.gox io.gox os.gox \
2471                 strconv.gox
2472         $(BUILDPACKAGE)
2473 image/libpng.lo: image/libpng.$(OBJEXT)
2474 image/libpng.la: image/libpng.lo
2475 image/png/check: $(CHECK_DEPS)
2476         @$(MKDIR_P) image/png
2477         $(CHECK)
2478 .PHONY: image/png/check
2479
2480 index/libsuffixarray.$(OBJEXT): $(go_index_suffixarray_files) bytes.gox \
2481                 regexp.gox sort.gox
2482         $(BUILDPACKAGE)
2483 index/libsuffixarray.lo: index/libsuffixarray.$(OBJEXT)
2484 index/libsuffixarray.la: index/libsuffixarray.lo
2485 index/suffixarray/check: $(CHECK_DEPS)
2486         @$(MKDIR_P) index/suffixarray
2487         $(CHECK)
2488 .PHONY: index/suffixarray/check
2489
2490 io/libioutil.$(OBJEXT): $(go_io_ioutil_files) bytes.gox io.gox os.gox sort.gox \
2491                 strconv.gox
2492         $(BUILDPACKAGE)
2493 io/libioutil.lo: io/libioutil.$(OBJEXT)
2494 io/libioutil.la: io/libioutil.lo
2495 io/ioutil/check: $(CHECK_DEPS)
2496         @$(MKDIR_P) io/ioutil
2497         $(CHECK)
2498 .PHONY: io/ioutil/check
2499
2500 mime/libmultipart.$(OBJEXT): $(go_mime_multipart_files) bufio.gox bytes.gox \
2501                 io.gox mime.gox os.gox regexp.gox strings.gox
2502         $(BUILDPACKAGE)
2503 mime/libmultipart.lo: mime/libmultipart.$(OBJEXT)
2504 mime/libmultipart.la: mime/libmultipart.lo
2505 mime/multipart/check: $(CHECK_DEPS)
2506         @$(MKDIR_P) mime/multipart
2507         $(CHECK)
2508 .PHONY: mime/multipart/check
2509
2510 net/libdict.$(OBJEXT): $(go_net_dict_files) container/vector.gox \
2511                 net/textproto.gox os.gox strconv.gox strings.gox
2512         $(BUILDPACKAGE)
2513 net/libdict.lo: net/libdict.$(OBJEXT)
2514 net/libdict.la: net/libdict.lo
2515
2516 net/libtextproto.$(OBJEXT): $(go_net_textproto_files) bufio.gox bytes.gox \
2517                 container/vector.gox fmt.gox io.gox io/ioutil.gox net.gox \
2518                 os.gox strconv.gox sync.gox
2519         $(BUILDPACKAGE)
2520 net/libtextproto.lo: net/libtextproto.$(OBJEXT)
2521 net/libtextproto.la: net/libtextproto.lo
2522 net/textproto/check: $(CHECK_DEPS)
2523         @$(MKDIR_P) net/textproto
2524         $(CHECK)
2525 .PHONY: net/textproto/check
2526
2527 os/libinotify.$(OBJEXT): $(go_os_inotify_files) fmt.gox os.gox strings.gox \
2528                 syscall.gox
2529         $(BUILDPACKAGE)
2530 os/libinotify.lo: os/libinotify.$(OBJEXT)
2531 os/libinotify.la: os/libinotify.lo
2532 os/inotify/check: $(CHECK_DEPS)
2533         @$(MKDIR_P) os/inotify
2534         $(CHECK)
2535 .PHONY: os/inotify/check
2536
2537 os/libsignal.$(OBJEXT): $(go_os_signal_files) runtime.gox strconv.gox
2538         $(BUILDPACKAGE)
2539 os/libsignal.lo: os/libsignal.$(OBJEXT)
2540 os/libsignal.la: os/libsignal.lo
2541 os/signal/check: $(CHECK_DEPS)
2542         @$(MKDIR_P) os/signal
2543         $(CHECK)
2544 .PHONY: os/signal/check
2545
2546 unix.go: $(srcdir)/go/os/signal/mkunix.sh sysinfo.go
2547         $(SHELL) $(srcdir)/go/os/signal/mkunix.sh sysinfo.go > $@.tmp
2548         mv -f $@.tmp $@
2549
2550 rpc/libjsonrpc.$(OBJEXT): $(go_rpc_jsonrpc_files) fmt.gox io.gox json.gox \
2551                 net.gox os.gox rpc.gox sync.gox
2552         $(BUILDPACKAGE)
2553 rpc/libjsonrpc.lo: rpc/libjsonrpc.$(OBJEXT)
2554 rpc/libjsonrpc.la: rpc/libjsonrpc.lo
2555 rpc/jsonrpc/check: $(CHECK_DEPS)
2556         @$(MKDIR_P) rpc/jsonrpc
2557         $(CHECK)
2558 .PHONY: rpc/jsonrpc/check
2559
2560 runtime/libdebug.$(OBJEXT): $(go_runtime_debug_files) bytes.gox fmt.gox \
2561                 io/ioutil.gox os.gox runtime.gox
2562         $(BUILDPACKAGE)
2563 runtime/libdebug.lo: runtime/libdebug.$(OBJEXT)
2564 runtime/libdebug.la: runtime/libdebug.lo
2565 runtime/debug/check: $(CHECK_DEPS)
2566         @$(MKDIR_P) runtime/debug
2567         $(CHECK)
2568 .PHONY: runtime/debug/check
2569
2570 runtime/libpprof.$(OBJEXT): $(go_runtime_pprof_files) bufio.gox fmt.gox \
2571                 io.gox os.gox runtime.gox
2572         $(BUILDPACKAGE)
2573 runtime/libpprof.lo: runtime/libpprof.$(OBJEXT)
2574 runtime/libpprof.la: runtime/libpprof.lo
2575 runtime/pprof/check: $(CHECK_DEPS)
2576         @$(MKDIR_P) runtime/pprof
2577         $(CHECK)
2578 .PHONY: runtime/pprof/check
2579
2580 testing/libiotest.$(OBJEXT): $(go_testing_iotest_files) io.gox log.gox os.gox
2581         $(BUILDPACKAGE)
2582 testing/libiotest.lo: testing/libiotest.$(OBJEXT)
2583 testing/libiotest.la: testing/libiotest.lo
2584 testing/iotest/check: $(CHECK_DEPS)
2585         @$(MKDIR_P) testing/iotest
2586         $(CHECK)
2587 .PHONY: testing/iotest/check
2588
2589 testing/libquick.$(OBJEXT): $(go_testing_quick_files) flag.gox fmt.gox \
2590                 math.gox os.gox rand.gox reflect.gox strings.gox
2591         $(BUILDPACKAGE)
2592 testing/libquick.lo: testing/libquick.$(OBJEXT)
2593 testing/libquick.la: testing/libquick.lo
2594 testing/quick/check: $(CHECK_DEPS)
2595         @$(MKDIR_P) testing/quick
2596         $(CHECK)
2597 .PHONY: testing/quick/check
2598
2599 testing/libscript.$(OBJEXT): $(go_testing_script_files) fmt.gox os.gox \
2600                 rand.gox reflect.gox strings.gox
2601         $(BUILDPACKAGE)
2602 testing/libscript.lo: testing/libscript.$(OBJEXT)
2603 testing/libscript.la: testing/libscript.lo
2604 testing/script/check: $(CHECK_DEPS)
2605         @$(MKDIR_P) testing/script
2606         $(CHECK)
2607 .PHONY: testing/script/check
2608
2609 sysinfo.go: s-sysinfo; @true
2610 s-sysinfo: $(srcdir)/mksysinfo.sh config.h
2611         CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)" $(SHELL) $(srcdir)/mksysinfo.sh
2612         $(SHELL) $(srcdir)/../move-if-change tmp-sysinfo.go sysinfo.go
2613         $(STAMP) $@
2614
2615 syscalls/syscall.$(OBJEXT): $(go_syscall_files) $(go_syscall_c_files) sync.gox
2616         rm -f syscall.gox syscalls/libsyscall.a
2617         test -d syscalls || $(MKDIR_P) syscalls
2618         files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e's/[^ ]*\.c//g'`; \
2619         $(LTGOCOMPILE) -I . -c -fgo-prefix="libgo_syscalls" -o syscalls/syscall.$(OBJEXT) $$files
2620 syscalls/errno.$(OBJEXT): $(srcdir)/syscalls/errno.c syscalls/syscall.$(OBJEXT)
2621         $(LTCOMPILE) -c -o syscalls/errno.$(OBJEXT) $(srcdir)/syscalls/errno.c
2622 syscalls/libsyscall.la: syscalls/syscall.$(OBJEXT) syscalls/errno.$(OBJEXT)
2623         $(LINK) syscalls/syscall.lo syscalls/errno.lo
2624
2625 # How to build a .gox file from a .a file.
2626 BUILDGOX = \
2627         $(OBJCOPY) -j .go_export $< $@.tmp && mv -f $@.tmp $@
2628
2629 asn1.gox: asn1/libasn1.$(OBJEXT)
2630         $(BUILDGOX)
2631 big.gox: big/libbig.$(OBJEXT)
2632         $(BUILDGOX)
2633 bufio.gox: bufio/libbufio.$(OBJEXT)
2634         $(BUILDGOX)
2635 bytes.gox: bytes/bytes.$(OBJEXT)
2636         $(BUILDGOX)
2637 cmath.gox: cmath/libcmath.$(OBJEXT)
2638         $(BUILDGOX)
2639 ebnf.gox: ebnf/libebnf.$(OBJEXT)
2640         $(BUILDGOX)
2641 exec.gox: exec/libexec.$(OBJEXT)
2642         $(BUILDGOX)
2643 expvar.gox: expvar/libexpvar.$(OBJEXT)
2644         $(BUILDGOX)
2645 flag.gox: flag/libflag.$(OBJEXT)
2646         $(BUILDGOX)
2647 fmt.gox: fmt/libfmt.$(OBJEXT)
2648         $(BUILDGOX)
2649 gob.gox: gob/libgob.$(OBJEXT)
2650         $(BUILDGOX)
2651 hash.gox: hash/libhash.$(OBJEXT)
2652         $(BUILDGOX)
2653 html.gox: html/libhtml.$(OBJEXT)
2654         $(BUILDGOX)
2655 http.gox: http/libhttp.$(OBJEXT)
2656         $(BUILDGOX)
2657 image.gox: image/libimage.$(OBJEXT)
2658         $(BUILDGOX)
2659 io.gox: io/libio.$(OBJEXT)
2660         $(BUILDGOX)
2661 json.gox: json/libjson.$(OBJEXT)
2662         $(BUILDGOX)
2663 log.gox: log/liblog.$(OBJEXT)
2664         $(BUILDGOX)
2665 math.gox: math/libmath.$(OBJEXT)
2666         $(BUILDGOX)
2667 mime.gox: mime/libmime.$(OBJEXT)
2668         $(BUILDGOX)
2669 net.gox: net/libnet.$(OBJEXT)
2670         $(BUILDGOX)
2671 netchan.gox: netchan/libnetchan.$(OBJEXT)
2672         $(BUILDGOX)
2673 os.gox: os/libos.$(OBJEXT)
2674         $(BUILDGOX)
2675 patch.gox: patch/libpatch.$(OBJEXT)
2676         $(BUILDGOX)
2677 path.gox: path/libpath.$(OBJEXT)
2678         $(BUILDGOX)
2679 rand.gox: rand/librand.$(OBJEXT)
2680         $(BUILDGOX)
2681 reflect.gox: reflect/libreflect.$(OBJEXT)
2682         $(BUILDGOX)
2683 regexp.gox: regexp/libregexp.$(OBJEXT)
2684         $(BUILDGOX)
2685 rpc.gox: rpc/librpc.$(OBJEXT)
2686         $(BUILDGOX)
2687 runtime.gox: runtime/libruntime.$(OBJEXT)
2688         $(BUILDGOX)
2689 scanner.gox: scanner/libscanner.$(OBJEXT)
2690         $(BUILDGOX)
2691 smtp.gox: smtp/libsmtp.$(OBJEXT)
2692         $(BUILDGOX)
2693 sort.gox: sort/libsort.$(OBJEXT)
2694         $(BUILDGOX)
2695 strconv.gox: strconv/libstrconv.$(OBJEXT)
2696         $(BUILDGOX)
2697 strings.gox: strings/libstrings.$(OBJEXT)
2698         $(BUILDGOX)
2699 sync.gox: sync/mutex.$(OBJEXT)
2700         $(BUILDGOX)
2701 syslog.gox: syslog/libsyslog.$(OBJEXT)
2702         $(BUILDGOX)
2703 syscall.gox: syscalls/syscall.$(OBJEXT)
2704         $(BUILDGOX)
2705 tabwriter.gox: tabwriter/libtabwriter.$(OBJEXT)
2706         $(BUILDGOX)
2707 template.gox: template/libtemplate.$(OBJEXT)
2708         $(BUILDGOX)
2709 testing.gox: testing/libtesting.$(OBJEXT)
2710         $(BUILDGOX)
2711 time.gox: time/libtime.$(OBJEXT)
2712         $(BUILDGOX)
2713 try.gox: try/libtry.$(OBJEXT)
2714         $(BUILDGOX)
2715 unicode.gox: unicode/libunicode.$(OBJEXT)
2716         $(BUILDGOX)
2717 utf16.gox: utf16/libutf16.$(OBJEXT)
2718         $(BUILDGOX)
2719 utf8.gox: utf8/libutf8.$(OBJEXT)
2720         $(BUILDGOX)
2721 websocket.gox: websocket/libwebsocket.$(OBJEXT)
2722         $(BUILDGOX)
2723 xml.gox: xml/libxml.$(OBJEXT)
2724         $(BUILDGOX)
2725
2726 archive/tar.gox: archive/libtar.$(OBJEXT)
2727         $(BUILDGOX)
2728 archive/zip.gox: archive/libzip.$(OBJEXT)
2729         $(BUILDGOX)
2730
2731 compress/flate.gox: compress/libflate.$(OBJEXT)
2732         $(BUILDGOX)
2733 compress/gzip.gox: compress/libgzip.$(OBJEXT)
2734         $(BUILDGOX)
2735 compress/zlib.gox: compress/libzlib.$(OBJEXT)
2736         $(BUILDGOX)
2737
2738 container/heap.gox: container/libheap.$(OBJEXT)
2739         $(BUILDGOX)
2740 container/list.gox: container/liblist.$(OBJEXT)
2741         $(BUILDGOX)
2742 container/ring.gox: container/libring.$(OBJEXT)
2743         $(BUILDGOX)
2744 container/vector.gox: container/libvector.$(OBJEXT)
2745         $(BUILDGOX)
2746
2747 crypto/aes.gox: crypto/libaes.$(OBJEXT)
2748         $(BUILDGOX)
2749 crypto/block.gox: crypto/libblock.$(OBJEXT)
2750         $(BUILDGOX)
2751 crypto/blowfish.gox: crypto/libblowfish.$(OBJEXT)
2752         $(BUILDGOX)
2753 crypto/cast5.gox: crypto/libcast5.$(OBJEXT)
2754         $(BUILDGOX)
2755 crypto/cipher.gox: crypto/libcipher.$(OBJEXT)
2756         $(BUILDGOX)
2757 crypto/elliptic.gox: crypto/libelliptic.$(OBJEXT)
2758         $(BUILDGOX)
2759 crypto/hmac.gox: crypto/libhmac.$(OBJEXT)
2760         $(BUILDGOX)
2761 crypto/md4.gox: crypto/libmd4.$(OBJEXT)
2762         $(BUILDGOX)
2763 crypto/md5.gox: crypto/libmd5.$(OBJEXT)
2764         $(BUILDGOX)
2765 crypto/ocsp.gox: crypto/libocsp.$(OBJEXT)
2766         $(BUILDGOX)
2767 crypto/rand.gox: crypto/librand.$(OBJEXT)
2768         $(BUILDGOX)
2769 crypto/rc4.gox: crypto/librc4.$(OBJEXT)
2770         $(BUILDGOX)
2771 crypto/ripemd160.gox: crypto/libripemd160.$(OBJEXT)
2772         $(BUILDGOX)
2773 crypto/rsa.gox: crypto/librsa.$(OBJEXT)
2774         $(BUILDGOX)
2775 crypto/sha1.gox: crypto/libsha1.$(OBJEXT)
2776         $(BUILDGOX)
2777 crypto/sha256.gox: crypto/libsha256.$(OBJEXT)
2778         $(BUILDGOX)
2779 crypto/sha512.gox: crypto/libsha512.$(OBJEXT)
2780         $(BUILDGOX)
2781 crypto/subtle.gox: crypto/libsubtle.$(OBJEXT)
2782         $(BUILDGOX)
2783 crypto/tls.gox: crypto/libtls.$(OBJEXT)
2784         $(BUILDGOX)
2785 crypto/twofish.gox: crypto/libtwofish.$(OBJEXT)
2786         $(BUILDGOX)
2787 crypto/x509.gox: crypto/libx509.$(OBJEXT)
2788         $(BUILDGOX)
2789 crypto/xtea.gox: crypto/libxtea.$(OBJEXT)
2790         $(BUILDGOX)
2791
2792 crypto/openpgp/armor.gox: crypto/openpgp/libarmor.$(OBJEXT)
2793         $(BUILDGOX)
2794 crypto/openpgp/error.gox: crypto/openpgp/liberror.$(OBJEXT)
2795         $(BUILDGOX)
2796 crypto/openpgp/s2k.gox: crypto/openpgp/libs2k.$(OBJEXT)
2797         $(BUILDGOX)
2798
2799 debug/dwarf.gox: debug/libdwarf.$(OBJEXT)
2800         $(BUILDGOX)
2801 debug/elf.gox: debug/libelf.$(OBJEXT)
2802         $(BUILDGOX)
2803 debug/gosym.gox: debug/libgosym.$(OBJEXT)
2804         $(BUILDGOX)
2805 debug/macho.gox: debug/libmacho.$(OBJEXT)
2806         $(BUILDGOX)
2807 debug/pe.gox: debug/libpe.$(OBJEXT)
2808         $(BUILDGOX)
2809 debug/proc.gox: debug/libproc.$(OBJEXT)
2810         $(BUILDGOX)
2811
2812 encoding/ascii85.gox: encoding/libascii85.$(OBJEXT)
2813         $(BUILDGOX)
2814 encoding/base32.gox: encoding/libbase32.$(OBJEXT)
2815         $(BUILDGOX)
2816 encoding/base64.gox: encoding/libbase64.$(OBJEXT)
2817         $(BUILDGOX)
2818 encoding/binary.gox: encoding/libbinary.$(OBJEXT)
2819         $(BUILDGOX)
2820 encoding/git85.gox: encoding/libgit85.$(OBJEXT)
2821         $(BUILDGOX)
2822 encoding/hex.gox: encoding/libhex.$(OBJEXT)
2823         $(BUILDGOX)
2824 encoding/line.gox: encoding/libline.$(OBJEXT)
2825         $(BUILDGOX)
2826 encoding/pem.gox: encoding/libpem.$(OBJEXT)
2827         $(BUILDGOX)
2828
2829 exp/datafmt.gox: exp/libdatafmt.$(OBJEXT)
2830         $(BUILDGOX)
2831 exp/draw.gox: exp/libdraw.$(OBJEXT)
2832         $(BUILDGOX)
2833 exp/eval.gox: exp/libeval.$(OBJEXT)
2834         $(BUILDGOX)
2835
2836 go/ast.gox: go/libast.$(OBJEXT)
2837         $(BUILDGOX)
2838 go/doc.gox: go/libdoc.$(OBJEXT)
2839         $(BUILDGOX)
2840 go/parser.gox: go/libparser.$(OBJEXT)
2841         $(BUILDGOX)
2842 go/printer.gox: go/libprinter.$(OBJEXT)
2843         $(BUILDGOX)
2844 go/scanner.gox: go/libscanner.$(OBJEXT)
2845         $(BUILDGOX)
2846 go/token.gox: go/libtoken.$(OBJEXT)
2847         $(BUILDGOX)
2848 go/typechecker.gox: go/libtypechecker.$(OBJEXT)
2849         $(BUILDGOX)
2850
2851 hash/adler32.gox: hash/libadler32.$(OBJEXT)
2852         $(BUILDGOX)
2853 hash/crc32.gox: hash/libcrc32.$(OBJEXT)
2854         $(BUILDGOX)
2855 hash/crc64.gox: hash/libcrc64.$(OBJEXT)
2856         $(BUILDGOX)
2857
2858 http/pprof.gox: http/libpprof.$(OBJEXT)
2859         $(BUILDGOX)
2860
2861 image/jpeg.gox: image/libjpeg.$(OBJEXT)
2862         $(BUILDGOX)
2863 image/png.gox: image/libpng.$(OBJEXT)
2864         $(BUILDGOX)
2865
2866 index/suffixarray.gox: index/libsuffixarray.$(OBJEXT)
2867         $(BUILDGOX)
2868
2869 io/ioutil.gox: io/libioutil.$(OBJEXT)
2870         $(BUILDGOX)
2871
2872 mime/multipart.gox: mime/libmultipart.$(OBJEXT)
2873         $(BUILDGOX)
2874
2875 net/dict.gox: net/libdict.$(OBJEXT)
2876         $(BUILDGOX)
2877 net/textproto.gox: net/libtextproto.$(OBJEXT)
2878         $(BUILDGOX)
2879
2880 os/inotify.gox: os/libinotify.$(OBJEXT)
2881         $(BUILDGOX)
2882 os/signal.gox: os/libsignal.$(OBJEXT)
2883         $(BUILDGOX)
2884
2885 rpc/jsonrpc.gox: rpc/libjsonrpc.$(OBJEXT)
2886         $(BUILDGOX)
2887
2888 runtime/debug.gox: runtime/libdebug.$(OBJEXT)
2889         $(BUILDGOX)
2890 runtime/pprof.gox: runtime/libpprof.$(OBJEXT)
2891         $(BUILDGOX)
2892
2893 testing/iotest.gox: testing/libiotest.$(OBJEXT)
2894         $(BUILDGOX)
2895 testing/quick.gox: testing/libquick.$(OBJEXT)
2896         $(BUILDGOX)
2897 testing/script.gox: testing/libscript.$(OBJEXT)
2898         $(BUILDGOX)
2899
2900 if LIBGO_IS_LINUX
2901 # os_inotify_check = os/inotify/check
2902 os_inotify_check =
2903 else
2904 os_inotify_check =
2905 endif
2906
2907 TEST_PACKAGES = \
2908         asn1/check \
2909         big/check \
2910         bufio/check \
2911         bytes/check \
2912         cmath/check \
2913         ebnf/check \
2914         exec/check \
2915         expvar/check \
2916         flag/check \
2917         fmt/check \
2918         gob/check \
2919         html/check \
2920         http/check \
2921         io/check \
2922         json/check \
2923         log/check \
2924         math/check \
2925         mime/check \
2926         net/check \
2927         netchan/check \
2928         os/check \
2929         patch/check \
2930         path/check \
2931         rand/check \
2932         reflect/check \
2933         regexp/check \
2934         rpc/check \
2935         runtime/check \
2936         scanner/check \
2937         smtp/check \
2938         sort/check \
2939         strconv/check \
2940         strings/check \
2941         sync/check \
2942         syslog/check \
2943         tabwriter/check \
2944         template/check \
2945         time/check \
2946         try/check \
2947         unicode/check \
2948         utf16/check \
2949         utf8/check \
2950         websocket/check \
2951         xml/check \
2952         archive/tar/check \
2953         archive/zip/check \
2954         compress/flate/check \
2955         compress/gzip/check \
2956         compress/zlib/check \
2957         container/heap/check \
2958         container/list/check \
2959         container/ring/check \
2960         container/vector/check \
2961         crypto/aes/check \
2962         crypto/block/check \
2963         crypto/blowfish/check \
2964         crypto/cast5/check \
2965         crypto/cipher/check \
2966         crypto/elliptic/check \
2967         crypto/hmac/check \
2968         crypto/md4/check \
2969         crypto/md5/check \
2970         crypto/ocsp/check \
2971         crypto/rand/check \
2972         crypto/rc4/check \
2973         crypto/ripemd160/check \
2974         crypto/rsa/check \
2975         crypto/sha1/check \
2976         crypto/sha256/check \
2977         crypto/sha512/check \
2978         crypto/subtle/check \
2979         crypto/tls/check \
2980         crypto/twofish/check \
2981         crypto/x509/check \
2982         crypto/xtea/check \
2983         crypto/openpgp/armor/check \
2984         crypto/openpgp/s2k/check \
2985         debug/dwarf/check \
2986         debug/elf/check \
2987         debug/macho/check \
2988         debug/pe/check \
2989         encoding/ascii85/check \
2990         encoding/base32/check \
2991         encoding/base64/check \
2992         encoding/binary/check \
2993         encoding/git85/check \
2994         encoding/hex/check \
2995         encoding/line/check \
2996         encoding/pem/check \
2997         exp/datafmt/check \
2998         exp/draw/check \
2999         exp/eval/check \
3000         go/parser/check \
3001         go/printer/check \
3002         go/scanner/check \
3003         go/token/check \
3004         go/typechecker/check \
3005         hash/adler32/check \
3006         hash/crc32/check \
3007         hash/crc64/check \
3008         image/png/check \
3009         index/suffixarray/check \
3010         io/ioutil/check \
3011         mime/multipart/check \
3012         net/textproto/check \
3013         $(os_inotify_check) \
3014         os/signal/check \
3015         rpc/jsonrpc/check \
3016         testing/quick/check \
3017         testing/script/check
3018
3019 check-recursive: $(TEST_PACKAGES)
3020
3021 mostlyclean-local:
3022         find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
3023         find . -name '*.$(OBJEXT)' -print | xargs rm -f
3024
3025 clean-local:
3026         find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
3027         find . -name '*.a' -print | xargs rm -f
3028
3029 CLEANFILES = *.go *.gox goc2c *.c s-version