OSDN Git Service

Phase one of my evil plan to clean up ld.so...
[uclinux-h8/uClibc.git] / ldso / Makefile
index d0a133b..dcf83be 100644 (file)
@@ -26,7 +26,7 @@ include $(TOPDIR)Rules.mak
 ALL_SUBDIRS = ldso libdl util
 
 
-all:
+all: headers
 ifeq ($(strip $(BUILD_UCLIBC_LDSO)),y)
        $(MAKE) -C ldso;
 else
@@ -43,6 +43,13 @@ endif
 utils:
        $(MAKE) -C util;
 
+headers:
+       ln -fs $(TOPDIR)../include/elf.h include/
+       ln -fs ../ldso/$(TARGET_ARCH)/boot1_arch.h include/
+       ln -fs ../ldso/$(TARGET_ARCH)/ld_syscalls.h include/
+       ln -fs ../ldso/$(TARGET_ARCH)/ld_sysdep.h include/
+
 clean:
        set -e ; for d in $(ALL_SUBDIRS) ; do $(MAKE) -C $$d $@ ; done
        -find . -name '*~' | xargs rm -f
+       rm -f include/elf.h include/boot1_arch.h include/ld_syscalls.h include/ld_sysdep.h