OSDN Git Service

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