2011-09-02 06:32:28 +08:00
|
|
|
## This is a automake file, part of Unidata's netCDF package.
|
|
|
|
# Copyright 2010, see the COPYRIGHT file for more information.
|
|
|
|
|
|
|
|
# This builds the netcdf-4 version of the opendap client.
|
|
|
|
|
|
|
|
# $Id: Makefile.am,v 1.18 2010/05/29 18:45:47 dmh Exp $
|
|
|
|
|
|
|
|
# Put together AM_CPPFLAGS and AM_LDFLAGS.
|
|
|
|
include $(top_srcdir)/lib_flags.am
|
|
|
|
|
|
|
|
DISTCLEANFILES =
|
|
|
|
CLEANFILES =
|
|
|
|
EXTRA_DIST =
|
|
|
|
LDADD=
|
|
|
|
|
|
|
|
ASTJAR=ast.jar
|
|
|
|
|
|
|
|
# RPC Sources
|
|
|
|
|
|
|
|
HDRS=\
|
|
|
|
protorpc.h \
|
|
|
|
nc_path.h \
|
|
|
|
rpc_includes.h \
|
|
|
|
rpc.h \
|
|
|
|
rpcdebug.h \
|
|
|
|
rpcdispatch.h \
|
2011-10-24 04:17:56 +08:00
|
|
|
rpccurl.h \
|
2011-09-02 06:32:28 +08:00
|
|
|
rpcutil.h
|
|
|
|
|
|
|
|
SRC=\
|
|
|
|
protorpc.c \
|
|
|
|
nc_path.c \
|
|
|
|
rpcdebug.c \
|
|
|
|
rpcdispatch.c \
|
|
|
|
rpcserialize.c \
|
2011-10-24 04:17:56 +08:00
|
|
|
rpccurl.c \
|
2011-09-02 06:32:28 +08:00
|
|
|
rpcutil.c
|
|
|
|
|
|
|
|
if BUILD_RPC
|
|
|
|
|
2011-09-03 02:23:45 +08:00
|
|
|
noinst_LTLIBRARIES = librpcclient.la
|
|
|
|
#librcpserver.la
|
2011-09-02 06:32:28 +08:00
|
|
|
|
|
|
|
# Build convenience library
|
|
|
|
librpcclient_la_SOURCES = $(SRC) $(HDRS)
|
|
|
|
#librpcserver_la_SOURCES = $(SRC) $(HDRS)
|
|
|
|
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/include \
|
|
|
|
-I$(top_srcdir)/libdispatch \
|
|
|
|
-I$(top_srcdir)/libsrc
|
|
|
|
|
|
|
|
# Define the load libraries
|
|
|
|
LDADD += \
|
|
|
|
${top_builddir}/libsrc/libnetcdf3.la \
|
|
|
|
${top_builddir}/libdispatch/libdispatch.la
|
|
|
|
|
|
|
|
if USE_NETCDF4
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/libsrc4
|
|
|
|
|
|
|
|
# Define the load libraries
|
|
|
|
LDADD += ${top_builddir}/libsrc4/libnetcdf4.la
|
|
|
|
|
|
|
|
endif #USE_NETCDF4
|
|
|
|
|
|
|
|
if BUILD_V2
|
|
|
|
LDADD += ${top_builddir}/libdispatch/libnetcdf2.la
|
|
|
|
endif # BUILD_V2
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
# Generate the augmented ncstream structures
|
|
|
|
|
|
|
|
EXTRA_DIST += ast.jar protorpc.proto
|
|
|
|
|
2011-10-24 04:17:56 +08:00
|
|
|
protorpc protorpc.c protorpc.h: protorpc.proto ast.jar
|
2011-09-02 06:32:28 +08:00
|
|
|
java -jar ast.jar -WdT -I. protorpc.proto
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
|
|
|
|
endif # BUILD_RPC
|