# 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

# The directory is cov because the source is portable and general.
# We call the binary 6cov to avoid confusion and because this binary
# is linked only with amd64 and x86 support.

TARG=\
	6prof\

OFILES=\
	main.$O\

NOINSTALL=1
BIN= $GOBIN
<../mkone

NAME=plan9

install:V: install-$NAME install-pprof
install-linux:V: install-default
install-freebsd:V: install-default
install-windows:V: install-default
install-plan9:V: install-default

# on Darwin, have to install and setgid; see $GOROOT/src/sudo.bash
install-darwin:V: $TARG
	@true

install-default:V: $O.$TARG

install-pprof: gopprof
	cp gopprof $GOBIN/gopprof

$O.$TARG:	$GOLIB/libmach.a
