2010-02-09 14:33:00 -07:00
|
|
|
# Copyright 2010 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 ../../src/Make.$(GOARCH)
|
|
|
|
|
|
|
|
ALL=\
|
|
|
|
parser\
|
|
|
|
peano\
|
|
|
|
tree\
|
|
|
|
|
2010-02-09 21:29:08 -07:00
|
|
|
all: $(addsuffix .out, $(ALL))
|
2010-02-09 14:33:00 -07:00
|
|
|
|
|
|
|
%.$O: %.go
|
|
|
|
$(GC) $*.go
|
|
|
|
|
2010-02-09 21:29:08 -07:00
|
|
|
%.out: %.$O
|
2010-02-09 14:33:00 -07:00
|
|
|
$(LD) -o $@ $*.$O
|
|
|
|
|
2010-02-09 21:29:08 -07:00
|
|
|
%.bench: %.out
|
|
|
|
./$*.out
|
2010-02-09 14:33:00 -07:00
|
|
|
|
|
|
|
bench: $(addsuffix .bench, $(ALL))
|
|
|
|
|
|
|
|
clean:
|
2010-02-10 01:43:31 -07:00
|
|
|
rm -f *.[$(OS)] $(addsuffix .out, $(ALL))
|
2010-02-09 14:33:00 -07:00
|
|
|
|