summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fortran/navy_four_levels/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/fortran/navy_four_levels/Makefile b/fortran/navy_four_levels/Makefile
index f9cf9d2..f6c455f 100644
--- a/fortran/navy_four_levels/Makefile
+++ b/fortran/navy_four_levels/Makefile
@@ -1,16 +1,26 @@
# -*- make -*-
# FILE: "/home/evmik/src/my_src/Nresonances/fortran/navy_four_levels/Makefile"
-# LAST MODIFICATION: "Sun, 10 Jul 2011 11:55:16 -0400 (evmik)"
+# LAST MODIFICATION: "Mon, 08 Aug 2011 00:37:23 -0400 (evmik)"
# (C) 2011 by Eugeniy Mikhailov, <evgmik@gmail.com>
# $Id:$
f95files = $(wildcard *.f95)
runfiles = $(f95files:%.f95=%.run)
+#FORTRAN_OPTIONS = -Wall
+#useful flags to check
+# -Wconversion : Warn about implicit conversions that are likely to change
+# the value of the expression after conversion
+# -Wintrinsic-shadow : Warn if a user-defined
+# procedure or module procedure has the same name as an intrinsic
+# -Wunused : Warn about unused dummy arguments.
+# -Werror : Turns all warnings into errors
+FORTRAN_OPTIONS = -Wintrinsic-shadow -Wunused -Wconversion
+
executables: $(runfiles)
$(runfiles): %.run : %.f95
- gfortran -o $@ $<
+ gfortran $(FORTRAN_OPTIONS) -o $@ $<
clean:
rm -f $(runfiles)