summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/nios2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/nios2/Makefile')
-rw-r--r--libc/sysdeps/linux/nios2/Makefile11
1 files changed, 5 insertions, 6 deletions
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
-