diff --git a/Makefile b/Makefile index 391f1a4..7cccbf0 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ target = armv7-unknown-linux-gnueabihf +cross_comp_packages = gcc-arm-linux-gnueabihf libc6-armhf-cross libc6-dev-armhf-cross mode = release home = $(shell pwd) @@ -7,6 +8,15 @@ home = $(shell pwd) build: cargo build +test: + cargo test + +rustup_cross: + rustup target add $(target) + +install: + apt-get install $(cross_comp_packages) + linux: cargo build --examples --$(mode) --target=$(target)