From a6a9ba4bef0212b95d1de28b96e3b5c52c041a95 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 26 Apr 1996 19:50:47 +0000 Subject: (OBJS): Provide default definition. (_objs): Delete variable; replace references with $(OBJS). --- Makeconf | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makeconf b/Makeconf index 3c1d3270..6f57d335 100644 --- a/Makeconf +++ b/Makeconf @@ -152,11 +152,12 @@ endif install: # Building the target +ifeq ($(OBJS),) +OBJS=%.o +endif + ifeq ($(doinst),many) target = $(filter-out $(special-targets),$(targets)) - _objs = %.o -else - _objs = $(OBJS) endif # Determine which sort of library we should link against from whether -static @@ -173,7 +174,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): $(OBJS) $(OTHERLIBS) $(CC) $(rpath) $(CFLAGS) $($@-CFLAGS) $(LDFLAGS) $($@-LDFLAGS) -o $@ \ '-Wl,-(' $(filter %.o,$^) \ $(foreach lib,$(filter-out %.o,$+),${_libsubst}) \ -- cgit v1.2.3