anchor.diff:  rem Developer(s): Grigori Fursin, 2015
   rem
   
  -set CK_SOURCE_FILES=openme.c
  +set CK_SOURCE_FILES=cJSON.c openme.c
  +set CK_INCLUDE_FILES=cJSON.h openme.h
   set CK_INCLUDE_FILE=openme.h
   
  -if [%CK_ENV_SCRIPT_CK%] == [] (
  +set LIB_NAME=libopenme
  +
  +set CK_COMPILER_FLAGS_MISC=%CK_FLAG_PREFIX_INCLUDE%. %CK_COMPILER_FLAGS_MISC%
  +
  +set CK_TARGET_FILE=%LIB_NAME%%CK_LIB_EXT%
  +set CK_TARGET_FILE_S=%CK_TARGET_FILE%
  +
  +set CK_CC_FLAGS=%CK_COMPILER_FLAGS_OBLIGATORY% %CK_COMPILER_FLAGS_MISC% %CK_COMPILER_FLAGS_CC_OPTS% %CK_COMPILER_FLAGS_ARCH% %CK_COMPILER_FLAGS_PAR%
  +
  +echo Executing %CK_CC% %CK_FLAGS_STATIC_LIB% %CK_FLAGS_CREATE_OBJ% %CK_CC_FLAGS% %CK_SOURCE_FILES% %CK_LD_FLAGS_MISC% %CK_LD_FLAGS_EXTRA%
  +%CK_CC% %CK_FLAGS_STATIC_LIB% %CK_FLAGS_CREATE_OBJ% %CK_CC_FLAGS% %CK_SOURCE_FILES% %CK_LD_FLAGS_MISC% %CK_LD_FLAGS_EXTRA%
  +if %errorlevel% neq 0 (
    echo.
  - echo Environment variable "CK_ENV_SCRIPT_CK" is empty!
  + echo Building failed!
    goto err
   )
   
  -if [%CK_ENV_LIB_CJSON%] == [] (
  - echo.
  - echo Environment variable "CK_ENV_LIB_CJSON" is empty!
  - goto err
  -)
  -
  -
  -set CK_COMPILER_FLAGS_MISC=%CK_FLAG_PREFIX_INCLUDE%%CK_ENV_LIB_CJSON_INCLUDE% %CK_COMPILER_FLAGS_MISC%
  -set CK_LD_FLAGS_MISC=%CK_ENV_LIB_CJSON_LIB%\%CK_ENV_LIB_CJSON_STATIC_NAME%
  -
  -echo.
  -echo Cleaning directory ...
  -echo.
  -
  -call %CK_ENV_SCRIPT_CK%\bin\clean_universal.bat
  -
  -echo.
  -echo Building static library ...
  -echo.
  -
  -set CK_TARGET_FILE=%LIB_NAME%%CK_LIB_EXT%
  -
  -set CK_TARGET_FILE_S=%CK_TARGET_FILE%
  -
  -call %CK_ENV_SCRIPT_CK%\bin\build_static_lib_c.bat
  -
  +echo Executing %CK_LB% %CK_LB_OUTPUT%%CK_TARGET_FILE% *%CK_OBJ_EXT%
  +%CK_LB% %CK_LB_OUTPUT%%CK_TARGET_FILE% *%CK_OBJ_EXT%
   if %errorlevel% neq 0 (
    echo.
    echo Building failed!
  
positive.code: echo Building dynamic library ...
  echo.
  
  set CK_TARGET_FILE=%LIB_NAME%%CK_DLL_EXT%
  
  set CK_TARGET_FILE_D=%CK_TARGET_FILE%
  
  call %CK_ENV_SCRIPT_CK%\bin\build_dynamic_lib_c.bat
  
  if %errorlevel% neq 0 (
   echo.
   echo Building failed!
  
negative.code: copy /B %CK_TARGET_FILE_D% ..\..\lib
  
  mkdir ..\..\include
  copy /B %CK_INCLUDE_FILES% ..\..\include
  
  
  exit /b 0
  