aboutsummaryrefslogtreecommitdiffstats
path: root/wireguard-go-bridge
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-06-13 00:35:15 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-13 00:35:15 +0200
commitb861590195333e4432e60a54b02fecc24863077d (patch)
tree89a7b0f09469121269bc9655864a22ed3c762f38 /wireguard-go-bridge
parentBuild using c-archive instead (diff)
downloadwireguard-apple-b861590195333e4432e60a54b02fecc24863077d.tar.xz
wireguard-apple-b861590195333e4432e60a54b02fecc24863077d.zip
Correct archive file extension
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'wireguard-go-bridge')
-rw-r--r--wireguard-go-bridge/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/wireguard-go-bridge/Makefile b/wireguard-go-bridge/Makefile
index 7795bb61..4e3ba32e 100644
--- a/wireguard-go-bridge/Makefile
+++ b/wireguard-go-bridge/Makefile
@@ -14,19 +14,19 @@ export CGO_ENABLED := 1
default: example
-libwg-go.so: $(FILES) src/git.zx2c4.com/wireguard-go/api-ios.go src/git.zx2c4.com/wireguard-go/tun/tun_ios.go
+libwg-go.a: $(FILES) src/git.zx2c4.com/wireguard-go/api-ios.go src/git.zx2c4.com/wireguard-go/tun/tun_ios.go
find . -name '*.go' -type l -delete
find . -type d -empty -delete
mkdir -p $(subst ../wireguard-go/,./src/git.zx2c4.com/wireguard-go/,$(dir $(FILES)))
$(foreach FILE,$(FILES),ln -sf $(abspath $(FILE)) $(subst ../wireguard-go/,./src/git.zx2c4.com/wireguard-go/,$(dir $(FILE)))$(notdir $(FILE));)
GOPATH=$(PWD) go get -v -d git.zx2c4.com/wireguard-go
- GOPATH=$(PWD) go build -tags ios -v -o libwg-go.so -buildmode c-archive git.zx2c4.com/wireguard-go
+ GOPATH=$(PWD) go build -tags ios -v -o libwg-go.a -buildmode c-archive git.zx2c4.com/wireguard-go
@rm -f libwg-go.h
-example: example.c libwg-go.so
+example: example.c libwg-go.a
$(CC) -L. -lwg-go -o example example.c
clean:
- rm -f libwg-go.so test
+ rm -f libwg-go.a test
.PHONY: clean default