aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-09 16:36:12 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-13 14:42:54 +0100
commit74799c9581ac68c722422593cacf0df46040dc23 (patch)
tree50eb1daae583d05cc17adfbaeb00744b27f87fae /Makefile
parentbuild: bump wintun hash (diff)
downloadwireguard-windows-74799c9581ac68c722422593cacf0df46040dc23.tar.xz
wireguard-windows-74799c9581ac68c722422593cacf0df46040dc23.zip
build: make arm64 binary by copying arm binary
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d1d4c79c..f9f7814c 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ RESOURCE_FILES := resources.rc version/version.go manifest.xml $(patsubst %.svg,
DEPLOYMENT_HOST ?= winvm
DEPLOYMENT_PATH ?= Desktop
-all: amd64/wireguard.exe x86/wireguard.exe arm/wireguard.exe
+all: amd64/wireguard.exe x86/wireguard.exe arm64/wireguard.exe arm/wireguard.exe
define download =
.distfiles/$(1):
@@ -66,6 +66,10 @@ arm/wireguard.exe: export GOARM := 7
arm/wireguard.exe: resources_arm.syso $(SOURCE_FILES)
go build $(GOFLAGS) -o $@
+arm64/wireguard.exe: arm/wireguard.exe
+ mkdir -p $(@D)
+ cp $< $@
+
remaster: export GOARCH := amd64
remaster: export GOPROXY := direct
remaster: .deps/go/prepared
@@ -92,7 +96,7 @@ deploy: amd64/wireguard.exe
scp $< $(DEPLOYMENT_HOST):$(DEPLOYMENT_PATH)
clean:
- rm -rf *.syso ui/icon/*.ico x86/ amd64/ arm/ .deps
+ rm -rf *.syso ui/icon/*.ico x86/ amd64/ arm/ arm64/ .deps
distclean: clean
rm -rf .distfiles