add Makefile (not tested yet, cause on windows) on cmd folder to generate executable for each test

This commit is contained in:
legoff.laurent 2010-11-25 10:52:28 +00:00
parent 46893d701e
commit 9e52537467
4 changed files with 22 additions and 3 deletions

16
draw2d/src/cmd/Makefile Normal file
View file

@ -0,0 +1,16 @@
include $(GOROOT)/src/Make.inc
TARG=gettingStarted testdraw2d testPath
OFILES=$(TARG:%=%.$O)
all: $(TARG)
$(TARG): %: %.$O
$(LD) -o $@ $<
$(OFILES): %.$O: %.go Makefile
$(GC) -o $@ $<
clean:
rm -f *.[$(OS)] $(TARG) $(CLEANFILES)

View file

@ -11,6 +11,7 @@ import (
"image"
"image/png"
//"draw2d"
"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
)

View file

@ -13,7 +13,8 @@ import (
"math"
"image"
"image/png"
"draw2d"
//"draw2d"
"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
)
const (
@ -22,7 +23,7 @@ const (
var (
lastTime int64
folder = "../../../wiki/test_results/"
folder = "../../../../wiki/test_results/"
)
func initGc(w, h int) (image.Image, *draw2d.GraphicContext) {

View file

@ -4,7 +4,8 @@
package main
import (
"draw2d"
//"draw2d"
"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
"fmt"
)