From 1829dfb46673258522039a9b62f65c015a768424 Mon Sep 17 00:00:00 2001 From: William Clark Date: Tue, 21 Nov 2023 22:33:20 +0000 Subject: [PATCH] compile targets --- Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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