SYSTEM LEVEL LIBRARY

If your system administrator has installed the inhomog library in
your operating system, then you should be able to compile the
inhomog demonstration program using either the shared or static
version of the library. On a typical GNU/Linux system, compilation
and running would be:

shared library:

gcc inhomog_demo.c -linhomog -o inhomog_demo
./inhomog_demo --help

static library:

gcc inhomog_demo.c --static -fopenmp -linhomog -lgsl -lgslcblas -lm -o inhomog_demo
./inhomog_demo --help


LOCALLY INSTALLED LIBRARY

If you have installed the inhomog library locally (as an ordinary user),
then you should be able to compile the inhomog demonstration program
using either the shared or static version of the library. When installing,
you either ran "./configure" with no options, in which case you should
set (for a shell like bash):

export MYUSR=/usr/local

or else you ran something like "./configure --prefix=/some/directory/path",
in which case you should set

export MYUSR=/some/directory/path

where you must type the real directory path rather than /some/directory/path.

You should then set:

export CFLAGS=${CFLAGS}:-I${MYUSR}/include
export LDFLAGS=${LDFLAGS}:-L${MYUSR}/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MYUSR}/lib

On a typical GNU/Linux system, compilation and running would be:

shared library:

gcc inhomog_demo.c ${CFLAGS} ${LDFLAGS} -linhomog -o inhomog_demo
${LD_LIBRARY_PATH} ./inhomog_demo --help

static library:

gcc inhomog_demo.c  ${CFLAGS} ${LDFLAGS} --static -fopenmp -linhomog -lgsl -lgslcblas -lm -o inhomog_demo
./inhomog_demo --help
