compile targets

This commit is contained in:
William Clark 2023-11-21 22:33:20 +00:00
parent 321f2e0e53
commit 1829dfb466

View File

@ -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