2010-06-03 21:23:50 +08:00
|
|
|
# This is a automake file, part of Unidata's netCDF package.
|
2018-12-05 06:52:43 +08:00
|
|
|
# Copyright 2018, see the COPYRIGHT file for more information.
|
2010-06-03 21:23:50 +08:00
|
|
|
|
|
|
|
# This file builds the C examples.
|
|
|
|
|
2018-01-25 08:44:01 +08:00
|
|
|
# Ed Hartnett, Ward Fisher, Dennis Heimbigner
|
2010-06-03 21:23:50 +08:00
|
|
|
|
2018-01-17 02:00:09 +08:00
|
|
|
# Un comment to use a more verbose test driver
|
|
|
|
#SH_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
|
|
|
#LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
|
|
|
|
|
2010-06-03 21:23:50 +08:00
|
|
|
LDADD = -lm
|
2010-06-04 04:22:55 +08:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include
|
2019-03-12 23:00:31 +08:00
|
|
|
AM_CPPFLAGS += -I$(top_builddir)/liblib
|
|
|
|
AM_LDFLAGS = ${top_builddir}/liblib/libnetcdf.la
|
2010-06-03 21:23:50 +08:00
|
|
|
|
2018-01-25 08:44:01 +08:00
|
|
|
# These are the netCDF-3 examples.
|
2017-11-18 01:16:17 +08:00
|
|
|
check_PROGRAMS = simple_xy_wr simple_xy_rd sfc_pres_temp_wr \
|
2019-05-12 23:12:42 +08:00
|
|
|
sfc_pres_temp_rd pres_temp_4D_wr pres_temp_4D_rd format \
|
2019-07-02 23:00:36 +08:00
|
|
|
sfc_pres_temp_more simple
|
2017-11-18 01:16:17 +08:00
|
|
|
|
2019-07-02 23:14:50 +08:00
|
|
|
TESTS = run_examples.sh format sfc_pres_temp_more simple
|
|
|
|
|
|
|
|
if LARGE_FILE_TESTS
|
|
|
|
check_PROGRAMS += quick_large_files quick_small_files
|
|
|
|
TESTS += quick_large_files quick_small_files
|
|
|
|
endif # LARGE_FILE_TESTS
|
|
|
|
|
2019-07-02 23:02:57 +08:00
|
|
|
# If HDF5 is being used, build the netcdf-4/HDF5 examples.
|
2018-12-01 22:29:58 +08:00
|
|
|
if USE_HDF5
|
2017-11-18 01:16:17 +08:00
|
|
|
check_PROGRAMS += simple_nc4_wr simple_nc4_rd simple_xy_nc4_wr \
|
2018-01-25 08:44:01 +08:00
|
|
|
simple_xy_nc4_rd
|
2019-07-02 23:04:30 +08:00
|
|
|
TESTS += run_examples4.sh
|
2018-01-17 02:00:09 +08:00
|
|
|
|
|
|
|
if ENABLE_FILTER_TESTING
|
|
|
|
# filter_example.c should be same as nc_test4/test_filter.c
|
|
|
|
check_PROGRAMS += filter_example
|
2018-03-17 01:46:18 +08:00
|
|
|
TESTS += run_filter.sh
|
2018-01-17 02:00:09 +08:00
|
|
|
endif
|
|
|
|
|
2018-12-01 22:29:58 +08:00
|
|
|
endif #USE_HDF5
|
2010-06-03 21:23:50 +08:00
|
|
|
|
2019-03-12 23:17:00 +08:00
|
|
|
if TEST_PARALLEL4
|
2015-08-16 06:26:35 +08:00
|
|
|
if USE_PNETCDF
|
2019-03-12 23:00:31 +08:00
|
|
|
# This is a pnetcdf example.
|
2017-11-18 01:16:17 +08:00
|
|
|
check_PROGRAMS += parallel_vara
|
2019-03-12 23:00:31 +08:00
|
|
|
TESTS += run_par_test.sh
|
2015-08-16 06:26:35 +08:00
|
|
|
endif #USE_PNETCDF
|
2019-03-12 23:17:00 +08:00
|
|
|
endif # TEST_PARALLEL4
|
2015-08-16 06:26:35 +08:00
|
|
|
|
2010-06-03 21:23:50 +08:00
|
|
|
# These files are created by the tests.
|
2018-01-25 08:44:01 +08:00
|
|
|
CLEANFILES = *.nc
|
2010-06-03 21:23:50 +08:00
|
|
|
|
2019-07-02 23:04:30 +08:00
|
|
|
EXTRA_DIST = CMakeLists.txt run_examples.sh run_examples4.sh \
|
|
|
|
run_filter.sh
|
2018-01-17 02:00:09 +08:00
|
|
|
|
|
|
|
DISTCLEANFILES = findplugin.sh
|