From 1e5a232e9f99fb59afd9ce40516eed05adcb0435 Mon Sep 17 00:00:00 2001 From: Paul J R Date: Tue, 17 Nov 2009 01:49:06 +1100 Subject: [PATCH] Makefile.. trying to figure out the json "interface"... all i can say about it is, fuck me. --- src/Makefile | 24 ++++++++++++++++++++++++ src/cleanit | 1 - src/dbconnector.go | 3 ++- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 src/Makefile delete mode 100755 src/cleanit diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..503493b --- /dev/null +++ b/src/Makefile @@ -0,0 +1,24 @@ +include $(GOROOT)/src/Make.$(GOARCH) + +TARG=dbibridge + +CGOFILES=dbibridge.go +CGO_LDFLAGS=-ldbi + +include $(GOROOT)/src/Make.pkg + +all: install godbhammer + +godbhammer: dbconnector.8 benchcontroller.8 webconnector.8 + $(LD) -o godbhammer webconnector.8 + +dbconnector.8: + $(GC) dbconnector.go + +benchcontroller.8: + $(GC) benchcontroller.go + +webconnector.8: + $(GC) webconnector.go + + diff --git a/src/cleanit b/src/cleanit deleted file mode 100755 index ed7144d..0000000 --- a/src/cleanit +++ /dev/null @@ -1 +0,0 @@ -rm -f *.cgo[1234].* *.so *.o *.a *.8 diff --git a/src/dbconnector.go b/src/dbconnector.go index 0123d4d..fa86e41 100644 --- a/src/dbconnector.go +++ b/src/dbconnector.go @@ -2,7 +2,8 @@ package dbconnector import ( - "./dbibridge"; + //"./dbibridge"; + "dbibridge"; //"strings"; "time"; "rand"; -- 1.7.0.4