summaryrefslogtreecommitdiff
path: root/Makeconf
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-04-30 13:27:24 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-04-30 13:27:24 +0000
commitb6423cfe3e0d3e23e1ba4a0b8a5b9723f5ef17fd (patch)
treedbd777823f5dbe32381e5fcf10ae791793c8afe1 /Makeconf
parentd2f7a16189a9023596a1a538062b1421a614b537 (diff)
($(target)): Don't depend on $(OBJS) or $(OTHERLIBS) in the main build
rule. Add new rule specifying such a dependency only when doinst is one.
Diffstat (limited to 'Makeconf')
-rw-r--r--Makeconf6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makeconf b/Makeconf
index 73c8b484..cdb81ef6 100644
--- a/Makeconf
+++ b/Makeconf
@@ -160,6 +160,10 @@ ifeq ($(doinst),many)
target = $(filter-out $(special-targets),$(targets))
endif
+ifeq ($(doinst),one)
+$(target): $(OBJS) $(OTHERLIBS)
+endif
+
# Determine which sort of library we should link against from whether -static
# is used in LDFLAGS.
__libext=.so
@@ -174,7 +178,7 @@ _libsubst=${libsubst$(patsubst %,-override,${libsubst-override})}
# dependencies of other shared objects it encounters.
rpath := -Wl,-rpath-link=.:$(subst $. ,:,$(dir $(wildcard ../lib*/lib*.so)))
-$(target): %$(target-suffix): $(OBJS) $(OTHERLIBS)
+$(target): %$(target-suffix):
$(CC) $(rpath) $(CFLAGS) $($@-CFLAGS) $(LDFLAGS) $($@-LDFLAGS) -o $@ \
'-Wl,-(' $(filter %.o,$^) \
$(foreach lib,$(filter-out %.o,$+),${_libsubst}) \