ruspiro-lock 0.3.2

Simple atomic locking and safe data access (mutual exclusive) cross cores on Raspberry Pi.
Documentation
#*****************************************************************
# Makefile to build the RusPiRo crate
# setting the necessary environment for cross compiling on windows
#
# Copyright (c) 2019 by the authors
# 
# Author: André Borrmann 
# License: Apache License 2.0
#******************************************************************


all32: export CFLAGS = -mfpu=neon-fp-armv8 -mfloat-abi=hard -march=armv8-a -Wall -O3 -nostdlib -nostartfiles -ffreestanding -mtune=cortex-a53
all32: export RUSTFLAGS = -C linker=arm-eabi-gcc.exe -C target-cpu=cortex-a53 -C target-feature=+strict-align,+a53,+fp-armv8,+v8,+vfp3,+d16,+thumb2,+neon -C link-arg=-nostartfiles -C opt-level=3 -C debuginfo=0
all32: export CC = arm-eabi-gcc.exe
all32: export AR = arm-eabi-ar.exe
all32: 
	cargo xbuild --target armv7-unknown-linux-gnueabihf --release

all64: export CFLAGS = -march=armv8-a -Wall -O3 -nostdlib -nostartfiles -ffreestanding -mtune=cortex-a53
all64: export RUSTFLAGS = -C linker=aarch64-elf-gcc.exe -C target-cpu=cortex-a53 -C target-feature=+strict-align,+a53,+fp-armv8,+neon -C link-arg=-nostartfiles -C opt-level=3 -C debuginfo=0
all64: export CC = aarch64-elf-gcc.exe
all64: export AR = aarch64-elf-ar.exe
all64:
	cargo xbuild --target aarch64-unknown-linux-gnu --release

doc: export CFLAGS = -march=armv8-a -Wall -O3 -nostdlib -nostartfiles -ffreestanding -mtune=cortex-a53
doc: export RUSTFLAGS = -C linker=aarch64-elf-gcc.exe -C target-cpu=cortex-a53 -C target-feature=+strict-align,+a53,+fp-armv8,+neon -C link-arg=-nostartfiles -C opt-level=3 -C debuginfo=0
doc: export CC = aarch64-elf-gcc.exe
doc: export AR = aarch64-elf-ar.exe
doc:
	# build docu for this crate using custom target
	cargo doc --no-deps --target aarch64-unknown-linux-gnu --release --open
	
clippy: export CFLAGS = -march=armv8-a -Wall -O3 -nostdlib -nostartfiles -ffreestanding -mtune=cortex-a53
clippy: export RUSTFLAGS = -C linker=aarch64-elf-gcc.exe -C target-cpu=cortex-a53 -C target-feature=+strict-align,+a53,+fp-armv8,+neon -C link-arg=-nostartfiles -C opt-level=3 -C debuginfo=0
clippy: export CC = aarch64-elf-gcc.exe
clippy: export AR = aarch64-elf-ar.exe
clippy:
	# run clippy for this crate using custom target
	cargo xclippy --target aarch64-unknown-linux-gnu

clean:
	cargo clean