Makefile.am 14.4 KB
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
## Process this file with automake to produce Makefile.in
2
3
noinst_LTLIBRARIES = libcdo.la
libcdo_la_SOURCES =            \
4
5
               array.h         \
               array.c         \
6
               cdo_int.h       \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
7
               compare.h       \
8
9
10
11
               cdo_pthread.c   \
               cdo_vlist.c     \
               cdo_getopt.c    \
               cdo_getopt.h    \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
12
13
               cdo_task.c      \
               cdo_task.h      \
14
               cdo_history.c   \
15
               cdi_uuid.h      \
16
               cmortable_parser.c   \
17
               after_sptrans.c \
18
               after_fctrans.c \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
19
               after_dvtrans.c \
20
21
               after_vertint.c \
               after_vertint.h \
22
               after_namelist.c\
Uwe Schulzweida's avatar
Uwe Schulzweida committed
23
24
               afterburnerlib.c\
               afterburner.h   \
25
               vct_l191.h      \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
26
               calendar.h      \
27
28
               constants.h     \
               constants.c     \
29
30
31
32
               color.c         \
               color.h         \
               commandline.c   \
               const.h         \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
33
34
               convert_units.c \
               convert_units.h \
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
               counter.h       \
               datetime.c      \
               datetime.h      \
               dmemory.h       \
               ecacore.c       \
               ecacore.h       \
               ecautil.c       \
               ecautil.h       \
               error.h         \
               etopo.h         \
               temp.h          \
               mask.h          \
               exception.c     \
               expr.c          \
               expr.h          \
50
51
               expr_fun.c      \
               expr_fun.h      \
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
               expr_lex.c      \
               expr_yacc.c     \
               expr_yacc.h     \
               features.c      \
               field.c         \
               field.h         \
               field2.c        \
               fieldc.c        \
               fieldmem.c      \
               fieldmer.c      \
               fieldzon.c      \
               functs.h        \
               gradsdeslib.c   \
               gradsdeslib.h   \
               grid.c          \
               grid.h          \
               grid_area.c     \
69
               grid_define.c   \
70
71
72
               grid_gme.c      \
               grid_lcc.c      \
               grid_rot.c      \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
73
               grid_from_name.c   \
74
               grid_read.c        \
75
               grid_read_pingo.c  \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
76
               grid_print.c    \
77
78
79
80
81
82
83
84
85
86
87
88
               gridreference.c \
               griddes.c       \
               griddes.h       \
               griddes_h5.c    \
               griddes_nc.c    \
               hetaeta.c       \
               hetaeta.h       \
               institution.c   \
               interpol.c      \
               interpol.h      \
               job.c           \
               juldate.c       \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
89
90
               grid_search.c   \
               grid_search.h   \
91
92
               listarray.c     \
               listarray.h     \
93
94
               list.c          \
               list.h          \
95
96
               listbuf.c       \
               listbuf.h       \
97
98
99
100
	       merge_sort2.c   \
	       merge_sort2.h   \
               modules.c       \
               modules.h       \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
101
102
               namelist.c      \
               namelist.h      \
103
               namelist_parser.c     \
104
105
106
107
108
109
               normal.c        \
               nth_element.c   \
               nth_element.h   \
               operator_help.h \
               par_io.c        \
               par_io.h        \
110
               parse_literal.c      \
111
112
               percentiles_hist.c   \
               percentiles_hist.h   \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
113
114
               percentiles.c   \
               percentiles.h   \
115
116
               pipe.c          \
               pipe.h          \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
117
118
               pmlist.c        \
               pmlist.h        \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
119
120
               sellist.c       \
               sellist.h       \
121
122
123
124
125
126
               pragma_omp_atomic_update.h \
               printinfo.h     \
               process.c       \
               process.h       \
               pstream.c       \
               pstream.h       \
127
               pstream_write.h \
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
               pstream_int.h   \
               pthread_debug.c \
               pthread_debug.h \
               readline.c      \
               realtime.c      \
               remap.h         \
               remaplib.c      \
               remapsort.c     \
               remap_scrip_io.c \
               remap_search_reg2d.c \
               remap_search_latbins.c \
               remap_store_link.c \
               remap_store_link.h \
               remap_store_link_cnsrv.c \
               remap_store_link_cnsrv.h \
               remap_conserv.c \
               remap_conserv_scrip.c \
145
               remap_distwgt.c \
