mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
f6e25b695e
re: https://github.com/Unidata/netcdf-c/issues/2117 re: https://github.com/Unidata/netcdf-c/issues/2119 * Modify libsrc to allow byte-range reading of netcdf-3 files in private S3 buckets; this required using the aws sdk. Also add a test case. * The aws sdk can sometimes cause problems if the Awd::ShutdownAPI function is not called. So at optional atexit() support to ensure it is called. This is disabled for Windows. * Add documentation to nczarr.md on how to build and use the aws sdk under windows. Currently it builds, but testing fails. * Switch testing from stratus to the Unidata bucket on S3. * Improve support for the s3: url protocol. * Add a s3 specific utility code file: ds3util.c * Modify NC_infermodel to attempt to read the magic number of byte-ranged files in S3. ## Misc. * Move and rename the core S3 SDK wrapper code (libnczarr/zs3sdk.cpp) to libdispatch since it now used in libsrc as well as libnczarr. * Add calls to nc_finalize in the utilities in case atexit is disabled. * Add header only json parser to the distribution rather than as a built source.
72 lines
1.9 KiB
Makefile
72 lines
1.9 KiB
Makefile
## This is an automake file, part of Unidata's netCDF package.
|
|
# Copyright 2008, see the COPYRIGHT file for more information.
|
|
|
|
# This automake file is in charge of building the libsrc directory,
|
|
# which contains the classic library code.
|
|
|
|
include $(top_srcdir)/lib_flags.am
|
|
|
|
libnetcdf3_la_CPPFLAGS = ${AM_CPPFLAGS}
|
|
|
|
# These files comprise the netCDF-3 classic library code.
|
|
libnetcdf3_la_SOURCES = v1hpg.c \
|
|
putget.c attr.c nc3dispatch.c nc3internal.c var.c dim.c ncx.c \
|
|
ncx.h lookup3.c pstdint.h ncio.c ncio.h memio.c
|
|
|
|
if BUILD_MMAP
|
|
libnetcdf3_la_SOURCES += mmapio.c
|
|
endif BUILD_MMAP
|
|
|
|
# Does the user want to use ffio, a replacement for posixio for Cray
|
|
# computers?
|
|
if USE_FFIO
|
|
libnetcdf3_la_SOURCES += ffio.c
|
|
else !USE_FFIO
|
|
if USE_STDIO
|
|
libnetcdf3_la_SOURCES += ncstdio.c
|
|
else !USE_STDIO
|
|
libnetcdf3_la_SOURCES += posixio.c
|
|
endif !USE_STDIO
|
|
endif !USE_FFIO
|
|
|
|
if ENABLE_BYTERANGE
|
|
libnetcdf3_la_SOURCES += httpio.c
|
|
|
|
if ENABLE_S3_SDK
|
|
libnetcdf3_la_SOURCES += s3io.c
|
|
AM_CXXFLAGS = -std=c++11
|
|
endif ENABLE_S3_SDK
|
|
|
|
endif ENABLE_BYTERANGE
|
|
|
|
noinst_LTLIBRARIES = libnetcdf3.la
|
|
|
|
# These files are cleaned on developer workstations (and then rebuilt
|
|
# with m4), but they are included in the distribution so that the user
|
|
# does not have to have m4.
|
|
MAINTAINERCLEANFILES = $(man_MANS) attr.c ncx.c putget.c
|
|
EXTRA_DIST = attr.m4 ncx.m4 putget.m4 $(man_MANS) CMakeLists.txt XGetopt.c
|
|
|
|
# This tells make how to turn .m4 files into .c files.
|
|
.m4.c:
|
|
m4 $(AM_M4FLAGS) $(M4FLAGS) -s $< > $(top_srcdir)/libsrc/$(@F)
|
|
|
|
# The C API man page.
|
|
man_MANS = netcdf.3
|
|
|
|
# Decide what goes in the man page, based on user configure options.
|
|
ARGS_MANPAGE = -DAPI=C
|
|
if USE_NETCDF4
|
|
ARGS_MANPAGE += -DNETCDF4=TRUE
|
|
endif
|
|
if BUILD_DAP
|
|
ARGS_MANPAGE += -DDAP=TRUE
|
|
endif
|
|
if BUILD_PARALLEL
|
|
ARGS_MANPAGE += -DPARALLEL_IO=TRUE
|
|
endif
|
|
|
|
# This rule generates the C manpage.
|
|
netcdf.3: $(top_srcdir)/docs/netcdf.m4
|
|
m4 $(M4FLAGS) $(ARGS_MANPAGE) $? >$@ || rm $@
|