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 |
|
# Compiled modules created by NAG are needed. |
5 |
|
|
6 |
.PHONY: objects |
.PHONY: objects |
7 |
objects: ${objects} |
objects: ${objects} |
8 |
# (useful for NAG module builder) |
# (useful for NAG module builder) |
9 |
|
|
10 |
nag_fcalls_options = -calledby -locate -class |
# Call graph: |
11 |
nag_cross_options = -key |
CG_etat0_lim: ${sources_etat0_lim} |
12 |
|
@nag_fcalls95 ${nag_fcalls_options} -listing $@ $^ |
13 |
# NAG general options: |
|
14 |
nag_options = -dusty ${inc_flags} |
CG_gcm: ${sources_gcm} |
15 |
|
@nag_fcalls95 ${nag_fcalls_options} -listing $@ $^ |
16 |
call_graph_etat0_lim: $(filter-out netcdf95.f90, ${sources_etat0_lim}) |
|
17 |
@nag_fcalls95 ${nag_options} ${nag_fcalls_options} -listing $@ $^ |
# Cross references: |
18 |
|
CR_etat0_lim: ${sources_etat0_lim} |
19 |
call_graph_gcm: $(filter-out netcdf95.f90, ${sources_gcm}) |
@nag_xref95 ${nag_cross_options} -listing $@ $^ |
20 |
@nag_fcalls95 ${nag_options} ${nag_fcalls_options} -listing $@ $^ |
|
21 |
|
.PHONY: clean_nag |
22 |
cross_ref_etat0_lim: ${sources_etat0_lim} |
clean_nag: |
23 |
@nag_xref95 ${nag_options} ${nag_cross_options} -listing $@ $^ |
rm -f CG_etat0_lim CG_gcm CR_etat0_lim |
|
|
|
|
.PHONY: clean_call_graph |
|
|
clean_call_graph: |
|
|
rm -f call_graph_etat0_lim call_graph_gcm |
|