forked from tsukumijima/Akebi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (21 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
MAKEFLAGS += --no-print-directory
# build executables for current platform
build-https-server:
@echo "HTTPS Server: Building..."
ifeq ($(OS),Windows_NT)
@go build -ldflags="-s -w" -a -o "akebi-https-server.exe" "./https-server/"
else
@go build -ldflags="-s -w" -a -o "akebi-https-server" "./https-server/"
endif
# build executables for all platforms
build-https-server-all-platforms:
@echo "HTTPS Server: Building Windows Build..."
@GOARCH=amd64 GOOS="windows" go build -ldflags="-s -w" -a -o "akebi-https-server.exe" "./https-server/"
@echo "HTTPS Server: Building Linux (x64) Build..."
@GOARCH=amd64 GOOS="linux" go build -ldflags="-s -w" -a -o "akebi-https-server" "./https-server/"
@echo "HTTPS Server: Building Linux (arm64) Build..."
@GOARCH=arm64 GOOS="linux" go build -ldflags="-s -w" -a -o "akebi-https-server-arm" "./https-server/"
# currently, linux and systemd combination only
build-keyless-server:
@echo "Keyless Server: Building..."
@go build -ldflags="-s -w" -a -o "akebi-keyless-server" "./keyless-server/"