Ignore:
Timestamp:
Jan 20, 2020, 5:25:39 PM (5 years ago)
Author:
dubos
Message:

simple_physics : simpler Makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/simple_physics/phyparam/Makefile

    r4233 r4234  
    1818
    1919obj :
    20         @mkdir obj include lib xml
     20        @mkdir obj include lib xml tmp
    2121
    22 clean :
    23         rm -f obj/* include/* lib/* xml/*
     22deps :
     23        @../bash/concatenate_all_code.sh $(NAMES) > tmp/all_code
     24        @../bash/makedeps.sh tmp/all_code >  Makefile.inc
     25
     26clean : deps
     27        rm -rf obj include lib xml tmp *~ */*~
    2428
    2529nice:
     
    2933        $(F90) -shared $^ -o $@
    3034
    31 obj/read_param_mod.o   : logging.o
    32 obj/write_field_mod.o  : logging.o
    33 obj/convection.o       : logging.o
    34 obj/surface.o          : logging.o
    35 obj/astronomy.o        : logging.o
    36 obj/solar.o            : logging.o astronomy.o
    37 obj/radiative_lw.o     : logging.o phys_const.o
    38 obj/radiative_sw.o     : logging.o phys_const.o
    39 obj/turbulence.o       : logging.o phys_const.o
    40 MAIN                   : callkeys.o phys_const.o astronomy.o turbulence.o surface.o convection.o planet.o
    41 obj/iniphyparam_mod.o  : MAIN read_param_mod.o
    42 obj/phyparam_mod.o     : MAIN solar.o radiative_sw.o radiative_lw.o comgeomfi.o writefield_mod.o
    43 
    4435SRC = $(basename $(notdir $@))
    4536obj/%.o: physics/%.F90
     
    4738        @mv $(SRC).mod include
    4839        @mv $(SRC).o obj
    49         @cpp -DXCODEML $< > xml/$(SRC).f90
    50         @$(FFRONT) -M xml xml/$(SRC).f90 > xml/$(SRC).xml
     40        @cpp -DXCODEML $< > tmp/$(SRC).f90
     41        @$(FFRONT) -M tmp tmp/$(SRC).f90 > xml/$(SRC).xml
     42
     43-include Makefile.inc
Note: See TracChangeset for help on using the changeset viewer.