obs-access-signer/Makefile
Nugraha 44173e65f5
All checks were successful
continuous-integration/drone/push Build is passing
all: initial files
2022-12-05 03:48:53 +07:00

24 lines
No EOL
448 B
Makefile

all: build
export DOCKER_BUILDKIT=1
IMAGE := obs-access-signer:dev
# use zig cc/c++ to statically link deps
TARGET_TRIPLE := x86_64-linux
CFLAGS ?=
CFLAGS += -target $(TARGET_TRIPLE)
CXXFLAGS ?=
CXXFLAGS += -target $(TARGET_TRIPLE)
GOFLAGS ?=
GOFLAGS += -x -trimpath
dep:
go mod download
build:
CGO_ENABLED=0 CC="zig cc $(CFLAGS)" CXX="zig c++ $(CXXFLAGS)" go build $(GOFLAGS) .
build.docker:
"docker" build --progress=plain -t $(IMAGE) .