Browse Source

Split up the .o and .os rules, so all the sources are created if DOPIC is disabled.

Peter S. Mazinger 18 years ago
parent
commit
8b9c2bd046
3 changed files with 16 additions and 4 deletions
  1. 8 2
      Makerules
  2. 4 1
      libintl/Makefile.in
  3. 4 1
      libm/Makefile.in

+ 8 - 2
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)

+ 4 - 1
libintl/Makefile.in

@@ -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)

+ 4 - 1
libm/Makefile.in

@@ -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)