netcdf-c/liblib/Makefile.am

71 lines
2.0 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`.
##
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
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
# Turn on some extra stuff when building a DLL for windows.
2011-01-07 04:12:06 +08:00
if BUILD_DLL
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
# 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
# + 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
libnetcdf_la_LIBADD += ${top_builddir}/oc2/liboc.la
endif # USE_DAP
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
# Not ready for prime time yet
# libnetcdf_la_LIBADD += ${top_builddir}/libdiskless/libdiskless.la
2010-06-03 21:24:43 +08:00
endif #USE_NETCDF4
# 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