# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

ROOT= /go
<$ROOT/$objtype/mkfile

BIND= `{bind -b $ROOT/$GOARCH/bin /bin}

TARGDIR= $GOROOT/pkg/${GOOS}_$GOARCH/hash
TARG= crc32			# hash sync

ARCH_GOFILES= `{test -f crc32_$GOARCH.go && echo crc32_$GOARCH.go || echo crc32_generic.go}
ASMFILE= `{test -f crc32_$GOARCH.s && echo crc32_$GOARCH.s || echo}
OFILE= ${ASMFILE:%.s=%.$O}

GOFILES=\
	crc32.go\
	$ARCH_GOFILES

<../../../mkpkg

CLEANFILES=\
	$CLEANFILES\
	$OFILES\
