ruspiro-singleton 0.0.2

The crates provides a simple singleton pattern
Documentation
#*****************************************************************
# Makefile to build the RusPiRo kernel
# setting the necessary environment for cross compiling
#
# Copyright (c) 2019 by the authors
# 
# Author: André Borrmann 
# License: Apache License 2.0
#******************************************************************
CARGO_BIN = "$(USER_ROOT)\\.cargo\\bin"
ARM_GCC_BIN = "$(USER_ROOT)\\arm-gcc\\gcc-arm-eabi\\bin"
ARM_GCC_LIB = "$(USER_ROOT)\\arm-gcc\\gcc-arm-eabi\\lib\\gcc\\arm-eabi\\8.3.0"
PATH +=  "$(PROJECT_ROOT);$(ARM_GCC_BIN);$(ARM_GCC_LIB);$(CARGO_BIN)"
TARGET = armv8-ruspiro
TARGETDIR = target\\armv8-ruspiro\\release
# environment variables needed by cargo xbuild to use the custom build target
export CC = arm-eabi-gcc.exe
export AR = arm-eabi-ar.exe
export RUST_TARGET_PATH = $(PROJECT_ROOT)
export CFLAGS = -mfpu=neon-fp-armv8 -mfloat-abi=hard -march=armv8-a -Wall -O3 -nostartfiles -ffreestanding -mtune=cortex-a53


# build the current crate
all:  
# update dependend crates to their latest version if any
	cargo update
# cross compile the crate
	cargo xbuild --target $(TARGET) --release

doc:
	# update dependend crates to their latest version if any
	cargo update
	# build docu for this crate using custom target
	xargo doc --all --no-deps --target $(TARGET) --release --open
	
clean:
	cargo clean