diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-08-08 00:40:34 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-08-08 00:40:34 -0400 |
commit | c37f9a0ce052d86866e8959a0c23801ed173cb0f (patch) | |
tree | 1238005099cfc5ecf176dfb3c21e7306f70380b3 /fortran/navy_four_levels | |
parent | c9cd26c2f61ebf64daf0b8ec067b2fe689260c54 (diff) | |
download | Nresonances-c37f9a0ce052d86866e8959a0c23801ed173cb0f.tar.gz Nresonances-c37f9a0ce052d86866e8959a0c23801ed173cb0f.zip |
Add some helpful warning compiler options
Diffstat (limited to 'fortran/navy_four_levels')
-rw-r--r-- | fortran/navy_four_levels/Makefile | 14 |
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) |