diff --git a/Makefile b/Makefile index 78bd272..5802d59 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,10 @@ -build: - go build main.go -run: - go run main.go -clean: - rm -rf test.db main +FLAGS=-v -buildvcs=true +ARM_FLAGS2=GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc CC_FOR_TARGET=aarch64-linux-gnu-gcc +ARM_FLAGS=GOOS=linux GOARCH=arm +all: + go build $(FLAGS) +raspberry: + CGO_ENABLED=1 $(ARM_FLAGS) go build $(FLAGS) -o th7_pi +clean: + rm -rf th7 th7_pi \ No newline at end of file