|
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 | |
|---|
| 7 | FC = gfortran-4.7 |
|---|
| 8 | FCFLAGS = -c |
|---|
| 9 | LIB_INC = |
|---|
| 10 | RM = rm -f |
|---|
| 11 | NCFOLD = /usr |
|---|
| 12 | LIB_NETCDF = -L$(NCFOLD)/lib -lnetcdff -lnetcdf -I$(NCFOLD)/include |
|---|
| 13 | |
|---|
| 14 | ####### ###### ##### #### ### ## # |
|---|
| 15 | |
|---|
| 16 | MODULES = \ |
|---|
| 17 | module_generic.o |
|---|
| 18 | |
|---|
| 19 | all : \ |
|---|
| 20 | interpolate.o \ |
|---|
| 21 | module_ForDiagnostics.o |
|---|
| 22 | |
|---|
| 23 | diags : \ |
|---|
| 24 | module_ForDiagnostics.o |
|---|
| 25 | clean : |
|---|
| 26 | $(RM) *.mod *.o interpolate |
|---|
| 27 | |
|---|
| 28 | ######## ####### |
|---|
| 29 | ## |
|---|
| 30 | ######## |
|---|
| 31 | |
|---|
| 32 | module_generic.o: |
|---|
| 33 | $(FC) $(FCFLAGS) $(LIB_NETCDF) $(LIB_INC) module_generic.F90 |
|---|
| 34 | |
|---|
| 35 | module_ForDiagnosticsVars.o: module_generic.o |
|---|
| 36 | $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnosticsVars.F90 |
|---|
| 37 | |
|---|
| 38 | module_ForDiagnostics.o: module_generic.o module_ForDiagnosticsVars.o |
|---|
| 39 | $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnostics.F90 |
|---|
| 40 | |
|---|
| 41 | FCEXECFLAGS = $(MODULES) $(LIB_NETCDF) $(LIB_INC) |
|---|
| 42 | |
|---|
| 43 | interpolate.o: module_generic.o |
|---|
| 44 | $(FC) $(FCEXECFLAGS) interpolate.F90 -o interpolate |
|---|
| 45 | |
|---|
| 46 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.