aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2021-08-04 15:09:38 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2021-08-04 15:09:38 -0400
commitcad002c371dd712ae91de9544f0307ade9d63518 (patch)
treeb37fd94da2a69d5418ae69837ccbaf05f88d7a24
parentff292f64e25188ec507cd4f03a5e99105af1b41d (diff)
downloadmoog-cad002c371dd712ae91de9544f0307ade9d63518.tar.gz
MODERN_GCC flag enables -fallow-argument-mismatch
-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