summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJulian Ruess <julianr@linux.ibm.com>2023-02-20 13:00:54 +0100
committerJunegunn Choi <junegunn.c@gmail.com>2023-02-22 14:31:41 +0900
commit414f87981f1536d2b8503802ee5c7e6236ee8f80 (patch)
tree97e0f87f7407cc447614d8b8e57f2f2567a770cc /Makefile
parentb1459c79cfc004dd7944f4db3ffb5a4ae20569ca (diff)
Add support for s390x architecture
Signed-off-by: Julian Ruess <julianr@linux.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 15808154..6248ad17 100644
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,7 @@ BUILD_FLAGS := -a -ldflags "-s -w -X main.version=$(VERSION) -X main.revision
BINARY32 := fzf-$(GOOS)_386
BINARY64 := fzf-$(GOOS)_amd64
+BINARYS390 := fzf-$(GOOS)_s390x
BINARYARM5 := fzf-$(GOOS)_arm5
BINARYARM6 := fzf-$(GOOS)_arm6
BINARYARM7 := fzf-$(GOOS)_arm7
@@ -43,6 +44,8 @@ ifeq ($(UNAME_M),x86_64)
BINARY := $(BINARY64)
else ifeq ($(UNAME_M),amd64)
BINARY := $(BINARY64)
+else ifeq ($(UNAME_M),s390x)
+ BINARY := $(BINARYS390)
else ifeq ($(UNAME_M),i686)
BINARY := $(BINARY32)
else ifeq ($(UNAME_M),i386)
@@ -132,6 +135,8 @@ target/$(BINARY32): $(SOURCES)
target/$(BINARY64): $(SOURCES)
GOARCH=amd64 $(GO) build $(BUILD_FLAGS) -o $@
+target/$(BINARYS390): $(SOURCES)
+ GOARCH=s390x $(GO) build $(BUILD_FLAGS) -o $@
# https://github.com/golang/go/wiki/GoArm
target/$(BINARYARM5): $(SOURCES)
GOARCH=arm GOARM=5 $(GO) build $(BUILD_FLAGS) -o $@