ALL DONE AUTOMATICALLY BY INSTALLATION SCRIPT


-----------------------------------------------
--- Installing the Runtime Library ----
-----------------------------------------------
The make file generates 2 files - libmesham.a and libmesham.so . The first one, with .a ending, is a static library and the 2nd one, with .so ending is a dynamic library. By default the compiler will link against the dynamic .so library, however the downside is that the end user will need to have this on their machine(s) too. So, you can link against the static library (.a) by using the -static flag to  the compiler, or if the dynamic library is not found.  By linking against the static library firstly the executable will be larger and secondly if you get a later version of the RTL then the executable will require recompiling, whereas with the dynamic library these two downsides are absent.


1) cd into the mesham libraries/source directory i.e. cd /home/nick/mesham/libraries/source if mesham in /home/nick

2) type make
Quite a few messages will appear (and some warnings!) but in the libraries directory i.e. /home/nick/mesham/libraries you should now see a file called liblogs.a

3) It is important to make both this logs library(libmesham.a & liblogs.so) and the library header file (mesham.h) available to the C compiler so that it can be included easily. To do this you need to do this now (easiest) and make a symbolic link in /lib and /usr/include repectively or, if you do not have root access, then this can be done by telling the compiler where the library and header is located.

Library Link--> In order to make a symbolic link to the libmesham.a & libmesham.so, if it is in location /home/nick/mesham/libraries/ then the command would be ln -s /home/nick/mesham/libraries/libmesham.a /lib/libmesham.a and then the same for libmesham.so

Header Link--> In order to make a symbolic link to the LOGS.h, if it is in location /home/nick/mesham/libraries/ then the command would be ln -s /home/nick/mesham/libraries/mesham.h /usr/include/mesham.h

