netcdf-c/liblib/Makefile.am

66 lines
1.8 KiB
Makefile
Raw Normal View History

2010-06-03 21:24:43 +08:00
## This is a automake file, part of Unidata's netCDF package.
# Copyright 2010, see the COPYRIGHT file for more information.
2010-06-03 21:24:43 +08:00
# This Makefile assembles the correct libnetcdf based on various
# configure flags. It is assumed that all the relevant convenience
2010-12-16 05:45:05 +08:00
# libraries have been built (e.g. libsrc, libsrc4, libncdap3, libcdmr,
2010-06-03 21:24:43 +08:00
# libncdap4, fortran).
AM_LDFLAGS = @EXTERN_LDFLAGS@
AM_CPPFLAGS = -I$(top_srcdir)/include -I${top_srcdir}/libsrc \
-I${top_srcdir}/libdispatch
libnetcdf_la_LIBADD =
2010-06-03 21:24:43 +08:00
# This is our output, the netcdf library the user will install.
2010-06-03 21:24:43 +08:00
lib_LTLIBRARIES = libnetcdf.la
# These linker flags specify libtool version info.
libnetcdf_la_LDFLAGS = -version-number 7:0:1
2010-06-03 21:24:43 +08:00
2011-01-07 04:12:06 +08:00
if BUILD_DLL
libnetcdf_la_LDFLAGS += -no-undefined
2011-01-07 04:12:06 +08:00
endif # BUILD_DLL
# The v2 API...
if BUILD_V2
libnetcdf_la_LIBADD += ${top_builddir}/libdispatch/libnetcdf2.la
endif # BUILD_V2
2010-06-03 21:24:43 +08:00
# The output library will always include netcdf3 and dispatch libraries.
libnetcdf_la_LIBADD += ${top_builddir}/libdispatch/libdispatch.la \
${top_builddir}/libsrc/libnetcdf3.la
2010-06-03 21:24:43 +08:00
# netcdf3 + dap
2010-06-03 21:24:43 +08:00
if USE_DAP
AM_CPPFLAGS += -I${top_srcdir}/libncdap3 -I${top_srcdir}/oc
libnetcdf_la_LIBADD += ${top_builddir}/libncdap3/libncdap3.la
2010-08-07 03:59:14 +08:00
libnetcdf_la_LIBADD += ${top_builddir}/oc/liboc.la
endif # USE_DAP
2010-06-03 21:24:43 +08:00
# NetCDF-4 ...
2010-06-03 21:24:43 +08:00
if USE_NETCDF4
2010-12-16 05:45:05 +08:00
AM_CPPFLAGS += -I${top_srcdir}/libsrc4
2010-06-03 21:24:43 +08:00
libnetcdf_la_LIBADD += ${top_builddir}/libsrc4/libnetcdf4.la
2010-06-03 21:24:43 +08:00
# netcdf4+dap
if USE_DAP
2010-06-03 21:24:43 +08:00
libnetcdf_la_LIBADD += ${top_builddir}/libncdap4/libncdap4.la
endif # USE_DAP
2010-12-16 05:45:05 +08:00
# netcdf4+cdmremote
if BUILD_CDMREMOTE
libnetcdf_la_LIBADD += ${top_builddir}/libcdmr/libnccr.la
endif # BUILD_CDMREMOTE
2010-06-03 21:24:43 +08:00
endif #USE_NETCDF4
if BUILD_F77
if ! BUILD_SEPARATE_FORTRAN
libnetcdf_la_LIBADD += ${top_builddir}/fortran/libnetcdff.la
endif #!BUILD_SEPARATE_FORTRAN
endif #BUILD_F77
# We need at least one source file
libnetcdf_la_SOURCES = stub.c