diff options
author | John Denker <jsd@av8n.com> | 2024-11-20 12:27:10 -0700 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2024-11-21 08:46:44 -0700 |
commit | 7fd041264e6fdec8a385c1cb0b915ace05cc10d3 (patch) | |
tree | 467ee14ad90da9ad1d1f2fab53891cf5390df3b8 | |
parent | 81dd8af8a47f03cebe6a5ca55105155438c16e48 (diff) |
choose compiler f95 f90 f77 depending on what's available
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,7 +1,11 @@ RM = rm -f CC = CC -FC = f90 +# Find a suitable compiler: +FC := $(shell which f95 || which f90 || which f77) +ifeq ($(FC),) + $(error Fortran compiler not found; please fix 'FC' in Makefile) +endif CFLAGS = -C INCLUDES = |