mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
fb34c5290c
Provides fast CRC32C with PCLMULQDQ instructions in Golang The white papers on CRC32C calculations with PCLMULQDQ instruction can be downloaded from: http://www.intel.com/content/dam/www/public/us/en/documents/white-papers/crc-iscsi-polynomial-crc32-instruction-paper.pdf http://www.intel.com/content/dam/www/public/us/en/documents/white-papers/fast-crc-computation-paper.pdf
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
#GOPATH := $(CURDIR)/tmp/gopath
|
|
MAKE_OPTIONS := -s
|
|
|
|
all: getdeps cover install
|
|
|
|
getdeps:
|
|
@go get github.com/tools/godep && echo "Installing godep"
|
|
@go get code.google.com/p/go.tools/cmd/cover && echo "Installing cover"
|
|
|
|
build-erasure:
|
|
@$(MAKE) $(MAKE_OPTIONS) -C pkgs/erasure/isal lib
|
|
@godep go test -race github.com/minio-io/minio/pkgs/erasure
|
|
@godep go test -coverprofile=cover.out github.com/minio-io/minio/pkgs/erasure
|
|
|
|
build-signify:
|
|
@$(MAKE) $(MAKE_OPTIONS) -C pkgs/signify
|
|
|
|
build-crc32c:
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/crc32c/cpu
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/crc32c
|
|
|
|
build-split: build-strbyteconv
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/split
|
|
|
|
build-strbyteconv:
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/strbyteconv
|
|
|
|
cover: build-erasure build-signify build-split build-crc32c
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/storage
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/gateway
|
|
|
|
install: build-erasure
|
|
@godep go install github.com/minio-io/minio/cmd/erasure-demo && echo "Installed erasure-demo into ${GOPATH}/bin"
|
|
|
|
save:
|
|
@godep save ./...
|
|
|
|
restore:
|
|
@godep restore
|
|
|
|
env:
|
|
@godep go env
|
|
|
|
clean:
|
|
@rm -v cover.out
|