Changeset 1796 in lmdz_wrf for trunk/tools/Makefile.camelot.gcc
- Timestamp:
- Mar 12, 2018, 4:09:15 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/Makefile.camelot.gcc
r1611 r1796 21 21 LIB_INC = 22 22 RM = rm -f 23 F2PY = /usr/bin/f2py 23 24 #DBGFLAGS = -g -Wall -Wextra -Warray-temporaries -Wconversion -fimplicit-none -fbacktrace -ffree-line-length-0 -fcheck=all -ffpe-trap=zero,overflow,underflow -finit-real=nan 24 NCFOLD = /usr 25 NCLIBFOLD = /usr/lib/64 26 NCINCFOLD = /usr/include 27 LIB_NETCDF = -L$(NCLIBFOLD) -lnetcdff -lnetcdf -I$(NCINCFOLD) 28 25 29 LIB_NETCDF = -L$(NCFOLD)/lib -lnetcdff -lnetcdf -I$(NCFOLD)/include 26 30 27 31 FCFLAGS = $(FCF) $(DBGFLAGS) 28 32 33 29 34 # 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 35 srcs = module_definitions.f90 module_basic.f90 module_generic.f90 module_scientific.f90 36 distrisrcs = $(srcs) module_DistriCorrection.f90 37 diagsrcs = $(srcs) module_ForDiagnosticsVars.f90 module_ForDiagnostics.f90 38 intsrcs = $(srcs) module_ForInterpolate.f90 39 scisrcs = $(srcs) 40 defsrcs = module_definitions.f90 33 41 34 42 ####### ###### ##### #### ### ## # … … 36 44 MODULES = \ 37 45 module_definitions.o \ 46 module_basic.o \ 47 module_generic.o \ 48 module_NCgeneric.o \ 38 49 module_scientific.o \ 39 module_generic.o \40 50 module_ForDiagnosticsVars.o \ 41 51 module_ForDiagnostics.o \ … … 48 58 pydistrimods.o \ 49 59 pydiagmods.o \ 50 pyintmods.o 60 pyintmods.o \ 61 pyscimods.o \ 62 pydefmods.o \ 63 trajectories_overlap.o 51 64 52 65 diags : \ … … 54 67 55 68 clean : 56 $(RM) *.mod *.o interpolate module_ForDiag.so module_ForInt.so module_ForDistriCorrect.so 69 $(RM) *.mod *.o interpolate module_ForDiag.so module_ForInt.so module_ForDistriCorrect.so module_ForSci.so module_ForDef.so 57 70 58 71 ######## ####### … … 63 76 $(FC) $(FCFLAGS) module_definitions.f90 64 77 65 module_ generic.o: module_definitions.o66 $(FC) $(FCFLAGS) $(LIB_NETCDF) $(LIB_INC) module_generic.f9078 module_basic.o: module_definitions.o 79 $(FC) $(FCFLAGS) module_basic.f90 67 80 68 module_scientific.o: module_definitions.o module_generic.o 81 module_generic.o: module_definitions.o module_basic.o 82 $(FC) $(FCFLAGS) $(LIB_INC) module_generic.f90 83 84 module_NCgeneric.o: module_definitions.o module_basic.o module_generic.o 85 $(FC) $(FCFLAGS) $(LIB_NETCDF) $(LIB_INC) module_NCgeneric.f90 86 87 module_scientific.o: module_definitions.o module_basic.o module_generic.o 69 88 $(FC) $(FCFLAGS) module_scientific.f90 70 89 71 module_ForDiagnosticsVars.o: module_definitions.o module_ generic.o90 module_ForDiagnosticsVars.o: module_definitions.o module_basic.o module_generic.o 72 91 $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnosticsVars.f90 73 92 74 module_ForDiagnostics.o: module_definitions.o module_ generic.o module_ForDiagnosticsVars.o93 module_ForDiagnostics.o: module_definitions.o module_basic.o module_generic.o module_ForDiagnosticsVars.o 75 94 $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnostics.f90 76 95 77 module_DistriCorrection.o: module_definitions.o module_ generic.o module_scientific.o78 $(FC) $(FCFLAGS) $(LIB_NETCDF)module_DistriCorrection.f9096 module_DistriCorrection.o: module_definitions.o module_basic.o module_generic.o module_scientific.o 97 $(FC) $(FCFLAGS) module_DistriCorrection.f90 79 98 80 99 FCEXECFLAGS = $(MODULES) $(LIB_NETCDF) $(LIB_INC) 81 100 82 interpolate.o: module_definitions.o module_ generic.o module_scientific.o101 interpolate.o: module_definitions.o module_basic.o module_generic.o module_scientific.o 83 102 $(FC) $(FCEXECFLAGS) interpolate.f90 -o interpolate 84 103 85 DistriCorrection.o: module_definitions.o module_ generic.o module_scientific.o module_DistriCorrection.o104 DistriCorrection.o: module_definitions.o module_basic.o module_generic.o module_NCgeneric.o module_scientific.o module_DistriCorrection.o 86 105 $(FC) $(FCEXECFLAGS) DistriCorrection.f90 -o DistriCorrection 87 106 88 107 pydistrimods.o: 89 f2py -c -m module_ForDistriCorrect $(distrisrcs)108 $(F2PY) -c -I$(NCINCFOLD) -m module_ForDistriCorrect $(distrisrcs) -L$(NCLIBFOLD) 90 109 91 110 pydiagmods.o: 92 f2py -c -m module_ForDiag $(diagsrcs)111 $(F2PY) -c -I$(NCINCFOLD) -m module_ForDiag $(diagsrcs) -L$(NCLIBFOLD) 93 112 94 113 pyintmods.o: 95 f2py -c -m module_ForInt $(intsrcs) 114 $(F2PY) -c -I$(NCINCFOLD) -m module_ForInt $(intsrcs) -L$(NCLIBFOLD) 115 116 pyscimods.o: 117 $(F2PY) -c -I$(NCINCFOLD) -m module_ForSci $(scisrcs) -L$(NCLIBFOLD) 118 119 pydefmods.o: 120 $(F2PY) -c -I$(NCINCFOLD) -m module_ForDef $(defsrcs) -L$(NCLIBFOLD) 121 122 trajectories_overlap.o: module_definitions.o module_basic.o module_generic.o module_NCgeneric.o module_scientific.o 123 $(FC) $(FCEXECFLAGS) trajectories_overlap.f90 -o trajectories_overlap
Note: See TracChangeset
for help on using the changeset viewer.