2014-07-28 08:46:17 +04:00
|
|
|
INSTALL_PATH ?= $(CURDIR)
|
|
|
|
|
2014-07-26 05:22:09 +04:00
|
|
|
$(shell ./bootstrap.sh)
|
|
|
|
|
2014-07-28 08:46:17 +04:00
|
|
|
$(shell ./build_tool/build_config.sh build_config.mk $INSTALL_PATH)
|
|
|
|
|
|
|
|
include build_config.mk
|
|
|
|
|
|
|
|
export CGO_CFLAGS
|
|
|
|
export CGO_CXXFLAGS
|
|
|
|
export CGO_LDFLAGS
|
|
|
|
export LD_LIBRARY_PATH
|
|
|
|
export DYLD_LIBRARY_PATH
|
|
|
|
export GO_BUILD_TAGS
|
|
|
|
|
2014-07-20 15:03:00 +04:00
|
|
|
all: build
|
|
|
|
|
|
|
|
build:
|
2014-07-26 14:39:54 +04:00
|
|
|
go install -tags '$(GO_BUILD_TAGS)' ./...
|
2014-07-20 15:03:00 +04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
go clean -i ./...
|
|
|
|
|
|
|
|
test:
|
2014-07-28 08:46:17 +04:00
|
|
|
go test -tags '$(GO_BUILD_TAGS)' ./...
|