mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-12 15:45:21 +08:00
99fccab359
2. Fixed plugin building (nc_test4/hdf5plugins) to be done properly by cmake and automake. 4. Duplicated part of the nc_test4 filter test code in examples/C An incomplete and untested set of hooks exist for OS-X in nc_test4/findplugins.in. They need testing.
75 lines
1.9 KiB
Makefile
75 lines
1.9 KiB
Makefile
# This is a automake file, part of Unidata's netCDF package.
|
|
# Copyright 2006, see the COPYRIGHT file for more information.
|
|
|
|
# This file builds the C examples.
|
|
|
|
# Ed Hartnett
|
|
|
|
# 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
|
|
|
|
LDADD = -lm
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include
|
|
AM_LDFLAGS =
|
|
|
|
# These are the netCDF-3 examples.
|
|
check_PROGRAMS = simple_xy_wr simple_xy_rd sfc_pres_temp_wr \
|
|
sfc_pres_temp_rd pres_temp_4D_wr pres_temp_4D_rd
|
|
|
|
TESTS = run_examples.sh
|
|
|
|
# To build netcdf-4, or not to build netcdf-4, that is the question...
|
|
if USE_NETCDF4
|
|
# These are the extra netCDF-4 examples.
|
|
check_PROGRAMS += simple_nc4_wr simple_nc4_rd simple_xy_nc4_wr \
|
|
simple_xy_nc4_rd
|
|
|
|
if ENABLE_FILTER_TESTING
|
|
# filter_example.c should be same as nc_test4/test_filter.c
|
|
check_PROGRAMS += filter_example
|
|
endif
|
|
|
|
endif #USE_NETCDF4
|
|
|
|
if USE_PNETCDF
|
|
# These are the extra netCDF-4 examples.
|
|
check_PROGRAMS += parallel_vara
|
|
TESTS += parallel_vara
|
|
endif #USE_PNETCDF
|
|
|
|
AM_CPPFLAGS += -I$(top_builddir)/liblib
|
|
AM_LDFLAGS += ${top_builddir}/liblib/libnetcdf.la
|
|
|
|
if USE_NETCDF4
|
|
TESTS += run_examples4.sh
|
|
endif #USE_NETCDF4
|
|
|
|
# This will run a bunch of the test programs with valgrind, the memory
|
|
# checking tool. (Valgrind must be present for this to work.)
|
|
if USE_VALGRIND_TESTS
|
|
TESTS += run_valgrind_tests.sh
|
|
endif # USE_VALGRIND_TESTS
|
|
if USE_NETCDF4
|
|
if USE_VALGRIND_TESTS
|
|
TESTS += run_nc4_valgrind_tests.sh
|
|
endif # USE_VALGRIND_TESTS
|
|
endif # USE_NETCDF4
|
|
|
|
# These files are created by the tests.
|
|
CLEANFILES = *.nc
|
|
|
|
EXTRA_DIST = run_valgrind_tests.sh run_nc4_valgrind_tests.sh \
|
|
CMakeLists.txt run_examples.sh run_examples4.sh
|
|
|
|
# This subdir should be same as nc_test4/hdf5plugins
|
|
SUBDIRS = hdf5plugins
|
|
|
|
if ENABLE_FILTER_TESTING # => shared and netcdf-4
|
|
BUILT_SOURCES = findplugin.sh
|
|
findplugin.sh:
|
|
cp ${top_builddir}/nc_test4/findplugin.sh ${builddir}
|
|
endif
|
|
|
|
DISTCLEANFILES = findplugin.sh
|