dal/binding/makefile
Anton Nesterov c0c9b7c9b4
[feat] prep for cffi
Signed-off-by: Anton Nesterov <anton@demiurg.io>
2024-08-27 16:35:17 +02:00

5 lines
297 B
Makefile

build-lib:
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -o ../lib/libdal-arm64.dylib -buildmode=c-shared ./dal.go
for arch in amd64 arm64; do\
CC=x86_64-unknown-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=$${arch} go build -o ../lib/libdal-$${arch}.so -buildmode=c-shared ./dal.go;\
done