File: Makefile.am

package info (click to toggle)
cdo 2.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 49,964 kB
  • sloc: cpp: 180,221; ansic: 95,352; sh: 7,292; f90: 6,089; makefile: 1,975; ruby: 1,078; csh: 1,020; python: 995; fortran: 319; pascal: 219; perl: 9
file content (224 lines) | stat: -rw-r--r-- 5,878 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
TEST_EXTENSIONS = @EXEEXT@ .run

# Serial tests:
TESTS = \
  calendar_test1 \
  cksum_verify \
  pio_write.run \
  pio_write_deco2d.run \
  test_byteswap.run \
  test_cdf_const.run \
  test_cdf_transformation.run \
  test_cksum_ext.run \
  test_cksum_grb.run \
  test_cksum_grb2.run \
  test_cksum_ieg.run \
  test_cksum_nc.run \
  test_cksum_nc2.run \
  test_cksum_nc4.run \
  test_cksum_nc_chunk.run \
  test_cksum_srv.run \
  test_f2003.run \
  test_grib.run \
  test_month_adjust \
  test_resource_copy.run \
  test_table.run

# Update test_cksum_base before running tests that source it:
test_cksum_TEST_LOGS_ = \
  test_cksum_ext.log \
  test_cksum_grb.log \
  test_cksum_grb2.log \
  test_cksum_ieg.log \
  test_cksum_nc.log \
  test_cksum_nc2.log \
  test_cksum_nc4.log \
  test_cksum_srv.log
$(test_cksum_TEST_LOGS_): test_cksum_base

# Parallel tests:
TESTS += \
  pio_cksum_asynch.run \
  pio_cksum_fpguard.run \
  pio_cksum_grb2.run \
  pio_cksum_mpi_fw_at_all.run \
  pio_cksum_mpi_fw_at_reblock.run \
  pio_cksum_mpi_fw_ordered.run \
  pio_cksum_mpinonb.run \
  pio_cksum_nc.run \
  pio_cksum_nc2.run \
  pio_cksum_nc4.run \
  pio_cksum_writer.run \
  pio_write.parallel.run \
  pio_write_deco2d.parallel.run \
  pio_write_dist_array.run \
  test_resource_copy.parallel.run

# Update pio_write_dist_array.run before running tests that source it:
pio_write_dist_array_TEST_LOGS_ = \
  pio_cksum_asynch.log \
  pio_cksum_fpguard.log \
  pio_cksum_grb2.log \
  pio_cksum_mpi_fw_at_all.log \
  pio_cksum_mpi_fw_at_reblock.log \
  pio_cksum_mpi_fw_ordered.log \
  pio_cksum_mpinonb.log \
  pio_cksum_nc.log \
  pio_cksum_nc2.log \
  pio_cksum_nc4.log \
  pio_cksum_writer.log
$(pio_write_dist_array_TEST_LOGS_): pio_write_dist_array.run

# Update pio_write.run before running tests that source it:
pio_write_TEST_LOGS_ = \
  $(pio_write_dist_array_TEST_LOGS_) \
  pio_write.parallel.log \
  pio_write_deco2d.log \
  pio_write_deco2d.parallel.log \
  pio_write_dist_array.log
$(pio_write_TEST_LOGS_): pio_write.run

if !with_concurrent_mpi_checks
pio_cksum_fpguard.log: pio_cksum_asynch.log
pio_cksum_grb2.log: pio_cksum_fpguard.log
pio_cksum_mpi_fw_at_all.log: pio_cksum_grb2.log
pio_cksum_mpi_fw_at_reblock.log: pio_cksum_mpi_fw_at_all.log
pio_cksum_mpi_fw_ordered.log: pio_cksum_mpi_fw_at_reblock.log
pio_cksum_mpinonb.log: pio_cksum_mpi_fw_ordered.log
pio_cksum_nc.log: pio_cksum_mpinonb.log
pio_cksum_nc2.log: pio_cksum_nc.log
pio_cksum_nc4.log: pio_cksum_nc2.log
pio_cksum_writer.log: pio_cksum_nc4.log
pio_write.parallel.log: pio_cksum_writer.log
pio_write_deco2d.parallel.log: pio_write.parallel.log
pio_write_dist_array.log: pio_write_deco2d.parallel.log
test_resource_copy.parallel.log: pio_write_dist_array.log
endif !with_concurrent_mpi_checks

