summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/commence.in112
-rw-r--r--config/conclude.in78
-rw-r--r--config/depend.in42
3 files changed, 122 insertions, 110 deletions
diff --git a/config/commence.in b/config/commence.in
index 33b0d32..99d9f73 100644
--- a/config/commence.in
+++ b/config/commence.in
@@ -1,15 +1,15 @@
-#------------------------------------------------------------- -*- makefile -*-
-# The following section of this makefile comes from the
-# `./config/commence' file which was generated with config.status
-# from `./config/commence.in'.
-#------------------------------------------------------------------------------
+##------------------------------------------------------------ -*- makefile -*-
+## The following section of this makefile comes from the
+## `./config/commence' file which was generated with config.status
+## from `./config/commence.in'.
+##-----------------------------------------------------------------------------
-# Things that Make needs
+## Things that Make needs
.SUFFIXES:
.SUFFIXES: .c .o .lo
@SET_MAKE@
-# Programs
+## Programs
SHELL=/bin/sh
CC=@CC@
CFLAGS=@CFLAGS@
@@ -28,7 +28,7 @@ RUNPARALLEL=@RUNPARALLEL@
RUNTEST=$(RUNSERIAL)
TRACE=:
-# Installation points
+## Installation points
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
@@ -36,7 +36,7 @@ libdir=@libdir@
includedir=@includedir@
PUB_LIB=$(LIB)
-# Shared libraries
+## Shared libraries
LT=$(top_builddir)/libtool
LT_COMPILE=$(LT) --mode=compile $(CC)
LT_LINK_LIB=$(LT) --mode=link $(CC) -rpath $(libdir)
@@ -46,49 +46,60 @@ LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA)
LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
+## Optional variables. We must declare them here because Irix pmake
+## complains if it sees a reference to a variable which has never been
+## defined. The main makefile is free to redefine these to something else.
+LIB=
+LIB_SRC=
+LIB_OBJ=
+PUB_HDR=
+PROGS=
+TEST_PROGS=
+TEST_FLAGS=
+TEST_SCRIPTS=
-# The default is to build the library and/or programs. We must build
-# them sequentially.
+## The default is to build the library and/or programs. We must build
+## them sequentially.
all:
$(MAKE) lib
$(MAKE) progs
$(MAKE) tests
-# The following rules insure that the Makefile is up-to-date by rerunning
-# various autoconf components (although not all versions of make assume
-# that the makefile is implicitly a target). We use time stamp files to
-# keep track of the most recent update of H5config.h.in and H5config.h
-# because autoheader and config.status don't update the modification time
-# if the contents don't change.
-#
-# Graphically, the dependencies are:
-#
-# configure.in
-# | |
-# +-----------------+ +------------+
-# | |
-# stamp1 configure
-# (H5config.h.in) |
-# | | |
-# | +---------------+ +-----------+
-# | | |
-# | config.status
-# | |
-# | +------------------+
-# | |
-# stamp2
-# (H5config.h) Makefile.in et al
-# | |
-# +------------------+ +-----------+
-# | |
-# Makefile
-#
-# A side effect of updating stamp1 is to generate H5config.h.in and a
-# side effect of updating stamp2 is to generate H5config.h. When using
-# a version of make that doesn't treat the makefile as the initial target
-# the user may want to occassionally type `make Makefile' in any source
-# directory.
-#
+## The following rules insure that the Makefile is up-to-date by rerunning
+## various autoconf components (although not all versions of make assume
+## that the makefile is implicitly a target). We use time stamp files to
+## keep track of the most recent update of H5config.h.in and H5config.h
+## because autoheader and config.status don't update the modification time
+## if the contents don't change.
+##
+## Graphically, the dependencies are:
+##
+## configure.in
+## | |
+## +-----------------+ +------------+
+## | |
+## stamp1 configure
+## (H5config.h.in) |
+## | | |
+## | +---------------+ +-----------+
+## | | |
+## | config.status
+## | |
+## | +------------------+
+## | |
+## stamp2
+## (H5config.h) Makefile.in et al
+## | |
+## +------------------+ +-----------+
+## | |
+## Makefile
+##
+## A side effect of updating stamp1 is to generate H5config.h.in and a
+## side effect of updating stamp2 is to generate H5config.h. When using
+## a version of make that doesn't treat the makefile as the initial target
+## the user may want to occassionally type `make Makefile' in any source
+## directory.
+##
STAMP1=$(top_builddir)/config/stamp1
STAMP2=$(top_builddir)/config/stamp2
@@ -115,7 +126,8 @@ $(top_builddir)/config.status: $(top_srcdir)/configure $(STAMP1)
Makefile: $(MAKEFILE_PARTS) $(STAMP2)
-cd $(top_builddir); CONFIG_HEADERS= ./config.status
-#------------------------------------------------------------------------------
-# The following section of this makefile comes from the middle of `Makefile.in'
-# from this directory. It was generated by running `config.status'.
-#------------------------------------------------------------------------------
+##-----------------------------------------------------------------------------
+## The following section of this makefile comes from the middle of
+## `Makefile.in' from this directory. It was generated by running
+## `config.status'.
+##-----------------------------------------------------------------------------
diff --git a/config/conclude.in b/config/conclude.in
index 8e47c9e..b3ec16b 100644
--- a/config/conclude.in
+++ b/config/conclude.in
@@ -1,24 +1,24 @@
-#------------------------------------------------------------- -*- 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.
-#
+##------------------------------------------------------------ -*- 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.
+##
lib: $(LIB)
$(LIB) __no_library__: $(LIB_OBJ)
@$(LT_LINK_LIB) -o $@ $(CFLAGS) $(LIB_OBJ) $(LIBS)
progs: $(LIB) $(PROGS)
-# Build a tags file in this directory.
+## Build a tags file in this directory.
TAGS: $(LIB_SRC)
$(RM) $@
-etags $(LIB_SRC)
-# Runs each test in order, passing $(TEST_FLAGS) to the program.
+## Runs each test in order, passing $(TEST_FLAGS) to the program.
tests: $(TEST_PROGS) $(LIB)
check test _test: tests
@for test in $(TEST_PROGS) dummy; do \
@@ -45,7 +45,7 @@ check test _test: tests
fi; \
done;
-# Make installation directories directories if they don't exist.
+## Make installation directories directories if they don't exist.
$(libdir):
mkdir $@ && chmod 755 $@
@@ -55,7 +55,7 @@ $(includedir):
$(bindir):
mkdir $@ && chmod 755 $@
-# Install the library, the public header files, and programs.
+## Install the library, the public header files, and programs.
install: $(PUB_LIB) $(PUB_HDR) $(PROGS) $(libdir) $(includedir) $(bindir)
@for f in X $(PUB_LIB); do \
if test $$f != X; then \
@@ -81,7 +81,7 @@ install: $(PUB_LIB) $(PUB_HDR) $(PROGS) $(libdir) $(includedir) $(bindir)
fi; \
done
-# Removes those things that `make install' (would have) installed.
+## Removes those things that `make install' (would have) installed.
uninstall:
@if test "X$(LIB)" != X; then \
for f in $(LIB); do \
@@ -97,27 +97,27 @@ uninstall:
done; \
fi
-# Removes temporary files without removing the final target files. That is,
-# remove things like object files but not libraries or executables.
-#
+## Removes temporary files without removing the final target files. That is,
+## remove things like object files but not libraries or executables.
+##
mostlyclean:
-$(RM) $(LIB_OBJ) $(LIB_OBJ:.lo=.o)
-$(RM) $(TEST_OBJ) $(TEST_OBJ:.lo=.o)
-$(RM) $(PROG_OBJ) $(PROG_OBJ:.lo=.o) $(MOSTLYCLEAN)
-# 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.
-#
+## 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.
+##
clean: mostlyclean
-$(RM) $(LIB) $(TEST_PROGS) $(PROGS) $(CLEAN)
-$(RM) -r .libs
-# 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.
-#
+## 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.
+##
distclean: clean
-$(RM) .depend TAGS *~ core *.core *.bak *.old *.new $(DISTCLEAN)
@if test -f $(srcdir)/Makefile.in; then \
@@ -125,28 +125,28 @@ distclean: clean
fi
-# Like `distclean' except it deletes all files that can be regenerated from
-# the makefile, including those generated from autoheader and autoconf.
-#
+## Like `distclean' except it deletes all files that can be regenerated from
+## the makefile, including those generated from autoheader and autoconf.
+##
maintainer-clean: distclean
-$(RM) *~ core core.* *.core *.bak *.contrib gmon.out
-# Implicit rules
+## Implicit rules
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
.c.lo:
@$(LT_COMPILE) $(CFLAGS) $(CPPFLAGS) -c $<
-#------------------------------------------------------------------------------
-# The following section of this makefile contains dependencies between the
-# source files and the header files. If GNU make and GCC are being used then
-# the dependencies are in the form of rules that cause the information to
-# be kept updated automatically. Otherwise the dependencies are listed
-# explicitly and come from the `.distdep' files in the various directories.
-# These files are part of the distribution and are generated automatically on
-# GNU/GCC systems.
-#------------------------------------------------------------------------------
+##-----------------------------------------------------------------------------
+## The following section of this makefile contains dependencies between the
+## source files and the header files. If GNU make and GCC are being used then
+## the dependencies are in the form of rules that cause the information to
+## be kept updated automatically. Otherwise the dependencies are listed
+## explicitly and come from the `.distdep' files in the various directories.
+## These files are part of the distribution and are generated automatically on
+## GNU/GCC systems.
+##-----------------------------------------------------------------------------
@DEPEND1@
@DEPEND2@
diff --git a/config/depend.in b/config/depend.in
index a02ad20..6915524 100644
--- a/config/depend.in
+++ b/config/depend.in
@@ -1,25 +1,25 @@
-# -*- makefile -*-
+## -*- makefile -*-
-# We keep a list of dependencies in `.depend' for each of the source
-# files on which it depends. When one of the source files is modified
-# we remove its record from .depend and regenerate its dependencies,
-# tacking them onto the end of .depend. By including the .depend file
-# into the makefile, we're telling make that the makefile depends on
-# the dependency list in the .depend file.
-#
-# This is as fast as the `.d' method described in the GNU make manual
-# for automatic dependencies, but has the added advantage that all
-# dependencies are stored in one place. The advantage over the
-# `makedepend' program is that only those files that are out of date
-# have dependency information rebuilt, and the Makefile is not
-# modified.
-#
-# This is also where tracing information is updated. The $(TRACE)
-# program is run on each source file to make sure that the H5TRACE()
-# macros are up to date. If they are then the file is not modified,
-# otherwise the file is changed and a backup is saved by appending a
-# tilde to the file name.
-#
+## We keep a list of dependencies in `.depend' for each of the source
+## files on which it depends. When one of the source files is modified
+## we remove its record from .depend and regenerate its dependencies,
+## tacking them onto the end of .depend. By including the .depend file
+## into the makefile, we're telling make that the makefile depends on
+## the dependency list in the .depend file.
+##
+## This is as fast as the `.d' method described in the GNU make manual
+## for automatic dependencies, but has the added advantage that all
+## dependencies are stored in one place. The advantage over the
+## `makedepend' program is that only those files that are out of date
+## have dependency information rebuilt, and the Makefile is not
+## modified.
+##
+## This is also where tracing information is updated. The $(TRACE)
+## program is run on each source file to make sure that the H5TRACE()
+## macros are up to date. If they are then the file is not modified,
+## otherwise the file is changed and a backup is saved by appending a
+## tilde to the file name.
+##
.PRECIOUS: .depend .distdep
dep depend: .distdep