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`.
|
|
|
|
##
|
|
|
|
|
2016-11-22 01:25:30 +08:00
|
|
|
libnetcdf_la_LDFLAGS = -version-info 11:4:0 ${NOUNDEFINED}
|
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
|
|
|
|
2011-03-15 18:19:08 +08:00
|
|
|
# Turn on some extra stuff when building a DLL for windows.
|
2011-01-07 04:12:06 +08:00
|
|
|
if BUILD_DLL
|
2011-03-15 18:19:08 +08:00
|
|
|
libnetcdf_la_LDFLAGS += -no-undefined -Wl,--output-def,netcdfdll.def
|
|
|
|
libnetcdf_la_CPPFLAGS += -DDLL_EXPORT
|
2011-01-07 04:12:06 +08:00
|
|
|
endif # BUILD_DLL
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# + dap
|
2010-06-03 21:24:43 +08:00
|
|
|
if USE_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
|
2010-06-22 21:25:14 +08:00
|
|
|
endif # USE_DAP
|
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
|
|
|
|
|
2012-01-13 07:27:30 +08:00
|
|
|
# Not ready for prime time yet
|
|
|
|
# libnetcdf_la_LIBADD += ${top_builddir}/libdiskless/libdiskless.la
|
2010-06-22 21:25:14 +08:00
|
|
|
|
2010-06-03 21:24:43 +08:00
|
|
|
endif #USE_NETCDF4
|
|
|
|
|
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
|