$(info --> Reading configuration from $(lastword $(MAKEFILE_LIST))) # ============================================================================ # *** Configuration for gimle-intel-scampi # ============================================================================ COUPLE := [[[PLT:ACTIVE:ECEARTH_SRC_DIR]]]/oasis3-mct # CHAN : MPI1/MPI2 CHAN := MPI1 # MPI library MPIDIR := [[[PLT:ACTIVE:MPI_BASE_DIR]]] ifneq ($(strip $(MPIDIR)),) MPIBIN := $(MPIDIR)/bin MPI_INCLUDE := $(MPIDIR)$(addprefix /,[[[PLT:ACTIVE:MPI_INC_SUBDIR]]]) MPILIB := -L$(MPIDIR)$(addprefix /,[[[PLT:ACTIVE:MPI_LIB_SUBDIR]]]) endif MPILIB += $(addprefix -l,[[[PLT:ACTIVE:MPI_LIBS_WITHOUT_L]]]) # NETCDF library NETCDF_DIR := [[[PLT:ACTIVE:NETCDF_BASE_DIR]]] NETCDF_INCLUDE := $(addprefix $(addsuffix /,$(NETCDF_DIR)),[[[PLT:ACTIVE:NETCDF_INC_SUBDIR]]]) NETCDF_LIBRARY := $(addprefix -L,$(addprefix $(addsuffix /,$(NETCDF_DIR)),[[[PLT:ACTIVE:NETCDF_LIB_SUBDIR]]])) NETCDF_LIBRARY += $(addprefix -l,[[[PLT:ACTIVE:NETCDF_LIBS_WITHOUT_L]]]) # Compiling and other commands MAKE := [[[PLT:ACTIVE:MAKE]]] F90 := [[[PLT:ACTIVE:FC]]] [[[PLT:ACTIVE:FFLAGS_FREEFORM]]] F := [[[PLT:ACTIVE:FC]]] [[[PLT:ACTIVE:FFLAGS_FIXEDFORM]]] f90 := $(F90) f := $(F) CC := [[[PLT:ACTIVE:CC]]] LD := [[[PLT:ACTIVE:LD]]] AR := [[[PLT:ACTIVE:AR]]] ARFLAGS := [[[PLT:ACTIVE:ARFLAGS]]] # CPP/FPP macros MACROS := use_libMPI use_comm_$(CHAN) use_netCDF TREAT_OVERLAY MACROS += [[[PLT:ACTIVE:OASIS_ADD_PPDEFS]]] # Compiler options F90FLAGS := [[[PLT:ACTIVE:FFLAGS]]] F90FLAGS += [[[PLT:ACTIVE:OASIS_ADD_FFLAGS]]] F90FLAGS += $(addprefix [[[PLT:ACTIVE:FFLAGS_FPP_PREFIX]]],$(MACROS)) F90FLAGS += $(addprefix -I,$(MPI_INCLUDE)) F90FLAGS += $(addprefix -I,$(NETCDF_INCLUDE)) f90FLAGS := $(F90FLAGS) FFLAGS := $(F90FLAGS) fFLAGS := $(F90FLAGS) CCFLAGS := [[[PLT:ACTIVE:CFLAGS]]] CCFLAGS += $(addprefix [[[PLT:ACTIVE:CFLAGS_CPP_PREFIX]]],$(MACROS)) CCFLAGS := $(addprefix -I,$(MPI_INCLUDE)) CCFLAGS += $(addprefix -I,$(NETCDF_INCLUDE)) LDFLAGS := [[[PLT:ACTIVE:LDFLAGS]]] LDFLAGS += [[[PLT:ACTIVE:OASIS_ADD_LDFLAGS]]] # MPP_IOOPT needed for compiling mpp_io MPP_IOOPT :=