$(info --> Reading $(lastword $(MAKEFILE_LIST))) # ============================================================================ # *** Set build ARCHITECTURE here # ============================================================================ # NOTE: This setting is supposedly overwritten by a command line argument BUILD_ARCH := NO_ARCH_DEFINED $(info --> Using BUILD_ARCH=$(BUILD_ARCH)) # ============================================================================ # *** General configuration # ============================================================================ IFS_BASE_DIR := $(MAKEFILE_PATH) IFS_SRC_DIR := $(IFS_BASE_DIR)src IFS_BIN_DIR := $(IFS_BASE_DIR)bin IFS_LIB_DIR := $(IFS_BASE_DIR)lib IFS_LIBS := ifs trans surf ifsalgor ifsaux ifs cosp dummy IFS_EXE_NAME := ifsmaster$(addprefix -,$(BUILD_ARCH)) F90_DEP_FILE := .dep-f90 # ============================================================================ # *** Build ARCHITECTURE configuration # ============================================================================ MAKEFILE_CONFIG_ARCH := $(MAKEFILE_CONFIG).$(BUILD_ARCH) ifneq ($(wildcard $(MAKEFILE_CONFIG_ARCH)),) include $(MAKEFILE_CONFIG_ARCH) else $(info . ======================================================================) $(info . *** Unknown build architecture: '$(BUILD_ARCH)') $(info . *** ------------------------------------------------------------------) $(info . *** Please make sure that you specify the correct) $(info . *** BUILD_ARCH= on the make command line and ) $(info . *** that a file '$(notdir $(MAKEFILE_CONFIG_ARCH))' exists ) $(info . *** in the following directory: ) $(info . *** $(MAKEFILE_CONFIG).d ) $(info . ======================================================================) $(error Unknown architecture BUILD_ARCH=$(BUILD_ARCH)) endif