2008-11-14 11:45:23 -07:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
include ../../Make.conf
|
|
|
|
|
|
|
|
# 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=6cov
|
|
|
|
OFILES=\
|
|
|
|
main.$O\
|
|
|
|
tree.$O\
|
|
|
|
|
|
|
|
HFILES=\
|
|
|
|
tree.h\
|
|
|
|
|
|
|
|
$(TARG): $(OFILES)
|
2009-10-22 11:59:27 -06:00
|
|
|
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach -lbio -l9
|
2008-11-14 11:45:23 -07:00
|
|
|
|
|
|
|
clean:
|
2009-10-03 11:38:03 -06:00
|
|
|
rm -f *.$O $(TARG)
|
2008-11-14 11:45:23 -07:00
|
|
|
|
2009-09-22 08:48:43 -06:00
|
|
|
install: install-$(shell uname | tr A-Z a-z)
|
2008-11-18 11:08:46 -07:00
|
|
|
install-linux: install-default
|
2009-11-17 09:20:58 -07:00
|
|
|
install-freebsd: install-default
|
2008-11-18 11:08:46 -07:00
|
|
|
|
|
|
|
# on Darwin, have to install and setgid; see $GOROOT/src/sudo.bash
|
|
|
|
install-darwin: $(TARG)
|
|
|
|
@true
|
|
|
|
|
|
|
|
install-default: $(TARG)
|
2009-07-28 12:23:24 -06:00
|
|
|
cp $(TARG) $(GOBIN)/$(TARG)
|
2008-11-14 11:45:23 -07:00
|
|
|
|
|
|
|
$(OFILES): $(HFILES)
|