Changeset 2220 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Nov 8, 2018, 2:30:43 PM (6 years ago)
Author:
lfita
Message:

Updating Makefiles

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/Makefile.skogul.gcc

    r1824 r2220  
    1515RM              = rm -f
    1616F2PY            = /usr/bin/f2py2.7
     17F2PYF   =
    1718#DBGFLAGS = g -Wall -Wextra -Warray-temporaries -Wconversion -fimplicit-none -fbacktrace -ffree-line-length-0 -fcheck=all -ffpe-trap=zero,overflow,underflow -finit-real=nan
    1819NCLIBFOLD       = /usr/lib/x86_64-linux-gnu
    1920NCINCFOLD       = /usr/include
    20 LIB_NETCDF      = -L$(NCLIBFOLD) -lnetcdff -lnetcdf -I$(NCINCFOLD)
     21NCLIBFFOLD      = /usr/lib/x86_64-linux-gnu
     22NCINCFFOLD      = /usr/include
     23LIB_NETCDF      = -L$(NCLIBFOLD) -L$(NCLIBFFOLD) -lnetcdff -lnetcdf -I$(NCINCFOLD) -I$(NCINCFFOLD)
    2124
    2225FCFLAGS = $(FCF) $(DBGFLAGS)
     
    8992        $(FC) $(FCFLAGS) $(LIB_INC) module_ForInterpolate.f90
    9093
    91 module_ForDiagnosticsVars.o: module_definitions.o module_basic.o module_generic.o
     94module_ForDiagnosticsVars.o: module_definitions.o module_basic.o module_generic.o module_scientific.o
    9295        $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnosticsVars.f90
    9396
     
    108111
    109112pydistrimods.o:
    110         $(F2PY) -c -I$(NCINCFOLD) -m module_ForDistriCorrect $(distrisrcs) -L$(NCLIBFOLD)
     113        $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForDistriCorrect $(distrisrcs) -L$(NCLIBFOLD)
    111114
    112115pydiagmods.o:
    113         $(F2PY) -c -I$(NCINCFOLD) -m module_ForDiag $(diagsrcs) -L$(NCLIBFOLD)
     116        $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForDiag $(diagsrcs) -L$(NCLIBFOLD)
    114117
    115118pyintmods.o:
    116         $(F2PY) -c -I$(NCINCFOLD) -m module_ForInt $(intsrcs) -L$(NCLIBFOLD)
     119        $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForInt $(intsrcs) -L$(NCLIBFOLD)
    117120
    118121pyscimods.o:
    119         $(F2PY) -c -I$(NCINCFOLD) -m module_ForSci $(scisrcs) -L$(NCLIBFOLD)
     122        $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForSci $(scisrcs) -L$(NCLIBFOLD)
    120123
    121124pydefmods.o:
    122         $(F2PY) -c -I$(NCINCFOLD) -m module_ForDef $(defsrcs) -L$(NCLIBFOLD)
     125        $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForDef $(defsrcs) -L$(NCLIBFOLD)
    123126
    124127trajectories_overlap.o: module_definitions.o module_basic.o module_generic.o module_NCgeneric.o module_scientific.o
    125128        $(FC) $(FCEXECFLAGS) trajectories_overlap.f90 -o trajectories_overlap
     129
  • trunk/tools/Makefile.trueno

    r1772 r2220  
    1010RM              = rm -f
    1111F2PY    = /usr/bin/f2py
     12F2PYF   =
    1213DBGFLAGS = -g -Wall -Wextra -Warray-temporaries -Wconversion -fimplicit-none -fbacktrace -ffree-line-length-0 -fcheck=all -ffpe-trap=zero,overflow,underflow -finit-real=nan
    1314NCLIBFOLD       = /usr/lib/x86_64-linux-gnu
    1415NCINCFOLD       = /usr/include
    15 LIB_NETCDF      = -L$(NCLIBFOLD) -lnetcdff -lnetcdf -I$(NCINCFOLD)
     16NCLIBFFOLD      = /usr/lib/x86_64-linux-gnu
     17NCINCFFOLD      = /usr/include
     18LIB_NETCDF      = -L$(NCLIBFOLD) -L$(NCLIBFFOLD) -lnetcdff -lnetcdf -I$(NCINCFOLD) -I$(NCINCFFOLD)
    1619
    1720FCFLAGS = $(FCF) $(DBGFLAGS)
     
    3336        module_NCgeneric.o \
    3437        module_scientific.o \
     38        module_ForInterpolate.o \
    3539        module_ForDiagnosticsVars.o \
    3640        module_ForDiagnostics.o \
    3741        module_DistriCorrection.o
    3842
     43FINTMODULES = \
     44        module_definitions.o \
     45        module_basic.o \
     46        module_generic.o \
     47        module_scientific.o \
     48        module_ForInterpolate.o
     49
    3950all : \
    4051        module_ForDiagnostics.o \
     52        interpolate.o \
    4153        DistriCorrection.o \
    42         interpolate.o \
    4354        pydistrimods.o \
    4455        pydiagmods.o \
     
    7384        $(FC) $(FCFLAGS) module_scientific.f90
    7485
    75 module_ForDiagnosticsVars.o: module_definitions.o module_basic.o module_generic.o
     86module_ForInterpolate.o: module_definitions.o module_generic.o
     87        $(FC) $(FCFLAGS) $(LIB_INC) module_ForInterpolate.f90
     88
     89module_ForDiagnosticsVars.o: module_definitions.o module_basic.o module_generic.o module_scientific.o
    7690        $(FC) $(FCFLAGS) $(LIB_INC) module_ForDiagnosticsVars.f90
    7791
     
    8296        $(FC) $(FCFLAGS) module_DistriCorrection.f90
    8397
     98FCEXEFINTCFLAGS = $(FINTMODULES) $(LIB_NETCDF) $(LIB_INC)
    8499FCEXECFLAGS = $(MODULES) $(LIB_NETCDF) $(LIB_INC)
    85100
    86 interpolate.o: module_definitions.o module_basic.o module_generic.o module_scientific.o
    87         $(FC) $(FCEXECFLAGS) interpolate.f90 -o interpolate
     101interpolate.o: module_definitions.o module_basic.o module_generic.o module_scientific.o module_ForInterpolate.o
     102        $(FC) $(FCEXEFINTCFLAGS) interpolate.f90 -o interpolate
    88103
    89104DistriCorrection.o: module_definitions.o module_basic.o module_generic.o module_NCgeneric.o module_scientific.o module_DistriCorrection.o
     
    91106
    92107pydistrimods.o:
    93         $(F2PY) -c -I$(NCINCFOLD) -m module_ForDistriCorrect $(distrisrcs) -L$(NCLIBFOLD)
     108        $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForDistriCorrect $(distrisrcs) -L$(NCLIBFOLD)
    94109
    95110pydiagmods.o:
    96         $(F2PY) -c -I$(NCINCFOLD) -m module_ForDiag $(diagsrcs) -L$(NCLIBFOLD)
     111        $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForDiag $(diagsrcs) -L$(NCLIBFOLD)
    97112
    98113pyintmods.o:
    99         $(F2PY) -c -I$(NCINCFOLD) -m module_ForInt $(intsrcs) -L$(NCLIBFOLD)
     114        $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForInt $(intsrcs) -L$(NCLIBFOLD)
    100115
    101116pyscimods.o:
    102         $(F2PY) -c -I$(NCINCFOLD) -m module_ForSci $(scisrcs) -L$(NCLIBFOLD)
     117        $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForSci $(scisrcs) -L$(NCLIBFOLD)
    103118
    104119pydefmods.o:
    105         $(F2PY) -c -I$(NCINCFOLD) -m module_ForDef $(defsrcs) -L$(NCLIBFOLD)
     120        $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForDef $(defsrcs) -L$(NCLIBFOLD)
    106121
    107122trajectories_overlap.o: module_definitions.o module_basic.o module_generic.o module_NCgeneric.o module_scientific.o
Note: See TracChangeset for help on using the changeset viewer.