mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
## 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 build netCDF-4. The
|
|
# generated makefile is not run unless the user selected to build
|
|
# netCDF-4.
|
|
|
|
include $(top_srcdir)/lib_flags.am
|
|
|
|
libnetcdf4_la_CPPFLAGS = ${AM_CPPFLAGS}
|
|
|
|
# Netcdf-4 source.
|
|
NC4SOURCES = nc4internal.h nc4dispatch.c nc4dispatch.h \
|
|
nc4attr.c nc4dim.c nc4file.c nc4grp.c nc4type.c nc4var.c ncfunc.c \
|
|
nc4internal.c nc4hdf.c error4.c
|
|
|
|
# This is our output. The big enchilada.
|
|
noinst_LTLIBRARIES = libnetcdf4.la
|
|
libnetcdf4_la_SOURCES = ${NC4SOURCES}
|
|
|
|
# Tell libtool what libraries are we will depend on.
|
|
libnetcdf4_la_LIBADD =
|
|
|
|
# HDF4 used?
|
|
if USE_HDF4
|
|
libnetcdf4_la_LIBADD += -lmfhdf -ldf
|
|
endif # USE_HDF4
|
|
|
|
# How about pnetcdf?
|
|
if USE_PNETCDF
|
|
libnetcdf4_la_LIBADD += -lpnetcdf
|
|
endif # USE_PNETCDF
|
|
|
|
# Always link to hdf5_hl, hdf5, and z.
|
|
#libnetcdf4_la_LIBADD += -lhdf5_hl -lhdf5 -lz
|
|
|
|
# This turns on declspec magic in netcdf.h for windows DLLs.
|
|
if BUILD_DLL
|
|
libnetcdf4_la_CPPFLAGS += -DDLL_EXPORT
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|