The provided Makefile can be used to compile the software on Linux or
Mac OS X. For partial Windows compilation instructions, see
INSTALL.WINDOWS.txt.

You will need to have the following libraries installed:

* BLAS
* Boost
* freeglut
* gfortran
* LAPACK
* libpng

On Linux, you should be able to get all of them through your
distribution's package manager.

On a Mac, BLAS and LAPACK already come with XCode. Get Boost, libpng,
and freeglut through MacPorts or Homebrew.

VERY IMPORTANT NOTE FOR MACS:
XCode ships with an old version of GCC that causes OpenMP to crash
(https://plus.google.com/101546077160053841119/posts/9h35WKKqffL). If
you use MacPorts, make sure your PATH is set to use MacPorts' version
of GCC. If you use HomeBrew, install the latest GCC from
http://hpc.sourceforge.net/ and put that in your PATH.

On either platform, get ALGLIB from http://www.alglib.net/download.php
under "Download ALGLIB > 3.x branch > C++ version" and unzip it into
dependencies/alglib/. Then run 'make' in the dependencies/ directory
to compile the required libraries ALGLIB, JsonCpp, and TAUCS.

Once all the dependencies are set up, you can compile the simulator
itself by going back to the parent directory and running 'make'. The
Makefile puts executables in the bin/ directory. By default, it
produces an optimized build, bin/arcsim. The debug build can be
compiled using 'make debug', which produces bin/arcsimd.

Try running 'bin/arcsim simulate conf/sphere.json' to see if all is
well: you should see a square sheet hanging above a sphere, and once
you hit Space it should start simulating.
