VolumeFix/Makefile

26 lines
520 B
Makefile
Raw Normal View History

2024-02-03 21:37:54 -04:00
.PHONY: icon syso build clean
2024-02-03 15:10:40 -04:00
# Export CGO_ENABLED=1
CGO_ENABLED=1
# Export C compiler
CC=gcc
2024-02-03 21:37:54 -04:00
icon:
magick convert ico/VolumeFix.png ico/VolumeFix.ico
2goarray Icon ico < ico/VolumeFix.ico > ico/VolumeFix.go
syso:
rsrc -ico ico/VolumeFix.ico -o bin/VolumeFix.syso
build: icon syso
go build -ldflags "-H windowsgui" -o bin/
build-debug: icon syso
go build -o bin/VolumeFix
clean:
rm -f "ico/VolumeFix.ico"
rm -f "ico/VolumeFix.go"
rm -f "bin/VolumeFix.syso"
rm -f "bin/VolumeFix.exe"
rm -f "bin/VolumeFix"