Skip to content

Enable configuring the Makefile template using an environment variable #27

@spencerkclark

Description

@spencerkclark

Currently the Makefile template included in the wrapper Makefile is hard coded to be the gnu.mk file from SHiELD_build:

include $(SHIELD_BUILD)/site/gnu.mk

This is fine in Docker, when we are always using GNU compilers, but on other platforms we may want to use different compilers, like Intel. It would be useful if this were optionally configurable with an environment variable, similar to FC, CC, and the like:

FC ?= mpif90
CC ?= mpicc
CXX ?= mpicxx
LD ?= mpif90

We could call this variable MAKEFILE_TEMPLATE, which by default could be set to gnu.mk:

MAKEFILE_TEMPLATE ?= gnu.mk
include $(SHIELD_BUILD)/site/$(MAKEFILE_TEMPLATE)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions