From d0dff2bff050562ab792f63b559d7f26a0fd08f3 Mon Sep 17 00:00:00 2001 From: "legoff.laurent" Date: Mon, 13 Dec 2010 10:12:59 +0000 Subject: [PATCH] add makefiles --- postscript-go/src/cmd/Makefile | 16 ++++++++++++++++ postscript-go/src/cmd/testpostscript.go | 3 ++- postscript-go/src/pkg/postscript/Makefile | 16 ++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 postscript-go/src/cmd/Makefile create mode 100644 postscript-go/src/pkg/postscript/Makefile diff --git a/postscript-go/src/cmd/Makefile b/postscript-go/src/cmd/Makefile new file mode 100644 index 0000000..7423d7d --- /dev/null +++ b/postscript-go/src/cmd/Makefile @@ -0,0 +1,16 @@ + +include $(GOROOT)/src/Make.inc + +TARG=testpostscript +OFILES=$(TARG:%=%.$O) + +all: $(TARG) + +$(TARG): %: %.$O + $(LD) -o $@ $< + +$(OFILES): %.$O: %.go Makefile + $(GC) -o $@ $< + +clean: + rm -f *.[$(OS)] $(TARG) $(CLEANFILES) diff --git a/postscript-go/src/cmd/testpostscript.go b/postscript-go/src/cmd/testpostscript.go index dff39be..9835f6e 100644 --- a/postscript-go/src/cmd/testpostscript.go +++ b/postscript-go/src/cmd/testpostscript.go @@ -9,7 +9,8 @@ import ( "image" "image/png" "draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d" - "postscript" + //"postscript" + "postscript-go.googlecode.com/svn/trunk/postscript-go/src/pkg/postscript" ) diff --git a/postscript-go/src/pkg/postscript/Makefile b/postscript-go/src/pkg/postscript/Makefile new file mode 100644 index 0000000..d4e0cce --- /dev/null +++ b/postscript-go/src/pkg/postscript/Makefile @@ -0,0 +1,16 @@ +include $(GOROOT)/src/Make.inc + +TARG=postscript-go.googlecode.com/svn/trunk/postscript-go/src/pkg/postscript +GOFILES=\ + interpreter.go\ + operators.go\ + operators_control.go\ + operators_dictionary.go\ + operators_graphics.go\ + operators_math.go\ + operators_relational.go\ + operators_stack.go\ + procedure.go\ + scanner.go\ + +include $(GOROOT)/src/Make.pkg