--- trunk/libf/call_graph.mk 2008/03/04 14:00:42 6 +++ trunk/nag_rules.mk 2017/04/20 14:44:47 221 @@ -1,24 +1,18 @@ -# Needs compiled modules created by NAG. +# This is an extension to the LMDZE makefile, useful for NAG Fortran +# tools. It should be included in the LMDZE makefile. -.PHONY: objects -objects: ${objects} -# (useful for NAG module builder) +# Compiled modules created by NAG are needed. -nag_fcalls_options = -calledby -locate -class -nag_cross_options = -key +.PHONY: all_nag +all_nag: CG_ce0l CG_gcm -# NAG general options: -nag_options = -dusty ${inc_flags} +# Call graphs: +CG_ce0l: ${src_ce0l} + nagfor =callgraph ${nag_fcalls_options} -o $@ $^ -call_graph_etat0_lim: $(filter-out netcdf95.f90, ${sources_etat0_lim}) - @nag_fcalls95 ${nag_options} ${nag_fcalls_options} -listing $@ $^ +CG_gcm: ${src_gcm} + nagfor =callgraph ${nag_fcalls_options} -o $@ $^ -call_graph_gcm: $(filter-out netcdf95.f90, ${sources_gcm}) - @nag_fcalls95 ${nag_options} ${nag_fcalls_options} -listing $@ $^ - -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 +.PHONY: clean_nag +clean_nag: + rm -f CG_ce0l CG_gcm