146
147
148
149
150
151
152
153
154
155
156
157
158
159
               remap_bicubic_scrip.c \
               remap_bilinear_scrip.c \
               stdnametable.c  \
               stdnametable.h  \
               specspace.c     \
               specspace.h     \
               statistic.c     \
               statistic.h     \
               table.c         \
               text.c          \
               text.h          \
               timebase.h      \
               timer.c         \
               userlog.c       \
160
               uthash.h        \
161
162
               util.c          \
               util.h          \
163
               zaxis_print.c   \
164
               zaxis.c
Uwe Schulzweida's avatar
Uwe Schulzweida committed
165
166
167
libcdo_la_SOURCES +=           \
               json/jsmn.h     \
               json/jsmn.c
168
169
170
171
172
libcdo_la_SOURCES +=           \
               kdtreelib/kdtree.h            \
               kdtreelib/kdtree_cartesian.c  \
               kdtreelib/kdtree_common.c     \
               kdtreelib/kdtree_spherical.c  \
173
               kdtreelib/qsort.c             \
174
175
               kdtreelib/pmergesort.c        \
               kdtreelib/pqueue.c            \
176
               kdtreelib/pqueue.h
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
libcdo_la_SOURCES +=           \
               clipping/clipping.c           \
               clipping/clipping.h           \
               clipping/area.c               \
               clipping/area.h               \
               clipping/ensure_array_size.c  \
               clipping/ensure_array_size.h  \
               clipping/geometry.h           \
               clipping/grid.h               \
               clipping/points.h             \
               clipping/dep_list.h           \
               clipping/grid_cell.c          \
               clipping/grid_cell.h          \
               clipping/intersection.c       \
               clipping/utils.c              \
               clipping/utils.h 
Uwe Schulzweida's avatar
Uwe Schulzweida committed
193
#
194
bin_PROGRAMS = cdo
Uwe Schulzweida's avatar
Uwe Schulzweida committed
195
#
Ralf Mueller's avatar
Ralf Mueller committed
196
cdo_SOURCES  = cdo.c
Uwe Schulzweida's avatar
Uwe Schulzweida committed
197
cdo_SOURCES += Adisit.c        \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
198
               Afterburner.c   \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
199
               Arith.c         \
Ralf Mueller's avatar
Ralf Mueller committed
200
201
202
203
               Arithc.c        \
               Arithdays.c     \
               Arithlat.c      \
               CDItest.c       \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
204
               CDIread.c       \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
205
               CDIwrite.c      \
Ralf Mueller's avatar
Ralf Mueller committed
206
207
208
209
               Cat.c           \
               Change.c        \
               Change_e5slm.c  \
               Cloudlayer.c    \
210
               CMOR.c          \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
211
               CMOR_lite.c     \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
212
               CMOR_table.c    \
213
               Collgrid.c      \
Ralf Mueller's avatar
Ralf Mueller committed
214
215
216
217
218
219
220
221
222
               Command.c       \
               Comp.c          \
               Compc.c         \
               Complextorect.c \
               Cond.c          \
               Cond2.c         \
               Condc.c         \
               Consecstat.c    \
               Copy.c          \
223
               Deltat.c        \
Ralf Mueller's avatar
Ralf Mueller committed
224
               Deltime.c       \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
225
               Derivepar.c     \
Ralf Mueller's avatar
Ralf Mueller committed
226
227
               Detrend.c       \
               Diff.c          \
228
               Distgrid.c      \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
229
               Duplicate.c     \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
230
231
               EOFs.c          \
	       Eof3d.c         \
Ralf Mueller's avatar
Ralf Mueller committed
232
233
234
235
236
               EcaIndices.c    \
               Echam5ini.c     \
               Enlarge.c       \
               Enlargegrid.c   \
               Ensstat.c       \
237
               Ensstat3.c      \
238
               Ensval.c        \
Ralf Mueller's avatar
Ralf Mueller committed
239
               Eofcoeff.c      \
Cedrick Ansorge's avatar
Cedrick Ansorge committed
240
	       Eofcoeff3d.c    \
Ralf Mueller's avatar
Ralf Mueller committed
241
               Exprf.c         \
242
               FC.c            \
Ralf Mueller's avatar
Ralf Mueller committed
243
244
245
246
247
248
249
250
251
252
253
               Filedes.c       \
               Fillmiss.c      \
               Filter.c        \
               Fldrms.c        \
               Fldstat.c       \
               Fldstat2.c      \
               Fourier.c       \
               Gengrid.c       \
               Gradsdes.c      \
               Gridboxstat.c   \
               Gridcell.c      \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
