The source code is in src/ and the binaries are in bin/
There are matlab mex files for linux (nbody_methods.mexglx), windows (nbody_methods.dll) and solaris (nbody_methods.mexsol) in the bin/ folder. If they don't work on your system, you can always build your own from the provided source files.
On Linux:
Ensure that the Makefile has the line
all: linux
and that the MAT_INC variable is set to the appropriate Matlab include directory.
On Solaris:
Ensure that the Makefile has the line
all: solaris
and that the MAT_INC variable is set to the appropriate Matlab include directory.
On linux and solaris, simply run
make all
in the src directory to make the Matlab binaries and the mex files.
Non-Matlab Installation On Linux or Solaris:
If you don't have Matlab or you don't want to build the mex file, run
make h_all
in the src directory to make a demo executable.
On Windows:
There is a Visual Studio 8 (2005) .sln file in "src/win". The Matlab include directory for the nbody-matlab project might need to be configured but otherwise it should work. Alternatively, if you are using a previous version of Visual Studio, the source files should compile just fine if you set up your own solution/project. Another alternative is to setup mex to use the lcc compiler that comes with Matlab and just run lm.bat in the src directory.
Outputs:
The outputs are bin/dualtree[.exe] and bin/dualtree.{mex{glx,sol,w32},dll}. The native binaries are just demonstrations that the code works, and show how the nbody_sum and nbody_max functions can be called in C.
The simpletest.m script file in the "bin/" folder shows how calls can be made from Matlab. It is a good idea to run it to make sure that the mex file is working.