obs-access-signer/Makefile
Nugraha d97c2c0fe4
All checks were successful
continuous-integration/drone/push Build is passing
ci: initial files
2022-12-06 18:42:33 +07:00

20 lines
No EOL
366 B
Makefile

all: build
export DOCKER_BUILDKIT=1
# 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
.PHONY: dep
dep:
go mod download
build:
CGO_ENABLED=0 CC="zig cc $(CFLAGS)" CXX="zig c++ $(CXXFLAGS)" go build $(GOFLAGS) .