/[lmdze]/trunk/libf/GNUmakefile
ViewVC logotype

Contents of /trunk/libf/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71 - (show annotations)
Mon Jul 8 18:12:18 2013 UTC (10 years, 9 months ago) by guez
File size: 2245 byte(s)
No reason to call inidissip in ce0l.

In inidissip, set random seed to 1 beacuse PGI compiler does not
accept all zeros.

dq was computed needlessly in caladvtrac. Arguments masse and dq of
calfis not used.

Replaced real*8 by double precision.

Pass arrays with inverted order of vertical levels to conflx instead
of creating local variables for this inside conflx.

1 # This is a makefile for GNU make.
2
3 # This makefile builds LMDZE.
4
5 # Suffixes are:
6 # "f90" for free format, no preprocessing
7 # "f" for fixed format, no preprocessing
8
9 # 1. Source files
10
11 src_root = .
12
13 VPATH = ${src_root}:${src_root}/dyn3d:${src_root}/dyn3d/Vlsplt:${src_root}/filtrez:${src_root}/phylmd:${src_root}/bibio:${src_root}/phylmd/Mobidic:${src_root}/phylmd/Orography:${src_root}/phylmd/Radlwsw:${src_root}/IOIPSL:${src_root}/IOIPSL/Stringop:${src_root}/dyn3d/Read_reanalyse:${src_root}/phylmd/Thermcell:${src_root}/phylmd/CV3_routines:${src_root}/phylmd/Conflx:${src_root}/phylmd/CV_routines:${src_root}/phylmd/Interface_surf:${src_root}/dyn3d/Dissipation:${src_root}/IOIPSL/Histcom:${src_root}/IOIPSL/Flincom
14
15 common_sources := $(shell cat ${src_root}/common_sources)
16
17 sources_ce0l := $(sort ${common_sources} $(shell cat ${src_root}/sources_ce0l_only))
18
19 sources_gcm := $(sort ${common_sources} $(shell cat ${src_root}/sources_gcm_only))
20
21 sources := $(sort ${sources_ce0l} ${sources_gcm})
22
23 # 2. Objects and executable files
24
25 # Object files:
26 obj_ce0l := $(addsuffix .o, $(basename ${sources_ce0l}))
27 obj_gcm := $(addsuffix .o, $(basename ${sources_gcm}))
28 objects := $(addsuffix .o, $(basename ${sources}))
29
30 # Executable files:
31 execut = ce0l gcm
32
33 # 3. Compiler-dependent part
34
35 mode = debug
36 include ../Compilers/${FC}_${mode}.mk
37
38 # 4. Rules
39
40 SHELL = bash
41
42 # Extend known suffixes:
43 COMPILE.f90 = $(FC) $(F90FLAGS) $(TARGET_ARCH) -c
44 %.o: %.f90
45 $(COMPILE.f90) $(OUTPUT_OPTION) $<
46
47 .PHONY: all clean clobber depend
48
49 all: ${execut} trace
50
51 ${execut}:
52 $(FC) $(LDFLAGS) $^ $(LDLIBS) -o $@
53
54 ce0l: ${obj_ce0l}
55 gcm: ${obj_gcm}
56
57 depend ${src_root}/depend.mk:
58 makedepf90 -Wmissing -Wconfused -I${VPATH} -nosrc $(addprefix -u, netcdf numer_rec_95 netcdf95 nr_util jumble) ${sources} >${src_root}/depend.mk
59
60 TAGS: ${sources}
61 ctags -e --language-force=fortran $^
62
63 clean:
64 rm -f ${objects}
65 rm -f ${execut} trace
66
67 clobber: clean
68 rm -f *.mod ${src_root}/depend.mk ${src_root}/TAGS
69
70 trace:
71 ${FC} ${version_flag} >$@ 2>&1
72 echo -e "\nFC = ${FC}\n\nFFLAGS = ${FFLAGS}\n\nLDLIBS = ${LDLIBS}\n\nLDFLAGS = ${LDFLAGS}" >>$@
73
74 # Dependencies among object files:
75 include ${src_root}/depend.mk
76
77 # Other rules, optionnally:
78 -include grep.mk
79 -include nag_rules.mk

  ViewVC Help
Powered by ViewVC 1.1.21