source: lmdz_wrf/trunk/tools/Makefile @ 1143

Last change on this file since 1143 was 1139, checked in by lfita, 9 years ago

Adding compilation of the Fortran modules

File size: 766 bytes
Line 
1FC              = gfortran-4.7
2FCFLAGS         = -c
3RM              = rm -f
4NCFOLD          = /usr
5LIB_NETCDF      = -L$(NCFOLD)/lib -lnetcdff -lnetcdf -I$(NCFOLD)/include
6
7####### ###### ##### #### ### ## #
8
9MODULES = \
10        module_generic.o
11
12all : \
13        interpolate.o \
14        module_ForDiagnostics.o
15
16diags : \
17        module_ForDiagnostics.o
18clean :
19        $(RM) *.mod *.o interpolate
20
21########    #######
22##
23    ########
24
25module_generic.o:
26        $(FC) $(FCFLAGS) $(LIB_NETCDF) module_generic.F90
27
28module_ForDiagnosticsVars.o: module_generic.o
29        $(FC) $(FCFLAGS) module_ForDiagnosticsVars.F90
30
31module_ForDiagnostics.o: module_generic.o module_ForDiagnosticsVars.o
32        $(FC) $(FCFLAGS) module_ForDiagnostics.F90
33
34FCEXECFLAGS = $(MODULES) $(LIB_NETCDF)
35
36interpolate.o: module_generic.o
37        $(FC) $(FCEXECFLAGS) interpolate.F90 -o interpolate
38
39
Note: See TracBrowser for help on using the repository browser.