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 |
|
|
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 |
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: |
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 |