diff options
-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 = |