aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2435f37..9cc5c09 100644
--- a/Makefile
+++ b/Makefile
@@ -32,8 +32,12 @@ COMMON = Atmos.com Dummy.com Equivs.com Factor.com Kappa.com Linex.com \
X11LIB = /usr/X11/lib
SMLIB = /usr/local/lib
+ifeq ($(MODERN_GCC), 1)
+FFLAGS_GCC10PLUS=-fallow-argument-mismatch
+endif
+
FC = gfortran
-FFLAGS = -w -ff2c -fdefault-double-8 -fdefault-real-8
+FFLAGS = -Wall -Wextra -ff2c -fdefault-double-8 -fdefault-real-8 $(FFLAGS_GCC10PLUS)
LDFLAGS = -L$(X11LIB) -lX11 -ltcl -ltk -L$(SMLIB) -lplotsub -ldevices -lutils
# here are the compilation and linking commands