aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2024-11-20 12:27:10 -0700
committerJohn Denker <jsd@av8n.com>2024-11-21 08:46:44 -0700
commit7fd041264e6fdec8a385c1cb0b915ace05cc10d3 (patch)
tree467ee14ad90da9ad1d1f2fab53891cf5390df3b8 /Makefile
parent81dd8af8a47f03cebe6a5ca55105155438c16e48 (diff)
choose compiler f95 f90 f77 depending on what's available
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 57560d2..1a70546 100644
--- a/Makefile
+++ b/Makefile
@@ -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 =