This commit is contained in:
2026-01-11 21:54:37 +01:00
parent 5b15b56f7a
commit 29a99c55e7
10 changed files with 23205 additions and 548 deletions

23
Makefile Normal file
View File

@@ -0,0 +1,23 @@
# Makefile pour bench-client
BINARY_NAME=bench-client
VERSION=1.0.0
LDFLAGS=-ldflags "-X main.version=$(VERSION) -s -w"
.PHONY: all build clean run
all: clean build
build:
@echo "Compilation Linux AMD64 statique..."
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a $(LDFLAGS) -o $(BINARY_NAME) main.go
@echo "Terminé : ./$(BINARY_NAME)"
clean:
@echo "Nettoyage..."
@rm -f $(BINARY_NAME)
@go clean
run: build
@echo "Lancement test..."
sudo ./$(BINARY_NAME) --dry-run --debug