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