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 --- libm/Makefile.in | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'libm') diff --git a/libm/Makefile.in b/libm/Makefile.in index 7b6a781cf..19211f5ff 100644 --- a/libm/Makefile.in +++ b/libm/Makefile.in @@ -117,7 +117,11 @@ libm_DEF := $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libm_MOBJ)))) libm_OBJS := $(libm_OBJ) $(libm_MOBJ) +ifeq ($(DOPIC),y) +libm-a-y += $(libm_OBJS:.o=.os) +else libm-a-y += $(libm_OBJS) +endif libm-so-y += $(libm_OBJS:.o=.os) CFLAGS-multi-y := $(libm_DEF) @@ -128,7 +132,11 @@ lib-a-$(UCLIBC_HAS_FLOATS) += $(top_builddir)lib/libm.a lib-so-$(UCLIBC_HAS_FLOATS) += $(top_builddir)lib/libm.so objclean-y += libm_clean -$(top_builddir)lib/libm.so: $(libm_OUT)/libm_so.a $(libc-so-dep) +ifeq ($(DOPIC),y) +$(top_builddir)lib/libm.so: $(top_builddir)lib/libm.a $(libc) +else +$(top_builddir)lib/libm.so: $(libm_OUT)/libm_so.a $(libc) +endif $(call link.so,$(libm_FULL_NAME),$(MAJOR_VERSION)) $(libm_OUT)/libm_so.a: $(libm-so-y) @@ -136,16 +144,10 @@ $(libm_OUT)/libm_so.a: $(libm-so-y) $(do_strip) $(do_ar) -ifeq ($(DOPIC),y) -$(top_builddir)lib/libm.a: $(libm-a-y:.o=.os) -else -$(top_builddir)lib/libm.a: $(libm-a-y) $(libm_OUT)/libm_so.a -endif +$(top_builddir)lib/libm.a: $(libm-a-y) $(Q)$(INSTALL) -d $(dir $@) $(Q)$(RM) $@ -ifneq ($(DOPIC),y) $(do_strip) -endif $(do_ar) $(libm_MOBJ): $(libm_MSRC) -- cgit v1.2.3