Makefile.am 2.18 KB
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
2
## Process this file with automake to produce Makefile.in
#
3
4
#TESTS = test_grib.sh
TESTS = cksum_verify \
5
	test_cksum_grib test_cksum_nc test_cksum_extra \
6
	test_cksum_service test_cksum_nc2 test_cksum_nc4 test_cksum_ieg \
7
	test_chunk_cksum \
Thomas Jahns's avatar
Thomas Jahns committed
8
	pio_write_run pio_cksum_mpinonb pio_cksum_fpguard \
Thomas Jahns's avatar
Thomas Jahns committed
9
	pio_cksum_asynch pio_cksum_writer pio_cksum_cdf \
Thomas Jahns's avatar
Thomas Jahns committed
10
	test_resource_copy pio_write_deco2d_run \
11
	test_f2003 test_cdf_transformation
12
check_PROGRAMS = cksum_verify test_grib cksum_write cksum_read pio_write \
Thomas Jahns's avatar
Thomas Jahns committed
13
14
	test_resource_copy cksum_write_chunk pio_write_deco2d

15
16
17
18
if ENABLE_NETCDF
check_PROGRAMS += test_cdf_write test_cdf_read
endif

Uwe Schulzweida's avatar
Uwe Schulzweida committed
19
20
#
test_grib_SOURCES = test_grib.c
21
cksum_verify_SOURCES = cksum_verify.c
22
23
cksum_write_SOURCES = cksum_write.c simple_model_helper.h simple_model_helper.c
cksum_write_chunk_SOURCES = cksum_write_chunk.c simple_model_helper.h simple_model_helper.c
24
cksum_read_SOURCES = cksum_read.c \
25
	var_cksum.c var_cksum.h \
26
	stream_cksum.c stream_cksum.h \
27
	ensure_array_size.h ensure_array_size.c
28
pio_write_SOURCES = pio_write.c pio_write.h simple_model.c \
29
	simple_model_helper.h simple_model_helper.c
30
pio_write_deco2d_SOURCES = pio_write.c pio_write.h deco2d_model.c \
31
32
	simple_model_helper.h simple_model_helper.c
test_resource_copy_SOURCES = test_resource_copy.c
33
test_resource_copy_LDADD = $(UUID_C_LIB) ../src/libcdiresunpack.la $(LDADD)
34
test_resource_copy_mpi_SOURCES = test_resource_copy.c
35
36
test_cdf_write_SOURCES = test_cdf_write.c
test_cdf_read_SOURCES = test_cdf_read.c
37

38
AM_CFLAGS = $(PPM_CORE_CFLAGS) $(YAXT_CFLAGS)
39
if USE_MPI
40
41
pio_write_LDADD = ../src/libcdipio.la $(UUID_C_LIB)
pio_write_deco2d_LDADD = ../src/libcdipio.la $(UUID_C_LIB)
42
43
TESTS +=  test_resource_copy_mpi_run
check_PROGRAMS += test_resource_copy_mpi
44
test_resource_copy_mpi_LDADD = ../src/libcdipio.la $(UUID_C_LIB)
45
test_resource_copy_mpi_CFLAGS = $(AM_CFLAGS) $(CFLAGS) -DMPI_MARSHALLING
46
else
47
48
pio_write_LDADD = $(LDADD) $(UUID_C_LIB)
pio_write_deco2d_LDADD = $(LDADD) $(UUID_C_LIB)
49
test_resource_copy_mpi_LDADD = $(LDADD) $(UUID_C_LIB)
50
endif
51

52
LDADD = ../src/libcdi.la -lm
Uwe Schulzweida's avatar
Uwe Schulzweida committed
53
AM_CPPFLAGS = -I$(top_srcdir)/src
Uwe Schulzweida's avatar
Uwe Schulzweida committed
54
#
55
EXTRA_DIST = test_cdf_write.c test_cdf_read.c
Uwe Schulzweida's avatar
Uwe Schulzweida committed
56
#
57
CLEANFILES  = `ls *~ *.grb *.nc *.srv *.ext example_*.cksum`
58
59
#
AUTOMAKE_OPTIONS = color-tests