ALL AUTOMATICALLY DONE BY INSTALLATION SCRIPT

-----------------------------------------------------------
---- Installing the Mesham Client Compiler ----
-----------------------------------------------------------
1) Open a terminal

2) cd into the Mesham directory and then into the compiler directory.
i.e. if mesham is in /home/nick/mesham then the command is cd /home/nick/mesham/compiler

3) Configure the client - this can be done in the src/include directory. In config.h you can change the port (default 3000) and address of server (default localhost). 

In config.h you will need to change classpathtopreprocessorclient to be your path i.e. if mesham is in /home/nick/mesham then make sure the value of this is "/home/nick/mesham/compiler/java\0" (remember to include the string terminator, \0)

If you could not create the symbolic links in step 6 then you can tell the compiler where the library and header files are located via linux/platform.h . 

Library Location [IF NOT COMPLETED STEP 6]--> You will see in config.h the line #define librarylocation "\0"  (which is empty at the moment.) If the library (liblogs.a) is in location /home/nick/mesham/libraries/ then change this line of code to read #define librarylocation "-L/home/nick/mesham/libraries\0"  (-L tells the compiler its a library location.)

Header Location [IF NOT COMPLETED STEP 6]--> You will see in config.h the line #define headerlocation "\0"  (which is empty at the moment.) If the header (LOGS.h)  is in location /home/nick/mesham/libraries/ then change this line of code to read #define headerlocation "-I/home/nick/mesham/libraries\0"  (-I tells the compiler its a header location.)

4) type   make linux
An executable called mc will be created in the bin directory

5) For ease of use, I suggest you put a link to mc so that it can be invoked from anywhere, either add it to your path or if have root access add a symbolic link to /usr/bin i.e. ln -s /home/nick/mesham/compiler/bin/mc /usr/bin/mc      <--- ensure you include the full path of the mc like we have done here.
