keycard-go/Makefile

17 lines
369 B
Makefile
Raw Normal View History

2019-03-18 22:14:13 +01:00
.PHONY: test
GOBIN=./build
deps:
go get -t ./...
2019-02-15 16:32:37 +01:00
test:
go test -v ./...
keycard-lib: ##@cross-compile Build keycard-go as static library for current platform
mkdir -p $(GOBIN)/libkeycard
@echo "Building static library..."
go build -buildmode c-shared -o $(GOBIN)/libkeycard/libkeycard.so ./cmd/lib
@echo "Static library built:"
@ls -la $(GOBIN)/libkeycard/*