55# netcdf directories. Not all directories are built, depending on the
66# options selected during configure.
77
8- # $Id: Makefile.am,v 1.137 2010/06/01 15:34:49 ed Exp $
9-
108# This directory stores libtool macros, put there by aclocal.
119ACLOCAL_AMFLAGS = -I m4
1210
@@ -31,9 +29,6 @@ F77_DIR = fortran
3129F77_TEST = nf_test
3230endif
3331
34- # Does the user want C API?
35- if BUILD_C
36-
3732LIBSRC_DIR = libsrc
3833NC_TEST_DIR = nc_test
3934
6964DISPATCHDIR = libdispatch
7065ASSEMBLEDIR = liblib
7166
72- endif # BUILD_C
73-
7467# Does the user want F90 API?
7568if BUILD_F90
7669F90_DIR = f90
@@ -111,22 +104,13 @@ endif
111104# and run. ncgen must come before ncdump and cxx, because their tests
112105# depend on it. nf_test depends upon ncgen as well.
113106# If not using dispatch then NC3DAPDIR must be
114- # built right before LIBSRC_DIR and NC4DAPDIR must be
107+ # built right before libsrc and NC4DAPDIR must be
115108# built right before LIBSRC4_DIR.
116- # If using dispatch, then the order is different
117- if BUILD_SEPARATE_FORTRAN
118- SUBDIRS = include $(UDUNITS ) $(H5_TEST_DIR ) $(DISPATCHDIR ) $(OCLIB ) \
119- $(LIBSRC_DIR ) $(LIBSRC4_DIR ) $(DAP2 ) $(LIBCDMR ) \
120- ${ASSEMBLEDIR} $(V2_TEST ) $(NC_TEST_DIR ) $(F90_DIR ) $(F77_DIR ) \
121- $(NCGEN3 ) $(NCGEN ) $(NCDUMP ) $(F77_TEST ) ${CXX_DIR} $(CXX4 ) \
122- $(NC_TEST4 ) $(NCDAPTESTDIR ) man4 $(EXAMPLES ) $(LIBCF )
123- else
124109SUBDIRS = include $(UDUNITS ) $(H5_TEST_DIR ) $(DISPATCHDIR ) $(OCLIB ) \
125- $(F90_DIR ) $(F77_DIR ) $(LIBSRC_DIR ) $(LIBSRC4_DIR ) $(DAP2 ) \
126- $(LIBCDMR ) ${ASSEMBLEDIR} $(V2_TEST ) $(NCGEN3 ) $(NCGEN ) $(NCDUMP ) \
127- $(F77_TEST ) ${CXX_DIR} $(CXX4 ) $(NC_TEST4 ) $(NC_TEST_DIR ) \
128- $(NCDAPTESTDIR ) man4 $(EXAMPLES ) $(LIBCF )
129- endif
110+ libsrc $(LIBSRC4_DIR ) $(DAP2 ) $(LIBCDMR ) ${ASSEMBLEDIR} $(V2_TEST ) \
111+ nc_test $(F90_DIR ) $(F77_DIR ) $(NCGEN3 ) $(NCGEN ) $(NCDUMP ) $(F77_TEST ) \
112+ ${CXX_DIR} $(CXX4 ) $(NC_TEST4 ) $(NCDAPTESTDIR ) man4 $(EXAMPLES ) \
113+ $(LIBCF )
130114
131115# Remove these generated files, for a distclean.
132116DISTCLEANFILES = VERSION comps.txt test_prog
@@ -136,38 +120,39 @@ bin_SCRIPTS = nc-config
136120
137121# What needs to go in the binrary dist?
138122BINFILES = README_BINARIES.txt
139- if BUILD_C
140123BINFILES += include/netcdf.h share/man/man3/netcdf.3 lib/libnetcdf.a
141- endif
124+ ZIPBINFILES = ${prefix}/include/netcdf.h ${prefix}/share/man/man3/netcdf.3 ${prefix}/lib/libnetcdf.a
142125
143126if BUILD_UTILITIES
144127BINFILES += bin/ncgen3$(EXEEXT ) bin/ncgen$(EXEEXT ) bin/ncdump$(EXEEXT ) \
145128share/man/man1/ncgen.1 share/man/man1/ncdump.1
129+ ZIPBINFILES += ${prefix}/bin/ncgen3$(EXEEXT ) ${prefix}/bin/ncgen$(EXEEXT ) ${prefix}/bin/ncdump$(EXEEXT ) \
130+ ${prefix}/share/man/man1/ncgen.1 ${prefix}/share/man/man1/ncdump.1
146131endif
147132
148- if BUILD_F77
149- BINFILES += include/netcdf.inc share/man/man3/netcdf_f77.3
150- if BUILD_SEPARATE_FORTRAN
151- BINFILES += lib/libnetcdff.a
152- endif
153- endif
133+ # if BUILD_F77
134+ # BINFILES += include/netcdf.inc share/man/man3/netcdf_f77.3
135+ # BINFILES += lib/libnetcdff.a
136+ # endif
154137
155- if BUILD_F90
156- if UPPER_CASE_MOD
157- BINFILES += include/NETCDF.mod include/TYPESIZES.mod
158- else
159- BINFILES += include/netcdf.mod include/typesizes.mod
160- endif
161- BINFILES += share/man/man3/netcdf_f90.3
162- endif
138+ # if BUILD_F90
139+ # if UPPER_CASE_MOD
140+ # BINFILES += include/NETCDF.mod include/TYPESIZES.mod
141+ # else
142+ # BINFILES += include/netcdf.mod include/typesizes.mod
143+ # endif
144+ # BINFILES += share/man/man3/netcdf_f90.3
145+ # endif
163146
164- if BUILD_CXX
165- BINFILES += include/netcdf.hh include/ncvalues.h include/netcdfcpp.h lib/libnetcdf_c++.a
166- endif
147+ # if BUILD_CXX
148+ # BINFILES += include/netcdf.hh include/ncvalues.h include/netcdfcpp.h lib/libnetcdf_c++.a
149+ # endif
167150
168151if BUILD_DLL
169- BINFILES += liblib/.libs/cygnetcdf-7.dll liblib/.libs/libnetcdf.dll.a \
170- liblib/.libs/libnetcdf.a liblib/.libs/libnetcdf.la
152+ BINFILES += bin/libnetcdf-7.dll lib/libnetcdf.dll.a lib/libnetcdf.a \
153+ lib/libnetcdf.la lib/netcdfdll.def
154+ ZIPBINFILES += ${prefix}/bin/libnetcdf-7.dll ${prefix}/lib/libnetcdf.dll.a ${prefix}/lib/libnetcdf.a \
155+ ${prefix}/lib/libnetcdf.la ${prefix}/lib/netcdfdll.def
171156if BUILD_F77
172157BINFILES +=
173158endif # BUILD_F77
@@ -185,6 +170,7 @@ ftpbin: install
185170 echo " PATH: $( PATH) "
186171 tar cf @BINFILE_NAME@ -C ${prefix} ${BINFILES}
187172 gzip -f @BINFILE_NAME@
173+ zip -j netcdf_${VERSION} .zip ${ZIPBINFILES}
188174
189175check_nc_config :
190176 $(CC ) ` ./nc-config --cflags` test_prog.c -o test_prog ` ./nc-config --libs`
@@ -195,6 +181,9 @@ check_nc_config:
195181 ./test_prog
196182
197183install-data-hook :
184+ if BUILD_DLL
185+ cp liblib/netcdfdll.def ${prefix}/lib
186+ endif
198187 @echo ''
199188 @echo '+-------------------------------------------------------------+'
200189 @echo '| Congratulations! You have successfully installed netCDF! |'
0 commit comments