GO := go

.PHONY: build build-term build-raylib test clean android-aar

build: build-term

build-term:
	$(GO) build -o bin/symph-term ./cmd/symph-term

# purego backend: no cgo, embedded raylib .so for linux amd64/arm64
build-raylib:
	CGO_ENABLED=0 $(GO) build -o bin/symph-raylib ./cmd/symph-raylib

test:
	$(GO) test ./...

# TODO: blocked on mobile/ facade (Dispatch/Update/snapshot exports)
android-aar:
	gomobile bind -target=android -o build/symph.aar ./mobile

clean:
	rm -rf bin build

