/[lmdze]/trunk/GNUmakefile
ViewVC logotype

Diff of /trunk/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 327 by guez, Mon Jun 10 00:29:10 2019 UTC revision 328 by guez, Thu Jun 13 14:40:06 2019 UTC
# Line 12  src_test_ozonecm := $(shell cat ${makefi Line 12  src_test_ozonecm := $(shell cat ${makefi
12  src_test_inter_barxy := $(shell cat ${makefile_dir}/src_test_inter_barxy)  src_test_inter_barxy := $(shell cat ${makefile_dir}/src_test_inter_barxy)
13  src_test_fxhyp := $(shell cat ${makefile_dir}/src_test_fxhyp)  src_test_fxhyp := $(shell cat ${makefile_dir}/src_test_fxhyp)
14  src_test_inifilr := $(shell cat ${makefile_dir}/src_test_inifilr)  src_test_inifilr := $(shell cat ${makefile_dir}/src_test_inifilr)
15  src_test_orbite = test_orbite.f orbite.f YOMCST.f unit_nml_m.f  src_test_orbite = test_orbite.f90 orbite.f90 YOMCST.f90 unit_nml_m.f90
16    
17  sources := $(sort ${src_ce0l} ${src_gcm} ${src_test_ozonecm} ${src_test_inter_barxy} ${src_test_fxhyp} ${src_test_inifilr} ${src_test_orbite})  sources := $(sort ${src_ce0l} ${src_gcm} ${src_test_ozonecm} ${src_test_inter_barxy} ${src_test_fxhyp} ${src_test_inifilr} ${src_test_orbite})
18    
# Line 40  lib_dir_list = ${contour_531_dir} ${fort Line 40  lib_dir_list = ${contour_531_dir} ${fort
40  FFLAGS := $(addprefix -I, ${inc_dir_list})  FFLAGS := $(addprefix -I, ${inc_dir_list})
41    
42  # Fortran language options:  # Fortran language options:
43  FFLAGS += -ffree-form -std=f2003  FFLAGS += -std=f2003
44    
45  # Error and warning options:  # Error and warning options:
46  FFLAGS += -fmax-errors=1 -pedantic -Wall -Wcharacter-truncation -Wunused-parameter -Wno-conversion -Wno-integer-division  FFLAGS += -fmax-errors=1 -pedantic -Wall -Wcharacter-truncation -Wunused-parameter -Wno-conversion -Wno-integer-division
# Line 65  SHELL = bash Line 65  SHELL = bash
65          @echo "Linking $@..."          @echo "Linking $@..."
66          $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@          $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
67    
68  %.o: %.f  %.o: %.f90
69          @echo "Building $@..."          @echo "Building $@..."
70          $(COMPILE.f) $(OUTPUT_OPTION) $<          $(COMPILE.f) $(OUTPUT_OPTION) $<
71    
72  %: %.f  %.o: %.F90
73          @echo "Compiling and linking $@..."          @echo "Building $@..."
74          $(LINK.f) $^ $(LOADLIBES) $(LDLIBS) -o $@          $(COMPILE.F) $(OUTPUT_OPTION) $<
75    
76  LINK.o = $(FC) $(LDFLAGS) $(TARGET_ARCH)  LINK.o = $(FC) $(LDFLAGS) $(TARGET_ARCH)
77  .DELETE_ON_ERROR:  .DELETE_ON_ERROR:
# Line 117  test_inifilr: ${obj_test_inifilr} Line 117  test_inifilr: ${obj_test_inifilr}
117  test_orbite: ${obj_test_orbite}  test_orbite: ${obj_test_orbite}
118    
119  depend ${makefile_dir}/depend.mk:  depend ${makefile_dir}/depend.mk:
120          makedepf90 -free -Wmissing -Wconfused $(addprefix -I, ${VPATH}) -nosrc $(addprefix -u , netcdf numer_rec_95 netcdf95 nr_util jumble) ${sources} >${makefile_dir}/depend.mk          makedepf90 -Wmissing -Wconfused $(addprefix -I, ${VPATH}) -nosrc $(addprefix -u , netcdf numer_rec_95 netcdf95 nr_util jumble) ${sources} >${makefile_dir}/depend.mk
121    
122  clean:  clean:
123          rm -f ${execut} ${objects} log          rm -f ${execut} ${objects} log

Legend:
Removed from v.327  
changed lines
  Added in v.328

  ViewVC Help
Powered by ViewVC 1.1.21