summaryrefslogtreecommitdiff
path: root/exports/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'exports/Makefile')
-rw-r--r--exports/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/exports/Makefile b/exports/Makefile
new file mode 100644
index 0000000..94781be
--- /dev/null
+++ b/exports/Makefile
@@ -0,0 +1,12 @@
+.PHONY: build
+
+ifeq ($(OS),Windows_NT)
+ lib_suffix := .dll
+else
+ lib_suffix := .so
+endif
+
+build: eduvpn_verify$(lib_suffix)
+
+eduvpn_verify.dll eduvpn_verify.so: exports.go ../verify.go
+ go build -o $@ -buildmode=c-shared $<