Install Solana CLI.
sh -c "$(curl -sSfL https://release.anza.xyz/v3.0.2/install)"
Update the path in your Makefile to point to the platform tools sdk. Find your install path at
~/.local/share/solana/install/releases/ and replace {USER} and {RELEASE} below.
Example:
/Users/{USER}/.local/share/solana/install/releases/{RELEASE}/solana-release/bin/platform-tools-sdk/sbf/c/sbf.mk
make
Testing in C with criterion is supported but Rust's mollusk_svm is recommended. The sbf.mk test target has been overriden to run the mollusk tests in ./tests.
make && make test
solana program deploy out/solana.so --program-id out/keypair.json