Makefile.config.ecconf.tmpl 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. $(info --> Reading $(lastword $(MAKEFILE_LIST)))
  2. comma := ,
  3. ECEARTH_SRC_DIR := [[[PLT:ACTIVE:ECEARTH_SRC_DIR]]]
  4. MPI_BASE_DIR := [[[PLT:ACTIVE:MPI_BASE_DIR]]]
  5. ifneq ($(strip $(MPI_BASE_DIR)),)
  6. MPI_INC_DIR := $(MPI_BASE_DIR)$(addprefix /,[[[PLT:ACTIVE:MPI_INC_SUBDIR]]])
  7. MPI_LIB_DIR := $(MPI_BASE_DIR)$(addprefix /,[[[PLT:ACTIVE:MPI_LIB_SUBDIR]]])
  8. endif
  9. MPI_LIBS := [[[PLT:ACTIVE:MPI_LIBS_WITHOUT_L]]]
  10. OASIS_BASE_DIR := $(ECEARTH_SRC_DIR)/oasis3-mct
  11. OASIS_ARCH := ecconf
  12. OASIS_MPI_CHAN := MPI1
  13. OASIS_MOD_DIR := $(OASIS_BASE_DIR)/$(OASIS_ARCH)/build/lib/psmile.$(OASIS_MPI_CHAN)
  14. OASIS_LIB_DIR := $(OASIS_BASE_DIR)/$(OASIS_ARCH)/lib
  15. OASIS_LIBS := psmile.MPI1 mct mpeu scrip
  16. ifneq ($(strip [[[PLT:ACTIVE:NETCDF_BASE_DIR]]]),)
  17. NETCDF_LIB_DIR := [[[PLT:ACTIVE:NETCDF_BASE_DIR]]]/[[[PLT:ACTIVE:NETCDF_LIB_SUBDIR]]]
  18. NETCDF_INC_DIR := [[[PLT:ACTIVE:NETCDF_BASE_DIR]]]/[[[PLT:ACTIVE:NETCDF_INC_SUBDIR]]]
  19. endif
  20. NETCDF_LIBS := [[[PLT:ACTIVE:NETCDF_LIBS_WITHOUT_L]]]
  21. LAPACK_BASE_DIR := [[[PLT:ACTIVE:LAPACK_BASE_DIR]]]
  22. ifneq ($(strip $(LAPACK_BASE_DIR)),)
  23. LAPACK_LIB_DIR := $(LAPACK_BASE_DIR)$(addprefix /,[[[PLT:ACTIVE:LAPACK_LIB_SUBDIR]]])
  24. endif
  25. LAPACK_LIBS := [[[PLT:ACTIVE:LAPACK_LIBS_WITHOUT_L]]]
  26. ifneq ($(strip [[[PLT:ACTIVE:GRIBAPI_BASE_DIR]]]),)
  27. GRIBAPI_INC_DIR := [[[PLT:ACTIVE:GRIBAPI_BASE_DIR]]]/[[[PLT:ACTIVE:GRIBAPI_INC_SUBDIR]]]
  28. GRIBAPI_LIB_DIR := [[[PLT:ACTIVE:GRIBAPI_BASE_DIR]]]/[[[PLT:ACTIVE:GRIBAPI_LIB_SUBDIR]]]
  29. endif
  30. GRIBAPI_LIBS := [[[PLT:ACTIVE:GRIBAPI_LIBS_WITHOUT_L]]]
  31. ifneq ($(strip [[[PLT:ACTIVE:GRIBEX_BASE_DIR]]]),)
  32. GRIBEX_LIB_DIR := [[[PLT:ACTIVE:GRIBEX_BASE_DIR]]]/[[[PLT:ACTIVE:GRIBEX_LIB_SUBDIR]]]
  33. endif
  34. GRIBEX_LIBS := [[[PLT:ACTIVE:GRIBEX_LIBS_WITHOUT_L]]]
  35. MAKEDEPF90 := [[[PLT:ACTIVE:MAKEDEPF90]]]
  36. F90 := [[[PLT:ACTIVE:FC]]]
  37. F90FLAGS := [[[PLT:ACTIVE:FFLAGS_FREEFORM]]] [[[PLT:ACTIVE:FFLAGS]]]
  38. IFSAUX_ADD_F90FLAGS := [[[PLT:ACTIVE:IFSAUX_ADD_FFLAGS]]]
  39. FC := [[[PLT:ACTIVE:FC]]]
  40. FFLAGS := [[[PLT:ACTIVE:FFLAGS_FIXEDFORM]]] [[[PLT:ACTIVE:FFLAGS]]]
  41. FPPDEFS := $(addprefix [[[PLT:ACTIVE:FFLAGS_FPP_PREFIX]]],[[[PLT:ACTIVE:IFS_PPDEFS]]])
  42. CC := [[[PLT:ACTIVE:CC]]]
  43. CFLAGS := [[[PLT:ACTIVE:CFLAGS]]]
  44. CPPDEFS := $(addprefix [[[PLT:ACTIVE:CFLAGS_CPP_PREFIX]]],[[[PLT:ACTIVE:IFS_PPDEFS]]])
  45. LD := $(F90)
  46. LDFLAGS := [[[PLT:ACTIVE:LDFLAGS]]]
  47. AR := [[[PLT:ACTIVE:AR]]]
  48. ARFLAGS := [[[PLT:ACTIVE:ARFLAGS]]]
  49. ARFLAGS_EXTRACT := [[[PLT:ACTIVE:ARFLAGS_EXTRACT]]]