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
|
|
|
|
|
|
|
# $Id: Makefile.am,v 1.10 2010/06/01 15:34:50 ed Exp $
|
|
|
|
|
2010-06-18 22:01:51 +08:00
|
|
|
# Set up include directories.
|
|
|
|
AM_CPPFLAGS = -I${top_srcdir}/include -I${top_srcdir}/liblib -I${top_srcdir}/libsrc
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
# This is our output
|
|
|
|
noinst_LTLIBRARIES = libdispatch.la
|
|
|
|
|
|
|
|
# The source files.
|
2010-06-18 22:01:51 +08:00
|
|
|
libdispatch_la_SOURCES = dispatch.h parallel.c copy.c file.c dim.c \
|
|
|
|
att.c error.c var.c dispatch.c
|
|
|
|
|
|
|
|
# Add functions only found in netCDF-4.
|
2010-06-03 21:24:43 +08:00
|
|
|
if USE_NETCDF4
|
|
|
|
libdispatch_la_SOURCES += nc4.c
|
2010-06-18 22:01:51 +08:00
|
|
|
endif # USE_NETCDF4
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2010-06-18 22:01:51 +08:00
|
|
|
# Add functions needed by opendap client.
|
2010-06-03 21:24:43 +08:00
|
|
|
if USE_DAP
|
2010-06-18 22:01:51 +08:00
|
|
|
libdispatch_la_SOURCES += dap.c
|
2010-06-03 21:24:43 +08:00
|
|
|
AM_CPPFLAGS += -I${top_srcdir}/oc
|
2010-06-18 22:01:51 +08:00
|
|
|
endif # USE_DAP
|
2010-06-03 21:24:43 +08:00
|
|
|
|
2010-06-18 22:01:51 +08:00
|
|
|
# Add V2 API functions.
|
2010-06-04 04:22:55 +08:00
|
|
|
if BUILD_V2
|
|
|
|
noinst_LTLIBRARIES += libnetcdf2.la
|
|
|
|
libnetcdf2_la_SOURCES = v2i.c
|
|
|
|
endif # BUILD_V2
|
|
|
|
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|