1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- $(info --> Reading $(lastword $(MAKEFILE_LIST)))
- comma := ,
- ECEARTH_SRC_DIR := ${HOME}/models/ecearth_3.3.4.2/sources
- MPI_BASE_DIR := ${EBROOTOPENMPI}
- ifneq ($(strip $(MPI_BASE_DIR)),)
- MPI_INC_DIR := $(MPI_BASE_DIR)$(addprefix /,include)
- MPI_LIB_DIR := $(MPI_BASE_DIR)$(addprefix /,lib)
- endif
- MPI_LIBS := mpi mpi_mpifh
- OASIS_BASE_DIR := $(ECEARTH_SRC_DIR)/oasis3-mct
- OASIS_ARCH := ecconf
- OASIS_MPI_CHAN := MPI1
- OASIS_MOD_DIR := $(OASIS_BASE_DIR)/$(OASIS_ARCH)/build/lib/psmile.$(OASIS_MPI_CHAN)
- OASIS_LIB_DIR := $(OASIS_BASE_DIR)/$(OASIS_ARCH)/lib
- OASIS_LIBS := psmile.MPI1 mct mpeu scrip
- ifneq ($(strip ${EBROOTNETCDFMINFORTRAN}),)
- NETCDF_LIB_DIR := ${EBROOTNETCDFMINFORTRAN}/lib
- NETCDF_INC_DIR := ${EBROOTNETCDFMINFORTRAN}/include
- endif
- NETCDF_LIBS := netcdff netcdf
- LAPACK_BASE_DIR := ${EBROOTIMKL}/mkl/latest
- ifneq ($(strip $(LAPACK_BASE_DIR)),)
- LAPACK_LIB_DIR := $(LAPACK_BASE_DIR)$(addprefix /,lib/intel64)
- endif
- LAPACK_LIBS := mkl_intel_lp64 mkl_core mkl_sequential
- ifneq ($(strip ${EBROOTECCODES}),)
- GRIBAPI_INC_DIR := ${EBROOTECCODES}/include
- GRIBAPI_LIB_DIR := ${EBROOTECCODES}/lib
- endif
- GRIBAPI_LIBS := eccodes_f90 eccodes
- ifneq ($(strip /gpfs/projects/acad/ecearth/softs/gribex/iompi-2023a/lib),)
- GRIBEX_LIB_DIR := /gpfs/projects/acad/ecearth/softs/gribex/iompi-2023a/lib/
- endif
- GRIBEX_LIBS := gribexR64
- MAKEDEPF90 := ${ECEARTH_SRC_DIR}/util/makedepf90/bin/makedepf90
- F90 := mpif90
- F90FLAGS := -free -O2 -fp-model precise -march=core-avx2 -r8
- IFSAUX_ADD_F90FLAGS :=
- FC := mpif90
- FFLAGS := -fixed -O2 -fp-model precise -march=core-avx2 -r8
- FPPDEFS := $(addprefix -D,linux LINUX LITTLE LITTLE_ENDIAN POINTER_64 BLAS ECCODES)
- CC := mpicc
- CFLAGS := -std=gnu90 -O2 -fp-model precise -march=core-avx2
- CPPDEFS := $(addprefix -D,linux LINUX LITTLE LITTLE_ENDIAN POINTER_64 BLAS ECCODES)
- LD := $(F90)
- LDFLAGS := -O2 -fp-model precise -march=core-avx2
- AR := ar
- ARFLAGS := curv
- ARFLAGS_EXTRACT := p
|