1999-07-20 03:56:57 +08:00
|
|
|
##------------------------------------------------------------ -*- makefile -*-
|
|
|
|
## The following section of this makefile comes from the
|
|
|
|
## `./config/conclude' file which was generated with config.status
|
|
|
|
## from `./config/conclude.in'.
|
|
|
|
##-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
## This is the target for the library described in the main body of the
|
|
|
|
## makefile.
|
|
|
|
##
|
1997-08-29 00:36:57 +08:00
|
|
|
lib: $(LIB)
|
1997-08-16 00:40:24 +08:00
|
|
|
$(LIB) __no_library__: $(LIB_OBJ)
|
2003-07-29 05:38:04 +08:00
|
|
|
@if test "X$(HDF_FORTRAN)" = "Xyes"; then \
|
|
|
|
$(LT_LINK_FLIB) -o $@ $(FFLAGS) $(LIB_OBJ) $(LDFLAGS) $(LIBS); \
|
|
|
|
elif test "X$(HDF_CXX)" = "Xyes"; then \
|
|
|
|
$(LT_LINK_CXX_LIB) -o $@ $(CXXFLAGS) $(LIB_OBJ) $(LDFLAGS) $(LIBS); \
|
|
|
|
else \
|
|
|
|
$(LT_LINK_LIB) -o $@ $(CFLAGS) $(LIB_OBJ) $(LDFLAGS) $(LIBS); \
|
|
|
|
fi
|
|
|
|
@for d in X $(SUBDIRS); do \
|
|
|
|
if test $$d != X; then \
|
|
|
|
(set -x; cd $$d && $(MAKE) lib) || exit 1; \
|
|
|
|
fi; \
|
2001-03-09 04:13:04 +08:00
|
|
|
done
|
1997-08-16 00:40:24 +08:00
|
|
|
|
1998-07-16 00:39:46 +08:00
|
|
|
progs: $(LIB) $(PROGS)
|
2001-03-09 04:13:04 +08:00
|
|
|
@for d in X $(SUBDIRS); do \
|
|
|
|
if test $$d != X; then \
|
|
|
|
(set -x; cd $$d && $(MAKE) progs) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
1997-08-29 00:36:57 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Build a tags file in this directory.
|
2001-02-20 03:04:32 +08:00
|
|
|
##
|
1997-08-16 00:40:24 +08:00
|
|
|
TAGS: $(LIB_SRC)
|
|
|
|
$(RM) $@
|
|
|
|
-etags $(LIB_SRC)
|
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Runs each test in order, passing $(TEST_FLAGS) to the program.
|
2000-09-20 00:53:34 +08:00
|
|
|
## Since tests are done in a shell loop, "make -i" does apply inside it.
|
|
|
|
## Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop.
|
2003-05-13 23:21:42 +08:00
|
|
|
## The timestamps give a rough idea how much time the tests use.
|
2001-02-20 03:04:32 +08:00
|
|
|
##
|
2002-07-15 23:11:27 +08:00
|
|
|
tests: $(TEST_PROGS) $(TEST_PROGS_PARA) $(TEST_SCRIPTS) $(LIB)
|
1999-03-03 01:15:35 +08:00
|
|
|
check test _test: tests
|
2003-05-13 23:21:42 +08:00
|
|
|
@echo "===Tests begin `date`==="
|
1998-11-16 23:29:54 +08:00
|
|
|
@for test in $(TEST_PROGS) dummy; do \
|
1997-08-29 00:36:57 +08:00
|
|
|
if test $$test != dummy; then \
|
1998-08-15 03:39:41 +08:00
|
|
|
echo "============================"; \
|
2003-10-29 01:58:09 +08:00
|
|
|
if test "X$(HDF_FORTRAN)" = "Xyes"; then \
|
|
|
|
echo "Fortran API: Testing $$test $(TEST_FLAGS)"; \
|
|
|
|
elif test "X$(HDF_CXX)" = "Xyes"; then \
|
|
|
|
echo "C++ API: Testing $$test $(TEST_FLAGS)"; \
|
|
|
|
else \
|
|
|
|
echo "Testing $$test $(TEST_FLAGS)"; \
|
|
|
|
fi; \
|
1998-08-15 03:39:41 +08:00
|
|
|
echo "============================"; \
|
2000-10-19 00:47:04 +08:00
|
|
|
srcdir="$(srcdir)" \
|
|
|
|
$(RUNTEST) ./$$test $(TEST_FLAGS) || \
|
2000-09-20 00:53:34 +08:00
|
|
|
(test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
|
|
|
|
break; \
|
1998-08-15 03:39:41 +08:00
|
|
|
echo ""; \
|
1997-08-29 00:36:57 +08:00
|
|
|
fi; \
|
2000-09-20 00:53:34 +08:00
|
|
|
done; \
|
|
|
|
test $$test = dummy || false
|
2003-05-09 02:47:20 +08:00
|
|
|
@if test -n "$(TEST_PROGS_PARA)"; then \
|
2003-05-15 22:32:20 +08:00
|
|
|
echo "**** Hint ****"; \
|
2003-05-09 02:47:20 +08:00
|
|
|
echo "Parallel test files reside in the current directory" \
|
|
|
|
"by default."; \
|
|
|
|
echo "Set HDF5_PARAPREFIX to use another directory. E.g.,"; \
|
|
|
|
echo " HDF5_PARAPREFIX=/PFS/user/me"; \
|
|
|
|
echo " export HDF5_PARAPREFIX"; \
|
|
|
|
echo " make check"; \
|
2003-05-15 22:32:20 +08:00
|
|
|
echo "**** end of Hint ****"; \
|
2003-05-09 02:47:20 +08:00
|
|
|
fi
|
2001-09-11 12:04:15 +08:00
|
|
|
@for test in $(TEST_PROGS_PARA) dummy; do \
|
|
|
|
if test $$test != dummy; then \
|
|
|
|
echo "============================"; \
|
2003-10-29 01:58:09 +08:00
|
|
|
if test "X$(HDF_FORTRAN)" = "Xyes"; then \
|
|
|
|
echo "Fortran API: Testing $$test $(TEST_FLAGS)"; \
|
|
|
|
elif test "X$(HDF_CXX)" = "Xyes"; then \
|
|
|
|
echo "C++ API: Testing $$test $(TEST_FLAGS)"; \
|
|
|
|
else \
|
|
|
|
echo "Testing $$test $(TEST_FLAGS)"; \
|
|
|
|
fi; \
|
2001-09-11 12:04:15 +08:00
|
|
|
echo "============================"; \
|
|
|
|
srcdir="$(srcdir)" \
|
|
|
|
$(RUNPARALLEL) ./$$test $(TEST_FLAGS) || \
|
|
|
|
(test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
|
|
|
|
break; \
|
|
|
|
echo ""; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
test $$test = dummy || false
|
1998-11-16 23:29:54 +08:00
|
|
|
@for test in $(TEST_SCRIPTS) dummy; do \
|
|
|
|
if test $$test != dummy; then \
|
|
|
|
echo "============================"; \
|
2003-10-29 01:58:09 +08:00
|
|
|
if test "X$(HDF_FORTRAN)" = "Xyes"; then \
|
|
|
|
echo "Fortran API: Testing $$test $(TEST_FLAGS)"; \
|
|
|
|
elif test "X$(HDF_CXX)" = "Xyes"; then \
|
|
|
|
echo "C++ API: Testing $$test $(TEST_FLAGS)"; \
|
|
|
|
else \
|
|
|
|
echo "Testing $$test $(TEST_FLAGS)"; \
|
|
|
|
fi; \
|
1998-11-16 23:29:54 +08:00
|
|
|
echo "============================"; \
|
1999-05-29 06:07:42 +08:00
|
|
|
RUNSERIAL="$(RUNSERIAL)" RUNPARALLEL="$(RUNPARALLEL)" \
|
2000-10-19 00:47:04 +08:00
|
|
|
srcdir="$(srcdir)" \
|
1999-05-29 06:07:42 +08:00
|
|
|
/bin/sh $$test $(TEST_FLAGS) || \
|
2000-09-20 00:53:34 +08:00
|
|
|
(test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
|
|
|
|
break; \
|
1998-11-16 23:29:54 +08:00
|
|
|
echo ""; \
|
|
|
|
fi; \
|
2000-09-20 00:53:34 +08:00
|
|
|
done; \
|
|
|
|
test $$test = dummy || false
|
2003-05-13 23:21:42 +08:00
|
|
|
@echo "===Tests ended `date`==="
|
2001-03-09 04:13:04 +08:00
|
|
|
@for d in X $(SUBDIRS); do \
|
|
|
|
if test $$d != X; then \
|
|
|
|
(set -x; cd $$d && $(MAKE) tests) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
1997-08-29 00:36:57 +08:00
|
|
|
|
2003-03-27 08:14:30 +08:00
|
|
|
## Run test with different Virtual File Driver
|
|
|
|
check-vfd:
|
|
|
|
@for vfd in $(VFD_LIST) dummy; do \
|
|
|
|
if test $$vfd != dummy; then \
|
|
|
|
echo "============================"; \
|
|
|
|
echo "Testing Virtual File Driver $$vfd"; \
|
|
|
|
echo "============================"; \
|
|
|
|
HDF5_DRIVER=$$vfd $(MAKE) check; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Make installation directories directories if they don't exist.
|
2001-02-20 03:04:32 +08:00
|
|
|
##
|
1999-04-16 03:57:50 +08:00
|
|
|
$(libdir):
|
2003-07-29 05:38:04 +08:00
|
|
|
-$(top_srcdir)/bin/mkdirs $@
|
1999-04-16 03:57:50 +08:00
|
|
|
|
|
|
|
$(includedir):
|
2003-07-29 05:38:04 +08:00
|
|
|
-$(top_srcdir)/bin/mkdirs $@
|
1999-04-16 03:57:50 +08:00
|
|
|
|
|
|
|
$(bindir):
|
2003-07-29 05:38:04 +08:00
|
|
|
-$(top_srcdir)/bin/mkdirs $@
|
2001-09-22 07:50:15 +08:00
|
|
|
|
|
|
|
$(DOCDIR):
|
2003-07-29 05:38:04 +08:00
|
|
|
-$(top_srcdir)/bin/mkdirs $@
|
2001-09-22 07:50:15 +08:00
|
|
|
|
|
|
|
$(EXAMPLEDIR):
|
2003-07-29 05:38:04 +08:00
|
|
|
-$(top_srcdir)/bin/mkdirs $@
|
1999-04-16 03:57:50 +08:00
|
|
|
|
2000-06-28 03:01:03 +08:00
|
|
|
## Install the library, the public header files, and public programs.
|
2001-02-20 03:04:32 +08:00
|
|
|
##
|
2003-02-15 05:17:16 +08:00
|
|
|
install: $(AUX_LIB) $(PUB_LIB) $(PUB_HDR) $(PUB_PROGS) $(libdir) $(includedir) $(bindir)
|
1999-04-16 03:57:50 +08:00
|
|
|
@for f in X $(PUB_LIB); do \
|
2003-07-29 05:38:04 +08:00
|
|
|
if test $$f != X; then \
|
|
|
|
if test "X$(HDF_FORTRAN)" = "Xyes"; then \
|
|
|
|
(cd .libs && rm -f $(PUB_LIB)i && ln -s ../$(PUB_LIB) $(PUB_LIB)i); \
|
|
|
|
fi; \
|
|
|
|
($(LT_INSTALL_LIB) $$f $(libdir)/. || exit 1); \
|
|
|
|
fi; \
|
1998-02-13 03:28:25 +08:00
|
|
|
done
|
2003-07-29 05:38:04 +08:00
|
|
|
@if test "X$(HDF_FORTRAN)" = "Xyes" -a -n "$(F9XMODEXT)" && test "X$(F9XMODEXT)" != "Xo"; then \
|
|
|
|
if test -f "hdf5.$(F9XMODEXT)" || test -f "HDF5.$(F9XMODEXT)"; then \
|
|
|
|
((cp *.$(F9XMODEXT) $(libdir)/. && chmod 644 $(libdir)/*.$(F9XMODEXT)) || exit 1); \
|
|
|
|
fi; \
|
|
|
|
fi
|
[svn-r1315] Changes since 19990607
----------------------
./configure.in
./configure [REGENERATED]
./src/libhdf5.settings.in [NEW]
./config/conclude.in
./INSTALL
./MANIFEST
A file called `libhdf5.settings' is installed along with the
libraries and it contains a list of various things that might
be of interest to someone using the library (such as what
compiler/options were used and what other libraries might need
to be linked to satisfy external references). We can add more
things as it becomes necessary. Here's a sample...
SUMMARY OF THE HDF5 CONFIGURATION
=================================
HDF5 Version: hdf5-1.1.106
Configured on: Tue Jun 8 11:38:52 EDT 1999
Configured by: matzke@llnl.gov at Spizella Software
Configure mode: development
Host system: i686-pc-linux-gnulibc1
Byte sex: little-endian
Libraries: static, shared
Parallel support: mpicc
Installation point: /usr/local
Compiler: mpicc (egcs-2.91.66)
Compiler switches: -Wall -g
Extra libraries: -lmfhdf -ldf -lz -ljpeg -lm
Archiver: ar
Ranlib: ranlib
Debugged Packages: d,e,f,g,hg,i,mm,o,p,s,v,z
API Tracing: yes
File addresses: large
1999-06-09 00:14:10 +08:00
|
|
|
@if test -f libhdf5.settings; then \
|
|
|
|
(set -x; $(INSTALL_DATA) libhdf5.settings $(libdir)/. || exit 1); \
|
|
|
|
fi
|
2003-07-29 05:38:04 +08:00
|
|
|
@if test "X$(HDF_FORTRAN)" = "Xyes" -a -f libhdf5_fortran.settings; then \
|
|
|
|
(set -x; $(INSTALL_DATA) libhdf5_fortran.settings $(libdir)/. || exit 1); \
|
|
|
|
fi
|
1998-02-13 03:28:25 +08:00
|
|
|
@for f in X $(PUB_HDR); do \
|
|
|
|
if test $$f != X; then \
|
1999-03-30 19:38:34 +08:00
|
|
|
if test -f $$f; then \
|
|
|
|
(set -x; $(INSTALL_DATA) $$f $(includedir)/. || exit 1); \
|
|
|
|
else \
|
|
|
|
(set -x; $(INSTALL_DATA) $(srcdir)/$$f $(includedir)/. || \
|
|
|
|
exit 1); \
|
|
|
|
fi; \
|
|
|
|
fi; \
|
1998-02-13 03:28:25 +08:00
|
|
|
done
|
2000-06-28 03:01:03 +08:00
|
|
|
@for f in X $(PUB_PROGS); do \
|
1998-02-13 03:28:25 +08:00
|
|
|
if test $$f != X; then \
|
1999-03-03 01:15:35 +08:00
|
|
|
($(LT_INSTALL_PROG) $$f $(bindir)/. || exit 1); \
|
1998-02-13 03:28:25 +08:00
|
|
|
fi; \
|
|
|
|
done
|
2001-03-09 04:13:04 +08:00
|
|
|
@for d in X $(SUBDIRS); do \
|
|
|
|
if test $$d != X; then \
|
|
|
|
(set -x; cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
1997-08-16 00:40:24 +08:00
|
|
|
|
2001-09-22 07:50:15 +08:00
|
|
|
install-examples: $(EXAMPLE_PROGS) $(EXAMPLEDIR)
|
|
|
|
@for f in X $(EXAMPLE_PROGS); do \
|
|
|
|
if test $$f != X; then \
|
|
|
|
(set -x; $(INSTALL_DATA) $(srcdir)/$$f $(EXAMPLEDIR)/. || exit 1);\
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
|
|
|
uninstall-examples:
|
|
|
|
@if test -n "$(EXAMPLE_PROGS)"; then \
|
|
|
|
set -x; cd $(EXAMPLEDIR) && $(RM) $(EXAMPLE_PROGS); \
|
|
|
|
fi
|
|
|
|
|
1999-10-16 05:23:47 +08:00
|
|
|
## Install the documents.
|
2001-02-20 03:04:32 +08:00
|
|
|
##
|
2001-09-22 07:50:15 +08:00
|
|
|
install-doc: $(PUB_DOCS) $(DOCDIR)
|
2001-04-14 00:38:17 +08:00
|
|
|
@if test -n "$(DOCDIR)"; then \
|
|
|
|
if test -d "$(DOCDIR)"; then \
|
|
|
|
:; \
|
|
|
|
else \
|
|
|
|
mkdir $(DOCDIR) && chmod 755 $(DOCDIR); \
|
|
|
|
fi; \
|
2001-02-06 04:05:48 +08:00
|
|
|
fi
|
2001-04-14 00:38:17 +08:00
|
|
|
@if test -n "$(SUBDOCDIR)"; then \
|
|
|
|
if test -d "$(SUBDOCDIR)" ; then \
|
|
|
|
:; \
|
|
|
|
else \
|
|
|
|
mkdir $(SUBDOCDIR) && chmod 755 $(SUBDOCDIR); \
|
|
|
|
fi; \
|
2001-03-10 06:30:51 +08:00
|
|
|
fi
|
2001-02-06 04:09:33 +08:00
|
|
|
@for d in X $(SUBDIRS); do \
|
2001-03-10 06:30:51 +08:00
|
|
|
if test $$d != X; then \
|
|
|
|
(set -x; cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
fi; \
|
1999-10-16 05:23:47 +08:00
|
|
|
done
|
2001-02-06 04:09:33 +08:00
|
|
|
@for f in X $(PUB_DOCS); do \
|
|
|
|
if test $$f != X; then \
|
|
|
|
if test -f $$f; then \
|
2001-02-20 03:04:32 +08:00
|
|
|
(set -x; $(INSTALL_DATA) $$f $(DOCDIR)/. || exit 1); \
|
2001-02-06 04:09:33 +08:00
|
|
|
else \
|
1999-10-16 05:23:47 +08:00
|
|
|
(set -x; $(INSTALL_DATA) $(srcdir)/$$f $(DOCDIR)/. || \
|
2001-02-20 03:04:32 +08:00
|
|
|
exit 1); \
|
2001-02-06 04:09:33 +08:00
|
|
|
fi; \
|
|
|
|
fi; \
|
1999-10-16 05:23:47 +08:00
|
|
|
done
|
2001-03-10 06:30:51 +08:00
|
|
|
@for f in X $(PUB_SUBDOCS); do \
|
|
|
|
if test $$f != X; then \
|
|
|
|
if test -f $$f; then \
|
|
|
|
(set -x; $(INSTALL_DATA) $$f $(SUBDOCDIR)/. || exit 1); \
|
|
|
|
else \
|
|
|
|
(set -x; $(INSTALL_DATA) $(srcdir)/$$f $(SUBDOCDIR)/. || \
|
|
|
|
exit 1); \
|
|
|
|
fi; \
|
|
|
|
fi; \
|
|
|
|
done
|
1999-10-16 05:23:47 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Removes those things that `make install' (would have) installed.
|
2001-02-20 03:04:32 +08:00
|
|
|
##
|
1997-08-16 00:40:24 +08:00
|
|
|
uninstall:
|
1999-10-15 22:53:57 +08:00
|
|
|
@for f in libhdf5.settings $(LIB); do \
|
2003-07-29 05:38:04 +08:00
|
|
|
$(LT_UNINSTALL) $(libdir)/$$f; \
|
1999-10-15 22:53:57 +08:00
|
|
|
done
|
2001-04-14 00:38:17 +08:00
|
|
|
@if test -n "$(PUB_HDR)"; then \
|
2003-07-29 05:38:04 +08:00
|
|
|
set -x; cd $(includedir) && $(RM) $(PUB_HDR); \
|
1998-02-13 03:28:25 +08:00
|
|
|
fi
|
2003-07-29 05:38:04 +08:00
|
|
|
@for f in dummy $(PUB_PROGS); do \
|
|
|
|
if test $$f != dummy; then \
|
|
|
|
$(LT_UNINSTALL) $(bindir)/$$f; \
|
|
|
|
fi; \
|
1999-10-15 22:53:57 +08:00
|
|
|
done
|
2003-07-29 05:38:04 +08:00
|
|
|
@if test "X$(HDF_FORTRAN)" = "Xyes"; then \
|
|
|
|
$(LT_UNINSTALL) $(libdir)/libhdf5_fortran.settings; \
|
|
|
|
if test -n "$(F9XMODEXT)" -a "X$(F9XMODEXT)" != "Xo"; then \
|
|
|
|
if test -f "$(libdir)/hdf5.$(F9XMODEXT)" -o -f "$(libdir)/HDF5.$(F9XMODEXT)"; then \
|
|
|
|
set -x; $(RM) $(libdir)/*.$(F9XMODEXT); \
|
|
|
|
fi; \
|
|
|
|
fi; \
|
|
|
|
fi
|
1997-08-16 00:40:24 +08:00
|
|
|
|
1999-10-16 05:23:47 +08:00
|
|
|
## Removes those things that `make install-doc' (would have) installed.
|
2001-02-20 03:04:32 +08:00
|
|
|
##
|
1999-10-16 05:23:47 +08:00
|
|
|
uninstall-doc:
|
|
|
|
@for d in X $(SUBDIRS); do \
|
2003-07-29 05:38:04 +08:00
|
|
|
if test $$d != X; then \
|
|
|
|
(set -x; cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
fi; \
|
1999-10-16 05:23:47 +08:00
|
|
|
done
|
2001-04-14 00:38:17 +08:00
|
|
|
@if test -n "$(PUB_DOCS)"; then \
|
2003-07-29 05:38:04 +08:00
|
|
|
set -x; cd $(DOCDIR) && $(RM) $(PUB_DOCS); \
|
1999-10-16 05:23:47 +08:00
|
|
|
fi
|
2003-07-29 05:38:04 +08:00
|
|
|
@if test -n "$(PUB_SUBDOCS)"; then \
|
|
|
|
set -x; cd $(DOCDIR) && $(RM) $(PUB_SUBDOCS); \
|
2002-02-22 05:10:29 +08:00
|
|
|
fi
|
1999-10-16 05:23:47 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Removes temporary files without removing the final target files. That is,
|
|
|
|
## remove things like object files but not libraries or executables.
|
|
|
|
##
|
1997-08-16 00:40:24 +08:00
|
|
|
mostlyclean:
|
2001-02-20 03:04:32 +08:00
|
|
|
@for d in X $(SUBDIRS); do \
|
|
|
|
if test $$d != X; then \
|
|
|
|
(set -x; cd $$d; $(MAKE) $@) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
2001-04-14 00:38:17 +08:00
|
|
|
@if test -n "$(LIB_OBJ)"; then \
|
2001-04-20 05:47:12 +08:00
|
|
|
$(RM) $(LIB_OBJ) $(LIB_OBJ:.lo=.o); \
|
2001-04-14 00:38:17 +08:00
|
|
|
fi
|
|
|
|
@if test -n "$(TEST_OBJ)"; then \
|
2001-04-20 05:47:12 +08:00
|
|
|
$(RM) $(TEST_OBJ) $(TEST_OBJ:.lo=.o); \
|
2001-04-14 00:38:17 +08:00
|
|
|
fi
|
|
|
|
@if test -n "$(PROG_OBJ)" || test -n "$(MOSTLYCLEAN)"; then \
|
2001-04-20 05:47:12 +08:00
|
|
|
$(RM) $(PROG_OBJ) $(PROG_OBJ:.lo=.o) $(MOSTLYCLEAN); \
|
2001-04-14 00:38:17 +08:00
|
|
|
fi
|
1997-08-16 00:40:24 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Like `mostlyclean' except it also removes the final targets: things like
|
|
|
|
## libraries and executables. This target doesn't remove any file that
|
|
|
|
## is part of the HDF5 distribution.
|
|
|
|
##
|
1997-08-16 00:40:24 +08:00
|
|
|
clean: mostlyclean
|
2001-02-20 03:04:32 +08:00
|
|
|
@for d in X $(SUBDIRS); do \
|
|
|
|
if test $$d != X; then \
|
|
|
|
(set -x; cd $$d; $(MAKE) $@) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
2001-09-11 12:04:15 +08:00
|
|
|
@if test -n "$(LIB)" -o -n "$(TEST_PROGS)" -o -n "$(TEST_PROGS_PARA)" -o -n "$(PROGS)" -o -n "$(CLEAN)"; then \
|
2003-07-29 05:38:04 +08:00
|
|
|
$(RM) $(LIB) $(TEST_PROGS) $(TEST_PROGS_PARA) $(PROGS) $(CLEAN); \
|
|
|
|
fi
|
|
|
|
@if test "X$(HDF_FORTRAN)" = "Xyes"; then \
|
|
|
|
$(RM) -f *.M *.a *.mod; \
|
|
|
|
fi
|
1999-03-03 01:15:35 +08:00
|
|
|
-$(RM) -r .libs
|
1997-08-16 00:40:24 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Like `clean' except it also removes files that were created by running
|
|
|
|
## configure. If you've unpacked the source and built HDF5 without creating
|
|
|
|
## any other files, then `make distclean' will leave only the files that were
|
|
|
|
## in the distribution.
|
|
|
|
##
|
1997-08-16 00:40:24 +08:00
|
|
|
distclean: clean
|
1999-03-03 01:15:35 +08:00
|
|
|
-$(RM) .depend TAGS *~ core *.core *.bak *.old *.new $(DISTCLEAN)
|
2003-07-29 05:38:04 +08:00
|
|
|
@for d in X $(SUBDIRS); do \
|
|
|
|
if test $$d != X; then \
|
|
|
|
(set -x; cd $$d; $(MAKE) $@) || exit 1; \
|
|
|
|
fi; \
|
2001-02-20 03:04:32 +08:00
|
|
|
done
|
1999-03-20 04:09:50 +08:00
|
|
|
@if test -f $(srcdir)/Makefile.in; then \
|
1997-08-16 00:40:24 +08:00
|
|
|
(set -x; $(RM) Makefile); \
|
|
|
|
fi
|
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Like `distclean' except it deletes all files that can be regenerated from
|
|
|
|
## the makefile, including those generated from autoheader and autoconf.
|
|
|
|
##
|
1997-08-16 00:40:24 +08:00
|
|
|
maintainer-clean: distclean
|
2001-02-20 03:04:32 +08:00
|
|
|
@for d in X $(SUBDIRS); do \
|
|
|
|
if test $$d != X; then \
|
|
|
|
(set -x; cd $$d; $(MAKE) $@) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
1999-03-03 01:15:35 +08:00
|
|
|
-$(RM) *~ core core.* *.core *.bak *.contrib gmon.out
|
1997-08-16 00:40:24 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Implicit rules
|
2001-02-20 03:04:32 +08:00
|
|
|
##
|
1997-08-16 00:40:24 +08:00
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
|
|
|
|
|
1999-03-03 01:15:35 +08:00
|
|
|
.c.lo:
|
|
|
|
@$(LT_COMPILE) $(CFLAGS) $(CPPFLAGS) -c $<
|
|
|
|
|
2003-07-29 05:38:04 +08:00
|
|
|
.f90.o:
|
|
|
|
$(F9X) $(FFLAGS) $(FSEARCH_DIRS) -c $<
|
|
|
|
|
|
|
|
.f90.lo:
|
|
|
|
@$(LT_FCOMPILE) $(FFLAGS) $(FSEARCH_DIRS) -c $<
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
|
|
|
|
|
|
|
|
.cpp.lo:
|
|
|
|
@$(LT_CXX_COMPILE) $(CXXFLAGS) $(CPPFLAGS) -c $<
|
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
##-----------------------------------------------------------------------------
|
|
|
|
## The following section of this makefile contains dependencies between the
|
1999-11-01 23:21:16 +08:00
|
|
|
## source files and the header files.
|
1999-07-20 03:56:57 +08:00
|
|
|
##-----------------------------------------------------------------------------
|
1999-11-01 23:21:16 +08:00
|
|
|
.PHONY: dep depend
|
2000-09-20 01:04:46 +08:00
|
|
|
dep depend: $(srcdir)/Dependencies
|
1998-03-19 02:09:16 +08:00
|
|
|
|
1999-11-01 23:21:16 +08:00
|
|
|
@DEPEND@
|