OSDN Git Service

Remove the now obsolete d-link tree. Update things to cope
authorEric Andersen <andersen@codepoet.org>
Fri, 11 Jan 2002 20:11:12 +0000 (20:11 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 11 Jan 2002 20:11:12 +0000 (20:11 -0000)
with the new naming
 -Erik

ldso/Makefile
ldso/libdl/Makefile
ldso/libdl/dlib.c
ldso/libdl/libdl.c
ldso/util/Makefile

index 722757e..8eedd40 100644 (file)
 TOPDIR=../
 include $(TOPDIR)Rules.mak
 
-ALL_SUBDIRS = d-link libdl util
+ALL_SUBDIRS = ldso libdl util
 
 
 all:
 ifeq ($(strip $(BUILD_UCLIBC_LDSO)),true)
-       $(MAKE) -C $(LIBRARY_CACHE) d-link;
+       $(MAKE) -C $(LIBRARY_CACHE) ldso;
 endif
 
 shared:
index cccd9e4..97b7234 100644 (file)
@@ -44,7 +44,7 @@ ar-target: $(OBJS)
 
 
 $(OBJS): %.o : %.c
-       $(TARGET_CC) -I../d-link -I../d-link/$(TARGET_ARCH) $(TARGET_CFLAGS) -c $< -o $@
+       $(CC) -I../ldso -I../ldso/$(TARGET_ARCH) $(CFLAGS) -c $< -o $@
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 $(OBJ): Makefile
index 540b664..901613f 100644 (file)
@@ -7,11 +7,10 @@
 #include <stdlib.h>
 #include <features.h>
 #include "dlfcn.h"
-#include "sysdep.h"
-#include "syscall.h"
-#include "hash.h"
-#include "string.h"
 #include "linuxelf.h"
+#include "ld_syscall.h"
+#include "ld_hash.h"
+#include "ld_string.h"
 
 extern int _dl_error_number;
 extern struct r_debug *_dl_debug_addr;
index 540b664..901613f 100644 (file)
@@ -7,11 +7,10 @@
 #include <stdlib.h>
 #include <features.h>
 #include "dlfcn.h"
-#include "sysdep.h"
-#include "syscall.h"
-#include "hash.h"
-#include "string.h"
 #include "linuxelf.h"
+#include "ld_syscall.h"
+#include "ld_hash.h"
+#include "ld_string.h"
 
 extern int _dl_error_number;
 extern struct r_debug *_dl_debug_addr;
index 3814bfd..d514f3f 100644 (file)
@@ -27,16 +27,16 @@ TARGETS=ldd.uclibc ldd readelf ldconfig
 all: $(TARGETS)
 
 readsoname.o: readsoname.c readsoname2.c
-       $(TARGET_CC) $(TARGET_CFLAGS) -c $< -o $@
+       $(CC) $(CFLAGS) -c $< -o $@
        $(STRIPTOOL) -x -R .note -R .comment $*.o
     
 ldconfig.o: ldconfig.c
-       $(TARGET_CC) $(TARGET_CFLAGS) -DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \
+       $(CC) $(CFLAGS) -DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \
                -c $< -o $@
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 readelf: readelf.c
-       $(TARGET_CC) $(TARGET_CFLAGS) -static readelf.c -o $@
+       $(CC) $(CFLAGS) -static readelf.c -o $@
        $(STRIPTOOL) -x -R .note -R .comment $@
 
 ifeq ($(strip $(LIBRARY_CACHE)),)
@@ -44,12 +44,12 @@ ldconfig:
        echo "LIBRARY_CACHE disabled -- not building ldconfig"
 else
 ldconfig: ldconfig.o readsoname.o
-       $(TARGET_CC) $(TARGET_CFLAGS) -static $^ -o $@
+       $(CC) $(CFLAGS) -static $^ -o $@
        $(STRIPTOOL) -x -R .note -R .comment $@
 endif
 
 ldd: ldd.c
-       $(TARGET_CC) $(TARGET_CFLAGS) -DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \
+       $(CC) $(CFLAGS) -DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \
                -DUCLIBC_DEVEL_PREFIX=\"$(DEVEL_PREFIX)\" \
                -DUCLIBC_BUILD_DIR=\"$(shell cd $(TOPDIR) && pwd)\" \
                -DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\" \