2010-06-03 21:24:43 +08:00
|
|
|
## This is a automake file, part of Unidata's netCDF package.
|
2010-06-07 19:12:14 +08:00
|
|
|
# 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
|
2010-06-22 21:25:14 +08:00
|
|
|
# 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).
|
|
|
|
|
2011-03-22 02:38:10 +08:00
|
|
|
# Put together AM_CPPFLAGS and AM_LDFLAGS.
|
|
|
|
include $(top_srcdir)/lib_flags.am
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2010-06-07 19:12:14 +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
|
2010-06-07 19:12:14 +08:00
|
|
|
|
2015-06-05 05:19:51 +08:00
|
|
|
##
|
2011-02-17 20:58:08 +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
|
|
|
|
2011-03-22 02:38:10 +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
|
|
|
|
2010-06-22 21:25:14 +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
|
|
|
|
2011-08-23 23:07:24 +08:00
|
|
|
# The output library will always include netcdf3 and dispatch
|
2011-09-21 04:39:04 +08:00
|
|
|
# libraries
|
2010-06-22 21:25:14 +08:00
|
|
|
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
|
2015-08-15 10:38:30 +08:00
|
|
|
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
|
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
|
2012-08-01 04:34:13 +08:00
|
|
|
libnetcdf_la_LIBADD += ${top_builddir}/oc2/liboc.la
|
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
|
|
|
|
2010-06-22 21:25:14 +08:00
|
|
|
# NetCDF-4 ...
|
2010-06-03 21:24:43 +08:00
|
|
|
if USE_NETCDF4
|
2010-12-16 05:45:05 +08:00
|
|
|
|
2010-06-22 21:25:14 +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
|
|
|
|
|
2017-07-18 08:58:45 +08:00
|
|
|
if ISCYGWIN
|
2017-07-26 04:58:29 +08:00
|
|
|
# Force binary mode for file read/write
|
2017-07-18 08:58:45 +08:00
|
|
|
AM_LDFLAGS += -lbinmode
|
|
|
|
endif
|
|
|
|
|
2010-06-22 21:25:14 +08:00
|
|
|
# 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
|