Ignore:
Timestamp:
Jan 10, 2020, 3:07:23 PM (6 years ago)
Author:
dubos
Message:

simple_physics : minor changes to compile with gfortran and parse code using XCodeML F_Front

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/simple_physics/phyparam/Makefile

    r4224 r4225  
    1 # Example (bash) :
    2 # clear ; make clean ; F90=ifort FFLAGS=-fast time make -j
     1# Examples (bash) :
     2# clear ; make clean ;
     3# F90=ifort FFLAGS=-fast time make -j
     4# F90=gfortran F90FLAGS=-ffree-line-length-none gmake
     5# known to compile with gfortran version 7, ifort version 17
     6
     7# if XCodeML F_Front is installed, set FFRONT=F_Front to parse code into XML
     8FFRONT ?= true
    39
    410VPATH = obj
     
    915
    1016obj :
    11         @mkdir obj include lib
     17        @mkdir obj include lib xml
    1218
    1319clean :
    14         rm -f obj/* include/* lib/*
     20        rm -f obj/* include/* lib/* xml/*
    1521
    1622%.so : $(OBJECTS)
     
    2834obj/phyparam_mod.o     : MAIN solar.o radiative_sw.o radiative_lw.o comgeomfi.o writefield_mod.o
    2935
     36SRC = $(basename $(notdir $@))
    3037obj/%.o: physics/%.F90
    31         $(F90) -I include -fPIC -c $(F90FLAGS) $< -o $@
    32         @mv $(basename $(notdir $@)).mod include
     38        $(F90) -I include -fPIC $(F90FLAGS) -c $<
     39        @mv $(SRC).mod include
     40        @mv $(SRC).o obj
     41        @cpp -DXCODEML $< > xml/$(SRC).f90
     42        @$(FFRONT) -M xml xml/$(SRC).f90 > xml/$(SRC).xml
Note: See TracChangeset for help on using the changeset viewer.