mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
614ae2dce6
---------------------- ./Makefile.in ./config/commence.in ./config/conclude.in ./config/depend.in ./src/Makefile.in ./test/Makefile.in Tests are no longer installed for `make install'. Added a new target `make tests' that builds the tests but doesn't run them. ./configure.in ./configure [REGENERATED] ./src/H5config.h.in [REGENERATED] Added detection of fork() and waitpid(). If present the contants HAVE_FORK and HAVE_WAITPID will be defined in H5config.h. ./test/dtypes.c Minor tweaks for systems that don't have fork() or waitpid(). ./MANIFEST ./tools [NEW] ./tools/Makefile.in [NEW] ./tools/h5debug.c [NEW] ./tools/h5import.c [NEW] ./tools/h5ls.c [NEW] ./tools/h5repart.c [NEW] Added a tools directory and moved tools from the src directory to here.
45 lines
1.7 KiB
Makefile
45 lines
1.7 KiB
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.
|
|
#
|
|
.PRECIOUS: .depend .distdep
|
|
dep depend: .distdep
|
|
|
|
.distdep: .depend
|
|
touch .distdep
|
|
-perl -p $(ROOT)/bin/distdep .depend >.distdep
|
|
|
|
.depend: $(LIB_SRC) $(TEST_SRC) $(PROG_SRC)
|
|
@touch .depend
|
|
@for dep in $? dummy; do \
|
|
if [ $$dep != "dummy" ]; then \
|
|
echo Building dependencies for $$dep; \
|
|
obj=`echo $$dep | sed 's/\.c/\\\\.o/'`; \
|
|
sed "/$$obj/,/[^\\]$$/d" <$@ >$@- && mv $@- $@; \
|
|
$(TRACE) $$dep; \
|
|
$(CC) -M -MG $(CPPFLAGS) $$dep >>$@; \
|
|
fi; \
|
|
done;
|
|
-perl -p $(ROOT)/bin/distdep .depend >.distdep
|
|
|
|
-include .depend
|
|
|