summaryrefslogtreecommitdiff
path: root/fortran/navy_four_levels/Makefile
blob: 2bb8d450275f5c2851d86b582154481959168be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- make -*-
# FILE: "/home/evmik/src/my_src/Nresonances/fortran/navy_four_levels/Makefile"
# LAST MODIFICATION: "Mon, 08 Aug 2011 00:50:54 -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

executables: $(runfiles)

$(runfiles): %.run : %.f95
	gfortran $(FORTRAN_OPTIONS) -o $@  $< 

clean:
	rm -f $(runfiles)
	rm -f Movie4level_EndPoints*.dat
	rm -f Movie4level*.dat
	rm -f MovieParameters4level*.txt