summaryrefslogtreecommitdiff
path: root/exports/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'exports/Makefile')
-rw-r--r--exports/Makefile14
1 files changed, 1 insertions, 13 deletions
diff --git a/exports/Makefile b/exports/Makefile
index b3dc3db..547ee92 100644
--- a/exports/Makefile
+++ b/exports/Makefile
@@ -1,18 +1,6 @@
.PHONY: build copy-to clean
-GOOS != go env GOHOSTOS
-GOARCH != go env GOHOSTARCH
-
-ifeq (windows,$(GOOS))
-LIB_PREFIX =
-LIB_SUFFIX = .dll
-else ifeq (darwin,$(GOOS))
-LIB_PREFIX = lib
-LIB_SUFFIX = .dylib
-else
-LIB_PREFIX = lib
-LIB_SUFFIX = .so
-endif
+include platform.mk
# Creates targets like 'linux/amd64/eduvpn_verify.so'
build: $(GOOS)/$(GOARCH)/$(LIB_PREFIX)eduvpn_verify$(LIB_SUFFIX)