Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / go.test / test / bench / garbage / Makefile
index 8002a20..9883845 100644 (file)
@@ -2,27 +2,22 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
-include ../../../src/Make.inc
-
 ALL=\
        parser\
        peano\
        tree\
        tree2\
 
-all: $(addsuffix .out, $(ALL))
-
-%.$O: %.go stats.go
-       $(GC) $(GCFLAGS) $(GCIMPORTS) $*.go stats.go
+all: $(ALL)
 
-%.out: %.$O
-       $(LD) -o $@ $*.$O
+%: %.go
+       go build $*.go stats.go
 
-%.bench: %.out
-       time ./$*.out
+%.bench: %
+       time ./$*
 
 bench: $(addsuffix .bench, $(ALL))
 
 clean:
-       rm -f *.[$(OS)] $(addsuffix .out, $(ALL))
+       rm -f $(ALL)