.PHONY: all relay client client-windows clean

GOOS ?= linux
GOARCH ?= amd64

all: relay client

relay:
	CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/usb-relay ./cmd/usb-relay/

client:
	CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/usb-client ./cmd/usb-client/

client-windows:
	CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o bin/usb-client.exe ./cmd/usb-client/

docker:
	docker compose build

docker-run:
	docker compose up -d

clean:
	rm -rf bin/
