From bfe6c4d35c898d4d4805dcf570dc1fc19a2568c9 Mon Sep 17 00:00:00 2001 From: Karel Miko Date: Wed, 12 Jul 2017 23:15:26 +0200 Subject: [PATCH] improved README - building instructions [skip ci] --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 1cf505b..2f30df2 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,21 @@ Please be aware, that all branches besides _master_ and _develop_ __can__ and __ If you want to rely on such an _unstable_ branch, create your own fork of this repository to make sure nothing breaks for you. +Building +-------- + +If you have `libtommath` installed on your system: + + make CFLAGS="-DUSE_LTM -DLTM_DESC" EXTRALIBS="-ltommath" all + +For building a shared library use: + + make -f makefile.shared CFLAGS="-DUSE_LTM -DLTM_DESC" EXTRALIBS="-ltommath" all + +If you have `libtommath` in a non-standard location: + + make CFLAGS="-DUSE_LTM -DLTM_DESC -I/opt/devel/ltm" EXTRALIBS="/opt/devel/ltm/libtommath.a" all + +On unusual UNIX platforms, or if you do not have GNU make, have a look at `makefile.unix`. + +On MS Windows try `libtomcrypt_VS2008.sln` (Visual Studio) or `makefile.mingw` or `makefile.msvc`.