add Makefile (not tested yet, cause on windows) on cmd folder to generate executable for each test
This commit is contained in:
parent
46893d701e
commit
9e52537467
4 changed files with 22 additions and 3 deletions
16
draw2d/src/cmd/Makefile
Normal file
16
draw2d/src/cmd/Makefile
Normal 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)
|
|
@ -11,6 +11,7 @@ import (
|
|||
|
||||
"image"
|
||||
"image/png"
|
||||
//"draw2d"
|
||||
"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
|
||||
)
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"draw2d"
|
||||
//"draw2d"
|
||||
"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue