aboutsummaryrefslogtreecommitdiff
path: root/weed-fs/src/pkg
diff options
context:
space:
mode:
authorchris.lu@gmail.com <chris.lu@gmail.com@282b0af5-e82d-9cf1-ede4-77906d7719d0>2012-01-02 00:45:32 +0000
committerchris.lu@gmail.com <chris.lu@gmail.com@282b0af5-e82d-9cf1-ede4-77906d7719d0>2012-01-02 00:45:32 +0000
commit97a1d587d469aaf9cb4a75effdbd106aabb296fa (patch)
tree2ceed6e75e902657936e44f38957d89f4b669a5f /weed-fs/src/pkg
parent4c2ca916ec7a00e2ff2a3707adfe988896137235 (diff)
downloadseaweedfs-97a1d587d469aaf9cb4a75effdbd106aabb296fa.tar.xz
seaweedfs-97a1d587d469aaf9cb4a75effdbd106aabb296fa.zip
adding makefiles created by go-gb
git-svn-id: https://weed-fs.googlecode.com/svn/trunk@35 282b0af5-e82d-9cf1-ede4-77906d7719d0
Diffstat (limited to 'weed-fs/src/pkg')
-rw-r--r--weed-fs/src/pkg/directory/Makefile35
-rw-r--r--weed-fs/src/pkg/storage/Makefile36
-rw-r--r--weed-fs/src/pkg/util/Makefile31
3 files changed, 102 insertions, 0 deletions
diff --git a/weed-fs/src/pkg/directory/Makefile b/weed-fs/src/pkg/directory/Makefile
new file mode 100644
index 000000000..55cc4ce50
--- /dev/null
+++ b/weed-fs/src/pkg/directory/Makefile
@@ -0,0 +1,35 @@
+# Makefile generated by gb: http://go-gb.googlecode.com
+# gb provides configuration-free building and distributing
+
+include $(GOROOT)/src/Make.inc
+
+TARG=directory
+GOFILES=\
+ file_id.go\
+ volume_mapping.go\
+
+# gb: this is the local install
+GBROOT=../../..
+
+# gb: compile/link against local install
+GCIMPORTS+= -I $(GBROOT)/_obj
+LDIMPORTS+= -L $(GBROOT)/_obj
+# gb: compile/link against GOPATH entries
+GOPATHSEP=:
+ifeq ($(GOHOSTOS),windows)
+GOPATHSEP=;
+endif
+GCIMPORTS=-I $(subst $(GOPATHSEP),/pkg/$(GOOS)_$(GOARCH) -I , $(GOPATH))/pkg/$(GOOS)_$(GOARCH)
+LDIMPORTS=-L $(subst $(GOPATHSEP),/pkg/$(GOOS)_$(GOARCH) -L , $(GOPATH))/pkg/$(GOOS)_$(GOARCH)
+
+# gb: copy to local install
+$(GBROOT)/_obj/$(TARG).a: _obj/$(TARG).a
+ mkdir -p $(dir $@); cp -f $< $@
+
+package: $(GBROOT)/_obj/$(TARG).a
+
+include $(GOROOT)/src/Make.pkg
+
+# gb: local dependencies
+_obj/$(TARG).a: $(GBROOT)/_obj/storage.a
+_obj/$(TARG).a: $(GBROOT)/_obj/util.a
diff --git a/weed-fs/src/pkg/storage/Makefile b/weed-fs/src/pkg/storage/Makefile
new file mode 100644
index 000000000..ab50c9e8a
--- /dev/null
+++ b/weed-fs/src/pkg/storage/Makefile
@@ -0,0 +1,36 @@
+# Makefile generated by gb: http://go-gb.googlecode.com
+# gb provides configuration-free building and distributing
+
+include $(GOROOT)/src/Make.inc
+
+TARG=storage
+GOFILES=\
+ needle.go\
+ needle_map.go\
+ store.go\
+ volume.go\
+
+# gb: this is the local install
+GBROOT=../../..
+
+# gb: compile/link against local install
+GCIMPORTS+= -I $(GBROOT)/_obj
+LDIMPORTS+= -L $(GBROOT)/_obj
+# gb: compile/link against GOPATH entries
+GOPATHSEP=:
+ifeq ($(GOHOSTOS),windows)
+GOPATHSEP=;
+endif
+GCIMPORTS=-I $(subst $(GOPATHSEP),/pkg/$(GOOS)_$(GOARCH) -I , $(GOPATH))/pkg/$(GOOS)_$(GOARCH)
+LDIMPORTS=-L $(subst $(GOPATHSEP),/pkg/$(GOOS)_$(GOARCH) -L , $(GOPATH))/pkg/$(GOOS)_$(GOARCH)
+
+# gb: copy to local install
+$(GBROOT)/_obj/$(TARG).a: _obj/$(TARG).a
+ mkdir -p $(dir $@); cp -f $< $@
+
+package: $(GBROOT)/_obj/$(TARG).a
+
+include $(GOROOT)/src/Make.pkg
+
+# gb: local dependencies
+_obj/$(TARG).a: $(GBROOT)/_obj/util.a
diff --git a/weed-fs/src/pkg/util/Makefile b/weed-fs/src/pkg/util/Makefile
new file mode 100644
index 000000000..bf3a57f05
--- /dev/null
+++ b/weed-fs/src/pkg/util/Makefile
@@ -0,0 +1,31 @@
+# Makefile generated by gb: http://go-gb.googlecode.com
+# gb provides configuration-free building and distributing
+
+include $(GOROOT)/src/Make.inc
+
+TARG=util
+GOFILES=\
+ bytes.go\
+ post.go\
+
+# gb: this is the local install
+GBROOT=../../..
+
+# gb: compile/link against local install
+GCIMPORTS+= -I $(GBROOT)/_obj
+LDIMPORTS+= -L $(GBROOT)/_obj
+# gb: compile/link against GOPATH entries
+GOPATHSEP=:
+ifeq ($(GOHOSTOS),windows)
+GOPATHSEP=;
+endif
+GCIMPORTS=-I $(subst $(GOPATHSEP),/pkg/$(GOOS)_$(GOARCH) -I , $(GOPATH))/pkg/$(GOOS)_$(GOARCH)
+LDIMPORTS=-L $(subst $(GOPATHSEP),/pkg/$(GOOS)_$(GOARCH) -L , $(GOPATH))/pkg/$(GOOS)_$(GOARCH)
+
+# gb: copy to local install
+$(GBROOT)/_obj/$(TARG).a: _obj/$(TARG).a
+ mkdir -p $(dir $@); cp -f $< $@
+
+package: $(GBROOT)/_obj/$(TARG).a
+
+include $(GOROOT)/src/Make.pkg