PR fortran/77666
[official-gcc.git] / libgo / Makefile.am
blobbd75dd3e02ffb56a304dab74d730e74d9a3b260b
1 # Makefile.am -- Go library Makefile.
3 # Copyright 2009 The Go Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style
5 # license that can be found in the LICENSE file.
7 # Process this file with autoreconf to produce Makefile.in.
9 # Go support.
10 SUFFIXES = .c .go .gox .o .obj .lo .a
12 if LIBGO_IS_RTEMS
13 subdirs = testsuite
14 endif
16 SUBDIRS = ${subdirs}
18 gcc_version := $(shell $(GOC) -dumpversion)
20 MAINT_CHARSET = latin1
22 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
23 PWD_COMMAND = $${PWDCMD-pwd}
24 STAMP = echo timestamp >
26 toolexecdir = $(glibgo_toolexecdir)
27 toolexeclibdir = $(glibgo_toolexeclibdir)
28 toolexeclibgodir = $(nover_glibgo_toolexeclibdir)/go/$(gcc_version)/$(target_alias)
29 libexecsubdir = $(libexecdir)/gcc/$(target_alias)/$(gcc_version)
31 LIBFFI = @LIBFFI@
32 LIBFFIINCS = @LIBFFIINCS@
34 LIBATOMIC = @LIBATOMIC@
36 WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
38 # -I/-D flags to pass when compiling.
39 AM_CPPFLAGS = -I $(srcdir)/runtime $(LIBFFIINCS) $(PTHREAD_CFLAGS)
41 ACLOCAL_AMFLAGS = -I ./config -I ../config
43 AM_CFLAGS = -fexceptions -fnon-call-exceptions -fplan9-extensions \
44         $(SPLIT_STACK) $(WARN_CFLAGS) \
45         $(STRINGOPS_FLAG) $(OSCFLAGS) \
46         -I $(srcdir)/../libgcc -I $(srcdir)/../libbacktrace \
47         -I $(MULTIBUILDTOP)../../gcc/include
49 if USING_SPLIT_STACK
50 AM_LDFLAGS = -XCClinker $(SPLIT_STACK)
51 endif
53 # Multilib support.
54 MAKEOVERRIDES=
56 # Work around what appears to be a GNU make  handling MAKEFLAGS
57 # values defined in terms of make variables, as is the case for CC and
58 # friends when we are called from the top level Makefile.
59 AM_MAKEFLAGS = \
60         "AR_FLAGS=$(AR_FLAGS)" \
61         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
62         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
63         "CFLAGS=$(CFLAGS)" \
64         "CXXFLAGS=$(CXXFLAGS)" \
65         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
66         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
67         "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
68         "GOC=$(GOC)" \
69         "GOCFLAGS=$(GOCFLAGS)" \
70         "INSTALL=$(INSTALL)" \
71         "INSTALL_DATA=$(INSTALL_DATA)" \
72         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
73         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
74         "LDFLAGS=$(LDFLAGS)" \
75         "LIBCFLAGS=$(LIBCFLAGS)" \
76         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
77         "MAKE=$(MAKE)" \
78         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
79         "PICFLAG=$(PICFLAG)" \
80         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
81         "SHELL=$(SHELL)" \
82         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
83         "exec_prefix=$(exec_prefix)" \
84         "infodir=$(infodir)" \
85         "libdir=$(libdir)" \
86         "includedir=$(includedir)" \
87         "prefix=$(prefix)" \
88         "tooldir=$(tooldir)" \
89         "gxx_include_dir=$(gxx_include_dir)" \
90         "AR=$(AR)" \
91         "AS=$(AS)" \
92         "LD=$(LD)" \
93         "RANLIB=$(RANLIB)" \
94         "NM=$(NM)" \
95         "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
96         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
97         "DESTDIR=$(DESTDIR)" \
98         "WERROR=$(WERROR)"
100 # Subdir rules rely on $(FLAGS_TO_PASS)
101 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
103 if GOC_IS_LLGO
104 toolexeclib_LTLIBRARIES = libgo-llgo.la
105 toolexeclib_LIBRARIES = libgobegin-llgo.a
106 else
107 toolexeclib_LTLIBRARIES = libgo.la
108 toolexeclib_LIBRARIES = libgobegin.a libgolibbegin.a libnetgo.a
109 endif
111 toolexeclibgo_DATA = \
112         bufio.gox \
113         bytes.gox \
114         context.gox \
115         crypto.gox \
116         encoding.gox \
117         errors.gox \
118         expvar.gox \
119         flag.gox \
120         fmt.gox \
121         hash.gox \
122         html.gox \
123         image.gox \
124         io.gox \
125         log.gox \
126         math.gox \
127         mime.gox \
128         net.gox \
129         os.gox \
130         path.gox \
131         reflect.gox \
132         regexp.gox \
133         runtime.gox \
134         sort.gox \
135         strconv.gox \
136         strings.gox \
137         sync.gox \
138         syscall.gox \
139         testing.gox \
140         time.gox \
141         unicode.gox
143 toolexeclibgoarchivedir = $(toolexeclibgodir)/archive
145 toolexeclibgoarchive_DATA = \
146         archive/tar.gox \
147         archive/zip.gox
149 toolexeclibgocompressdir = $(toolexeclibgodir)/compress
151 toolexeclibgocompress_DATA = \
152         compress/bzip2.gox \
153         compress/flate.gox \
154         compress/gzip.gox \
155         compress/lzw.gox \
156         compress/zlib.gox
158 toolexeclibgocontainerdir = $(toolexeclibgodir)/container
160 toolexeclibgocontainer_DATA = \
161         container/heap.gox \
162         container/list.gox \
163         container/ring.gox
165 toolexeclibgocryptodir = $(toolexeclibgodir)/crypto
167 toolexeclibgocrypto_DATA = \
168         crypto/aes.gox \
169         crypto/cipher.gox \
170         crypto/des.gox \
171         crypto/dsa.gox \
172         crypto/ecdsa.gox \
173         crypto/elliptic.gox \
174         crypto/hmac.gox \
175         crypto/md5.gox \
176         crypto/rand.gox \
177         crypto/rc4.gox \
178         crypto/rsa.gox \
179         crypto/sha1.gox \
180         crypto/sha256.gox \
181         crypto/sha512.gox \
182         crypto/subtle.gox \
183         crypto/tls.gox \
184         crypto/x509.gox
186 toolexeclibgocryptox509dir = $(toolexeclibgocryptodir)/x509
188 toolexeclibgocryptox509_DATA = \
189         crypto/x509/pkix.gox
191 toolexeclibgodatabasedir = $(toolexeclibgodir)/database
193 toolexeclibgodatabase_DATA = \
194         database/sql.gox
196 toolexeclibgodatabasesqldir = $(toolexeclibgodatabasedir)/sql
198 toolexeclibgodatabasesql_DATA = \
199         database/sql/driver.gox
201 toolexeclibgodebugdir = $(toolexeclibgodir)/debug
203 toolexeclibgodebug_DATA = \
204         debug/dwarf.gox \
205         debug/elf.gox \
206         debug/gosym.gox \
207         debug/macho.gox \
208         debug/pe.gox \
209         debug/plan9obj.gox
211 toolexeclibgoencodingdir = $(toolexeclibgodir)/encoding
213 toolexeclibgoencoding_DATA = \
214         encoding/ascii85.gox \
215         encoding/asn1.gox \
216         encoding/base32.gox \
217         encoding/base64.gox \
218         encoding/binary.gox \
219         encoding/csv.gox \
220         encoding/gob.gox \
221         encoding/hex.gox \
222         encoding/json.gox \
223         encoding/pem.gox \
224         encoding/xml.gox
226 toolexeclibgoexpdir = $(toolexeclibgodir)/exp
228 toolexeclibgoexp_DATA = \
229         exp/proxy.gox \
230         exp/terminal.gox
232 toolexeclibgogodir = $(toolexeclibgodir)/go
234 toolexeclibgogo_DATA = \
235         go/ast.gox \
236         go/build.gox \
237         go/constant.gox \
238         go/doc.gox \
239         go/format.gox \
240         go/importer.gox \
241         go/parser.gox \
242         go/printer.gox \
243         go/scanner.gox \
244         go/token.gox \
245         go/types.gox
247 toolexeclibgohashdir = $(toolexeclibgodir)/hash
249 toolexeclibgohash_DATA = \
250         hash/adler32.gox \
251         hash/crc32.gox \
252         hash/crc64.gox \
253         hash/fnv.gox
255 toolexeclibgohtmldir = $(toolexeclibgodir)/html
257 toolexeclibgohtml_DATA = \
258         html/template.gox
260 toolexeclibgoimagedir = $(toolexeclibgodir)/image
262 toolexeclibgoimage_DATA = \
263         image/color.gox \
264         image/draw.gox \
265         image/gif.gox \
266         image/jpeg.gox \
267         image/png.gox
269 toolexeclibgoimagecolordir = $(toolexeclibgoimagedir)/color
271 toolexeclibgoimagecolor_DATA = \
272         image/color/palette.gox
274 toolexeclibgoindexdir = $(toolexeclibgodir)/index
276 toolexeclibgoindex_DATA = \
277         index/suffixarray.gox
279 toolexeclibgoiodir = $(toolexeclibgodir)/io
281 toolexeclibgoio_DATA = \
282         io/ioutil.gox
284 toolexeclibgologdir = $(toolexeclibgodir)/log
286 toolexeclibgolog_DATA = \
287         log/syslog.gox
289 toolexeclibgomathdir = $(toolexeclibgodir)/math
291 toolexeclibgomath_DATA = \
292         math/big.gox \
293         math/cmplx.gox \
294         math/rand.gox
296 toolexeclibgomimedir = $(toolexeclibgodir)/mime
298 toolexeclibgomime_DATA = \
299         mime/multipart.gox \
300         mime/quotedprintable.gox
302 toolexeclibgonetdir = $(toolexeclibgodir)/net
304 toolexeclibgonet_DATA = \
305         net/http.gox \
306         net/mail.gox \
307         net/rpc.gox \
308         net/smtp.gox \
309         net/textproto.gox \
310         net/url.gox
312 toolexeclibgonethttpdir = $(toolexeclibgonetdir)/http
314 toolexeclibgonethttp_DATA = \
315         net/http/cgi.gox \
316         net/http/cookiejar.gox \
317         net/http/fcgi.gox \
318         net/http/httptest.gox \
319         net/http/httptrace.gox \
320         net/http/httputil.gox \
321         net/http/pprof.gox
323 toolexeclibgonetrpcdir = $(toolexeclibgonetdir)/rpc
325 toolexeclibgonetrpc_DATA = \
326         net/rpc/jsonrpc.gox
328 toolexeclibgoolddir = $(toolexeclibgodir)/old
330 toolexeclibgoold_DATA = \
331         old/regexp.gox \
332         old/template.gox
334 toolexeclibgoosdir = $(toolexeclibgodir)/os
336 toolexeclibgoos_DATA = \
337         os/exec.gox \
338         os/signal.gox \
339         os/user.gox
341 toolexeclibgopathdir = $(toolexeclibgodir)/path
343 toolexeclibgopath_DATA = \
344         path/filepath.gox
346 toolexeclibgoregexpdir = $(toolexeclibgodir)/regexp
348 toolexeclibgoregexp_DATA = \
349         regexp/syntax.gox
351 toolexeclibgoruntimedir = $(toolexeclibgodir)/runtime
353 toolexeclibgoruntime_DATA = \
354         runtime/debug.gox \
355         runtime/pprof.gox
357 toolexeclibgosyncdir = $(toolexeclibgodir)/sync
359 toolexeclibgosync_DATA = \
360         sync/atomic.gox
362 toolexeclibgotestingdir = $(toolexeclibgodir)/testing
364 toolexeclibgotesting_DATA = \
365         testing/iotest.gox \
366         testing/quick.gox
368 toolexeclibgotextdir = $(toolexeclibgodir)/text
370 toolexeclibgotext_DATA = \
371         text/scanner.gox \
372         text/tabwriter.gox \
373         text/template.gox
375 toolexeclibgotexttemplatedir = $(toolexeclibgotextdir)/template
377 toolexeclibgotexttemplate_DATA = \
378         text/template/parse.gox
380 toolexeclibgounicodedir = $(toolexeclibgodir)/unicode
382 toolexeclibgounicode_DATA = \
383         unicode/utf16.gox \
384         unicode/utf8.gox
386 if HAVE_SYS_MMAN_H
387 runtime_mem_file = runtime/mem.c
388 else
389 runtime_mem_file = runtime/mem_posix_memalign.c
390 endif
392 if LIBGO_IS_RTEMS
393 rtems_task_variable_add_file = runtime/rtems-task-variable-add.c
394 else
395 rtems_task_variable_add_file =
396 endif
398 if LIBGO_IS_LINUX
399 runtime_lock_files = runtime/lock_futex.c runtime/thread-linux.c
400 else
401 runtime_lock_files = runtime/lock_sema.c runtime/thread-sema.c
402 endif
404 if LIBGO_IS_LINUX
405 runtime_getncpu_file = runtime/getncpu-linux.c
406 else
407 if LIBGO_IS_DARWIN
408 runtime_getncpu_file = runtime/getncpu-bsd.c
409 else
410 if LIBGO_IS_IRIX
411 runtime_getncpu_file = runtime/getncpu-irix.c
412 else
413 if LIBGO_IS_SOLARIS
414 runtime_getncpu_file = runtime/getncpu-solaris.c
415 else
416 if LIBGO_IS_FREEBSD
417 runtime_getncpu_file = runtime/getncpu-bsd.c
418 else
419 if LIBGO_IS_NETBSD
420 runtime_getncpu_file = runtime/getncpu-bsd.c
421 else
422 runtime_getncpu_file = runtime/getncpu-none.c
423 endif
424 endif
425 endif
426 endif
427 endif
428 endif
430 if LIBGO_IS_LINUX
431 runtime_netpoll_files = runtime/netpoll_epoll.c
432 else
433 if LIBGO_IS_SOLARIS
434 runtime_netpoll_files = runtime/netpoll_select.c
435 else
436 runtime_netpoll_files = runtime/netpoll_kqueue.c
437 endif
438 endif
440 runtime_files = \
441         runtime/go-append.c \
442         runtime/go-assert.c \
443         runtime/go-assert-interface.c \
444         runtime/go-byte-array-to-string.c \
445         runtime/go-breakpoint.c \
446         runtime/go-caller.c \
447         runtime/go-callers.c \
448         runtime/go-can-convert-interface.c \
449         runtime/go-cdiv.c \
450         runtime/go-cgo.c \
451         runtime/go-check-interface.c \
452         runtime/go-construct-map.c \
453         runtime/go-convert-interface.c \
454         runtime/go-copy.c \
455         runtime/go-defer.c \
456         runtime/go-deferred-recover.c \
457         runtime/go-eface-compare.c \
458         runtime/go-eface-val-compare.c \
459         runtime/go-ffi.c \
460         runtime/go-fieldtrack.c \
461         runtime/go-int-array-to-string.c \
462         runtime/go-int-to-string.c \
463         runtime/go-interface-compare.c \
464         runtime/go-interface-eface-compare.c \
465         runtime/go-interface-val-compare.c \
466         runtime/go-make-slice.c \
467         runtime/go-matherr.c \
468         runtime/go-memclr.c \
469         runtime/go-memcmp.c \
470         runtime/go-memequal.c \
471         runtime/go-memmove.c \
472         runtime/go-nanotime.c \
473         runtime/go-now.c \
474         runtime/go-new.c \
475         runtime/go-nosys.c \
476         runtime/go-panic.c \
477         runtime/go-print.c \
478         runtime/go-recover.c \
479         runtime/go-reflect-call.c \
480         runtime/go-rune.c \
481         runtime/go-runtime-error.c \
482         runtime/go-setenv.c \
483         runtime/go-signal.c \
484         runtime/go-strcmp.c \
485         runtime/go-string-to-byte-array.c \
486         runtime/go-string-to-int-array.c \
487         runtime/go-strplus.c \
488         runtime/go-strslice.c \
489         runtime/go-traceback.c \
490         runtime/go-type-complex.c \
491         runtime/go-type-eface.c \
492         runtime/go-type-float.c \
493         runtime/go-type-identity.c \
494         runtime/go-type-interface.c \
495         runtime/go-type-string.c \
496         runtime/go-typedesc-equal.c \
497         runtime/go-unsafe-new.c \
498         runtime/go-unsafe-newarray.c \
499         runtime/go-unsafe-pointer.c \
500         runtime/go-unsetenv.c \
501         runtime/go-unwind.c \
502         runtime/go-varargs.c \
503         runtime/env_posix.c \
504         runtime/heapdump.c \
505         $(runtime_lock_files) \
506         runtime/mcache.c \
507         runtime/mcentral.c \
508         $(runtime_mem_file) \
509         runtime/mfixalloc.c \
510         runtime/mgc0.c \
511         runtime/mheap.c \
512         runtime/msize.c \
513         $(runtime_netpoll_files) \
514         runtime/panic.c \
515         runtime/parfor.c \
516         runtime/print.c \
517         runtime/proc.c \
518         runtime/runtime.c \
519         runtime/signal_unix.c \
520         runtime/thread.c \
521         runtime/yield.c \
522         $(rtems_task_variable_add_file) \
523         chan.c \
524         cpuprof.c \
525         go-iface.c \
526         lfstack.c \
527         malloc.c \
528         mprof.c \
529         netpoll.c \
530         rdebug.c \
531         reflect.c \
532         runtime1.c \
533         sema.c \
534         sigqueue.c \
535         string.c \
536         time.c \
537         $(runtime_getncpu_file)
539 goc2c.$(OBJEXT): runtime/goc2c.c
540         $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
542 goc2c: goc2c.$(OBJEXT)
543         $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
545 malloc.c: $(srcdir)/runtime/malloc.goc goc2c
546         ./goc2c $< > $@.tmp
547         mv -f $@.tmp $@
549 mprof.c: $(srcdir)/runtime/mprof.goc goc2c
550         ./goc2c $< > $@.tmp
551         mv -f $@.tmp $@
553 netpoll.c: $(srcdir)/runtime/netpoll.goc goc2c
554         ./goc2c $< > $@.tmp
555         mv -f $@.tmp $@
557 reflect.c: $(srcdir)/runtime/reflect.goc goc2c
558         ./goc2c $< > $@.tmp
559         mv -f $@.tmp $@
561 runtime1.c: $(srcdir)/runtime/runtime1.goc goc2c
562         ./goc2c $< > $@.tmp
563         mv -f $@.tmp $@
565 sema.c: $(srcdir)/runtime/sema.goc goc2c
566         ./goc2c $< > $@.tmp
567         mv -f $@.tmp $@
569 sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
570         ./goc2c --go-pkgpath os_signal $< > $@.tmp
571         mv -f $@.tmp $@
573 time.c: $(srcdir)/runtime/time.goc goc2c
574         ./goc2c $< > $@.tmp
575         mv -f $@.tmp $@
577 %.c: $(srcdir)/runtime/%.goc goc2c
578         ./goc2c $< > $@.tmp
579         mv -f $@.tmp $@
581 version.go: s-version; @true
582 s-version: Makefile
583         rm -f version.go.tmp
584         echo "package sys" > version.go.tmp
585         echo 'const DefaultGoroot = "$(prefix)"' >> version.go.tmp
586         echo 'const TheVersion = "'`cat $(srcdir)/VERSION | sed 1q`' '`$(GOC) --version | sed 1q`'"' >> version.go.tmp
587         echo 'const GOARCH = "'$(GOARCH)'"' >> version.go.tmp
588         echo 'const GOOS = "'$(GOOS)'"' >> version.go.tmp
589         echo 'const GccgoToolDir = "$(libexecsubdir)"' >> version.go.tmp
590         echo >> version.go.tmp
591         echo "type ArchFamilyType int" >> version.go.tmp
592         echo >> version.go.tmp
593         echo "const (" >> version.go.tmp
594         echo "  UNKNOWN ArchFamilyType = iota" >> version.go.tmp
595         for a in $(ALLGOARCHFAMILY); do \
596           echo "        $${a}" >> version.go.tmp; \
597         done
598         echo ")" >> version.go.tmp
599         echo >> version.go.tmp
600         for a in $(ALLGOARCH); do \
601           f=`echo $${a} | sed -e 's/\(.\).*/\1/' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`; \
602           n="$${f}`echo $${a} | sed -e 's/.//'`"; \
603           if test "$${a}" = "$(GOARCH)"; then \
604             echo "const Goarch$${n} = 1" >> version.go.tmp; \
605           else \
606             echo "const Goarch$${n} = 0" >> version.go.tmp; \
607           fi; \
608         done
609         echo >> version.go.tmp
610         echo "const (" >> version.go.tmp
611         echo "  ArchFamily = $(GOARCH_FAMILY)" >> version.go.tmp
612         echo "  BigEndian = $(GOARCH_BIGENDIAN)" >> version.go.tmp
613         echo "  CacheLineSize = $(GOARCH_CACHELINESIZE)" >> version.go.tmp
614         echo "  PhysPageSize = $(GOARCH_PHYSPAGESIZE)" >> version.go.tmp
615         echo "  PCQuantum = $(GOARCH_PCQUANTUM)" >> version.go.tmp
616         echo "  Int64Align = $(GOARCH_INT64ALIGN)" >> version.go.tmp
617         echo "  HugePageSize = $(GOARCH_HUGEPAGESIZE)" >> version.go.tmp
618         echo "  MinFrameSize = $(GOARCH_MINFRAMESIZE)" >> version.go.tmp
619         echo ")" >> version.go.tmp
620         echo >> version.go.tmp
621         for a in $(ALLGOOS); do \
622           f=`echo $${a} | sed -e 's/\(.\).*/\1/' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`; \
623           n="$${f}`echo $${a} | sed -e 's/.//'`"; \
624           if test "$${a}" = "$(GOOS)"; then \
625             echo "const Goos$${n} = 1" >> version.go.tmp; \
626           else \
627             echo "const Goos$${n} = 0" >> version.go.tmp; \
628           fi; \
629         done
630         echo >> version.go.tmp
631         echo "type Uintreg uintptr" >> version.go.tmp
632         $(SHELL) $(srcdir)/mvifdiff.sh version.go.tmp version.go
633         $(STAMP) $@
635 runtime_sysinfo.go: s-runtime_sysinfo; @true
636 s-runtime_sysinfo: sysinfo.go
637         rm -f tmp-runtime_sysinfo.go
638         echo 'package runtime' > tmp-runtime_sysinfo.go
639         echo >> tmp-runtime_sysinfo.go
640         grep 'const _sizeof_ucontext_t ' sysinfo.go >> tmp-runtime_sysinfo.go
641         grep 'type _sigset_t ' sysinfo.go >> tmp-runtime_sysinfo.go
642         $(SHELL) $(srcdir)/mvifdiff.sh tmp-runtime_sysinfo.go runtime_sysinfo.go
643         $(STAMP) $@
645 noinst_DATA = zstdpkglist.go
647 # Generate the list of go std packages that were included in libgo
648 zstdpkglist.go: s-zstdpkglist; @true
649 s-zstdpkglist: Makefile
650         rm -f zstdpkglist.go.tmp
651         echo 'package main' > zstdpkglist.go.tmp
652         echo "" >> zstdpkglist.go.tmp
653         echo 'var stdpkg = map[string]bool{' >> zstdpkglist.go.tmp
654         echo $(libgo_go_objs) 'unsafe.lo' 'runtime/cgo.lo' | sed 's/\.lo /\": true,\n/g' | sed 's/\.lo/\": true,/' | sed 's/-go//' | grep -v _c | sed 's/^/\t\"/' | sort | uniq >> zstdpkglist.go.tmp
655         echo '}' >> zstdpkglist.go.tmp
656         $(SHELL) $(srcdir)/mvifdiff.sh zstdpkglist.go.tmp zstdpkglist.go
657         $(STAMP) $@
659 if LIBGO_IS_LINUX
660 syscall_epoll_file = epoll.go
661 else
662 syscall_epoll_file =
663 endif
665 extra_go_files_syscall = \
666         libcalls.go \
667         sysinfo.go \
668         syscall_arch.go \
669         $(syscall_epoll_file)
671 libcalls.go: s-libcalls; @true
672 s-libcalls: libcalls-list go/syscall/mksyscall.awk $(srcdir)/go/syscall/*.go
673         rm -f libcalls.go.tmp
674         $(AWK) -f $(srcdir)/go/syscall/mksyscall.awk `cat libcalls-list` > libcalls.go.tmp
675         $(SHELL) $(srcdir)/mvifdiff.sh libcalls.go.tmp libcalls.go
676         $(STAMP) $@
678 libcalls-list: s-libcalls-list; @true
679 s-libcalls-list: Makefile $(srcdir)/go/syscall/*.go
680         rm -f libcalls-list.tmp
681         $(SHELL) $(srcdir)/match.sh --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/syscall $(matchargs_syscall) > libcalls-list.tmp
682         $(SHELL) $(srcdir)/mvifdiff.sh libcalls-list.tmp libcalls-list
683         $(STAMP) $@
685 syscall_arch.go: s-syscall_arch; @true
686 s-syscall_arch: Makefile
687         rm -f syscall_arch.go.tmp
688         echo "package syscall" > syscall_arch.go.tmp
689         echo 'const ARCH = "'$(GOARCH)'"' >> syscall_arch.go.tmp
690         echo 'const OS = "'$(GOOS)'"' >> syscall_arch.go.tmp
691         $(SHELL) $(srcdir)/mvifdiff.sh syscall_arch.go.tmp syscall_arch.go
692         $(STAMP) $@
694 sysinfo.go: s-sysinfo; @true
695 s-sysinfo: $(srcdir)/mksysinfo.sh config.h
696         CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS) -O" $(SHELL) $(srcdir)/mksysinfo.sh
697         $(SHELL) $(srcdir)/mvifdiff.sh tmp-sysinfo.go sysinfo.go
698         $(STAMP) $@
700 # The epoll struct has an embedded union and is packed on x86_64,
701 # which is too complicated for mksysinfo.sh.  We find the offset of
702 # the only field we care about in configure.ac, and generate the
703 # struct here.
704 epoll.go: s-epoll; @true
705 s-epoll: Makefile
706         rm -f epoll.go.tmp
707         echo 'package syscall' > epoll.go.tmp
708         echo 'type EpollEvent struct {' >> epoll.go.tmp
709         echo '  Events uint32' >> epoll.go.tmp
710         case "$(SIZEOF_STRUCT_EPOLL_EVENT),$(STRUCT_EPOLL_EVENT_FD_OFFSET)" in \
711         0,0) echo 1>&2 "*** struct epoll_event data.fd offset unknown"; \
712            exit 1; ;; \
713         8,4) echo '     Fd int32' >> epoll.go.tmp; ;; \
714         12,4) echo '    Fd int32' >> epoll.go.tmp; \
715            echo '       Pad [4]byte' >> epoll.go.tmp; ;; \
716         12,8) echo '    Pad [4]byte' >> epoll.go.tmp; \
717            echo '       Fd int32' >> epoll.go.tmp; ;; \
718         16,8) echo '    Pad [4]byte' >> epoll.go.tmp; \
719            echo '       Fd int32' >> epoll.go.tmp; \
720            echo '       Pad2 [4]byte' >> epoll.go.tmp; ;; \
721         *) echo 1>&2 "*** struct epoll_event unsupported"; \
722            exit 1; ;; \
723         esac
724         echo '}' >> epoll.go.tmp
725         $(SHELL) $(srcdir)/mvifdiff.sh epoll.go.tmp epoll.go
726         $(STAMP) $@
728 libgo_go_objs = \
729         bufio.lo \
730         bytes.lo \
731         bytes/index.lo \
732         context.lo \
733         crypto.lo \
734         encoding.lo \
735         errors.lo \
736         expvar.lo \
737         flag.lo \
738         fmt.lo \
739         hash.lo \
740         html.lo \
741         image.lo \
742         io.lo \
743         log.lo \
744         math.lo \
745         mime.lo \
746         net.lo \
747         os.lo \
748         path.lo \
749         reflect-go.lo \
750         reflect/makefunc_ffi_c.lo \
751         regexp.lo \
752         runtime-go.lo \
753         sort.lo \
754         strconv.lo \
755         strings.lo \
756         strings/index.lo \
757         sync.lo \
758         syscall.lo \
759         syscall/errno.lo \
760         syscall/signame.lo \
761         syscall/wait.lo \
762         testing.lo \
763         time-go.lo \
764         unicode.lo \
765         archive/tar.lo \
766         archive/zip.lo \
767         compress/bzip2.lo \
768         compress/flate.lo \
769         compress/gzip.lo \
770         compress/lzw.lo \
771         compress/zlib.lo \
772         container/heap.lo \
773         container/list.lo \
774         container/ring.lo \
775         crypto/aes.lo \
776         crypto/cipher.lo \
777         crypto/des.lo \
778         crypto/dsa.lo \
779         crypto/ecdsa.lo \
780         crypto/elliptic.lo \
781         crypto/hmac.lo \
782         crypto/md5.lo \
783         crypto/rand.lo \
784         crypto/rc4.lo \
785         crypto/rsa.lo \
786         crypto/sha1.lo \
787         crypto/sha256.lo \
788         crypto/sha512.lo \
789         crypto/subtle.lo \
790         crypto/tls.lo \
791         crypto/x509.lo \
792         crypto/x509/pkix.lo \
793         database/sql.lo \
794         database/sql/driver.lo \
795         debug/dwarf.lo \
796         debug/elf.lo \
797         debug/gosym.lo \
798         debug/macho.lo \
799         debug/pe.lo \
800         debug/plan9obj.lo \
801         encoding/ascii85.lo \
802         encoding/asn1.lo \
803         encoding/base32.lo \
804         encoding/base64.lo \
805         encoding/binary.lo \
806         encoding/csv.lo \
807         encoding/gob.lo \
808         encoding/hex.lo \
809         encoding/json.lo \
810         encoding/pem.lo \
811         encoding/xml.lo \
812         exp/proxy.lo \
813         exp/terminal.lo \
814         html/template.lo \
815         go/ast.lo \
816         go/build.lo \
817         go/constant.lo \
818         go/doc.lo \
819         go/format.lo \
820         go/importer.lo \
821         go/internal/gcimporter.lo \
822         go/internal/gccgoimporter.lo \
823         go/parser.lo \
824         go/printer.lo \
825         go/scanner.lo \
826         go/token.lo \
827         go/types.lo \
828         golang_org/x/net/http2/hpack.lo \
829         golang_org/x/net/lex/httplex.lo \
830         $(golang_org_x_net_route_lo) \
831         hash/adler32.lo \
832         hash/crc32.lo \
833         hash/crc64.lo \
834         hash/fnv.lo \
835         net/http/cgi.lo \
836         net/http/cookiejar.lo \
837         net/http/fcgi.lo \
838         net/http/httptest.lo \
839         net/http/httptrace.lo \
840         net/http/httputil.lo \
841         net/http/internal.lo \
842         net/http/pprof.lo \
843         image/color.lo \
844         image/color/palette.lo \
845         image/draw.lo \
846         image/gif.lo \
847         image/internal/imageutil.lo \
848         image/jpeg.lo \
849         image/png.lo \
850         index/suffixarray.lo \
851         internal/nettrace.lo \
852         internal/race.lo \
853         internal/singleflight.lo \
854         internal/syscall/unix.lo \
855         internal/testenv.lo \
856         internal/trace.lo \
857         io/ioutil.lo \
858         log/syslog.lo \
859         log/syslog/syslog_c.lo \
860         math/big.lo \
861         math/cmplx.lo \
862         math/rand.lo \
863         mime/multipart.lo \
864         mime/quotedprintable.lo \
865         net/http.lo \
866         net/internal/socktest.lo \
867         net/mail.lo \
868         net/rpc.lo \
869         net/smtp.lo \
870         net/textproto.lo \
871         net/url.lo \
872         old/regexp.lo \
873         old/template.lo \
874         os/exec.lo \
875         $(os_lib_inotify_lo) \
876         os/signal.lo \
877         os/user.lo \
878         path/filepath.lo \
879         regexp/syntax.lo \
880         net/rpc/jsonrpc.lo \
881         runtime/debug.lo \
882         runtime/pprof.lo \
883         runtime/internal/atomic.lo \
884         runtime/internal/atomic_c.lo \
885         runtime/internal/sys.lo \
886         sync/atomic.lo \
887         sync/atomic_c.lo \
888         text/scanner.lo \
889         text/tabwriter.lo \
890         text/template.lo \
891         text/template/parse.lo \
892         testing/iotest.lo \
893         testing/quick.lo \
894         unicode/utf16.lo \
895         unicode/utf8.lo
897 libgo_ldflags = \
898         -version-info $(libtool_VERSION) $(PTHREAD_CFLAGS) $(AM_LDFLAGS)
900 libgo_libadd = \
901         $(libgo_go_objs) ../libbacktrace/libbacktrace.la \
902         $(LIBATOMIC) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)
904 libgo_la_SOURCES = $(runtime_files)
905 libgo_la_LDFLAGS = $(libgo_ldflags)
906 libgo_la_LIBADD = $(libgo_libadd)
908 libgo_llgo_la_SOURCES = $(runtime_files)
909 libgo_llgo_la_LDFLAGS = $(libgo_ldflags)
910 libgo_llgo_la_LIBADD = $(libgo_libadd)
912 libgobegin_a_SOURCES = \
913         runtime/go-main.c
915 libgobegin_llgo_a_SOURCES = \
916         runtime/go-main.c
918 # Use -fPIC for libgobegin so that it can be put in a PIE.
919 libgobegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
920 libgobegin_llgo_a_CFLAGS = $(AM_CFLAGS) -fPIC
922 libgolibbegin_a_SOURCES = \
923         runtime/go-libmain.c
925 libgolibbegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
927 libnetgo_a_SOURCES =
928 libnetgo_a_LIBADD = netgo.o
930 # Make sure runtime.inc is built before compiling any .c file.
931 $(libgo_la_OBJECTS): runtime.inc
932 $(libgo_llgo_la_OBJECTS): runtime.inc
933 $(libgobegin_a_OBJECTS): runtime.inc
934 $(libgobegin_llgo_a_OBJECTS): runtime.inc
935 $(libgolibbegin_a_OBJECTS): runtime.inc
937 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
939 GOCFLAGS = $(CFLAGS)
940 AM_GOCFLAGS = $(STRINGOPS_FLAG) $(GO_SPLIT_STACK)
941 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
943 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
944         $(AM_GOCFLAGS) $(GOCFLAGS)
946 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
947         $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
949 # Build the dependencies for a Go package.
950 BUILDDEPS = \
951         $(MKDIR_P) $(@D); \
952         dir=`echo $@ | sed -e 's/.lo.dep$$//' -e 's/-go//'`; \
953         files=`$(SHELL) $(srcdir)/match.sh --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/$$dir --extrafiles="$(extra_go_files_$(subst /,_,$(subst -go,,$(subst .lo.dep,,$@))))" $(matchargs_$(subst /,_,$(subst -go,,$(subst .lo.dep,,$@))))`; \
954         $(SHELL) $(srcdir)/godeps.sh `echo $@ | sed -e 's/.dep$$//'` $$files > $@.tmp; \
955         if ! cmp $@.tmp $@ >/dev/null 2>/dev/null; then \
956           rm -f `echo $@ | sed -e 's/\.dep$$//'`; \
957         fi; \
958         mv -f $@.tmp $@
960 # Build the .go files for a package, generating a .lo file.
961 BUILDPACKAGE = \
962         $(MKDIR_P) $(@D); \
963         files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; \
964         $(LTGOCOMPILE) -I . -c -fgo-pkgpath=`echo $@ | sed -e 's/.lo$$//' -e 's/-go$$//'` $($(subst -,_,$(subst .,_,$(subst /,_,$@)))_GOCFLAGS) -o $@ $$files
966 # Build deps for netgo.o.
967 BUILDNETGODEPS = \
968         $(MKDIR_P) $(@D); \
969         files=`$(SHELL) $(srcdir)/match.sh --nocgo --tag=netgo --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/net`; \
970         $(SHELL) $(srcdir)/godeps.sh netgo.o $$files > $@.tmp; \
971         mv -f $@.tmp $@
973 # Build netgo.o.
974 BUILDNETGO = \
975         $(MKDIR_P) $(@D); \
976         files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; \
977         $(GOCOMPILE) -I . -c -fPIC -fgo-pkgpath=net -o $@ $$files
979 GOTESTFLAGS =
980 GOBENCH = 
982 # Check a package.
983 CHECK = \
984         GC="$(GOC) $(GOCFLAGS) $($(subst /,_,$@)_GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
985         export GC; \
986         GOLIBS="$(MATH_LIBS) $(NET_LIBS) $(LIBS)"; \
987         export GOLIBS; \
988         RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
989         export RUNTESTFLAGS; \
990         MAKE="$(MAKE)"; \
991         export MAKE; \
992         libgccdir=`${GOC} -print-libgcc-file-name | sed -e 's|/[^/]*$$||'`; \
993         LD_LIBRARY_PATH="`${PWD_COMMAND}`/.libs:$${libgccdir}:${LD_LIBRARY_PATH}"; \
994         LD_LIBRARY_PATH=`echo $${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
995         export LD_LIBRARY_PATH; \
996         $(MKDIR_P) $(@D); \
997         rm -f $@-testsum $@-testlog; \
998         files=`$(SHELL) $(srcdir)/match.sh --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/$(@D) --extrafiles="$(extra_go_files_$(subst /,_,$(@D)))" $(matchargs_$(subst /,_,$(@D)))`; \
999         if test "$(USE_DEJAGNU)" = "yes"; then \
1000           $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" --testname="$(@D)" $(GOTESTFLAGS); \
1001         elif test "$(GOBENCH)" != ""; then \
1002           $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" --bench="$(GOBENCH)" $(GOTESTFLAGS); \
1003         else \
1004           if $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" $(GOTESTFLAGS) >>$@-testlog 2>&1; then \
1005             echo "PASS: $(@D)" >> $@-testlog; \
1006             echo "PASS: $(@D)"; \
1007             echo "PASS: $(@D)" > $@-testsum; \
1008           else \
1009             echo "FAIL: $(@D)" >> $@-testlog; \
1010             cat $@-testlog; \
1011             echo "FAIL: $(@D)" > $@-testsum; \
1012             exit 1; \
1013           fi; \
1014         fi
1016 # Build all packages before checking any.
1017 CHECK_DEPS = \
1018         $(toolexeclibgo_DATA) \
1019         $(toolexeclibgoarchive_DATA) \
1020         $(toolexeclibgocompress_DATA) \
1021         $(toolexeclibgocontainer_DATA) \
1022         $(toolexeclibgocrypto_DATA) \
1023         $(toolexeclibgodebug_DATA) \
1024         $(toolexeclibgoencoding_DATA) \
1025         $(toolexeclibgoexp_DATA) \
1026         $(toolexeclibgogo_DATA) \
1027         $(toolexeclibgohash_DATA) \
1028         $(toolexeclibgoimage_DATA) \
1029         $(toolexeclibgoindex_DATA) \
1030         $(toolexeclibgoio_DATA) \
1031         $(toolexeclibgolog_DATA) \
1032         $(toolexeclibgomath_DATA) \
1033         $(toolexeclibgomime_DATA) \
1034         $(toolexeclibgonet_DATA) \
1035         $(toolexeclibgonethttp_DATA) \
1036         $(toolexeclibgoos_DATA) \
1037         $(toolexeclibgopath_DATA) \
1038         $(toolexeclibgorpc_DATA) \
1039         $(toolexeclibgoruntime_DATA) \
1040         $(toolexeclibgosync_DATA) \
1041         $(toolexeclibgotesting_DATA) \
1042         $(toolexeclibgotext_DATA) \
1043         $(toolexeclibgotexttemplate_DATA) \
1044         $(toolexeclibgounicode_DATA)
1046 if GOC_IS_LLGO
1047 CHECK_DEPS += libgo-llgo.la libgobegin-llgo.a
1048 else
1049 CHECK_DEPS += libgo.la libgobegin.a
1050 endif
1052 @go_include@ bufio.lo.dep
1053 bufio.lo.dep: $(srcdir)/go/bufio/*.go
1054         $(BUILDDEPS)
1055 bufio.lo:
1056         $(BUILDPACKAGE)
1057 bufio/check: $(CHECK_DEPS)
1058         @$(CHECK)
1059 .PHONY: bufio/check
1061 @go_include@ bytes.lo.dep
1062 bytes.lo.dep: $(srcdir)/go/bytes/*.go
1063         $(BUILDDEPS)
1064 bytes.lo:
1065         $(BUILDPACKAGE)
1066 bytes/index.lo: go/bytes/indexbyte.c runtime.inc
1067         @$(MKDIR_P) bytes
1068         $(LTCOMPILE) -c -o bytes/index.lo $(srcdir)/go/bytes/indexbyte.c
1069 bytes/check: $(CHECK_DEPS)
1070         @$(CHECK)
1071 .PHONY: bytes/check
1073 @go_include@ context.lo.dep
1074 context.lo.dep: $(srcdir)/go/context/*.go
1075         $(BUILDDEPS)
1076 context.lo:
1077         $(BUILDPACKAGE)
1078 context/check: $(CHECK_DEPS)
1079         @$(CHECK)
1080 .PHONY: context/check
1082 @go_include@ crypto.lo.dep
1083 crypto.lo.dep: $(srcdir)/go/crypto/*.go
1084         $(BUILDDEPS)
1085 crypto.lo:
1086         $(BUILDPACKAGE)
1087 crypto/check: $(CHECK_DEPS)
1088         @$(CHECK)
1089 .PHONY: crypto/check
1091 @go_include@ encoding.lo.dep
1092 encoding.lo.dep: $(srcdir)/go/encoding/*.go
1093         $(BUILDDEPS)
1094 encoding.lo:
1095         $(BUILDPACKAGE)
1096 encoding/check: $(CHECK_DEPS)
1097         @$(CHECK)
1098 .PHONY: encoding/check
1100 @go_include@ errors.lo.dep
1101 errors.lo.dep: $(srcdir)/go/errors/*.go
1102         $(BUILDDEPS)
1103 errors.lo:
1104         $(BUILDPACKAGE)
1105 errors/check: $(CHECK_DEPS)
1106         @$(CHECK)
1107 .PHONY: errors/check
1109 @go_include@ expvar.lo.dep
1110 expvar.lo.dep: $(srcdir)/go/expvar/*.go
1111         $(BUILDDEPS)
1112 expvar.lo:
1113         $(BUILDPACKAGE)
1114 expvar/check: $(CHECK_DEPS)
1115         @$(CHECK)
1116 .PHONY: expvar/check
1118 @go_include@ flag.lo.dep
1119 flag.lo.dep: $(srcdir)/go/flag/*.go
1120         $(BUILDDEPS)
1121 flag.lo:
1122         $(BUILDPACKAGE)
1123 flag/check: $(CHECK_DEPS)
1124         @$(CHECK)
1125 .PHONY: flag/check
1127 @go_include@ fmt.lo.dep
1128 fmt.lo.dep: $(srcdir)/go/fmt/*.go
1129         $(BUILDDEPS)
1130 fmt.lo:
1131         $(BUILDPACKAGE)
1132 fmt/check: $(CHECK_DEPS)
1133         @$(CHECK)
1134 .PHONY: fmt/check
1136 @go_include@ hash.lo.dep
1137 hash.lo.dep: $(srcdir)/go/hash/*.go
1138         $(BUILDDEPS)
1139 hash.lo:
1140         $(BUILDPACKAGE)
1141 hash/check: $(CHECK_DEPS)
1142         @$(CHECK)
1143 .PHONY: hash/check
1145 @go_include@ html.lo.dep
1146 html.lo.dep: $(srcdir)/go/html/*.go
1147         $(BUILDDEPS)
1148 html.lo:
1149         $(BUILDPACKAGE)
1150 html/check: $(CHECK_DEPS)
1151         @$(CHECK)
1152 .PHONY: html/check
1154 @go_include@ image.lo.dep
1155 image.lo.dep: $(srcdir)/go/image/*.go
1156         $(BUILDDEPS)
1157 image.lo:
1158         $(BUILDPACKAGE)
1159 image/check: $(CHECK_DEPS)
1160         @$(CHECK)
1161 .PHONY: image/check
1163 @go_include@ io.lo.dep
1164 io.lo.dep: $(srcdir)/go/io/*.go
1165         $(BUILDDEPS)
1166 io.lo:
1167         $(BUILDPACKAGE)
1168 io/check: $(CHECK_DEPS)
1169         @$(CHECK)
1170 .PHONY: io/check
1172 @go_include@ log.lo.dep
1173 log.lo.dep: $(srcdir)/go/log/*.go
1174         $(BUILDDEPS)
1175 log.lo:
1176         $(BUILDPACKAGE)
1177 log/check: $(CHECK_DEPS)
1178         @$(CHECK)
1179 .PHONY: log/check
1181 @go_include@ math.lo.dep
1182 math.lo.dep: $(srcdir)/go/math/*.go
1183         $(BUILDDEPS)
1184 math.lo:
1185         $(MKDIR_P) $(@D)
1186         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
1187         $(LTGOCOMPILE) $(MATH_FLAG) -I . -c -fgo-pkgpath=math -o $@ $$files
1188 math/check: $(CHECK_DEPS)
1189         @$(CHECK)
1190 .PHONY: math/check
1192 @go_include@ mime.lo.dep
1193 mime.lo.dep: $(srcdir)/go/mime/*.go
1194         $(BUILDDEPS)
1195 mime.lo:
1196         $(BUILDPACKAGE)
1197 mime/check: $(CHECK_DEPS)
1198         @$(CHECK)
1199 .PHONY: mime/check
1201 @go_include@ net.lo.dep
1202 net.lo.dep: $(srcdir)/go/net/*.go
1203         $(BUILDDEPS)
1204 net.lo:
1205         $(BUILDPACKAGE)
1206 net/check: $(CHECK_DEPS)
1207         @$(CHECK)
1208 .PHONY: net/check
1210 @go_include@ netgo.o.dep
1211 netgo.o.dep: $(srcdir)/go/net/*.go
1212         $(BUILDNETGODEPS)
1213 netgo.o: netgo.o.dep
1214         $(BUILDNETGO)
1216 if LIBGO_IS_SOLARIS
1217 if HAVE_STAT_TIMESPEC
1218 matchargs_os = --tag=solaristag
1219 else
1220 matchargs_os =
1221 endif
1222 else
1223 matchargs_os =
1224 endif
1226 @go_include@ os.lo.dep
1227 os.lo.dep: $(srcdir)/go/os/*.go
1228         $(BUILDDEPS)
1229 os.lo:
1230         $(BUILDPACKAGE)
1231 os/check: $(CHECK_DEPS)
1232         @$(CHECK)
1233 .PHONY: os/check
1235 @go_include@ path.lo.dep
1236 path.lo.dep: $(srcdir)/go/path/*.go
1237         $(BUILDDEPS)
1238 path.lo:
1239         $(BUILDPACKAGE)
1240 path/check: $(CHECK_DEPS)
1241         @$(CHECK)
1242 .PHONY: path/check
1244 @go_include@ reflect-go.lo.dep
1245 reflect-go.lo.dep: $(srcdir)/go/reflect/*.go
1246         $(BUILDDEPS)
1247 reflect-go.lo:
1248         $(BUILDPACKAGE)
1249 reflect/check: $(CHECK_DEPS)
1250         @$(CHECK)
1251 reflect/makefunc_ffi_c.lo: go/reflect/makefunc_ffi_c.c runtime.inc
1252         @$(MKDIR_P) reflect
1253         $(LTCOMPILE) -c -o $@ $<
1254 .PHONY: reflect/check
1256 @go_include@ regexp.lo.dep
1257 regexp.lo.dep: $(srcdir)/go/regexp/*.go
1258         $(BUILDDEPS)
1259 regexp.lo:
1260         $(BUILDPACKAGE)
1261 regexp/check: $(CHECK_DEPS)
1262         @$(CHECK)
1263 .PHONY: regexp/check
1265 extra_go_files_runtime = runtime_sysinfo.go
1267 @go_include@ runtime-go.lo.dep
1268 runtime-go.lo.dep: $(srcdir)/go/runtime/*.go $(extra_go_files_runtime)
1269         $(BUILDDEPS)
1270 runtime_go_lo_GOCFLAGS = -fgo-c-header=runtime.inc.tmp -fgo-compiling-runtime
1271 runtime-go.lo:
1272         $(BUILDPACKAGE)
1273 runtime.inc: s-runtime-inc; @true
1274 s-runtime-inc: runtime-go.lo
1275         $(SHELL) $(srcdir)/mvifdiff.sh runtime.inc.tmp runtime.inc
1276         $(STAMP) $@
1277 runtime/check: $(CHECK_DEPS)
1278         @$(CHECK)
1279 .PHONY: runtime/check
1281 @go_include@ sort.lo.dep
1282 sort.lo.dep: $(srcdir)/go/sort/*.go
1283         $(BUILDDEPS)
1284 sort.lo:
1285         $(BUILDPACKAGE)
1286 sort/check: $(CHECK_DEPS)
1287         @$(CHECK)
1288 .PHONY: sort/check
1290 @go_include@ strconv.lo.dep
1291 strconv.lo.dep: $(srcdir)/go/strconv/*.go
1292         $(BUILDDEPS)
1293 strconv.lo:
1294         $(BUILDPACKAGE)
1295 strconv/check: $(CHECK_DEPS)
1296         @$(CHECK)
1297 .PHONY: strconv/check
1299 @go_include@ strings.lo.dep
1300 strings.lo.dep: $(srcdir)/go/strings/*.go
1301         $(BUILDDEPS)
1302 strings.lo:
1303         $(BUILDPACKAGE)
1304 strings/index.lo: go/strings/indexbyte.c runtime.inc
1305         @$(MKDIR_P) strings
1306         $(LTCOMPILE) -c -o strings/index.lo $(srcdir)/go/strings/indexbyte.c
1307 strings/check: $(CHECK_DEPS)
1308         @$(CHECK)
1309 .PHONY: strings/check
1311 @go_include@ sync.lo.dep
1312 sync.lo.dep: $(srcdir)/go/sync/*.go
1313         $(BUILDDEPS)
1314 sync.lo:
1315         $(BUILDPACKAGE)
1316 sync/check: $(CHECK_DEPS)
1317         @$(CHECK)
1318 .PHONY: sync/check
1320 @go_include@ testing.lo.dep
1321 testing.lo.dep: $(srcdir)/go/testing/*.go
1322         $(BUILDDEPS)
1323 testing.lo:
1324         $(BUILDPACKAGE)
1325 testing/check: $(CHECK_DEPS)
1326         @$(CHECK)
1327 .PHONY: testing/check
1329 @go_include@ time-go.lo.dep
1330 time-go.lo.dep: $(srcdir)/go/time/*.go
1331         $(BUILDDEPS)
1332 time-go.lo:
1333         $(BUILDPACKAGE)
1334 time/check: $(CHECK_DEPS)
1335         @$(CHECK)
1336 .PHONY: time/check
1338 @go_include@ unicode.lo.dep
1339 unicode.lo.dep: $(srcdir)/go/unicode/*.go
1340         $(BUILDDEPS)
1341 unicode.lo:
1342         $(BUILDPACKAGE)
1343 unicode/check: $(CHECK_DEPS)
1344         @$(CHECK)
1345 .PHONY: unicode/check
1347 @go_include@ archive/tar.lo.dep
1348 archive/tar.lo.dep: $(srcdir)/go/archive/tar/*.go
1349         $(BUILDDEPS)
1350 archive/tar.lo:
1351         $(BUILDPACKAGE)
1352 archive/tar/check: $(CHECK_DEPS)
1353         @$(CHECK)
1354 .PHONY: archive/tar/check
1356 @go_include@ archive/zip.lo.dep
1357 archive/zip.lo.dep: $(srcdir)/go/archive/zip/*.go
1358         $(BUILDDEPS)
1359 archive/zip.lo:
1360         $(BUILDPACKAGE)
1361 archive/zip/check: $(CHECK_DEPS)
1362         @$(CHECK)
1363 .PHONY: archive/zip/check
1365 @go_include@ compress/bzip2.lo.dep
1366 compress/bzip2.lo.dep: $(srcdir)/go/compress/bzip2/*.go
1367         $(BUILDDEPS)
1368 compress/bzip2.lo:
1369         $(BUILDPACKAGE)
1370 compress/bzip2/check: $(CHECK_DEPS)
1371         @$(CHECK)
1372 .PHONY: compress/bzip2/check
1374 @go_include@ compress/flate.lo.dep
1375 compress/flate.lo.dep: $(srcdir)/go/compress/flate/*.go
1376         $(BUILDDEPS)
1377 compress/flate.lo:
1378         $(BUILDPACKAGE)
1379 compress/flate/check: $(CHECK_DEPS)
1380         @$(CHECK)
1381 .PHONY: compress/flate/check
1383 @go_include@ compress/gzip.lo.dep
1384 compress/gzip.lo.dep: $(srcdir)/go/compress/gzip/*.go
1385         $(BUILDDEPS)
1386 compress/gzip.lo:
1387         $(BUILDPACKAGE)
1388 compress/gzip/check: $(CHECK_DEPS)
1389         @$(CHECK)
1390 .PHONY: compress/gzip/check
1392 @go_include@ compress/lzw.lo.dep
1393 compress/lzw.lo.dep: $(srcdir)/go/compress/lzw/*.go
1394         $(BUILDDEPS)
1395 compress/lzw.lo:
1396         $(BUILDPACKAGE)
1397 compress/lzw/check: $(CHECK_DEPS)
1398         @$(CHECK)
1399 .PHONY: compress/lzw/check
1401 @go_include@ compress/zlib.lo.dep
1402 compress/zlib.lo.dep: $(srcdir)/go/compress/zlib/*.go
1403         $(BUILDDEPS)
1404 compress/zlib.lo:
1405         $(BUILDPACKAGE)
1406 compress/zlib/check: $(CHECK_DEPS)
1407         @$(CHECK)
1408 .PHONY: compress/zlib/check
1410 @go_include@ container/heap.lo.dep
1411 container/heap.lo.dep: $(srcdir)/go/container/heap/*.go
1412         $(BUILDDEPS)
1413 container/heap.lo:
1414         $(BUILDPACKAGE)
1415 container/heap/check: $(CHECK_DEPS)
1416         @$(CHECK)
1417 .PHONY: container/heap/check
1419 @go_include@ container/list.lo.dep
1420 container/list.lo.dep: $(srcdir)/go/container/list/*.go
1421         $(BUILDDEPS)
1422 container/list.lo:
1423         $(BUILDPACKAGE)
1424 container/list/check: $(CHECK_DEPS)
1425         @$(CHECK)
1426 .PHONY: container/list/check
1428 @go_include@ container/ring.lo.dep
1429 container/ring.lo.dep: $(srcdir)/go/container/ring/*.go
1430         $(BUILDDEPS)
1431 container/ring.lo:
1432         $(BUILDPACKAGE)
1433 container/ring/check: $(CHECK_DEPS)
1434         @$(CHECK)
1435 .PHONY: container/ring/check
1437 @go_include@ crypto/aes.lo.dep
1438 crypto/aes.lo.dep: $(srcdir)/go/crypto/aes/*.go
1439         $(BUILDDEPS)
1440 crypto/aes.lo:
1441         $(BUILDPACKAGE)
1442 crypto/aes/check: $(CHECK_DEPS)
1443         @$(CHECK)
1444 .PHONY: crypto/aes/check
1446 @go_include@ crypto/cipher.lo.dep
1447 crypto/cipher.lo.dep: $(srcdir)/go/crypto/cipher/*.go
1448         $(BUILDDEPS)
1449 crypto/cipher.lo:
1450         $(BUILDPACKAGE)
1451 crypto/cipher/check: $(CHECK_DEPS)
1452         @$(CHECK)
1453 .PHONY: crypto/cipher/check
1455 @go_include@ crypto/des.lo.dep
1456 crypto/des.lo.dep: $(srcdir)/go/crypto/des/*.go
1457         $(BUILDDEPS)
1458 crypto/des.lo:
1459         $(BUILDPACKAGE)
1460 crypto/des/check: $(CHECK_DEPS)
1461         @$(CHECK)
1462 .PHONY: crypto/des/check
1464 @go_include@ crypto/dsa.lo.dep
1465 crypto/dsa.lo.dep: $(srcdir)/go/crypto/dsa/*.go
1466         $(BUILDDEPS)
1467 crypto/dsa.lo:
1468         $(BUILDPACKAGE)
1469 crypto/dsa/check: $(CHECK_DEPS)
1470         @$(CHECK)
1471 .PHONY: crypto/dsa/check
1473 @go_include@ crypto/ecdsa.lo.dep
1474 crypto/ecdsa.lo.dep: $(srcdir)/go/crypto/ecdsa/*.go
1475         $(BUILDDEPS)
1476 crypto/ecdsa.lo:
1477         $(BUILDPACKAGE)
1478 crypto/ecdsa/check: $(CHECK_DEPS)
1479         @$(CHECK)
1480 .PHONY: crypto/ecdsa/check
1482 @go_include@ crypto/elliptic.lo.dep
1483 crypto/elliptic.lo.dep: $(srcdir)/go/crypto/elliptic/*.go
1484         $(BUILDDEPS)
1485 crypto/elliptic.lo:
1486         $(BUILDPACKAGE)
1487 crypto/elliptic/check: $(CHECK_DEPS)
1488         @$(CHECK)
1489 .PHONY: crypto/elliptic/check
1491 @go_include@ crypto/hmac.lo.dep
1492 crypto/hmac.lo.dep: $(srcdir)/go/crypto/hmac/*.go
1493         $(BUILDDEPS)
1494 crypto/hmac.lo:
1495         $(BUILDPACKAGE)
1496 crypto/hmac/check: $(CHECK_DEPS)
1497         @$(CHECK)
1498 .PHONY: crypto/hmac/check
1500 @go_include@ crypto/md5.lo.dep
1501 crypto/md5.lo.dep: $(srcdir)/go/crypto/md5/*.go
1502         $(BUILDDEPS)
1503 crypto/md5.lo:
1504         $(BUILDPACKAGE)
1505 crypto/md5/check: $(CHECK_DEPS)
1506         @$(CHECK)
1507 .PHONY: crypto/md5/check
1509 @go_include@ crypto/rand.lo.dep
1510 crypto/rand.lo.dep: $(srcdir)/go/crypto/rand/*.go
1511         $(BUILDDEPS)
1512 crypto/rand.lo:
1513         $(BUILDPACKAGE)
1514 crypto/rand/check: $(CHECK_DEPS)
1515         @$(CHECK)
1516 .PHONY: crypto/rand/check
1518 @go_include@ crypto/rc4.lo.dep
1519 crypto/rc4.lo.dep: $(srcdir)/go/crypto/rc4/*.go
1520         $(BUILDDEPS)
1521 crypto/rc4.lo:
1522         $(BUILDPACKAGE)
1523 crypto/rc4/check: $(CHECK_DEPS)
1524         @$(CHECK)
1525 .PHONY: crypto/rc4/check
1527 @go_include@ crypto/rsa.lo.dep
1528 crypto/rsa.lo.dep: $(srcdir)/go/crypto/rsa/*.go
1529         $(BUILDDEPS)
1530 crypto/rsa.lo:
1531         $(BUILDPACKAGE)
1532 crypto/rsa/check: $(CHECK_DEPS)
1533         @$(CHECK)
1534 .PHONY: crypto/rsa/check
1536 @go_include@ crypto/sha1.lo.dep
1537 crypto/sha1.lo.dep: $(srcdir)/go/crypto/sha1/*.go
1538         $(BUILDDEPS)
1539 crypto/sha1.lo:
1540         $(BUILDPACKAGE)
1541 crypto/sha1/check: $(CHECK_DEPS)
1542         @$(CHECK)
1543 .PHONY: crypto/sha1/check
1545 @go_include@ crypto/sha256.lo.dep
1546 crypto/sha256.lo.dep: $(srcdir)/go/crypto/sha256/*.go
1547         $(BUILDDEPS)
1548 crypto/sha256.lo:
1549         $(BUILDPACKAGE)
1550 crypto/sha256/check: $(CHECK_DEPS)
1551         @$(CHECK)
1552 .PHONY: crypto/sha256/check
1554 @go_include@ crypto/sha512.lo.dep
1555 crypto/sha512.lo.dep: $(srcdir)/go/crypto/sha512/*.go
1556         $(BUILDDEPS)
1557 crypto/sha512.lo:
1558         $(BUILDPACKAGE)
1559 crypto/sha512/check: $(CHECK_DEPS)
1560         @$(CHECK)
1561 .PHONY: crypto/sha512/check
1563 @go_include@ crypto/subtle.lo.dep
1564 crypto/subtle.lo.dep: $(srcdir)/go/crypto/subtle/*.go
1565         $(BUILDDEPS)
1566 crypto/subtle.lo:
1567         $(BUILDPACKAGE)
1568 crypto/subtle/check: $(CHECK_DEPS)
1569         @$(CHECK)
1570 .PHONY: crypto/subtle/check
1572 @go_include@ crypto/tls.lo.dep
1573 crypto/tls.lo.dep: $(srcdir)/go/crypto/tls/*.go
1574         $(BUILDDEPS)
1575 crypto/tls.lo:
1576         $(BUILDPACKAGE)
1577 crypto/tls/check: $(CHECK_DEPS)
1578         @$(CHECK)
1579 .PHONY: crypto/tls/check
1581 @go_include@ crypto/x509.lo.dep
1582 crypto/x509.lo.dep: $(srcdir)/go/crypto/x509/*.go
1583         $(BUILDDEPS)
1584 crypto/x509.lo:
1585         $(BUILDPACKAGE)
1586 crypto/x509/check: $(CHECK_DEPS)
1587         @$(CHECK)
1588 .PHONY: crypto/x509/check
1590 @go_include@ crypto/x509/pkix.lo.dep
1591 crypto/x509/pkix.lo.dep: $(srcdir)/go/crypto/x509/pkix/*.go
1592         $(BUILDDEPS)
1593 crypto/x509/pkix.lo:
1594         $(BUILDPACKAGE)
1595 crypto/x509/pkix/check: $(CHECK_DEPS)
1596         @$(CHECK)
1597 .PHONY: crypto/x509/pkix/check
1599 @go_include@ database/sql.lo.dep
1600 database/sql.lo.dep: $(srcdir)/go/database/sql/*.go
1601         $(BUILDDEPS)
1602 database/sql.lo:
1603         $(BUILDPACKAGE)
1604 database/sql/check: $(CHECK_DEPS)
1605         @$(CHECK)
1606 .PHONY: database/sql/check
1608 @go_include@ database/sql/driver.lo.dep
1609 database/sql/driver.lo.dep: $(srcdir)/go/database/sql/driver/*.go
1610         $(BUILDDEPS)
1611 database/sql/driver.lo:
1612         $(BUILDPACKAGE)
1613 database/sql/driver/check: $(CHECK_DEPS)
1614         @$(CHECK)
1615 .PHONY: database/sql/driver/check
1617 @go_include@ debug/dwarf.lo.dep
1618 debug/dwarf.lo.dep: $(srcdir)/go/debug/dwarf/*.go
1619         $(BUILDDEPS)
1620 debug/dwarf.lo:
1621         $(BUILDPACKAGE)
1622 debug/dwarf/check: $(CHECK_DEPS)
1623         @$(CHECK)
1624 .PHONY: debug/dwarf/check
1626 @go_include@ debug/elf.lo.dep
1627 debug/elf.lo.dep: $(srcdir)/go/debug/elf/*.go
1628         $(BUILDDEPS)
1629 debug/elf.lo:
1630         $(BUILDPACKAGE)
1631 debug/elf/check: $(CHECK_DEPS)
1632         @$(CHECK)
1633 .PHONY: debug/elf/check
1635 @go_include@ debug/gosym.lo.dep
1636 debug/gosym.lo.dep: $(srcdir)/go/debug/gosym/*.go
1637         $(BUILDDEPS)
1638 debug/gosym.lo:
1639         $(BUILDPACKAGE)
1640 debug/gosym/check: $(CHECK_DEPS)
1641         @$(CHECK)
1642 .PHONY: debug/gosym/check
1644 @go_include@ debug/macho.lo.dep
1645 debug/macho.lo.dep: $(srcdir)/go/debug/macho/*.go
1646         $(BUILDDEPS)
1647 debug/macho.lo:
1648         $(BUILDPACKAGE)
1649 debug/macho/check: $(CHECK_DEPS)
1650         @$(CHECK)
1651 .PHONY: debug/macho/check
1653 @go_include@ debug/pe.lo.dep
1654 debug/pe.lo.dep: $(srcdir)/go/debug/pe/*.go
1655         $(BUILDDEPS)
1656 debug/pe.lo:
1657         $(BUILDPACKAGE)
1658 debug/pe/check: $(CHECK_DEPS)
1659         @$(CHECK)
1660 .PHONY: debug/pe/check
1662 @go_include@ debug/plan9obj.lo.dep
1663 debug/plan9obj.lo.dep: $(srcdir)/go/debug/plan9obj/*.go
1664         $(BUILDDEPS)
1665 debug/plan9obj.lo:
1666         $(BUILDPACKAGE)
1667 debug/plan9obj/check: $(CHECK_DEPS)
1668         @$(CHECK)
1669 .PHONY: debug/plan9obj/check
1671 @go_include@ encoding/asn1.lo.dep
1672 encoding/asn1.lo.dep: $(srcdir)/go/encoding/asn1/*.go
1673         $(BUILDDEPS)
1674 encoding/asn1.lo:
1675         $(BUILDPACKAGE)
1676 encoding/asn1/check: $(CHECK_DEPS)
1677         @$(CHECK)
1678 .PHONY: encoding/asn1/check
1680 @go_include@ encoding/ascii85.lo.dep
1681 encoding/ascii85.lo.dep: $(srcdir)/go/encoding/ascii85/*.go
1682         $(BUILDDEPS)
1683 encoding/ascii85.lo:
1684         $(BUILDPACKAGE)
1685 encoding/ascii85/check: $(CHECK_DEPS)
1686         @$(CHECK)
1687 .PHONY: encoding/ascii85/check
1689 @go_include@ encoding/base32.lo.dep
1690 encoding/base32.lo.dep: $(srcdir)/go/encoding/base32/*.go
1691         $(BUILDDEPS)
1692 encoding/base32.lo:
1693         $(BUILDPACKAGE)
1694 encoding/base32/check: $(CHECK_DEPS)
1695         @$(CHECK)
1696 .PHONY: encoding/base32/check
1698 @go_include@ encoding/base64.lo.dep
1699 encoding/base64.lo.dep: $(srcdir)/go/encoding/base64/*.go
1700         $(BUILDDEPS)
1701 encoding/base64.lo:
1702         $(BUILDPACKAGE)
1703 encoding/base64/check: $(CHECK_DEPS)
1704         @$(CHECK)
1705 .PHONY: encoding/base64/check
1707 @go_include@ encoding/binary.lo.dep
1708 encoding/binary.lo.dep: $(srcdir)/go/encoding/binary/*.go
1709         $(BUILDDEPS)
1710 encoding/binary.lo:
1711         $(BUILDPACKAGE)
1712 encoding/binary/check: $(CHECK_DEPS)
1713         @$(CHECK)
1714 .PHONY: encoding/binary/check
1716 @go_include@ encoding/csv.lo.dep
1717 encoding/csv.lo.dep: $(srcdir)/go/encoding/csv/*.go
1718         $(BUILDDEPS)
1719 encoding/csv.lo:
1720         $(BUILDPACKAGE)
1721 encoding/csv/check: $(CHECK_DEPS)
1722         @$(CHECK)
1723 .PHONY: encoding/csv/check
1725 @go_include@ encoding/gob.lo.dep
1726 encoding/gob.lo.dep: $(srcdir)/go/encoding/gob/*.go
1727         $(BUILDDEPS)
1728 encoding/gob.lo:
1729         $(BUILDPACKAGE)
1730 encoding/gob/check: $(CHECK_DEPS)
1731         @$(CHECK)
1732 .PHONY: encoding/gob/check
1734 @go_include@ encoding/hex.lo.dep
1735 encoding/hex.lo.dep: $(srcdir)/go/encoding/hex/*.go
1736         $(BUILDDEPS)
1737 encoding/hex.lo:
1738         $(BUILDPACKAGE)
1739 encoding/hex/check: $(CHECK_DEPS)
1740         @$(CHECK)
1741 .PHONY: encoding/hex/check
1743 @go_include@ encoding/json.lo.dep
1744 encoding/json.lo.dep: $(srcdir)/go/encoding/json/*.go
1745         $(BUILDDEPS)
1746 encoding/json.lo:
1747         $(BUILDPACKAGE)
1748 encoding/json/check: $(CHECK_DEPS)
1749         @$(CHECK)
1750 .PHONY: encoding/json/check
1752 @go_include@ encoding/pem.lo.dep
1753 encoding/pem.lo.dep: $(srcdir)/go/encoding/pem/*.go
1754         $(BUILDDEPS)
1755 encoding/pem.lo:
1756         $(BUILDPACKAGE)
1757 encoding/pem/check: $(CHECK_DEPS)
1758         @$(CHECK)
1759 .PHONY: encoding/pem/check
1761 @go_include@ encoding/xml.lo.dep
1762 encoding/xml.lo.dep: $(srcdir)/go/encoding/xml/*.go
1763         $(BUILDDEPS)
1764 encoding/xml.lo:
1765         $(BUILDPACKAGE)
1766 encoding/xml/check: $(CHECK_DEPS)
1767         @$(CHECK)
1768 .PHONY: encoding/xml/check
1770 @go_include@ exp/proxy.lo.dep
1771 exp/proxy.lo.dep: $(srcdir)/go/exp/proxy/*.go
1772         $(BUILDDEPS)
1773 exp/proxy.lo:
1774         $(BUILDPACKAGE)
1775 exp/proxy/check: $(CHECK_DEPS)
1776         @$(CHECK)
1777 .PHONY: exp/proxy/check
1779 @go_include@ exp/terminal.lo.dep
1780 exp/terminal.lo.dep: $(srcdir)/go/exp/terminal/*.go
1781         $(BUILDDEPS)
1782 exp/terminal.lo:
1783         $(BUILDPACKAGE)
1784 exp/terminal/check: $(CHECK_DEPS)
1785         @$(CHECK)
1786 .PHONY: exp/terminal/check
1788 @go_include@ html/template.lo.dep
1789 html/template.lo.dep: $(srcdir)/go/html/template/*.go
1790         $(BUILDDEPS)
1791 html/template.lo:
1792         $(BUILDPACKAGE)
1793 html/template/check: $(CHECK_DEPS)
1794         @$(CHECK)
1795 .PHONY: html/template/check
1797 @go_include@ go/ast.lo.dep
1798 go/ast.lo.dep: $(srcdir)/go/go/ast/*.go
1799         $(BUILDDEPS)
1800 go/ast.lo:
1801         $(BUILDPACKAGE)
1802 go/ast/check: $(CHECK_DEPS)
1803         @$(CHECK)
1804 .PHONY: go/ast/check
1806 @go_include@ go/build.lo.dep
1807 go/build.lo.dep: $(srcdir)/go/go/build/*.go
1808         $(BUILDDEPS)
1809 go/build.lo:
1810         $(BUILDPACKAGE)
1811 go/build/check: $(CHECK_DEPS)
1812         @$(CHECK)
1813 .PHONY: go/build/check
1815 @go_include@ go/constant.lo.dep
1816 go/constant.lo.dep: $(srcdir)/go/go/constant/*.go
1817         $(BUILDDEPS)
1818 go/constant.lo:
1819         $(BUILDPACKAGE)
1820 go/constant/check: $(CHECK_DEPS)
1821         @$(CHECK)
1822 .PHONY: go/constant/check
1824 @go_include@ go/doc.lo.dep
1825 go/doc.lo.dep: $(srcdir)/go/go/doc/*.go
1826         $(BUILDDEPS)
1827 go/doc.lo:
1828         $(BUILDPACKAGE)
1829 go/doc/check: $(CHECK_DEPS)
1830         @$(CHECK)
1831 .PHONY: go/doc/check
1833 @go_include@ go/format.lo.dep
1834 go/format.lo.dep: $(srcdir)/go/go/format/*.go
1835         $(BUILDDEPS)
1836 go/format.lo:
1837         $(BUILDPACKAGE)
1838 go/format/check: $(CHECK_DEPS)
1839         @$(CHECK)
1840 .PHONY: go/format/check
1842 @go_include@ go/importer.lo.dep
1843 go/importer.lo.dep: $(srcdir)/go/go/importer/*.go
1844         $(BUILDDEPS)
1845 go/importer.lo:
1846         $(BUILDPACKAGE)
1847 go/importer/check: $(CHECK_DEPS)
1848         @$(CHECK)
1849 .PHONY: go/importer/check
1851 @go_include@ go/parser.lo.dep
1852 go/parser.lo.dep: $(srcdir)/go/go/parser/*.go
1853         $(BUILDDEPS)
1854 go/parser.lo:
1855         $(BUILDPACKAGE)
1856 go/parser/check: $(CHECK_DEPS)
1857         @$(CHECK)
1858 .PHONY: go/parser/check
1860 @go_include@ go/printer.lo.dep
1861 go/printer.lo.dep: $(srcdir)/go/go/printer/*.go
1862         $(BUILDDEPS)
1863 go/printer.lo:
1864         $(BUILDPACKAGE)
1865 go/printer/check: $(CHECK_DEPS)
1866         @$(CHECK)
1867 .PHONY: go/printer/check
1869 @go_include@ go/scanner.lo.dep
1870 go/scanner.lo.dep: $(srcdir)/go/go/scanner/*.go
1871         $(BUILDDEPS)
1872 go/scanner.lo:
1873         $(BUILDPACKAGE)
1874 go/scanner/check: $(CHECK_DEPS)
1875         @$(CHECK)
1876 .PHONY: go/scanner/check
1878 @go_include@ go/token.lo.dep
1879 go/token.lo.dep: $(srcdir)/go/go/token/*.go
1880         $(BUILDDEPS)
1881 go/token.lo:
1882         $(BUILDPACKAGE)
1883 go/token/check: $(CHECK_DEPS)
1884         @$(CHECK)
1885 .PHONY: go/token/check
1887 @go_include@ go/types.lo.dep
1888 go/types.lo.dep: $(srcdir)/go/go/types/*.go
1889         $(BUILDDEPS)
1890 go/types.lo:
1891         $(BUILDPACKAGE)
1892 go/types/check: $(CHECK_DEPS)
1893         @$(CHECK)
1894 .PHONY: go/types/check
1896 @go_include@ go/internal/gcimporter.lo.dep
1897 go/internal/gcimporter.lo.dep: $(srcdir)/go/go/internal/gcimporter/*.go
1898         $(BUILDDEPS)
1899 go/internal/gcimporter.lo:
1900         $(BUILDPACKAGE)
1901 go/internal/gcimporter/check: $(CHECK_DEPS)
1902         @$(CHECK)
1903 .PHONY: go/internal/gcimporter/check
1905 @go_include@ go/internal/gccgoimporter.lo.dep
1906 go/internal/gccgoimporter.lo.dep: $(srcdir)/go/go/internal/gccgoimporter/*.go
1907         $(BUILDDEPS)
1908 go/internal/gccgoimporter.lo:
1909         $(BUILDPACKAGE)
1910 go/internal/gccgoimporter/check: $(CHECK_DEPS)
1911         @$(CHECK)
1912 .PHONY: go/internal/gccgoimporter/check
1914 @go_include@ golang_org/x/net/http2/hpack.lo.dep
1915 golang_org/x/net/http2/hpack.lo.dep: $(srcdir)/go/golang_org/x/net/http2/hpack/*.go
1916         $(BUILDDEPS)
1917 golang_org/x/net/http2/hpack.lo:
1918         $(BUILDPACKAGE)
1919 golang_org/x/net/http2/hpack/check: $(CHECK_DEPS)
1920         @$(CHECK)
1921 .PHONY: golang_org/x/net/http2/hpack/check
1923 @go_include@ golang_org/x/net/lex/httplex.lo.dep
1924 golang_org/x/net/lex/httplex.lo.dep: $(srcdir)/go/golang_org/x/net/lex/httplex/*.go
1925         $(BUILDDEPS)
1926 golang_org/x/net/lex/httplex.lo:
1927         $(BUILDPACKAGE)
1928 golang_org/x/net/lex/httplex/check: $(CHECK_DEPS)
1929         @$(CHECK)
1930 .PHONY: golang_org/x/net/lex/httplex/check
1932 if LIBGO_IS_BSD
1934 golang_org_x_net_route_lo = \
1935         golang_org/x/net/route/route.lo
1936 golang_org_x_net_route_check = \
1937         golang_org/x/net/route/check
1939 @go_include@ golang_org/x/net/route.lo.dep
1940 golang_org/x/net/route.lo.dep: $(srcdir)/go/golang_org/x/net/route/*.go
1941         $(BUILDDEPS)
1942 golang_org/x/net/route.lo:
1943         $(BUILDPACKAGE)
1944 golang_org/x/net/route/check: $(CHECK_DEPS)
1945         @$(CHECK)
1947 endif
1949 .PHONY: golang_org/x/net/route/check
1951 @go_include@ hash/adler32.lo.dep
1952 hash/adler32.lo.dep: $(srcdir)/go/hash/adler32/*.go
1953         $(BUILDDEPS)
1954 hash/adler32.lo:
1955         $(BUILDPACKAGE)
1956 hash/adler32/check: $(CHECK_DEPS)
1957         @$(CHECK)
1958 .PHONY: hash/adler32/check
1960 @go_include@ hash/crc32.lo.dep
1961 hash/crc32.lo.dep: $(srcdir)/go/hash/crc32/*.go
1962         $(BUILDDEPS)
1963 hash/crc32.lo:
1964         $(BUILDPACKAGE)
1965 hash/crc32/check: $(CHECK_DEPS)
1966         @$(CHECK)
1967 .PHONY: hash/crc32/check
1969 @go_include@ hash/crc64.lo.dep
1970 hash/crc64.lo.dep: $(srcdir)/go/hash/crc64/*.go
1971         $(BUILDDEPS)
1972 hash/crc64.lo:
1973         $(BUILDPACKAGE)
1974 hash/crc64/check: $(CHECK_DEPS)
1975         @$(CHECK)
1976 .PHONY: hash/crc64/check
1978 @go_include@ hash/fnv.lo.dep
1979 hash/fnv.lo.dep: $(srcdir)/go/hash/fnv/*.go
1980         $(BUILDDEPS)
1981 hash/fnv.lo:
1982         $(BUILDPACKAGE)
1983 hash/fnv/check: $(CHECK_DEPS)
1984         @$(CHECK)
1985 .PHONY: hash/fnv/check
1987 @go_include@ image/color.lo.dep
1988 image/color.lo.dep: $(srcdir)/go/image/color/*.go
1989         $(BUILDDEPS)
1990 image/color.lo:
1991         $(BUILDPACKAGE)
1992 image/color/check: $(CHECK_DEPS)
1993         @$(CHECK)
1994 .PHONY: image/color/check
1996 @go_include@ image/color/palette.lo.dep
1997 image/color/palette.lo.dep: $(srcdir)/go/image/color/palette/*.go
1998         $(BUILDDEPS)
1999 image/color/palette.lo:
2000         $(BUILDPACKAGE)
2001 image/color/palette/check: $(CHECK_DEPS)
2002         @$(CHECK)
2003 .PHONY: image/color/palette/check
2005 @go_include@ image/draw.lo.dep
2006 image/draw.lo.dep: $(srcdir)/go/image/draw/*.go
2007         $(BUILDDEPS)
2008 image/draw.lo:
2009         $(BUILDPACKAGE)
2010 image/draw/check: $(CHECK_DEPS)
2011         @$(CHECK)
2012 .PHONY: image/draw/check
2014 @go_include@ image/gif.lo.dep
2015 image/gif.lo.dep: $(srcdir)/go/image/gif/*.go
2016         $(BUILDDEPS)
2017 image/gif.lo:
2018         $(BUILDPACKAGE)
2019 image/gif/check: $(CHECK_DEPS)
2020         @$(CHECK)
2021 .PHONY: image/gif/check
2023 @go_include@ image/internal/imageutil.lo.dep
2024 image/internal/imageutil.lo.dep: $(srcdir)/go/image/internal/imageutil/*.go
2025         $(BUILDDEPS)
2026 image/internal/imageutil.lo:
2027         $(BUILDPACKAGE)
2028 image/internal/imageutil/check: $(CHECK_DEPS)
2029         @$(CHECK)
2030 .PHONY: image/internal/imageutil/check
2032 @go_include@ image/jpeg.lo.dep
2033 image/jpeg.lo.dep: $(srcdir)/go/image/jpeg/*.go
2034         $(BUILDDEPS)
2035 image/jpeg.lo:
2036         $(BUILDPACKAGE)
2037 image/jpeg/check: $(CHECK_DEPS)
2038         @$(CHECK)
2039 .PHONY: image/jpeg/check
2041 @go_include@ image/png.lo.dep
2042 image/png.lo.dep: $(srcdir)/go/image/png/*.go
2043         $(BUILDDEPS)
2044 image/png.lo:
2045         $(BUILDPACKAGE)
2046 image/png/check: $(CHECK_DEPS)
2047         @$(CHECK)
2048 .PHONY: image/png/check
2050 @go_include@ index/suffixarray.lo.dep
2051 index/suffixarray.lo.dep: $(srcdir)/go/index/suffixarray/*.go
2052         $(BUILDDEPS)
2053 index/suffixarray.lo:
2054         $(BUILDPACKAGE)
2055 index/suffixarray/check: $(CHECK_DEPS)
2056         @$(CHECK)
2057 .PHONY: index/suffixarray/check
2059 @go_include@ internal/nettrace.lo.dep
2060 internal/nettrace.lo.dep: $(srcdir)/go/internal/nettrace/*.go
2061         $(BUILDDEPS)
2062 internal/nettrace.lo:
2063         $(BUILDPACKAGE)
2064 internal/nettrace/check: $(CHECK_DEPS)
2065         @$(CHECK)
2066 .PHONY: internal/nettrace/check
2068 @go_include@ internal/race.lo.dep
2069 internal/race.lo.dep: $(srcdir)/go/internal/race/*.go
2070         $(BUILDDEPS)
2071 internal/race.lo:
2072         $(BUILDPACKAGE)
2073 internal/race/check: $(CHECK_DEPS)
2074         @$(CHECK)
2075 .PHONY: internal/race/check
2077 @go_include@ internal/singleflight.lo.dep
2078 internal/singleflight.lo.dep: $(srcdir)/go/internal/singleflight/*.go
2079         $(BUILDDEPS)
2080 internal/singleflight.lo:
2081         $(BUILDPACKAGE)
2082 internal/singleflight/check: $(CHECK_DEPS)
2083         @$(CHECK)
2084 .PHONY: internal/singleflight/check
2086 @go_include@ internal/syscall/unix.lo.dep
2087 internal/syscall/unix.lo.dep: $(srcdir)/go/internal/syscall/unix/*.go
2088         $(BUILDDEPS)
2089 internal/syscall/unix.lo:
2090         $(BUILDPACKAGE)
2091 internal/syscall/unix/check: $(CHECK_DEPS)
2092         @$(CHECK)
2093 .PHONY: internal/syscall/unix/check
2095 @go_include@ internal/testenv.lo.dep
2096 internal/testenv.lo.dep: $(srcdir)/go/internal/testenv/*.go
2097         $(BUILDDEPS)
2098 internal/testenv.lo:
2099         $(BUILDPACKAGE)
2100 internal/testenv/check: $(CHECK_DEPS)
2101         @$(CHECK)
2102 .PHONY: internal/testenv/check
2104 @go_include@ internal/trace.lo.dep
2105 internal/trace.lo.dep: $(srcdir)/go/internal/trace/*.go
2106         $(BUILDDEPS)
2107 internal/trace.lo:
2108         $(BUILDPACKAGE)
2109 internal/trace/check: $(CHECK_DEPS)
2110         @$(CHECK)
2111 .PHONY: internal/trace/check
2113 @go_include@ io/ioutil.lo.dep
2114 io/ioutil.lo.dep: $(srcdir)/go/io/ioutil/*.go
2115         $(BUILDDEPS)
2116 io/ioutil.lo:
2117         $(BUILDPACKAGE)
2118 io/ioutil/check: $(CHECK_DEPS)
2119         @$(CHECK)
2120 .PHONY: io/ioutil/check
2122 @go_include@ log/syslog.lo.dep
2123 log/syslog.lo.dep: $(srcdir)/go/log/syslog/*.go
2124         $(BUILDDEPS)
2125 log/syslog.lo:
2126         $(BUILDPACKAGE)
2127 log/syslog/syslog_c.lo: go/log/syslog/syslog_c.c runtime.inc log/syslog.lo
2128         @$(MKDIR_P) log/syslog
2129         $(LTCOMPILE) -c -o $@ $(srcdir)/go/log/syslog/syslog_c.c
2130 log/syslog/check: $(CHECK_DEPS)
2131         @$(CHECK)
2132 .PHONY: log/syslog/check
2134 @go_include@ math/big.lo.dep
2135 math/big.lo.dep: $(srcdir)/go/math/big/*.go
2136         $(BUILDDEPS)
2137 math/big.lo:
2138         $(BUILDPACKAGE)
2139 math/big/check: $(CHECK_DEPS)
2140         @$(CHECK)
2141 .PHONY: math/big/check
2143 @go_include@ math/cmplx.lo.dep
2144 math/cmplx.lo.dep: $(srcdir)/go/math/cmplx/*.go
2145         $(BUILDDEPS)
2146 math/cmplx.lo:
2147         $(BUILDPACKAGE)
2148 math/cmplx/check: $(CHECK_DEPS)
2149         @$(CHECK)
2150 .PHONY: math/cmplx/check
2152 @go_include@ math/rand.lo.dep
2153 math/rand.lo.dep: $(srcdir)/go/math/rand/*.go
2154         $(BUILDDEPS)
2155 math/rand.lo:
2156         $(BUILDPACKAGE)
2157 math/rand/check: $(CHECK_DEPS)
2158         @$(CHECK)
2159 .PHONY: math/rand/check
2161 @go_include@ mime/multipart.lo.dep
2162 mime/multipart.lo.dep: $(srcdir)/go/mime/multipart/*.go
2163         $(BUILDDEPS)
2164 mime/multipart.lo:
2165         $(BUILDPACKAGE)
2166 mime/multipart/check: $(CHECK_DEPS)
2167         @$(CHECK)
2168 .PHONY: mime/multipart/check
2170 @go_include@ mime/quotedprintable.lo.dep
2171 mime/quotedprintable.lo.dep: $(srcdir)/go/mime/quotedprintable/*.go
2172         $(BUILDDEPS)
2173 mime/quotedprintable.lo:
2174         $(BUILDPACKAGE)
2175 mime/quotedprintable/check: $(CHECK_DEPS)
2176         @$(CHECK)
2177 .PHONY: mime/quotedprintable/check
2179 @go_include@ net/http.lo.dep
2180 net/http.lo.dep: $(srcdir)/go/net/http/*.go
2181         $(BUILDDEPS)
2182 net/http.lo:
2183         $(BUILDPACKAGE)
2184 net/http/check: $(CHECK_DEPS)
2185         @$(CHECK)
2186 .PHONY: net/http/check
2188 @go_include@ net/mail.lo.dep
2189 net/mail.lo.dep: $(srcdir)/go/net/mail/*.go
2190         $(BUILDDEPS)
2191 net/mail.lo:
2192         $(BUILDPACKAGE)
2193 net/mail/check: $(CHECK_DEPS)
2194         @$(CHECK)
2195 .PHONY: net/mail/check
2197 @go_include@ net/rpc.lo.dep
2198 net/rpc.lo.dep: $(srcdir)/go/net/rpc/*.go
2199         $(BUILDDEPS)
2200 net/rpc.lo:
2201         $(BUILDPACKAGE)
2202 net/rpc/check: $(CHECK_DEPS)
2203         @$(CHECK)
2204 .PHONY: net/rpc/check
2206 @go_include@ net/smtp.lo.dep
2207 net/smtp.lo.dep: $(srcdir)/go/net/smtp/*.go
2208         $(BUILDDEPS)
2209 net/smtp.lo:
2210         $(BUILDPACKAGE)
2211 net/smtp/check: $(CHECK_DEPS)
2212         @$(CHECK)
2213 .PHONY: net/smtp/check
2215 @go_include@ net/url.lo.dep
2216 net/url.lo.dep: $(srcdir)/go/net/url/*.go
2217         $(BUILDDEPS)
2218 net/url.lo:
2219         $(BUILDPACKAGE)
2220 net/url/check: $(CHECK_DEPS)
2221         @$(CHECK)
2222 .PHONY: net/url/check
2224 @go_include@ net/textproto.lo.dep
2225 net/textproto.lo.dep: $(srcdir)/go/net/textproto/*.go
2226         $(BUILDDEPS)
2227 net/textproto.lo:
2228         $(BUILDPACKAGE)
2229 net/textproto/check: $(CHECK_DEPS)
2230         @$(CHECK)
2231 .PHONY: net/textproto/check
2233 @go_include@ net/http/cgi.lo.dep
2234 net/http/cgi.lo.dep: $(srcdir)/go/net/http/cgi/*.go
2235         $(BUILDDEPS)
2236 net/http/cgi.lo:
2237         $(BUILDPACKAGE)
2238 net/http/cgi/check: $(CHECK_DEPS)
2239         @$(CHECK)
2240 .PHONY: net/http/cgi/check
2242 @go_include@ net/http/cookiejar.lo.dep
2243 net/http/cookiejar.lo.dep: $(srcdir)/go/net/http/cookiejar/*.go
2244         $(BUILDDEPS)
2245 net/http/cookiejar.lo:
2246         $(BUILDPACKAGE)
2247 net/http/cookiejar/check: $(CHECK_DEPS)
2248         @$(CHECK)
2249 .PHONY: net/http/cookiejar/check
2251 @go_include@ net/http/fcgi.lo.dep
2252 net/http/fcgi.lo.dep: $(srcdir)/go/net/http/fcgi/*.go
2253         $(BUILDDEPS)
2254 net/http/fcgi.lo:
2255         $(BUILDPACKAGE)
2256 net/http/fcgi/check: $(CHECK_DEPS)
2257         @$(CHECK)
2258 .PHONY: net/http/fcgi/check
2260 @go_include@ net/http/httptest.lo.dep
2261 net/http/httptest.lo.dep: $(srcdir)/go/net/http/httptest/*.go
2262         $(BUILDDEPS)
2263 net/http/httptest.lo:
2264         $(BUILDPACKAGE)
2265 net/http/httptest/check: $(check_deps)
2266         @$(CHECK)
2267 .PHONY: net/http/httptest/check
2269 @go_include@ net/http/httptrace.lo.dep
2270 net/http/httptrace.lo.dep: $(srcdir)/go/net/http/httptrace/*.go
2271         $(BUILDDEPS)
2272 net/http/httptrace.lo:
2273         $(BUILDPACKAGE)
2274 net/http/httptrace/check: $(check_deps)
2275         @$(CHECK)
2276 .PHONY: net/http/httptrace/check
2278 @go_include@ net/http/httputil.lo.dep
2279 net/http/httputil.lo.dep: $(srcdir)/go/net/http/httputil/*.go
2280         $(BUILDDEPS)
2281 net/http/httputil.lo:
2282         $(BUILDPACKAGE)
2283 net/http/httputil/check: $(check_deps)
2284         @$(CHECK)
2285 .PHONY: net/http/httputil/check
2287 @go_include@ net/http/internal.lo.dep
2288 net/http/internal.lo.dep: $(srcdir)/go/net/http/internal/*.go
2289         $(BUILDDEPS)
2290 net/http/internal.lo:
2291         $(BUILDPACKAGE)
2292 net/http/internal/check: $(CHECK_DEPS)
2293         @$(CHECK)
2294 .PHONY: net/http/internal/check
2296 @go_include@ net/http/pprof.lo.dep
2297 net/http/pprof.lo.dep: $(srcdir)/go/net/http/pprof/*.go
2298         $(BUILDDEPS)
2299 net/http/pprof.lo:
2300         $(BUILDPACKAGE)
2301 net/http/pprof/check: $(CHECK_DEPS)
2302         @$(CHECK)
2303 .PHONY: net/http/pprof/check
2305 @go_include@ net/internal/socktest.lo.dep
2306 net/internal/socktest.lo.dep: $(srcdir)/go/net/internal/socktest/*.go
2307         $(BUILDDEPS)
2308 net/internal/socktest.lo:
2309         $(BUILDPACKAGE)
2310 net/internal/socktest/check: $(CHECK_DEPS)
2311         @$(CHECK)
2312 .PHONY: net/internal/socktest/check
2314 @go_include@ net/rpc/jsonrpc.lo.dep
2315 net/rpc/jsonrpc.lo.dep: $(srcdir)/go/net/rpc/jsonrpc/*.go
2316         $(BUILDDEPS)
2317 net/rpc/jsonrpc.lo:
2318         $(BUILDPACKAGE)
2319 net/rpc/jsonrpc/check: $(CHECK_DEPS)
2320         @$(CHECK)
2321 .PHONY: net/rpc/jsonrpc/check
2323 @go_include@ old/regexp.lo.dep
2324 old/regexp.lo.dep: $(srcdir)/go/old/regexp/*.go
2325         $(BUILDDEPS)
2326 old/regexp.lo:
2327         $(BUILDPACKAGE)
2328 old/regexp/check: $(CHECK_DEPS)
2329         @$(CHECK)
2330 .PHONY: old/regexp/check
2332 @go_include@ old/template.lo.dep
2333 old/template.lo.dep: $(srcdir)/go/old/template/*.go
2334         $(BUILDDEPS)
2335 old/template.lo:
2336         $(BUILDPACKAGE)
2337 old/template/check: $(CHECK_DEPS)
2338         @$(CHECK)
2339 .PHONY: old/template/check
2341 @go_include@ os/exec.lo.dep
2342 os/exec.lo.dep: $(srcdir)/go/os/exec/*.go
2343         $(BUILDDEPS)
2344 os/exec.lo:
2345         $(BUILDPACKAGE)
2346 os/exec/check: $(CHECK_DEPS)
2347         @$(CHECK)
2348 .PHONY: os/exec/check
2350 @go_include@ os/signal.lo.dep
2351 os/signal.lo.dep: $(srcdir)/go/os/signal/*.go
2352         $(BUILDDEPS)
2353 os/signal.lo:
2354         $(BUILDPACKAGE)
2355 os/signal/check: $(CHECK_DEPS)
2356         @$(CHECK)
2357 .PHONY: os/signal/check
2359 @go_include@ os/user.lo.dep
2360 os/user.lo.dep: $(srcdir)/go/os/user/*.go
2361         $(BUILDDEPS)
2362 os/user.lo:
2363         $(BUILDPACKAGE)
2364 os/user/check: $(CHECK_DEPS)
2365         @$(CHECK)
2366 .PHONY: os/user/check
2368 @go_include@ path/filepath.lo.dep
2369 path/filepath.lo.dep: $(srcdir)/go/path/filepath/*.go
2370         $(BUILDDEPS)
2371 path/filepath.lo:
2372         $(BUILDPACKAGE)
2373 path/filepath/check: $(CHECK_DEPS)
2374         @$(CHECK)
2375 .PHONY: path/filepath/check
2377 @go_include@ regexp/syntax.lo.dep
2378 regexp/syntax.lo.dep: $(srcdir)/go/regexp/syntax/*.go
2379         $(BUILDDEPS)
2380 regexp/syntax.lo:
2381         $(BUILDPACKAGE)
2382 regexp/syntax/check: $(CHECK_DEPS)
2383         @$(CHECK)
2384 .PHONY: regexp/syntax/check
2386 @go_include@ runtime/debug.lo.dep
2387 runtime/debug.lo.dep: $(srcdir)/go/runtime/debug/*.go
2388         $(BUILDDEPS)
2389 runtime/debug.lo:
2390         $(BUILDPACKAGE)
2391 runtime/debug/check: $(CHECK_DEPS)
2392         @$(CHECK)
2393 .PHONY: runtime/debug/check
2395 @go_include@ runtime/pprof.lo.dep
2396 runtime/pprof.lo.dep: $(srcdir)/go/runtime/pprof/*.go
2397         $(BUILDDEPS)
2398 runtime/pprof.lo:
2399         $(BUILDPACKAGE)
2400 runtime/pprof/check: $(CHECK_DEPS)
2401         @$(CHECK)
2402 .PHONY: runtime/pprof/check
2403 # At least for now, we need -static-libgo for this test, because
2404 # otherwise we can't get the line numbers.
2405 # Also use -fno-inline to get better results from the memory profiler.
2406 runtime_pprof_check_GOCFLAGS = -static-libgo -fno-inline
2408 @go_include@ runtime/internal/atomic.lo.dep
2409 runtime/internal/atomic.lo.dep: $(srcdir)/go/runtime/internal/atomic/*.go
2410         $(BUILDDEPS)
2411 runtime_internal_atomic_lo_GOCFLAGS = -fgo-compiling-runtime
2412 runtime/internal/atomic.lo:
2413         $(BUILDPACKAGE)
2414 runtime/internal/atomic_c.lo: go/runtime/internal/atomic/atomic.c runtime.inc runtime/internal/atomic.lo
2415         $(LTCOMPILE) -c -o $@ $(srcdir)/go/runtime/internal/atomic/atomic.c
2416 runtime/internal/atomic/check: $(CHECK_DEPS)
2417         @$(CHECK)
2418 .PHONY: runtime/internal/atomic/check
2420 extra_go_files_runtime_internal_sys = version.go
2422 @go_include@ runtime/internal/sys.lo.dep
2423 runtime/internal/sys.lo.dep: $(srcdir)/go/runtime/internal/sys/*.go
2424         $(BUILDDEPS)
2425 runtime_internal_sys_lo_GOCFLAGS = -fgo-compiling-runtime
2426 runtime/internal/sys.lo:
2427         $(BUILDPACKAGE)
2428 runtime/internal/sys/check: $(CHECK_DEPS)
2429         @$(CHECK)
2430 .PHONY: runtime/internal/sys/check
2432 @go_include@ sync/atomic.lo.dep
2433 sync/atomic.lo.dep: $(srcdir)/go/sync/atomic/*.go
2434         $(BUILDDEPS)
2435 sync/atomic.lo:
2436         $(BUILDPACKAGE)
2437 sync/atomic_c.lo: go/sync/atomic/atomic.c runtime.inc sync/atomic.lo
2438         $(LTCOMPILE) -c -o $@ $(srcdir)/go/sync/atomic/atomic.c
2439 sync/atomic/check: $(CHECK_DEPS)
2440         @$(CHECK)
2441 .PHONY: sync/atomic/check
2443 @go_include@ text/scanner.lo.dep
2444 text/scanner.lo.dep: $(srcdir)/go/text/scanner/*.go
2445         $(BUILDDEPS)
2446 text/scanner.lo:
2447         $(BUILDPACKAGE)
2448 text/scanner/check: $(CHECK_DEPS)
2449         @$(CHECK)
2450 .PHONY: text/scanner/check
2452 @go_include@ text/tabwriter.lo.dep
2453 text/tabwriter.lo.dep: $(srcdir)/go/text/tabwriter/*.go
2454         $(BUILDDEPS)
2455 text/tabwriter.lo:
2456         $(BUILDPACKAGE)
2457 text/tabwriter/check: $(CHECK_DEPS)
2458         @$(CHECK)
2459 .PHONY: text/tabwriter/check
2461 @go_include@ text/template.lo.dep
2462 text/template.lo.dep: $(srcdir)/go/text/template/*.go
2463         $(BUILDDEPS)
2464 text/template.lo:
2465         $(BUILDPACKAGE)
2466 text/template/check: $(CHECK_DEPS)
2467         @$(CHECK)
2468 .PHONY: text/template/check
2470 @go_include@ text/template/parse.lo.dep
2471 text/template/parse.lo.dep: $(srcdir)/go/text/template/parse/*.go
2472         $(BUILDDEPS)
2473 text/template/parse.lo:
2474         $(BUILDPACKAGE)
2475 text/template/parse/check: $(CHECK_DEPS)
2476         @$(CHECK)
2477 .PHONY: text/template/parse/check
2479 @go_include@ testing/iotest.lo.dep
2480 testing/iotest.lo.dep: $(srcdir)/go/testing/iotest/*.go
2481         $(BUILDDEPS)
2482 testing/iotest.lo:
2483         $(BUILDPACKAGE)
2484 testing/iotest/check: $(CHECK_DEPS)
2485         @$(CHECK)
2486 .PHONY: testing/iotest/check
2488 @go_include@ testing/quick.lo.dep
2489 testing/quick.lo.dep: $(srcdir)/go/testing/quick/*.go
2490         $(BUILDDEPS)
2491 testing/quick.lo:
2492         $(BUILDPACKAGE)
2493 testing/quick/check: $(CHECK_DEPS)
2494         @$(CHECK)
2495 .PHONY: testing/quick/check
2497 @go_include@ unicode/utf16.lo.dep
2498 unicode/utf16.lo.dep: $(srcdir)/go/unicode/utf16/*.go
2499         $(BUILDDEPS)
2500 unicode/utf16.lo:
2501         $(BUILDPACKAGE)
2502 unicode/utf16/check: $(CHECK_DEPS)
2503         @$(CHECK)
2504 .PHONY: unicode/utf16/check
2506 @go_include@ unicode/utf8.lo.dep
2507 unicode/utf8.lo.dep: $(srcdir)/go/unicode/utf8/*.go
2508         $(BUILDDEPS)
2509 unicode/utf8.lo:
2510         $(BUILDPACKAGE)
2511 unicode/utf8/check: $(CHECK_DEPS)
2512         @$(CHECK)
2513 .PHONY: unicode/utf8/check
2515 @go_include@ syscall.lo.dep
2516 syscall.lo.dep: $(srcdir)/go/syscall/*.go $(extra_go_files_syscall)
2517         $(BUILDDEPS)
2518 syscall.lo:
2519         $(BUILDPACKAGE)
2520 syscall/errno.lo: go/syscall/errno.c runtime.inc
2521         @$(MKDIR_P) syscall
2522         $(LTCOMPILE) -c -o $@ $<
2523 syscall/signame.lo: go/syscall/signame.c runtime.inc
2524         @$(MKDIR_P) syscall
2525         $(LTCOMPILE) -c -o $@ $<
2526 syscall/wait.lo: go/syscall/wait.c runtime.inc
2527         @$(MKDIR_P) syscall
2528         $(LTCOMPILE) -c -o $@ $<
2529 syscall/check: $(CHECK_DEPS)
2530         @$(CHECK)
2531 .PHONY: syscall/check
2533 # How to build a .gox file from a .lo file.
2534 BUILDGOX = \
2535         f=`echo $< | sed -e 's/.lo$$/.o/'`; \
2536         $(OBJCOPY) -j .go_export $$f $@.tmp && mv -f $@.tmp $@
2538 bufio.gox: bufio.lo
2539         $(BUILDGOX)
2540 bytes.gox: bytes.lo
2541         $(BUILDGOX)
2542 context.gox: context.lo
2543         $(BUILDGOX)
2544 crypto.gox: crypto.lo
2545         $(BUILDGOX)
2546 encoding.gox: encoding.lo
2547         $(BUILDGOX)
2548 errors.gox: errors.lo
2549         $(BUILDGOX)
2550 expvar.gox: expvar.lo
2551         $(BUILDGOX)
2552 flag.gox: flag.lo
2553         $(BUILDGOX)
2554 fmt.gox: fmt.lo
2555         $(BUILDGOX)
2556 hash.gox: hash.lo
2557         $(BUILDGOX)
2558 html.gox: html.lo
2559         $(BUILDGOX)
2560 image.gox: image.lo
2561         $(BUILDGOX)
2562 io.gox: io.lo
2563         $(BUILDGOX)
2564 log.gox: log.lo
2565         $(BUILDGOX)
2566 math.gox: math.lo
2567         $(BUILDGOX)
2568 mime.gox: mime.lo
2569         $(BUILDGOX)
2570 net.gox: net.lo
2571         $(BUILDGOX)
2572 os.gox: os.lo
2573         $(BUILDGOX)
2574 path.gox: path.lo
2575         $(BUILDGOX)
2576 reflect.gox: reflect-go.lo
2577         $(BUILDGOX)
2578 regexp.gox: regexp.lo
2579         $(BUILDGOX)
2580 runtime.gox: runtime-go.lo
2581         $(BUILDGOX)
2582 sort.gox: sort.lo
2583         $(BUILDGOX)
2584 strconv.gox: strconv.lo
2585         $(BUILDGOX)
2586 strings.gox: strings.lo
2587         $(BUILDGOX)
2588 sync.gox: sync.lo
2589         $(BUILDGOX)
2590 syscall.gox: syscall.lo
2591         $(BUILDGOX)
2592 testing.gox: testing.lo
2593         $(BUILDGOX)
2594 time.gox: time-go.lo
2595         $(BUILDGOX)
2596 unicode.gox: unicode.lo
2597         $(BUILDGOX)
2599 archive/tar.gox: archive/tar.lo
2600         $(BUILDGOX)
2601 archive/zip.gox: archive/zip.lo
2602         $(BUILDGOX)
2604 compress/bzip2.gox: compress/bzip2.lo
2605         $(BUILDGOX)
2606 compress/flate.gox: compress/flate.lo
2607         $(BUILDGOX)
2608 compress/gzip.gox: compress/gzip.lo
2609         $(BUILDGOX)
2610 compress/lzw.gox: compress/lzw.lo
2611         $(BUILDGOX)
2612 compress/zlib.gox: compress/zlib.lo
2613         $(BUILDGOX)
2615 container/heap.gox: container/heap.lo
2616         $(BUILDGOX)
2617 container/list.gox: container/list.lo
2618         $(BUILDGOX)
2619 container/ring.gox: container/ring.lo
2620         $(BUILDGOX)
2622 crypto/aes.gox: crypto/aes.lo
2623         $(BUILDGOX)
2624 crypto/cipher.gox: crypto/cipher.lo
2625         $(BUILDGOX)
2626 crypto/des.gox: crypto/des.lo
2627         $(BUILDGOX)
2628 crypto/dsa.gox: crypto/dsa.lo
2629         $(BUILDGOX)
2630 crypto/ecdsa.gox: crypto/ecdsa.lo       
2631         $(BUILDGOX)
2632 crypto/elliptic.gox: crypto/elliptic.lo
2633         $(BUILDGOX)
2634 crypto/hmac.gox: crypto/hmac.lo
2635         $(BUILDGOX)
2636 crypto/md5.gox: crypto/md5.lo
2637         $(BUILDGOX)
2638 crypto/rand.gox: crypto/rand.lo
2639         $(BUILDGOX)
2640 crypto/rc4.gox: crypto/rc4.lo
2641         $(BUILDGOX)
2642 crypto/rsa.gox: crypto/rsa.lo
2643         $(BUILDGOX)
2644 crypto/sha1.gox: crypto/sha1.lo
2645         $(BUILDGOX)
2646 crypto/sha256.gox: crypto/sha256.lo
2647         $(BUILDGOX)
2648 crypto/sha512.gox: crypto/sha512.lo
2649         $(BUILDGOX)
2650 crypto/subtle.gox: crypto/subtle.lo
2651         $(BUILDGOX)
2652 crypto/tls.gox: crypto/tls.lo
2653         $(BUILDGOX)
2654 crypto/x509.gox: crypto/x509.lo
2655         $(BUILDGOX)
2657 crypto/x509/pkix.gox: crypto/x509/pkix.lo
2658         $(BUILDGOX)
2660 database/sql.gox: database/sql.lo
2661         $(BUILDGOX)
2663 database/sql/driver.gox: database/sql/driver.lo
2664         $(BUILDGOX)
2666 debug/dwarf.gox: debug/dwarf.lo
2667         $(BUILDGOX)
2668 debug/elf.gox: debug/elf.lo
2669         $(BUILDGOX)
2670 debug/gosym.gox: debug/gosym.lo
2671         $(BUILDGOX)
2672 debug/macho.gox: debug/macho.lo
2673         $(BUILDGOX)
2674 debug/pe.gox: debug/pe.lo
2675         $(BUILDGOX)
2676 debug/plan9obj.gox: debug/plan9obj.lo
2677         $(BUILDGOX)
2679 encoding/ascii85.gox: encoding/ascii85.lo
2680         $(BUILDGOX)
2681 encoding/asn1.gox: encoding/asn1.lo
2682         $(BUILDGOX)
2683 encoding/base32.gox: encoding/base32.lo
2684         $(BUILDGOX)
2685 encoding/base64.gox: encoding/base64.lo
2686         $(BUILDGOX)
2687 encoding/binary.gox: encoding/binary.lo
2688         $(BUILDGOX)
2689 encoding/csv.gox: encoding/csv.lo
2690         $(BUILDGOX)
2691 encoding/gob.gox: encoding/gob.lo
2692         $(BUILDGOX)
2693 encoding/hex.gox: encoding/hex.lo
2694         $(BUILDGOX)
2695 encoding/json.gox: encoding/json.lo
2696         $(BUILDGOX)
2697 encoding/pem.gox: encoding/pem.lo
2698         $(BUILDGOX)
2699 encoding/xml.gox: encoding/xml.lo
2700         $(BUILDGOX)
2702 exp/proxy.gox: exp/proxy.lo
2703         $(BUILDGOX)
2704 exp/terminal.gox: exp/terminal.lo
2705         $(BUILDGOX)
2707 html/template.gox: html/template.lo
2708         $(BUILDGOX)
2710 go/ast.gox: go/ast.lo
2711         $(BUILDGOX)
2712 go/build.gox: go/build.lo
2713         $(BUILDGOX)
2714 go/constant.gox: go/constant.lo
2715         $(BUILDGOX)
2716 go/doc.gox: go/doc.lo
2717         $(BUILDGOX)
2718 go/format.gox: go/format.lo
2719         $(BUILDGOX)
2720 go/importer.gox: go/importer.lo
2721         $(BUILDGOX)
2722 go/parser.gox: go/parser.lo
2723         $(BUILDGOX)
2724 go/printer.gox: go/printer.lo
2725         $(BUILDGOX)
2726 go/scanner.gox: go/scanner.lo
2727         $(BUILDGOX)
2728 go/token.gox: go/token.lo
2729         $(BUILDGOX)
2730 go/types.gox: go/types.lo
2731         $(BUILDGOX)
2733 go/internal/gcimporter.gox: go/internal/gcimporter.lo
2734         $(BUILDGOX)
2735 go/internal/gccgoimporter.gox: go/internal/gccgoimporter.lo
2736         $(BUILDGOX)
2738 golang_org/x/net/http2/hpack.gox: golang_org/x/net/http2/hpack.lo
2739         $(BUILDGOX)
2741 golang_org/x/net/lex/httplex.gox: golang_org/x/net/lex/httplex.lo
2742         $(BUILDGOX)
2744 if LIBGO_IS_BSD
2745 golang_org/x/net/route.gox: golang_org/x/net/route.lo
2746         $(BUILDGOX)
2747 endif
2749 hash/adler32.gox: hash/adler32.lo
2750         $(BUILDGOX)
2751 hash/crc32.gox: hash/crc32.lo
2752         $(BUILDGOX)
2753 hash/crc64.gox: hash/crc64.lo
2754         $(BUILDGOX)
2755 hash/fnv.gox: hash/fnv.lo
2756         $(BUILDGOX)
2758 image/color.gox: image/color.lo
2759         $(BUILDGOX)
2760 image/draw.gox: image/draw.lo
2761         $(BUILDGOX)
2762 image/gif.gox: image/gif.lo
2763         $(BUILDGOX)
2764 image/internal/imageutil.gox: image/internal/imageutil.lo
2765         $(BUILDGOX)
2766 image/jpeg.gox: image/jpeg.lo
2767         $(BUILDGOX)
2768 image/png.gox: image/png.lo
2769         $(BUILDGOX)
2771 image/color/palette.gox: image/color/palette.lo
2772         $(BUILDGOX)
2774 index/suffixarray.gox: index/suffixarray.lo
2775         $(BUILDGOX)
2777 internal/nettrace.gox: internal/nettrace.lo
2778         $(BUILDGOX)
2779 internal/race.gox: internal/race.lo
2780         $(BUILDGOX)
2781 internal/singleflight.gox: internal/singleflight.lo
2782         $(BUILDGOX)
2783 internal/syscall/unix.gox: internal/syscall/unix.lo
2784         $(BUILDGOX)
2785 internal/testenv.gox: internal/testenv.lo
2786         $(BUILDGOX)
2787 internal/trace.gox: internal/trace.lo
2788         $(BUILDGOX)
2790 io/ioutil.gox: io/ioutil.lo
2791         $(BUILDGOX)
2793 log/syslog.gox: log/syslog.lo
2794         $(BUILDGOX)
2796 math/big.gox: math/big.lo
2797         $(BUILDGOX)
2798 math/cmplx.gox: math/cmplx.lo
2799         $(BUILDGOX)
2800 math/rand.gox: math/rand.lo
2801         $(BUILDGOX)
2803 mime/multipart.gox: mime/multipart.lo
2804         $(BUILDGOX)
2805 mime/quotedprintable.gox: mime/quotedprintable.lo
2806         $(BUILDGOX)
2808 net/http.gox: net/http.lo
2809         $(BUILDGOX)
2810 net/mail.gox: net/mail.lo
2811         $(BUILDGOX)
2812 net/rpc.gox: net/rpc.lo
2813         $(BUILDGOX)
2814 net/smtp.gox: net/smtp.lo
2815         $(BUILDGOX)
2816 net/textproto.gox: net/textproto.lo
2817         $(BUILDGOX)
2818 net/url.gox: net/url.lo
2819         $(BUILDGOX)
2821 net/http/cgi.gox: net/http/cgi.lo
2822         $(BUILDGOX)
2823 net/http/cookiejar.gox: net/http/cookiejar.lo
2824         $(BUILDGOX)
2825 net/http/fcgi.gox: net/http/fcgi.lo
2826         $(BUILDGOX)
2827 net/http/httptest.gox: net/http/httptest.lo
2828         $(BUILDGOX)
2829 net/http/httptrace.gox: net/http/httptrace.lo
2830         $(BUILDGOX)
2831 net/http/httputil.gox: net/http/httputil.lo
2832         $(BUILDGOX)
2833 net/http/pprof.gox: net/http/pprof.lo
2834         $(BUILDGOX)
2836 net/http/internal.gox: net/http/internal.lo
2837         $(BUILDGOX)
2839 net/internal/socktest.gox: net/internal/socktest.lo
2840         $(BUILDGOX)
2842 net/rpc/jsonrpc.gox: net/rpc/jsonrpc.lo
2843         $(BUILDGOX)
2845 old/regexp.gox: old/regexp.lo
2846         $(BUILDGOX)
2847 old/template.gox: old/template.lo
2848         $(BUILDGOX)
2850 os/exec.gox: os/exec.lo
2851         $(BUILDGOX)
2852 os/signal.gox: os/signal.lo
2853         $(BUILDGOX)
2854 os/user.gox: os/user.lo
2855         $(BUILDGOX)
2857 path/filepath.gox: path/filepath.lo
2858         $(BUILDGOX)
2860 regexp/syntax.gox: regexp/syntax.lo
2861         $(BUILDGOX)
2863 runtime/debug.gox: runtime/debug.lo
2864         $(BUILDGOX)
2865 runtime/pprof.gox: runtime/pprof.lo
2866         $(BUILDGOX)
2867 runtime/internal/atomic.gox: runtime/internal/atomic.lo
2868         $(BUILDGOX)
2869 runtime/internal/sys.gox: runtime/internal/sys.lo
2870         $(BUILDGOX)
2872 sync/atomic.gox: sync/atomic.lo
2873         $(BUILDGOX)
2875 text/scanner.gox: text/scanner.lo
2876         $(BUILDGOX)
2877 text/tabwriter.gox: text/tabwriter.lo
2878         $(BUILDGOX)
2879 text/template.gox: text/template.lo
2880         $(BUILDGOX)
2881 text/template/parse.gox: text/template/parse.lo
2882         $(BUILDGOX)
2884 testing/iotest.gox: testing/iotest.lo
2885         $(BUILDGOX)
2886 testing/quick.gox: testing/quick.lo
2887         $(BUILDGOX)
2889 unicode/utf16.gox: unicode/utf16.lo
2890         $(BUILDGOX)
2891 unicode/utf8.gox: unicode/utf8.lo
2892         $(BUILDGOX)
2894 TEST_PACKAGES = \
2895         bufio/check \
2896         bytes/check \
2897         context/check \
2898         errors/check \
2899         expvar/check \
2900         flag/check \
2901         fmt/check \
2902         html/check \
2903         image/check \
2904         io/check \
2905         log/check \
2906         math/check \
2907         mime/check \
2908         net/check \
2909         os/check \
2910         path/check \
2911         reflect/check \
2912         regexp/check \
2913         runtime/check \
2914         sort/check \
2915         strconv/check \
2916         strings/check \
2917         sync/check \
2918         syscall/check \
2919         time/check \
2920         unicode/check \
2921         archive/tar/check \
2922         archive/zip/check \
2923         compress/bzip2/check \
2924         compress/flate/check \
2925         compress/gzip/check \
2926         compress/lzw/check \
2927         compress/zlib/check \
2928         container/heap/check \
2929         container/list/check \
2930         container/ring/check \
2931         crypto/aes/check \
2932         crypto/cipher/check \
2933         crypto/des/check \
2934         crypto/dsa/check \
2935         crypto/ecdsa/check \
2936         crypto/elliptic/check \
2937         crypto/hmac/check \
2938         crypto/md5/check \
2939         crypto/rand/check \
2940         crypto/rc4/check \
2941         crypto/rsa/check \
2942         crypto/sha1/check \
2943         crypto/sha256/check \
2944         crypto/sha512/check \
2945         crypto/subtle/check \
2946         crypto/tls/check \
2947         crypto/x509/check \
2948         database/sql/check \
2949         database/sql/driver/check \
2950         debug/dwarf/check \
2951         debug/elf/check \
2952         debug/macho/check \
2953         debug/pe/check \
2954         debug/plan9obj/check \
2955         encoding/ascii85/check \
2956         encoding/asn1/check \
2957         encoding/base32/check \
2958         encoding/base64/check \
2959         encoding/binary/check \
2960         encoding/csv/check \
2961         encoding/gob/check \
2962         encoding/hex/check \
2963         encoding/json/check \
2964         encoding/pem/check \
2965         encoding/xml/check \
2966         exp/proxy/check \
2967         exp/terminal/check \
2968         html/template/check \
2969         go/ast/check \
2970         go/build/check \
2971         go/constant/check \
2972         go/doc/check \
2973         go/format/check \
2974         go/internal/gcimporter/check \
2975         go/internal/gccgoimporter/check \
2976         go/parser/check \
2977         go/printer/check \
2978         go/scanner/check \
2979         go/token/check \
2980         go/types/check \
2981         golang_org/x/net/http2/hpack/check \
2982         golang_org/x/net/lex/httplex/check \
2983         $(golang_org_x_net_route_check) \
2984         hash/adler32/check \
2985         hash/crc32/check \
2986         hash/crc64/check \
2987         hash/fnv/check \
2988         image/color/check \
2989         image/draw/check \
2990         image/jpeg/check \
2991         image/png/check \
2992         index/suffixarray/check \
2993         internal/singleflight/check \
2994         internal/trace/check \
2995         io/ioutil/check \
2996         log/syslog/check \
2997         math/big/check \
2998         math/cmplx/check \
2999         math/rand/check \
3000         mime/multipart/check \
3001         mime/quotedprintable/check \
3002         net/http/check \
3003         net/http/cgi/check \
3004         net/http/cookiejar/check \
3005         net/http/fcgi/check \
3006         net/http/httptest/check \
3007         net/http/httptrace/check \
3008         net/http/httputil/check \
3009         net/http/internal/check \
3010         net/internal/socktest/check \
3011         net/mail/check \
3012         net/rpc/check \
3013         net/smtp/check \
3014         net/textproto/check \
3015         net/url/check \
3016         net/rpc/jsonrpc/check \
3017         old/regexp/check \
3018         old/template/check \
3019         os/exec/check \
3020         os/signal/check \
3021         os/user/check \
3022         path/filepath/check \
3023         regexp/syntax/check \
3024         runtime/pprof/check \
3025         runtime/internal/atomic/check \
3026         runtime/internal/sys/check \
3027         sync/atomic/check \
3028         text/scanner/check \
3029         text/tabwriter/check \
3030         text/template/check \
3031         text/template/parse/check \
3032         testing/quick/check \
3033         unicode/utf16/check \
3034         unicode/utf8/check
3036 check: check-tail
3037 check-recursive: check-head
3039 check-head:
3040         @echo "Test Run By $${USER} on `date`" > libgo.head
3041         @echo "Native configuration is $(host_triplet)" >> libgo.head
3042         @echo >> libgo.head
3043         @echo "         === libgo tests ===" >> libgo.head
3044         @echo >> libgo.head
3046 check-tail: check-recursive check-multi
3047         @if test "$(USE_DEJAGNU)" = "yes"; then \
3048           exit 0; \
3049         fi; \
3050         lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
3051         for dir in . $(MULTIDIRS); do \
3052           mv ../$${dir}/$${lib}/libgo.sum ../$${dir}/$${lib}/libgo.sum.sep; \
3053           mv ../$${dir}/$${lib}/libgo.log ../$${dir}/$${lib}/libgo.log.sep; \
3054         done; \
3055         mv libgo.head libgo.sum; \
3056         cp libgo.sum libgo.log; \
3057         echo "Schedule of variations:" >> libgo.sum; \
3058         for dir in . $(MULTIDIRS); do \
3059           multidir=../$${dir}/$${lib}; \
3060           multivar=`cat $${multidir}/libgo.var`; \
3061           echo "    $${multivar}" >> libgo.sum; \
3062         done; \
3063         echo >> libgo.sum; \
3064         pass=0; fail=0; untested=0; \
3065         for dir in . $(MULTIDIRS); do \
3066           multidir=../$${dir}/$${lib}; \
3067           multivar=`cat $${multidir}/libgo.var`; \
3068           echo "Running target $${multivar}" >> libgo.sum; \
3069           echo "Running $(srcdir)/libgo.exp ..." >> libgo.sum; \
3070           cat $${multidir}/libgo.sum.sep >> libgo.sum; \
3071           cat $${multidir}/libgo.log.sep >> libgo.log; \
3072           if test -n "${MULTIDIRS}"; then \
3073             echo "              === libgo Summary for $${multivar} ===" >> libgo.sum; \
3074             echo >> libgo.sum; \
3075           fi; \
3076           p=`grep -c PASS $${multidir}/libgo.sum.sep`; \
3077           pass=`expr $$pass + $$p`; \
3078           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3079             echo "# of expected passes          $$p" >> libgo.sum; \
3080           fi; \
3081           p=`grep -c FAIL $${multidir}/libgo.sum.sep`; \
3082           fail=`expr $$fail + $$p`; \
3083           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3084             echo "# of unexpected failures      $$p" >> libgo.sum; \
3085           fi; \
3086           p=`grep -c UNTESTED $${multidir}/libgo.sum.sep`; \
3087           untested=`expr $$untested + $$p`; \
3088           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3089             echo "# of untested testcases               $$p" >> libgo.sum; \
3090           fi; \
3091         done; \
3092         echo >> libgo.sum; \
3093         echo "          === libgo Summary ===" >> libgo.sum; \
3094         echo >> libgo.sum; \
3095         if test "$$pass" -ne "0"; then \
3096           echo "# of expected passes            $$pass" >> libgo.sum; \
3097         fi; \
3098         if test "$$fail" -ne "0"; then \
3099           echo "# of unexpected failures        $$fail" >> libgo.sum; \
3100         fi; \
3101         if test "$$untested" -ne "0"; then \
3102           echo "# of untested testcases         $$untested" >> libgo.sum; \
3103         fi; \
3104         echo `echo $(GOC) | sed -e 's/ .*//'`  `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
3105         echo >> libgo.log; \
3106         echo "runtest completed at `date`" >> libgo.log; \
3107         if test "$$fail" -ne "0"; then \
3108           status=1; \
3109         else \
3110           status=0; \
3111         fi; \
3112         exit $$status
3114 check-am:
3115         @rm -f libgo.sum libgo.log libgo.tail
3116         @multivar="unix"; \
3117         [ -z "$(MULTIFLAGS)" ] || multivar="$${multivar}/$(MULTIFLAGS)"; \
3118         echo "$${multivar}" > libgo.var
3119         @for f in $(TEST_PACKAGES); do \
3120            rm -f $$f-testsum $$f-testlog; \
3121          done
3122         -@$(MAKE) -k $(TEST_PACKAGES)
3123         @for f in $(TEST_PACKAGES); do \
3124           if test -f $$f-testsum; then \
3125             cat $$f-testsum >> libgo.sum; \
3126           fi; \
3127           if test -f $$f-testlog; then \
3128             cat $$f-testlog >> libgo.log; \
3129           fi; \
3130         done
3132 check-multi:
3133         $(MULTIDO) $(AM_MAKEFLAGS) DO=check-am multi-do # $(MAKE)
3135 bench:
3136         -@$(MAKE) -k $(TEST_PACKAGES) GOBENCH=.
3138 MOSTLYCLEAN_FILES = libgo.head libgo.sum.sep libgo.log.sep
3140 mostlyclean-local:
3141         find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
3142         find . -name '*.$(OBJEXT)' -print | xargs rm -f
3143         find . -name '*-testsum' -print | xargs rm -f
3144         find . -name '*-testlog' -print | xargs rm -f
3146 CLEANFILES = *.go *.gox goc2c *.c s-version libgo.sum libgo.log
3148 clean-local:
3149         find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
3150         find . -name '*.a' -print | xargs rm -f