Changeset 2376 in lmdz_wrf for trunk


Ignore:
Timestamp:
Mar 7, 2019, 6:03:02 PM (6 years ago)
Author:
lfita
Message:

Updating hydra-gcc Makefile

File:
1 edited

Legend:

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

    r2237 r2376  
    44## Compilation
    55# make >& run_make.log
     6#   NOTE: One will not be able to compile all the set of programs within an anaconda environment
     7#     due to problems with anaconda. Installation of netcdf4 colides with installed libnetcdff
     8#   - netcdf4
     9# The following packages will be downloaded:
     10#
     11#    package                    |            build
     12#    ---------------------------|-----------------
     13#    libnetcdf-4.6.1            |       h10edf3e_2         1.3 MB
     14#
     15# The following NEW packages will be INSTALLED:
     16#
     17#    netcdf4:    1.4.2-py27h4b4f87f_0               
     18#
     19# The following packages will be REMOVED:
     20#
     21#    libnetcdff: 4.4.4-0              matthewharrison
     22#
     23# The following packages will be UPDATED:
     24#
     25#    libnetcdf:  4.4.0-hf6ef953_0     matthewharrison --> 4.6.1-h10edf3e_2
     26#####
     27# Because of that, Makefile is splitted in two compilation sub-sets
     28##
     29#  $ make pymods: compilation of Fortran modules used in the python scripts
     30#  $ make NCfortran: compiation of Fortran modules and main programs which require
     31#     netCDF-fortran interface: (for: DistriCorrection and trajectories_overlap)
     32#  $ make: compiles all components
     33##
    634
    735FC              = gfortran
     
    2553intsrcs = $(srcs) module_ForInterpolate.f90
    2654scisrcs = $(srcs)
     55gensrcs = module_definitions.f90 module_basic.f90 module_generic.f90
    2756defsrcs = module_definitions.f90
    2857
     
    3766        module_ForInterpolate.o \
    3867        module_ForDiagnosticsVars.o \
    39         module_ForDiagnostics.o \
    40         module_DistriCorrection.o
     68        module_ForDiagnostics.o
    4169
    4270FINTMODULES = \
     
    4674        module_scientific.o \
    4775        module_ForInterpolate.o
     76
     77FEXECMODULES = \
     78        module_definitions.o \
     79        module_basic.o \
     80        module_generic.o \
     81        module_scientific.o \
     82        module_NCgeneric.o \
     83        module_ForInterpolate.o \
     84        module_DistriCorrection.o
    4885
    4986all : \
     
    5592        pyintmods.o \
    5693        pyscimods.o \
     94        pygenmods.o \
    5795        pydefmods.o \
     96        trajectories_overlap.o
     97
     98pymods : \
     99        module_ForDiagnostics.o \
     100        pydistrimods.o \
     101        pydiagmods.o \
     102        pyintmods.o \
     103        pyscimods.o \
     104        pygenmods.o \
     105        pydefmods.o
     106
     107NCfortran : \
     108        module_definitions.o \
     109        module_basic.o \
     110        module_generic.o \
     111        module_NCgeneric.o \
     112        module_ForInterpolate.o \
     113        DistriCorrection.o \
    58114        trajectories_overlap.o
    59115
     
    62118
    63119clean :
    64         $(RM) *.mod *.o interpolate module_ForDiag.so module_ForInt.so module_ForDistriCorrect.so module_ForSci.so module_ForDef.so
     120        $(RM) *.mod *.o interpolate module_ForDiag.so module_ForInt.so module_ForDistriCorrect.so module_ForSci.so module_ForGen.so module_ForDef.so
    65121
    66122########    #######
     
    96152
    97153FCEXEFINTCFLAGS = $(FINTMODULES) $(LIB_NETCDF) $(LIB_INC)
    98 FCEXECFLAGS = $(MODULES) $(LIB_NETCDF) $(LIB_INC)
     154FCEXECFLAGS = $(FEXECMODULES) $(LIB_NETCDF) $(LIB_INC)
    99155
    100156interpolate.o: module_definitions.o module_basic.o module_generic.o module_scientific.o module_ForInterpolate.o
     
    116172        $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForSci $(scisrcs) -L$(NCLIBFOLD)
    117173
     174pygenmods.o:
     175        $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForGen $(gensrcs) -L$(NCLIBFOLD)
     176
    118177pydefmods.o:
    119178        $(F2PY) -c $(F2PYF) -I$(NCINCFOLD) -m module_ForDef $(defsrcs) -L$(NCLIBFOLD)
Note: See TracChangeset for help on using the changeset viewer.