This subdirectory contains examples and templates of make.inc include makefiles for building the NCSTAT operators with different compilers/platforms.

Template make.inc files are provided for the gfortran (GNU), ifort (INTEL), xlf (IBM), pgfortran (PGI) and nagfor (NAG) compilers with or without a BLAS library:

make.inc.GNU
make.inc.GNU_BLAS
make.inc.INTEL
make.inc.INTEL_BLAS
make.inc.NAG
make.inc.NAG_BLAS
make.inc.PGI
make.inc.PGI_BLAS
make.inc.IBM
make.inc.IBM_BLAS

Yon can use these templates as a starting point to build your own make.inc file if your compiler is in the list. You still need to customize these templates, at least to provide:

1) the loader/compiler options to be used for interfacing/linking with the STATPACK (LSTATPACK, ISTATPACK) and NetCDF (LNETCDF, INETCDF) libraries;
2) eventually, the loader options to be used for linking with a BLAS library if you want to use one (LBLAS).
3) the absolute path of the directory for the NCSTAT executables (EXECDIR);

The files:

make.inc.GNU_BLAS_macpro_intel  (Macos Intel processors)
make.inc.GNU_BLAS_macpro_arm    (Macos Arm processors)
make.inc.GNU_BLAS_zelos         (linux)
make.inc.INTEL_BLAS_zelos       (linux)
make.inc.NAG_BLAS_zelos         (linux)
make.inc.PGI_BLAS_zelos         (linux)

are make.inc files, which have been really used to build NCSTAT on a MacOS (Macpro) laptop or a linux machine (zelos) with the OPENBLAS library available at https://github.com/xianyi/OpenBLAS.

You can also use one of these examples to build your own ../make.inc include makefile.
