/[lmdze]/trunk/GNUmakefile
ViewVC logotype

Diff of /trunk/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 94 by guez, Tue Apr 1 17:27:47 2014 UTC revision 97 by guez, Fri Apr 25 14:58:31 2014 UTC
# Line 4  Line 4 
4    
5  # 1. Source files  # 1. Source files
6    
7  compil_dir = .  makefile_dir = .
8    
9  VPATH := ${compil_dir}/.. $(addprefix ${compil_dir}/../, $(shell cat ${compil_dir}/directories))  VPATH := ${makefile_dir}/.. $(addprefix ${makefile_dir}/../, $(shell cat ${makefile_dir}/directories))
10    
11  common_sources := $(shell cat ${compil_dir}/common_sources)  common_sources := $(shell cat ${makefile_dir}/common_sources)
12  src_ce0l_only := $(shell cat ${compil_dir}/src_ce0l_only)  src_ce0l_only := $(shell cat ${makefile_dir}/src_ce0l_only)
13  src_gcm_only := $(shell cat ${compil_dir}/src_gcm_only)  src_gcm_only := $(shell cat ${makefile_dir}/src_gcm_only)
14  sources = ${src_ce0l_only} ${src_gcm_only} ${common_sources}  sources = ${src_ce0l_only} ${src_gcm_only} ${common_sources}
15    
16  # 2. Objects and executable files  # 2. Objects and executable files
# Line 38  ${execut}: Line 38  ${execut}:
38  ce0l: ${obj_ce0l}  ce0l: ${obj_ce0l}
39  gcm: ${obj_gcm}  gcm: ${obj_gcm}
40    
41  depend ${compil_dir}/depend.mk:  depend ${makefile_dir}/depend.mk:
42          makedepf90 -free -Wmissing -Wconfused $(addprefix -I, ${VPATH}) -nosrc $(addprefix -u , netcdf numer_rec_95 netcdf95 nr_util jumble) ${sources} >${compil_dir}/depend.mk          makedepf90 -free -Wmissing -Wconfused $(addprefix -I, ${VPATH}) -nosrc $(addprefix -u , netcdf numer_rec_95 netcdf95 nr_util jumble) ${sources} >${makefile_dir}/depend.mk
43    
44  TAGS: ${sources}  TAGS: ${sources}
45          ctags -e --language-force=fortran $^          ctags -e --language-force=fortran $^
# Line 48  clean: Line 48  clean:
48          rm -f ${execut} ${objects} log          rm -f ${execut} ${objects} log
49    
50  clobber: clean  clobber: clean
51          rm -f *.mod ${compil_dir}/depend.mk TAGS ${compil_dir}/TAGS          rm -f *.mod ${makefile_dir}/depend.mk TAGS
52    
53  log:  log:
54          hostname >$@          hostname >$@
# Line 56  log: Line 56  log:
56          echo -e "\nFC = ${FC}\n\nFFLAGS = ${FFLAGS}\n\nLDLIBS = ${LDLIBS}\n\nLDFLAGS = ${LDFLAGS}" >>$@          echo -e "\nFC = ${FC}\n\nFFLAGS = ${FFLAGS}\n\nLDLIBS = ${LDLIBS}\n\nLDFLAGS = ${LDFLAGS}" >>$@
57    
58  ifeq ($(findstring $(MAKECMDGOALS), clobber depend),)  ifeq ($(findstring $(MAKECMDGOALS), clobber depend),)
59  include ${compil_dir}/depend.mk  include ${makefile_dir}/depend.mk
60  endif  endif
61    
62  -include grep.mk  -include grep.mk

Legend:
Removed from v.94  
changed lines
  Added in v.97

  ViewVC Help
Powered by ViewVC 1.1.21