# if the neuron sources are in directory $NSRC, InterViews was installed in $IV
# and you want to build in $NOBJ then cd to $NOBJ and use at least
#       $NSRC/configure --prefix=`pwd` --with-iv=$IV --srcdir=$NSRC

# make
# make install

5) It is useful to keep the source and build directories separate.  In
this way one can readily
build neuron with different flags for the
purposes of profiling, code coverage, static vs shared libraries, etc. without
doing a "make clean" and losing all the compiled objects.
Additionally, a separate build library allows you to build
for different architectures with the same source tree.
In short, it is best not to build anything in the source tree.
    
6) Let's assume that InterViews is installed in $IV and that neuron
source is located in $NRNS
These variables can be set using export (bash) or setenv (tcsh).
Now you need to create a build directory with
a name that indicates the purpose of this build (eg nrn-5.4) and cd
to this directory.

Now the configure command is:
  $NRNS/configure --prefix=`pwd` --srcdir=$NRNS --with-iv=$IV
you can use relative addressing (eg ..) for everything except -with-iv=
since this will need to be accessed from deep within the tree

Make is done in the usual way:
  make
  make install

the path is then set to include $PWD/i686/bin
    
If "make" fails or you don't seem to be getting the latest changes,
it may be because your working copy is not using the main trunk
There should be no $NRNS/CVS/Tag file.

7) An example for profiling:
  
Profiling (using bash)
# create a 'profile' directory; cd profile; export NPROF=$PWD
export CFLAGS="-pg"
export CXXFLAGS="-pg"   
export linux_nrnmech=no
$NRNS/configure --disable-shared --prefix=$NPROF --srcdir=$NRNS
make
make install
# cd to some model to test
$NPROF/i686/bin/nrnivmodl
i686/special batch_.hoc
gprof i686/special > temp