OSDN Git Service

Split up the .o and .os rules, so all the sources are created if DOPIC is disabled.
authorPeter S. Mazinger <ps.m@gmx.net>
Tue, 1 Nov 2005 21:50:15 +0000 (21:50 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Tue, 1 Nov 2005 21:50:15 +0000 (21:50 -0000)
Makerules
libintl/Makefile.in
libm/Makefile.in

index b50b8a5..da3a98e 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -25,13 +25,19 @@ compile-m=$(CC) $^ -c -o $@ $(CPPFLAGS) $(CFLAGS) $(ARCH_CFLAGS) $(CFLAGS-$(suff
 CFLAGS-.os+=$(PICFLAG)
 CFLAGS-.oS+=$(PICFLAG) -DSHARED
 
-%.o %.os: %.c
+%.o: %.c
+       $(compile.c)
+
+%.os: %.c
        $(compile.c)
 
 %.oS: %.c
        $(compile.c)
 
-%.o %.os: %.S
+%.o: %.S
+       $(compile.S)
+
+%.os: %.S
        $(compile.S)
 
 #ifeq ($(HAVE_ELF),y)
index 5b309fc..8c77262 100644 (file)
@@ -22,7 +22,10 @@ libintl_MOBJ:=$(patsubst %.o,$(libintl_OUT)/%.o,$(MOBJ))
 
 libintl_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(libintl_MOBJ))))
 
-$(libintl_MOBJ) $(libintl_MOBJ:.o=.os): $(libintl_MSRC)
+$(libintl_MOBJ): $(libintl_MSRC)
+       $(compile.m)
+
+$(libintl_MOBJ:.o=.os): $(libintl_MSRC)
        $(compile.m)
 
 libintl-a-$(UCLIBC_HAS_GETTEXT_AWARENESS):=$(libintl_MOBJ)
index 541b6fb..b026644 100644 (file)
@@ -116,7 +116,10 @@ libm_OBJS+=$(patsubst %.c,$(libm_OUT)/%.o,$(LIBM_NO_MULTI))
 endif
 endif
 
-$(libm_MOBJ) $(libm_MOBJ:.o=.os): $(libm_MSRC)
+$(libm_MOBJ): $(libm_MSRC)
+       $(compile.m)
+
+$(libm_MOBJ:.o=.os): $(libm_MSRC)
        $(compile.m)
 
 libm-a-$(UCLIBC_HAS_FLOATS)+=$(libm_OBJS)