Makefile.am 2.55 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 \
10
	pio_cksum_mpi_fw_ordered \
11
	pio_cksum_mpi_fw_at_all \
12
	pio_cksum_mpi_fw_at_reblock \
Thomas Jahns's avatar
Thomas Jahns committed
13
	test_resource_copy_run pio_write_deco2d_run \
14
	test_f2003 test_cdf_transformation \
Thomas Jahns's avatar
Thomas Jahns committed
15
	test_table_run test_byteswap_run
16

17
18
#test_cdf_const: deactivated (depends on app/cdi)

19
check_PROGRAMS = cksum_verify test_grib cksum_write cksum_read pio_write \
20
21
	test_resource_copy cksum_write_chunk pio_write_deco2d test_table \
	test_byteswap
Thomas Jahns's avatar
Thomas Jahns committed
22

23
24
25
26
if ENABLE_NETCDF
check_PROGRAMS += test_cdf_write test_cdf_read
endif

Uwe Schulzweida's avatar
Uwe Schulzweida committed
27
28
#
test_grib_SOURCES = test_grib.c
29
cksum_verify_SOURCES = cksum_verify.c
30
31
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
32
cksum_read_SOURCES = cksum_read.c \
33
	var_cksum.c var_cksum.h \
34
	stream_cksum.c stream_cksum.h \
35
	ensure_array_size.h ensure_array_size.c
36
pio_write_SOURCES = pio_write.c pio_write.h simple_model.c \
37
	simple_model_helper.h simple_model_helper.c
38
pio_write_deco2d_SOURCES = pio_write.c pio_write.h deco2d_model.c \
39
40
	simple_model_helper.h simple_model_helper.c
test_resource_copy_SOURCES = test_resource_copy.c
41
test_resource_copy_LDADD = ../src/libcdiresunpack.la $(LDADD)
42
test_resource_copy_mpi_SOURCES = test_resource_copy.c
43
44
test_cdf_write_SOURCES = test_cdf_write.c
test_cdf_read_SOURCES = test_cdf_read.c
45
test_table_SOURCES = test_table.c
46
test_byteswap_SOURCES = test_byteswap.c
47
#
48
AM_CFLAGS = $(PPM_CORE_CFLAGS) $(YAXT_CFLAGS) $(MPI_C_INCLUDE)
49
if USE_MPI
50
51
pio_write_LDADD = ../src/libcdipio.la $(LIBRT) $(MPI_C_LIB)
pio_write_deco2d_LDADD = ../src/libcdipio.la $(LIBRT) $(MPI_C_LIB)
52
53
TESTS +=  test_resource_copy_mpi_run
check_PROGRAMS += test_resource_copy_mpi
54
test_resource_copy_mpi_LDADD = ../src/libcdipio.la 
55
56
test_resource_copy_mpi_CFLAGS = $(AM_CFLAGS) $(CFLAGS) \
	-DMPI_MARSHALLING
57
else
58
59
60
pio_write_LDADD = $(LDADD)
pio_write_deco2d_LDADD = $(LDADD)
test_resource_copy_mpi_LDADD = $(LDADD)
61
endif
62

63
LDADD = ../src/libcdi.la
Uwe Schulzweida's avatar
Uwe Schulzweida committed
64
AM_CPPFLAGS = -I$(top_srcdir)/src
Uwe Schulzweida's avatar
Uwe Schulzweida committed
65
#
66
EXTRA_DIST = test_cdf_write.c test_cdf_read.c test_cksum_base
Uwe Schulzweida's avatar
Uwe Schulzweida committed
67
#
68
AUTOMAKE_OPTIONS = color-tests
69
70
#
clean-local: clean-local-dirs
71
72
	-rm -f *~ *.grb *.nc *.nc2 *.nc4 *.srv *.svc *.ext *.cksum *.ieg *.log

73
74
.PHONY: clean-local-dirs
clean-local-dirs:
75
	-rm -rf test_cdf_const.d *.dSYM