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.
|
|
|
|
|
2010-08-18 08:08:49 -06:00
|
|
|
include ../../src/Make.inc
|
2010-02-09 14:33:00 -07:00
|
|
|
|
|
|
|
ALL=\
|
|
|
|
parser\
|
|
|
|
peano\
|
|
|
|
tree\
|
|
|
|
|
2010-02-09 21:29:08 -07:00
|
|
|
all: $(addsuffix .out, $(ALL))
|
2010-02-09 14:33:00 -07:00
|
|
|
|
2011-01-19 11:41:42 -07:00
|
|
|
%.$O: %.go stats.go
|
|
|
|
$(GC) $*.go stats.go
|
2010-02-09 14:33:00 -07:00
|
|
|
|
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
|
|
|
|