aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 =