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