README 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. README for PolarSSL
  2. -- COMPILING
  3. There are currently three active build systems within the PolarSSL releases:
  4. - Make
  5. - CMake
  6. - Microsoft Visual Studio
  7. The main system used for development is CMake. That system is always the most up-to-date. The others should reflect all changes present in the CMake build system, but some features are not ported there by default.
  8. --- Make
  9. In order to build the source using Make, just enter at the command line:
  10. make
  11. In order to run the tests, enter:
  12. make check
  13. --- CMake
  14. In order to build the source using CMake, just enter at the command line:
  15. cmake .
  16. make
  17. There are 3 different active build modes specified within the CMake buildsystem:
  18. - Release
  19. This generates the default code without any unnecessary information in the binary files.
  20. - Debug
  21. This generates debug information and disables optimization of the code.
  22. - Coverage
  23. This generates code coverage information in addition to debug information.
  24. Switching build modes in CMake is simple. For debug mode, enter at the command line:
  25. cmake -D CMAKE_BUILD_TYPE:String="Debug" .
  26. In order to run the tests, enter:
  27. make test
  28. --- Microsoft Visual Studio
  29. The build files for Microsoft Visual Studio are generated for Visual Studio 6.0 all future Visual Studio's should be able to open and use this older version of the build files.
  30. The workspace 'polarssl.dsw' contains all the basic projects needed to build the library and all the programs. The files in tests are not generated and compiled, as these need a perl environment as well.