diff options
| author | StevenWdV <stevenwdv@gmail.com> | 2021-11-26 18:14:49 +0100 |
|---|---|---|
| committer | StevenWdV <stevenwdv@gmail.com> | 2021-11-26 18:14:49 +0100 |
| commit | c5c71a584b5e5fd2fdf59477ea7ec1e4ddddda25 (patch) | |
| tree | 3a1b28e68365c45a3a9be38e7432529898e96d80 /exports/Makefile | |
| parent | 96dca850f8e80ae7608a008dbbe4e76df4991ca0 (diff) | |
Add requirements & MinGW instructions to READMEs. Change OS/ARCH to GOOS/GOARCH. Add build step to Python test Makefile.
Diffstat (limited to 'exports/Makefile')
| -rw-r--r-- | exports/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/exports/Makefile b/exports/Makefile index 912e930..fdedba2 100644 --- a/exports/Makefile +++ b/exports/Makefile @@ -4,15 +4,15 @@ lib_suffix_linux = .so lib_suffix_windows = .dll lib_suffix_darwin = .dylib -OS = $(shell go env GOHOSTOS) -ARCH = $(shell go env GOHOSTARCH) -LIB_SUFFIX = $(lib_suffix_$(OS)) +GOOS ?= $(shell go env GOHOSTOS) +GOARCH ?= $(shell go env GOHOSTARCH) +LIB_SUFFIX = $(lib_suffix_$(GOOS)) # Creates targets like 'linux/amd64/eduvpn_verify.so' -build: $(OS)/$(ARCH)/eduvpn_verify$(LIB_SUFFIX) +build: $(GOOS)/$(GOARCH)/eduvpn_verify$(LIB_SUFFIX) -$(OS)/$(ARCH)/eduvpn_verify$(LIB_SUFFIX): exports.go ../verify.go - CGO_ENABLED=1 GOOS=$(OS) GOARCH=$(ARCH) go build -o $@ -buildmode=c-shared $< +$(GOOS)/$(GOARCH)/eduvpn_verify$(LIB_SUFFIX): exports.go ../verify.go + CGO_ENABLED=1 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $@ -buildmode=c-shared $< clean: rm -rf ../exports/*/ |
