netcdf-c/liblib/Makefile.am

83 lines
2.2 KiB
Makefile
Raw Normal View History

2010-06-03 21:24:43 +08:00
## This is a automake file, part of Unidata's netCDF package.
# Copyright 2010, see the COPYRIGHT file for more information.
2010-06-03 21:24:43 +08:00
# This Makefile assembles the correct libnetcdf based on various
# configure flags. It is assumed that all the relevant convenience
2010-12-16 05:45:05 +08:00
# libraries have been built (e.g. libsrc, libsrc4, libncdap3, libcdmr,
2010-06-03 21:24:43 +08:00
# libncdap4, fortran).
# Put together AM_CPPFLAGS and AM_LDFLAGS.
include $(top_srcdir)/lib_flags.am
2010-06-03 21:24:43 +08:00
# This is our output, the netcdf library the user will install.
2010-06-03 21:24:43 +08:00
lib_LTLIBRARIES = libnetcdf.la
2015-06-05 05:19:51 +08:00
##
# These linker flags specify libtool version info.
2015-06-05 05:19:51 +08:00
# See http://www.gnu.org/software/libtool/manual/libtool.html#Libtool-versioning
# for information regarding incrementing `-version-info`.
##
2018-03-16 04:38:26 +08:00
libnetcdf_la_LDFLAGS = -version-info 14:1:1
2015-06-05 05:19:51 +08:00
libnetcdf_la_CPPFLAGS = ${AM_CPPFLAGS}
2015-06-05 05:19:51 +08:00
libnetcdf_la_LIBADD =
CLEANFILES =
2010-06-03 21:24:43 +08:00
# The v2 API...
if BUILD_V2
libnetcdf_la_LIBADD += ${top_builddir}/libdispatch/libnetcdf2.la
endif # BUILD_V2
2010-06-03 21:24:43 +08:00
# The output library will always include netcdf3 and dispatch
2011-09-21 04:39:04 +08:00
# libraries
libnetcdf_la_LIBADD += ${top_builddir}/libdispatch/libdispatch.la \
2013-03-16 04:31:07 +08:00
${top_builddir}/libsrc/libnetcdf3.la
2010-06-03 21:24:43 +08:00
2013-03-16 04:31:07 +08:00
# + pnetcdf
if USE_PNETCDF
AM_CPPFLAGS += -I${top_srcdir}/libsrcp
libnetcdf_la_LIBADD += ${top_builddir}/libsrcp/libnetcdfp.la
2013-03-16 04:31:07 +08:00
endif # USE_PNETCDF
2018-05-09 01:58:01 +08:00
# + hdf5
if USE_NETCDF4
AM_CPPFLAGS += -I${top_srcdir}/libhdf5
libnetcdf_la_LIBADD += ${top_builddir}/libhdf5/libnchdf5.la
endif # USE_NETCDF4
2018-02-08 21:20:58 +08:00
# + hdf4
if USE_HDF4
AM_CPPFLAGS += -I${top_srcdir}/libhdf4
libnetcdf_la_LIBADD += ${top_builddir}/libhdf4/libnchdf4.la
2018-05-09 01:58:01 +08:00
endif # USE_HDF4
2018-02-08 21:20:58 +08:00
2013-03-16 04:31:07 +08:00
# + dap
Primary change: add dap4 support Specific changes: 1. Add dap4 code: libdap4 and dap4_test. Note that until the d4ts server problem is solved, dap4 is turned off. 2. Modify various files to support dap4 flags: configure.ac, Makefile.am, CMakeLists.txt, etc. 3. Add nc_test/test_common.sh. This centralizes the handling of the locations of various things in the build tree: e.g. where is ncgen.exe located. See nc_test/test_common.sh for details. 4. Modify .sh files to use test_common.sh 5. Obsolete separate oc2 by moving it to be part of netcdf-c. This means replacing code with netcdf-c equivalents. 5. Add --with-testserver to configure.ac to allow override of the servers to be used for --enable-dap-remote-tests. 6. There were multiple versions of nctypealignment code. Try to centralize in libdispatch/doffset.c and include/ncoffsets.h 7. Add a unit test for the ncuri code because of its complexity. 8. Move the findserver code out of libdispatch and into a separate, self contained program in ncdap_test and dap4_test. 9. Move the dispatch header files (nc{3,4}dispatch.h) to .../include because they are now shared by modules. 10. Revamp the handling of TOPSRCDIR and TOPBUILDDIR for shell scripts. 11. Make use of MREMAP if available 12. Misc. minor changes e.g. - #include <config.h> -> #include "config.h" - Add some no-install headers to /include - extern -> EXTERNL and vice versa as needed - misc header cleanup - clean up checking for misc. unix vs microsoft functions 13. Change copyright decls in some files to point to LICENSE file. 14. Add notes to RELEASENOTES.md
2017-03-09 08:01:10 +08:00
if ENABLE_DAP
2011-04-18 02:50:10 +08:00
AM_CPPFLAGS += -I${top_srcdir}/libdap2 -I${top_srcdir}/oc
libnetcdf_la_LIBADD += ${top_builddir}/libdap2/libdap2.la
libnetcdf_la_LIBADD += ${top_builddir}/oc2/liboc.la
Primary change: add dap4 support Specific changes: 1. Add dap4 code: libdap4 and dap4_test. Note that until the d4ts server problem is solved, dap4 is turned off. 2. Modify various files to support dap4 flags: configure.ac, Makefile.am, CMakeLists.txt, etc. 3. Add nc_test/test_common.sh. This centralizes the handling of the locations of various things in the build tree: e.g. where is ncgen.exe located. See nc_test/test_common.sh for details. 4. Modify .sh files to use test_common.sh 5. Obsolete separate oc2 by moving it to be part of netcdf-c. This means replacing code with netcdf-c equivalents. 5. Add --with-testserver to configure.ac to allow override of the servers to be used for --enable-dap-remote-tests. 6. There were multiple versions of nctypealignment code. Try to centralize in libdispatch/doffset.c and include/ncoffsets.h 7. Add a unit test for the ncuri code because of its complexity. 8. Move the findserver code out of libdispatch and into a separate, self contained program in ncdap_test and dap4_test. 9. Move the dispatch header files (nc{3,4}dispatch.h) to .../include because they are now shared by modules. 10. Revamp the handling of TOPSRCDIR and TOPBUILDDIR for shell scripts. 11. Make use of MREMAP if available 12. Misc. minor changes e.g. - #include <config.h> -> #include "config.h" - Add some no-install headers to /include - extern -> EXTERNL and vice versa as needed - misc header cleanup - clean up checking for misc. unix vs microsoft functions 13. Change copyright decls in some files to point to LICENSE file. 14. Add notes to RELEASENOTES.md
2017-03-09 08:01:10 +08:00
endif # ENABLE_DAP
if ENABLE_DAP4
AM_CPPFLAGS += -I${top_srcdir}/libdap4
libnetcdf_la_LIBADD += ${top_builddir}/libdap4/libdap4.la
endif # ENABLE_DAP4
2010-06-03 21:24:43 +08:00
# NetCDF-4 ...
2010-06-03 21:24:43 +08:00
if USE_NETCDF4
2010-12-16 05:45:05 +08:00
AM_CPPFLAGS += -I${top_srcdir}/libsrc4
2011-09-21 04:39:04 +08:00
libnetcdf_la_LIBADD += ${top_builddir}/libsrc4/libnetcdf4.la
2010-06-03 21:24:43 +08:00
endif #USE_NETCDF4
if ISCYGWIN
# Force binary mode for file read/write
AM_LDFLAGS += -lbinmode
endif
# We need at least one source file
2015-08-16 06:26:35 +08:00
libnetcdf_la_SOURCES = nc_initialize.c
2016-01-12 06:20:55 +08:00
EXTRA_DIST=CMakeLists.txt