From b6423cfe3e0d3e23e1ba4a0b8a5b9723f5ef17fd Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 30 Apr 1996 13:27:24 +0000 Subject: ($(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. --- Makeconf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makeconf') 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}) \ -- cgit v1.2.3