/[lmdze]/trunk/GNUmakefile
ViewVC logotype

Annotation of /trunk/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 97 - (hide annotations)
Fri Apr 25 14:58:31 2014 UTC (10 years ago) by guez
Original Path: trunk/Compilation/GNUmakefile
File size: 1577 byte(s)
Module pressure_var is now only used in gcm. Created local variables
pls and p3d in etat0, added argument p3d to regr_pr_o3.

In leapfrog, moved computation of p3d and exner function immediately
after integrd, for clarity (does not change the execution).

Removed unused arguments: ntra, tra1 and tra of cv3_compress; ntra,
tra and traent of cv3_mixing; ntra, ftra, ftra1 of cv3_uncompress;
ntra, tra, trap of cv3_unsat; ntra, tra, trap, traent, ftra of
cv3_yield; tra, tvp, pbase, bbase, dtvpdt1, dtvpdq1, dplcldt,
dplcldr, ntra of concvl; ndp1, ntra, tra1 of cv_driver

Removed argument d_tra and computation of d_tra in concvl. Removed
argument ftra1 and computation of ftra1 in cv_driver. ftra1 was just
set to 0 in cv_driver, associated to d_tra in concvl, and set again to
zero in concvl.

1 guez 69 # This is a makefile for GNU make.
2 guez 3
3 guez 61 # This makefile builds LMDZE.
4    
5 guez 62 # 1. Source files
6    
7 guez 97 makefile_dir = .
8 guez 3
9 guez 97 VPATH := ${makefile_dir}/.. $(addprefix ${makefile_dir}/../, $(shell cat ${makefile_dir}/directories))
10 guez 3
11 guez 97 common_sources := $(shell cat ${makefile_dir}/common_sources)
12     src_ce0l_only := $(shell cat ${makefile_dir}/src_ce0l_only)
13     src_gcm_only := $(shell cat ${makefile_dir}/src_gcm_only)
14 guez 79 sources = ${src_ce0l_only} ${src_gcm_only} ${common_sources}
15 guez 3
16 guez 79 # 2. Objects and executable files
17 guez 71
18 guez 83 obj_ce0l := $(sort ${common_sources:.f=.o} ${src_ce0l_only:.f=.o})
19     obj_gcm := $(sort ${common_sources:.f=.o} ${src_gcm_only:.f=.o})
20     objects := $(sources:.f=.o)
21 guez 79 execut = ce0l gcm
22 guez 62
23 guez 69 # 3. Compiler-dependent part
24 guez 70
25 guez 69 mode = debug
26 guez 81 include Compiler_options/${FC}_${mode}.mk
27 guez 3
28 guez 62 # 4. Rules
29    
30 guez 69 SHELL = bash
31 guez 78 .DELETE_ON_ERROR:
32 guez 69 .PHONY: all clean clobber depend
33 guez 79 all: ${execut} log
34    
35     ${execut}:
36     $(FC) $(LDFLAGS) $^ $(LDLIBS) -o $@
37    
38 guez 70 ce0l: ${obj_ce0l}
39 guez 3 gcm: ${obj_gcm}
40    
41 guez 97 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} >${makefile_dir}/depend.mk
43 guez 61
44 guez 94 TAGS: ${sources}
45     ctags -e --language-force=fortran $^
46 guez 3
47     clean:
48 guez 79 rm -f ${execut} ${objects} log
49 guez 3
50     clobber: clean
51 guez 97 rm -f *.mod ${makefile_dir}/depend.mk TAGS
52 guez 3
53 guez 79 log:
54     hostname >$@
55     ${FC} ${version_flag} >>$@ 2>&1
56 guez 69 echo -e "\nFC = ${FC}\n\nFFLAGS = ${FFLAGS}\n\nLDLIBS = ${LDLIBS}\n\nLDFLAGS = ${LDFLAGS}" >>$@
57 guez 62
58 guez 90 ifeq ($(findstring $(MAKECMDGOALS), clobber depend),)
59 guez 97 include ${makefile_dir}/depend.mk
60 guez 78 endif
61 guez 3
62     -include grep.mk
63 guez 7 -include nag_rules.mk

  ViewVC Help
Powered by ViewVC 1.1.21