diff options
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r-- | libc/sysdeps/linux/Makefile | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/alpha/Makefile | 10 | ||||
-rw-r--r-- | libc/sysdeps/linux/arm/Makefile | 11 | ||||
-rw-r--r-- | libc/sysdeps/linux/bfin/Makefile | 10 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/Makefile | 10 | ||||
-rw-r--r-- | libc/sysdeps/linux/cris/Makefile | 11 | ||||
-rw-r--r-- | libc/sysdeps/linux/e1/Makefile | 12 | ||||
-rw-r--r-- | libc/sysdeps/linux/h8300/Makefile | 11 | ||||
-rw-r--r-- | libc/sysdeps/linux/i386/Makefile | 11 | ||||
-rw-r--r-- | libc/sysdeps/linux/i960/Makefile | 12 | ||||
-rw-r--r-- | libc/sysdeps/linux/m68k/Makefile | 9 | ||||
-rw-r--r-- | libc/sysdeps/linux/microblaze/Makefile | 11 | ||||
-rw-r--r-- | libc/sysdeps/linux/mips/Makefile | 10 | ||||
-rw-r--r-- | libc/sysdeps/linux/nios/Makefile | 11 | ||||
-rw-r--r-- | libc/sysdeps/linux/nios2/Makefile | 11 | ||||
-rw-r--r-- | libc/sysdeps/linux/powerpc/Makefile | 11 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh/Makefile | 11 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh64/Makefile | 11 | ||||
-rw-r--r-- | libc/sysdeps/linux/sparc/Makefile | 10 | ||||
-rw-r--r-- | libc/sysdeps/linux/v850/Makefile | 11 |
20 files changed, 95 insertions, 111 deletions
diff --git a/libc/sysdeps/linux/Makefile b/libc/sysdeps/linux/Makefile index 9aa585eec..0e891d193 100644 --- a/libc/sysdeps/linux/Makefile +++ b/libc/sysdeps/linux/Makefile @@ -39,6 +39,4 @@ subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean - .PHONY: dummy $(TARGET_ARCH) - diff --git a/libc/sysdeps/linux/alpha/Makefile b/libc/sysdeps/linux/alpha/Makefile index d415c24ba..5c7310b38 100644 --- a/libc/sysdeps/linux/alpha/Makefile +++ b/libc/sysdeps/linux/alpha/Makefile @@ -32,12 +32,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(CRT0_OBJ): $(CRT0_SRC) @@ -75,7 +76,6 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: $(LN) -fs ../libc/sysdeps/linux/alpha/fpu_control.h $(TOPDIR)/include/ diff --git a/libc/sysdeps/linux/arm/Makefile b/libc/sysdeps/linux/arm/Makefile index ecc75b350..94929304e 100644 --- a/libc/sysdeps/linux/arm/Makefile +++ b/libc/sysdeps/linux/arm/Makefile @@ -33,12 +33,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(MOBJ) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(CRT0_OBJ): $(CRT0_SRC) @@ -76,7 +77,6 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: $(LN) -fs ../libc/sysdeps/linux/arm/fpu_control.h $(TOPDIR)/include/ @@ -84,4 +84,3 @@ clean: $(RM) *.[oa] *~ core $(RM) bits/sysnum.h $(RM) gmon-start.S - diff --git a/libc/sysdeps/linux/bfin/Makefile b/libc/sysdeps/linux/bfin/Makefile index b48131a4c..8fb05118e 100644 --- a/libc/sysdeps/linux/bfin/Makefile +++ b/libc/sysdeps/linux/bfin/Makefile @@ -32,13 +32,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(MOBJ) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) - mkdir -p $(TOPDIR)lib/ +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(CRT0_OBJ): $(CRT0_SRC) diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile index e42987859..5c43c1689 100644 --- a/libc/sysdeps/linux/common/Makefile +++ b/libc/sysdeps/linux/common/Makefile @@ -63,14 +63,14 @@ endif COBJS=$(patsubst %.c,%.o, $(CSRC)) -OBJ=$(COBJS) $(MOBJ) +OBJS=$(COBJS) $(MOBJ) -all: $(STR_SYSCALLS) $(OBJ) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.common -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJ) - $(AR) $(ARFLAGS) $(LIBC) $(OBJ) +$(OBJ_LIST): $(OBJS) + echo $(patsubst %, sysdeps/linux/common/%, $(OBJS)) > $(OBJ_LIST) $(COBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ diff --git a/libc/sysdeps/linux/cris/Makefile b/libc/sysdeps/linux/cris/Makefile index 458c512d7..f69db2503 100644 --- a/libc/sysdeps/linux/cris/Makefile +++ b/libc/sysdeps/linux/cris/Makefile @@ -34,12 +34,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(CRT0_OBJ): $(CRT0_SRC) @@ -77,9 +78,7 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: clean: $(RM) *.[oa] *~ core - diff --git a/libc/sysdeps/linux/e1/Makefile b/libc/sysdeps/linux/e1/Makefile index da98b902f..60d6ec026 100644 --- a/libc/sysdeps/linux/e1/Makefile +++ b/libc/sysdeps/linux/e1/Makefile @@ -37,12 +37,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(MOBJ) $(COBJS) $(CRT0_OBJ) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/$(CRT0_OBJ) $(CRT0_OBJ): %.o : %.S @@ -80,14 +81,11 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: - clean: $(RM) *.[oa] *~ core $(RM) bits/sysnum.h ifneq ($(strip $(HAVE_ELF)),y) $(RM) $(TOPDIR)/include/float.h endif - diff --git a/libc/sysdeps/linux/h8300/Makefile b/libc/sysdeps/linux/h8300/Makefile index 9176a2ed2..b5d337427 100644 --- a/libc/sysdeps/linux/h8300/Makefile +++ b/libc/sysdeps/linux/h8300/Makefile @@ -37,12 +37,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(CRT0_OBJ): $(CRT0_SRC) @@ -80,9 +81,7 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: clean: $(RM) *.[oa] *~ core - diff --git a/libc/sysdeps/linux/i386/Makefile b/libc/sysdeps/linux/i386/Makefile index c48a44092..d9bf0239a 100644 --- a/libc/sysdeps/linux/i386/Makefile +++ b/libc/sysdeps/linux/i386/Makefile @@ -34,12 +34,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(SCRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(SCRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(SCRT0_OBJ) $(TOPDIR)lib/ ifeq ($(strip $(UCLIBC_CTOR_DTOR)),y) $(RM) $(TOPDIR)lib/Scrt0.o @@ -86,7 +87,6 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: $(LN) -fs ../libc/sysdeps/linux/i386/fpu_control.h $(TOPDIR)/include/ @@ -95,4 +95,3 @@ clean: $(RM) bits/sysnum.h $(RM) $(TOPDIR)/include/fpu_control.h $(RM) gmon-start.S - diff --git a/libc/sysdeps/linux/i960/Makefile b/libc/sysdeps/linux/i960/Makefile index 7632e5b2d..2701e9985 100644 --- a/libc/sysdeps/linux/i960/Makefile +++ b/libc/sysdeps/linux/i960/Makefile @@ -34,12 +34,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(CRT0_OBJ): $(CRT0_SRC) @@ -77,11 +78,8 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: - clean: $(RM) *.[oa] *~ core $(RM) bits/sysnum.h - diff --git a/libc/sysdeps/linux/m68k/Makefile b/libc/sysdeps/linux/m68k/Makefile index 8f0a2ba96..7e595229f 100644 --- a/libc/sysdeps/linux/m68k/Makefile +++ b/libc/sysdeps/linux/m68k/Makefile @@ -38,12 +38,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(MOBJ) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(CRT0_OBJ): $(CRT0_SRC) diff --git a/libc/sysdeps/linux/microblaze/Makefile b/libc/sysdeps/linux/microblaze/Makefile index b17cb74ef..269d53eb6 100644 --- a/libc/sysdeps/linux/microblaze/Makefile +++ b/libc/sysdeps/linux/microblaze/Makefile @@ -40,12 +40,13 @@ COBJS = $(patsubst %.c,%.o, $(CSRC)) OBJS = $(SOBJS) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(CRT0_OBJ): $(CRT0_SRC) @@ -83,10 +84,8 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: clean: $(RM) *.[oa] *~ core $(RM) bits/sysnum.h - diff --git a/libc/sysdeps/linux/mips/Makefile b/libc/sysdeps/linux/mips/Makefile index 71d80a408..ac29d9955 100644 --- a/libc/sysdeps/linux/mips/Makefile +++ b/libc/sysdeps/linux/mips/Makefile @@ -32,12 +32,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(MOBJ) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(LN) -fs $(CRT0_OBJ) $(TOPDIR)/lib/crt0.o $(LN) -fs $(CRT0_OBJ) $(TOPDIR)/lib/Scrt1.o @@ -78,7 +79,6 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: $(LN) -fs ../libc/sysdeps/linux/mips/sgidefs.h $(TOPDIR)/include/ # $(LN) -fs ../libc/sysdeps/linux/mips/regdef.h $(TOPDIR)/include/ diff --git a/libc/sysdeps/linux/nios/Makefile b/libc/sysdeps/linux/nios/Makefile index 67ee79e55..cdfd9a204 100644 --- a/libc/sysdeps/linux/nios/Makefile +++ b/libc/sysdeps/linux/nios/Makefile @@ -31,12 +31,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(MOBJ) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(CRT0_OBJ): $(CRT0_SRC) @@ -74,7 +75,6 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: $(LN) -fs ../libc/sysdeps/linux/nios/fpu_control.h $(TOPDIR)/include/ @@ -82,4 +82,3 @@ clean: $(RM) *.[oa] *~ core $(RM) bits/sysnum.h $(RM) $(TOPDIR)/include/fpu_control.h - diff --git a/libc/sysdeps/linux/nios2/Makefile b/libc/sysdeps/linux/nios2/Makefile index 942708429..7cb737e36 100644 --- a/libc/sysdeps/linux/nios2/Makefile +++ b/libc/sysdeps/linux/nios2/Makefile @@ -31,12 +31,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(MOBJ) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(CRT0_OBJ): $(CRT0_SRC) @@ -74,7 +75,6 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: $(LN) -fs ../libc/sysdeps/linux/nios2/fpu_control.h $(TOPDIR)/include/ @@ -82,4 +82,3 @@ clean: $(RM) *.[oa] *~ core $(RM) bits/sysnum.h $(RM) $(TOPDIR)/include/fpu_control.h - diff --git a/libc/sysdeps/linux/powerpc/Makefile b/libc/sysdeps/linux/powerpc/Makefile index b2da65eba..25cb7047d 100644 --- a/libc/sysdeps/linux/powerpc/Makefile +++ b/libc/sysdeps/linux/powerpc/Makefile @@ -34,12 +34,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(SCRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(SCRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(SCRT0_OBJ) $(TOPDIR)lib/ ifeq ($(strip $(UCLIBC_CTOR_DTOR)),y) $(RM) $(TOPDIR)lib/Scrt0.o @@ -87,7 +88,6 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: $(LN) -fs ../libc/sysdeps/linux/powerpc/fpu_control.h $(TOPDIR)/include/ @@ -95,4 +95,3 @@ clean: $(RM) *.[oa] *~ core $(RM) bits/sysnum.h $(RM) gmon-start.S - diff --git a/libc/sysdeps/linux/sh/Makefile b/libc/sysdeps/linux/sh/Makefile index 01e0fb511..3532ef2b9 100644 --- a/libc/sysdeps/linux/sh/Makefile +++ b/libc/sysdeps/linux/sh/Makefile @@ -36,12 +36,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(MOBJ) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(CRT0_OBJ): $(CRT0_SRC) @@ -79,7 +80,6 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: $(LN) -fs ../libc/sysdeps/linux/sh/fpu_control.h $(TOPDIR)/include/ @@ -87,4 +87,3 @@ clean: $(RM) *.[oa] *~ core $(RM) bits/sysnum.h $(RM) gmon-start.S - diff --git a/libc/sysdeps/linux/sh64/Makefile b/libc/sysdeps/linux/sh64/Makefile index 688df0be0..3b5e8e9d0 100644 --- a/libc/sysdeps/linux/sh64/Makefile +++ b/libc/sysdeps/linux/sh64/Makefile @@ -37,12 +37,13 @@ COBJS = $(patsubst %.c,%.o, $(CSRC)) OBJS = $(SOBJS) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(CRT0_OBJ): $(CRT0_SRC) @@ -80,10 +81,8 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: clean: $(RM) *.[oa] *~ core $(RM) bits/sysnum.h - diff --git a/libc/sysdeps/linux/sparc/Makefile b/libc/sysdeps/linux/sparc/Makefile index 436785747..0e9ede2f5 100644 --- a/libc/sysdeps/linux/sparc/Makefile +++ b/libc/sysdeps/linux/sparc/Makefile @@ -32,12 +32,13 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(MOBJ) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(CRT0_OBJ): $(CRT0_SRC) @@ -75,7 +76,6 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: $(LN) -fs ../libc/sysdeps/linux/sparc/fpu_control.h $(TOPDIR)/include/ diff --git a/libc/sysdeps/linux/v850/Makefile b/libc/sysdeps/linux/v850/Makefile index 160bf25d8..e54925096 100644 --- a/libc/sysdeps/linux/v850/Makefile +++ b/libc/sysdeps/linux/v850/Makefile @@ -37,12 +37,13 @@ COBJS = $(patsubst %.c,%.o, $(CSRC)) OBJS = $(SOBJS) $(COBJS) -all: $(OBJS) $(LIBC) +OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) -$(LIBC): ar-target +all: $(OBJ_LIST) -ar-target: $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) $(CRT0_OBJ) $(CTOR_TARGETS) + echo $(patsubst %, sysdeps/linux/$(TARGET_ARCH)/%, $(OBJS)) > $(OBJ_LIST) + $(INSTALL) -d $(TOPDIR)lib/ cp $(CRT0_OBJ) $(TOPDIR)lib/ $(CRT0_OBJ): $(CRT0_SRC) @@ -80,10 +81,8 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif - headers: clean: $(RM) *.[oa] *~ core $(RM) bits/sysnum.h - |