mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-04-12 18:10:24 +08:00
autotools cleanup
This commit is contained in:
parent
ec3bb22d03
commit
4f983e5803
40
Makefile.am
40
Makefile.am
@ -10,13 +10,12 @@
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
# These files get added to the distribution.
|
||||
EXTRA_DIST = README.md COPYRIGHT INSTALL.md test_prog.c \
|
||||
lib_flags.am cmake CMakeLists.txt COMPILE.cmake.txt \
|
||||
config.h.cmake.in cmake_uninstall.cmake.in \
|
||||
FixBundle.cmake.in \
|
||||
nc-config.cmake.in RELEASE_NOTES.md CTestCustom.cmake \
|
||||
CTestConfig.cmake.in libnetcdf.settings.in netCDFConfig.cmake.in \
|
||||
CMakeInstallation.cmake test-driver-verbose test_common.in
|
||||
EXTRA_DIST = README.md COPYRIGHT INSTALL.md test_prog.c lib_flags.am \
|
||||
cmake CMakeLists.txt COMPILE.cmake.txt config.h.cmake.in \
|
||||
cmake_uninstall.cmake.in FixBundle.cmake.in nc-config.cmake.in \
|
||||
RELEASE_NOTES.md CTestCustom.cmake CTestConfig.cmake.in \
|
||||
libnetcdf.settings.in netCDFConfig.cmake.in CMakeInstallation.cmake \
|
||||
test-driver-verbose test_common.in
|
||||
|
||||
pkgconfigdir=$(libdir)/pkgconfig
|
||||
pkgconfig_DATA = netcdf.pc
|
||||
@ -77,7 +76,7 @@ endif
|
||||
# depend on it.
|
||||
SUBDIRS = include $(H5_TEST_DIR) libdispatch libsrc $(LIBSRC4_DIR) \
|
||||
$(LIBSRCP) $(OCLIB) $(DAP2) ${DAP4} liblib $(NCGEN3) $(NCGEN) \
|
||||
$(NCDUMP) $(TESTDIRS) docs $(EXAMPLES) $(UDUNITS) $(LIBCF)
|
||||
$(NCDUMP) $(TESTDIRS) docs $(EXAMPLES)
|
||||
|
||||
# Remove these generated files, for a distclean.
|
||||
DISTCLEANFILES = VERSION comps.txt test_prog libnetcdf.settings \
|
||||
@ -101,14 +100,6 @@ ${prefix}/bin/ncgen$(EXEEXT) ${prefix}/bin/ncdump$(EXEEXT) \
|
||||
${prefix}/share/man/man1/ncgen.1 ${prefix}/share/man/man1/ncdump.1
|
||||
endif
|
||||
|
||||
if BUILD_DLL
|
||||
BINFILES += bin/libnetcdf-7.dll lib/libnetcdf.dll.a lib/libnetcdf.a \
|
||||
lib/libnetcdf.la lib/netcdfdll.def
|
||||
ZIPBINFILES += ${prefix}/bin/libnetcdf-7.dll \
|
||||
${prefix}/lib/libnetcdf.dll.a ${prefix}/lib/libnetcdf.a \
|
||||
${prefix}/lib/libnetcdf.la ${prefix}/lib/netcdfdll.def
|
||||
endif # BUILD_DLL
|
||||
|
||||
# install libnetcdf.settings in lib directory.
|
||||
settingsdir = $(libdir)
|
||||
settings_DATA = libnetcdf.settings
|
||||
@ -154,29 +145,12 @@ install-netcdf-fortran:
|
||||
|
||||
endif
|
||||
|
||||
# At Unidata, package up binaries.
|
||||
ftpbin: install
|
||||
echo "Getting binaries from ${prefix}"
|
||||
ls -l ${prefix}
|
||||
echo "These are the binaries for netCDF @PACKAGE_VERSION@." > ${prefix}/README_BINARIES.txt
|
||||
echo "For this build: CC=$(CC) CXX=$(CXX)" >> ${prefix}/README_BINARIES.txt
|
||||
echo "CFLAGS=$(CFLAGS) CXXFLAGS=$(CXXFLAGS)" >> ${prefix}/README_BINARIES.txt
|
||||
echo "FCFLAGS=$(FCFLAGS) F77FLAGS=$(F77FLAGS) $F90FLAGS=$(F90FLAGS)" >> ${prefix}/README_BINARIES.txt
|
||||
which tar
|
||||
echo "PATH: $(PATH)"
|
||||
tar cf @BINFILE_NAME@ -C ${prefix} ${BINFILES}
|
||||
gzip -f @BINFILE_NAME@
|
||||
zip -j netcdf_${VERSION}.zip ${ZIPBINFILES}
|
||||
|
||||
check_nc_config:
|
||||
$(CC) `./nc-config --cflags` test_prog.c -o test_prog `./nc-config --libs`
|
||||
./test_prog
|
||||
|
||||
install-data-hook:
|
||||
|
||||
if BUILD_DLL
|
||||
cp liblib/netcdfdll.def $(DESTDIR)${prefix}/bin
|
||||
endif # BUILD_DLL
|
||||
@echo ''
|
||||
@echo '+-------------------------------------------------------------+'
|
||||
@echo '| Congratulations! You have successfully installed netCDF! |'
|
||||
|
27
configure.ac
27
configure.ac
@ -1236,33 +1236,6 @@ if test "x$enable_logging" = xyes; then
|
||||
AC_DEFINE([LOGGING], 1, [If true, turn on logging.])
|
||||
fi
|
||||
|
||||
|
||||
# Like other libraries, udunits and libcf
|
||||
# are no long part of the netcdf distribution.
|
||||
|
||||
#AC_MSG_CHECKING([whether udunits is to be built])
|
||||
#AC_ARG_WITH([udunits],
|
||||
# [AS_HELP_STRING([--with-udunits],
|
||||
# [Build udunits2 package.])])
|
||||
#test "x$with_udunits" = xyes || with_udunits=no
|
||||
#AC_MSG_RESULT($with_udunits)
|
||||
#AM_CONDITIONAL(BUILD_UDUNITS, [test "x$with_udunits" = xyes])
|
||||
|
||||
|
||||
# Does the user want to also build the libcf library?
|
||||
#AC_MSG_CHECKING([whether libcf is to be built])
|
||||
#AC_ARG_WITH([libcf],
|
||||
# [AS_HELP_STRING([--with-libcf],
|
||||
# [build and install libcf library, a library for \
|
||||
# handling data in conformance with the Climate and \
|
||||
# Forecast conventions. (Requires netCDF-4 and HDF5)])])
|
||||
#test "x$with_libcf" = xyes || with_libcf=no
|
||||
#AC_MSG_RESULT($with_libcf)
|
||||
#AM_CONDITIONAL(BUILD_LIBCF, [test "x$with_libcf" = xyes])
|
||||
|
||||
#AC_CONFIG_SUBDIRS([udunits libcf])
|
||||
|
||||
|
||||
# Automake conditionals need to be called, whether the answer is yes
|
||||
# or no.
|
||||
AM_CONDITIONAL(BUILD_PARALLEL, [test x$enable_parallel = xyes])
|
||||
|
Loading…
x
Reference in New Issue
Block a user