mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
crypto/windows and utils/injector were the last public packages, against the no-library-API rule, and utils/ named nothing. They move as one unit; only import paths and Makefile variables change, and the built payload is byte-identical.
21 lines
614 B
Makefile
21 lines
614 B
Makefile
GO ?= go
|
|
GOEXE ?= hack-browser-data
|
|
|
|
include internal/abe/native/Makefile.frag
|
|
|
|
.PHONY: build build-windows clean
|
|
|
|
build:
|
|
$(GO) build -o $(GOEXE) ./cmd/hack-browser-data
|
|
|
|
# Make sets these in the recipe environment on both POSIX and native Windows
|
|
# GNU Make, so we do not need a cmd.exe vs sh branch for build-windows.
|
|
build-windows: export GOOS := windows
|
|
build-windows: export GOARCH := amd64
|
|
build-windows: export CGO_ENABLED := 0
|
|
build-windows: $(ABE_BIN)
|
|
$(GO) build -tags abe_embed -trimpath -ldflags="-s -w" -o $(GOEXE).exe ./cmd/hack-browser-data
|
|
|
|
clean: payload-clean
|
|
rm -f $(GOEXE) $(GOEXE).exe
|