</sys/src/mkfile.proto
VERSION=`{$ROOT/src/version.rc}

O= 8
ALEF= ${O}al
AS= ${O}a
CC= ${O}c
GC= ${O}g
LD= ${O}l

# The Go port needs the AR enhancements incorporated
# in the Inferno archiver.
AR=iar

# Conventionally, Plan 9 provides the target LIB directory
# in the library name.  This uses a $O suffix instead and
# specifies the target at install time ($ROOT is obsolescent).
LIBDIR= $ROOT/$objtype/lib

# The Go distribution relies on some GNU bison features, specifically
# for producing error messages.  We don't have a Bison port to Plan 9
# yet, so this is a stop-gap until we do.
# YACC= bison

# During a build of the Go distribution the following
# targets apply unconditionally;
# they can be overridden, but the results are indeterminate
GOOS= plan9
GOARCH= $objtype

# ... these need to be preset by the user or the defaults will be used
GOROOT= $ROOT
GOBIN= $GOROOT/$objtype/bin
GOLIB= $GOROOT/pkg/${GOOS}_$GOARCH
GOROOT_FINAL= $GOROOT		# this is the default

# ... these may as well be set here
# it's preferable if the invoker sets them
GOHOSTOS= plan9
GOHOSTARCH= $cputype		# assumption
