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.
10 SUFFIXES = .c .go .gox .o .obj .lo .a
17 GO_EXPORT_SECTION_NAME = __GNU_GO.__go_export
19 GO_EXPORT_SECTION_NAME = .go_export
24 gcc_version := $(shell $(GOC) -dumpversion)
26 MAINT_CHARSET = latin1
28 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
29 PWD_COMMAND = $${PWDCMD-pwd}
30 STAMP = echo timestamp >
32 toolexecdir = $(glibgo_toolexecdir)
33 toolexeclibdir = $(glibgo_toolexeclibdir)
34 toolexeclibgodir = $(nover_glibgo_toolexeclibdir)/go/$(gcc_version)/$(target_alias)
35 libexecsubdir = $(libexecdir)/gcc/$(target_alias)/$(gcc_version)
38 LIBFFIINCS = @LIBFFIINCS@
40 LIBATOMIC = @LIBATOMIC@
42 WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
44 # -I/-D flags to pass when compiling.
45 AM_CPPFLAGS = -I $(srcdir)/runtime $(LIBFFIINCS) $(PTHREAD_CFLAGS)
47 ACLOCAL_AMFLAGS = -I ./config -I ../config
49 AM_CFLAGS = -fexceptions -fnon-call-exceptions \
50 $(SPLIT_STACK) $(WARN_CFLAGS) \
51 $(STRINGOPS_FLAG) $(HWCAP_CFLAGS) $(OSCFLAGS) \
52 -I $(srcdir)/../libgcc -I $(srcdir)/../libbacktrace \
53 -I $(MULTIBUILDTOP)../../gcc/include
58 AM_LDFLAGS += -XCClinker $(SPLIT_STACK)
62 # Using an import file for libgo avoid requiring to use the -brtl flag
63 # when builing a go program
64 AM_LDFLAGS += -Wl,-bbigtoc -Wl,-bI:$(srcdir)/libgo.imp
65 EXTRA_libgo_la_DEPENDENCIES = libgo.imp
71 # Work around what appears to be a GNU make handling MAKEFLAGS
72 # values defined in terms of make variables, as is the case for CC and
73 # friends when we are called from the top level Makefile.
75 "AR_FLAGS=$(AR_FLAGS)" \
76 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
77 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
79 "CXXFLAGS=$(CXXFLAGS)" \
80 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
81 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
82 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
84 "GOCFLAGS=$(GOCFLAGS)" \
85 "INSTALL=$(INSTALL)" \
86 "INSTALL_DATA=$(INSTALL_DATA)" \
87 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
88 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
89 "LDFLAGS=$(LDFLAGS)" \
90 "LIBCFLAGS=$(LIBCFLAGS)" \
91 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
93 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
94 "PICFLAG=$(PICFLAG)" \
95 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
97 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
98 "exec_prefix=$(exec_prefix)" \
99 "infodir=$(infodir)" \
101 "includedir=$(includedir)" \
103 "tooldir=$(tooldir)" \
104 "gxx_include_dir=$(gxx_include_dir)" \
110 "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
111 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
112 "DESTDIR=$(DESTDIR)" \
115 # Subdir rules rely on $(FLAGS_TO_PASS)
116 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
119 toolexeclib_LTLIBRARIES = libgo-llgo.la
120 toolexeclib_LIBRARIES = libgobegin-llgo.a
122 toolexeclib_LTLIBRARIES = libgo.la
123 toolexeclib_LIBRARIES = libgobegin.a libgolibbegin.a
126 noinst_LIBRARIES = libgotool.a
128 toolexeclibgo_DATA = \
160 toolexeclibgoarchivedir = $(toolexeclibgodir)/archive
162 toolexeclibgoarchive_DATA = \
166 toolexeclibgocompressdir = $(toolexeclibgodir)/compress
168 toolexeclibgocompress_DATA = \
175 toolexeclibgocontainerdir = $(toolexeclibgodir)/container
177 toolexeclibgocontainer_DATA = \
182 toolexeclibgocryptodir = $(toolexeclibgodir)/crypto
184 toolexeclibgocrypto_DATA = \
191 crypto/elliptic.gox \
204 toolexeclibgocryptox509dir = $(toolexeclibgocryptodir)/x509
206 toolexeclibgocryptox509_DATA = \
209 toolexeclibgodatabasedir = $(toolexeclibgodir)/database
211 toolexeclibgodatabase_DATA = \
214 toolexeclibgodatabasesqldir = $(toolexeclibgodatabasedir)/sql
216 toolexeclibgodatabasesql_DATA = \
217 database/sql/driver.gox
219 toolexeclibgodebugdir = $(toolexeclibgodir)/debug
221 toolexeclibgodebug_DATA = \
229 toolexeclibgoencodingdir = $(toolexeclibgodir)/encoding
231 toolexeclibgoencoding_DATA = \
232 encoding/ascii85.gox \
234 encoding/base32.gox \
235 encoding/base64.gox \
236 encoding/binary.gox \
244 toolexeclibgogodir = $(toolexeclibgodir)/go
246 toolexeclibgogo_DATA = \
259 toolexeclibgohashdir = $(toolexeclibgodir)/hash
261 toolexeclibgohash_DATA = \
267 toolexeclibgohtmldir = $(toolexeclibgodir)/html
269 toolexeclibgohtml_DATA = \
272 toolexeclibgoimagedir = $(toolexeclibgodir)/image
274 toolexeclibgoimage_DATA = \
281 toolexeclibgoimagecolordir = $(toolexeclibgoimagedir)/color
283 toolexeclibgoimagecolor_DATA = \
284 image/color/palette.gox
286 toolexeclibgoindexdir = $(toolexeclibgodir)/index
288 toolexeclibgoindex_DATA = \
289 index/suffixarray.gox
291 toolexeclibgoiodir = $(toolexeclibgodir)/io
293 toolexeclibgoio_DATA = \
296 toolexeclibgologdir = $(toolexeclibgodir)/log
298 toolexeclibgolog_DATA = \
301 toolexeclibgomathdir = $(toolexeclibgodir)/math
303 toolexeclibgomath_DATA = \
309 toolexeclibgomimedir = $(toolexeclibgodir)/mime
311 toolexeclibgomime_DATA = \
313 mime/quotedprintable.gox
315 toolexeclibgonetdir = $(toolexeclibgodir)/net
317 toolexeclibgonet_DATA = \
325 toolexeclibgonethttpdir = $(toolexeclibgonetdir)/http
327 toolexeclibgonethttp_DATA = \
329 net/http/cookiejar.gox \
331 net/http/httptest.gox \
332 net/http/httptrace.gox \
333 net/http/httputil.gox \
336 toolexeclibgonetrpcdir = $(toolexeclibgonetdir)/rpc
338 toolexeclibgonetrpc_DATA = \
341 toolexeclibgoosdir = $(toolexeclibgodir)/os
343 toolexeclibgoos_DATA = \
348 toolexeclibgopathdir = $(toolexeclibgodir)/path
350 toolexeclibgopath_DATA = \
353 toolexeclibgoregexpdir = $(toolexeclibgodir)/regexp
355 toolexeclibgoregexp_DATA = \
358 toolexeclibgoruntimedir = $(toolexeclibgodir)/runtime
360 toolexeclibgoruntime_DATA = \
365 toolexeclibgosyncdir = $(toolexeclibgodir)/sync
367 toolexeclibgosync_DATA = \
370 toolexeclibgotestingdir = $(toolexeclibgodir)/testing
372 toolexeclibgotesting_DATA = \
376 toolexeclibgotestinginternaldir = $(toolexeclibgotestingdir)/internal
378 toolexeclibgotestinginternal_DATA = \
379 testing/internal/testdeps.gox
381 toolexeclibgotextdir = $(toolexeclibgodir)/text
383 toolexeclibgotext_DATA = \
388 toolexeclibgotexttemplatedir = $(toolexeclibgotextdir)/template
390 toolexeclibgotexttemplate_DATA = \
391 text/template/parse.gox
393 toolexeclibgounicodedir = $(toolexeclibgodir)/unicode
395 toolexeclibgounicode_DATA = \
399 # Some packages are only needed for tests, so unlike the other
400 # internal packages nothing will explicitly depend on them.
401 # Force them to be built.
403 golang.org/x/net/nettest.gox \
405 internal/testenv.gox \
407 net/internal/socktest.gox \
408 os/signal/internal/pty.gox \
409 runtime/pprof/internal/profile.gox
412 rtems_task_variable_add_file = runtime/rtems-task-variable-add.c
414 rtems_task_variable_add_file =
417 runtime_context_asm_file =
420 runtime_context_asm_file += runtime/go-context.S
426 runtime/go-assert.c \
427 runtime/go-caller.c \
428 runtime/go-callers.c \
431 runtime/go-construct-map.c \
433 runtime/go-fieldtrack.c \
434 runtime/go-matherr.c \
435 runtime/go-memclr.c \
436 runtime/go-memequal.c \
437 runtime/go-nanotime.c \
440 runtime/go-reflect-call.c \
441 runtime/go-setenv.c \
442 runtime/go-signal.c \
443 runtime/go-unsafe-pointer.c \
444 runtime/go-unsetenv.c \
445 runtime/go-unwind.c \
446 runtime/go-varargs.c \
447 runtime/env_posix.c \
451 runtime/runtime_c.c \
454 $(runtime_context_asm_file) \
455 $(rtems_task_variable_add_file)
457 version.go: s-version; @true
460 echo "package sys" > version.go.tmp
461 echo 'func init() { DefaultGoroot = "$(prefix)" }' >> version.go.tmp
462 echo 'const TheVersion = "'`cat $(srcdir)/VERSION | sed 1q`' '`$(GOC) --version | sed 1q`'"' >> version.go.tmp
463 echo 'const Goexperiment = ``' >> version.go.tmp
464 echo 'const GOARCH = "'$(GOARCH)'"' >> version.go.tmp
465 echo 'const GOOS = "'$(GOOS)'"' >> version.go.tmp
466 echo 'const GccgoToolDir = "$(libexecsubdir)"' >> version.go.tmp
467 echo >> version.go.tmp
468 echo "type ArchFamilyType int" >> version.go.tmp
469 echo >> version.go.tmp
470 echo "const (" >> version.go.tmp
471 echo " UNKNOWN ArchFamilyType = iota" >> version.go.tmp
472 for a in $(ALLGOARCHFAMILY); do \
473 echo " $${a}" >> version.go.tmp; \
475 echo ")" >> version.go.tmp
476 echo >> version.go.tmp
477 for a in $(ALLGOARCH); do \
478 f=`echo $${a} | sed -e 's/\(.\).*/\1/' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`; \
479 n="$${f}`echo $${a} | sed -e 's/.//'`"; \
480 if test "$${a}" = "$(GOARCH)"; then \
481 echo "const Goarch$${n} = 1" >> version.go.tmp; \
483 echo "const Goarch$${n} = 0" >> version.go.tmp; \
486 echo >> version.go.tmp
487 echo "const (" >> version.go.tmp
488 echo " ArchFamily = `$(SHELL) $(srcdir)/goarch.sh $(GOARCH) family`" >> version.go.tmp
489 echo " BigEndian = `$(SHELL) $(srcdir)/goarch.sh $(GOARCH) bigendian`" >> version.go.tmp
490 echo " CacheLineSize = `$(SHELL) $(srcdir)/goarch.sh $(GOARCH) cachelinesize`" >> version.go.tmp
491 echo " DefaultPhysPageSize = `$(SHELL) $(srcdir)/goarch.sh $(GOARCH) defaultphyspagesize`" >> version.go.tmp
492 echo " Int64Align = `$(SHELL) $(srcdir)/goarch.sh $(GOARCH) int64align`" >> version.go.tmp
493 echo " MinFrameSize = `$(SHELL) $(srcdir)/goarch.sh $(GOARCH) minframesize`" >> version.go.tmp
494 echo " PCQuantum = `$(SHELL) $(srcdir)/goarch.sh $(GOARCH) pcquantum`" >> version.go.tmp
495 echo ")" >> version.go.tmp
496 echo >> version.go.tmp
497 for a in $(ALLGOOS); do \
498 f=`echo $${a} | sed -e 's/\(.\).*/\1/' -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`; \
499 n="$${f}`echo $${a} | sed -e 's/.//'`"; \
500 if test "$${a}" = "$(GOOS)"; then \
501 echo "const Goos$${n} = 1" >> version.go.tmp; \
503 echo "const Goos$${n} = 0" >> version.go.tmp; \
506 echo >> version.go.tmp
507 echo "type Uintreg uintptr" >> version.go.tmp
508 $(SHELL) $(srcdir)/mvifdiff.sh version.go.tmp version.go
511 cpugen.go: s-cpu; @true
514 echo "package cpu" > cpugen.go.tmp
515 echo "const CacheLinePadSize = `$(SHELL) $(srcdir)/goarch.sh $(GOARCH) cachelinesize`" >> cpugen.go.tmp
516 echo "const FunctionDescriptors = $(FUNCTION_DESCRIPTORS)" >> cpugen.go.tmp
517 $(SHELL) $(srcdir)/mvifdiff.sh cpugen.go.tmp cpugen.go
520 gcpugen.go: s-gcpu; @true
523 echo "package cpu" > gcpugen.go.tmp
524 echo "const cacheLineSize = `$(SHELL) $(srcdir)/goarch.sh $(GOARCH) cachelinesize`" >> gcpugen.go.tmp
525 $(SHELL) $(srcdir)/mvifdiff.sh gcpugen.go.tmp gcpugen.go
528 objabi.go: s-objabi; @true
531 echo "package objabi" > objabi.go.tmp
532 echo "import \"runtime\"" >> objabi.go.tmp
533 echo 'func defaultGOROOTValue() string { return `$(prefix)` }' >> objabi.go.tmp
534 echo 'const defaultGO386 = `sse2`' >> objabi.go.tmp
535 echo 'const defaultGOARM = `5`' >> objabi.go.tmp
536 echo 'const defaultGOMIPS = `hardfloat`' >> objabi.go.tmp
537 echo 'const defaultGOMIPS64 = `hardfloat`' >> objabi.go.tmp
538 echo 'const defaultGOPPC64 = `power8`' >> objabi.go.tmp
539 echo 'const defaultGOOS = runtime.GOOS' >> objabi.go.tmp
540 echo 'const defaultGOARCH = runtime.GOARCH' >> objabi.go.tmp
541 echo 'const defaultGO_EXTLINK_ENABLED = ``' >> objabi.go.tmp
542 echo 'const defaultGO_LDSO = ``' >> objabi.go.tmp
543 echo 'const version = `'`cat $(srcdir)/VERSION | sed 1q`' '`$(GOC) --version | sed 1q`'`' >> objabi.go.tmp
544 echo 'const stackGuardMultiplierDefault = 1' >> objabi.go.tmp
545 echo 'const goexperiment = ``' >> objabi.go.tmp
546 $(SHELL) $(srcdir)/mvifdiff.sh objabi.go.tmp objabi.go
549 gccgosizes.go: s-gccgosizes; @true
550 s-gccgosizes: Makefile goarch.sh
551 rm -f gccgosizes.go.tmp
552 echo "package types" > gccgosizes.go.tmp
553 echo >> gccgosizes.go.tmp
554 echo "var gccgoArchSizes = map[string]*StdSizes{" >> gccgosizes.go.tmp
555 for a in $(ALLGOARCH); do \
556 ptrsize=`$(SHELL) $(srcdir)/goarch.sh $$a ptrsize`; \
557 maxalign=`$(SHELL) $(srcdir)/goarch.sh $$a maxalign`; \
558 echo " \"$$a\": {$${ptrsize}, $${maxalign}}," >> gccgosizes.go.tmp; \
560 echo "}" >> gccgosizes.go.tmp
561 $(SHELL) $(srcdir)/mvifdiff.sh gccgosizes.go.tmp gccgosizes.go
564 runtime_sysinfo.go: s-runtime_sysinfo; @true
565 s-runtime_sysinfo: $(srcdir)/mkrsysinfo.sh gen-sysinfo.go
566 GOARCH=$(GOARCH) GOOS=$(GOOS) $(SHELL) $(srcdir)/mkrsysinfo.sh
567 $(SHELL) $(srcdir)/mvifdiff.sh tmp-runtime_sysinfo.go runtime_sysinfo.go
570 sigtab.go: s-sigtab; @true
571 s-sigtab: $(srcdir)/mksigtab.sh gen-sysinfo.go
572 GOOS=$(GOOS) $(SHELL) $(srcdir)/mksigtab.sh > tmp-sigtab.go
573 $(SHELL) $(srcdir)/mvifdiff.sh tmp-sigtab.go sigtab.go
576 GCCGO_INSTALL_NAME := $(shell echo gccgo|sed '$(program_transform_name)')
577 GCC_INSTALL_NAME := $(shell echo gcc|sed '$(program_transform_name)')
578 GXX_INSTALL_NAME := $(shell echo g++|sed '$(program_transform_name)')
580 zdefaultcc.go: s-zdefaultcc; @true
581 s-zdefaultcc: Makefile
582 echo 'package cfg' > zdefaultcc.go.tmp
583 echo >> zdefaultcc.go.tmp
584 echo 'func DefaultGCCGO(goos, goarch string) string { return "$(bindir)/$(GCCGO_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
585 echo 'func DefaultCC(goos, goarch string) string { return "$(GCC_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
586 echo 'func DefaultCXX(goos, goarch string) string { return "$(GXX_INSTALL_NAME)" }' >> zdefaultcc.go.tmp
587 echo 'const DefaultPkgConfig = "pkg-config"' >> zdefaultcc.go.tmp
588 echo 'var OSArchSupportsCgo = map[string]bool{}' >> zdefaultcc.go.tmp
589 $(SHELL) $(srcdir)/../move-if-change zdefaultcc.go.tmp zdefaultcc.go
592 # Post-process runtime.inc.raw (raw output of -fgo-c-header option when
593 # compiling runtime) to prune out certain types that should not be
594 # exported back to C. See comments in mkruntimeinc.sh for more details.
595 runtime.inc: s-runtime-inc; @true
596 s-runtime-inc: runtime.lo mkruntimeinc.sh Makefile
597 $(SHELL) $(srcdir)/mkruntimeinc.sh
598 $(SHELL) $(srcdir)/mvifdiff.sh tmp-runtime.inc runtime.inc
601 noinst_DATA += zdefaultcc.go
603 # Generate the list of go std packages that were included in libgo
604 zstdpkglist.go: s-zstdpkglist; @true
605 s-zstdpkglist: Makefile
606 rm -f zstdpkglist.go.tmp
607 echo 'package goroot' > zstdpkglist.go.tmp
608 echo "" >> zstdpkglist.go.tmp
609 echo 'var stdpkg = map[string]bool{' >> zstdpkglist.go.tmp
610 echo $(libgo_go_objs) 'unsafe.lo' 'runtime/cgo.lo' | sed 's|[a-z0-9_./]*_c\.lo||g' | sed 's|\([a-z0-9_./]*\)\.lo|"\1": true,|g' >> zstdpkglist.go.tmp
611 echo '}' >> zstdpkglist.go.tmp
612 $(SHELL) $(srcdir)/mvifdiff.sh zstdpkglist.go.tmp zstdpkglist.go
616 syscall_epoll_file = epoll.go
621 libcalls.go: s-libcalls; @true
622 s-libcalls: libcalls-list go/syscall/mksyscall.awk $(srcdir)/go/syscall/*.go
623 rm -f libcalls.go.tmp
624 $(AWK) -f $(srcdir)/go/syscall/mksyscall.awk `cat libcalls-list` > libcalls.go.tmp
625 $(SHELL) $(srcdir)/mvifdiff.sh libcalls.go.tmp libcalls.go
628 libcalls-list: s-libcalls-list; @true
629 s-libcalls-list: Makefile $(srcdir)/go/syscall/*.go
630 rm -f libcalls-list.tmp
631 $(SHELL) $(srcdir)/match.sh --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/syscall $(matchargs_syscall) > libcalls-list.tmp
632 $(SHELL) $(srcdir)/mvifdiff.sh libcalls-list.tmp libcalls-list
635 syscall_arch.go: s-syscall_arch; @true
636 s-syscall_arch: Makefile
637 rm -f syscall_arch.go.tmp
638 echo "package syscall" > syscall_arch.go.tmp
639 echo 'const ARCH = "'$(GOARCH)'"' >> syscall_arch.go.tmp
640 echo 'const OS = "'$(GOOS)'"' >> syscall_arch.go.tmp
641 $(SHELL) $(srcdir)/mvifdiff.sh syscall_arch.go.tmp syscall_arch.go
645 $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
646 $(CPPFLAGS) $(OSCFLAGS) -O
648 gen-sysinfo.go: s-gen-sysinfo; @true
649 s-gen-sysinfo: $(srcdir)/sysinfo.c config.h
650 $(CC) $(SYSINFO_FLAGS) -fdump-go-spec=tmp-gen-sysinfo.go -std=gnu99 -S -o sysinfo.s $(srcdir)/sysinfo.c
652 $(SHELL) $(srcdir)/mvifdiff.sh tmp-gen-sysinfo.go gen-sysinfo.go
655 errno.i: s-errno; @true
657 echo '#include <errno.h>' | $(CC) $(SYSINFO_FLAGS) -x c - -E -dM > tmp-errno.i
658 $(SHELL) $(srcdir)/mvifdiff.sh tmp-errno.i errno.i
661 sysinfo.go: s-sysinfo; @true
662 s-sysinfo: $(srcdir)/mksysinfo.sh gen-sysinfo.go errno.i
663 GOARCH=$(GOARCH) GOOS=$(GOOS) $(SHELL) $(srcdir)/mksysinfo.sh
664 $(SHELL) $(srcdir)/mvifdiff.sh tmp-sysinfo.go sysinfo.go
667 # The epoll struct has an embedded union and is packed on x86_64,
668 # which is too complicated for mksysinfo.sh. We find the offset of
669 # the only field we care about in configure.ac, and generate the
671 epoll.go: s-epoll; @true
674 echo 'package syscall' > epoll.go.tmp
675 echo 'type EpollEvent struct {' >> epoll.go.tmp
676 echo ' Events uint32' >> epoll.go.tmp
677 case "$(SIZEOF_STRUCT_EPOLL_EVENT),$(STRUCT_EPOLL_EVENT_FD_OFFSET)" in \
678 0,0) echo 1>&2 "*** struct epoll_event data.fd offset unknown"; \
680 8,4) echo ' Fd int32' >> epoll.go.tmp; ;; \
681 12,4) echo ' Fd int32' >> epoll.go.tmp; \
682 echo ' Pad [4]byte' >> epoll.go.tmp; ;; \
683 12,8) echo ' Pad [4]byte' >> epoll.go.tmp; \
684 echo ' Fd int32' >> epoll.go.tmp; ;; \
685 16,8) echo ' Pad [4]byte' >> epoll.go.tmp; \
686 echo ' Fd int32' >> epoll.go.tmp; \
687 echo ' Pad2 [4]byte' >> epoll.go.tmp; ;; \
688 *) echo 1>&2 "*** struct epoll_event unsupported"; \
691 echo '}' >> epoll.go.tmp
692 $(SHELL) $(srcdir)/mvifdiff.sh epoll.go.tmp epoll.go
696 syscall_lib_clone_lo = syscall/clone_linux.lo
698 syscall_lib_clone_lo =
702 golangorg_x_sys_cpu_gccgo_lo = golang.org/x/sys/cpu_gccgo.lo
704 golangorg_x_sys_cpu_gccgo_lo =
707 PACKAGES = $(shell cat $(srcdir)/libgo-packages.txt)
710 $(addsuffix .lo,$(PACKAGES)) \
711 internal/bytealg/bytealg.lo \
712 reflect/makefunc_ffi_c.lo \
713 $(syscall_lib_clone_lo) \
717 $(golangorg_x_net_lif_lo) \
718 $(golangorg_x_net_route_lo) \
719 log/syslog/syslog_c.lo \
720 $(os_lib_inotify_lo) \
721 runtime/internal/atomic_c.lo \
723 internal/cpu/cpu_gccgo.lo \
724 $(golangorg_x_sys_cpu_gccgo_lo)
727 -version-info $(libtool_VERSION) $(PTHREAD_CFLAGS) $(AM_LDFLAGS)
730 $(libgo_go_objs) ../libbacktrace/libbacktrace.la \
731 $(LIBATOMIC) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)
733 libgo_la_SOURCES = $(runtime_files)
734 libgo_la_LDFLAGS = $(libgo_ldflags)
735 libgo_la_LIBADD = $(libgo_libadd)
737 libgo_llgo_la_SOURCES = $(runtime_files)
738 libgo_llgo_la_LDFLAGS = $(libgo_ldflags)
739 libgo_llgo_la_LIBADD = $(libgo_libadd)
741 libgobegin_a_SOURCES = \
744 libgobegin_llgo_a_SOURCES = \
747 # Use -fPIC for libgobegin so that it can be put in a PIE.
748 libgobegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
749 libgobegin_llgo_a_CFLAGS = $(AM_CFLAGS) -fPIC
751 libgolibbegin_a_SOURCES = \
754 libgolibbegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
756 GOTOOL_PACKAGES = $(shell cat $(srcdir)/gotool-packages.txt)
758 libgotool_a_SOURCES =
759 libgotool_a_DEPENDENCIES = $(addsuffix .lo,$(GOTOOL_PACKAGES))
760 libgotool_a_LIBADD = $(addsuffix .o,$(GOTOOL_PACKAGES))
762 define STATIC_template
763 $(subst -,_,$(subst .,_,$(subst /,_,$(1))))_GOCFLAGS = -static
766 $(foreach package,$(GOTOOL_PACKAGES),$(eval $(call STATIC_template,$(package).lo)))
768 # Make sure runtime.inc is built before compiling any .c file.
769 $(libgo_la_OBJECTS): runtime.inc
770 $(libgo_llgo_la_OBJECTS): runtime.inc
771 $(libgobegin_a_OBJECTS): runtime.inc
772 $(libgobegin_llgo_a_OBJECTS): runtime.inc
773 $(libgolibbegin_a_OBJECTS): runtime.inc
775 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
778 AM_GOCFLAGS = $(STRINGOPS_FLAG) $(GO_SPLIT_STACK)
779 GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
781 LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
782 $(AM_GOCFLAGS) $(GOCFLAGS)
784 GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
785 $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
787 # Build the dependencies for a Go package.
790 dir=`echo $@ | sed -e 's/.lo.dep$$//'`; \
791 files=`$(SHELL) $(srcdir)/match.sh --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/$$dir --extrafiles="$(extra_go_files_$(subst .,_,$(subst /,_,$(subst .lo.dep,,$@))))" $(matchargs_$(subst /,_,$(subst .lo.dep,,$@)))`; \
792 $(SHELL) $(srcdir)/godeps.sh `echo $@ | sed -e 's/.dep$$//'` $$files > $@.tmp; \
793 if ! cmp $@.tmp $@ >/dev/null 2>/dev/null; then \
794 rm -f `echo $@ | sed -e 's/\.dep$$//'`; \
798 # Build the .go files for a package, generating a .lo file.
801 files=`echo $^ | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; \
802 $(LTGOCOMPILE) -I . -c -fgo-pkgpath=`echo $@ | sed -e 's/.lo$$//'` $($(subst -,_,$(subst .,_,$(subst /,_,$@)))_GOCFLAGS) -o $@ $$files
804 # How to build a .gox file from a .lo file.
805 # Matching .o file can either be in the same directory as the .lo (non-PIC
806 # object) or in the .libs directory (PIC object).
808 f="$(basename $<).o"; \
809 if test ! -f $$f; then \
810 f="$(basename $(<D)/.libs/$(<F)).o"; \
812 $(OBJCOPY) -j $(GO_EXPORT_SECTION_NAME) $$f $@.tmp; \
813 $(SHELL) $(srcdir)/mvifdiff.sh $@.tmp `echo $@ | sed -e 's/s-gox/gox/'`
820 GC="$(GOC) $(GOCFLAGS) $($(subst /,_,$@)_GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
822 GOLIBS="$(extra_check_libs_$(subst .,_,$(subst /,_,$(@D)))) $(MATH_LIBS) $(NET_LIBS) $(LIBS)"; \
824 RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
825 export RUNTESTFLAGS; \
830 libgccdir=`${GOC} ${GOCFLAGS} -print-libgcc-file-name | sed -e 's|/[^/]*$$||'`; \
831 LD_LIBRARY_PATH="`${PWD_COMMAND}`/.libs:$${libgccdir}:${LD_LIBRARY_PATH}"; \
832 LD_LIBRARY_PATH=`echo $${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
833 export LD_LIBRARY_PATH; \
835 rm -f $@-testsum $@-testlog; \
836 files=`$(SHELL) $(srcdir)/match.sh --goarch=$(GOARCH) --goos=$(GOOS) --srcdir=$(srcdir)/go/$(@D) --extrafiles="$(extra_go_files_$(subst .,_,$(subst /,_,$(@D))))" $(matchargs_$(subst /,_,$(@D)))`; \
837 if test "$(USE_DEJAGNU)" = "yes"; then \
838 $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" --testname="$(@D)" $(GOTESTFLAGS); \
839 elif test "$(GOBENCH)" != ""; then \
840 $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" --bench="$(GOBENCH)" $(GOTESTFLAGS); \
842 if $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GOOS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$$files" $(GOTESTFLAGS) >>$@-testlog 2>&1; then \
843 echo "PASS: $(@D)" >> $@-testlog; \
844 echo "PASS: $(@D)"; \
845 echo "PASS: $(@D)" > $@-testsum; \
847 echo "FAIL: $(@D)" >> $@-testlog; \
849 echo "FAIL: $(@D)" > $@-testsum; \
854 # Build all packages before checking any.
856 $(toolexeclibgo_DATA) \
857 $(toolexeclibgoarchive_DATA) \
858 $(toolexeclibgocompress_DATA) \
859 $(toolexeclibgocontainer_DATA) \
860 $(toolexeclibgocrypto_DATA) \
861 $(toolexeclibgodebug_DATA) \
862 $(toolexeclibgoencoding_DATA) \
863 $(toolexeclibgogo_DATA) \
864 $(toolexeclibgohash_DATA) \
865 $(toolexeclibgoimage_DATA) \
866 $(toolexeclibgoindex_DATA) \
867 $(toolexeclibgoio_DATA) \
868 $(toolexeclibgolog_DATA) \
869 $(toolexeclibgomath_DATA) \
870 $(toolexeclibgomime_DATA) \
871 $(toolexeclibgonet_DATA) \
872 $(toolexeclibgonethttp_DATA) \
873 $(toolexeclibgoos_DATA) \
874 $(toolexeclibgopath_DATA) \
875 $(toolexeclibgorpc_DATA) \
876 $(toolexeclibgoruntime_DATA) \
877 $(toolexeclibgosync_DATA) \
878 $(toolexeclibgotesting_DATA) \
879 $(toolexeclibgotext_DATA) \
880 $(toolexeclibgotexttemplate_DATA) \
881 $(toolexeclibgounicode_DATA) \
886 CHECK_DEPS += libgo-llgo.la libgobegin-llgo.a
888 CHECK_DEPS += libgo.la libgobegin.a
891 # PACKAGE_template defines the rules for each package.
892 # For example, for the package bufio, it produces:
894 # @go_include@ bufio.lo.dep
895 # bufio.lo.dep: $(srcdir)/go/bufio/*.go
899 # bufio/check: $(CHECK_DEPS)
901 # .PHONY: bufio/check
903 # This is invoked with $(1) set to a package, which is a directory name,
904 # such as "bufio" or "archive/tar".
905 define PACKAGE_template
906 @go_include@ $(1).lo.dep
907 $(1).lo.dep: $(srcdir)/go/$(1)/*.go
911 $(1)/check: $$(CHECK_DEPS)
914 $(1).gox: $(1).s-gox; @true
920 # This line expands PACKAGE_template once for each package name listed
922 $(foreach package,$(PACKAGES),$(eval $(call PACKAGE_template,$(package))))
923 $(foreach package,$(GOTOOL_PACKAGES),$(eval $(call PACKAGE_template,$(package))))
925 # Pass -ffp-contract=off, or 386-specific options, when building the
926 # math package. MATH_FLAG is defined in configure.ac.
927 math_lo_GOCFLAGS = $(MATH_FLAG)
928 math_check_GOCFLAGS = $(MATH_FLAG)
930 # Add the generated file runtime_sysinfo.go to the runtime package.
931 extra_go_files_runtime = runtime_sysinfo.go sigtab.go
932 runtime.lo.dep: $(extra_go_files_runtime)
934 # Add generated files to the syscall package.
935 extra_go_files_syscall = \
939 $(syscall_epoll_file)
940 syscall.lo.dep: $(extra_go_files_syscall)
942 # Pass -fgo-compiling-runtime when compiling the runtime package.
943 runtime_lo_GOCFLAGS = -fgo-c-header=runtime.inc.raw -fgo-compiling-runtime
944 runtime_check_GOCFLAGS = -fgo-compiling-runtime
945 runtime_internal_atomic_lo_GOCFLAGS = -fgo-compiling-runtime
946 runtime_internal_atomic_lo_check_GOCFLAGS = -fgo-compiling-runtime
947 runtime_internal_sys_lo_GOCFLAGS = -fgo-compiling-runtime
948 runtime_internal_sys_lo_check_GOCFLAGS = -fgo-compiling-runtime
950 # If libffi is supported (the normal case) use the ffi build tag for
951 # the runtime package.
953 matchargs_runtime = --tag=libffi
958 # At least for now, we need -static-libgo for this test, because
959 # otherwise we can't get the line numbers.
960 # Also use -fno-inline to get better results from the memory profiler.
961 runtime_pprof_check_GOCFLAGS = -static-libgo -fno-inline
963 extra_go_files_runtime_internal_sys = version.go
964 runtime/internal/sys.lo.dep: $(extra_go_files_runtime_internal_sys)
966 extra_go_files_internal_cpu = cpugen.go
967 internal/cpu.lo.dep: $(extra_go_files_internal_cpu)
969 extra_go_files_golang_org_x_sys_cpu = gcpugen.go
970 golang.org/x/sys/cpu.lo.dep: $(extra_go_files_golang_org_x_sys_cpu)
972 extra_go_files_internal_goroot = zstdpkglist.go
973 internal/goroot.lo.dep: $(extra_go_files_internal_goroot)
975 extra_go_files_go_types = gccgosizes.go
976 go/types.lo.dep: $(extra_go_files_go_types)
978 extra_go_files_cmd_internal_objabi = objabi.go
979 cmd/internal/objabi.lo.dep: $(extra_go_files_cmd_internal_objabi)
981 extra_go_files_cmd_go_internal_cfg = zdefaultcc.go
982 cmd/go/internal/cfg.lo.dep: $(extra_go_files_cmd_go_internal_cfg)
984 extra_check_libs_cmd_go_internal_cache = $(abs_builddir)/libgotool.a
985 extra_check_libs_cmd_go_internal_generate = $(abs_builddir)/libgotool.a
986 extra_check_libs_cmd_go_internal_get = $(abs_builddir)/libgotool.a
987 extra_check_libs_cmd_go_internal_load = $(abs_builddir)/libgotool.a
988 extra_check_libs_cmd_go_internal_lockedfile = $(abs_builddir)/libgotool.a
989 extra_check_libs_cmd_go_internal_imports = $(abs_builddir)/libgotool.a
990 extra_check_libs_cmd_go_internal_modconv = $(abs_builddir)/libgotool.a
991 extra_check_libs_cmd_go_internal_modfetch = $(abs_builddir)/libgotool.a
992 extra_check_libs_cmd_go_internal_modfetch_codehost = $(abs_builddir)/libgotool.a
993 extra_check_libs_cmd_go_internal_modfile = $(abs_builddir)/libgotool.a
994 extra_check_libs_cmd_go_internal_modload = $(abs_builddir)/libgotool.a
995 extra_check_libs_cmd_go_internal_module = $(abs_builddir)/libgotool.a
996 extra_check_libs_cmd_go_internal_mvs = $(abs_builddir)/libgotool.a
997 extra_check_libs_cmd_go_internal_search = $(abs_builddir)/libgotool.a
998 extra_check_libs_cmd_go_internal_web2 = $(abs_builddir)/libgotool.a
999 extra_check_libs_cmd_go_internal_work = $(abs_builddir)/libgotool.a
1001 extra_check_libs_cmd_vet_internal_cfg = $(abs_builddir)/libgotool.a
1003 # FIXME: The following C files may as well move to the runtime
1004 # directory and be treated like other C files.
1006 # Use C code to speed up internal/bytealg.IndexByte and friends.
1007 internal/bytealg/bytealg.lo: go/internal/bytealg/bytealg.c runtime.inc
1008 @$(MKDIR_P) internal/bytealg
1009 $(LTCOMPILE) -c -o $@ $(srcdir)/go/internal/bytealg/bytealg.c
1011 # Use a C function with a fixed number of arguments to call a C
1013 log/syslog/syslog_c.lo: go/log/syslog/syslog_c.c runtime.inc
1014 @$(MKDIR_P) log/syslog
1015 $(LTCOMPILE) -c -o $@ $(srcdir)/go/log/syslog/syslog_c.c
1017 # The interface to libffi from the reflect package is written in C.
1018 reflect/makefunc_ffi_c.lo: go/reflect/makefunc_ffi_c.c runtime.inc
1020 $(LTCOMPILE) -c -o $@ $(srcdir)/go/reflect/makefunc_ffi_c.c
1022 # The atomic functions are written in C.
1023 runtime/internal/atomic_c.lo: go/runtime/internal/atomic/atomic.c runtime.inc
1024 @$(MKDIR_P) runtime/internal
1025 $(LTCOMPILE) -c -o $@ $(srcdir)/go/runtime/internal/atomic/atomic.c
1026 sync/atomic_c.lo: go/sync/atomic/atomic.c runtime.inc
1028 $(LTCOMPILE) -c -o $@ $(srcdir)/go/sync/atomic/atomic.c
1030 # A few syscall functions are written in C.
1031 syscall/clone_linux.lo: go/syscall/clone_linux.c runtime.inc
1033 $(LTCOMPILE) -c -o $@ $(srcdir)/go/syscall/clone_linux.c
1034 syscall/errno.lo: go/syscall/errno.c runtime.inc
1036 $(LTCOMPILE) -c -o $@ $(srcdir)/go/syscall/errno.c
1037 syscall/signame.lo: go/syscall/signame.c runtime.inc
1039 $(LTCOMPILE) -c -o $@ $(srcdir)/go/syscall/signame.c
1040 syscall/wait.lo: go/syscall/wait.c runtime.inc
1042 $(LTCOMPILE) -c -o $@ $(srcdir)/go/syscall/wait.c
1044 # internal/cpu needs some C code.
1045 internal/cpu/cpu_gccgo.lo: go/internal/cpu/cpu_gccgo.c runtime.inc
1046 @$(MKDIR_P) internal/cpu
1047 $(LTCOMPILE) -c -o $@ $(srcdir)/go/internal/cpu/cpu_gccgo.c
1049 # Similarly, golang.org/x/sys/cpu needs some C code.
1050 golang.org/x/sys/cpu_gccgo.lo: go/golang.org/x/sys/cpu/cpu_gccgo.c runtime.inc
1051 @$(MKDIR_P) golang.org/x/sys
1052 $(LTCOMPILE) -c -o $@ $(srcdir)/go/golang.org/x/sys/cpu/cpu_gccgo.c
1054 # Solaris 11.4 changed the type of fields in struct stat.
1055 # Use a build tag, based on a configure check, to cope.
1057 if HAVE_STAT_TIMESPEC
1058 matchargs_os = --tag=solaristag
1068 # Build golang.org/x/net/route only on BSD systems.
1070 $(eval $(call PACKAGE_template,golang.org/x/net/route))
1072 golangorg_x_net_route_lo = \
1073 golang.org/net/route.lo
1079 # Build golang.org/x/net/lif only on Solaris systems.
1081 $(eval $(call PACKAGE_template,golang.org/x/net/lif))
1083 golangorg_x_net_lif_lo = \
1084 golang.org/x/net/lif.lo
1088 TEST_PACKAGES = $(addsuffix /check,$(shell cat $(srcdir)/check-packages.txt))
1091 check-recursive: check-head
1094 @echo "Test Run By $${USER} on `date`" > libgo.head
1095 @echo "Native configuration is $(host_triplet)" >> libgo.head
1097 @echo " === libgo tests ===" >> libgo.head
1100 check-tail: check-recursive check-multi
1101 @if test "$(USE_DEJAGNU)" = "yes"; then \
1104 lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
1105 for dir in . $(MULTIDIRS); do \
1106 mv ../$${dir}/$${lib}/libgo.sum ../$${dir}/$${lib}/libgo.sum.sep; \
1107 mv ../$${dir}/$${lib}/libgo.log ../$${dir}/$${lib}/libgo.log.sep; \
1109 mv libgo.head libgo.sum; \
1110 cp libgo.sum libgo.log; \
1111 echo "Schedule of variations:" >> libgo.sum; \
1112 for dir in . $(MULTIDIRS); do \
1113 multidir=../$${dir}/$${lib}; \
1114 multivar=`cat $${multidir}/libgo.var`; \
1115 echo " $${multivar}" >> libgo.sum; \
1117 echo >> libgo.sum; \
1118 pass=0; fail=0; untested=0; \
1119 for dir in . $(MULTIDIRS); do \
1120 multidir=../$${dir}/$${lib}; \
1121 multivar=`cat $${multidir}/libgo.var`; \
1122 echo "Running target $${multivar}" >> libgo.sum; \
1123 echo "Running $(srcdir)/libgo.exp ..." >> libgo.sum; \
1124 cat $${multidir}/libgo.sum.sep >> libgo.sum; \
1125 cat $${multidir}/libgo.log.sep >> libgo.log; \
1126 if test -n "${MULTIDIRS}"; then \
1127 echo " === libgo Summary for $${multivar} ===" >> libgo.sum; \
1128 echo >> libgo.sum; \
1130 p=`grep -c PASS $${multidir}/libgo.sum.sep`; \
1131 pass=`expr $$pass + $$p`; \
1132 if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
1133 echo "# of expected passes $$p" >> libgo.sum; \
1135 p=`grep -c FAIL $${multidir}/libgo.sum.sep`; \
1136 fail=`expr $$fail + $$p`; \
1137 if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
1138 echo "# of unexpected failures $$p" >> libgo.sum; \
1140 p=`grep -c UNTESTED $${multidir}/libgo.sum.sep`; \
1141 untested=`expr $$untested + $$p`; \
1142 if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
1143 echo "# of untested testcases $$p" >> libgo.sum; \
1146 echo >> libgo.sum; \
1147 echo " === libgo Summary ===" >> libgo.sum; \
1148 echo >> libgo.sum; \
1149 if test "$$pass" -ne "0"; then \
1150 echo "# of expected passes $$pass" >> libgo.sum; \
1152 if test "$$fail" -ne "0"; then \
1153 echo "# of unexpected failures $$fail" >> libgo.sum; \
1155 if test "$$untested" -ne "0"; then \
1156 echo "# of untested testcases $$untested" >> libgo.sum; \
1158 echo `echo $(GOC) | sed -e 's/ .*//'` `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
1159 echo >> libgo.log; \
1160 echo "runtest completed at `date`" >> libgo.log; \
1161 if test "$$fail" -ne "0"; then \
1169 @rm -f libgo.sum libgo.log libgo.tail
1171 [ -z "$(MULTIFLAGS)" ] || multivar="$${multivar}/$(MULTIFLAGS)"; \
1172 echo "$${multivar}" > libgo.var
1173 @for f in $(TEST_PACKAGES); do \
1174 rm -f $$f-testsum $$f-testlog; \
1176 -@$(MAKE) $(AM_MAKEFLAGS) -k $(TEST_PACKAGES)
1177 @for f in $(TEST_PACKAGES); do \
1178 if test -f $$f-testsum; then \
1179 cat $$f-testsum >> libgo.sum; \
1181 if test -f $$f-testlog; then \
1182 cat $$f-testlog >> libgo.log; \
1187 $(MULTIDO) $(AM_MAKEFLAGS) DO=check-am multi-do # $(MAKE)
1190 -@$(MAKE) $(AM_MAKEFLAGS) -k $(TEST_PACKAGES) GOBENCH=.
1192 MOSTLYCLEANFILES = \
1193 s-runtime_sysinfo s-sigtab s-runtime-inc s-zstdpkglist \
1194 s-libcalls s-libcalls-list s-syscall_arch s-gen-sysinfo s-sysinfo \
1196 libgo.head libgo.sum.sep libgo.log.sep libgo.var \
1198 runtime.inc runtime.inc.tmp2 runtime.inc.tmp3 runtime.inc.raw
1201 find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
1202 find . -name '*.$(OBJEXT)' -print | xargs rm -f
1203 find . -name '*-testsum' -print | xargs rm -f
1204 find . -name '*-testlog' -print | xargs rm -f
1206 CLEANFILES = *.go *.c s-* libgo.sum libgo.log runtime.inc
1209 find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
1210 find . -name '*.a' -print | xargs rm -f
1211 find . -name '*.gox' -print | xargs rm -f
1212 find . -name '*.s-gox' -print | xargs rm -f
1215 find . -name '*.lo.dep' -print | xargs rm -f
1217 include $(top_srcdir)/../multilib.am