summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2010-01-26 14:22:35 +1100
committerDave Chinner <david@fromorbit.com>2010-01-26 14:22:35 +1100
commit76f1b870d980f9fbef45298028e3a4a14d88c65f (patch)
treec054374e503ba5344f56331248d433cf70a5b56a /lib
parent82e1e14dba44ce53b93ef109d5479cafa3ac3596 (diff)
xfstests: Automatic build dependency calculations
Currently the xfstest builds do not have any automatic dependency calculations. It relies on a separate make depend run to build or update dependency information. It also relies on an external makedepend binary. If that binary does not exist, the dependencies do not get calculated. To remove the dependency on makedepend, gcc can be used instead as it has a command to generate dependency information. This patch changes the dependency rule building to use gcc. In case anyone uses an old (several years) gcc compiler or a compiler that doesn't support gcc compatible dependency generation, a new configure check is added to turn off dependency checking so builds can still be done. To use the dependencies automatically, we need to use a special include makefile directive to include the build dependencies into the current makefile. Essentially once the dependencies are calculated, they can be included into the makefile and make will recalculate the build dependencies automatically based on that information. Hence we get a build that automatically calculates and keeps dependencies up to date without dependence on any external tools. Signed-off-by: Dave Chinner <david@fromorbit.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 435c38c8..43fb0a09 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -19,8 +19,10 @@ CFILES = dataascii.c databin.c datapid.c file_lock.c forker.c \
str_to_bytes.c tlibio.c write_log.c \
random.c
-default: $(LTLIBRARY)
+default: ltdepend $(LTLIBRARY)
include $(BUILDRULES)
install install-dev: default
+
+-include .dep