254
               Gridsearch.c    \
Ralf Mueller's avatar
Ralf Mueller committed
255
256
257
258
259
260
261
262
263
264
265
266
               Harmonic.c      \
               Hi.c            \
               Histogram.c     \
               Importamsr.c    \
               Importbinary.c  \
               Importcmsaf.c   \
               Importobs.c     \
               Info.c          \
               Input.c         \
               Intgrid.c       \
               Intgridtraj.c   \
               Intlevel.c      \
267
               Intlevel3d.c    \
Ralf Mueller's avatar
Ralf Mueller committed
268
269
270
271
272
               Intntime.c      \
               Inttime.c       \
               Intyear.c       \
               Invert.c        \
               Invertlev.c     \
273
               Isosurface.c    \
Ralf Mueller's avatar
Ralf Mueller committed
274
               Log.c           \
275
	       MapReduce.c     \
Ralf Mueller's avatar
Ralf Mueller committed
276
277
278
279
280
281
282
283
284
285
286
               Maskbox.c       \
               Mastrfu.c       \
               Math.c          \
               Merge.c         \
               Mergegrid.c     \
               Mergetime.c     \
               Merstat.c       \
               Monarith.c      \
               Mrotuv.c        \
               Mrotuvb.c       \
               Ninfo.c         \
287
               Nmldump.c       \
Ralf Mueller's avatar
Ralf Mueller committed
288
289
               Output.c        \
               Outputgmt.c     \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
290
               Pack.c          \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
291
               Pardup.c        \
Ralf Mueller's avatar
Ralf Mueller committed
292
293
294
295
296
297
298
               Pinfo.c         \
               Pressure.c      \
               Regres.c        \
               Remap.c         \
               Remapeta.c      \
               Replace.c       \
               Replacevalues.c \
299
               Rhopot.c        \
Ralf Mueller's avatar
Ralf Mueller committed
300
301
302
               Rotuv.c         \
               Runpctl.c       \
               Runstat.c       \
303
               Samplegrid.c    \
Ralf Mueller's avatar
Ralf Mueller committed
304
305
306
307
               Seascount.c     \
               Seaspctl.c      \
               Seasstat.c      \
               Selbox.c        \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
308
               Selindex.c      \
Ralf Mueller's avatar
Ralf Mueller committed
309
               Select.c        \
310
               Selmulti.c      \
Ralf Mueller's avatar
Ralf Mueller committed
311
312
313
314
315
               Seloperator.c   \
               Selrec.c        \
               Seltime.c       \
               Selvar.c        \
               Set.c           \
316
               Setattribute.c  \
Ralf Mueller's avatar
Ralf Mueller committed
317
318
319
320
321
               Setbox.c        \
               Setgatt.c       \
               Setgrid.c       \
               Sethalo.c       \
               Setmiss.c       \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
322
               Setpartab.c     \
Ralf Mueller's avatar
Ralf Mueller committed
323
324
325
               Setrcaname.c    \
               Settime.c       \
               Setzaxis.c      \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
326
               Shiftxy.c       \
Ralf Mueller's avatar
Ralf Mueller committed
327
328
               Showinfo.c      \
               Sinfo.c         \
329
               Smooth.c        \
Ralf Mueller's avatar
Ralf Mueller committed
330
331
332
333
334
335
336
337
338
339
340
               Sort.c          \
               Sorttimestamp.c \
               Specinfo.c      \
               Spectral.c      \
               Spectrum.c      \
               Split.c         \
               Splitrec.c      \
               Splitsel.c      \
               Splittime.c     \
               Splityear.c     \
               Subtrend.c      \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
341
               Tee.c           \
Ralf Mueller's avatar
Ralf Mueller committed
342
343
344
345
               Templates.c     \
               Test.c          \
               Tests.c         \
               Timcount.c      \
346
               Timcumsum.c     \
Ralf Mueller's avatar
Ralf Mueller committed
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
               Timpctl.c       \
               Timselpctl.c    \
               Timselstat.c    \
               Timsort.c       \
               Timstat.c       \
               Timstat2.c      \
               Timstat3.c      \
               Tinfo.c         \
               Tocomplex.c     \
               Transpose.c     \
               Trend.c         \
               Trms.c          \
               Tstepcount.c    \
               Vargen.c        \
               Varrms.c        \