test_PROGRAMS_ = \
  calendar_test1 \
  cksum_read \
  cksum_verify \
  cksum_write \
  cksum_write_chunk \
  pio_write \
  pio_write_deco2d \
  test_byteswap \
  test_grib \
  test_month_adjust \
  test_resource_copy \
  test_table

if ENABLE_NETCDF
test_PROGRAMS_ += \
  test_cdf_read \
  test_cdf_write
endif

if ENABLE_MPI
test_PROGRAMS_ += \
  pio_write.parallel \
  pio_write_deco2d.parallel \
  test_resource_copy.parallel
endif ENABLE_MPI

if with_on_demand_check_programs
check_PROGRAMS = $(test_PROGRAMS_)
else !with_on_demand_check_programs
noinst_PROGRAMS = $(test_PROGRAMS_)
endif !with_on_demand_check_programs

AM_CPPFLAGS = -I$(top_srcdir)/src
AM_CFLAGS = $(PPM_CORE_C_INCLUDE) $(YAXT_C_INCLUDE) $(MPI_C_INCLUDE)

AM_LDFLAGS =
if ENABLE_ALL_STATIC
AM_LDFLAGS += -all-static
endif

LDADD = $(top_builddir)/src/libcdi.la

calendar_test1_SOURCES = calendar_test1.c

cksum_read_SOURCES = \
  cksum_read.c \
  ensure_array_size.c \
  ensure_array_size.h \
  stream_cksum.c \
  stream_cksum.h \
  var_cksum.c \
  var_cksum.h

cksum_verify_SOURCES = cksum_verify.c

cksum_write_SOURCES = \
  cksum_write.c \
  simple_model_helper.c \
  simple_model_helper.h

cksum_write_chunk_SOURCES = \
  cksum_write_chunk.c \
  simple_model_helper.c \
  simple_model_helper.h

pio_write_SOURCES = \
  pio_write.c \
  pio_write.h \
  pio_write_setup_grid.c \
  pio_write_setup_grid.h \
  simple_model.c \
  simple_model_helper.c \
  simple_model_helper.h
nodist_pio_write_parallel_SOURCES = $(pio_write_SOURCES:.c=.parallel.c)
pio_write_parallel_LDADD = $(top_builddir)/src/libcdipio.la $(PPM_CORE_C_LIB) $(YAXT_C_LIB) $(LDADD)

pio_write_deco2d_SOURCES = \
  deco2d_model.c \
  pio_write.c \
  pio_write.h \
  pio_write_setup_grid.c \
  pio_write_setup_grid.h \
  simple_model_helper.c \
  simple_model_helper.h
nodist_pio_write_deco2d_parallel_SOURCES = $(pio_write_deco2d_SOURCES:.c=.parallel.c)
pio_write_deco2d_parallel_LDADD = $(top_builddir)/src/libcdipio.la $(PPM_CORE_C_LIB) $(YAXT_C_LIB) $(LDADD)

test_byteswap_SOURCES = test_byteswap.c

test_grib_SOURCES = test_grib.c

test_month_adjust_SOURCES = test_month_adjust.c

test_resource_copy_SOURCES = test_resource_copy.c
test_resource_copy_LDADD = $(top_builddir)/src/libcdiresunpack.la
nodist_test_resource_copy_parallel_SOURCES = $(test_resource_copy_SOURCES:.c=.parallel.c)
test_resource_copy_parallel_LDADD = $(top_builddir)/src/libcdipio.la $(LDADD)

test_table_SOURCES = test_table.c

test_cdf_read_SOURCES = test_cdf_read.c

test_cdf_write_SOURCES = \
  simple_model_helper.c \
  simple_model_helper.h \
  test_cdf_write.c

clean-local:
	-rm -f *.parallel.c
	-rm -f *.grb *.grb2 *.nc *.nc2 *.nc4 *.srv *.ext *.cksum *.ieg *.stderr *.stdout
	-rm -rf *.dSYM

AUTOMAKE_OPTIONS = color-tests

# Generate source files for parallel versions of the programs. We do this to
# avoid target-specific flags, which result into rules that do not use the
# compilation commands above.
SUFFIXES = .parallel.c

.c.parallel.c:
	$(AM_V_GEN):;{ \
	  echo '#define USE_MPI 1'; \
	  echo '#include "$<"'; \
	  } >$@

include $(top_srcdir)/config/lt_overrides_Makefile.inc