From 72c0f6a2d644754439d57acd2a90108d2ec2c9fe Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 22 Nov 2005 21:45:24 +0000 Subject: Depedencies corrected (less make oldconfig/headers), rerunning make remakes only headers --- librt/Makefile.in | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'librt') diff --git a/librt/Makefile.in b/librt/Makefile.in index 55d006dfd..ec405e556 100644 --- a/librt/Makefile.in +++ b/librt/Makefile.in @@ -19,7 +19,11 @@ librt_OUT := $(top_builddir)librt librt_SRC := $(wildcard $(librt_DIR)/*.c) librt_OBJ := $(patsubst $(librt_DIR)/%.c,$(librt_OUT)/%.o,$(librt_SRC)) +ifeq ($(DOPIC),y) +librt-a-y := $(librt_OBJ:.o=.os) +else librt-a-y := $(librt_OBJ) +endif librt-so-y := $(librt_OBJ:.o=.os) librt-multi-y += $(librt_SRC) @@ -28,7 +32,11 @@ lib-a-y += $(top_builddir)lib/librt.a lib-so-y += $(top_builddir)lib/librt.so objclean-y += librt_clean -$(top_builddir)lib/librt.so: $(librt_OUT)/librt_so.a $(libc-so-dep) +ifeq ($(DOPIC),y) +$(top_builddir)lib/librt.so: $(top_builddir)lib/librt.a $(libc) +else +$(top_builddir)lib/librt.so: $(librt_OUT)/librt_so.a $(libc) +endif $(call link.so,$(librt_FULL_NAME),$(MAJOR_VERSION)) $(librt_OUT)/librt_so.a: $(librt-so-y) @@ -36,16 +44,10 @@ $(librt_OUT)/librt_so.a: $(librt-so-y) $(do_strip) $(do_ar) -ifeq ($(DOPIC),y) -$(top_builddir)lib/librt.a: $(librt-a-y:.o=.os) -else -$(top_builddir)lib/librt.a: $(librt-a-y) $(librt_OUT)/librt_so.a -endif +$(top_builddir)lib/librt.a: $(librt-a-y) $(Q)$(INSTALL) -d $(dir $@) $(Q)$(RM) $@ -ifneq ($(DOPIC),y) $(do_strip) -endif $(do_ar) librt_clean: -- cgit v1.2.3