netcdf-c/libcdmr/Makefile.am

99 lines
2.6 KiB
Makefile
Raw Normal View History

2010-12-16 05:45:05 +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
2010-12-16 05:45:05 +08:00
DISTCLEANFILES =
CLEANFILES =
2011-04-18 02:50:10 +08:00
EXTRA_DIST =
2010-12-16 05:45:05 +08:00
LDADD=
2011-09-02 06:32:28 +08:00
ASTDIR=./ast/src/compiler
ASTJAR=${ASTDIR}/ast.jar
2010-12-16 05:45:05 +08:00
# CDMREMORE Sources
2011-09-02 06:32:28 +08:00
SRC=nccrcvt.c nccr.c nccrdispatch.c crmeta.c nccrproto.c nccrgetvarx.c \
2011-04-17 04:56:36 +08:00
crdebug.c crutil.c \
nccrdump.c \
2011-09-02 06:32:28 +08:00
ncStreamx.c curlwrap.c \
2011-04-17 04:56:36 +08:00
ast_byteio.c ast_curl.c ast_internal.c \
ast_runtime.c ast_util.c ast_debug.c \
2011-04-18 02:50:10 +08:00
cceparse.c cceconstraints.c
EXTRA_DIST += ccetab.c ccelex.c
2011-04-17 04:56:36 +08:00
2011-06-11 02:47:26 +08:00
HDRS=includes.h \
2011-09-02 06:32:28 +08:00
nccrdispatch.h nccr.h crmeta.h nccrproto.h nccrgetvarx.h \
2011-06-11 02:47:26 +08:00
crpath.h crdebug.h crutil.h \
2011-04-17 04:56:36 +08:00
nccrdump.h \
2011-09-02 06:32:28 +08:00
ncStreamx.h curlwrap.h \
2011-04-17 04:56:36 +08:00
ast.h ast_byteio.h ast_curl.h ast_internal.h \
ast_runtime.h ast_util.h ast_debug.h \
2011-06-11 02:47:26 +08:00
nccrnode.h \
nccrcvt.h \
2011-04-18 02:50:10 +08:00
ccetab.h cceconstraints.h cceparselex.h
2010-12-16 05:45:05 +08:00
if BUILD_CDMREMOTE
noinst_LTLIBRARIES = libnccr.la
# Build convenience library
libnccr_la_SOURCES = $(SRC) $(HDRS)
2011-09-28 02:02:23 +08:00
libnccr_la_CPPFLAGS = $(AM_CPPFLAGS)
libnccr_la_LIBADD =
#if USE_NETCDF4
#LDADD += ${top_builddir}/libsrc4/libnetcdf4.la
#endif
#
#LDADD += ${top_builddir}/libsrc/libnetcdf3.la \
# ${top_builddir}/oc/liboc.la \
# ${top_builddir}/libdispatch/libdispatch.la
#
#
## Add a trivial test case to check for undefined references
#check_PROGRAMS = t_cdmr
#TESTS = t_cdmr
#TESTS_ENVIRONMENT=TOPSRCDIR=${abs_top_srcdir}
#t_cdmr_SOURCES = t_cdmr.c nccrstub.c
#CLEANFILES += t_cdmr
2010-12-16 05:45:05 +08:00
2011-04-17 04:56:36 +08:00
##################################################
2011-04-18 02:50:10 +08:00
# These rule are used if someone wants to rebuild the grammar files.
# Otherwise never invoked, but records how to do it.
# BTW: note that renaming is essential because otherwise
# autoconf will forcibly delete files of the name *.tab.*
EXTRA_DIST += cce.y
2011-09-02 06:32:28 +08:00
parser ccetab.c ccetab.h: cce.y
2011-04-18 02:50:10 +08:00
bison -v -d -t -p cce cce.y
rm -f ccetab.c ccetab.h
mv cce.tab.c ccetab.c
mv cce.tab.h ccetab.h
2011-06-11 02:47:26 +08:00
##################################################
# Generate the augmented ncstream structures
2011-09-02 06:32:28 +08:00
EXTRA_DIST += ast.jar ncStream.proto ncStream.h ncStream.c extends.sed
2011-06-11 03:45:50 +08:00
ncStreamx.c ncStreamx.h: ncStreamx.proto ast.jar
java -jar ast.jar -WdT -I. ncStreamx.proto
2011-06-11 02:47:26 +08:00
ncStreamx.proto: ncStream.proto extends.sed
sed -f extends.sed <ncStream.proto |tr -d '\r' >ncStreamx.proto
##################################################
jar::
cd ${ASTDIR}; make -f Make0 jar
cp ${ASTJAR} .
2011-04-17 04:56:36 +08:00
endif # BUILD_CDMREMOTE
2011-06-11 02:47:26 +08:00