BUILD_STEPS 1.1 KB
Newer Older
1 2
0 - Install codes-base, either from the repository or using the 0.3.0 release
    tarball (see http://www.mcs.anl.gov/projects/codes/).
3

4
1 - If you are building codes-net directly from the repository, run
5 6 7

    ./prepare.sh

8 9 10
2 - Configure codes-net. This can be done in the source directory or in a
    dedicated build directory if you prefer out-of-tree builds.  The CC
    environment variable must refer to an MPI compiler.
11

12 13
    mkdir build
    cd build
14
    ../configure --prefix=/path/to/codes-net/install CC=mpicc PKG_CONFIG_PATH=/path/to/codes-base/install/lib/pkgconfig
15 16 17

3 - Build codes-net

18
    make && make install
19 20
4 - (optional) run test programs

21
    make tests && make check
22 23 24 25 26 27 28 29 30 31

Notes on using uncrustify
-----------------
- version 0.61 is required
- build/install uncrustify from your favorite distro (0.61), OR download from
  https://github.com/bengardner/uncrustify and build from source
  (configure --prefix /path/to/install && make && make install)
- either use uncrustify directly (see uncrustify --help) or use the provided
  reformat.sh tool which is a shim over some of the options (see reformat.sh
  -h)