mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-18 12:30:46 +02:00
git-svn-id: https://weed-fs.googlecode.com/svn/trunk@35 282b0af5-e82d-9cf1-ede4-77906d7719d0
32 lines
799 B
Makefile
32 lines
799 B
Makefile
# 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
|