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