summaryrefslogtreecommitdiff
path: root/ldso/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/Makefile')
-rw-r--r--ldso/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/ldso/Makefile b/ldso/Makefile
index d0a133bf7..dcf83be52 100644
--- a/ldso/Makefile
+++ b/ldso/Makefile
@@ -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