1## This is a automake file, part of Unidata's netCDF package. 2# Copyright 2012-2019, see the COPYRIGHT file for more information. 3 4# This is the main automake file for netCDF-Fortran. 5 6# Ed Hartnett, Russ Rew, Dennis Heimbigner, Ward Fisher 7 8# This directory stores libtool macros, put there by aclocal. 9ACLOCAL_AMFLAGS = -I m4 10 11pkgconfigdir = $(libdir)/pkgconfig 12pkgconfig_DATA = netcdf-fortran.pc 13 14# Run these tests for netCDF-4 builds. 15if USE_NETCDF4 16NF_TEST4 = nf_test4 # netCDF-4 F77 API tests 17NF03_TEST4 = nf03_test4 # netCDF-4 F90 API tests 18endif # USE_NETCDF4 19 20# This is the list of subdirs for which Makefiles will be constructed 21# and run. 22SUBDIRS = libsrc fortran nf_test nf03_test $(NF_TEST4) $(NF03_TEST4) \ 23docs examples CMakeExtras 24 25# The nf-config script helps the user build programs with netCDF. 26bin_SCRIPTS = nf-config 27 28# install libnetcdff.settings in lib directory. 29settingsdir = $(libdir) 30settings_DATA = libnetcdff.settings 31 32check_nc_config: 33 $(F03) `./nf-config --fflags` test_prog.f03 -o test_prog `./nf-config --libs` 34 ./test_prog 35 36# These files get added to the distribution. 37EXTRA_DIST = README.md RELEASE_NOTES.md netcdf-fortran.pc.in \ 38F03Interfaces_LICENSE CMakeLists.txt COPYRIGHT nf-config.in \ 39config.h.cmake.in CTestConfig.cmake.in nf-config.cmake.in \ 40libnetcdff.settings.in 41 42# Remove these generated files, for a distclean. 43DISTCLEANFILES = VERSION libnetcdf.settings 44 45install-data-hook: 46 @echo '' 47 @echo '+-------------------------------------------------------------+' 48 @echo '| Congratulations! You have successfully installed the netCDF |' 49 @echo '| Fortran libraries. |' 50 @echo '| |' 51 @echo '| You can use script "nf-config" to find out the relevant |' 52 @echo '| compiler options to build your application. Enter |' 53 @echo '| |' 54 @echo '| nf-config --help |' 55 @echo '| |' 56 @echo '| for additional information. |' 57 @echo '| |' 58 @echo '| CAUTION: |' 59 @echo '| |' 60 @echo '| If you have not already run "make check", then we strongly |' 61 @echo '| recommend you do so. It does not take very long. |' 62 @echo '| |' 63 @echo '| Before using netCDF to store important data, test your |' 64 @echo '| build with "make check". |' 65 @echo '| |' 66 @echo '| NetCDF is tested nightly on many platforms at Unidata |' 67 @echo '| but your platform is probably different in some ways. |' 68 @echo '| |' 69 @echo '| If any tests fail, please see the netCDF web site: |' 70 @echo '| http://www.unidata.ucar.edu/software/netcdf/ |' 71 @echo '| |' 72 @echo '| NetCDF is developed and maintained at the Unidata Program |' 73 @echo '| Center. Unidata provides a broad array of data and software |' 74 @echo '| tools for use in geoscience education and research. |' 75 @echo '| http://www.unidata.ucar.edu |' 76 @echo '+-------------------------------------------------------------+' 77 @echo '' 78