DR 1511 - const volatile variables and ODR
[official-gcc.git] / libgo / Makefile.am
blobdee6fbcc25cba7509e8e4c10d23ea532c0709854
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_thread_files = runtime/thread-linux.c
400 else
401 runtime_thread_files = 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-breakpoint.c \
445         runtime/go-caller.c \
446         runtime/go-callers.c \
447         runtime/go-can-convert-interface.c \
448         runtime/go-cdiv.c \
449         runtime/go-cgo.c \
450         runtime/go-check-interface.c \
451         runtime/go-construct-map.c \
452         runtime/go-convert-interface.c \
453         runtime/go-copy.c \
454         runtime/go-defer.c \
455         runtime/go-deferred-recover.c \
456         runtime/go-eface-compare.c \
457         runtime/go-eface-val-compare.c \
458         runtime/go-ffi.c \
459         runtime/go-fieldtrack.c \
460         runtime/go-interface-compare.c \
461         runtime/go-interface-eface-compare.c \
462         runtime/go-interface-val-compare.c \
463         runtime/go-make-slice.c \
464         runtime/go-matherr.c \
465         runtime/go-memclr.c \
466         runtime/go-memcmp.c \
467         runtime/go-memequal.c \
468         runtime/go-memmove.c \
469         runtime/go-nanotime.c \
470         runtime/go-now.c \
471         runtime/go-new.c \
472         runtime/go-nosys.c \
473         runtime/go-panic.c \
474         runtime/go-recover.c \
475         runtime/go-reflect-call.c \
476         runtime/go-runtime-error.c \
477         runtime/go-setenv.c \
478         runtime/go-signal.c \
479         runtime/go-strcmp.c \
480         runtime/go-strslice.c \
481         runtime/go-traceback.c \
482         runtime/go-type-complex.c \
483         runtime/go-type-eface.c \
484         runtime/go-type-float.c \
485         runtime/go-type-identity.c \
486         runtime/go-type-interface.c \
487         runtime/go-type-string.c \
488         runtime/go-typedesc-equal.c \
489         runtime/go-unsafe-new.c \
490         runtime/go-unsafe-newarray.c \
491         runtime/go-unsafe-pointer.c \
492         runtime/go-unsetenv.c \
493         runtime/go-unwind.c \
494         runtime/go-varargs.c \
495         runtime/env_posix.c \
496         runtime/heapdump.c \
497         runtime/mcache.c \
498         runtime/mcentral.c \
499         $(runtime_mem_file) \
500         runtime/mfixalloc.c \
501         runtime/mgc0.c \
502         runtime/mheap.c \
503         runtime/msize.c \
504         $(runtime_netpoll_files) \
505         runtime/panic.c \
506         runtime/parfor.c \
507         runtime/print.c \
508         runtime/proc.c \
509         runtime/runtime.c \
510         runtime/signal_unix.c \
511         runtime/thread.c \
512         $(runtime_thread_files) \
513         runtime/yield.c \
514         $(rtems_task_variable_add_file) \
515         go-iface.c \
516         lfstack.c \
517         malloc.c \
518         mprof.c \
519         netpoll.c \
520         rdebug.c \
521         reflect.c \
522         runtime1.c \
523         sigqueue.c \
524         time.c \
525         $(runtime_getncpu_file)
527 goc2c.$(OBJEXT): runtime/goc2c.c
528         $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
530 goc2c: goc2c.$(OBJEXT)
531         $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
533 malloc.c: $(srcdir)/runtime/malloc.goc goc2c
534         ./goc2c $< > $@.tmp
535         mv -f $@.tmp $@
537 mprof.c: $(srcdir)/runtime/mprof.goc goc2c
538         ./goc2c $< > $@.tmp
539         mv -f $@.tmp $@
541 netpoll.c: $(srcdir)/runtime/netpoll.goc goc2c
542         ./goc2c $< > $@.tmp
543         mv -f $@.tmp $@
545 reflect.c: $(srcdir)/runtime/reflect.goc goc2c
546         ./goc2c $< > $@.tmp
547         mv -f $@.tmp $@
549 runtime1.c: $(srcdir)/runtime/runtime1.goc goc2c
550         ./goc2c $< > $@.tmp
551         mv -f $@.tmp $@
553 sema.c: $(srcdir)/runtime/sema.goc goc2c
554         ./goc2c $< > $@.tmp
555         mv -f $@.tmp $@
557 sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
558         ./goc2c --go-pkgpath os_signal $< > $@.tmp
559         mv -f $@.tmp $@
561 time.c: $(srcdir)/runtime/time.goc goc2c
562         ./goc2c $< > $@.tmp
563         mv -f $@.tmp $@
565 %.c: $(srcdir)/runtime/%.goc goc2c
566         ./goc2c $< > $@.tmp
567         mv -f $@.tmp $@
569 version.go: s-version; @true
570 s-version: Makefile
571         rm -f version.go.tmp
572         echo "package sys" > version.go.tmp
573         echo 'const DefaultGoroot = "$(prefix)"' >> version.go.tmp
574         echo 'const TheVersion = "'`cat $(srcdir)/VERSION | sed 1q`' '`$(GOC) --version | sed 1q`'"' >> version.go.tmp
575         echo 'const GOARCH = "'$(GOARCH)'"' >> version.go.tmp
576         echo 'const GOOS = "'$(GOOS)'"' >> version.go.tmp
577         echo 'const GccgoToolDir = "$(libexecsubdir)"' >> version.go.tmp
578         echo >> version.go.tmp
579         echo "type ArchFamilyType int" >> version.go.tmp
580         echo >> version.go.tmp
581         echo "const (" >> version.go.tmp
582         echo "  UNKNOWN ArchFamilyType = iota" >> version.go.tmp
583         for a in $(ALLGOARCHFAMILY); do \
584           echo "        $${a}" >> version.go.tmp; \
585         done
586         echo ")" >> version.go.tmp
587         echo >> version.go.tmp
588         for a in $(ALLGOARCH); do \
589           f=`echo $${a} | sed -e 's/\(.\).*/\1/' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`; \
590           n="$${f}`echo $${a} | sed -e 's/.//'`"; \
591           if test "$${a}" = "$(GOARCH)"; then \
592             echo "const Goarch$${n} = 1" >> version.go.tmp; \
593           else \
594             echo "const Goarch$${n} = 0" >> version.go.tmp; \
595           fi; \
596         done
597         echo >> version.go.tmp
598         echo "const (" >> version.go.tmp
599         echo "  ArchFamily = $(GOARCH_FAMILY)" >> version.go.tmp
600         echo "  BigEndian = $(GOARCH_BIGENDIAN)" >> version.go.tmp
601         echo "  CacheLineSize = $(GOARCH_CACHELINESIZE)" >> version.go.tmp
602         echo "  PhysPageSize = $(GOARCH_PHYSPAGESIZE)" >> version.go.tmp
603         echo "  PCQuantum = $(GOARCH_PCQUANTUM)" >> version.go.tmp
604         echo "  Int64Align = $(GOARCH_INT64ALIGN)" >> version.go.tmp
605         echo "  HugePageSize = $(GOARCH_HUGEPAGESIZE)" >> version.go.tmp
606         echo "  MinFrameSize = $(GOARCH_MINFRAMESIZE)" >> version.go.tmp
607         echo ")" >> version.go.tmp
608         echo >> version.go.tmp
609         for a in $(ALLGOOS); do \
610           f=`echo $${a} | sed -e 's/\(.\).*/\1/' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`; \
611           n="$${f}`echo $${a} | sed -e 's/.//'`"; \
612           if test "$${a}" = "$(GOOS)"; then \
613             echo "const Goos$${n} = 1" >> version.go.tmp; \
614           else \
615             echo "const Goos$${n} = 0" >> version.go.tmp; \
616           fi; \
617         done
618         echo >> version.go.tmp
619         echo "type Uintreg uintptr" >> version.go.tmp
620         $(SHELL) $(srcdir)/mvifdiff.sh version.go.tmp version.go
621         $(STAMP) $@
623 runtime_sysinfo.go: s-runtime_sysinfo; @true
624 s-runtime_sysinfo: $(srcdir)/mkrsysinfo.sh gen-sysinfo.go
625         $(SHELL) $(srcdir)/mkrsysinfo.sh
626         $(SHELL) $(srcdir)/mvifdiff.sh tmp-runtime_sysinfo.go runtime_sysinfo.go
627         $(STAMP) $@
629 noinst_DATA = zstdpkglist.go
631 # Generate the list of go std packages that were included in libgo
632 zstdpkglist.go: s-zstdpkglist; @true
633 s-zstdpkglist: Makefile
634         rm -f zstdpkglist.go.tmp
635         echo 'package main' > zstdpkglist.go.tmp
636         echo "" >> zstdpkglist.go.tmp
637         echo 'var stdpkg = map[string]bool{' >> zstdpkglist.go.tmp
638         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
639         echo '}' >> zstdpkglist.go.tmp
640         $(SHELL) $(srcdir)/mvifdiff.sh zstdpkglist.go.tmp zstdpkglist.go
641         $(STAMP) $@
643 if LIBGO_IS_LINUX
644 syscall_epoll_file = epoll.go
645 else
646 syscall_epoll_file =
647 endif
649 extra_go_files_syscall = \
650         libcalls.go \
651         sysinfo.go \
652         syscall_arch.go \
653         $(syscall_epoll_file)
655 libcalls.go: s-libcalls; @true
656 s-libcalls: libcalls-list go/syscall/mksyscall.awk $(srcdir)/go/syscall/*.go
657         rm -f libcalls.go.tmp
658         $(AWK) -f $(srcdir)/go/syscall/mksyscall.awk `cat libcalls-list` > libcalls.go.tmp
659         $(SHELL) $(srcdir)/mvifdiff.sh libcalls.go.tmp libcalls.go
660         $(STAMP) $@
662 libcalls-list: s-libcalls-list; @true
663 s-libcalls-list: Makefile $(srcdir)/go/syscall/*.go
664         rm -f libcalls-list.tmp
665         $(SHELL) $(srcdir)/match.sh --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/syscall $(matchargs_syscall) > libcalls-list.tmp
666         $(SHELL) $(srcdir)/mvifdiff.sh libcalls-list.tmp libcalls-list
667         $(STAMP) $@
669 syscall_arch.go: s-syscall_arch; @true
670 s-syscall_arch: Makefile
671         rm -f syscall_arch.go.tmp
672         echo "package syscall" > syscall_arch.go.tmp
673         echo 'const ARCH = "'$(GOARCH)'"' >> syscall_arch.go.tmp
674         echo 'const OS = "'$(GOOS)'"' >> syscall_arch.go.tmp
675         $(SHELL) $(srcdir)/mvifdiff.sh syscall_arch.go.tmp syscall_arch.go
676         $(STAMP) $@
678 SYSINFO_FLAGS = \
679         $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
680         $(CPPFLAGS) $(OSCFLAGS) -O
682 gen-sysinfo.go: s-gen-sysinfo; @true
683 s-gen-sysinfo: $(srcdir)/sysinfo.c config.h
684         $(CC) $(SYSINFO_FLAGS) -fdump-go-spec=tmp-gen-sysinfo.go -std=gnu99 -S -o sysinfo.s $(srcdir)/sysinfo.c
685         rm -f sysinfo.s
686         $(SHELL) $(srcdir)/mvifdiff.sh tmp-gen-sysinfo.go gen-sysinfo.go
687         $(STAMP) $@
689 errno.i: s-errno; @true
690 s-errno:
691         echo '#include <errno.h>' | $(CC) $(SYSINFO_FLAGS) -x c - -E -dM > tmp-errno.i
692         $(SHELL) $(srcdir)/mvifdiff.sh tmp-errno.i errno.i
693         $(STAMP) $@
695 sysinfo.go: s-sysinfo; @true
696 s-sysinfo: $(srcdir)/mksysinfo.sh gen-sysinfo.go errno.i
697         $(SHELL) $(srcdir)/mksysinfo.sh
698         $(SHELL) $(srcdir)/mvifdiff.sh tmp-sysinfo.go sysinfo.go
699         $(STAMP) $@
701 # The epoll struct has an embedded union and is packed on x86_64,
702 # which is too complicated for mksysinfo.sh.  We find the offset of
703 # the only field we care about in configure.ac, and generate the
704 # struct here.
705 epoll.go: s-epoll; @true
706 s-epoll: Makefile
707         rm -f epoll.go.tmp
708         echo 'package syscall' > epoll.go.tmp
709         echo 'type EpollEvent struct {' >> epoll.go.tmp
710         echo '  Events uint32' >> epoll.go.tmp
711         case "$(SIZEOF_STRUCT_EPOLL_EVENT),$(STRUCT_EPOLL_EVENT_FD_OFFSET)" in \
712         0,0) echo 1>&2 "*** struct epoll_event data.fd offset unknown"; \
713            exit 1; ;; \
714         8,4) echo '     Fd int32' >> epoll.go.tmp; ;; \
715         12,4) echo '    Fd int32' >> epoll.go.tmp; \
716            echo '       Pad [4]byte' >> epoll.go.tmp; ;; \
717         12,8) echo '    Pad [4]byte' >> epoll.go.tmp; \
718            echo '       Fd int32' >> epoll.go.tmp; ;; \
719         16,8) echo '    Pad [4]byte' >> epoll.go.tmp; \
720            echo '       Fd int32' >> epoll.go.tmp; \
721            echo '       Pad2 [4]byte' >> epoll.go.tmp; ;; \
722         *) echo 1>&2 "*** struct epoll_event unsupported"; \
723            exit 1; ;; \
724         esac
725         echo '}' >> epoll.go.tmp
726         $(SHELL) $(srcdir)/mvifdiff.sh epoll.go.tmp epoll.go
727         $(STAMP) $@
729 if LIBGO_IS_LINUX
730 syscall_lib_clone_lo = syscall/clone_linux.lo
731 else
732 syscall_lib_clone_lo =
733 endif
735 libgo_go_objs = \
736         bufio.lo \
737         bytes.lo \
738         bytes/index.lo \
739         context.lo \
740         crypto.lo \
741         encoding.lo \
742         errors.lo \
743         expvar.lo \
744         flag.lo \
745         fmt.lo \
746         hash.lo \
747         html.lo \
748         image.lo \
749         io.lo \
750         log.lo \
751         math.lo \
752         mime.lo \
753         net.lo \
754         os.lo \
755         path.lo \
756         reflect-go.lo \
757         reflect/makefunc_ffi_c.lo \
758         regexp.lo \
759         runtime-go.lo \
760         sort.lo \
761         strconv.lo \
762         strings.lo \
763         strings/index.lo \
764         sync.lo \
765         syscall.lo \
766         $(syscall_lib_clone_lo) \
767         syscall/errno.lo \
768         syscall/signame.lo \
769         syscall/wait.lo \
770         testing.lo \
771         time-go.lo \
772         unicode.lo \
773         archive/tar.lo \
774         archive/zip.lo \
775         compress/bzip2.lo \
776         compress/flate.lo \
777         compress/gzip.lo \
778         compress/lzw.lo \
779         compress/zlib.lo \
780         container/heap.lo \
781         container/list.lo \
782         container/ring.lo \
783         crypto/aes.lo \
784         crypto/cipher.lo \
785         crypto/des.lo \
786         crypto/dsa.lo \
787         crypto/ecdsa.lo \
788         crypto/elliptic.lo \
789         crypto/hmac.lo \
790         crypto/md5.lo \
791         crypto/rand.lo \
792         crypto/rc4.lo \
793         crypto/rsa.lo \
794         crypto/sha1.lo \
795         crypto/sha256.lo \
796         crypto/sha512.lo \
797         crypto/subtle.lo \
798         crypto/tls.lo \
799         crypto/x509.lo \
800         crypto/x509/pkix.lo \
801         database/sql.lo \
802         database/sql/driver.lo \
803         debug/dwarf.lo \
804         debug/elf.lo \
805         debug/gosym.lo \
806         debug/macho.lo \
807         debug/pe.lo \
808         debug/plan9obj.lo \
809         encoding/ascii85.lo \
810         encoding/asn1.lo \
811         encoding/base32.lo \
812         encoding/base64.lo \
813         encoding/binary.lo \
814         encoding/csv.lo \
815         encoding/gob.lo \
816         encoding/hex.lo \
817         encoding/json.lo \
818         encoding/pem.lo \
819         encoding/xml.lo \
820         exp/proxy.lo \
821         exp/terminal.lo \
822         html/template.lo \
823         go/ast.lo \
824         go/build.lo \
825         go/constant.lo \
826         go/doc.lo \
827         go/format.lo \
828         go/importer.lo \
829         go/internal/gcimporter.lo \
830         go/internal/gccgoimporter.lo \
831         go/parser.lo \
832         go/printer.lo \
833         go/scanner.lo \
834         go/token.lo \
835         go/types.lo \
836         golang_org/x/net/http2/hpack.lo \
837         golang_org/x/net/lex/httplex.lo \
838         $(golang_org_x_net_route_lo) \
839         hash/adler32.lo \
840         hash/crc32.lo \
841         hash/crc64.lo \
842         hash/fnv.lo \
843         net/http/cgi.lo \
844         net/http/cookiejar.lo \
845         net/http/fcgi.lo \
846         net/http/httptest.lo \
847         net/http/httptrace.lo \
848         net/http/httputil.lo \
849         net/http/internal.lo \
850         net/http/pprof.lo \
851         image/color.lo \
852         image/color/palette.lo \
853         image/draw.lo \
854         image/gif.lo \
855         image/internal/imageutil.lo \
856         image/jpeg.lo \
857         image/png.lo \
858         index/suffixarray.lo \
859         internal/nettrace.lo \
860         internal/race.lo \
861         internal/singleflight.lo \
862         internal/syscall/unix.lo \
863         internal/testenv.lo \
864         internal/trace.lo \
865         io/ioutil.lo \
866         log/syslog.lo \
867         log/syslog/syslog_c.lo \
868         math/big.lo \
869         math/cmplx.lo \
870         math/rand.lo \
871         mime/multipart.lo \
872         mime/quotedprintable.lo \
873         net/http.lo \
874         net/internal/socktest.lo \
875         net/mail.lo \
876         net/rpc.lo \
877         net/smtp.lo \
878         net/textproto.lo \
879         net/url.lo \
880         old/regexp.lo \
881         old/template.lo \
882         os/exec.lo \
883         $(os_lib_inotify_lo) \
884         os/signal.lo \
885         os/user.lo \
886         path/filepath.lo \
887         regexp/syntax.lo \
888         net/rpc/jsonrpc.lo \
889         runtime/debug.lo \
890         runtime/pprof.lo \
891         runtime/internal/atomic.lo \
892         runtime/internal/atomic_c.lo \
893         runtime/internal/sys.lo \
894         sync/atomic.lo \
895         sync/atomic_c.lo \
896         text/scanner.lo \
897         text/tabwriter.lo \
898         text/template.lo \
899         text/template/parse.lo \
900         testing/iotest.lo \
901         testing/quick.lo \
902         unicode/utf16.lo \
903         unicode/utf8.lo
905 libgo_ldflags = \
906         -version-info $(libtool_VERSION) $(PTHREAD_CFLAGS) $(AM_LDFLAGS)
908 libgo_libadd = \
909         $(libgo_go_objs) ../libbacktrace/libbacktrace.la \
910         $(LIBATOMIC) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)
912 libgo_la_SOURCES = $(runtime_files)
913 libgo_la_LDFLAGS = $(libgo_ldflags)
914 libgo_la_LIBADD = $(libgo_libadd)
916 libgo_llgo_la_SOURCES = $(runtime_files)
917 libgo_llgo_la_LDFLAGS = $(libgo_ldflags)
918 libgo_llgo_la_LIBADD = $(libgo_libadd)
920 libgobegin_a_SOURCES = \
921         runtime/go-main.c
923 libgobegin_llgo_a_SOURCES = \
924         runtime/go-main.c
926 # Use -fPIC for libgobegin so that it can be put in a PIE.
927 libgobegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
928 libgobegin_llgo_a_CFLAGS = $(AM_CFLAGS) -fPIC
930 libgolibbegin_a_SOURCES = \
931         runtime/go-libmain.c
933 libgolibbegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
935 libnetgo_a_SOURCES =
936 libnetgo_a_LIBADD = netgo.o
938 # Make sure runtime.inc is built before compiling any .c file.
939 $(libgo_la_OBJECTS): runtime.inc
940 $(libgo_llgo_la_OBJECTS): runtime.inc
941 $(libgobegin_a_OBJECTS): runtime.inc
942 $(libgobegin_llgo_a_OBJECTS): runtime.inc
943 $(libgolibbegin_a_OBJECTS): runtime.inc
945 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
947 GOCFLAGS = $(CFLAGS)
948 AM_GOCFLAGS = $(STRINGOPS_FLAG) $(GO_SPLIT_STACK)
949 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
951 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
952         $(AM_GOCFLAGS) $(GOCFLAGS)
954 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
955         $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
957 # Build the dependencies for a Go package.
958 BUILDDEPS = \
959         $(MKDIR_P) $(@D); \
960         dir=`echo $@ | sed -e 's/.lo.dep$$//' -e 's/-go//'`; \
961         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,,$@))))`; \
962         $(SHELL) $(srcdir)/godeps.sh `echo $@ | sed -e 's/.dep$$//'` $$files > $@.tmp; \
963         if ! cmp $@.tmp $@ >/dev/null 2>/dev/null; then \
964           rm -f `echo $@ | sed -e 's/\.dep$$//'`; \
965         fi; \
966         mv -f $@.tmp $@
968 # Build the .go files for a package, generating a .lo file.
969 BUILDPACKAGE = \
970         $(MKDIR_P) $(@D); \
971         files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; \
972         $(LTGOCOMPILE) -I . -c -fgo-pkgpath=`echo $@ | sed -e 's/.lo$$//' -e 's/-go$$//'` $($(subst -,_,$(subst .,_,$(subst /,_,$@)))_GOCFLAGS) -o $@ $$files
974 # Build deps for netgo.o.
975 BUILDNETGODEPS = \
976         $(MKDIR_P) $(@D); \
977         files=`$(SHELL) $(srcdir)/match.sh --nocgo --tag=netgo --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/net`; \
978         $(SHELL) $(srcdir)/godeps.sh netgo.o $$files > $@.tmp; \
979         mv -f $@.tmp $@
981 # Build netgo.o.
982 BUILDNETGO = \
983         $(MKDIR_P) $(@D); \
984         files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; \
985         $(GOCOMPILE) -I . -c -fPIC -fgo-pkgpath=net -o $@ $$files
987 GOTESTFLAGS =
988 GOBENCH = 
990 # Check a package.
991 CHECK = \
992         GC="$(GOC) $(GOCFLAGS) $($(subst /,_,$@)_GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
993         export GC; \
994         GOLIBS="$(MATH_LIBS) $(NET_LIBS) $(LIBS)"; \
995         export GOLIBS; \
996         RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
997         export RUNTESTFLAGS; \
998         MAKE="$(MAKE)"; \
999         export MAKE; \
1000         libgccdir=`${GOC} -print-libgcc-file-name | sed -e 's|/[^/]*$$||'`; \
1001         LD_LIBRARY_PATH="`${PWD_COMMAND}`/.libs:$${libgccdir}:${LD_LIBRARY_PATH}"; \
1002         LD_LIBRARY_PATH=`echo $${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
1003         export LD_LIBRARY_PATH; \
1004         $(MKDIR_P) $(@D); \
1005         rm -f $@-testsum $@-testlog; \
1006         files=`$(SHELL) $(srcdir)/match.sh --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/$(@D) --extrafiles="$(extra_go_files_$(subst /,_,$(@D)))" $(matchargs_$(subst /,_,$(@D)))`; \
1007         if test "$(USE_DEJAGNU)" = "yes"; then \
1008           $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" --testname="$(@D)" $(GOTESTFLAGS); \
1009         elif test "$(GOBENCH)" != ""; then \
1010           $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" --bench="$(GOBENCH)" $(GOTESTFLAGS); \
1011         else \
1012           if $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" $(GOTESTFLAGS) >>$@-testlog 2>&1; then \
1013             echo "PASS: $(@D)" >> $@-testlog; \
1014             echo "PASS: $(@D)"; \
1015             echo "PASS: $(@D)" > $@-testsum; \
1016           else \
1017             echo "FAIL: $(@D)" >> $@-testlog; \
1018             cat $@-testlog; \
1019             echo "FAIL: $(@D)" > $@-testsum; \
1020             exit 1; \
1021           fi; \
1022         fi
1024 # Build all packages before checking any.
1025 CHECK_DEPS = \
1026         $(toolexeclibgo_DATA) \
1027         $(toolexeclibgoarchive_DATA) \
1028         $(toolexeclibgocompress_DATA) \
1029         $(toolexeclibgocontainer_DATA) \
1030         $(toolexeclibgocrypto_DATA) \
1031         $(toolexeclibgodebug_DATA) \
1032         $(toolexeclibgoencoding_DATA) \
1033         $(toolexeclibgoexp_DATA) \
1034         $(toolexeclibgogo_DATA) \
1035         $(toolexeclibgohash_DATA) \
1036         $(toolexeclibgoimage_DATA) \
1037         $(toolexeclibgoindex_DATA) \
1038         $(toolexeclibgoio_DATA) \
1039         $(toolexeclibgolog_DATA) \
1040         $(toolexeclibgomath_DATA) \
1041         $(toolexeclibgomime_DATA) \
1042         $(toolexeclibgonet_DATA) \
1043         $(toolexeclibgonethttp_DATA) \
1044         $(toolexeclibgoos_DATA) \
1045         $(toolexeclibgopath_DATA) \
1046         $(toolexeclibgorpc_DATA) \
1047         $(toolexeclibgoruntime_DATA) \
1048         $(toolexeclibgosync_DATA) \
1049         $(toolexeclibgotesting_DATA) \
1050         $(toolexeclibgotext_DATA) \
1051         $(toolexeclibgotexttemplate_DATA) \
1052         $(toolexeclibgounicode_DATA)
1054 if GOC_IS_LLGO
1055 CHECK_DEPS += libgo-llgo.la libgobegin-llgo.a
1056 else
1057 CHECK_DEPS += libgo.la libgobegin.a
1058 endif
1060 @go_include@ bufio.lo.dep
1061 bufio.lo.dep: $(srcdir)/go/bufio/*.go
1062         $(BUILDDEPS)
1063 bufio.lo:
1064         $(BUILDPACKAGE)
1065 bufio/check: $(CHECK_DEPS)
1066         @$(CHECK)
1067 .PHONY: bufio/check
1069 @go_include@ bytes.lo.dep
1070 bytes.lo.dep: $(srcdir)/go/bytes/*.go
1071         $(BUILDDEPS)
1072 bytes.lo:
1073         $(BUILDPACKAGE)
1074 bytes/index.lo: go/bytes/indexbyte.c runtime.inc
1075         @$(MKDIR_P) bytes
1076         $(LTCOMPILE) -c -o bytes/index.lo $(srcdir)/go/bytes/indexbyte.c
1077 bytes/check: $(CHECK_DEPS)
1078         @$(CHECK)
1079 .PHONY: bytes/check
1081 @go_include@ context.lo.dep
1082 context.lo.dep: $(srcdir)/go/context/*.go
1083         $(BUILDDEPS)
1084 context.lo:
1085         $(BUILDPACKAGE)
1086 context/check: $(CHECK_DEPS)
1087         @$(CHECK)
1088 .PHONY: context/check
1090 @go_include@ crypto.lo.dep
1091 crypto.lo.dep: $(srcdir)/go/crypto/*.go
1092         $(BUILDDEPS)
1093 crypto.lo:
1094         $(BUILDPACKAGE)
1095 crypto/check: $(CHECK_DEPS)
1096         @$(CHECK)
1097 .PHONY: crypto/check
1099 @go_include@ encoding.lo.dep
1100 encoding.lo.dep: $(srcdir)/go/encoding/*.go
1101         $(BUILDDEPS)
1102 encoding.lo:
1103         $(BUILDPACKAGE)
1104 encoding/check: $(CHECK_DEPS)
1105         @$(CHECK)
1106 .PHONY: encoding/check
1108 @go_include@ errors.lo.dep
1109 errors.lo.dep: $(srcdir)/go/errors/*.go
1110         $(BUILDDEPS)
1111 errors.lo:
1112         $(BUILDPACKAGE)
1113 errors/check: $(CHECK_DEPS)
1114         @$(CHECK)
1115 .PHONY: errors/check
1117 @go_include@ expvar.lo.dep
1118 expvar.lo.dep: $(srcdir)/go/expvar/*.go
1119         $(BUILDDEPS)
1120 expvar.lo:
1121         $(BUILDPACKAGE)
1122 expvar/check: $(CHECK_DEPS)
1123         @$(CHECK)
1124 .PHONY: expvar/check
1126 @go_include@ flag.lo.dep
1127 flag.lo.dep: $(srcdir)/go/flag/*.go
1128         $(BUILDDEPS)
1129 flag.lo:
1130         $(BUILDPACKAGE)
1131 flag/check: $(CHECK_DEPS)
1132         @$(CHECK)
1133 .PHONY: flag/check
1135 @go_include@ fmt.lo.dep
1136 fmt.lo.dep: $(srcdir)/go/fmt/*.go
1137         $(BUILDDEPS)
1138 fmt.lo:
1139         $(BUILDPACKAGE)
1140 fmt/check: $(CHECK_DEPS)
1141         @$(CHECK)
1142 .PHONY: fmt/check
1144 @go_include@ hash.lo.dep
1145 hash.lo.dep: $(srcdir)/go/hash/*.go
1146         $(BUILDDEPS)
1147 hash.lo:
1148         $(BUILDPACKAGE)
1149 hash/check: $(CHECK_DEPS)
1150         @$(CHECK)
1151 .PHONY: hash/check
1153 @go_include@ html.lo.dep
1154 html.lo.dep: $(srcdir)/go/html/*.go
1155         $(BUILDDEPS)
1156 html.lo:
1157         $(BUILDPACKAGE)
1158 html/check: $(CHECK_DEPS)
1159         @$(CHECK)
1160 .PHONY: html/check
1162 @go_include@ image.lo.dep
1163 image.lo.dep: $(srcdir)/go/image/*.go
1164         $(BUILDDEPS)
1165 image.lo:
1166         $(BUILDPACKAGE)
1167 image/check: $(CHECK_DEPS)
1168         @$(CHECK)
1169 .PHONY: image/check
1171 @go_include@ io.lo.dep
1172 io.lo.dep: $(srcdir)/go/io/*.go
1173         $(BUILDDEPS)
1174 io.lo:
1175         $(BUILDPACKAGE)
1176 io/check: $(CHECK_DEPS)
1177         @$(CHECK)
1178 .PHONY: io/check
1180 @go_include@ log.lo.dep
1181 log.lo.dep: $(srcdir)/go/log/*.go
1182         $(BUILDDEPS)
1183 log.lo:
1184         $(BUILDPACKAGE)
1185 log/check: $(CHECK_DEPS)
1186         @$(CHECK)
1187 .PHONY: log/check
1189 @go_include@ math.lo.dep
1190 math.lo.dep: $(srcdir)/go/math/*.go
1191         $(BUILDDEPS)
1192 math.lo:
1193         $(MKDIR_P) $(@D)
1194         files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
1195         $(LTGOCOMPILE) $(MATH_FLAG) -I . -c -fgo-pkgpath=math -o $@ $$files
1196 math/check: $(CHECK_DEPS)
1197         @$(CHECK)
1198 .PHONY: math/check
1200 @go_include@ mime.lo.dep
1201 mime.lo.dep: $(srcdir)/go/mime/*.go
1202         $(BUILDDEPS)
1203 mime.lo:
1204         $(BUILDPACKAGE)
1205 mime/check: $(CHECK_DEPS)
1206         @$(CHECK)
1207 .PHONY: mime/check
1209 @go_include@ net.lo.dep
1210 net.lo.dep: $(srcdir)/go/net/*.go
1211         $(BUILDDEPS)
1212 net.lo:
1213         $(BUILDPACKAGE)
1214 net/check: $(CHECK_DEPS)
1215         @$(CHECK)
1216 .PHONY: net/check
1218 @go_include@ netgo.o.dep
1219 netgo.o.dep: $(srcdir)/go/net/*.go
1220         $(BUILDNETGODEPS)
1221 netgo.o: netgo.o.dep
1222         $(BUILDNETGO)
1224 if LIBGO_IS_SOLARIS
1225 if HAVE_STAT_TIMESPEC
1226 matchargs_os = --tag=solaristag
1227 else
1228 matchargs_os =
1229 endif
1230 else
1231 matchargs_os =
1232 endif
1234 @go_include@ os.lo.dep
1235 os.lo.dep: $(srcdir)/go/os/*.go
1236         $(BUILDDEPS)
1237 os.lo:
1238         $(BUILDPACKAGE)
1239 os/check: $(CHECK_DEPS)
1240         @$(CHECK)
1241 .PHONY: os/check
1243 @go_include@ path.lo.dep
1244 path.lo.dep: $(srcdir)/go/path/*.go
1245         $(BUILDDEPS)
1246 path.lo:
1247         $(BUILDPACKAGE)
1248 path/check: $(CHECK_DEPS)
1249         @$(CHECK)
1250 .PHONY: path/check
1252 @go_include@ reflect-go.lo.dep
1253 reflect-go.lo.dep: $(srcdir)/go/reflect/*.go
1254         $(BUILDDEPS)
1255 reflect-go.lo:
1256         $(BUILDPACKAGE)
1257 reflect/check: $(CHECK_DEPS)
1258         @$(CHECK)
1259 reflect/makefunc_ffi_c.lo: go/reflect/makefunc_ffi_c.c runtime.inc
1260         @$(MKDIR_P) reflect
1261         $(LTCOMPILE) -c -o $@ $<
1262 .PHONY: reflect/check
1264 @go_include@ regexp.lo.dep
1265 regexp.lo.dep: $(srcdir)/go/regexp/*.go
1266         $(BUILDDEPS)
1267 regexp.lo:
1268         $(BUILDPACKAGE)
1269 regexp/check: $(CHECK_DEPS)
1270         @$(CHECK)
1271 .PHONY: regexp/check
1273 extra_go_files_runtime = runtime_sysinfo.go
1275 @go_include@ runtime-go.lo.dep
1276 runtime-go.lo.dep: $(srcdir)/go/runtime/*.go $(extra_go_files_runtime)
1277         $(BUILDDEPS)
1278 runtime_go_lo_GOCFLAGS = -fgo-c-header=runtime.inc.tmp -fgo-compiling-runtime
1279 runtime-go.lo:
1280         $(BUILDPACKAGE)
1281 runtime.inc: s-runtime-inc; @true
1282 s-runtime-inc: runtime-go.lo Makefile
1283         rm -f runtime.inc.tmp2
1284         grep -v "#define _" runtime.inc.tmp > runtime.inc.tmp2
1285         for pattern in '_G[a-z]' '_P[a-z]' _Max _Lock _Sig _Trace _MHeap _Num; do \
1286           grep "#define $$pattern" runtime.inc.tmp >> runtime.inc.tmp2; \
1287         done
1288         $(SHELL) $(srcdir)/mvifdiff.sh runtime.inc.tmp2 runtime.inc
1289         $(STAMP) $@
1290 runtime_check_GOCFLAGS = -fgo-compiling-runtime
1291 runtime/check: $(CHECK_DEPS)
1292         @$(CHECK)
1293 .PHONY: runtime/check
1295 @go_include@ sort.lo.dep
1296 sort.lo.dep: $(srcdir)/go/sort/*.go
1297         $(BUILDDEPS)
1298 sort.lo:
1299         $(BUILDPACKAGE)
1300 sort/check: $(CHECK_DEPS)
1301         @$(CHECK)
1302 .PHONY: sort/check
1304 @go_include@ strconv.lo.dep
1305 strconv.lo.dep: $(srcdir)/go/strconv/*.go
1306         $(BUILDDEPS)
1307 strconv.lo:
1308         $(BUILDPACKAGE)
1309 strconv/check: $(CHECK_DEPS)
1310         @$(CHECK)
1311 .PHONY: strconv/check
1313 @go_include@ strings.lo.dep
1314 strings.lo.dep: $(srcdir)/go/strings/*.go
1315         $(BUILDDEPS)
1316 strings.lo:
1317         $(BUILDPACKAGE)
1318 strings/index.lo: go/strings/indexbyte.c runtime.inc
1319         @$(MKDIR_P) strings
1320         $(LTCOMPILE) -c -o strings/index.lo $(srcdir)/go/strings/indexbyte.c
1321 strings/check: $(CHECK_DEPS)
1322         @$(CHECK)
1323 .PHONY: strings/check
1325 @go_include@ sync.lo.dep
1326 sync.lo.dep: $(srcdir)/go/sync/*.go
1327         $(BUILDDEPS)
1328 sync.lo:
1329         $(BUILDPACKAGE)
1330 sync/check: $(CHECK_DEPS)
1331         @$(CHECK)
1332 .PHONY: sync/check
1334 @go_include@ testing.lo.dep
1335 testing.lo.dep: $(srcdir)/go/testing/*.go
1336         $(BUILDDEPS)
1337 testing.lo:
1338         $(BUILDPACKAGE)
1339 testing/check: $(CHECK_DEPS)
1340         @$(CHECK)
1341 .PHONY: testing/check
1343 @go_include@ time-go.lo.dep
1344 time-go.lo.dep: $(srcdir)/go/time/*.go
1345         $(BUILDDEPS)
1346 time-go.lo:
1347         $(BUILDPACKAGE)
1348 time/check: $(CHECK_DEPS)
1349         @$(CHECK)
1350 .PHONY: time/check
1352 @go_include@ unicode.lo.dep
1353 unicode.lo.dep: $(srcdir)/go/unicode/*.go
1354         $(BUILDDEPS)
1355 unicode.lo:
1356         $(BUILDPACKAGE)
1357 unicode/check: $(CHECK_DEPS)
1358         @$(CHECK)
1359 .PHONY: unicode/check
1361 @go_include@ archive/tar.lo.dep
1362 archive/tar.lo.dep: $(srcdir)/go/archive/tar/*.go
1363         $(BUILDDEPS)
1364 archive/tar.lo:
1365         $(BUILDPACKAGE)
1366 archive/tar/check: $(CHECK_DEPS)
1367         @$(CHECK)
1368 .PHONY: archive/tar/check
1370 @go_include@ archive/zip.lo.dep
1371 archive/zip.lo.dep: $(srcdir)/go/archive/zip/*.go
1372         $(BUILDDEPS)
1373 archive/zip.lo:
1374         $(BUILDPACKAGE)
1375 archive/zip/check: $(CHECK_DEPS)
1376         @$(CHECK)
1377 .PHONY: archive/zip/check
1379 @go_include@ compress/bzip2.lo.dep
1380 compress/bzip2.lo.dep: $(srcdir)/go/compress/bzip2/*.go
1381         $(BUILDDEPS)
1382 compress/bzip2.lo:
1383         $(BUILDPACKAGE)
1384 compress/bzip2/check: $(CHECK_DEPS)
1385         @$(CHECK)
1386 .PHONY: compress/bzip2/check
1388 @go_include@ compress/flate.lo.dep
1389 compress/flate.lo.dep: $(srcdir)/go/compress/flate/*.go
1390         $(BUILDDEPS)
1391 compress/flate.lo:
1392         $(BUILDPACKAGE)
1393 compress/flate/check: $(CHECK_DEPS)
1394         @$(CHECK)
1395 .PHONY: compress/flate/check
1397 @go_include@ compress/gzip.lo.dep
1398 compress/gzip.lo.dep: $(srcdir)/go/compress/gzip/*.go
1399         $(BUILDDEPS)
1400 compress/gzip.lo:
1401         $(BUILDPACKAGE)
1402 compress/gzip/check: $(CHECK_DEPS)
1403         @$(CHECK)
1404 .PHONY: compress/gzip/check
1406 @go_include@ compress/lzw.lo.dep
1407 compress/lzw.lo.dep: $(srcdir)/go/compress/lzw/*.go
1408         $(BUILDDEPS)
1409 compress/lzw.lo:
1410         $(BUILDPACKAGE)
1411 compress/lzw/check: $(CHECK_DEPS)
1412         @$(CHECK)
1413 .PHONY: compress/lzw/check
1415 @go_include@ compress/zlib.lo.dep
1416 compress/zlib.lo.dep: $(srcdir)/go/compress/zlib/*.go
1417         $(BUILDDEPS)
1418 compress/zlib.lo:
1419         $(BUILDPACKAGE)
1420 compress/zlib/check: $(CHECK_DEPS)
1421         @$(CHECK)
1422 .PHONY: compress/zlib/check
1424 @go_include@ container/heap.lo.dep
1425 container/heap.lo.dep: $(srcdir)/go/container/heap/*.go
1426         $(BUILDDEPS)
1427 container/heap.lo:
1428         $(BUILDPACKAGE)
1429 container/heap/check: $(CHECK_DEPS)
1430         @$(CHECK)
1431 .PHONY: container/heap/check
1433 @go_include@ container/list.lo.dep
1434 container/list.lo.dep: $(srcdir)/go/container/list/*.go
1435         $(BUILDDEPS)
1436 container/list.lo:
1437         $(BUILDPACKAGE)
1438 container/list/check: $(CHECK_DEPS)
1439         @$(CHECK)
1440 .PHONY: container/list/check
1442 @go_include@ container/ring.lo.dep
1443 container/ring.lo.dep: $(srcdir)/go/container/ring/*.go
1444         $(BUILDDEPS)
1445 container/ring.lo:
1446         $(BUILDPACKAGE)
1447 container/ring/check: $(CHECK_DEPS)
1448         @$(CHECK)
1449 .PHONY: container/ring/check
1451 @go_include@ crypto/aes.lo.dep
1452 crypto/aes.lo.dep: $(srcdir)/go/crypto/aes/*.go
1453         $(BUILDDEPS)
1454 crypto/aes.lo:
1455         $(BUILDPACKAGE)
1456 crypto/aes/check: $(CHECK_DEPS)
1457         @$(CHECK)
1458 .PHONY: crypto/aes/check
1460 @go_include@ crypto/cipher.lo.dep
1461 crypto/cipher.lo.dep: $(srcdir)/go/crypto/cipher/*.go
1462         $(BUILDDEPS)
1463 crypto/cipher.lo:
1464         $(BUILDPACKAGE)
1465 crypto/cipher/check: $(CHECK_DEPS)
1466         @$(CHECK)
1467 .PHONY: crypto/cipher/check
1469 @go_include@ crypto/des.lo.dep
1470 crypto/des.lo.dep: $(srcdir)/go/crypto/des/*.go
1471         $(BUILDDEPS)
1472 crypto/des.lo:
1473         $(BUILDPACKAGE)
1474 crypto/des/check: $(CHECK_DEPS)
1475         @$(CHECK)
1476 .PHONY: crypto/des/check
1478 @go_include@ crypto/dsa.lo.dep
1479 crypto/dsa.lo.dep: $(srcdir)/go/crypto/dsa/*.go
1480         $(BUILDDEPS)
1481 crypto/dsa.lo:
1482         $(BUILDPACKAGE)
1483 crypto/dsa/check: $(CHECK_DEPS)
1484         @$(CHECK)
1485 .PHONY: crypto/dsa/check
1487 @go_include@ crypto/ecdsa.lo.dep
1488 crypto/ecdsa.lo.dep: $(srcdir)/go/crypto/ecdsa/*.go
1489         $(BUILDDEPS)
1490 crypto/ecdsa.lo:
1491         $(BUILDPACKAGE)
1492 crypto/ecdsa/check: $(CHECK_DEPS)
1493         @$(CHECK)
1494 .PHONY: crypto/ecdsa/check
1496 @go_include@ crypto/elliptic.lo.dep
1497 crypto/elliptic.lo.dep: $(srcdir)/go/crypto/elliptic/*.go
1498         $(BUILDDEPS)
1499 crypto/elliptic.lo:
1500         $(BUILDPACKAGE)
1501 crypto/elliptic/check: $(CHECK_DEPS)
1502         @$(CHECK)
1503 .PHONY: crypto/elliptic/check
1505 @go_include@ crypto/hmac.lo.dep
1506 crypto/hmac.lo.dep: $(srcdir)/go/crypto/hmac/*.go
1507         $(BUILDDEPS)
1508 crypto/hmac.lo:
1509         $(BUILDPACKAGE)
1510 crypto/hmac/check: $(CHECK_DEPS)
1511         @$(CHECK)
1512 .PHONY: crypto/hmac/check
1514 @go_include@ crypto/md5.lo.dep
1515 crypto/md5.lo.dep: $(srcdir)/go/crypto/md5/*.go
1516         $(BUILDDEPS)
1517 crypto/md5.lo:
1518         $(BUILDPACKAGE)
1519 crypto/md5/check: $(CHECK_DEPS)
1520         @$(CHECK)
1521 .PHONY: crypto/md5/check
1523 @go_include@ crypto/rand.lo.dep
1524 crypto/rand.lo.dep: $(srcdir)/go/crypto/rand/*.go
1525         $(BUILDDEPS)
1526 crypto/rand.lo:
1527         $(BUILDPACKAGE)
1528 crypto/rand/check: $(CHECK_DEPS)
1529         @$(CHECK)
1530 .PHONY: crypto/rand/check
1532 @go_include@ crypto/rc4.lo.dep
1533 crypto/rc4.lo.dep: $(srcdir)/go/crypto/rc4/*.go
1534         $(BUILDDEPS)
1535 crypto/rc4.lo:
1536         $(BUILDPACKAGE)
1537 crypto/rc4/check: $(CHECK_DEPS)
1538         @$(CHECK)
1539 .PHONY: crypto/rc4/check
1541 @go_include@ crypto/rsa.lo.dep
1542 crypto/rsa.lo.dep: $(srcdir)/go/crypto/rsa/*.go
1543         $(BUILDDEPS)
1544 crypto/rsa.lo:
1545         $(BUILDPACKAGE)
1546 crypto/rsa/check: $(CHECK_DEPS)
1547         @$(CHECK)
1548 .PHONY: crypto/rsa/check
1550 @go_include@ crypto/sha1.lo.dep
1551 crypto/sha1.lo.dep: $(srcdir)/go/crypto/sha1/*.go
1552         $(BUILDDEPS)
1553 crypto/sha1.lo:
1554         $(BUILDPACKAGE)
1555 crypto/sha1/check: $(CHECK_DEPS)
1556         @$(CHECK)
1557 .PHONY: crypto/sha1/check
1559 @go_include@ crypto/sha256.lo.dep
1560 crypto/sha256.lo.dep: $(srcdir)/go/crypto/sha256/*.go
1561         $(BUILDDEPS)
1562 crypto/sha256.lo:
1563         $(BUILDPACKAGE)
1564 crypto/sha256/check: $(CHECK_DEPS)
1565         @$(CHECK)
1566 .PHONY: crypto/sha256/check
1568 @go_include@ crypto/sha512.lo.dep
1569 crypto/sha512.lo.dep: $(srcdir)/go/crypto/sha512/*.go
1570         $(BUILDDEPS)
1571 crypto/sha512.lo:
1572         $(BUILDPACKAGE)
1573 crypto/sha512/check: $(CHECK_DEPS)
1574         @$(CHECK)
1575 .PHONY: crypto/sha512/check
1577 @go_include@ crypto/subtle.lo.dep
1578 crypto/subtle.lo.dep: $(srcdir)/go/crypto/subtle/*.go
1579         $(BUILDDEPS)
1580 crypto/subtle.lo:
1581         $(BUILDPACKAGE)
1582 crypto/subtle/check: $(CHECK_DEPS)
1583         @$(CHECK)
1584 .PHONY: crypto/subtle/check
1586 @go_include@ crypto/tls.lo.dep
1587 crypto/tls.lo.dep: $(srcdir)/go/crypto/tls/*.go
1588         $(BUILDDEPS)
1589 crypto/tls.lo:
1590         $(BUILDPACKAGE)
1591 crypto/tls/check: $(CHECK_DEPS)
1592         @$(CHECK)
1593 .PHONY: crypto/tls/check
1595 @go_include@ crypto/x509.lo.dep
1596 crypto/x509.lo.dep: $(srcdir)/go/crypto/x509/*.go
1597         $(BUILDDEPS)
1598 crypto/x509.lo:
1599         $(BUILDPACKAGE)
1600 crypto/x509/check: $(CHECK_DEPS)
1601         @$(CHECK)
1602 .PHONY: crypto/x509/check
1604 @go_include@ crypto/x509/pkix.lo.dep
1605 crypto/x509/pkix.lo.dep: $(srcdir)/go/crypto/x509/pkix/*.go
1606         $(BUILDDEPS)
1607 crypto/x509/pkix.lo:
1608         $(BUILDPACKAGE)
1609 crypto/x509/pkix/check: $(CHECK_DEPS)
1610         @$(CHECK)
1611 .PHONY: crypto/x509/pkix/check
1613 @go_include@ database/sql.lo.dep
1614 database/sql.lo.dep: $(srcdir)/go/database/sql/*.go
1615         $(BUILDDEPS)
1616 database/sql.lo:
1617         $(BUILDPACKAGE)
1618 database/sql/check: $(CHECK_DEPS)
1619         @$(CHECK)
1620 .PHONY: database/sql/check
1622 @go_include@ database/sql/driver.lo.dep
1623 database/sql/driver.lo.dep: $(srcdir)/go/database/sql/driver/*.go
1624         $(BUILDDEPS)
1625 database/sql/driver.lo:
1626         $(BUILDPACKAGE)
1627 database/sql/driver/check: $(CHECK_DEPS)
1628         @$(CHECK)
1629 .PHONY: database/sql/driver/check
1631 @go_include@ debug/dwarf.lo.dep
1632 debug/dwarf.lo.dep: $(srcdir)/go/debug/dwarf/*.go
1633         $(BUILDDEPS)
1634 debug/dwarf.lo:
1635         $(BUILDPACKAGE)
1636 debug/dwarf/check: $(CHECK_DEPS)
1637         @$(CHECK)
1638 .PHONY: debug/dwarf/check
1640 @go_include@ debug/elf.lo.dep
1641 debug/elf.lo.dep: $(srcdir)/go/debug/elf/*.go
1642         $(BUILDDEPS)
1643 debug/elf.lo:
1644         $(BUILDPACKAGE)
1645 debug/elf/check: $(CHECK_DEPS)
1646         @$(CHECK)
1647 .PHONY: debug/elf/check
1649 @go_include@ debug/gosym.lo.dep
1650 debug/gosym.lo.dep: $(srcdir)/go/debug/gosym/*.go
1651         $(BUILDDEPS)
1652 debug/gosym.lo:
1653         $(BUILDPACKAGE)
1654 debug/gosym/check: $(CHECK_DEPS)
1655         @$(CHECK)
1656 .PHONY: debug/gosym/check
1658 @go_include@ debug/macho.lo.dep
1659 debug/macho.lo.dep: $(srcdir)/go/debug/macho/*.go
1660         $(BUILDDEPS)
1661 debug/macho.lo:
1662         $(BUILDPACKAGE)
1663 debug/macho/check: $(CHECK_DEPS)
1664         @$(CHECK)
1665 .PHONY: debug/macho/check
1667 @go_include@ debug/pe.lo.dep
1668 debug/pe.lo.dep: $(srcdir)/go/debug/pe/*.go
1669         $(BUILDDEPS)
1670 debug/pe.lo:
1671         $(BUILDPACKAGE)
1672 debug/pe/check: $(CHECK_DEPS)
1673         @$(CHECK)
1674 .PHONY: debug/pe/check
1676 @go_include@ debug/plan9obj.lo.dep
1677 debug/plan9obj.lo.dep: $(srcdir)/go/debug/plan9obj/*.go
1678         $(BUILDDEPS)
1679 debug/plan9obj.lo:
1680         $(BUILDPACKAGE)
1681 debug/plan9obj/check: $(CHECK_DEPS)
1682         @$(CHECK)
1683 .PHONY: debug/plan9obj/check
1685 @go_include@ encoding/asn1.lo.dep
1686 encoding/asn1.lo.dep: $(srcdir)/go/encoding/asn1/*.go
1687         $(BUILDDEPS)
1688 encoding/asn1.lo:
1689         $(BUILDPACKAGE)
1690 encoding/asn1/check: $(CHECK_DEPS)
1691         @$(CHECK)
1692 .PHONY: encoding/asn1/check
1694 @go_include@ encoding/ascii85.lo.dep
1695 encoding/ascii85.lo.dep: $(srcdir)/go/encoding/ascii85/*.go
1696         $(BUILDDEPS)
1697 encoding/ascii85.lo:
1698         $(BUILDPACKAGE)
1699 encoding/ascii85/check: $(CHECK_DEPS)
1700         @$(CHECK)
1701 .PHONY: encoding/ascii85/check
1703 @go_include@ encoding/base32.lo.dep
1704 encoding/base32.lo.dep: $(srcdir)/go/encoding/base32/*.go
1705         $(BUILDDEPS)
1706 encoding/base32.lo:
1707         $(BUILDPACKAGE)
1708 encoding/base32/check: $(CHECK_DEPS)
1709         @$(CHECK)
1710 .PHONY: encoding/base32/check
1712 @go_include@ encoding/base64.lo.dep
1713 encoding/base64.lo.dep: $(srcdir)/go/encoding/base64/*.go
1714         $(BUILDDEPS)
1715 encoding/base64.lo:
1716         $(BUILDPACKAGE)
1717 encoding/base64/check: $(CHECK_DEPS)
1718         @$(CHECK)
1719 .PHONY: encoding/base64/check
1721 @go_include@ encoding/binary.lo.dep
1722 encoding/binary.lo.dep: $(srcdir)/go/encoding/binary/*.go
1723         $(BUILDDEPS)
1724 encoding/binary.lo:
1725         $(BUILDPACKAGE)
1726 encoding/binary/check: $(CHECK_DEPS)
1727         @$(CHECK)
1728 .PHONY: encoding/binary/check
1730 @go_include@ encoding/csv.lo.dep
1731 encoding/csv.lo.dep: $(srcdir)/go/encoding/csv/*.go
1732         $(BUILDDEPS)
1733 encoding/csv.lo:
1734         $(BUILDPACKAGE)
1735 encoding/csv/check: $(CHECK_DEPS)
1736         @$(CHECK)
1737 .PHONY: encoding/csv/check
1739 @go_include@ encoding/gob.lo.dep
1740 encoding/gob.lo.dep: $(srcdir)/go/encoding/gob/*.go
1741         $(BUILDDEPS)
1742 encoding/gob.lo:
1743         $(BUILDPACKAGE)
1744 encoding/gob/check: $(CHECK_DEPS)
1745         @$(CHECK)
1746 .PHONY: encoding/gob/check
1748 @go_include@ encoding/hex.lo.dep
1749 encoding/hex.lo.dep: $(srcdir)/go/encoding/hex/*.go
1750         $(BUILDDEPS)
1751 encoding/hex.lo:
1752         $(BUILDPACKAGE)
1753 encoding/hex/check: $(CHECK_DEPS)
1754         @$(CHECK)
1755 .PHONY: encoding/hex/check
1757 @go_include@ encoding/json.lo.dep
1758 encoding/json.lo.dep: $(srcdir)/go/encoding/json/*.go
1759         $(BUILDDEPS)
1760 encoding/json.lo:
1761         $(BUILDPACKAGE)
1762 encoding/json/check: $(CHECK_DEPS)
1763         @$(CHECK)
1764 .PHONY: encoding/json/check
1766 @go_include@ encoding/pem.lo.dep
1767 encoding/pem.lo.dep: $(srcdir)/go/encoding/pem/*.go
1768         $(BUILDDEPS)
1769 encoding/pem.lo:
1770         $(BUILDPACKAGE)
1771 encoding/pem/check: $(CHECK_DEPS)
1772         @$(CHECK)
1773 .PHONY: encoding/pem/check
1775 @go_include@ encoding/xml.lo.dep
1776 encoding/xml.lo.dep: $(srcdir)/go/encoding/xml/*.go
1777         $(BUILDDEPS)
1778 encoding/xml.lo:
1779         $(BUILDPACKAGE)
1780 encoding/xml/check: $(CHECK_DEPS)
1781         @$(CHECK)
1782 .PHONY: encoding/xml/check
1784 @go_include@ exp/proxy.lo.dep
1785 exp/proxy.lo.dep: $(srcdir)/go/exp/proxy/*.go
1786         $(BUILDDEPS)
1787 exp/proxy.lo:
1788         $(BUILDPACKAGE)
1789 exp/proxy/check: $(CHECK_DEPS)
1790         @$(CHECK)
1791 .PHONY: exp/proxy/check
1793 @go_include@ exp/terminal.lo.dep
1794 exp/terminal.lo.dep: $(srcdir)/go/exp/terminal/*.go
1795         $(BUILDDEPS)
1796 exp/terminal.lo:
1797         $(BUILDPACKAGE)
1798 exp/terminal/check: $(CHECK_DEPS)
1799         @$(CHECK)
1800 .PHONY: exp/terminal/check
1802 @go_include@ html/template.lo.dep
1803 html/template.lo.dep: $(srcdir)/go/html/template/*.go
1804         $(BUILDDEPS)
1805 html/template.lo:
1806         $(BUILDPACKAGE)
1807 html/template/check: $(CHECK_DEPS)
1808         @$(CHECK)
1809 .PHONY: html/template/check
1811 @go_include@ go/ast.lo.dep
1812 go/ast.lo.dep: $(srcdir)/go/go/ast/*.go
1813         $(BUILDDEPS)
1814 go/ast.lo:
1815         $(BUILDPACKAGE)
1816 go/ast/check: $(CHECK_DEPS)
1817         @$(CHECK)
1818 .PHONY: go/ast/check
1820 @go_include@ go/build.lo.dep
1821 go/build.lo.dep: $(srcdir)/go/go/build/*.go
1822         $(BUILDDEPS)
1823 go/build.lo:
1824         $(BUILDPACKAGE)
1825 go/build/check: $(CHECK_DEPS)
1826         @$(CHECK)
1827 .PHONY: go/build/check
1829 @go_include@ go/constant.lo.dep
1830 go/constant.lo.dep: $(srcdir)/go/go/constant/*.go
1831         $(BUILDDEPS)
1832 go/constant.lo:
1833         $(BUILDPACKAGE)
1834 go/constant/check: $(CHECK_DEPS)
1835         @$(CHECK)
1836 .PHONY: go/constant/check
1838 @go_include@ go/doc.lo.dep
1839 go/doc.lo.dep: $(srcdir)/go/go/doc/*.go
1840         $(BUILDDEPS)
1841 go/doc.lo:
1842         $(BUILDPACKAGE)
1843 go/doc/check: $(CHECK_DEPS)
1844         @$(CHECK)
1845 .PHONY: go/doc/check
1847 @go_include@ go/format.lo.dep
1848 go/format.lo.dep: $(srcdir)/go/go/format/*.go
1849         $(BUILDDEPS)
1850 go/format.lo:
1851         $(BUILDPACKAGE)
1852 go/format/check: $(CHECK_DEPS)
1853         @$(CHECK)
1854 .PHONY: go/format/check
1856 @go_include@ go/importer.lo.dep
1857 go/importer.lo.dep: $(srcdir)/go/go/importer/*.go
1858         $(BUILDDEPS)
1859 go/importer.lo:
1860         $(BUILDPACKAGE)
1861 go/importer/check: $(CHECK_DEPS)
1862         @$(CHECK)
1863 .PHONY: go/importer/check
1865 @go_include@ go/parser.lo.dep
1866 go/parser.lo.dep: $(srcdir)/go/go/parser/*.go
1867         $(BUILDDEPS)
1868 go/parser.lo:
1869         $(BUILDPACKAGE)
1870 go/parser/check: $(CHECK_DEPS)
1871         @$(CHECK)
1872 .PHONY: go/parser/check
1874 @go_include@ go/printer.lo.dep
1875 go/printer.lo.dep: $(srcdir)/go/go/printer/*.go
1876         $(BUILDDEPS)
1877 go/printer.lo:
1878         $(BUILDPACKAGE)
1879 go/printer/check: $(CHECK_DEPS)
1880         @$(CHECK)
1881 .PHONY: go/printer/check
1883 @go_include@ go/scanner.lo.dep
1884 go/scanner.lo.dep: $(srcdir)/go/go/scanner/*.go
1885         $(BUILDDEPS)
1886 go/scanner.lo:
1887         $(BUILDPACKAGE)
1888 go/scanner/check: $(CHECK_DEPS)
1889         @$(CHECK)
1890 .PHONY: go/scanner/check
1892 @go_include@ go/token.lo.dep
1893 go/token.lo.dep: $(srcdir)/go/go/token/*.go
1894         $(BUILDDEPS)
1895 go/token.lo:
1896         $(BUILDPACKAGE)
1897 go/token/check: $(CHECK_DEPS)
1898         @$(CHECK)
1899 .PHONY: go/token/check
1901 @go_include@ go/types.lo.dep
1902 go/types.lo.dep: $(srcdir)/go/go/types/*.go
1903         $(BUILDDEPS)
1904 go/types.lo:
1905         $(BUILDPACKAGE)
1906 go/types/check: $(CHECK_DEPS)
1907         @$(CHECK)
1908 .PHONY: go/types/check
1910 @go_include@ go/internal/gcimporter.lo.dep
1911 go/internal/gcimporter.lo.dep: $(srcdir)/go/go/internal/gcimporter/*.go
1912         $(BUILDDEPS)
1913 go/internal/gcimporter.lo:
1914         $(BUILDPACKAGE)
1915 go/internal/gcimporter/check: $(CHECK_DEPS)
1916         @$(CHECK)
1917 .PHONY: go/internal/gcimporter/check
1919 @go_include@ go/internal/gccgoimporter.lo.dep
1920 go/internal/gccgoimporter.lo.dep: $(srcdir)/go/go/internal/gccgoimporter/*.go
1921         $(BUILDDEPS)
1922 go/internal/gccgoimporter.lo:
1923         $(BUILDPACKAGE)
1924 go/internal/gccgoimporter/check: $(CHECK_DEPS)
1925         @$(CHECK)
1926 .PHONY: go/internal/gccgoimporter/check
1928 @go_include@ golang_org/x/net/http2/hpack.lo.dep
1929 golang_org/x/net/http2/hpack.lo.dep: $(srcdir)/go/golang_org/x/net/http2/hpack/*.go
1930         $(BUILDDEPS)
1931 golang_org/x/net/http2/hpack.lo:
1932         $(BUILDPACKAGE)
1933 golang_org/x/net/http2/hpack/check: $(CHECK_DEPS)
1934         @$(CHECK)
1935 .PHONY: golang_org/x/net/http2/hpack/check
1937 @go_include@ golang_org/x/net/lex/httplex.lo.dep
1938 golang_org/x/net/lex/httplex.lo.dep: $(srcdir)/go/golang_org/x/net/lex/httplex/*.go
1939         $(BUILDDEPS)
1940 golang_org/x/net/lex/httplex.lo:
1941         $(BUILDPACKAGE)
1942 golang_org/x/net/lex/httplex/check: $(CHECK_DEPS)
1943         @$(CHECK)
1944 .PHONY: golang_org/x/net/lex/httplex/check
1946 if LIBGO_IS_BSD
1948 golang_org_x_net_route_lo = \
1949         golang_org/x/net/route/route.lo
1950 golang_org_x_net_route_check = \
1951         golang_org/x/net/route/check
1953 @go_include@ golang_org/x/net/route.lo.dep
1954 golang_org/x/net/route.lo.dep: $(srcdir)/go/golang_org/x/net/route/*.go
1955         $(BUILDDEPS)
1956 golang_org/x/net/route.lo:
1957         $(BUILDPACKAGE)
1958 golang_org/x/net/route/check: $(CHECK_DEPS)
1959         @$(CHECK)
1961 endif
1963 .PHONY: golang_org/x/net/route/check
1965 @go_include@ hash/adler32.lo.dep
1966 hash/adler32.lo.dep: $(srcdir)/go/hash/adler32/*.go
1967         $(BUILDDEPS)
1968 hash/adler32.lo:
1969         $(BUILDPACKAGE)
1970 hash/adler32/check: $(CHECK_DEPS)
1971         @$(CHECK)
1972 .PHONY: hash/adler32/check
1974 @go_include@ hash/crc32.lo.dep
1975 hash/crc32.lo.dep: $(srcdir)/go/hash/crc32/*.go
1976         $(BUILDDEPS)
1977 hash/crc32.lo:
1978         $(BUILDPACKAGE)
1979 hash/crc32/check: $(CHECK_DEPS)
1980         @$(CHECK)
1981 .PHONY: hash/crc32/check
1983 @go_include@ hash/crc64.lo.dep
1984 hash/crc64.lo.dep: $(srcdir)/go/hash/crc64/*.go
1985         $(BUILDDEPS)
1986 hash/crc64.lo:
1987         $(BUILDPACKAGE)
1988 hash/crc64/check: $(CHECK_DEPS)
1989         @$(CHECK)
1990 .PHONY: hash/crc64/check
1992 @go_include@ hash/fnv.lo.dep
1993 hash/fnv.lo.dep: $(srcdir)/go/hash/fnv/*.go
1994         $(BUILDDEPS)
1995 hash/fnv.lo:
1996         $(BUILDPACKAGE)
1997 hash/fnv/check: $(CHECK_DEPS)
1998         @$(CHECK)
1999 .PHONY: hash/fnv/check
2001 @go_include@ image/color.lo.dep
2002 image/color.lo.dep: $(srcdir)/go/image/color/*.go
2003         $(BUILDDEPS)
2004 image/color.lo:
2005         $(BUILDPACKAGE)
2006 image/color/check: $(CHECK_DEPS)
2007         @$(CHECK)
2008 .PHONY: image/color/check
2010 @go_include@ image/color/palette.lo.dep
2011 image/color/palette.lo.dep: $(srcdir)/go/image/color/palette/*.go
2012         $(BUILDDEPS)
2013 image/color/palette.lo:
2014         $(BUILDPACKAGE)
2015 image/color/palette/check: $(CHECK_DEPS)
2016         @$(CHECK)
2017 .PHONY: image/color/palette/check
2019 @go_include@ image/draw.lo.dep
2020 image/draw.lo.dep: $(srcdir)/go/image/draw/*.go
2021         $(BUILDDEPS)
2022 image/draw.lo:
2023         $(BUILDPACKAGE)
2024 image/draw/check: $(CHECK_DEPS)
2025         @$(CHECK)
2026 .PHONY: image/draw/check
2028 @go_include@ image/gif.lo.dep
2029 image/gif.lo.dep: $(srcdir)/go/image/gif/*.go
2030         $(BUILDDEPS)
2031 image/gif.lo:
2032         $(BUILDPACKAGE)
2033 image/gif/check: $(CHECK_DEPS)
2034         @$(CHECK)
2035 .PHONY: image/gif/check
2037 @go_include@ image/internal/imageutil.lo.dep
2038 image/internal/imageutil.lo.dep: $(srcdir)/go/image/internal/imageutil/*.go
2039         $(BUILDDEPS)
2040 image/internal/imageutil.lo:
2041         $(BUILDPACKAGE)
2042 image/internal/imageutil/check: $(CHECK_DEPS)
2043         @$(CHECK)
2044 .PHONY: image/internal/imageutil/check
2046 @go_include@ image/jpeg.lo.dep
2047 image/jpeg.lo.dep: $(srcdir)/go/image/jpeg/*.go
2048         $(BUILDDEPS)
2049 image/jpeg.lo:
2050         $(BUILDPACKAGE)
2051 image/jpeg/check: $(CHECK_DEPS)
2052         @$(CHECK)
2053 .PHONY: image/jpeg/check
2055 @go_include@ image/png.lo.dep
2056 image/png.lo.dep: $(srcdir)/go/image/png/*.go
2057         $(BUILDDEPS)
2058 image/png.lo:
2059         $(BUILDPACKAGE)
2060 image/png/check: $(CHECK_DEPS)
2061         @$(CHECK)
2062 .PHONY: image/png/check
2064 @go_include@ index/suffixarray.lo.dep
2065 index/suffixarray.lo.dep: $(srcdir)/go/index/suffixarray/*.go
2066         $(BUILDDEPS)
2067 index/suffixarray.lo:
2068         $(BUILDPACKAGE)
2069 index/suffixarray/check: $(CHECK_DEPS)
2070         @$(CHECK)
2071 .PHONY: index/suffixarray/check
2073 @go_include@ internal/nettrace.lo.dep
2074 internal/nettrace.lo.dep: $(srcdir)/go/internal/nettrace/*.go
2075         $(BUILDDEPS)
2076 internal/nettrace.lo:
2077         $(BUILDPACKAGE)
2078 internal/nettrace/check: $(CHECK_DEPS)
2079         @$(CHECK)
2080 .PHONY: internal/nettrace/check
2082 @go_include@ internal/race.lo.dep
2083 internal/race.lo.dep: $(srcdir)/go/internal/race/*.go
2084         $(BUILDDEPS)
2085 internal/race.lo:
2086         $(BUILDPACKAGE)
2087 internal/race/check: $(CHECK_DEPS)
2088         @$(CHECK)
2089 .PHONY: internal/race/check
2091 @go_include@ internal/singleflight.lo.dep
2092 internal/singleflight.lo.dep: $(srcdir)/go/internal/singleflight/*.go
2093         $(BUILDDEPS)
2094 internal/singleflight.lo:
2095         $(BUILDPACKAGE)
2096 internal/singleflight/check: $(CHECK_DEPS)
2097         @$(CHECK)
2098 .PHONY: internal/singleflight/check
2100 @go_include@ internal/syscall/unix.lo.dep
2101 internal/syscall/unix.lo.dep: $(srcdir)/go/internal/syscall/unix/*.go
2102         $(BUILDDEPS)
2103 internal/syscall/unix.lo:
2104         $(BUILDPACKAGE)
2105 internal/syscall/unix/check: $(CHECK_DEPS)
2106         @$(CHECK)
2107 .PHONY: internal/syscall/unix/check
2109 @go_include@ internal/testenv.lo.dep
2110 internal/testenv.lo.dep: $(srcdir)/go/internal/testenv/*.go
2111         $(BUILDDEPS)
2112 internal/testenv.lo:
2113         $(BUILDPACKAGE)
2114 internal/testenv/check: $(CHECK_DEPS)
2115         @$(CHECK)
2116 .PHONY: internal/testenv/check
2118 @go_include@ internal/trace.lo.dep
2119 internal/trace.lo.dep: $(srcdir)/go/internal/trace/*.go
2120         $(BUILDDEPS)
2121 internal/trace.lo:
2122         $(BUILDPACKAGE)
2123 internal/trace/check: $(CHECK_DEPS)
2124         @$(CHECK)
2125 .PHONY: internal/trace/check
2127 @go_include@ io/ioutil.lo.dep
2128 io/ioutil.lo.dep: $(srcdir)/go/io/ioutil/*.go
2129         $(BUILDDEPS)
2130 io/ioutil.lo:
2131         $(BUILDPACKAGE)
2132 io/ioutil/check: $(CHECK_DEPS)
2133         @$(CHECK)
2134 .PHONY: io/ioutil/check
2136 @go_include@ log/syslog.lo.dep
2137 log/syslog.lo.dep: $(srcdir)/go/log/syslog/*.go
2138         $(BUILDDEPS)
2139 log/syslog.lo:
2140         $(BUILDPACKAGE)
2141 log/syslog/syslog_c.lo: go/log/syslog/syslog_c.c runtime.inc log/syslog.lo
2142         @$(MKDIR_P) log/syslog
2143         $(LTCOMPILE) -c -o $@ $(srcdir)/go/log/syslog/syslog_c.c
2144 log/syslog/check: $(CHECK_DEPS)
2145         @$(CHECK)
2146 .PHONY: log/syslog/check
2148 @go_include@ math/big.lo.dep
2149 math/big.lo.dep: $(srcdir)/go/math/big/*.go
2150         $(BUILDDEPS)
2151 math/big.lo:
2152         $(BUILDPACKAGE)
2153 math/big/check: $(CHECK_DEPS)
2154         @$(CHECK)
2155 .PHONY: math/big/check
2157 @go_include@ math/cmplx.lo.dep
2158 math/cmplx.lo.dep: $(srcdir)/go/math/cmplx/*.go
2159         $(BUILDDEPS)
2160 math/cmplx.lo:
2161         $(BUILDPACKAGE)
2162 math/cmplx/check: $(CHECK_DEPS)
2163         @$(CHECK)
2164 .PHONY: math/cmplx/check
2166 @go_include@ math/rand.lo.dep
2167 math/rand.lo.dep: $(srcdir)/go/math/rand/*.go
2168         $(BUILDDEPS)
2169 math/rand.lo:
2170         $(BUILDPACKAGE)
2171 math/rand/check: $(CHECK_DEPS)
2172         @$(CHECK)
2173 .PHONY: math/rand/check
2175 @go_include@ mime/multipart.lo.dep
2176 mime/multipart.lo.dep: $(srcdir)/go/mime/multipart/*.go
2177         $(BUILDDEPS)
2178 mime/multipart.lo:
2179         $(BUILDPACKAGE)
2180 mime/multipart/check: $(CHECK_DEPS)
2181         @$(CHECK)
2182 .PHONY: mime/multipart/check
2184 @go_include@ mime/quotedprintable.lo.dep
2185 mime/quotedprintable.lo.dep: $(srcdir)/go/mime/quotedprintable/*.go
2186         $(BUILDDEPS)
2187 mime/quotedprintable.lo:
2188         $(BUILDPACKAGE)
2189 mime/quotedprintable/check: $(CHECK_DEPS)
2190         @$(CHECK)
2191 .PHONY: mime/quotedprintable/check
2193 @go_include@ net/http.lo.dep
2194 net/http.lo.dep: $(srcdir)/go/net/http/*.go
2195         $(BUILDDEPS)
2196 net/http.lo:
2197         $(BUILDPACKAGE)
2198 net/http/check: $(CHECK_DEPS)
2199         @$(CHECK)
2200 .PHONY: net/http/check
2202 @go_include@ net/mail.lo.dep
2203 net/mail.lo.dep: $(srcdir)/go/net/mail/*.go
2204         $(BUILDDEPS)
2205 net/mail.lo:
2206         $(BUILDPACKAGE)
2207 net/mail/check: $(CHECK_DEPS)
2208         @$(CHECK)
2209 .PHONY: net/mail/check
2211 @go_include@ net/rpc.lo.dep
2212 net/rpc.lo.dep: $(srcdir)/go/net/rpc/*.go
2213         $(BUILDDEPS)
2214 net/rpc.lo:
2215         $(BUILDPACKAGE)
2216 net/rpc/check: $(CHECK_DEPS)
2217         @$(CHECK)
2218 .PHONY: net/rpc/check
2220 @go_include@ net/smtp.lo.dep
2221 net/smtp.lo.dep: $(srcdir)/go/net/smtp/*.go
2222         $(BUILDDEPS)
2223 net/smtp.lo:
2224         $(BUILDPACKAGE)
2225 net/smtp/check: $(CHECK_DEPS)
2226         @$(CHECK)
2227 .PHONY: net/smtp/check
2229 @go_include@ net/url.lo.dep
2230 net/url.lo.dep: $(srcdir)/go/net/url/*.go
2231         $(BUILDDEPS)
2232 net/url.lo:
2233         $(BUILDPACKAGE)
2234 net/url/check: $(CHECK_DEPS)
2235         @$(CHECK)
2236 .PHONY: net/url/check
2238 @go_include@ net/textproto.lo.dep
2239 net/textproto.lo.dep: $(srcdir)/go/net/textproto/*.go
2240         $(BUILDDEPS)
2241 net/textproto.lo:
2242         $(BUILDPACKAGE)
2243 net/textproto/check: $(CHECK_DEPS)
2244         @$(CHECK)
2245 .PHONY: net/textproto/check
2247 @go_include@ net/http/cgi.lo.dep
2248 net/http/cgi.lo.dep: $(srcdir)/go/net/http/cgi/*.go
2249         $(BUILDDEPS)
2250 net/http/cgi.lo:
2251         $(BUILDPACKAGE)
2252 net/http/cgi/check: $(CHECK_DEPS)
2253         @$(CHECK)
2254 .PHONY: net/http/cgi/check
2256 @go_include@ net/http/cookiejar.lo.dep
2257 net/http/cookiejar.lo.dep: $(srcdir)/go/net/http/cookiejar/*.go
2258         $(BUILDDEPS)
2259 net/http/cookiejar.lo:
2260         $(BUILDPACKAGE)
2261 net/http/cookiejar/check: $(CHECK_DEPS)
2262         @$(CHECK)
2263 .PHONY: net/http/cookiejar/check
2265 @go_include@ net/http/fcgi.lo.dep
2266 net/http/fcgi.lo.dep: $(srcdir)/go/net/http/fcgi/*.go
2267         $(BUILDDEPS)
2268 net/http/fcgi.lo:
2269         $(BUILDPACKAGE)
2270 net/http/fcgi/check: $(CHECK_DEPS)
2271         @$(CHECK)
2272 .PHONY: net/http/fcgi/check
2274 @go_include@ net/http/httptest.lo.dep
2275 net/http/httptest.lo.dep: $(srcdir)/go/net/http/httptest/*.go
2276         $(BUILDDEPS)
2277 net/http/httptest.lo:
2278         $(BUILDPACKAGE)
2279 net/http/httptest/check: $(check_deps)
2280         @$(CHECK)
2281 .PHONY: net/http/httptest/check
2283 @go_include@ net/http/httptrace.lo.dep
2284 net/http/httptrace.lo.dep: $(srcdir)/go/net/http/httptrace/*.go
2285         $(BUILDDEPS)
2286 net/http/httptrace.lo:
2287         $(BUILDPACKAGE)
2288 net/http/httptrace/check: $(check_deps)
2289         @$(CHECK)
2290 .PHONY: net/http/httptrace/check
2292 @go_include@ net/http/httputil.lo.dep
2293 net/http/httputil.lo.dep: $(srcdir)/go/net/http/httputil/*.go
2294         $(BUILDDEPS)
2295 net/http/httputil.lo:
2296         $(BUILDPACKAGE)
2297 net/http/httputil/check: $(check_deps)
2298         @$(CHECK)
2299 .PHONY: net/http/httputil/check
2301 @go_include@ net/http/internal.lo.dep
2302 net/http/internal.lo.dep: $(srcdir)/go/net/http/internal/*.go
2303         $(BUILDDEPS)
2304 net/http/internal.lo:
2305         $(BUILDPACKAGE)
2306 net/http/internal/check: $(CHECK_DEPS)
2307         @$(CHECK)
2308 .PHONY: net/http/internal/check
2310 @go_include@ net/http/pprof.lo.dep
2311 net/http/pprof.lo.dep: $(srcdir)/go/net/http/pprof/*.go
2312         $(BUILDDEPS)
2313 net/http/pprof.lo:
2314         $(BUILDPACKAGE)
2315 net/http/pprof/check: $(CHECK_DEPS)
2316         @$(CHECK)
2317 .PHONY: net/http/pprof/check
2319 @go_include@ net/internal/socktest.lo.dep
2320 net/internal/socktest.lo.dep: $(srcdir)/go/net/internal/socktest/*.go
2321         $(BUILDDEPS)
2322 net/internal/socktest.lo:
2323         $(BUILDPACKAGE)
2324 net/internal/socktest/check: $(CHECK_DEPS)
2325         @$(CHECK)
2326 .PHONY: net/internal/socktest/check
2328 @go_include@ net/rpc/jsonrpc.lo.dep
2329 net/rpc/jsonrpc.lo.dep: $(srcdir)/go/net/rpc/jsonrpc/*.go
2330         $(BUILDDEPS)
2331 net/rpc/jsonrpc.lo:
2332         $(BUILDPACKAGE)
2333 net/rpc/jsonrpc/check: $(CHECK_DEPS)
2334         @$(CHECK)
2335 .PHONY: net/rpc/jsonrpc/check
2337 @go_include@ old/regexp.lo.dep
2338 old/regexp.lo.dep: $(srcdir)/go/old/regexp/*.go
2339         $(BUILDDEPS)
2340 old/regexp.lo:
2341         $(BUILDPACKAGE)
2342 old/regexp/check: $(CHECK_DEPS)
2343         @$(CHECK)
2344 .PHONY: old/regexp/check
2346 @go_include@ old/template.lo.dep
2347 old/template.lo.dep: $(srcdir)/go/old/template/*.go
2348         $(BUILDDEPS)
2349 old/template.lo:
2350         $(BUILDPACKAGE)
2351 old/template/check: $(CHECK_DEPS)
2352         @$(CHECK)
2353 .PHONY: old/template/check
2355 @go_include@ os/exec.lo.dep
2356 os/exec.lo.dep: $(srcdir)/go/os/exec/*.go
2357         $(BUILDDEPS)
2358 os/exec.lo:
2359         $(BUILDPACKAGE)
2360 os/exec/check: $(CHECK_DEPS)
2361         @$(CHECK)
2362 .PHONY: os/exec/check
2364 @go_include@ os/signal.lo.dep
2365 os/signal.lo.dep: $(srcdir)/go/os/signal/*.go
2366         $(BUILDDEPS)
2367 os/signal.lo:
2368         $(BUILDPACKAGE)
2369 os/signal/check: $(CHECK_DEPS)
2370         @$(CHECK)
2371 .PHONY: os/signal/check
2373 @go_include@ os/user.lo.dep
2374 os/user.lo.dep: $(srcdir)/go/os/user/*.go
2375         $(BUILDDEPS)
2376 os/user.lo:
2377         $(BUILDPACKAGE)
2378 os/user/check: $(CHECK_DEPS)
2379         @$(CHECK)
2380 .PHONY: os/user/check
2382 @go_include@ path/filepath.lo.dep
2383 path/filepath.lo.dep: $(srcdir)/go/path/filepath/*.go
2384         $(BUILDDEPS)
2385 path/filepath.lo:
2386         $(BUILDPACKAGE)
2387 path/filepath/check: $(CHECK_DEPS)
2388         @$(CHECK)
2389 .PHONY: path/filepath/check
2391 @go_include@ regexp/syntax.lo.dep
2392 regexp/syntax.lo.dep: $(srcdir)/go/regexp/syntax/*.go
2393         $(BUILDDEPS)
2394 regexp/syntax.lo:
2395         $(BUILDPACKAGE)
2396 regexp/syntax/check: $(CHECK_DEPS)
2397         @$(CHECK)
2398 .PHONY: regexp/syntax/check
2400 @go_include@ runtime/debug.lo.dep
2401 runtime/debug.lo.dep: $(srcdir)/go/runtime/debug/*.go
2402         $(BUILDDEPS)
2403 runtime/debug.lo:
2404         $(BUILDPACKAGE)
2405 runtime/debug/check: $(CHECK_DEPS)
2406         @$(CHECK)
2407 .PHONY: runtime/debug/check
2409 @go_include@ runtime/pprof.lo.dep
2410 runtime/pprof.lo.dep: $(srcdir)/go/runtime/pprof/*.go
2411         $(BUILDDEPS)
2412 runtime/pprof.lo:
2413         $(BUILDPACKAGE)
2414 runtime/pprof/check: $(CHECK_DEPS)
2415         @$(CHECK)
2416 .PHONY: runtime/pprof/check
2417 # At least for now, we need -static-libgo for this test, because
2418 # otherwise we can't get the line numbers.
2419 # Also use -fno-inline to get better results from the memory profiler.
2420 runtime_pprof_check_GOCFLAGS = -static-libgo -fno-inline
2422 @go_include@ runtime/internal/atomic.lo.dep
2423 runtime/internal/atomic.lo.dep: $(srcdir)/go/runtime/internal/atomic/*.go
2424         $(BUILDDEPS)
2425 runtime_internal_atomic_lo_GOCFLAGS = -fgo-compiling-runtime
2426 runtime/internal/atomic.lo:
2427         $(BUILDPACKAGE)
2428 runtime/internal/atomic_c.lo: go/runtime/internal/atomic/atomic.c runtime.inc runtime/internal/atomic.lo
2429         $(LTCOMPILE) -c -o $@ $(srcdir)/go/runtime/internal/atomic/atomic.c
2430 runtime/internal/atomic/check: $(CHECK_DEPS)
2431         @$(CHECK)
2432 .PHONY: runtime/internal/atomic/check
2434 extra_go_files_runtime_internal_sys = version.go
2436 @go_include@ runtime/internal/sys.lo.dep
2437 runtime/internal/sys.lo.dep: $(srcdir)/go/runtime/internal/sys/*.go
2438         $(BUILDDEPS)
2439 runtime_internal_sys_lo_GOCFLAGS = -fgo-compiling-runtime
2440 runtime/internal/sys.lo:
2441         $(BUILDPACKAGE)
2442 runtime/internal/sys/check: $(CHECK_DEPS)
2443         @$(CHECK)
2444 .PHONY: runtime/internal/sys/check
2446 @go_include@ sync/atomic.lo.dep
2447 sync/atomic.lo.dep: $(srcdir)/go/sync/atomic/*.go
2448         $(BUILDDEPS)
2449 sync/atomic.lo:
2450         $(BUILDPACKAGE)
2451 sync/atomic_c.lo: go/sync/atomic/atomic.c runtime.inc sync/atomic.lo
2452         $(LTCOMPILE) -c -o $@ $(srcdir)/go/sync/atomic/atomic.c
2453 sync/atomic/check: $(CHECK_DEPS)
2454         @$(CHECK)
2455 .PHONY: sync/atomic/check
2457 @go_include@ text/scanner.lo.dep
2458 text/scanner.lo.dep: $(srcdir)/go/text/scanner/*.go
2459         $(BUILDDEPS)
2460 text/scanner.lo:
2461         $(BUILDPACKAGE)
2462 text/scanner/check: $(CHECK_DEPS)
2463         @$(CHECK)
2464 .PHONY: text/scanner/check
2466 @go_include@ text/tabwriter.lo.dep
2467 text/tabwriter.lo.dep: $(srcdir)/go/text/tabwriter/*.go
2468         $(BUILDDEPS)
2469 text/tabwriter.lo:
2470         $(BUILDPACKAGE)
2471 text/tabwriter/check: $(CHECK_DEPS)
2472         @$(CHECK)
2473 .PHONY: text/tabwriter/check
2475 @go_include@ text/template.lo.dep
2476 text/template.lo.dep: $(srcdir)/go/text/template/*.go
2477         $(BUILDDEPS)
2478 text/template.lo:
2479         $(BUILDPACKAGE)
2480 text/template/check: $(CHECK_DEPS)
2481         @$(CHECK)
2482 .PHONY: text/template/check
2484 @go_include@ text/template/parse.lo.dep
2485 text/template/parse.lo.dep: $(srcdir)/go/text/template/parse/*.go
2486         $(BUILDDEPS)
2487 text/template/parse.lo:
2488         $(BUILDPACKAGE)
2489 text/template/parse/check: $(CHECK_DEPS)
2490         @$(CHECK)
2491 .PHONY: text/template/parse/check
2493 @go_include@ testing/iotest.lo.dep
2494 testing/iotest.lo.dep: $(srcdir)/go/testing/iotest/*.go
2495         $(BUILDDEPS)
2496 testing/iotest.lo:
2497         $(BUILDPACKAGE)
2498 testing/iotest/check: $(CHECK_DEPS)
2499         @$(CHECK)
2500 .PHONY: testing/iotest/check
2502 @go_include@ testing/quick.lo.dep
2503 testing/quick.lo.dep: $(srcdir)/go/testing/quick/*.go
2504         $(BUILDDEPS)
2505 testing/quick.lo:
2506         $(BUILDPACKAGE)
2507 testing/quick/check: $(CHECK_DEPS)
2508         @$(CHECK)
2509 .PHONY: testing/quick/check
2511 @go_include@ unicode/utf16.lo.dep
2512 unicode/utf16.lo.dep: $(srcdir)/go/unicode/utf16/*.go
2513         $(BUILDDEPS)
2514 unicode/utf16.lo:
2515         $(BUILDPACKAGE)
2516 unicode/utf16/check: $(CHECK_DEPS)
2517         @$(CHECK)
2518 .PHONY: unicode/utf16/check
2520 @go_include@ unicode/utf8.lo.dep
2521 unicode/utf8.lo.dep: $(srcdir)/go/unicode/utf8/*.go
2522         $(BUILDDEPS)
2523 unicode/utf8.lo:
2524         $(BUILDPACKAGE)
2525 unicode/utf8/check: $(CHECK_DEPS)
2526         @$(CHECK)
2527 .PHONY: unicode/utf8/check
2529 @go_include@ syscall.lo.dep
2530 syscall.lo.dep: $(srcdir)/go/syscall/*.go $(extra_go_files_syscall)
2531         $(BUILDDEPS)
2532 syscall.lo:
2533         $(BUILDPACKAGE)
2534 syscall/clone_linux.lo: go/syscall/clone_linux.c runtime.inc
2535         @$(MKDIR_P) syscall
2536         $(LTCOMPILE) -c -o $@ $<
2537 syscall/errno.lo: go/syscall/errno.c runtime.inc
2538         @$(MKDIR_P) syscall
2539         $(LTCOMPILE) -c -o $@ $<
2540 syscall/signame.lo: go/syscall/signame.c runtime.inc
2541         @$(MKDIR_P) syscall
2542         $(LTCOMPILE) -c -o $@ $<
2543 syscall/wait.lo: go/syscall/wait.c runtime.inc
2544         @$(MKDIR_P) syscall
2545         $(LTCOMPILE) -c -o $@ $<
2546 syscall/check: $(CHECK_DEPS)
2547         @$(CHECK)
2548 .PHONY: syscall/check
2550 # How to build a .gox file from a .lo file.
2551 BUILDGOX = \
2552         f=`echo $< | sed -e 's/.lo$$/.o/'`; \
2553         $(OBJCOPY) -j .go_export $$f $@.tmp && mv -f $@.tmp $@
2555 bufio.gox: bufio.lo
2556         $(BUILDGOX)
2557 bytes.gox: bytes.lo
2558         $(BUILDGOX)
2559 context.gox: context.lo
2560         $(BUILDGOX)
2561 crypto.gox: crypto.lo
2562         $(BUILDGOX)
2563 encoding.gox: encoding.lo
2564         $(BUILDGOX)
2565 errors.gox: errors.lo
2566         $(BUILDGOX)
2567 expvar.gox: expvar.lo
2568         $(BUILDGOX)
2569 flag.gox: flag.lo
2570         $(BUILDGOX)
2571 fmt.gox: fmt.lo
2572         $(BUILDGOX)
2573 hash.gox: hash.lo
2574         $(BUILDGOX)
2575 html.gox: html.lo
2576         $(BUILDGOX)
2577 image.gox: image.lo
2578         $(BUILDGOX)
2579 io.gox: io.lo
2580         $(BUILDGOX)
2581 log.gox: log.lo
2582         $(BUILDGOX)
2583 math.gox: math.lo
2584         $(BUILDGOX)
2585 mime.gox: mime.lo
2586         $(BUILDGOX)
2587 net.gox: net.lo
2588         $(BUILDGOX)
2589 os.gox: os.lo
2590         $(BUILDGOX)
2591 path.gox: path.lo
2592         $(BUILDGOX)
2593 reflect.gox: reflect-go.lo
2594         $(BUILDGOX)
2595 regexp.gox: regexp.lo
2596         $(BUILDGOX)
2597 runtime.gox: runtime-go.lo
2598         $(BUILDGOX)
2599 sort.gox: sort.lo
2600         $(BUILDGOX)
2601 strconv.gox: strconv.lo
2602         $(BUILDGOX)
2603 strings.gox: strings.lo
2604         $(BUILDGOX)
2605 sync.gox: sync.lo
2606         $(BUILDGOX)
2607 syscall.gox: syscall.lo
2608         $(BUILDGOX)
2609 testing.gox: testing.lo
2610         $(BUILDGOX)
2611 time.gox: time-go.lo
2612         $(BUILDGOX)
2613 unicode.gox: unicode.lo
2614         $(BUILDGOX)
2616 archive/tar.gox: archive/tar.lo
2617         $(BUILDGOX)
2618 archive/zip.gox: archive/zip.lo
2619         $(BUILDGOX)
2621 compress/bzip2.gox: compress/bzip2.lo
2622         $(BUILDGOX)
2623 compress/flate.gox: compress/flate.lo
2624         $(BUILDGOX)
2625 compress/gzip.gox: compress/gzip.lo
2626         $(BUILDGOX)
2627 compress/lzw.gox: compress/lzw.lo
2628         $(BUILDGOX)
2629 compress/zlib.gox: compress/zlib.lo
2630         $(BUILDGOX)
2632 container/heap.gox: container/heap.lo
2633         $(BUILDGOX)
2634 container/list.gox: container/list.lo
2635         $(BUILDGOX)
2636 container/ring.gox: container/ring.lo
2637         $(BUILDGOX)
2639 crypto/aes.gox: crypto/aes.lo
2640         $(BUILDGOX)
2641 crypto/cipher.gox: crypto/cipher.lo
2642         $(BUILDGOX)
2643 crypto/des.gox: crypto/des.lo
2644         $(BUILDGOX)
2645 crypto/dsa.gox: crypto/dsa.lo
2646         $(BUILDGOX)
2647 crypto/ecdsa.gox: crypto/ecdsa.lo       
2648         $(BUILDGOX)
2649 crypto/elliptic.gox: crypto/elliptic.lo
2650         $(BUILDGOX)
2651 crypto/hmac.gox: crypto/hmac.lo
2652         $(BUILDGOX)
2653 crypto/md5.gox: crypto/md5.lo
2654         $(BUILDGOX)
2655 crypto/rand.gox: crypto/rand.lo
2656         $(BUILDGOX)
2657 crypto/rc4.gox: crypto/rc4.lo
2658         $(BUILDGOX)
2659 crypto/rsa.gox: crypto/rsa.lo
2660         $(BUILDGOX)
2661 crypto/sha1.gox: crypto/sha1.lo
2662         $(BUILDGOX)
2663 crypto/sha256.gox: crypto/sha256.lo
2664         $(BUILDGOX)
2665 crypto/sha512.gox: crypto/sha512.lo
2666         $(BUILDGOX)
2667 crypto/subtle.gox: crypto/subtle.lo
2668         $(BUILDGOX)
2669 crypto/tls.gox: crypto/tls.lo
2670         $(BUILDGOX)
2671 crypto/x509.gox: crypto/x509.lo
2672         $(BUILDGOX)
2674 crypto/x509/pkix.gox: crypto/x509/pkix.lo
2675         $(BUILDGOX)
2677 database/sql.gox: database/sql.lo
2678         $(BUILDGOX)
2680 database/sql/driver.gox: database/sql/driver.lo
2681         $(BUILDGOX)
2683 debug/dwarf.gox: debug/dwarf.lo
2684         $(BUILDGOX)
2685 debug/elf.gox: debug/elf.lo
2686         $(BUILDGOX)
2687 debug/gosym.gox: debug/gosym.lo
2688         $(BUILDGOX)
2689 debug/macho.gox: debug/macho.lo
2690         $(BUILDGOX)
2691 debug/pe.gox: debug/pe.lo
2692         $(BUILDGOX)
2693 debug/plan9obj.gox: debug/plan9obj.lo
2694         $(BUILDGOX)
2696 encoding/ascii85.gox: encoding/ascii85.lo
2697         $(BUILDGOX)
2698 encoding/asn1.gox: encoding/asn1.lo
2699         $(BUILDGOX)
2700 encoding/base32.gox: encoding/base32.lo
2701         $(BUILDGOX)
2702 encoding/base64.gox: encoding/base64.lo
2703         $(BUILDGOX)
2704 encoding/binary.gox: encoding/binary.lo
2705         $(BUILDGOX)
2706 encoding/csv.gox: encoding/csv.lo
2707         $(BUILDGOX)
2708 encoding/gob.gox: encoding/gob.lo
2709         $(BUILDGOX)
2710 encoding/hex.gox: encoding/hex.lo
2711         $(BUILDGOX)
2712 encoding/json.gox: encoding/json.lo
2713         $(BUILDGOX)
2714 encoding/pem.gox: encoding/pem.lo
2715         $(BUILDGOX)
2716 encoding/xml.gox: encoding/xml.lo
2717         $(BUILDGOX)
2719 exp/proxy.gox: exp/proxy.lo
2720         $(BUILDGOX)
2721 exp/terminal.gox: exp/terminal.lo
2722         $(BUILDGOX)
2724 html/template.gox: html/template.lo
2725         $(BUILDGOX)
2727 go/ast.gox: go/ast.lo
2728         $(BUILDGOX)
2729 go/build.gox: go/build.lo
2730         $(BUILDGOX)
2731 go/constant.gox: go/constant.lo
2732         $(BUILDGOX)
2733 go/doc.gox: go/doc.lo
2734         $(BUILDGOX)
2735 go/format.gox: go/format.lo
2736         $(BUILDGOX)
2737 go/importer.gox: go/importer.lo
2738         $(BUILDGOX)
2739 go/parser.gox: go/parser.lo
2740         $(BUILDGOX)
2741 go/printer.gox: go/printer.lo
2742         $(BUILDGOX)
2743 go/scanner.gox: go/scanner.lo
2744         $(BUILDGOX)
2745 go/token.gox: go/token.lo
2746         $(BUILDGOX)
2747 go/types.gox: go/types.lo
2748         $(BUILDGOX)
2750 go/internal/gcimporter.gox: go/internal/gcimporter.lo
2751         $(BUILDGOX)
2752 go/internal/gccgoimporter.gox: go/internal/gccgoimporter.lo
2753         $(BUILDGOX)
2755 golang_org/x/net/http2/hpack.gox: golang_org/x/net/http2/hpack.lo
2756         $(BUILDGOX)
2758 golang_org/x/net/lex/httplex.gox: golang_org/x/net/lex/httplex.lo
2759         $(BUILDGOX)
2761 if LIBGO_IS_BSD
2762 golang_org/x/net/route.gox: golang_org/x/net/route.lo
2763         $(BUILDGOX)
2764 endif
2766 hash/adler32.gox: hash/adler32.lo
2767         $(BUILDGOX)
2768 hash/crc32.gox: hash/crc32.lo
2769         $(BUILDGOX)
2770 hash/crc64.gox: hash/crc64.lo
2771         $(BUILDGOX)
2772 hash/fnv.gox: hash/fnv.lo
2773         $(BUILDGOX)
2775 image/color.gox: image/color.lo
2776         $(BUILDGOX)
2777 image/draw.gox: image/draw.lo
2778         $(BUILDGOX)
2779 image/gif.gox: image/gif.lo
2780         $(BUILDGOX)
2781 image/internal/imageutil.gox: image/internal/imageutil.lo
2782         $(BUILDGOX)
2783 image/jpeg.gox: image/jpeg.lo
2784         $(BUILDGOX)
2785 image/png.gox: image/png.lo
2786         $(BUILDGOX)
2788 image/color/palette.gox: image/color/palette.lo
2789         $(BUILDGOX)
2791 index/suffixarray.gox: index/suffixarray.lo
2792         $(BUILDGOX)
2794 internal/nettrace.gox: internal/nettrace.lo
2795         $(BUILDGOX)
2796 internal/race.gox: internal/race.lo
2797         $(BUILDGOX)
2798 internal/singleflight.gox: internal/singleflight.lo
2799         $(BUILDGOX)
2800 internal/syscall/unix.gox: internal/syscall/unix.lo
2801         $(BUILDGOX)
2802 internal/testenv.gox: internal/testenv.lo
2803         $(BUILDGOX)
2804 internal/trace.gox: internal/trace.lo
2805         $(BUILDGOX)
2807 io/ioutil.gox: io/ioutil.lo
2808         $(BUILDGOX)
2810 log/syslog.gox: log/syslog.lo
2811         $(BUILDGOX)
2813 math/big.gox: math/big.lo
2814         $(BUILDGOX)
2815 math/cmplx.gox: math/cmplx.lo
2816         $(BUILDGOX)
2817 math/rand.gox: math/rand.lo
2818         $(BUILDGOX)
2820 mime/multipart.gox: mime/multipart.lo
2821         $(BUILDGOX)
2822 mime/quotedprintable.gox: mime/quotedprintable.lo
2823         $(BUILDGOX)
2825 net/http.gox: net/http.lo
2826         $(BUILDGOX)
2827 net/mail.gox: net/mail.lo
2828         $(BUILDGOX)
2829 net/rpc.gox: net/rpc.lo
2830         $(BUILDGOX)
2831 net/smtp.gox: net/smtp.lo
2832         $(BUILDGOX)
2833 net/textproto.gox: net/textproto.lo
2834         $(BUILDGOX)
2835 net/url.gox: net/url.lo
2836         $(BUILDGOX)
2838 net/http/cgi.gox: net/http/cgi.lo
2839         $(BUILDGOX)
2840 net/http/cookiejar.gox: net/http/cookiejar.lo
2841         $(BUILDGOX)
2842 net/http/fcgi.gox: net/http/fcgi.lo
2843         $(BUILDGOX)
2844 net/http/httptest.gox: net/http/httptest.lo
2845         $(BUILDGOX)
2846 net/http/httptrace.gox: net/http/httptrace.lo
2847         $(BUILDGOX)
2848 net/http/httputil.gox: net/http/httputil.lo
2849         $(BUILDGOX)
2850 net/http/pprof.gox: net/http/pprof.lo
2851         $(BUILDGOX)
2853 net/http/internal.gox: net/http/internal.lo
2854         $(BUILDGOX)
2856 net/internal/socktest.gox: net/internal/socktest.lo
2857         $(BUILDGOX)
2859 net/rpc/jsonrpc.gox: net/rpc/jsonrpc.lo
2860         $(BUILDGOX)
2862 old/regexp.gox: old/regexp.lo
2863         $(BUILDGOX)
2864 old/template.gox: old/template.lo
2865         $(BUILDGOX)
2867 os/exec.gox: os/exec.lo
2868         $(BUILDGOX)
2869 os/signal.gox: os/signal.lo
2870         $(BUILDGOX)
2871 os/user.gox: os/user.lo
2872         $(BUILDGOX)
2874 path/filepath.gox: path/filepath.lo
2875         $(BUILDGOX)
2877 regexp/syntax.gox: regexp/syntax.lo
2878         $(BUILDGOX)
2880 runtime/debug.gox: runtime/debug.lo
2881         $(BUILDGOX)
2882 runtime/pprof.gox: runtime/pprof.lo
2883         $(BUILDGOX)
2884 runtime/internal/atomic.gox: runtime/internal/atomic.lo
2885         $(BUILDGOX)
2886 runtime/internal/sys.gox: runtime/internal/sys.lo
2887         $(BUILDGOX)
2889 sync/atomic.gox: sync/atomic.lo
2890         $(BUILDGOX)
2892 text/scanner.gox: text/scanner.lo
2893         $(BUILDGOX)
2894 text/tabwriter.gox: text/tabwriter.lo
2895         $(BUILDGOX)
2896 text/template.gox: text/template.lo
2897         $(BUILDGOX)
2898 text/template/parse.gox: text/template/parse.lo
2899         $(BUILDGOX)
2901 testing/iotest.gox: testing/iotest.lo
2902         $(BUILDGOX)
2903 testing/quick.gox: testing/quick.lo
2904         $(BUILDGOX)
2906 unicode/utf16.gox: unicode/utf16.lo
2907         $(BUILDGOX)
2908 unicode/utf8.gox: unicode/utf8.lo
2909         $(BUILDGOX)
2911 TEST_PACKAGES = \
2912         bufio/check \
2913         bytes/check \
2914         context/check \
2915         errors/check \
2916         expvar/check \
2917         flag/check \
2918         fmt/check \
2919         html/check \
2920         image/check \
2921         io/check \
2922         log/check \
2923         math/check \
2924         mime/check \
2925         net/check \
2926         os/check \
2927         path/check \
2928         reflect/check \
2929         regexp/check \
2930         runtime/check \
2931         sort/check \
2932         strconv/check \
2933         strings/check \
2934         sync/check \
2935         syscall/check \
2936         time/check \
2937         unicode/check \
2938         archive/tar/check \
2939         archive/zip/check \
2940         compress/bzip2/check \
2941         compress/flate/check \
2942         compress/gzip/check \
2943         compress/lzw/check \
2944         compress/zlib/check \
2945         container/heap/check \
2946         container/list/check \
2947         container/ring/check \
2948         crypto/aes/check \
2949         crypto/cipher/check \
2950         crypto/des/check \
2951         crypto/dsa/check \
2952         crypto/ecdsa/check \
2953         crypto/elliptic/check \
2954         crypto/hmac/check \
2955         crypto/md5/check \
2956         crypto/rand/check \
2957         crypto/rc4/check \
2958         crypto/rsa/check \
2959         crypto/sha1/check \
2960         crypto/sha256/check \
2961         crypto/sha512/check \
2962         crypto/subtle/check \
2963         crypto/tls/check \
2964         crypto/x509/check \
2965         database/sql/check \
2966         database/sql/driver/check \
2967         debug/dwarf/check \
2968         debug/elf/check \
2969         debug/macho/check \
2970         debug/pe/check \
2971         debug/plan9obj/check \
2972         encoding/ascii85/check \
2973         encoding/asn1/check \
2974         encoding/base32/check \
2975         encoding/base64/check \
2976         encoding/binary/check \
2977         encoding/csv/check \
2978         encoding/gob/check \
2979         encoding/hex/check \
2980         encoding/json/check \
2981         encoding/pem/check \
2982         encoding/xml/check \
2983         exp/proxy/check \
2984         exp/terminal/check \
2985         html/template/check \
2986         go/ast/check \
2987         go/build/check \
2988         go/constant/check \
2989         go/doc/check \
2990         go/format/check \
2991         go/internal/gcimporter/check \
2992         go/internal/gccgoimporter/check \
2993         go/parser/check \
2994         go/printer/check \
2995         go/scanner/check \
2996         go/token/check \
2997         go/types/check \
2998         golang_org/x/net/http2/hpack/check \
2999         golang_org/x/net/lex/httplex/check \
3000         $(golang_org_x_net_route_check) \
3001         hash/adler32/check \
3002         hash/crc32/check \
3003         hash/crc64/check \
3004         hash/fnv/check \
3005         image/color/check \
3006         image/draw/check \
3007         image/jpeg/check \
3008         image/png/check \
3009         index/suffixarray/check \
3010         internal/singleflight/check \
3011         internal/trace/check \
3012         io/ioutil/check \
3013         log/syslog/check \
3014         math/big/check \
3015         math/cmplx/check \
3016         math/rand/check \
3017         mime/multipart/check \
3018         mime/quotedprintable/check \
3019         net/http/check \
3020         net/http/cgi/check \
3021         net/http/cookiejar/check \
3022         net/http/fcgi/check \
3023         net/http/httptest/check \
3024         net/http/httptrace/check \
3025         net/http/httputil/check \
3026         net/http/internal/check \
3027         net/internal/socktest/check \
3028         net/mail/check \
3029         net/rpc/check \
3030         net/smtp/check \
3031         net/textproto/check \
3032         net/url/check \
3033         net/rpc/jsonrpc/check \
3034         old/regexp/check \
3035         old/template/check \
3036         os/exec/check \
3037         os/signal/check \
3038         os/user/check \
3039         path/filepath/check \
3040         regexp/syntax/check \
3041         runtime/pprof/check \
3042         runtime/internal/atomic/check \
3043         runtime/internal/sys/check \
3044         sync/atomic/check \
3045         text/scanner/check \
3046         text/tabwriter/check \
3047         text/template/check \
3048         text/template/parse/check \
3049         testing/quick/check \
3050         unicode/utf16/check \
3051         unicode/utf8/check
3053 check: check-tail
3054 check-recursive: check-head
3056 check-head:
3057         @echo "Test Run By $${USER} on `date`" > libgo.head
3058         @echo "Native configuration is $(host_triplet)" >> libgo.head
3059         @echo >> libgo.head
3060         @echo "         === libgo tests ===" >> libgo.head
3061         @echo >> libgo.head
3063 check-tail: check-recursive check-multi
3064         @if test "$(USE_DEJAGNU)" = "yes"; then \
3065           exit 0; \
3066         fi; \
3067         lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
3068         for dir in . $(MULTIDIRS); do \
3069           mv ../$${dir}/$${lib}/libgo.sum ../$${dir}/$${lib}/libgo.sum.sep; \
3070           mv ../$${dir}/$${lib}/libgo.log ../$${dir}/$${lib}/libgo.log.sep; \
3071         done; \
3072         mv libgo.head libgo.sum; \
3073         cp libgo.sum libgo.log; \
3074         echo "Schedule of variations:" >> libgo.sum; \
3075         for dir in . $(MULTIDIRS); do \
3076           multidir=../$${dir}/$${lib}; \
3077           multivar=`cat $${multidir}/libgo.var`; \
3078           echo "    $${multivar}" >> libgo.sum; \
3079         done; \
3080         echo >> libgo.sum; \
3081         pass=0; fail=0; untested=0; \
3082         for dir in . $(MULTIDIRS); do \
3083           multidir=../$${dir}/$${lib}; \
3084           multivar=`cat $${multidir}/libgo.var`; \
3085           echo "Running target $${multivar}" >> libgo.sum; \
3086           echo "Running $(srcdir)/libgo.exp ..." >> libgo.sum; \
3087           cat $${multidir}/libgo.sum.sep >> libgo.sum; \
3088           cat $${multidir}/libgo.log.sep >> libgo.log; \
3089           if test -n "${MULTIDIRS}"; then \
3090             echo "              === libgo Summary for $${multivar} ===" >> libgo.sum; \
3091             echo >> libgo.sum; \
3092           fi; \
3093           p=`grep -c PASS $${multidir}/libgo.sum.sep`; \
3094           pass=`expr $$pass + $$p`; \
3095           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3096             echo "# of expected passes          $$p" >> libgo.sum; \
3097           fi; \
3098           p=`grep -c FAIL $${multidir}/libgo.sum.sep`; \
3099           fail=`expr $$fail + $$p`; \
3100           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3101             echo "# of unexpected failures      $$p" >> libgo.sum; \
3102           fi; \
3103           p=`grep -c UNTESTED $${multidir}/libgo.sum.sep`; \
3104           untested=`expr $$untested + $$p`; \
3105           if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
3106             echo "# of untested testcases               $$p" >> libgo.sum; \
3107           fi; \
3108         done; \
3109         echo >> libgo.sum; \
3110         echo "          === libgo Summary ===" >> libgo.sum; \
3111         echo >> libgo.sum; \
3112         if test "$$pass" -ne "0"; then \
3113           echo "# of expected passes            $$pass" >> libgo.sum; \
3114         fi; \
3115         if test "$$fail" -ne "0"; then \
3116           echo "# of unexpected failures        $$fail" >> libgo.sum; \
3117         fi; \
3118         if test "$$untested" -ne "0"; then \
3119           echo "# of untested testcases         $$untested" >> libgo.sum; \
3120         fi; \
3121         echo `echo $(GOC) | sed -e 's/ .*//'`  `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
3122         echo >> libgo.log; \
3123         echo "runtest completed at `date`" >> libgo.log; \
3124         if test "$$fail" -ne "0"; then \
3125           status=1; \
3126         else \
3127           status=0; \
3128         fi; \
3129         exit $$status
3131 check-am:
3132         @rm -f libgo.sum libgo.log libgo.tail
3133         @multivar="unix"; \
3134         [ -z "$(MULTIFLAGS)" ] || multivar="$${multivar}/$(MULTIFLAGS)"; \
3135         echo "$${multivar}" > libgo.var
3136         @for f in $(TEST_PACKAGES); do \
3137            rm -f $$f-testsum $$f-testlog; \
3138          done
3139         -@$(MAKE) -k $(TEST_PACKAGES)
3140         @for f in $(TEST_PACKAGES); do \
3141           if test -f $$f-testsum; then \
3142             cat $$f-testsum >> libgo.sum; \
3143           fi; \
3144           if test -f $$f-testlog; then \
3145             cat $$f-testlog >> libgo.log; \
3146           fi; \
3147         done
3149 check-multi:
3150         $(MULTIDO) $(AM_MAKEFLAGS) DO=check-am multi-do # $(MAKE)
3152 bench:
3153         -@$(MAKE) -k $(TEST_PACKAGES) GOBENCH=.
3155 MOSTLYCLEAN_FILES = libgo.head libgo.sum.sep libgo.log.sep
3157 mostlyclean-local:
3158         find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
3159         find . -name '*.$(OBJEXT)' -print | xargs rm -f
3160         find . -name '*-testsum' -print | xargs rm -f
3161         find . -name '*-testlog' -print | xargs rm -f
3163 CLEANFILES = *.go *.gox goc2c *.c s-version libgo.sum libgo.log
3165 clean-local:
3166         find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
3167         find . -name '*.a' -print | xargs rm -f