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) |
|
5 |
|
|
6 |
nag_fcalls_options = -calledby -locate -class |
.PHONY: all_nag |
7 |
nag_cross_options = -key |
all_nag: CG_ce0l CG_gcm |
8 |
|
|
9 |
# NAG general options: |
# Call graphs: |
10 |
nag_options = -dusty ${inc_flags} |
CG_ce0l: ${src_ce0l} |
11 |
|
nagfor =callgraph ${nag_fcalls_options} -o $@ $^ |
12 |
|
|
13 |
call_graph_etat0_lim: $(filter-out netcdf95.f90, ${sources_etat0_lim}) |
CG_gcm: ${src_gcm} |
14 |
@nag_fcalls95 ${nag_options} ${nag_fcalls_options} -listing $@ $^ |
nagfor =callgraph ${nag_fcalls_options} -o $@ $^ |
15 |
|
|
16 |
call_graph_gcm: $(filter-out netcdf95.f90, ${sources_gcm}) |
.PHONY: clean_nag |
17 |
@nag_fcalls95 ${nag_options} ${nag_fcalls_options} -listing $@ $^ |
clean_nag: |
18 |
|
rm -f CG_ce0l CG_gcm |
|
cross_ref_etat0_lim: ${sources_etat0_lim} |
|
|
@nag_xref95 ${nag_options} ${nag_cross_options} -listing $@ $^ |
|
|
|
|
|
.PHONY: clean_call_graph |
|
|
clean_call_graph: |
|
|
rm -f call_graph_etat0_lim call_graph_gcm |
|