-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 738 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (18 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Screen Mask — Windows-only build.
# Cross-compiles from any host (Linux/macOS/Windows) targeting Windows amd64.
BINARY := screenmask.exe
LDFLAGS := -H=windowsgui -s -w
.PHONY: build build-console vet clean run
# GUI build (no console window). This is the normal build.
build:
GOOS=windows GOARCH=amd64 go build -ldflags="$(LDFLAGS)" -o $(BINARY) .
# Console build — keeps a console attached so panic()/stdout is visible while debugging.
build-console:
GOOS=windows GOARCH=amd64 go build -o $(BINARY) .
vet:
GOOS=windows GOARCH=amd64 go vet ./...
clean:
rm -f $(BINARY)
# Convenience: build then run under Wine if available (native Win32 GUI may be partial).
run: build
wine $(BINARY) || echo "Run $(BINARY) on Windows."