Changeset 1611 in lmdz_wrf for trunk/tools/Makefile.camelot.gcc
- Timestamp:
- Aug 18, 2017, 8:34:12 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/Makefile.camelot.gcc
r1607 r1611 18 18 19 19 FC = /usr/bin/gfortran 20 FCF LAGS= -c -fPIC20 FCF = -c -fPIC 21 21 LIB_INC = 22 22 RM = rm -f 23 #DBGFLAGS = -g -Wall -Wextra -Warray-temporaries -Wconversion -fimplicit-none -fbacktrace -ffree-line-length-0 -fcheck=all -ffpe-trap=zero,overflow,underflow -finit-real=nan 23 24 NCFOLD = /usr 24 25 LIB_NETCDF = -L$(NCFOLD)/lib -lnetcdff -lnetcdf -I$(NCFOLD)/include 26 27 FCFLAGS = $(FCF) $(DBGFLAGS) 28 29 # Sources for f2py 30 distrisrcs = module_definitions.f90 module_generic.f90 module_scientific.f90 module_DistriCorrection.f90 31 diagsrcs = module_definitions.f90 module_generic.f90 module_scientific.f90 module_ForDiagnosticsVars.f90 module_ForDiagnostics.f90 32 intsrcs = module_definitions.f90 module_generic.f90 module_scientific.f90 module_ForInterpolate.f90 25 33 26 34 ####### ###### ##### #### ### ## # 27 35 28 36 MODULES = \ 29 module_generic.o 37 module_definitions.o \ 38 module_scientific.o \ 39 module_generic.o \ 40 module_ForDiagnosticsVars.o \ 41 module_ForDiagnostics.o \ 42 module_DistriCorrection.o 30 43 31 44 all : \ 45 module_ForDiagnostics.o \ 46 DistriCorrection.o \ 32 47 interpolate.o \ 33 module_ForDiagnostics.o 48 pydistrimods.o \ 49 pydiagmods.o \ 50 pyintmods.o 34 51 35 52 diags : \ 36 53 module_ForDiagnostics.o 54 37 55 clean : 38 $(RM) *.mod *.o interpolate 56 $(RM) *.mod *.o interpolate module_ForDiag.so module_ForInt.so module_ForDistriCorrect.so 39 57 40 58 ######## ####### … … 42 60 ######## 43 61 44 module_generic.o: 62 module_definitions.o: 63 $(FC) $(FCFLAGS) module_definitions.f90 64 65 module_generic.o: module_definitions.o 45 66 $(FC) $(FCFLAGS) $(LIB_NETCDF) $(LIB_INC) module_generic.f90 46 67 47 module_ForDiagnosticsVars.o: module_generic.o 68 module_scientific.o: module_definitions.o module_generic.o 69 $(FC) $(FCFLAGS) module_scientific.f90 70 71 module_ForDiagnosticsVars.o: module_definitions.o module_generic.o 48 72 $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnosticsVars.f90 49 73 50 module_ForDiagnostics.o: module_ generic.o module_ForDiagnosticsVars.o74 module_ForDiagnostics.o: module_definitions.o module_generic.o module_ForDiagnosticsVars.o 51 75 $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnostics.f90 52 76 53 FCEXECFLAGS = $(MODULES) $(LIB_NETCDF) $(LIB_INC) 77 module_DistriCorrection.o: module_definitions.o module_generic.o module_scientific.o 78 $(FC) $(FCFLAGS) $(LIB_NETCDF) module_DistriCorrection.f90 54 79 55 interpolate.o: module_generic.o 80 FCEXECFLAGS = $(MODULES) $(LIB_NETCDF) $(LIB_INC) 81 82 interpolate.o: module_definitions.o module_generic.o module_scientific.o 56 83 $(FC) $(FCEXECFLAGS) interpolate.f90 -o interpolate 57 84 85 DistriCorrection.o: module_definitions.o module_generic.o module_scientific.o module_DistriCorrection.o 86 $(FC) $(FCEXECFLAGS) DistriCorrection.f90 -o DistriCorrection 58 87 88 pydistrimods.o: 89 f2py -c -m module_ForDistriCorrect $(distrisrcs) 90 91 pydiagmods.o: 92 f2py -c -m module_ForDiag $(diagsrcs) 93 94 pyintmods.o: 95 f2py -c -m module_ForInt $(intsrcs)
Note: See TracChangeset
for help on using the changeset viewer.