libcwtch-go/Makefile

21 lines
349 B
Makefile

.PHONY: all clean linux android
DEFAULT_GOAL: linux
all: linux android
linux: libCwtch.so
android: cwtch.aar
libCwtch.so: lib.go
./switch-ffi.sh
go build -buildmode c-shared -o libCwtch.so
cwtch.aar: lib.go
./switch-gomobile.sh
gomobile bind -target android
clean:
rm -f cwtch.aar cwtch_go.apk libCwtch.h libCwtch.so cwtch-sources.jar