/[lmdze]/trunk/GNUmakefile
ViewVC logotype

Contents of /trunk/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 83 - (show annotations)
Thu Mar 6 15:12:00 2014 UTC (10 years, 1 month ago) by guez
File size: 1536 byte(s)
In procedure conf_guide, replaced calls to getpar by reading a
namelist. Removed file getparam.f, now unused. So getin of IOIPSL is
now unused too. Removed files getincom.f, getincom2.f, cmpblank.f,
find_sig.f, gensig.f and nocomma.f.

Moved variables lat_min_guide and lat_max_guide from module
tau2alpha_m to module conf_guide_m.

Removed variables nivsig and nivsigs of module disvert_m. Instead, in
initdynav and initfluxsto, directly wrote arithmetic sequence for
verical axis, pending a better vertical axis. Removed variables nivsig
and nivsigs of "(re)?.start.nc".

In procedure exner_hyb, replaced p(:, :, 1) by equivalent ps.

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

  ViewVC Help
Powered by ViewVC 1.1.21