Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable configuring the Makefile template using an environment variable #27

Open
spencerkclark opened this issue Jan 17, 2024 · 0 comments

Comments

@spencerkclark
Copy link
Member

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant