netcdf-c/libdap2/Makefile.am
Ward Fisher ddf3c31bb0 Corrected a handful of syntax issues in CMake config files,
probably introduced more.  

Added CMake-related files to Makefile.am files for inclusion
when creating a distribution package.
2013-02-20 23:28:28 +00:00

66 lines
1.7 KiB
Makefile
Executable File

## This is a automake file, part of Unidata's netCDF package.
# Copyright 2005, see the COPYRIGHT file for more information.
# This automake file generates the Makefile to libdap2. Whatever that
# is!
# Put together AM_CPPFLAGS and AM_LDFLAGS.
include $(top_srcdir)/lib_flags.am
# We may have to add to these later.
DISTCLEANFILES =
MAINTAINERCLEANFILES =
CLEANFILES =
EXTRA_DIST = CMakeLists.txt
LDADD=
SRC= constraints3.c common34.c dapcvt.c dapalign.c dapodom.c daputil.c \
ncdaperr.c cdf3.c cache.c dapdump.c dapdebug.c dapattr3.c \
ncd3dispatch.c ncdap3.c ncdap3a.c getvara3.c dceconstraints.c dcetab.c \
dceparse.c dcelex.c
HDRS= nccommon.h constraints3.h ncd3dispatch.h ncdap3.h dapalign.h \
dapodom.h getvara.h dapnc.h daputil.h dapdebug.h dapdump.h \
dceconstraints.h dcetab.h dceparselex.h
if USE_NETCDF4
#SRC += cdf4.c constraints4.c ncd4dispatch.c ncdap4.c getvara4.c
#HDRS +=constraints4.h ncd4dispatch.h ncdap4.h
endif
if BUILD_DAP
if USE_NETCDF4
AM_CPPFLAGS += -I$(top_srcdir)/libsrc4
endif
# Build convenience library
noinst_LTLIBRARIES = libdap2.la
libdap2_la_SOURCES = $(SRC) $(HDRS)
libdap2_la_CPPFLAGS = $(AM_CPPFLAGS)
libdap2_la_LIBADD =
#if USE_NETCDF4
#LDADD += ${top_builddir}/libsrc4/libnetcdf4.la
#endif
#
#LDADD += ${top_builddir}/libsrc/libnetcdf3.la \
# ${top_builddir}/oc2/liboc.la \
# ${top_builddir}/libdispatch/libdispatch.la
#
endif # BUILD_DAP
# 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
mv dce.tab.c dcetab.c
mv dce.tab.h dcetab.h