covid-sim
covid-sim copied to clipboard
GNUmake based build.
I was planning on submitting this as a pull request, but I might not have permission to push a new branch to the repo and I'd rather minimize the number of internet accessible repos for now.
Here's our initial GNUmake build package. You should be able to place these in /src, type make <options, e.g. COUNTRY=US>
, and build the code. (Remove the .txt from the files first. GitHub wouldn't allow me to upload them without a supported extension.)
mkdep is a perl script that contains the ugly parts of building the dependency list, making GNUmakefile a simple, easy to follow script. Feel free to edit as needed. It's just a first draft to get things running and doesn't contain the full list of options or names you might want to use for those options.
I hope this is helpful!
Thank you for this.
I will investigate whether we can use at least parts of this to configure the compiler, and improve the CMakeLists.txt file.
However, I am cautious about including another makefile solution (as well as the cmake and VS2019 one we have) as this becomes a scalability issue.
I understand the need to limit the number of things you have to maintain. It's completely up to you. In my experience with scientific codes, you really only need CMake and GNUmake. Coders are typically literate in one or the other, so having both allows teams to handle their own problems a bit more, especially on new systems. But, I understand you have other priorities at this time. Our team can keep using this GNUmake setup either way. :) It's there for your use, however you can best take advantage of it.