Makefile.config 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. $(info --> Reading $(lastword $(MAKEFILE_LIST)))
  2. # ============================================================================
  3. # *** Set build ARCHITECTURE here
  4. # ============================================================================
  5. # NOTE: This setting is supposedly overwritten by a command line argument
  6. BUILD_ARCH := NO_ARCH_DEFINED
  7. $(info --> Using BUILD_ARCH=$(BUILD_ARCH))
  8. # ============================================================================
  9. # *** General configuration
  10. # ============================================================================
  11. IFS_BASE_DIR := $(MAKEFILE_PATH)
  12. IFS_SRC_DIR := $(IFS_BASE_DIR)src
  13. IFS_BIN_DIR := $(IFS_BASE_DIR)bin
  14. IFS_LIB_DIR := $(IFS_BASE_DIR)lib
  15. IFS_LIBS := ifs trans surf ifsalgor ifsaux ifs cosp dummy
  16. IFS_EXE_NAME := ifsmaster$(addprefix -,$(BUILD_ARCH))
  17. F90_DEP_FILE := .dep-f90
  18. # ============================================================================
  19. # *** Build ARCHITECTURE configuration
  20. # ============================================================================
  21. MAKEFILE_CONFIG_ARCH := $(MAKEFILE_CONFIG).$(BUILD_ARCH)
  22. ifneq ($(wildcard $(MAKEFILE_CONFIG_ARCH)),)
  23. include $(MAKEFILE_CONFIG_ARCH)
  24. else
  25. $(info . ======================================================================)
  26. $(info . *** Unknown build architecture: '$(BUILD_ARCH)')
  27. $(info . *** ------------------------------------------------------------------)
  28. $(info . *** Please make sure that you specify the correct)
  29. $(info . *** BUILD_ARCH=<ARCHITECTURE> on the make command line and )
  30. $(info . *** that a file '$(notdir $(MAKEFILE_CONFIG_ARCH))' exists )
  31. $(info . *** in the following directory: )
  32. $(info . *** $(MAKEFILE_CONFIG).d )
  33. $(info . ======================================================================)
  34. $(error Unknown architecture BUILD_ARCH=$(BUILD_ARCH))
  35. endif