362
               Vertintml.c     \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
363
               Vertintap.c     \
Ralf Mueller's avatar
Ralf Mueller committed
364
               Vertstat.c      \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
365
               Vertcum.c       \
Ralf Mueller's avatar
Ralf Mueller committed
366
               Vertwind.c      \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
367
               Verifygrid.c    \
Ralf Mueller's avatar
Ralf Mueller committed
368
369
               Wct.c           \
               Wind.c          \
370
               WindTrans.c     \
Ralf Mueller's avatar
Ralf Mueller committed
371
372
               Writegrid.c     \
               Writerandom.c   \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
373
               XTimstat.c      \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
374
               YAR.c           \
375
               Yearmonstat.c   \
Ralf Mueller's avatar
Ralf Mueller committed
376
377
378
379
380
               Ydayarith.c     \
               Ydaypctl.c      \
               Ydaystat.c      \
               Ydrunpctl.c     \
               Ydrunstat.c     \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
381
               Yhourarith.c    \
Ralf Mueller's avatar
Ralf Mueller committed
382
383
384
385
386
387
388
               Yhourstat.c     \
               Ymonarith.c     \
               Ymonpctl.c      \
               Ymonstat.c      \
               Yseaspctl.c     \
               Yseasstat.c     \
               Zonstat.c       \
389
               cdo.h
390

Uwe Schulzweida's avatar
Uwe Schulzweida committed
391
cdo_SOURCES += nearpt3c.h
392
393
394
395
396
397
398
#if ENABLE_NEARPT3
#cdo_SOURCES +=           \
#               nearpt3x.h      \
#               nearpt3c.h      \
#               nearpt3c.cc     \
#               cellsearchorder.h
#endif
399

Uwe Schulzweida's avatar
Uwe Schulzweida committed
400
#if ENABLE_MAGICS
401
402
403
404
405
406
407
408
409
410
411
412
413
cdo_SOURCES += Magplot.c       \
               Magvector.c     \
               Maggraph.c      \
               template_parser.h   \
               template_parser.c   \
               results_template_parser.h   \
               results_template_parser.c   \
               magics_template_parser.h   \
               magics_template_parser.c   \
               StringUtilities.h   \
               StringUtilities.c   \
               CdoMagicsMapper.h   \
               CdoMagicsMapper.c
Uwe Schulzweida's avatar
Uwe Schulzweida committed
414
#endif
415

Ralf Mueller's avatar
Ralf Mueller committed
416
cdo_CPPFLAGS = -I$(top_srcdir)/libcdi/src
417
cdo_LDADD    = libcdo.la $(top_builddir)/libcdi/src/libcdi.la
Ralf Mueller's avatar
Ralf Mueller committed
418
cdo_LDFLAGS  =
419

420
421
422
if ENABLE_ALL_STATIC
cdo_LDFLAGS  += -all-static
endif
423

424
libcdo_la_CPPFLAGS = $(cdo_CPPFLAGS)
425
noinst_PROGRAMS  = cdotest
426
cdotest_SOURCES  = cdo_int.h	\
427
428
429
	           cdotest.c
cdotest_LDADD    = $(cdo_LDADD)
cdotest_CPPFLAGS = $(cdo_CPPFLAGS)
430
431
432
433
cdotest_LDFLAGS  = $(cdo_LDFLAGS)
if ENABLE_ALL_STATIC
cdotest_LDFLAGS  += -all-static
endif
434

Uwe Schulzweida's avatar
Uwe Schulzweida committed
435
436
437
438
#cdo-userlog.o: userlog.c config.h
#	$(COMPILE) -DLOGPATH=${exec_prefix}/log -c -o cdo-userlog.o `test -f 'userlog.c' || echo '$(srcdir)/'`userlog.c
#cdo_static-userlog.o: userlog.c config.h
#	$(COMPILE) -DLOGPATH=${exec_prefix}/log -c -o cdo_static-userlog.o `test -f 'userlog.c' || echo '$(srcdir)/'`userlog.c
Uwe Schulzweida's avatar
Uwe Schulzweida committed
439
#
440
CLEANFILES  = `ls *~ 2> /dev/null`
441
442
443
444
445
#
clean-local: clean-local-dirs
.PHONY: clean-local-dirs
clean-local-dirs:
	-rm -rf *.dSYM