2011-04-18 02:56:10 +08:00
|
|
|
## This is a automake file, part of Unidata's netCDF package.
|
2018-12-07 05:21:03 +08:00
|
|
|
# Copyright 2018, see the COPYRIGHT file for more information.
|
2011-04-18 02:56:10 +08:00
|
|
|
|
2011-05-18 03:14:35 +08:00
|
|
|
# This automake file generates the Makefile to libdap2. Whatever that
|
|
|
|
# is!
|
2011-04-18 02:56:10 +08:00
|
|
|
|
2011-05-18 03:14:35 +08:00
|
|
|
# Put together AM_CPPFLAGS and AM_LDFLAGS.
|
|
|
|
include $(top_srcdir)/lib_flags.am
|
2011-04-18 02:56:10 +08:00
|
|
|
|
|
|
|
# We may have to add to these later.
|
|
|
|
DISTCLEANFILES =
|
|
|
|
MAINTAINERCLEANFILES =
|
|
|
|
CLEANFILES =
|
2013-02-21 07:28:28 +08:00
|
|
|
EXTRA_DIST = CMakeLists.txt
|
2011-04-18 02:56:10 +08:00
|
|
|
|
|
|
|
LDADD=
|
2011-05-18 03:14:35 +08:00
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
SRC= constraints.c dapcvt.c dapodom.c daputil.c \
|
2014-03-25 04:02:52 +08:00
|
|
|
ncdaperr.c cdf.c cache.c dapdump.c dapdebug.c dapattr.c \
|
2017-03-09 08:01:10 +08:00
|
|
|
ncd2dispatch.c getvara.c dceconstraints.c dcetab.c \
|
2011-05-18 03:14:35 +08:00
|
|
|
dceparse.c dcelex.c
|
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
HDRS= nccommon.h constraints.h ncd2dispatch.h dapincludes.h \
|
2011-05-18 03:14:35 +08:00
|
|
|
dapodom.h getvara.h dapnc.h daputil.h dapdebug.h dapdump.h \
|
|
|
|
dceconstraints.h dcetab.h dceparselex.h
|
2011-04-18 02:56:10 +08:00
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
if ENABLE_DAP
|
2011-04-18 02:56:10 +08:00
|
|
|
|
2011-09-28 02:02:23 +08:00
|
|
|
if USE_NETCDF4
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/libsrc4
|
|
|
|
endif
|
2011-04-18 02:56:10 +08:00
|
|
|
|
|
|
|
# Build convenience library
|
2011-09-28 02:02:23 +08:00
|
|
|
noinst_LTLIBRARIES = libdap2.la
|
2011-04-18 02:56:10 +08:00
|
|
|
libdap2_la_SOURCES = $(SRC) $(HDRS)
|
|
|
|
libdap2_la_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
libdap2_la_LIBADD =
|
|
|
|
|
2011-09-28 02:02:23 +08:00
|
|
|
#if USE_NETCDF4
|
|
|
|
#LDADD += ${top_builddir}/libsrc4/libnetcdf4.la
|
|
|
|
#endif
|
|
|
|
#
|
|
|
|
#LDADD += ${top_builddir}/libsrc/libnetcdf3.la \
|
2012-08-01 04:34:13 +08:00
|
|
|
# ${top_builddir}/oc2/liboc.la \
|
2011-09-28 02:02:23 +08:00
|
|
|
# ${top_builddir}/libdispatch/libdispatch.la
|
|
|
|
#
|
2017-03-09 08:01:10 +08:00
|
|
|
endif # ENABLE_DAP
|
2011-04-18 02:56: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 += dce.y
|
|
|
|
|
|
|
|
makece::
|
|
|
|
bison -v -d -t -p dce dce.y
|
|
|
|
rm -f dcetab.c dcetab.h
|
2016-06-25 05:28:50 +08:00
|
|
|
sed -e 's/dce[.]tab[.]c/dcetab.c/g' -e 's/dce[.]tab[.]h/dcetab.h/g' <dce.tab.c >dcetab.c
|
|
|
|
sed -e 's/dce[.]tab[.]c/dcetab.c/g' -e 's/dce[.]tab[.]h/dcetab.h/g' <dce.tab.h >dcetab.h
|