From da392631c9056d412daa5ba92b8e82a6951d4a87 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 4 May 2012 00:19:54 +0200 Subject: Add dependency tracking for rpc-compat-routines --- sunrpc/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sunrpc') diff --git a/sunrpc/Makefile b/sunrpc/Makefile index 48790f4..b4548d5 100644 --- a/sunrpc/Makefile +++ b/sunrpc/Makefile @@ -107,12 +107,16 @@ librpcsvc-inhibit-o = .os # Build no shared rpcsvc library. omit-deps = $(librpcsvc-routines) endif -include ../Rules - ifeq (yes,$(build-shared)) rpc-compat-routines = $(addprefix compat-,$(need-export-routines)) rpc-compat-routines.os = $(addprefix $(objpfx), \ $(addsuffix .os,$(rpc-compat-routines))) +extra-objs += $(addsuffix .os,$(rpc-compat-routines)) +endif + +include ../Rules + +ifeq (yes,$(build-shared)) subdir_lib: $(objpfx)librpc_compat_pic.a $(objpfx)librpc_compat_pic.a: $(rpc-compat-routines.os) $(AR) cr$(verbose) $@ $^ -- cgit v1.1