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)
|
1999-09-23 02:02:27 +08:00
|
|
|
@$(LT_LINK_LIB) -o $@ $(CFLAGS) $(LIB_OBJ) $(LDFLAGS) $(LIBS)
|
1997-08-16 00:40:24 +08:00
|
|
|
|
1998-07-16 00:39:46 +08:00
|
|
|
progs: $(LIB) $(PROGS)
|
1997-08-29 00:36:57 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Build a tags file in this directory.
|
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.
|
1998-11-20 01:36:27 +08:00
|
|
|
tests: $(TEST_PROGS) $(LIB)
|
1999-03-03 01:15:35 +08:00
|
|
|
check test _test: tests
|
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 "============================"; \
|
1997-10-21 07:14:35 +08:00
|
|
|
echo "Testing $$test $(TEST_FLAGS)"; \
|
1998-08-15 03:39:41 +08:00
|
|
|
echo "============================"; \
|
1999-03-20 04:09:50 +08:00
|
|
|
PATH=".:$$PATH" srcdir=$(srcdir) \
|
|
|
|
$(RUNTEST) $$test $(TEST_FLAGS) || \
|
|
|
|
exit 1; \
|
1998-08-15 03:39:41 +08:00
|
|
|
echo ""; \
|
1997-08-29 00:36:57 +08:00
|
|
|
fi; \
|
|
|
|
done;
|
1998-11-16 23:29:54 +08:00
|
|
|
@for test in $(TEST_SCRIPTS) dummy; do \
|
|
|
|
if test $$test != dummy; then \
|
|
|
|
echo "============================"; \
|
|
|
|
echo "Testing $$test $(TEST_FLAGS)"; \
|
|
|
|
echo "============================"; \
|
1999-05-29 06:07:42 +08:00
|
|
|
RUNSERIAL="$(RUNSERIAL)" RUNPARALLEL="$(RUNPARALLEL)" \
|
1999-03-20 04:09:50 +08:00
|
|
|
srcdir=$(srcdir) \
|
1999-05-29 06:07:42 +08:00
|
|
|
/bin/sh $$test $(TEST_FLAGS) || \
|
1999-03-20 04:09:50 +08:00
|
|
|
exit 1; \
|
1998-11-16 23:29:54 +08:00
|
|
|
echo ""; \
|
|
|
|
fi; \
|
|
|
|
done;
|
1997-08-29 00:36:57 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Make installation directories directories if they don't exist.
|
1999-04-16 03:57:50 +08:00
|
|
|
$(libdir):
|
|
|
|
mkdir $@ && chmod 755 $@
|
|
|
|
|
|
|
|
$(includedir):
|
|
|
|
mkdir $@ && chmod 755 $@
|
|
|
|
|
|
|
|
$(bindir):
|
|
|
|
mkdir $@ && chmod 755 $@
|
|
|
|
|
1999-10-16 05:23:47 +08:00
|
|
|
$(DOCDIR):
|
|
|
|
mkdir $@ && chmod 755 $@
|
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Install the library, the public header files, and programs.
|
1999-04-16 03:57:50 +08:00
|
|
|
install: $(PUB_LIB) $(PUB_HDR) $(PROGS) $(libdir) $(includedir) $(bindir)
|
|
|
|
@for f in X $(PUB_LIB); do \
|
1998-02-13 03:28:25 +08:00
|
|
|
if test $$f != X; then \
|
1999-03-03 01:15:35 +08:00
|
|
|
($(LT_INSTALL_LIB) $$f $(libdir)/. || exit 1); \
|
1998-02-13 03:28:25 +08:00
|
|
|
fi; \
|
|
|
|
done
|
[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
|
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
|
|
|
|
@for f in X $(PROGS); do \
|
|
|
|
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
|
1997-08-16 00:40:24 +08:00
|
|
|
|
1999-10-16 05:23:47 +08:00
|
|
|
## Install the documents.
|
|
|
|
install-doc: $(PUB_DOCS) $(DOCDIR)
|
|
|
|
@for d in X $(SUBDIRS); do \
|
|
|
|
if test $$d != X; then \
|
|
|
|
(set -x; cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
@for f in X $(PUB_DOCS); do \
|
|
|
|
if test $$f != X; then \
|
|
|
|
if test -f $$f; then \
|
|
|
|
(set -x; $(INSTALL_DATA) $$f $(DOCDIR)/. || exit 1); \
|
|
|
|
else \
|
|
|
|
(set -x; $(INSTALL_DATA) $(srcdir)/$$f $(DOCDIR)/. || \
|
|
|
|
exit 1); \
|
|
|
|
fi; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Removes those things that `make install' (would have) installed.
|
1997-08-16 00:40:24 +08:00
|
|
|
uninstall:
|
1999-10-15 22:53:57 +08:00
|
|
|
@for f in libhdf5.settings $(LIB); do \
|
|
|
|
$(LT_UNINSTALL) $(libdir)/$$f; \
|
|
|
|
done
|
1999-03-03 01:15:35 +08:00
|
|
|
@if test "X$(PUB_HDR)" != X; then \
|
1998-02-13 03:28:25 +08:00
|
|
|
set -x; cd $(includedir) && $(RM) $(PUB_HDR); \
|
|
|
|
fi
|
1999-10-15 22:53:57 +08:00
|
|
|
@for f in X $(PROGS); do \
|
|
|
|
if test $$f != X; then \
|
|
|
|
$(LT_UNINSTALL) $(bindir)/$$f; \
|
|
|
|
fi; \
|
|
|
|
done
|
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.
|
|
|
|
uninstall-doc:
|
|
|
|
@for d in X $(SUBDIRS); do \
|
|
|
|
if test $$d != X; then \
|
|
|
|
(set -x; cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
@if test "X$(PUB_DOCS)" != X; then \
|
|
|
|
set -x; cd $(DOCDIR) && $(RM) $(PUB_DOCS); \
|
|
|
|
fi
|
|
|
|
|
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:
|
1999-03-13 02:35:04 +08:00
|
|
|
-$(RM) $(LIB_OBJ) $(LIB_OBJ:.lo=.o)
|
1999-04-27 22:47:54 +08:00
|
|
|
-$(RM) $(TEST_OBJ) $(TEST_OBJ:.lo=.o)
|
|
|
|
-$(RM) $(PROG_OBJ) $(PROG_OBJ:.lo=.o) $(MOSTLYCLEAN)
|
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
|
1999-03-03 01:15:35 +08:00
|
|
|
-$(RM) $(LIB) $(TEST_PROGS) $(PROGS) $(CLEAN)
|
|
|
|
-$(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)
|
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-03-20 04:09:50 +08:00
|
|
|
|
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
|
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
|
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 $<
|
|
|
|
|
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-01-26 22:50:12 +08:00
|
|
|
dep depend: Dependencies
|
1998-03-19 02:09:16 +08:00
|
|
|
|
1999-11-01 23:21:16 +08:00
|
|
|
@DEPEND@
|