The libsndfile package is used essentially unmodified within the CppSim
Framework, except for the need to comment out the line:

#include <Carbon.h>

from the file:

programs/sndfile-play.c

in order to compile on Mac OSX computers.  The above modified file is included
in this directory, and only needs to be utilized when compiling for Mac OSX.

Other than the above change for Mac OSX, the original files are compiled as contained in the tar file in this directory:

libsndfile-1.0.25.tar.gz

which was downloaded from the website: 

http://www.mega-nerd.com/libsndfile/

The above tar file contains the source files as well as license/warranty information for the libsndfile package.

Note that CppSim dynamically loads the libsndfile library such that use of this library
falls under the LGPL license as specified in the Licenseing section of 
the http://www.mega-nerd.com/libsndfile/ website:

"You can use libsndfile with Free Software, Open Source, proprietary,
shareware or other closed source applications as long as libsndfile is
used as a dynamically loaded library and you abide by a small number
of other conditions (read the LGPL for more info)."

To compile, first untar the libsndfile-1.0.25.tar.gz file, then go into the resulting
directory that is created: 

cd libsndfile-1.0.25

Then run the following commands:

For Mac OSX:

./configure --prefix=$HOME/CppSim/CppSimShared/CommonCode/libsndfile/libsndfile_macosx
make
make install

For Linux 64-bit:

./configure --prefix=$HOME/CppSim/CppSimShared/CommonCode/libsndfile/libsndfile_glnxa64
make
make install

For Linux 32-bit:

./configure --prefix=$HOME/CppSim/CppSimShared/CommonCode/libsndfile/libsndfile_glnx86
make
make install

For Windows:

export PKG_CONFIG_PATH="/mingw/lib/pkgconfig"
./configure --enable-shared --disable-static --prefix=c:/CppSim/CppSimShared/CommonCode/libsndfile/libsndfile_win32
make
make install
cp c:/CppSim/CppSimShared/CommonCode/libsndfile/libsndfile_win32/bin/libsndfile-1.dll c:/CppSim/CppSimShared/Msys/bin/.
