7. Open the script `docmake.sh` using your preferred editor (e.g. gedit) and edit the line `cmake -DCMAKE_BUILD_TYPE=DEBUG -DGeant4_DIR=/home/oliskir/src/geant4/geant4.10.2-install/lib/Geant4-10.2.0 $pwd -DCMAKE_BUILD_TYPE=DEBUG` so the path is correct
8. Build AUSAlib.
`make -j 4`
7. Build a makefile by running the script
You will now have a libAUSA.a
`./docmake.sh`
9. You install AUSAlib two ways
* __System wide install:__ If you want the headers copied to `/usr/local/include` and the library to `/usr/local/lib` i.e. where to compiler normally looks for this `sudo make install`
8. Build VeikonKone
* __Local install:__ Here you must define the two environment variables `AUSALIB_INC_DIR` the AUSAlib include directory and `AUSALIB_LIB_DIR` to the location of `libAUSA.a`. A convenient way to do this is to add the following lines to you `~/.bashrc` or `~/.profile`
`make -jN` (where `N` is the number of cores on your computer)
```
\ No newline at end of file
export AUSALIB_INC_DIR=<path to ausalib>/ausalib/include
export AUSALIB_LIB_DIR=<path to ausalib>/ausalib/build
```
__OSX__: OSX users should add it to `~/.profile` and NOT to `~/.bashrc`
10. Export the resource directory environment variable, `AUSALIB_RES_DIR`. This can also conveniently be added to `~/.bashrc` or `~/.profile`:
```export AUSALIB_RES_DIR=<path to ausalib>/ausalib/res```
**OBS: When you pull AUSAlib remember to cmake ./**