2010-06-03 21:24:43 +08:00
|
|
|
## This is a automake file, part of Unidata's netCDF package.
|
|
|
|
# Copyright 2005, see the COPYRIGHT file for more information.
|
|
|
|
|
|
|
|
# This Makefile controls the building of the dispatch layer of the
|
|
|
|
# netCDF library. The dispatch layer decides whether to call the
|
2010-06-07 19:12:14 +08:00
|
|
|
# netcdf-classic code, netcdf-4 code, nc3 dap code, or nc4 dap
|
|
|
|
# code. It also contains code that sit above the dispatch layer, like
|
|
|
|
# the v2 API.
|
2010-06-03 21:24:43 +08:00
|
|
|
|
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-24 05:05:46 +08:00
|
|
|
# This is our output, the dispatch convenience library.
|
2010-06-03 21:24:43 +08:00
|
|
|
noinst_LTLIBRARIES = libdispatch.la
|
2011-03-22 02:38:10 +08:00
|
|
|
libdispatch_la_CPPFLAGS = ${AM_CPPFLAGS}
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
# The source files.
|
2011-07-14 17:50:37 +08:00
|
|
|
libdispatch_la_SOURCES = dparallel.c dcopy.c dfile.c ddim.c datt.c \
|
|
|
|
dattinq.c dattput.c dattget.c derror.c dvar.c dvarget.c dvarput.c \
|
2011-09-16 00:57:16 +08:00
|
|
|
dvarinq.c ddispatch.c \
|
2012-08-09 07:15:18 +08:00
|
|
|
nclog.c dstring.c dutf8proc.c utf8proc_data.h \
|
|
|
|
ncuri.c nclist.c ncbytes.c nchashmap.c nctime.c \
|
2012-09-07 03:44:03 +08:00
|
|
|
dsubstrate.c \
|
|
|
|
nc.c nclistmgr.c
|
2010-12-16 05:45:05 +08:00
|
|
|
|
2011-03-22 02:38:10 +08:00
|
|
|
# Add functions only found in netCDF-4.
|
|
|
|
if USE_NETCDF4
|
2011-07-15 08:47:31 +08:00
|
|
|
libdispatch_la_SOURCES += dgroup.c dvlen.c dcompound.c dtype.c denum.c \
|
2011-09-05 07:27:34 +08:00
|
|
|
dopaque.c ncaux.c
|
2011-03-22 02:38:10 +08:00
|
|
|
endif # USE_NETCDF4
|
2011-03-15 18:19:08 +08:00
|
|
|
|
|
|
|
# Turn on pre-processor flag when building a DLL for windows.
|
|
|
|
if BUILD_DLL
|
|
|
|
libdispatch_la_CPPFLAGS += -DDLL_EXPORT
|
|
|
|
endif # BUILD_DLL
|
2010-12-16 05:45:05 +08:00
|
|
|
|
2010-06-24 05:05:46 +08:00
|
|
|
# Add V2 API convenience library if needed.
|
2010-06-04 04:22:55 +08:00
|
|
|
if BUILD_V2
|
|
|
|
noinst_LTLIBRARIES += libnetcdf2.la
|
2011-07-14 17:50:37 +08:00
|
|
|
libnetcdf2_la_SOURCES = dv2i.c
|
2011-03-22 02:38:10 +08:00
|
|
|
libnetcdf2_la_CPPFLAGS = ${AM_CPPFLAGS} -DDLL_EXPORT
|
2010-06-04 04:22:55 +08:00
|
|
|
endif # BUILD_V2
|
2011-04-17 04:56:36 +08:00
|
|
|
|
2013-02-21 07:28:28 +08:00
|
|
|
EXTRA_DIST=CMakeLists.txt
|