DESC="Compile and link source files in one step"

main()
{
   EXEC="${AGCC} -v2 --path src src/*.cc";
	if  ( ${EXEC} );then true;else
		ERR_MSG="Failed executing '${EXEC}'";
		return 0;
	fi;

	if [ ! \( \( -x a.out \) -o \( -x a.exe \) \) ];then
		ERR_MSG="Executable file was not generated";
		return 0;
	fi;

	return 1;
}

cleanup()
{
   rm -f a.out a.exe;
}
