1999-07-20 03:56:57 +08:00
|
|
|
## Top-level HDF5 Makefile(.in)
|
|
|
|
##
|
|
|
|
##
|
2003-04-01 01:44:34 +08:00
|
|
|
## Copyright by the Board of Trustees of the University of Illinois.
|
|
|
|
## All rights reserved.
|
|
|
|
##
|
|
|
|
## This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
## terms governing use, modification, and redistribution, is contained in
|
|
|
|
## the files COPYING and Copyright.html. COPYING can be found at the root
|
|
|
|
## of the source code distribution tree; Copyright.html can be found at the
|
|
|
|
## root level of an installed copy of the electronic HDF5 document set and
|
|
|
|
## is linked from the top-level documents page. It can also be found at
|
|
|
|
## http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have
|
|
|
|
## access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu.
|
1999-07-20 03:56:57 +08:00
|
|
|
##
|
|
|
|
## This makefile mostly just reinvokes make in the various subdirectories
|
|
|
|
## but does so in the correct order. You can alternatively invoke make from
|
|
|
|
## each subdirectory manually.
|
|
|
|
##
|
1999-03-04 07:17:48 +08:00
|
|
|
top_srcdir=@top_srcdir@
|
1999-03-20 04:09:50 +08:00
|
|
|
top_builddir=.
|
|
|
|
srcdir=@srcdir@
|
|
|
|
@COMMENCE@
|
1997-08-16 00:35:53 +08:00
|
|
|
|
1999-06-19 02:29:11 +08:00
|
|
|
# Subdirectories in build-order (not including `examples')
|
2003-05-14 09:31:58 +08:00
|
|
|
# TESTPARALLEL must be after test since it uses libtest.a. Putting it
|
|
|
|
# before tools allows parallel tests to run sooner.
|
|
|
|
SUBDIRS=src test @TESTPARALLEL@ tools @PABLO@ @subdirs@
|
1997-08-16 00:35:53 +08:00
|
|
|
|
|
|
|
##############################################################################
|
1999-07-20 03:56:57 +08:00
|
|
|
## T A R G E T S
|
|
|
|
##
|
|
|
|
## all: Build libraries, header files, tests, and programs in the
|
|
|
|
## various subdirectories but does not run tests or install the
|
|
|
|
## library, header files, or programs. The components can be
|
|
|
|
## built individually with the targets lib, progs, and tests.
|
|
|
|
## check: Test the uninstalled library to make sure it works. You may
|
|
|
|
## also say `test' or `_test' (`test' doesn't work from the top
|
|
|
|
## level directory for some versions of make because `test' is
|
|
|
|
## also a directory).
|
|
|
|
## install: Installs libraries, header files, programs, and documentation
|
|
|
|
## in the various directories under the prefix directory (lib,
|
|
|
|
## include, bin, man, info). Use the `--prefix=PATH' option
|
|
|
|
## to `configure' (or `config.status') or say `--help' for
|
|
|
|
## other alternatives. The default prefix is `/usr/local'.
|
|
|
|
## uninstall: Delete all the installed files that the `install' target
|
|
|
|
## created (but not the noninstalled files such as `make all'
|
|
|
|
## created).
|
|
|
|
## clean: Removes temporary files except those that record the
|
|
|
|
## configuration and those that are part of the distribution.
|
|
|
|
## mostlyclean: Like `clean' except it doesn't delete a few files like
|
|
|
|
## libraries, programs, and/or generated header files because
|
|
|
|
## regenerating them is rarely necessary and takes a lot of time.
|
|
|
|
## distclean: Deletes all files that are created by configuring or building
|
|
|
|
## HDF5. If you have unpacked the source and built HDF5 without
|
|
|
|
## creating any other files, then `make distclean' will leave
|
|
|
|
## only the files that were in the distrubution.
|
|
|
|
## maintainer-clean:
|
|
|
|
## Like `distclean' except it deletes more files. It deletes
|
|
|
|
## all generated files. This target is not intended for normal
|
|
|
|
## users; it deletes files that may require special tools to
|
|
|
|
## rebuild.
|
|
|
|
## TAGS: Updates the tags table for this program.
|
|
|
|
## dep depend: Builds dependencies in all subdirectories. These targets
|
|
|
|
## might not be available on certain combinations of make
|
|
|
|
## programs and C compilers. At the other extreme, the GNU
|
|
|
|
## make used in combination with gcc will maintain dependency
|
|
|
|
## information automatically.
|
1999-06-19 02:29:11 +08:00
|
|
|
lib progs check test _test uninstall:
|
1997-08-16 00:35:53 +08:00
|
|
|
@@SETX@; for d in $(SUBDIRS); do \
|
|
|
|
(cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
|
|
|
|
1999-06-19 02:29:11 +08:00
|
|
|
tests TAGS dep depend:
|
2002-02-16 00:02:41 +08:00
|
|
|
@@SETX@; for d in $(SUBDIRS) perform; do \
|
1999-06-19 02:29:11 +08:00
|
|
|
(cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
|
|
|
|
2001-09-22 07:50:15 +08:00
|
|
|
install-all:
|
|
|
|
@@SETX@; for d in dummy @subdirs@; do \
|
|
|
|
if test $$d != "dummy"; then \
|
|
|
|
(cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
@$(MAKE) install
|
|
|
|
@$(MAKE) install-doc
|
|
|
|
@$(LT) --mode=finish $(libdir)
|
|
|
|
|
2002-02-22 05:10:29 +08:00
|
|
|
uninstall-all:
|
|
|
|
@$(MAKE) uninstall
|
|
|
|
@$(MAKE) uninstall-doc
|
|
|
|
|
1999-03-04 07:17:48 +08:00
|
|
|
install:
|
|
|
|
@@SETX@; for d in $(SUBDIRS); do \
|
|
|
|
(cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
2001-09-22 07:50:15 +08:00
|
|
|
@$(MAKE) install-examples
|
|
|
|
@$(LT) --mode=finish $(libdir)
|
|
|
|
|
|
|
|
install-examples:
|
|
|
|
@@SETX@; for d in dummy @subdirs@; do \
|
|
|
|
if test $$d != "dummy"; then \
|
|
|
|
(cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
(cd examples && $(MAKE) $@) || exit 1;
|
|
|
|
|
|
|
|
uninstall-examples:
|
|
|
|
@@SETX@; for d in dummy @subdirs@; do \
|
|
|
|
if test $$d != "dummy"; then \
|
|
|
|
(cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
(cd examples && $(MAKE) $@) || exit 1;
|
1999-03-04 07:17:48 +08:00
|
|
|
|
2001-02-06 04:26:44 +08:00
|
|
|
install-doc:
|
2001-09-22 07:50:15 +08:00
|
|
|
@$(MAKE) install-examples
|
2001-02-06 04:26:44 +08:00
|
|
|
(cd doc && $(MAKE) $@) || exit 1;
|
|
|
|
|
2001-04-11 03:15:23 +08:00
|
|
|
uninstall-doc:
|
2002-02-22 05:10:29 +08:00
|
|
|
@$(MAKE) uninstall-examples
|
2001-04-11 03:15:23 +08:00
|
|
|
(cd doc && $(MAKE) $@) || exit 1;
|
|
|
|
|
2003-04-23 06:52:25 +08:00
|
|
|
## Check if installation is correct by checking if examples can be built.
|
|
|
|
## This requires a proper "make install" has been done.
|
2002-02-28 03:31:37 +08:00
|
|
|
check-install:
|
2003-04-23 06:52:25 +08:00
|
|
|
(cd examples && $(MAKE) check) || exit 1
|
|
|
|
@@SETX@; for d in dummy @subdirs@; do \
|
|
|
|
if test $$d != "dummy"; then \
|
|
|
|
(cd $$d && $(MAKE) $@) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
2002-02-28 03:31:37 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Number format detection
|
1998-04-24 08:02:08 +08:00
|
|
|
H5detect:
|
|
|
|
(cd src && $(MAKE) $@)
|
|
|
|
|
1998-03-11 00:40:39 +08:00
|
|
|
H5Tinit.c:
|
|
|
|
(cd src && $(MAKE) $@)
|
|
|
|
|
1998-01-31 04:17:25 +08:00
|
|
|
.PHONY: all lib progs test _test install uninstall dep depend clean \
|
|
|
|
mostlyclean distclean maintainer-clean
|
1998-01-28 13:47:19 +08:00
|
|
|
|
1997-08-16 00:35:53 +08:00
|
|
|
clean mostlyclean:
|
2002-03-08 04:27:38 +08:00
|
|
|
@@SETX@; for d in $(SUBDIRS) doc perform examples; do \
|
1998-09-01 03:21:23 +08:00
|
|
|
(cd $$d && $(MAKE) $@); \
|
1997-08-16 00:35:53 +08:00
|
|
|
done
|
1999-03-20 04:09:50 +08:00
|
|
|
-$(RM) conftest conftest.c
|
1997-08-16 00:35:53 +08:00
|
|
|
|
|
|
|
distclean:
|
2002-03-08 04:27:38 +08:00
|
|
|
@@SETX@; for d in $(SUBDIRS) doc perform examples; do \
|
1998-09-01 03:21:23 +08:00
|
|
|
(cd $$d && $(MAKE) $@); \
|
1997-08-16 00:35:53 +08:00
|
|
|
done
|
2000-01-13 01:18:47 +08:00
|
|
|
-$(RM) config/commence config/conclude
|
|
|
|
-$(RM) config/stamp1 config/stamp2 config/depend?
|
2002-04-09 20:41:10 +08:00
|
|
|
-$(RM) config.cache config.log config.status configure.lineno
|
2000-01-13 01:18:47 +08:00
|
|
|
-$(RM) src/H5config.h src/H5pubconf.h
|
|
|
|
-$(RM) libtool Makefile
|
1997-08-16 00:35:53 +08:00
|
|
|
|
|
|
|
maintainer-clean:
|
1999-08-25 22:04:02 +08:00
|
|
|
@echo "This target is intended for maintainers to use;"
|
1997-08-16 00:35:53 +08:00
|
|
|
@echo "it deletes files that may require special tools to rebuild."
|
2002-03-08 04:27:38 +08:00
|
|
|
@@SETX@; for d in $(SUBDIRS) doc perform examples; do \
|
1998-09-01 03:21:23 +08:00
|
|
|
(cd $$d && $(MAKE) $@); \
|
1997-08-16 00:35:53 +08:00
|
|
|
done
|
1998-09-01 03:21:23 +08:00
|
|
|
-$(RM) config.cache config.log config.status src/H5config.h
|
|
|
|
-$(RM) configure src/H5config.h.in
|
1999-03-04 07:17:48 +08:00
|
|
|
|