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

Last change on this file since 1549 was 1172, checked in by lfita, 8 years ago

Fixing comopilation for foudre

File size: 1.6 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# Diagnostics compilation _______
5# f2py -m module_ForDiag -h module_ForDiag.pyf module_generic.F90 module_ForDiagnosticsVars.F90 module_ForDiagnostics.F90 >& run_f2py_ForDiag_wrapper.log
6# make
7# f2py -m module_ForDiag -c --f90exec=/usr/bin/gfortran-4.7 module_ForDiag.pyf module_generic.F90 module_ForDiagnosticsVars.F90 module_ForDiagnostics.F90 >& run_f2py_ForDiag_compile.log
8# Interpolation compilation _______
9# f2py -m module_ForInt -h module_ForInt.pyf module_generic.F90 module_ForInterpolate.F90  >& run_f2py_ForInt_wrapper.log
10# f2py -m module_ForInt -c --f90exec=/usr/bin/gfortran-4.7 module_ForInt.pyf module_generic.F90 module_ForInterpolate.F90  >& run_f2py_ForInt_compile.log
11
12FC              = gfortran-4.7
13FCFLAGS         = -c
14LIB_INC         =
15RM              = rm -f
16NCFOLD          = /usr
17LIB_NETCDF      = -L$(NCFOLD)/lib -lnetcdff -lnetcdf -I$(NCFOLD)/include
18
19####### ###### ##### #### ### ## #
20
21MODULES = \
22        module_generic.o
23
24all : \
25        interpolate.o \
26        module_ForDiagnostics.o
27
28diags : \
29        module_ForDiagnostics.o
30clean :
31        $(RM) *.mod *.o interpolate
32
33########    #######
34##
35    ########
36
37module_generic.o:
38        $(FC) $(FCFLAGS) $(LIB_NETCDF) $(LIB_INC) module_generic.F90
39
40module_ForDiagnosticsVars.o: module_generic.o
41        $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnosticsVars.F90
42
43module_ForDiagnostics.o: module_generic.o module_ForDiagnosticsVars.o
44        $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnostics.F90
45
46FCEXECFLAGS = $(MODULES) $(LIB_NETCDF) $(LIB_INC)
47
48interpolate.o: module_generic.o
49        $(FC) $(FCEXECFLAGS) interpolate.F90 -o interpolate
50
51
Note: See TracBrowser for help on using the repository browser.