Added support for building garbled binaries (https://github.com/burrowers/garble.git)

This commit is contained in:
Russ Magee 2022-06-16 22:45:25 -07:00
parent a4af720280
commit ee19787b5e
7 changed files with 51 additions and 6 deletions

View file

@ -1,10 +1,16 @@
.PHONY: clean all vis lint
ifeq ($(GARBLE),y)
GO = garble -literals -tiny -debugdir=garbled
else
GO = go
endif
EXTPKGS = binary,bytes,crypto,encoding,errors,flag,fmt,internal,io,log,net,os,path,runtime,time,strings,sync,syscall
EXE = $(notdir $(shell pwd))
all:
go build $(BUILDOPTS) .
$(GO) build $(BUILDOPTS) .
clean:
$(RM) $(EXE) $(EXE).exe