#=============================================================================================================
#
_TITLE_="MICRA"
_CDIGIT__prime_="2"
__CMAIN__="/access/clx-cmain"
#
#		My Crystal Archive
#
#		>	use:	compile binary from repository into fixed target
#
#			MMM    MMM  MM   MMMMMMMM  MMMMMMMMM    MMMMMMMM 
#			MMMM  MMMM      MMM        MM      MM  MM      MM
#			MM MMMM MM  MM  MM         MMMMMMMMM   MMMMMMMMMM
#			MM  MM  MM  MM  MMM        MM      MM  MM      MM
#			MM      MM  MM   MMMMMMMM  MM      MM  MM      MM
#
#
#
###########	: important : WRITE PROTECTED
		#
		if [ "$ACCESS_ROOT" = "/access/clx-cmain/source" ]; then
			ACCESS_ROOT="no/mans/land"
			else
			ACCESS_ROOT="/access/clx-cmain/source"
			fi
			#source protection

		source	/access/clx-cmain/public/.install.check.sh

		TARGET_ROOT="/clx/bin"
		_target_file_="$TARGET_ROOT/$1.mic"
		_access_file_="$ACCESS_ROOT/active/$1.cpp"
		#
###########	: protect your shit the normal way
#
#
#
#=============================================================================================================
source	/access/clx-cmain/public/.access.check.sh

_MICRA_INCLUDES_="-I$ACCESS_ROOT/projects"
_MICRA_DEFINES_="-DWhatever"
#=============================================================================================================
if [ "$_EXIT_VALUE_" = "OK" ]; then

	echo -e	"$_SPACER_"
	echo -e	"${_NOTE_}  ${_col__HIGHLIGHT_}MICRA\e[0m"
	echo -e	"$_SPACER_"
	echo -e	"${_NOTE_}  compiling access token"

	_access_token_="$_compile__HeadString_ $_MICRA_INCLUDES_ $_MICRA_DEFINES_ $_access_file_ -o $_target_file_ $_compile__TailString_"

	echo -e	"${_NOTE_}> = [\e[0m$_access_token_$_col__BASIC_]"
	echo -e	"$_SPACER_"
#	source	/access/clx-main/public/
	g++ -w $_access_token_
##
fi
echo -e "$_ACCESS_COLOR_-- MICRA : EXIT --"
###########################################/>