bedrocktool/Makefile

26 lines
475 B
Makefile
Raw Normal View History

2022-02-12 22:27:49 +00:00
GC = go build -ldflags "-s -w"
2022-02-27 10:08:19 +00:00
NAME = bedrocktool
2022-02-12 22:27:49 +00:00
SRCS = $(wildcard *.go)
2022-02-27 10:08:19 +00:00
all: windows linux
2022-02-12 22:27:49 +00:00
$(NAME).exe: $(SRCS)
GOOS=windows $(GC) -o $@
2022-03-05 13:39:46 +00:00
#upx -9 $@ # defender is an asshole and thinks this is an trojan
2022-02-12 22:27:49 +00:00
$(NAME)-linux: $(SRCS)
GOOS=linux $(GC) -o $@
2022-03-05 13:39:46 +00:00
upx -9 $@
2022-02-12 22:27:49 +00:00
2022-02-27 10:08:19 +00:00
$(NAME)-mac: $(SRCS) # possibly broken
2022-02-12 22:27:49 +00:00
GOOS=darwin $(GC) -o $@
.PHONY: clean windows linux mac
windows: $(NAME).exe
linux: $(NAME)-linux
mac: $(NAME)-mac
clean:
rm $(NAME).exe $(NAME)-linux $(NAME)-mac