1 |
# Needs compiled modules created by NAG. |
# This is an extension to the LMDZE makefile, useful for NAG Fortran |
2 |
|
# tools. It should be included in the LMDZE makefile. |
3 |
|
|
4 |
.PHONY: objects |
# Compiled modules created by NAG are needed. |
|
objects: ${objects} |
|
|
# (useful for NAG module builder) |
|
|
|
|
|
nag_fcalls_options = -calledby -locate -class |
|
|
nag_cross_options = -key |
|
|
|
|
|
# NAG general options: |
|
|
nag_options = -dusty ${inc_flags} |
|
5 |
|
|
6 |
call_graph_etat0_lim: ${sources_etat0_lim} |
.PHONY: all_nag objects |
|
@nag_fcalls95 ${nag_options} ${nag_fcalls_options} -listing $@ $^ |
|
7 |
|
|
8 |
call_graph_gcm: $(filter-out netcdf95.f90, ${sources_gcm}) |
all_nag: objects CG_ce0l CG_gcm CR_ce0l CR_gcm |
9 |
@nag_fcalls95 ${nag_options} ${nag_fcalls_options} -listing $@ $^ |
objects: ${objects} |
|
|
|
|
cross_ref_etat0_lim: ${sources_etat0_lim} |
|
|
@nag_xref95 ${nag_options} ${nag_cross_options} -listing $@ $^ |
|
10 |
|
|
11 |
.PHONY: clean_call_graph |
# Call graphs: |
12 |
clean_call_graph: |
CG_ce0l: ${src_ce0l} |
13 |
rm -f call_graph_etat0_lim call_graph_gcm |
nagfor =callgraph ${nag_fcalls_options} -o $@ $^ |
14 |
|
|
15 |
|
CG_gcm: ${common_sources} ${src_gcm_only} |
16 |
|
nag_fcalls95 ${nag_fcalls_options} -listing $@ $^ |
17 |
|
|
18 |
|
# Cross references: |
19 |
|
CR_ce0l: ${src_ce0l} |
20 |
|
nag_xref95 ${nag_cross_options} -listing $@ $^ |
21 |
|
|
22 |
|
CR_gcm: ${common_sources} ${src_gcm_only} |
23 |
|
nag_xref95 ${nag_cross_options} -listing $@ $^ |
24 |
|
|
25 |
|
.PHONY: clean_nag |
26 |
|
clean_nag: |
27 |
|
rm -f CG_ce0l CG_gcm CR_ce0l CR_gcm |