diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-04-30 13:27:24 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-04-30 13:27:24 +0000 |
commit | b6423cfe3e0d3e23e1ba4a0b8a5b9723f5ef17fd (patch) | |
tree | dbd777823f5dbe32381e5fcf10ae791793c8afe1 /Makeconf | |
parent | d2f7a16189a9023596a1a538062b1421a614b537 (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-- | Makeconf | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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}) \ |