source: lmdz_wrf/trunk/tools/Makefile.foudre @ 1170

Last change on this file since 1170 was 1155, checked in by lfita, 9 years ago

Adding Makefiles for each machine of the `Fortran' modules

File size: 1.2 KB
Line 
1# L. Fita, LMD. October 2016
2# Compilation of all required Fortran modules in `foudre' with gcc compilers
3# A following python 'library' creation is required
4# f2py -m module_ForDiagnostics --f90exec=/usr/bin/gfortran-4.7 -c module_generic.F90 module_ForDiagnosticsVars.F90 module_ForDiagnostics.F90 >& run_f2py.log
5# f2py -m module_ForInterpolate --f90exec=/usr/bin/gfortran-4.7 -c module_generic.F90 module_ForInterpolate.F90  >& run_f2py.log
6
7FC              = gfortran-4.7
8FCFLAGS         = -c
9LIB_INC         =
10RM              = rm -f
11NCFOLD          = /usr
12LIB_NETCDF      = -L$(NCFOLD)/lib -lnetcdff -lnetcdf -I$(NCFOLD)/include
13
14####### ###### ##### #### ### ## #
15
16MODULES = \
17        module_generic.o
18
19all : \
20        interpolate.o \
21        module_ForDiagnostics.o
22
23diags : \
24        module_ForDiagnostics.o
25clean :
26        $(RM) *.mod *.o interpolate
27
28########    #######
29##
30    ########
31
32module_generic.o:
33        $(FC) $(FCFLAGS) $(LIB_NETCDF) $(LIB_INC) module_generic.F90
34
35module_ForDiagnosticsVars.o: module_generic.o
36        $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnosticsVars.F90
37
38module_ForDiagnostics.o: module_generic.o module_ForDiagnosticsVars.o
39        $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnostics.F90
40
41FCEXECFLAGS = $(MODULES) $(LIB_NETCDF) $(LIB_INC)
42
43interpolate.o: module_generic.o
44        $(FC) $(FCEXECFLAGS) interpolate.F90 -o interpolate
45
46
Note: See TracBrowser for help on using the repository browser.